{"openapi":"3.1.1","info":{"title":"runx Hosted API","version":"0.1.0","summary":"Governed hosted API for run submission, connect, grants, approvals, and inspection.","description":"Hosted API contract for run submission, connect, grants, approvals, webhook ingress, and inspection."},"jsonSchemaDialect":"https://json-schema.org/draft/2020-12/schema","servers":[{"url":"https://api.runx.ai","description":"Hosted API surface"},{"url":"https://connect.runx.ai","description":"Hosted Connect surface"},{"url":"https://runx.ai","description":"Hosted app surface"}],"tags":[{"name":"system"},{"name":"public"},{"name":"integrations"},{"name":"identity"},{"name":"runs"},{"name":"receipts"},{"name":"observations"},{"name":"billing"},{"name":"purchases"},{"name":"connect"},{"name":"provider-references"},{"name":"admin"}],"paths":{"/healthz":{"get":{"operationId":"getHealth","summary":"Health check","tags":["system"],"responses":{"200":{"description":"Health status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusEnvelope"}}}}}}},"/readyz":{"get":{"operationId":"getReadiness","summary":"Readiness check","tags":["system"],"responses":{"200":{"description":"Readiness status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedReadinessEnvelope"}}}},"503":{"description":"Dependencies are not ready.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedReadinessErrorEnvelope"}}}}}}},"/openapi.json":{"get":{"operationId":"getOpenApiDocument","summary":"OpenAPI document","tags":["system"],"responses":{"200":{"description":"OpenAPI document.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/system/status":{"get":{"operationId":"getPublicSystemStatus","summary":"Inspect public system status","tags":["public"],"responses":{"200":{"description":"Public system status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSystemStatus"}}}},"503":{"description":"Public system status degraded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSystemStatus"}}}}}}},"/v1/system/metrics":{"get":{"operationId":"getSystemMetrics","summary":"Inspect hosted API request metrics","tags":["system","admin"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Hosted API request metrics.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedApiMetricsEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/feed":{"get":{"operationId":"getPublicFeed","summary":"List the public live feed","tags":["public"],"parameters":[{"name":"limit","in":"query","required":false,"description":"Maximum number of feed items to return.","schema":{"type":"string"}}],"responses":{"200":{"description":"Public live feed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicFeedResponse"}}}}}}},"/v1/connectors":{"get":{"operationId":"listPublicConnectors","summary":"List published connectors, one page at a time, with public readiness per placement","tags":["public"],"parameters":[{"name":"q","in":"query","required":false,"description":"Text matched against connector name, display name, description and category, ignoring case (at most 100 characters).","schema":{"type":"string"}},{"name":"category","in":"query","required":false,"description":"Category id.","schema":{"type":"string"}},{"name":"placement","in":"query","required":false,"description":"Only connectors whose placement is ready: hosted or local.","schema":{"type":"string"}},{"name":"publisher","in":"query","required":false,"description":"Publisher namespace.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Page size, 1 to 100 (default 48).","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"The `next_cursor` of the previous page.","schema":{"type":"string"}}],"responses":{"200":{"description":"Connector catalog.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConnectorsResponse"}}}},"400":{"description":"Invalid query.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Connector catalog unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"operationId":"publishHostedConnector","summary":"Publish a connector to the hosted registry","description":"Publishes the files `runx registry package` emits under the publisher that holds the connector name's namespace, for whom the signed-in principal must be authorized. The registry reads them with the native runtime and refuses any other files; a version is immutable.","tags":["public","registry"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Connector package.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConnectorPublishRequest"}}}},"responses":{"200":{"description":"These files were already published under this version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConnectorPublishResponse"}}}},"201":{"description":"Published connector version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConnectorPublishResponse"}}}},"400":{"description":"Invalid connector package.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Missing connectors:write, a namespace the principal may not publish in, or a name that does not fit its namespace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"The version exists with other files.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"The package is too large.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Hosted registry unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/connectors/{namespace}":{"get":{"operationId":"getPublicConnector","summary":"Inspect one published connector at its current version: its public manifest, digests, readiness and setup","tags":["public"],"parameters":[{"name":"namespace","in":"path","required":true,"description":"The connector's namespace: its whole name when it has one segment.","schema":{"type":"string"}}],"responses":{"200":{"description":"Connector detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConnectorResponse"}}}},"404":{"description":"Connector not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Connector catalog unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/connectors/{namespace}/{surface}":{"get":{"operationId":"getPublicConnectorBySurface","summary":"Inspect one published connector at its current version: its public manifest, digests, readiness and setup","tags":["public"],"parameters":[{"name":"namespace","in":"path","required":true,"description":"The connector's namespace: its whole name when it has one segment.","schema":{"type":"string"}},{"name":"surface","in":"path","required":true,"description":"The surface under the namespace.","schema":{"type":"string"}}],"responses":{"200":{"description":"Connector detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConnectorResponse"}}}},"404":{"description":"Connector not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Connector catalog unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/connectors/{namespace}/versions":{"get":{"operationId":"listPublicConnectorVersions","summary":"List a connector's published versions","description":"Newest publication first, with a version tie-break; a withdrawn version is not listed. A runx asked for a connector by name installs the newest of these it reads. The cursor is bound to this connector.","tags":["public"],"parameters":[{"name":"namespace","in":"path","required":true,"description":"The connector's namespace: its whole name when it has one segment.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Page size: default 20, at most 100.","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page's next_cursor.","schema":{"type":"string"}}],"responses":{"200":{"description":"Connector version history.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConnectorVersionsResponse"}}}},"400":{"description":"Invalid limit or cursor.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Connector not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Connector catalog unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/connectors/{namespace}/{surface}/versions":{"get":{"operationId":"listPublicConnectorVersionsBySurface","summary":"List a connector's published versions","description":"Newest publication first, with a version tie-break; a withdrawn version is not listed. A runx asked for a connector by name installs the newest of these it reads. The cursor is bound to this connector.","tags":["public"],"parameters":[{"name":"namespace","in":"path","required":true,"description":"The connector's namespace: its whole name when it has one segment.","schema":{"type":"string"}},{"name":"surface","in":"path","required":true,"description":"The surface under the namespace.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Page size: default 20, at most 100.","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page's next_cursor.","schema":{"type":"string"}}],"responses":{"200":{"description":"Connector version history.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConnectorVersionsResponse"}}}},"400":{"description":"Invalid limit or cursor.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Connector not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Connector catalog unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/connectors/{namespace}/versions/{version}":{"get":{"operationId":"getPublicConnectorVersion","summary":"Inspect one exact published connector version","tags":["public"],"parameters":[{"name":"namespace","in":"path","required":true,"description":"The connector's namespace: its whole name when it has one segment.","schema":{"type":"string"}},{"name":"version","in":"path","required":true,"description":"Registry version label.","schema":{"type":"string"}}],"responses":{"200":{"description":"Connector version detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConnectorResponse"}}}},"404":{"description":"Connector version not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Connector catalog unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/connectors/{namespace}/{surface}/versions/{version}":{"get":{"operationId":"getPublicConnectorVersionBySurface","summary":"Inspect one exact published connector version","tags":["public"],"parameters":[{"name":"namespace","in":"path","required":true,"description":"The connector's namespace: its whole name when it has one segment.","schema":{"type":"string"}},{"name":"surface","in":"path","required":true,"description":"The surface under the namespace.","schema":{"type":"string"}},{"name":"version","in":"path","required":true,"description":"Registry version label.","schema":{"type":"string"}}],"responses":{"200":{"description":"Connector version detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConnectorResponse"}}}},"404":{"description":"Connector version not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Connector catalog unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/marks/{file}":{"get":{"operationId":"getPublicMark","summary":"Serve a mark at the SHA-256 of its bytes","description":"A taxonomy category's mark, a skill or connector package's mark while a public version ships it, or a publisher's image while the publisher shows it. Served inert (no sniffing, scripts, styles or navigation) and immutable.","tags":["public"],"parameters":[{"name":"file","in":"path","required":true,"description":"`<sha256>.svg`.","schema":{"type":"string"}}],"responses":{"200":{"description":"The mark.","content":{"image/svg+xml":{"schema":{"type":"string"}}}},"404":{"description":"Nothing public shows that mark.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/connectors/{namespace}/versions/{version}/package":{"get":{"operationId":"getPublicConnectorPackage","summary":"Read one connector version's files and signed manifest, as install verifies them","description":"A withdrawn version answers with its stored files, signed over its preserved name, and `withdrawn_at`; nothing installs it.","tags":["public","registry"],"parameters":[{"name":"namespace","in":"path","required":true,"description":"The connector's namespace: its whole name when it has one segment.","schema":{"type":"string"}},{"name":"version","in":"path","required":true,"description":"Registry version label.","schema":{"type":"string"}}],"responses":{"200":{"description":"Connector package.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConnectorPackageResponse"}}}},"404":{"description":"Connector version not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Hosted registry unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/connectors/{namespace}/{surface}/versions/{version}/package":{"get":{"operationId":"getPublicConnectorPackageBySurface","summary":"Read one connector version's files and signed manifest, as install verifies them","description":"A withdrawn version answers with its stored files, signed over its preserved name, and `withdrawn_at`; nothing installs it.","tags":["public","registry"],"parameters":[{"name":"namespace","in":"path","required":true,"description":"The connector's namespace: its whole name when it has one segment.","schema":{"type":"string"}},{"name":"surface","in":"path","required":true,"description":"The surface under the namespace.","schema":{"type":"string"}},{"name":"version","in":"path","required":true,"description":"Registry version label.","schema":{"type":"string"}}],"responses":{"200":{"description":"Connector package.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConnectorPackageResponse"}}}},"404":{"description":"Connector version not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Hosted registry unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/connectors/{namespace}/versions/{version}/connector.yaml":{"get":{"operationId":"getPublicConnectorManifestSource","summary":"Download one connector version's manifest bytes","description":"The stored bytes, withdrawn or not; the ETag is their SHA-256, not the native manifest digest of the parsed manifest.","tags":["public","registry"],"parameters":[{"name":"namespace","in":"path","required":true,"description":"The connector's namespace: its whole name when it has one segment.","schema":{"type":"string"}},{"name":"version","in":"path","required":true,"description":"Registry version label.","schema":{"type":"string"}}],"responses":{"200":{"description":"Connector manifest source.","content":{"application/yaml":{"schema":{"type":"string"}}}},"404":{"description":"Connector version not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Hosted registry unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/connectors/{namespace}/{surface}/versions/{version}/connector.yaml":{"get":{"operationId":"getPublicConnectorManifestSourceBySurface","summary":"Download one connector version's manifest bytes","description":"The stored bytes, withdrawn or not; the ETag is their SHA-256, not the native manifest digest of the parsed manifest.","tags":["public","registry"],"parameters":[{"name":"namespace","in":"path","required":true,"description":"The connector's namespace: its whole name when it has one segment.","schema":{"type":"string"}},{"name":"surface","in":"path","required":true,"description":"The surface under the namespace.","schema":{"type":"string"}},{"name":"version","in":"path","required":true,"description":"Registry version label.","schema":{"type":"string"}}],"responses":{"200":{"description":"Connector manifest source.","content":{"application/yaml":{"schema":{"type":"string"}}}},"404":{"description":"Connector version not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Hosted registry unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/receipts":{"get":{"operationId":"listTenantReceiptSummaries","summary":"List private execution receipt summaries","description":"Requires receipts:read. Pages are ordered by creation time and receipt identity, ascending.","tags":["receipts"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque next_cursor from the previous page.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Maximum results: 1–100, default 50.","schema":{"type":"string"}}],"responses":{"200":{"description":"Tenant receipt summaries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantReceiptSummaryList"}}}},"400":{"description":"Invalid cursor or limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/receipts/{id}":{"get":{"operationId":"getTenantReceiptSummary","summary":"Read a private execution receipt summary","tags":["receipts"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Execution receipt identity.","schema":{"type":"string"}}],"responses":{"200":{"description":"Tenant receipt summary.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantReceiptSummaryEnvelope"}}}},"404":{"description":"Receipt not found for this principal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/signals":{"post":{"operationId":"admitSourceObservation","summary":"Admit a source observation","description":"Requires signals:write. Stores normalized source evidence without execution, triage, or a receipt signature.","tags":["observations"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Source event and locator admission policy.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceObservationRequest"}}}},"responses":{"200":{"description":"Duplicate delivery.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceObservationEnvelope"}}}},"202":{"description":"Observation admitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceObservationEnvelope"}}}},"400":{"description":"Invalid request or operator policy fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Source not admitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Same event identity with changed content.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"get":{"operationId":"listSourceObservations","summary":"Read a tenant's source observations","description":"Requires signals:read. Returns an ascending page ordered by admission time and observation identity.","tags":["observations"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Opaque next_cursor from the previous page.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Maximum results: 1–100, default 50.","schema":{"type":"string"}}],"responses":{"200":{"description":"Observation page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceObservationPage"}}}},"400":{"description":"Invalid page query.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/webhooks/signals/{provider}":{"post":{"operationId":"receiveSourceObservationWebhook","summary":"Receive an authenticated source webhook","description":"Uses the configured provider HMAC secret and source policy binding to resolve the tenant. Maximum body size is 1 MiB. Slack verification challenges return text/plain.","tags":["observations"],"parameters":[{"name":"provider","in":"path","required":true,"description":"Configured webhook provider.","schema":{"type":"string"}}],"responses":{"200":{"description":"Duplicate delivery or Slack challenge.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceObservationEnvelope"}},"text/plain":{"schema":{"type":"string"}}}},"202":{"description":"Observation admitted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceObservationEnvelope"}}}},"401":{"description":"Invalid provider signature.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Conflicting delivery identity.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/trust/keys":{"get":{"operationId":"getTrustRootKeys","summary":"Fetch public trust-root keys","description":"Returns the public key set used to verify hosted receipt signatures and payment-admission proofs.","tags":["public","receipts"],"responses":{"200":{"description":"Public trust-root document.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTrustRoot"}}}}}}},"/v1/projections/receipts":{"get":{"operationId":"listPublicReceiptProjections","summary":"List the public receipt projection feed","description":"Returns monotonic public receipt publication and tombstone projections after the supplied cursor.","tags":["public","receipts"],"parameters":[{"name":"cursor","in":"query","required":false,"description":"Last consumed projection sequence. Omit or pass 0 to read from the beginning.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Maximum projections to return, between 1 and 500.","schema":{"type":"string"}}],"responses":{"200":{"description":"Public receipt projection page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicReceiptProjectionFeedEnvelope"}}}},"400":{"description":"Invalid cursor or limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Receipt projection feed unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/receipts/notarizations/{digest}":{"get":{"operationId":"getPublicReceiptNotarization","summary":"Inspect one public receipt notarization projection","tags":["public","receipts"],"parameters":[{"name":"digest","in":"path","required":true,"description":"The receipt's digest: its hex, as its link carries it, or with the sha256: prefix.","schema":{"type":"string"}}],"responses":{"200":{"description":"Public receipt notarization projection.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicReceiptNotarization"}}}},"404":{"description":"Receipt not found or unpublished.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Receipt notary unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/receipts/notarize":{"post":{"operationId":"notarizeReceipt","summary":"Notarize one edge receipt or declared receipt digest","description":"Requires a bearer principal with receipts:write scope.","tags":["receipts"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Full receipt or digest-only notarization request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiptNotarizeRequest"}}}},"responses":{"201":{"description":"Receipt notarized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiptNotaryEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Receipt request too large.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Receipt verification failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiptVerificationFailedEnvelope"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Receipt notary unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/receipts/{digest}/unpublish":{"post":{"operationId":"unpublishReceiptNotarization","summary":"Hide one public receipt notarization page","tags":["receipts"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"digest","in":"path","required":true,"description":"Receipt digest, with or without sha256: prefix.","schema":{"type":"string"}}],"responses":{"200":{"description":"Receipt notarization unpublished.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiptNotaryEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Receipt not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Receipt notary unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/skills":{"get":{"operationId":"listPublicSkills","summary":"List public registry skills with search and filters","tags":["public"],"parameters":[{"name":"q","in":"query","required":false,"description":"Text query: a skill matches when any word begins a word of its identity, description, tags, runners or category, and relevance ranks those that match more, identity above description above the rest.","schema":{"type":"string"}},{"name":"publisher","in":"query","required":false,"description":"Publisher namespace filter.","schema":{"type":"string"}},{"name":"tag","in":"query","required":false,"description":"Tag filter.","schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"description":"Catalog kind filter: skill or graph.","schema":{"type":"string"}},{"name":"category","in":"query","required":false,"description":"Registry category filter: code, research, ops, growth, content, data, security, payments, or authoring.","schema":{"type":"string"}},{"name":"profile_mode","in":"query","required":false,"description":"Runner mode filter: profiled or portable.","schema":{"type":"string"}},{"name":"featured","in":"query","required":false,"description":"When true, return only the editorial selection's featured skills, in its order.","schema":{"type":"string"}},{"name":"include","in":"query","required":false,"description":"When set to unverified, include zero-install community skills in broad discovery.","schema":{"type":"string"}},{"name":"trust_tier","in":"query","required":false,"description":"Trust tier filter: first_party, verified, or community.","schema":{"type":"string"}},{"name":"ids","in":"query","required":false,"description":"Up to 100 exact skill ids (publisher/name), comma-separated, read as one batch. The page holds those that are listed; the community discovery floor does not apply.","schema":{"type":"string"}},{"name":"connector","in":"query","required":false,"description":"Only skills whose current version declares this connector id.","schema":{"type":"string"}},{"name":"sort","in":"query","required":false,"description":"Sort order: relevance (the default with q), recommended (the default without), newest, most-installed, or a-z.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Maximum number of skills to return, 1 to 100 (default 24).","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"Continues the query that returned it as next_cursor; a cursor from another query is rejected.","schema":{"type":"string"}},{"name":"count","in":"query","required":false,"description":"When 1, add the total listed skills the query matches, when it can be computed within budget.","schema":{"type":"string"}},{"name":"facets","in":"query","required":false,"description":"When 1, add facet counts for the query, when they can be computed within budget.","schema":{"type":"string"}}],"responses":{"200":{"description":"Public registry listing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSkillsResponse"}}}}}},"post":{"operationId":"publishHostedSkill","summary":"Publish a skill to the hosted registry","description":"Publishes one governed skill markdown document under a publisher the signed-in principal is authorized for. The caller cannot set the trust tier.","tags":["public","registry"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Hosted skill publish payload.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedSkillPublishRequest"}}}},"responses":{"200":{"description":"Published hosted skill.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedSkillPublishEnvelope"}}}},"400":{"description":"Invalid skill package.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Missing publish scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Skill version conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Hosted registry unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/publishers/{slug}":{"get":{"operationId":"getPublicPublisherProfile","summary":"Inspect one public publisher profile","tags":["public"],"parameters":[{"name":"slug","in":"path","required":true,"description":"Publisher slug.","schema":{"type":"string"}}],"responses":{"200":{"description":"Public publisher profile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPublisherProfileResponse"}}}},"404":{"description":"Publisher not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"operationId":"updateOwnPublisherProfile","summary":"Change your publisher's profile","description":"A principal authorized to publish for the namespace changes its display name, description and links. Verification is the verification authority's alone.","tags":["public","registry"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"slug","in":"path","required":true,"description":"Publisher namespace.","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"The profile fields to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublisherProfileRequest"}}}},"responses":{"200":{"description":"The changed publisher.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRegistryPublisherResponse"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Missing a publishing scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"No publisher this principal publishes for.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Registry publishers unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/skills/{root}":{"get":{"operationId":"getPublicSkillByRootName","summary":"Inspect the verified skill a root name addresses","description":"A root name is one segment the registry assigns to a verified publisher's skill. The answer is that skill read by its canonical `publisher/name`; a root name can move, a canonical id cannot.","tags":["public"],"parameters":[{"name":"root","in":"path","required":true,"description":"Root name or root@version.","schema":{"type":"string"}}],"responses":{"200":{"description":"Public skill detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSkillDetailResponse"}}}},"404":{"description":"No listed skill holds that root name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/skills/{publisher}/{name}":{"get":{"operationId":"getPublicSkill","summary":"Inspect one public registry skill","tags":["public"],"parameters":[{"name":"publisher","in":"path","required":true,"description":"Publisher namespace.","schema":{"type":"string"}},{"name":"name","in":"path","required":true,"description":"Skill name or name@version.","schema":{"type":"string"}},{"name":"ref","in":"query","required":false,"description":"Optional rolling ref selector such as main.","schema":{"type":"string"}}],"responses":{"200":{"description":"Public skill detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSkillDetailResponse"}}}},"404":{"description":"Skill not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/skills/{publisher}/{name}/versions":{"get":{"operationId":"listPublicSkillVersions","summary":"List a public skill's published versions","description":"Newest publication first, with a version tie-break. Only versions the public may see are listed. The cursor is bound to this skill.","tags":["public"],"parameters":[{"name":"publisher","in":"path","required":true,"description":"Publisher namespace.","schema":{"type":"string"}},{"name":"name","in":"path","required":true,"description":"Skill name.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Page size: default 20, at most 100.","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"Opaque cursor from the previous page's next_cursor.","schema":{"type":"string"}}],"responses":{"200":{"description":"Public version history.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSkillVersionsResponse"}}}},"400":{"description":"Invalid limit or cursor.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Skill not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/skills/{publisher}/{name}/versions/{version}/files/{path}":{"get":{"operationId":"readPublicSkillFile","summary":"Read one public file of an exact skill version","description":"Serves the manual (SKILL.md), the published execution profile (profile, plain text) and the catalog reference and example its references/catalog.md declares. Other package files are not served here. The path may contain slashes.","tags":["public"],"parameters":[{"name":"publisher","in":"path","required":true,"description":"Publisher namespace.","schema":{"type":"string"}},{"name":"name","in":"path","required":true,"description":"Skill name.","schema":{"type":"string"}},{"name":"version","in":"path","required":true,"description":"Exact published version.","schema":{"type":"string"}},{"name":"path","in":"path","required":true,"description":"Package-relative file path.","schema":{"type":"string"}}],"responses":{"200":{"description":"The file's exact bytes.","content":{"text/markdown":{"schema":{"type":"string"}},"text/plain":{"schema":{"type":"string"}}}},"400":{"description":"Invalid path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Version or file not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/skills/{publisher}/{name}/acquire":{"post":{"operationId":"acquirePublicSkill","summary":"Acquire a pinned public registry skill for one installation","tags":["public"],"parameters":[{"name":"publisher","in":"path","required":true,"description":"Publisher namespace.","schema":{"type":"string"}},{"name":"name","in":"path","required":true,"description":"Skill name or name@version.","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Registry skill acquisition request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcquireSkillRequest"}}}},"responses":{"200":{"description":"Registry skill acquisition payload.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcquireSkillResponse"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Skill not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Registry store unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/skills/{publisher}/{name}/versions/{version}/record":{"get":{"operationId":"getPublicSkillVersionRecord","summary":"Read one executable public version's signed record, as a registry closure holds it","tags":["public"],"parameters":[{"name":"publisher","in":"path","required":true,"description":"Publisher namespace.","schema":{"type":"string"}},{"name":"name","in":"path","required":true,"description":"Skill name.","schema":{"type":"string"}},{"name":"version","in":"path","required":true,"description":"Published version.","schema":{"type":"string"}}],"responses":{"200":{"description":"The signed version record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkillVersionRecordEnvelope"}}}},"404":{"description":"No executable public version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Registry store unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/skills/{publisher}/{name}/report":{"post":{"operationId":"reportPublicSkill","summary":"Report a public registry skill for moderation review","description":"Records one authenticated report against a resolved skill version. Reports inform moderation; they are not trust evidence.","tags":["public","registry"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"publisher","in":"path","required":true,"description":"Publisher namespace.","schema":{"type":"string"}},{"name":"name","in":"path","required":true,"description":"Skill name or name@version.","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Public skill report payload.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedSkillReportRequest"}}}},"responses":{"200":{"description":"Duplicate report already recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedSkillReportEnvelope"}}}},"201":{"description":"Skill report recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedSkillReportEnvelope"}}}},"400":{"description":"Invalid report payload.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Missing report scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Skill not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Report rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Hosted registry unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/skills/{publisher}/{name}/harness":{"get":{"operationId":"getPublicSkillHarness","summary":"Inspect public harness evidence for one registry skill","tags":["public"],"parameters":[{"name":"publisher","in":"path","required":true,"description":"Publisher namespace.","schema":{"type":"string"}},{"name":"name","in":"path","required":true,"description":"Skill name or name@version.","schema":{"type":"string"}},{"name":"ref","in":"query","required":false,"description":"Optional rolling ref selector such as main.","schema":{"type":"string"}}],"responses":{"200":{"description":"Public harness detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSkillHarnessResponse"}}}},"404":{"description":"Skill not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/me":{"get":{"operationId":"getCurrentPrincipal","summary":"Inspect the authenticated principal","tags":["identity"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Authenticated principal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/purchases/overview":{"post":{"operationId":"GetSellerPurchaseOverview","summary":"Summarize purchases sold by the authenticated seller","tags":["billing","purchases"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Typed purchase result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SellerPurchaseOverviewContract"}}}},"400":{"description":"Invalid current-V1 request envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Missing scope, or the purchase is another party's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Purchase request rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Purchase service unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/purchases/list":{"post":{"operationId":"ListSellerPurchases","summary":"List purchases sold by the authenticated seller","tags":["billing","purchases"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Bounded page of the seller's purchases.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SellerPurchaseListRequest"}}}},"responses":{"200":{"description":"Typed purchase result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SellerPurchaseList"}}}},"400":{"description":"Invalid current-V1 request envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Missing scope, or the purchase is another party's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Purchase request rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Purchase service unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/purchases/get":{"post":{"operationId":"GetSellerPurchase","summary":"Read an owned purchase","tags":["billing","purchases"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Current-V1 purchase read request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunxGetPurchaseRequest"}}}},"responses":{"200":{"description":"Typed purchase result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunxGetPurchaseResult"}}}},"400":{"description":"Invalid current-V1 request envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Missing scope, or the purchase is another party's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Purchase request rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Purchase service unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/purchases/cancel":{"post":{"operationId":"CancelSellerPurchase","summary":"Cancel an owned purchase","tags":["billing","purchases"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Current-V1 purchase cancellation request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunxCancelPurchaseRequest"}}}},"responses":{"200":{"description":"Typed purchase result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunxCancelPurchaseResult"}}}},"400":{"description":"Invalid current-V1 request envelope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Missing scope, or the purchase is another party's.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Purchase request rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Purchase service unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/accounts":{"post":{"operationId":"createSelfServeAccount","summary":"Create a self-serve hosted principal and credential","tags":["identity","billing"],"requestBody":{"required":true,"description":"Optional account display metadata.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccountRequest"}}}},"responses":{"201":{"description":"Created principal and one-time credential.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountCreatedEnvelope"}}}},"503":{"description":"Self-serve identity is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/billing/stripe/setup-intents":{"post":{"operationId":"createStripeSetupIntent","summary":"Create a Stripe SetupIntent for self-serve hosted topup","tags":["billing"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Stripe setup idempotency request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeSetupIntentRequest"}}}},"responses":{"201":{"description":"Stripe setup intent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeSetupIntentEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Stripe setup is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/billing/stripe/setup-intents/{id}/confirm":{"post":{"operationId":"confirmStripeSetupIntent","summary":"Verify a completed Stripe SetupIntent and store the payment method","tags":["billing"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Stripe SetupIntent id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Verified Stripe payment method.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripePaymentMethodEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Setup intent does not belong to this principal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Setup intent is not complete.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Stripe setup is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/billing/topup":{"post":{"operationId":"createBillingTopup","summary":"Top up hosted credits through the configured Stripe rail","tags":["billing"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Credit topup request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingTopupRequest"}}}},"responses":{"200":{"description":"Idempotent topup replay.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingTopupEnvelope"}}}},"201":{"description":"Topup applied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingTopupEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Stripe charge refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Topup is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/billing/balance":{"get":{"operationId":"getBillingBalance","summary":"Project hosted credit balance from sealed receipts","tags":["billing"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Projected credit balance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingBalanceEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Billing is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/billing/entitlements":{"get":{"operationId":"listBillingEntitlements","summary":"List flat entitlement add-on records for the current principal","tags":["billing"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Entitlement records.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntitlementListEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Entitlements are not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/billing/entitlements/{addon}":{"put":{"operationId":"putBillingEntitlement","summary":"Create or update one flat entitlement add-on record","tags":["billing","admin"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"addon","in":"path","required":true,"description":"Entitlement add-on id.","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Entitlement subscription reference.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutEntitlementRequest"}}}},"responses":{"201":{"description":"Entitlement record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntitlementEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Entitlements are not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/payments/connect/onboarding/start":{"post":{"operationId":"startStripeConnectOnboarding","summary":"Start Stripe Connect seller onboarding for the authenticated tenant","tags":["billing"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Seller onboarding link request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeConnectOnboardingStartRequest"}}}},"responses":{"200":{"description":"Stripe Connect onboarding URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeConnectOnboardingStartEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Stripe Connect onboarding is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/payments/connect/onboarding/status":{"get":{"operationId":"getStripeConnectOnboardingStatus","summary":"Read Stripe Connect seller onboarding status for the authenticated tenant","tags":["billing"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Stripe Connect seller status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeConnectOnboardingStatusEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Stripe Connect onboarding is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/payments/connect/fund":{"post":{"operationId":"fundMarketplacePostingWithStripeConnect","summary":"Fund a marketplace posting through tenant Stripe Connect","tags":["billing"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Marketplace posting funding request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceFundingRequest"}}}},"responses":{"200":{"description":"Sealed marketplace funding receipt.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceReceiptEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Refund or settlement policy refusal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Stripe Connect marketplace is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/payments/connect/payout":{"post":{"operationId":"payoutMarketplaceClaimWithStripeConnect","summary":"Pay a marketplace claim through tenant Stripe Connect","tags":["billing"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Marketplace claim payout request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplacePayoutRequest"}}}},"responses":{"200":{"description":"Sealed marketplace payout receipt.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceReceiptEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Settlement policy refusal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Stripe Connect marketplace is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/payments/connect/refund":{"post":{"operationId":"refundMarketplaceSettlementWithStripeConnect","summary":"Refund marketplace funding or reverse a marketplace payout through tenant Stripe Connect","tags":["billing"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Marketplace funding refund or payout reversal request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceRefundRequest"}}}},"responses":{"200":{"description":"Sealed marketplace refund receipt.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceReceiptEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Receipt not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Refund policy refusal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Stripe Connect marketplace is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/payments/paypal/orders":{"post":{"operationId":"createMarketplaceFundingPayPalOrder","summary":"Create a hosted PayPal checkout order for marketplace funding","tags":["billing"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Marketplace funding terms plus optional return URLs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayPalMarketplaceOrderRequest"}}}},"responses":{"200":{"description":"PayPal order and approval URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayPalOrderEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"PayPal order creation failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"PayPal marketplace funding is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/payments/paypal/capture":{"post":{"operationId":"captureMarketplaceFundingPayPalOrder","summary":"Capture a hosted PayPal order and seal a marketplace funding receipt","tags":["billing"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Marketplace funding terms plus approved PayPal order id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayPalMarketplaceCaptureRequest"}}}},"responses":{"200":{"description":"Sealed marketplace funding receipt.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceReceiptEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Settlement policy refusal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"PayPal capture failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"PayPal marketplace funding is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/payments/paypal/refund":{"post":{"operationId":"refundMarketplaceFundingWithPayPal","summary":"Refund PayPal marketplace funding and seal a refund receipt","tags":["billing"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Marketplace PayPal funding refund request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayPalMarketplaceRefundRequest"}}}},"responses":{"200":{"description":"Sealed marketplace refund receipt.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceReceiptEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Receipt not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Refund policy refusal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"PayPal refund failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"PayPal marketplace funding is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/payments/x402/quote":{"post":{"operationId":"quoteMarketplacePostingWithX402","summary":"Quote a marketplace posting's x402 payment requirements","tags":["billing"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"x402 marketplace posting quote request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/X402MarketplaceQuoteRequest"}}}},"responses":{"200":{"description":"Canonical x402 payment requirements.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/X402QuoteEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Tenant x402 marketplace rail is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/payments/x402/targets":{"get":{"operationId":"getX402SettlementTargets","summary":"Read tenant x402 settlement targets","tags":["billing"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Configured x402 settlement targets.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/X402SettlementTargetsEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Tenant x402 credential is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"x402 target management is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"operationId":"putX402SettlementTargets","summary":"Replace tenant x402 settlement targets without rotating CDP secrets","tags":["billing"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"x402 settlement target replacement.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/X402SettlementTargetsRequest"}}}},"responses":{"200":{"description":"Configured x402 settlement targets.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/X402SettlementTargetsEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Tenant x402 credential is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Tenant credential is not BYO Coinbase CDP.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"x402 target management is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/payments/x402/fund":{"post":{"operationId":"fundMarketplacePostingWithX402","summary":"Fund a marketplace posting through tenant Coinbase CDP x402","tags":["billing"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"x402 marketplace posting funding request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/X402MarketplaceFundingRequest"}}}},"responses":{"200":{"description":"Sealed marketplace funding receipt.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceReceiptEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"x402 payment verification failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Tenant x402 marketplace rail is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/payments/x402/refund":{"post":{"operationId":"refundMarketplaceFundingWithX402","summary":"Refund x402 marketplace funding to its verified payer","tags":["billing"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Linked x402 marketplace funding refund request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/X402MarketplaceRefundRequest"}}}},"responses":{"200":{"description":"Sealed x402 marketplace refund receipt.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceReceiptEnvelope"}}}},"202":{"description":"x402 refund is reserved and still settling.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/X402SettlementPendingEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Funding receipt not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Refund policy or provider-evidence refusal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"x402 refund rail is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/payments/x402/payout":{"post":{"operationId":"payoutMarketplaceClaimWithX402","summary":"Pay a marketplace claim through tenant Coinbase CDP x402","tags":["billing"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"x402 marketplace claim payout request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/X402MarketplacePayoutRequest"}}}},"responses":{"200":{"description":"Sealed marketplace payout receipt.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceReceiptEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Settlement policy refusal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Tenant x402 payout rail is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/payments/x402/float-payout":{"post":{"operationId":"payoutMarketplaceClaimFromX402Float","summary":"Pay a marketplace claim from tenant x402 float","tags":["billing"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"x402 tenant-float payout request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/X402MarketplaceFloatPayoutRequest"}}}},"responses":{"200":{"description":"Sealed marketplace payout receipt.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceReceiptEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Settlement policy refusal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Tenant x402 payout rail is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/payments/x402/worker-wallet":{"post":{"operationId":"registerX402WorkerWallet","summary":"Register a worker payout wallet for x402 marketplace settlement","tags":["billing"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Worker x402 payout wallet registration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/X402WorkerWalletRequest"}}}},"responses":{"200":{"description":"Registered x402 worker wallet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/X402WorkerWalletEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Payment write scope is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Payout wallet is registered to another worker.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"x402 worker-wallet registry is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/service/token/exchange":{"post":{"operationId":"exchangeServiceToken","summary":"Exchange an OIDC token for a short-lived service access token","tags":["identity"],"requestBody":{"required":true,"description":"OIDC-backed service token exchange request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceTokenExchangeRequest"}}}},"responses":{"200":{"description":"Issued service access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceTokenExchangeEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"OIDC token not accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Service principal not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Service token exchange unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/admin/registry/publish":{"post":{"operationId":"publishRegistrySkill","summary":"Publish a registry skill through the hosted admin surface","tags":["admin"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Registry publish request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRegistryPublishRequest"}}}},"responses":{"200":{"description":"Published registry skill.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRegistryPublishEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Registry store unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/admin/registry/publishers":{"post":{"operationId":"provisionRegistryPublisher","summary":"Provision a publisher namespace and authorize its principals","description":"The only way to take a reserved slug. A principal publishes for a namespace only through this authorization or by claiming its own verified GitHub handle.","tags":["admin"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Publisher to provision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRegistryPublisherRequest"}}}},"responses":{"201":{"description":"Provisioned publisher.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRegistryPublisherResponse"}}}},"400":{"description":"Validation error, or the slug is taken.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Registry publishers unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/admin/registry/publishers/{slug}/principals":{"post":{"operationId":"authorizeRegistryPublisherPrincipal","summary":"Authorize one more principal to publish for a publisher","tags":["admin"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"slug","in":"path","required":true,"description":"Publisher namespace.","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Principal to authorize.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRegistryPublisherPrincipalRequest"}}}},"responses":{"200":{"description":"Authorized principal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRegistryPublisherPrincipalResponse"}}}},"400":{"description":"Validation error, or no such publisher.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Registry publishers unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/admin/registry/publishers/{slug}/image":{"put":{"operationId":"setRegistryPublisherImage","summary":"Show a published mark as a publisher's image","description":"Names a mark a public skill or connector version ships, which publication has already checked; the image is served at that SHA-256.","tags":["admin"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"slug","in":"path","required":true,"description":"Publisher namespace.","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"The mark's SHA-256.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublisherImageRequest"}}}},"responses":{"200":{"description":"The publisher, showing the image.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRegistryPublisherResponse"}}}},"400":{"description":"The request names no mark.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"No such publisher, or no public version ships that mark.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Registry publishers unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"operationId":"clearRegistryPublisherImage","summary":"Clear a publisher's image","tags":["admin"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"slug","in":"path","required":true,"description":"Publisher namespace.","schema":{"type":"string"}}],"responses":{"200":{"description":"The publisher, without an image.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRegistryPublisherResponse"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"No such publisher.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Registry publishers unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/admin/registry/publishers/{slug}":{"patch":{"operationId":"updateRegistryPublisher","summary":"Change a publisher's profile and verification","description":"The verification authority's profile route: display name, description, links and verified. A field the request omits is kept.","tags":["admin"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"slug","in":"path","required":true,"description":"Publisher namespace.","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"The profile fields to change.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRegistryPublisherProfileRequest"}}}},"responses":{"200":{"description":"The changed publisher.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminRegistryPublisherResponse"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"No such publisher.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Registry publishers unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/artifact-operations":{"post":{"operationId":"executeArtifactOperation","summary":"Allocate, inspect, or hand off a tenant-owned artifact","description":"Stores one bounded artifact, returns verified metadata, or copies an explicitly approved artifact into a registered target principal. Other artifact operations remain available only inside the trusted hosted runtime.","tags":["runs","artifacts"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Hosted artifact operation request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactOperationRequest"}}}},"responses":{"200":{"description":"Verified artifact operation evidence.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactOperationEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Missing artifact operation scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Artifact not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Artifact operation conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"Artifact request is too large.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Artifact operation rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"Artifact storage returned an invalid result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Artifact operation is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/skills/{publisher}/{name}/run":{"post":{"operationId":"runSkill","summary":"Buy a run of a skill runner a seller offers","description":"A runx account buys with its bearer token and pays with x402, MPP, a payment body, or account_payment: a quote it decided on, paid from its runx balance or one of its supported payment grants. MPP uses Payment-Authorization alongside bearer authentication. A buyer with no account names buyer_key, which owns the purchase; a purchase on a resource held under that key also carries the key's signature.","tags":["runs","skills"],"security":[{"BearerAuth":[]},{"BuyerKey":[]},{}],"parameters":[{"name":"publisher","in":"path","required":true,"description":"Skill publisher.","schema":{"type":"string"}},{"name":"name","in":"path","required":true,"description":"Skill name.","schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Stable run and purchase retry key.","schema":{"type":"string"}},{"name":"Accept","in":"header","required":false,"description":"Use application/json with a quoted profile equal to the RunxQuotePurchaseResult schema's $id to receive the canonical Runx quote. Without that explicit profile, the selected payment protocol presents its challenge.","schema":{"type":"string"}},{"name":"PAYMENT-SIGNATURE","in":"header","required":false,"description":"Optional standard x402 v2 payment payload using bounded standard base64.","schema":{"type":"string"}},{"name":"Payment-Authorization","in":"header","required":false,"description":"Optional MPP credential answering one exact quoted WWW-Authenticate challenge. Authorization remains the account bearer token.","schema":{"type":"string"}},{"name":"X-Runx-Buyer-Signature","in":"header","required":false,"description":"The buyer key's Ed25519 signature over runx.payment.purchase_read_request.v1: this method, this URL and the issued-at time.","schema":{"type":"string"}},{"name":"X-Runx-Buyer-Issued-At","in":"header","required":false,"description":"When the request was signed; runx refuses one outside five minutes of its clock.","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"A purchase of an offered runner.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunSkillRequest"}}}},"responses":{"201":{"description":"The purchase its buyer reads.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunxPurchaseRead"}}},"headers":{"PAYMENT-RESPONSE":{"description":"Standard x402 v2 settlement evidence when x402 admitted the run.","schema":{"type":"string"}},"Payment-Receipt":{"description":"MPP settlement receipt when MPP admitted the run.","schema":{"type":"string"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"402":{"description":"Payment challenge or rail-neutral refusal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaidSkillRunPaymentResponse"}}},"headers":{"PAYMENT-REQUIRED":{"description":"Standard x402 v2 PaymentRequired using bounded standard base64 when x402 is selected.","schema":{"type":"string"}},"WWW-Authenticate":{"description":"MPP challenge for an available quoted method; answer using Payment-Authorization.","schema":{"type":"string"}}}},"409":{"description":"The runner carries no offer, the quote or version changed, the resource it acts on is not held, or paid admission conflicts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/runs":{"get":{"operationId":"listRuns","summary":"List runs for the authenticated principal","tags":["runs"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"q","in":"query","required":false,"description":"Case-insensitive search over run id, skill, actors, and artifact types.","schema":{"type":"string"}},{"name":"skill","in":"query","required":false,"description":"Exact skill filter.","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"description":"Exact hosted lifecycle status filter.","schema":{"type":"string"}},{"name":"actor","in":"query","required":false,"description":"Exact actor filter derived from submitted resolutions.","schema":{"type":"string"}},{"name":"artifact_type","in":"query","required":false,"description":"Exact artifact type filter derived from hosted ledger entries.","schema":{"type":"string"}},{"name":"since","in":"query","required":false,"description":"Inclusive ISO-8601 lower bound for run creation time.","schema":{"type":"string"}},{"name":"until","in":"query","required":false,"description":"Inclusive ISO-8601 upper bound for run creation time.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Maximum number of runs to return: integer 1–100, default 50.","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"Optional opaque cursor returned by the previous run-list page.","schema":{"type":"string"}}],"responses":{"200":{"description":"Run list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunListEnvelope"}}}},"400":{"description":"Invalid cursor, limit, or date filter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/runs/diff":{"get":{"operationId":"diffRuns","summary":"Diff two hosted runs","tags":["runs"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"left","in":"query","required":false,"description":"Left run id.","schema":{"type":"string"}},{"name":"right","in":"query","required":false,"description":"Right run id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Run diff.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunDiffEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Run not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/purchases/{id}":{"get":{"operationId":"getPurchase","summary":"Read one purchase as its buyer: never the seller's run","description":"Read by the account that bought it, or by a request the buyer key that owns it signed. A purchase lists what it holds; a held value never appears.","tags":["runs","purchases"],"security":[{"BearerAuth":[]},{"BuyerKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Purchase id: the purchase id.","schema":{"type":"string"}},{"name":"X-Runx-Buyer-Signature","in":"header","required":false,"description":"The buyer key's Ed25519 signature over runx.payment.purchase_read_request.v1: this method, this URL and the issued-at time.","schema":{"type":"string"}},{"name":"X-Runx-Buyer-Issued-At","in":"header","required":false,"description":"When the request was signed; runx refuses one outside five minutes of its clock.","schema":{"type":"string"}}],"responses":{"200":{"description":"Purchase.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunxPurchaseRead"}}}},"401":{"description":"Unauthorized, or a signature that is not the key's, here and now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Purchase not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/purchases/{id}/claim":{"post":{"operationId":"claimPurchase","summary":"Claim what a purchase a buyer key owns holds","description":"The buyer key signs runx.payment.purchase_claim.v1 over this URL, the time and the digest of the purchase's receipt, so a purchase claims nothing before it is fulfilled. An account's purchase is used through runx and never claimed.","tags":["runs","purchases"],"security":[{"BearerAuth":[]},{"BuyerKey":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Purchase id: the purchase id.","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"The buyer key's signed claim.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunxPurchaseClaim"}}}},"responses":{"200":{"description":"What the purchase holds now, with its fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseClaimed"}}}},"400":{"description":"The claim is not shaped as one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"The claim is not signed by this purchase's key, here and now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Purchase not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"The purchase is not key-owned or not fulfilled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/purchases/{id}/artifacts/{artifact_uri}":{"get":{"operationId":"getPurchaseArtifact","summary":"Read one artifact a fulfilled purchase delivered","description":"A short-lived read link for the purchase's result artifact, or an artifact its result names. The artifact stays the seller's; nothing is copied, and the reference is the one runx's purchase receipt sealed.","tags":["runs","purchases","artifacts"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Purchase id: the purchase id.","schema":{"type":"string"}},{"name":"artifact_uri","in":"path","required":true,"description":"The artifact reference the purchase's result names.","schema":{"type":"string"}}],"responses":{"200":{"description":"A short-lived read of the artifact.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HostedArtifactAccessEvidence"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Missing artifacts:read scope.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The purchase delivered no such artifact.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/runs/{id}":{"get":{"operationId":"getRun","summary":"Inspect one run","tags":["runs"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Run id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Run detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunDetailEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Run not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/runs/{id}/requests":{"get":{"operationId":"listRunRequests","summary":"List outstanding requests for a run","tags":["runs"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Run id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Run requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunRequestsEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Run not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/runs/{id}/requests/{requestId}/responses":{"post":{"operationId":"recordRunRequestResponse","summary":"Submit a response to a run request","tags":["runs"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Run id.","schema":{"type":"string"}},{"name":"requestId","in":"path","required":true,"description":"Run request id.","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Run request response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunRequestResponseRequest"}}}},"responses":{"200":{"description":"Recorded response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunRecordedEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Run not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Run conflict.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/policy/bundles":{"get":{"operationId":"listPolicyBundles","summary":"List policy bundle versions for the authenticated principal","tags":["governance"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Policy bundles.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyBundleListEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/policy/bundles/{bundleId}/versions/{version}":{"get":{"operationId":"getPolicyBundle","summary":"Inspect one policy bundle version","tags":["governance"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"bundleId","in":"path","required":true,"description":"Policy bundle id.","schema":{"type":"string"}},{"name":"version","in":"path","required":true,"description":"Policy bundle version.","schema":{"type":"string"}}],"responses":{"200":{"description":"Policy bundle.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyBundleEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Policy bundle not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"operationId":"putPolicyBundle","summary":"Create one immutable policy bundle version","tags":["governance"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"bundleId","in":"path","required":true,"description":"Policy bundle id.","schema":{"type":"string"}},{"name":"version","in":"path","required":true,"description":"Policy bundle version.","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Policy bundle definition.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutPolicyBundleRequest"}}}},"responses":{"200":{"description":"Stored policy bundle.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyBundleEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/policy/attachments":{"get":{"operationId":"listPolicyAttachments","summary":"List policy attachments for the authenticated principal","tags":["governance"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Policy attachments.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyAttachmentListEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/policy/attachments/workspace":{"put":{"operationId":"putWorkspacePolicyAttachment","summary":"Attach one policy bundle version to the principal default workspace scope","tags":["governance"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"If-Match","in":"header","required":false,"description":"Required when replacing an existing attachment. Use the current attachment updated_at timestamp.","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Policy attachment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutPolicyAttachmentRequest"}}}},"responses":{"200":{"description":"Stored policy attachment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyAttachmentEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Referenced policy bundle not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"412":{"description":"Revision precondition failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"428":{"description":"Revision precondition required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"operationId":"deleteWorkspacePolicyAttachment","summary":"Delete the principal default policy attachment","tags":["governance"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"If-Match","in":"header","required":false,"description":"Required when deleting an existing attachment. Use the current attachment updated_at timestamp.","schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted policy attachment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyAttachmentEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Policy attachment not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"412":{"description":"Revision precondition failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"428":{"description":"Revision precondition required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/policy/attachments/skills/{skill}":{"put":{"operationId":"putSkillPolicyAttachment","summary":"Attach one policy bundle version to a skill override scope","tags":["governance"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"skill","in":"path","required":true,"description":"Skill id or skill name.","schema":{"type":"string"}},{"name":"If-Match","in":"header","required":false,"description":"Required when replacing an existing attachment. Use the current attachment updated_at timestamp.","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Policy attachment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutPolicyAttachmentRequest"}}}},"responses":{"200":{"description":"Stored policy attachment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyAttachmentEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Referenced policy bundle not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"412":{"description":"Revision precondition failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"428":{"description":"Revision precondition required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"operationId":"deleteSkillPolicyAttachment","summary":"Delete one skill-specific policy attachment","tags":["governance"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"skill","in":"path","required":true,"description":"Skill id or skill name.","schema":{"type":"string"}},{"name":"If-Match","in":"header","required":false,"description":"Required when deleting an existing attachment. Use the current attachment updated_at timestamp.","schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted policy attachment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyAttachmentEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Policy attachment not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"412":{"description":"Revision precondition failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"428":{"description":"Revision precondition required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/approval-routes":{"get":{"operationId":"listApprovalRoutes","summary":"List approval routes for the authenticated principal","tags":["governance"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Approval routes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalRouteListEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/approval-routes/{routeId}":{"get":{"operationId":"getApprovalRoute","summary":"Inspect one approval route","tags":["governance"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"routeId","in":"path","required":true,"description":"Approval route id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Approval route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalRouteEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Approval route not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"operationId":"putApprovalRoute","summary":"Create or update one approval route","tags":["governance"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"routeId","in":"path","required":true,"description":"Approval route id.","schema":{"type":"string"}},{"name":"If-Match","in":"header","required":false,"description":"Required when replacing an existing approval route. Use the current route updated_at timestamp.","schema":{"type":"string"}}],"requestBody":{"required":true,"description":"Approval route definition.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutApprovalRouteRequest"}}}},"responses":{"200":{"description":"Stored approval route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalRouteEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"412":{"description":"Revision precondition failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"428":{"description":"Revision precondition required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"operationId":"deleteApprovalRoute","summary":"Delete one approval route","tags":["governance"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"routeId","in":"path","required":true,"description":"Approval route id.","schema":{"type":"string"}},{"name":"If-Match","in":"header","required":false,"description":"Required when deleting an existing approval route. Use the current route updated_at timestamp.","schema":{"type":"string"}}],"responses":{"200":{"description":"Deleted approval route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalRouteEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Approval route not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"412":{"description":"Revision precondition failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"428":{"description":"Revision precondition required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/admin/approvals":{"get":{"operationId":"listAdminApprovals","summary":"Inspect the hosted approval inbox across principals","tags":["governance","admin"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"principal_id","in":"query","required":false,"description":"Optional principal id filter.","schema":{"type":"string"}},{"name":"skill","in":"query","required":false,"description":"Optional skill filter.","schema":{"type":"string"}},{"name":"route","in":"query","required":false,"description":"Optional approval route id filter.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Approval rows per page: integer from 1 to 200, default 50.","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"Opaque cursor returned by the previous approval inbox page. Ordered by updated_at descending, then run_id and request_id in Unicode code-point order.","schema":{"type":"string"}}],"responses":{"200":{"description":"Approval inbox.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalInboxEnvelope"}}}},"400":{"description":"Invalid page limit or approval cursor.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/connect/tickets":{"post":{"operationId":"createConnectTicket","summary":"Create a signed connect ticket","tags":["connect"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Connect ticket request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConnectTicketRequest"}}}},"responses":{"200":{"description":"Created connect ticket.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectTicketEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/provider-references":{"get":{"operationId":"listProviderReferences","summary":"List active provider credential references","tags":["provider-references"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Provider references.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderReferenceListEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/provider-references/{provider_reference}":{"delete":{"operationId":"revokeProviderReference","summary":"Revoke one provider credential reference","tags":["provider-references"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"provider_reference","in":"path","required":true,"description":"Provider reference.","schema":{"type":"string"}}],"responses":{"200":{"description":"Revoked provider reference.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderReferenceRevokedEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Provider reference not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/grants":{"get":{"operationId":"listGrants","summary":"List grants","tags":["connect"],"security":[{"BearerAuth":[]}],"responses":{"200":{"description":"Grants.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantListEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/grants/{id}":{"delete":{"operationId":"revokeGrant","summary":"Revoke one grant","tags":["connect"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Grant id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Revoked grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantRevokedEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Grant not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/provider-operations":{"post":{"operationId":"invokeProviderOperation","summary":"Invoke one grant-bound governed provider operation","tags":["connect"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Grant and fixed provider operation input.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderOperationRequest"}}}},"responses":{"200":{"description":"Provider operation result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderOperationResultEnvelope"}}}},"400":{"description":"Invalid or unsupported operation request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Grant or binding does not authorize the operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Grant not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Operation unavailable, or admitted under another contract.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/provider-requests":{"post":{"operationId":"sendProviderRequest","summary":"Send one declared request of a grant-bound connector operation","tags":["connect"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Grant, operation digests, and the declared request to render.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderRequestRequest"}}}},"responses":{"200":{"description":"The provider's answer, whole.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderRequestAnswer"}}}},"400":{"description":"Invalid request or input; nothing was sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Grant or binding does not authorize the operation; nothing was sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Grant not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"Operation admitted under another contract; nothing was sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The request may have been sent; the outcome is unknown.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/connect/sessions":{"post":{"operationId":"createConnectSession","summary":"Create a connect session","tags":["connect"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Connect session request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConnectSessionRequest"}}}},"responses":{"200":{"description":"Existing grant reused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectSessionCompleteEnvelope"}}}},"201":{"description":"OAuth required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectSessionPendingEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"This deployment opens no hosted session for the requested provider.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectSessionUnavailableEnvelope"}}}},"503":{"description":"Hosted credential sessions need the credential store, which is not configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectSessionUnavailableEnvelope"}}}}}}},"/v1/connect/sessions/{id}":{"get":{"operationId":"getConnectSession","summary":"Inspect one connect session","tags":["connect"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Session id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Connect session.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectSessionStatusEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Flow not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/admin/public/evidence":{"post":{"operationId":"appendPublicEvidence","summary":"Append public website evidence events","tags":["admin","public"],"security":[{"BearerAuth":[]}],"requestBody":{"required":true,"description":"Public evidence ingestion request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicEvidenceIngestRequest"}}}},"responses":{"202":{"description":"Stored public evidence events.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicEvidenceIngestEnvelope"}}}},"400":{"description":"Validation error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"Public evidence store unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/admin/runs":{"get":{"operationId":"listAdminRuns","summary":"List runs across principals","tags":["admin"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"principal_id","in":"query","required":false,"description":"Filter by principal id.","schema":{"type":"string"}},{"name":"q","in":"query","required":false,"description":"Case-insensitive search over run id, skill, actors, and artifact types.","schema":{"type":"string"}},{"name":"skill","in":"query","required":false,"description":"Exact skill filter.","schema":{"type":"string"}},{"name":"status","in":"query","required":false,"description":"Exact hosted lifecycle status filter.","schema":{"type":"string"}},{"name":"actor","in":"query","required":false,"description":"Exact actor filter derived from submitted resolutions.","schema":{"type":"string"}},{"name":"artifact_type","in":"query","required":false,"description":"Exact artifact type filter derived from hosted ledger entries.","schema":{"type":"string"}},{"name":"since","in":"query","required":false,"description":"Inclusive ISO-8601 lower bound for run creation time.","schema":{"type":"string"}},{"name":"until","in":"query","required":false,"description":"Inclusive ISO-8601 upper bound for run creation time.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Maximum number of runs to return: integer 1–100, default 50.","schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"description":"Optional opaque cursor returned by the previous run-list page.","schema":{"type":"string"}}],"responses":{"200":{"description":"Run list.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunListEnvelope"}}}},"400":{"description":"Invalid cursor, limit, or date filter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/v1/admin/runs/{id}":{"get":{"operationId":"getAdminRun","summary":"Inspect one run across principals","tags":["admin"],"security":[{"BearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Run id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Run detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunDetailEnvelope"}}}},"401":{"description":"Unauthorized.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Run not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"token"},"BuyerKey":{"type":"apiKey","in":"header","name":"X-Runx-Buyer-Key","description":"The Ed25519 buyer key that owns a purchase, with the request's signature and time in X-Runx-Buyer-Signature and X-Runx-Buyer-Issued-At."}},"schemas":{"StatusEnvelope":{"type":"object","additionalProperties":true,"properties":{"status":{"type":"string"}},"required":["status"]},"ErrorEnvelope":{"type":"object","description":"Every refusal: the `code` a client branches on and the human message as `error`. Some refusals add detail their code names, such as a rate limit's `retry_after_seconds` or a failed verification's `verdict`.","properties":{"code":{"type":"string"},"error":{"type":"string"},"retry_after_seconds":{"type":"integer","minimum":1}},"required":["code","error"],"additionalProperties":true},"HostedReadinessCheck":{"type":"object","properties":{"status":{"type":"string","enum":["ok","not_ready","disabled"]},"error":{"type":"string"}},"required":["status"],"additionalProperties":true},"HostedReadinessEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"ok"},"checks":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/HostedReadinessCheck"}}},"required":["status","checks"],"additionalProperties":false},"HostedReadinessErrorEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"not_ready"},"error":{"type":"string"},"checks":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/HostedReadinessCheck"}}},"required":["status","error","checks"],"additionalProperties":false},"HostedApiLatencyBucketCounts":{"type":"object","properties":{"le_50ms":{"type":"integer","minimum":0},"le_100ms":{"type":"integer","minimum":0},"le_250ms":{"type":"integer","minimum":0},"le_500ms":{"type":"integer","minimum":0},"le_1000ms":{"type":"integer","minimum":0},"gt_1000ms":{"type":"integer","minimum":0}},"required":["le_50ms","le_100ms","le_250ms","le_500ms","le_1000ms","gt_1000ms"],"additionalProperties":false},"HostedApiLatencyMetrics":{"type":"object","properties":{"total":{"type":"number","minimum":0},"average":{"type":"number","minimum":0},"max":{"type":"number","minimum":0},"buckets":{"$ref":"#/components/schemas/HostedApiLatencyBucketCounts"}},"required":["total","average","max","buckets"],"additionalProperties":false},"HostedApiRouteMetrics":{"type":"object","properties":{"method":{"type":"string"},"route":{"type":"string"},"requests_total":{"type":"integer","minimum":0},"error_responses_total":{"type":"integer","minimum":0},"client_error_responses_total":{"type":"integer","minimum":0},"server_error_responses_total":{"type":"integer","minimum":0},"latency_ms":{"$ref":"#/components/schemas/HostedApiLatencyMetrics"},"status_counts":{"type":"object","additionalProperties":{"type":"integer","minimum":0}}},"required":["method","route","requests_total","error_responses_total","client_error_responses_total","server_error_responses_total","latency_ms","status_counts"],"additionalProperties":false},"HostedApiMetrics":{"type":"object","properties":{"started_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"in_flight_requests":{"type":"integer","minimum":0},"requests_total":{"type":"integer","minimum":0},"error_responses_total":{"type":"integer","minimum":0},"client_error_responses_total":{"type":"integer","minimum":0},"server_error_responses_total":{"type":"integer","minimum":0},"latency_ms":{"$ref":"#/components/schemas/HostedApiLatencyMetrics"},"status_counts":{"type":"object","additionalProperties":{"type":"integer","minimum":0}},"routes":{"type":"array","items":{"$ref":"#/components/schemas/HostedApiRouteMetrics"}}},"required":["started_at","updated_at","in_flight_requests","requests_total","error_responses_total","client_error_responses_total","server_error_responses_total","latency_ms","status_counts","routes"],"additionalProperties":false},"HostedApiMetricsEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"success"},"metrics":{"$ref":"#/components/schemas/HostedApiMetrics"}},"required":["status","metrics"],"additionalProperties":false},"PrincipalSummary":{"type":"object","properties":{"principal_id":{"type":"string"},"role":{"type":"string","enum":["user","admin","service"]},"display_name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"namespace_prefixes":{"type":"array","items":{"type":"string"}}},"required":["principal_id","role"],"additionalProperties":false},"PrincipalEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"success"},"principal":{"$ref":"#/components/schemas/PrincipalSummary"}},"required":["status","principal"],"additionalProperties":false},"ServiceTokenExchangeEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"success"},"access_token":{"type":"string"},"expires_at":{"type":"string","format":"date-time"},"principal":{"$ref":"#/components/schemas/PrincipalSummary"}},"required":["status","access_token","expires_at","principal"],"additionalProperties":false},"DeletedEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"deleted"}},"required":["status"],"additionalProperties":false},"HostedRunSummary":{"$ref":"../../spec/hosted/hosted-run-summary.schema.json"},"RunSkillRequest":{"type":"object","properties":{"runner":{"type":"string","minLength":1},"inputs":{"type":"object","additionalProperties":true},"idempotency_key":{"type":"string","minLength":1},"payment":{"$ref":"#/components/schemas/RunxExecutePurchaseRequest"},"account_payment":{"description":"An account purchase: the quoted purchase its buyer decided on, paid from the account's runx balance or with one of its payment grants.","oneOf":[{"type":"object","properties":{"purchase_id":{"type":"string","minLength":1,"maxLength":200},"method":{"type":"string","enum":["balance"]}},"required":["purchase_id","method"],"additionalProperties":false},{"type":"object","properties":{"purchase_id":{"type":"string","minLength":1,"maxLength":200},"method":{"type":"string","enum":["grant"]},"grant_id":{"type":"string","minLength":1,"maxLength":200},"option":{"$ref":"#/components/schemas/RunxQuotePurchaseResult/$defs/PurchasePaymentOptionBinding"}},"required":["purchase_id","method","grant_id","option"],"additionalProperties":false}]},"version":{"type":"string","minLength":1,"maxLength":64,"description":"The listing version the buyer priced; a purchase of another is refused."},"buyer_key":{"type":"string","description":"The Ed25519 key that owns the purchase: it signs the purchase's reads and claims.","pattern":"^ed25519:[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$"}},"additionalProperties":false},"PurchaseClaimed":{"type":"object","properties":{"status":{"type":"string","const":"claimed"},"holds":{"type":"array","items":{"type":"object","properties":{"connector":{"type":"string","minLength":1},"credential":{"type":"string","minLength":1},"target":{"type":"string","minLength":1},"expires_at":{"type":"string","format":"date-time"},"value_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"fields":{"type":"object","additionalProperties":{"type":"string"}}},"required":["connector","credential","target","expires_at","value_digest","fields"],"additionalProperties":false}}},"required":["status","holds"],"additionalProperties":false},"PaidSkillRunPaymentResponse":{"oneOf":[{"$ref":"#/components/schemas/X402V2PaymentRequired"},{"allOf":[{"$ref":"#/components/schemas/RunxQuotePurchaseResult"},{"type":"object","properties":{"status":{"const":"admitted"}},"required":["status"]}]},{"$ref":"#/components/schemas/ErrorEnvelope"}]},"ServiceTokenExchangeRequest":{"$ref":"../../spec/hosted/service-token-exchange.request.schema.json"},"CreateRunResponse":{"$ref":"../../spec/hosted/create-run.response.schema.json"},"RunListEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"success"},"runs":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/HostedRunSummary"}},"next_cursor":{"type":"string"}},"required":["status","runs"],"additionalProperties":false},"RunDetailEnvelope":{"$ref":"../../spec/hosted/hosted-run-detail.schema.json"},"RunDiffEnvelope":{"$ref":"../../spec/hosted/run-diff.response.schema.json"},"RunRequestSummary":{"$ref":"../../spec/hosted/run-request-summary.schema.json"},"RunRequestsEnvelope":{"$ref":"../../spec/hosted/run-requests.response.schema.json"},"RunRequestResponseRequest":{"$ref":"../../spec/hosted/run-request-response.request.schema.json"},"RunRecordedEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"recorded"},"run":{"$ref":"#/components/schemas/HostedRunSummary"}},"required":["status","run"],"additionalProperties":false},"PolicyApprovalRouteRecipient":{"type":"object","properties":{"kind":{"type":"string","enum":["principal","email","slack_channel","webhook"]},"value":{"type":"string"},"label":{"type":"string"}},"required":["kind","value"],"additionalProperties":false},"PolicyApprovalRouteSummary":{"type":"object","properties":{"principal_id":{"type":"string"},"route_id":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"},"recipients":{"type":"array","items":{"$ref":"#/components/schemas/PolicyApprovalRouteRecipient"}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["principal_id","route_id","recipients","created_at","updated_at"],"additionalProperties":false},"ApprovalRouteSnapshot":{"type":"object","properties":{"route_id":{"type":"string"},"missing":{"type":"boolean"},"title":{"type":"string"},"summary":{"type":"string"},"recipients":{"type":"array","items":{"$ref":"#/components/schemas/PolicyApprovalRouteRecipient"}}},"required":["route_id","recipients"],"additionalProperties":false},"PutApprovalRouteRequest":{"type":"object","properties":{"title":{"type":"string"},"summary":{"type":"string"},"recipients":{"type":"array","items":{"$ref":"#/components/schemas/PolicyApprovalRouteRecipient"}}},"required":["recipients"],"additionalProperties":false},"ApprovalRouteEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"success"},"route":{"$ref":"#/components/schemas/PolicyApprovalRouteSummary"}},"required":["status","route"],"additionalProperties":false},"ApprovalRouteListEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"success"},"routes":{"type":"array","items":{"$ref":"#/components/schemas/PolicyApprovalRouteSummary"}}},"required":["status","routes"],"additionalProperties":false},"PolicyBundleRoutingRule":{"type":"object","properties":{"id":{"type":"string"},"route_id":{"type":"string"},"skill":{"type":"string"},"gate_type":{"type":"string"},"gate_id":{"type":"string"}},"required":["id","route_id"],"additionalProperties":false},"PolicyBundleRouting":{"type":"object","properties":{"default_route_id":{"type":"string"},"rules":{"type":"array","items":{"$ref":"#/components/schemas/PolicyBundleRoutingRule"}}},"required":["rules"],"additionalProperties":false},"PolicyBundleWorkspacePolicy":{"type":"object","properties":{"strict_process_tool_inline_code":{"type":"boolean"}},"additionalProperties":false},"PolicyBundleSummary":{"type":"object","properties":{"principal_id":{"type":"string"},"bundle_id":{"type":"string"},"version":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"},"workspace_policy":{"$ref":"#/components/schemas/PolicyBundleWorkspacePolicy"},"approval_routing":{"$ref":"#/components/schemas/PolicyBundleRouting"},"created_at":{"type":"string","format":"date-time"}},"required":["principal_id","bundle_id","version","workspace_policy","approval_routing","created_at"],"additionalProperties":false},"PutPolicyBundleRequest":{"type":"object","properties":{"title":{"type":"string"},"summary":{"type":"string"},"workspace_policy":{"$ref":"#/components/schemas/PolicyBundleWorkspacePolicy"},"approval_routing":{"$ref":"#/components/schemas/PolicyBundleRouting"}},"additionalProperties":false},"PolicyBundleEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"success"},"bundle":{"$ref":"#/components/schemas/PolicyBundleSummary"}},"required":["status","bundle"],"additionalProperties":false},"PolicyBundleListEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"success"},"bundles":{"type":"array","items":{"$ref":"#/components/schemas/PolicyBundleSummary"}}},"required":["status","bundles"],"additionalProperties":false},"PolicyAttachmentSummary":{"type":"object","properties":{"principal_id":{"type":"string"},"scope_kind":{"type":"string","enum":["workspace_default","skill"]},"scope_ref":{"type":"string"},"bundle_id":{"type":"string"},"bundle_version":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["principal_id","scope_kind","bundle_id","bundle_version","created_at","updated_at"],"additionalProperties":false},"PutPolicyAttachmentRequest":{"type":"object","properties":{"bundle_id":{"type":"string"},"bundle_version":{"type":"string"}},"required":["bundle_id","bundle_version"],"additionalProperties":false},"PolicyAttachmentEnvelope":{"type":"object","properties":{"status":{"type":"string","enum":["success","deleted"]},"attachment":{"$ref":"#/components/schemas/PolicyAttachmentSummary"}},"required":["status","attachment"],"additionalProperties":false},"PolicyAttachmentListEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"success"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/PolicyAttachmentSummary"}}},"required":["status","attachments"],"additionalProperties":false},"HostedApprovalGate":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"reason":{"type":"string"},"summary":{"type":"object","additionalProperties":true}},"required":["id","reason"],"additionalProperties":false},"ApprovalInboxItem":{"type":"object","properties":{"run_id":{"type":"string"},"principal_id":{"type":"string"},"skill":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"policy_binding":{"type":"object","properties":{"bundle_id":{"type":"string"},"bundle_version":{"type":"string"},"scope_kind":{"type":"string","enum":["workspace_default","skill"]},"scope_ref":{"type":"string"}},"required":["bundle_id","bundle_version","scope_kind"],"additionalProperties":false},"request_id":{"type":"string"},"request_digest":{"type":"string","minLength":1},"gate":{"$ref":"#/components/schemas/HostedApprovalGate"},"route":{"$ref":"#/components/schemas/ApprovalRouteSnapshot"},"matched_by":{"type":"object","properties":{"kind":{"type":"string","enum":["none","default","rule"]},"rule_id":{"type":"string"},"skill":{"type":"string"},"gate_type":{"type":"string"},"gate_id":{"type":"string"}},"required":["kind"],"additionalProperties":false}},"required":["run_id","principal_id","skill","created_at","updated_at","request_id","request_digest","gate","matched_by"],"additionalProperties":false},"ApprovalInboxEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"success"},"approvals":{"type":"array","items":{"$ref":"#/components/schemas/ApprovalInboxItem"}},"next_cursor":{"type":"string"}},"required":["status","approvals"],"additionalProperties":false},"ConnectTicketEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"success"},"connect":{"type":"object","additionalProperties":true}},"required":["status","connect"],"additionalProperties":false},"CreateConnectTicketRequest":{"type":"object","properties":{"provider":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"scope_family":{"type":"string"},"authority_kind":{"type":"string","enum":["read_only","constructive","destructive"]},"target_repo":{"type":"string","pattern":"^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"},"target_locator":{"type":"string"},"return_to":{"type":"string","format":"uri"}},"required":["provider","return_to"],"additionalProperties":false},"HostedProviderReference":{"type":"object","properties":{"provider_reference":{"type":"string"},"principal_id":{"type":"string"},"provider":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","revoked"]},"created_at":{"type":"string","format":"date-time"}},"required":["provider_reference","principal_id","provider","scopes","status","created_at"],"additionalProperties":false},"ProviderReferenceListEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"success"},"provider_references":{"type":"array","items":{"$ref":"#/components/schemas/HostedProviderReference"}}},"required":["status","provider_references"],"additionalProperties":false},"ProviderReferenceRevokedEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"revoked"},"provider_reference":{"$ref":"#/components/schemas/HostedProviderReference"}},"required":["status","provider_reference"],"additionalProperties":false},"ConnectorBinding":{"type":"object","description":"An exact connector revision: its connector name, its manifest digest, and its connector digest over the manifest and the tool packages it runs. A grant lists the one Connect executes it under; a provider operation or request names the one its caller admitted, and Cloud refuses any other with operation_contract_mismatch.","properties":{"connector":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,62}[a-z0-9]/[a-z][a-z0-9-]{0,62}[a-z0-9]$"},"manifest_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"connector_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"}},"required":["connector","manifest_digest","connector_digest"],"additionalProperties":false},"ConnectGrant":{"type":"object","properties":{"grant_id":{"type":"string"},"principal_id":{"type":"string"},"provider":{"type":"string","description":"The provider namespace the grant and its authorization are keyed by, or a payment rail."},"account":{"type":"string","description":"The delegated account the grant holds, by name, when Connect recorded one."},"connector_binding":{"$ref":"#/components/schemas/ConnectorBinding"},"scopes":{"type":"array","items":{"type":"string"}},"scope_family":{"type":"string"},"authority_kind":{"type":"string","enum":["read_only","constructive","destructive"]},"target_repo":{"type":"string","pattern":"^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"},"target_locator":{"type":"string"},"auth_mode":{"type":"string","enum":["oauth","byo"]},"material_kind":{"type":"string","enum":["provider_credential","byo_credential"]},"credential_material_bound":{"type":"boolean"},"verification_status":{"type":"string","enum":["pending","verified","failed"]},"verified_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time"},"grant_reference":{"type":"object","properties":{"grant_id":{"type":"string"},"scope_family":{"type":"string"},"authority_kind":{"type":"string","enum":["read_only","constructive","destructive"]},"target_repo":{"type":"string","pattern":"^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"},"target_locator":{"type":"string"}},"required":["grant_id","scope_family","authority_kind"],"additionalProperties":false},"status":{"type":"string","enum":["active","expired","revoked"]},"created_at":{"type":"string","format":"date-time"}},"required":["grant_id","principal_id","provider","scopes","auth_mode","material_kind","credential_material_bound","status","created_at"],"additionalProperties":false},"GrantListEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"success"},"grants":{"type":"array","items":{"$ref":"#/components/schemas/ConnectGrant"}}},"required":["status","grants"],"additionalProperties":false},"GrantRevokedEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"revoked"},"grant":{"$ref":"#/components/schemas/ConnectGrant"}},"required":["status","grant"],"additionalProperties":false},"ProviderOperationRequest":{"type":"object","properties":{"connector_binding":{"$ref":"#/components/schemas/ConnectorBinding"},"grant_id":{"type":"string","minLength":1,"maxLength":200},"operation":{"type":"string","pattern":"^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$","maxLength":100},"operation_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$","description":"The digest of the connector operation the caller admitted. Cloud refuses one that is not its manifest's with operation_contract_mismatch."},"target":{"type":"string","minLength":1,"maxLength":2000,"description":"Exact provider-neutral target locator bound into the operation readback evidence."},"scopes":{"type":"array","minItems":1,"items":{"type":"string","minLength":1},"description":"Optional exact Runx capability scopes already admitted by the runtime; Cloud checks supplied evidence against the connector manifest and grant."},"input":{"type":"object","additionalProperties":true},"access":{"type":"string","enum":["read","mutate"],"description":"Optional caller assertion checked against the connector manifest's operation before dispatch."}},"required":["connector_binding","grant_id","operation","operation_digest","target"],"additionalProperties":false},"ProviderRequestRequest":{"type":"object","description":"One declared request of a hosted connector operation, named by id. Cloud renders it from its own copy of the declaration and sends it through the provider gateway with the binding's credential.","properties":{"connector_binding":{"$ref":"#/components/schemas/ConnectorBinding"},"grant_id":{"type":"string","minLength":1,"maxLength":200},"operation":{"type":"string","pattern":"^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$","maxLength":100},"operation_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"implementation_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"input":{"type":"object","additionalProperties":true},"idempotency_key":{"type":"string","minLength":1,"maxLength":500},"request":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"},"item":{"type":"integer","minimum":0,"description":"The element of a repeated request, by position."},"responses":{"type":"object","description":"The write's decoded answer, by request id, for a checking read whose request binds it. Accepted only for checking reads.","additionalProperties":{"type":"object","additionalProperties":true}}},"required":["connector_binding","grant_id","operation","operation_digest","implementation_digest","input","request"],"additionalProperties":false},"ProviderRequestAnswer":{"type":"object","description":"The provider's answer, whole: provider errors are answers, never clipped.","properties":{"status":{"type":"integer"},"body":{"type":"string"}},"required":["status","body"],"additionalProperties":false},"ProviderOperationResultEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"success"},"provider":{"type":"string"},"operation":{"type":"string"},"target":{"type":"string"},"access":{"type":"string","enum":["read","mutate"],"description":"The access the connector manifest declares for the executed operation."},"result":{},"readback_uri":{"type":"string"},"operation_id":{"type":"string"},"idempotency_key":{"type":"string"}},"required":["status","provider","operation","target","access","result","readback_uri"],"additionalProperties":false},"CreateConnectSessionRequest":{"type":"object","properties":{"provider":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"scope_family":{"type":"string"},"authority_kind":{"type":"string","enum":["read_only","constructive","destructive"]},"target_repo":{"type":"string","pattern":"^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"},"target_locator":{"type":"string"},"credential_grant_id":{"type":"string","description":"An active verified BYO grant whose retained credential material will be reused for this new, independently scoped grant. Mutually exclusive with binding_id."}},"required":["provider"],"additionalProperties":false},"ConnectSessionPendingEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"pending"},"session_id":{"type":"string"},"flow_id":{"type":"string"},"authorization_url":{"type":"string","format":"uri"},"poll_after_ms":{"type":"integer"},"expires_at":{"type":"string","format":"date-time"}},"required":["status","session_id","flow_id","authorization_url","poll_after_ms"],"additionalProperties":false},"ConnectSessionCompleteEnvelope":{"type":"object","properties":{"status":{"type":"string","enum":["created","unchanged"]},"session_id":{"type":"string"},"flow_id":{"type":"string"},"grant":{"$ref":"#/components/schemas/ConnectGrant"}},"required":["status","grant"],"additionalProperties":false},"ConnectSessionUnavailableEnvelope":{"type":"object","properties":{"status":{"type":"string","enum":["connect_unavailable","unsupported"]},"provider":{"type":"string"},"reason":{"type":"string","enum":["not_hosted","not_enabled","credential_store_unconfigured"]},"error":{"type":"string"}},"required":["status","provider","reason","error"],"additionalProperties":false},"ConnectSessionStatusEnvelope":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"pending"},"session_id":{"type":"string"},"flow_id":{"type":"string"},"poll_after_ms":{"type":"integer"}},"required":["status","session_id","flow_id","poll_after_ms"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"failed"},"session_id":{"type":"string"},"flow_id":{"type":"string"},"error":{"type":"string"}},"required":["status","session_id","flow_id","error"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"pending_verification"},"session_id":{"type":"string"},"flow_id":{"type":"string"},"provider":{"type":"string"},"credential_material_bound":{"type":"boolean"},"verified_at":{"type":"string","format":"date-time"}},"required":["status","session_id","flow_id","provider","credential_material_bound"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","enum":["created","unchanged"]},"session_id":{"type":"string"},"flow_id":{"type":"string"},"grant":{"$ref":"#/components/schemas/ConnectGrant"}},"required":["status","session_id","flow_id","grant"],"additionalProperties":false}]},"GenericEnvelope":{"type":"object","additionalProperties":true},"CategoryFacetEntry":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"},"label":{"type":"string"},"surface":{"type":"string","const":"builder"}},"required":["count","label","value"],"additionalProperties":false},"CopyableCommand":{"type":"object","properties":{"shell":{"type":"string","const":"posix"},"argv":{"type":"array","items":{"type":"string"}},"copy_text":{"type":"string"}},"required":["shell","argv","copy_text"],"additionalProperties":false},"EmbeddedOfferVersionBindingContract":{"type":"object","properties":{"input_schema_digest":{"type":"string"},"offer_id":{"type":"string"},"output_schema_digest":{"type":"string"},"profile_digest":{"type":"string"},"version":{"type":"string"}},"required":["input_schema_digest","offer_id","output_schema_digest","profile_digest","version"],"additionalProperties":false},"FacetEntry":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"],"additionalProperties":false},"JsonObject":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/JsonValue"}},"JsonValue":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{"$ref":"#/components/schemas/JsonValue"}},{"type":"object","additionalProperties":{"$ref":"#/components/schemas/JsonValue"}}]},"OperationVerb":{"type":"string","enum":["read","write","comment","review","merge","create","update","delete","execute","revoke"]},"PaidSkillActsOnContract":{"type":"object","properties":{"connector":{"type":"string"},"credential":{"type":"string"},"target":{}},"required":["connector","credential","target"],"additionalProperties":false},"PaidSkillListingContract":{"type":"object","properties":{"bundle_digest":{"type":"string"},"offers":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/PaidSkillRunnerOfferContract"}},"profile_digest":{"type":"string"},"seller_ref":{"$ref":"#/components/schemas/PrincipalReferenceContract"},"skill_digest":{"type":"string"},"skill_id":{"type":"string"},"version":{"type":"string"}},"required":["bundle_digest","offers","profile_digest","seller_ref","skill_digest","skill_id","version"],"additionalProperties":false},"PaidSkillPriceCaseContract":{"type":"object","properties":{"amount_minor":{"type":"number"},"when":{"type":"array","items":{"$ref":"#/components/schemas/PriceChoiceContract"}}},"required":["amount_minor","when"],"additionalProperties":false},"PaidSkillPriceContract":{"anyOf":[{"type":"object","properties":{"amount_minor":{"type":"number"},"model":{"type":"string","const":"fixed"}},"required":["amount_minor","model"],"additionalProperties":false},{"type":"object","properties":{"cases":{"type":"array","items":{"$ref":"#/components/schemas/PaidSkillPriceCaseContract"}},"model":{"type":"string","const":"input_choice"},"selectors":{"type":"array","items":{"type":"string"}}},"required":["cases","model","selectors"],"additionalProperties":false},{"type":"object","properties":{"artifact_input":{"type":"string"},"base_amount_minor":{"type":"number"},"max_bytes":{"type":"number"},"model":{"type":"string","const":"artifact_bytes"},"unit_amount_minor":{"type":"number"},"unit_bytes":{"type":"number"}},"required":["artifact_input","base_amount_minor","max_bytes","model","unit_amount_minor","unit_bytes"],"additionalProperties":false}]},"PaidSkillRunnerOfferContract":{"type":"object","properties":{"accepted_settlement_families":{"type":"array","items":{"type":"string"}},"acts_on":{"$ref":"#/components/schemas/PaidSkillActsOnContract"},"currency":{"type":"string"},"offer_version":{"$ref":"#/components/schemas/EmbeddedOfferVersionBindingContract"},"price":{"$ref":"#/components/schemas/PaidSkillPriceContract"}},"required":["accepted_settlement_families","currency","offer_version","price"],"additionalProperties":false},"PriceChoiceContract":{"type":["string","number","boolean"]},"PrincipalReferenceContract":{"type":"object","properties":{"label":{"type":"string"},"locator":{"type":"string"},"observed_at":{"type":"string"},"proof_kind":{"$ref":"#/components/schemas/ProofKindContract"},"provider":{"type":"string"},"type":{"type":"string","const":"principal"},"uri":{"type":"string"}},"required":["type","uri"],"additionalProperties":false},"ProofKindContract":{"type":"string","enum":["effect_evidence","effect_finality","credential_resolution"]},"PublicBoundConnectorMark":{"type":"object","properties":{"digest":{"type":"string"},"url":{"type":"string"},"source":{"type":"string","const":"connector"},"connector":{"type":"string"}},"required":["connector","digest","source","url"],"additionalProperties":false},"PublicConnectorAuthMethod":{"type":"string","enum":["delegated","credentials","session","none"]},"PublicConnectorCategory":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false},"PublicConnectorCredential":{"type":"object","properties":{"kind":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"secret":{"type":"boolean"},"required":{"type":"boolean"}},"required":["name"],"additionalProperties":false}},"audience":{"type":"array","items":{"type":"string"}}},"required":["kind","fields"],"additionalProperties":false},"PublicConnectorDetail":{"type":"object","properties":{"connector":{"type":"string"},"publisher":{"$ref":"#/components/schemas/PublicPublisher"},"id":{"type":"string"},"version":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"category":{"$ref":"#/components/schemas/PublicConnectorCategory"},"runtime_capability":{"type":"boolean"},"trust_tier":{"type":"string","enum":["first_party","verified","community"]},"auth_methods":{"type":"array","items":{"$ref":"#/components/schemas/PublicConnectorAuthMethod"}},"placements":{"type":"array","items":{"$ref":"#/components/schemas/PublicConnectorPlacement"}},"manifest_digest":{"type":"string"},"content_digest":{"type":"string"},"connector_digest":{"type":"string"},"mark":{"$ref":"#/components/schemas/PublicDeclaredMark"},"operations":{"type":"array","items":{"$ref":"#/components/schemas/PublicConnectorOperationDetail"}},"setup":{"type":"array","items":{"$ref":"#/components/schemas/PublicConnectorSetup"}},"manifest":{"$ref":"#/components/schemas/PublicConnectorManifest"},"manifest_url":{"type":"string"},"install_command":{"$ref":"#/components/schemas/CopyableCommand"},"cli_release":{"type":"string"}},"required":["auth_methods","category","cli_release","connector","connector_digest","content_digest","description","id","install_command","manifest","manifest_digest","manifest_url","mark","name","operations","placements","publisher","runtime_capability","setup","trust_tier","version"],"additionalProperties":false},"PublicConnectorGuarantees":{"type":"object","properties":{"provider_idempotency":{"type":"object","properties":{"value":{"type":"string","enum":["enforced","inherent"]},"meaning":{"type":"string"}},"required":["value","meaning"],"additionalProperties":false},"readback":{"type":"object","properties":{"value":{"type":"string","const":"unavailable"},"meaning":{"type":"string"}},"required":["value","meaning"],"additionalProperties":false}},"additionalProperties":false},"PublicConnectorImplementation":{"anyOf":[{"type":"object","properties":{"http":{"type":"object","properties":{"allowed_hosts":{"type":"array","items":{"type":"string"}}},"required":["allowed_hosts"],"additionalProperties":false}},"required":["http"],"additionalProperties":false},{"type":"object","properties":{"mcp":{"type":"object","properties":{"tool":{"type":"string"},"tool_digest":{"type":"string"}},"required":["tool"],"additionalProperties":false}},"required":["mcp"],"additionalProperties":false},{"type":"object","properties":{"process":{"type":"object","properties":{"tool":{"type":"string"},"runtime_scopes":{"type":"array","items":{"type":"string"}}},"required":["tool"],"additionalProperties":false}},"required":["process"],"additionalProperties":false},{"type":"object","properties":{"web":{"type":"object","additionalProperties":{"not":{}}}},"required":["web"],"additionalProperties":false},{"type":"object","properties":{"store":{"type":"object","additionalProperties":{"not":{}}}},"required":["store"],"additionalProperties":false},{"type":"object","properties":{"artifact":{"type":"object","additionalProperties":{"not":{}}}},"required":["artifact"],"additionalProperties":false}]},"PublicConnectorManifest":{"type":"object","properties":{"schema":{"type":"string","const":"runx.connector.v1"},"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"auth":{"$ref":"#/components/schemas/PublicConnectorManifestAuth"},"parameters":{"$ref":"#/components/schemas/JsonObject"},"placements":{"$ref":"#/components/schemas/PublicConnectorManifestPlacements"},"operations":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/PublicConnectorManifestOperation"}}},"required":["schema","id","name","description","auth","placements","operations"],"additionalProperties":false},"PublicConnectorManifestAuth":{"type":"object","properties":{"credentials":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/PublicConnectorCredential"}},"delegated":{"type":"object","additionalProperties":{"not":{}}},"session":{"type":"object","properties":{"kind":{"type":"string","enum":["command","managed_command","host_browser"]},"command":{"type":"array","items":{"type":"string"}},"credential":{"type":"string"}},"required":["kind"],"additionalProperties":false},"none":{"type":"object","additionalProperties":{"not":{}}}},"additionalProperties":false},"PublicConnectorManifestOperation":{"type":"object","properties":{"description":{"type":"string"},"verb":{"$ref":"#/components/schemas/PublicConnectorOperationVerb"},"scopes":{"type":"array","items":{"type":"string"}},"credentials":{"type":"array","items":{"type":"string"}},"target":{"type":"object","properties":{"template":{"$ref":"#/components/schemas/JsonValue"},"pattern":{"type":"string"}},"required":["template"],"additionalProperties":false},"approval":{"type":"string","enum":["none","required"]},"idempotency_key_format":{"type":"string","enum":["runx","uuid"]},"guarantees":{"$ref":"#/components/schemas/PublicConnectorGuarantees"},"amount":{"anyOf":[{"type":"string","const":"none"},{"type":"object","properties":{"units":{"$ref":"#/components/schemas/Template"},"currency":{"$ref":"#/components/schemas/Template"}},"required":["units","currency"],"additionalProperties":false}]},"input_schema":{"$ref":"#/components/schemas/JsonObject"},"result_fields":{"type":"array","items":{"type":"string"}},"effect":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/ReferenceKind"},"locator":{"$ref":"#/components/schemas/JsonValue"},"each":{"$ref":"#/components/schemas/JsonValue"}},"required":["kind","locator"],"additionalProperties":false},"hosted":{"type":"object","properties":{"provider_scopes":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"implementation":{"$ref":"#/components/schemas/PublicConnectorImplementation"}},"required":["description","verb","scopes","target"],"additionalProperties":false},"PublicConnectorManifestPlacements":{"type":"object","properties":{"hosted":{"type":"object","properties":{"auth":{"type":"string","enum":["delegated","credential"]},"credential":{"type":"string"},"callers":{"type":"string","enum":["public","runtime"]}},"required":["auth"],"additionalProperties":false},"local":{"type":"object","properties":{"auth":{"type":"array","items":{"type":"string","enum":["credentials","session","none"]}},"mcp_server":{"type":"object","properties":{"transport":{"type":"string"}},"required":["transport"],"additionalProperties":false}},"required":["auth"],"additionalProperties":false}},"additionalProperties":false},"PublicConnectorOperationDetail":{"type":"object","properties":{"name":{"type":"string"},"verb":{"$ref":"#/components/schemas/PublicConnectorOperationVerb"},"description":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"implemented":{"type":"boolean"},"operation_digest":{"type":"string"},"implementation_digest":{"type":"string"},"placements":{"type":"array","items":{"$ref":"#/components/schemas/PublicOperationPlacementReadiness"}}},"required":["name","verb","description","scopes","implemented","operation_digest","placements"],"additionalProperties":false},"PublicConnectorOperationVerb":{"$ref":"#/components/schemas/OperationVerb"},"PublicConnectorPackage":{"type":"object","properties":{"connector":{"type":"string"},"version":{"type":"string"},"trust_tier":{"type":"string","enum":["first_party","verified","community"]},"files":{"type":"array","items":{"$ref":"#/components/schemas/PublicPackageFile"}},"signed_manifest":{"$ref":"#/components/schemas/RegistrySignedManifest"}},"required":["connector","version","trust_tier","files","signed_manifest"],"additionalProperties":false},"PublicConnectorPackageResponse":{"type":"object","properties":{"status":{"type":"string","const":"success"},"package":{"anyOf":[{"$ref":"#/components/schemas/PublicConnectorPackage"},{"$ref":"#/components/schemas/PublicWithdrawnConnectorPackage"}]}},"required":["status","package"],"additionalProperties":false},"PublicConnectorPlacement":{"type":"object","properties":{"placement":{"$ref":"#/components/schemas/PublicConnectorPlacementName"},"auth":{"type":"array","items":{"$ref":"#/components/schemas/PublicConnectorAuthMethod"}},"ready":{"type":"boolean"},"ready_operations":{"type":"number"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/PublicReadinessReason"}}},"required":["placement","auth","ready","ready_operations","reasons"],"additionalProperties":false},"PublicConnectorPlacementName":{"type":"string","enum":["hosted","local"]},"PublicConnectorPublishRequest":{"type":"object","properties":{"version":{"type":"string"},"files":{"type":"array","items":{"$ref":"#/components/schemas/PublicPackageFile"}}},"required":["files"],"additionalProperties":false},"PublicConnectorPublishResponse":{"type":"object","properties":{"status":{"type":"string","const":"success"},"publish":{"$ref":"#/components/schemas/PublicConnectorPublishResult"}},"required":["status","publish"],"additionalProperties":false},"PublicConnectorPublishResult":{"type":"object","properties":{"status":{"type":"string","enum":["published","unchanged"]},"connector":{"type":"string"},"version":{"type":"string"},"content_digest":{"type":"string"},"manifest_digest":{"type":"string"},"connector_digest":{"type":"string"},"trust_tier":{"type":"string","enum":["first_party","verified","community"]},"install_command":{"$ref":"#/components/schemas/CopyableCommand"},"public_url":{"type":"string"}},"required":["status","connector","version","content_digest","manifest_digest","connector_digest","trust_tier","install_command","public_url"],"additionalProperties":false},"PublicConnectorResponse":{"type":"object","properties":{"status":{"type":"string","const":"success"},"connector":{"$ref":"#/components/schemas/PublicConnectorDetail"}},"required":["status","connector"],"additionalProperties":false},"PublicConnectorSetup":{"type":"object","properties":{"placement":{"$ref":"#/components/schemas/PublicConnectorPlacementName"},"method":{"$ref":"#/components/schemas/PublicConnectorAuthMethod"},"credential":{"type":"string"},"commands":{"type":"array","items":{"type":"array","items":{"type":"string"}}}},"required":["placement","method","commands"],"additionalProperties":false},"PublicConnectorSummary":{"type":"object","properties":{"connector":{"type":"string"},"publisher":{"$ref":"#/components/schemas/PublicPublisher"},"id":{"type":"string"},"version":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"category":{"$ref":"#/components/schemas/PublicConnectorCategory"},"runtime_capability":{"type":"boolean"},"trust_tier":{"type":"string","enum":["first_party","verified","community"]},"auth_methods":{"type":"array","items":{"$ref":"#/components/schemas/PublicConnectorAuthMethod"}},"placements":{"type":"array","items":{"$ref":"#/components/schemas/PublicConnectorPlacement"}},"manifest_digest":{"type":"string"},"content_digest":{"type":"string"},"connector_digest":{"type":"string"},"mark":{"$ref":"#/components/schemas/PublicDeclaredMark"}},"required":["connector","publisher","id","version","name","description","category","runtime_capability","trust_tier","auth_methods","placements","manifest_digest","content_digest","connector_digest","mark"],"additionalProperties":false},"PublicConnectorVersionSummary":{"type":"object","properties":{"version":{"type":"string"},"created_at":{"type":"string"},"content_digest":{"type":"string"},"trust_tier":{"type":"string","enum":["first_party","verified","community"]}},"required":["version","created_at","content_digest","trust_tier"],"additionalProperties":false},"PublicConnectorVersionsResponse":{"type":"object","properties":{"connector":{"type":"string"},"versions":{"type":"array","items":{"$ref":"#/components/schemas/PublicConnectorVersionSummary"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string"},"status":{"type":"string","const":"success"}},"required":["connector","has_more","status","versions"],"additionalProperties":false},"PublicConnectorVersionsResult":{"type":"object","properties":{"connector":{"type":"string"},"versions":{"type":"array","items":{"$ref":"#/components/schemas/PublicConnectorVersionSummary"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string"}},"required":["connector","versions","has_more"],"additionalProperties":false},"PublicConnectorsQuery":{"type":"object","properties":{"q":{"type":"string"},"category":{"type":"string"},"trust_tier":{"type":"string","enum":["first_party","verified","community"]},"placement":{"$ref":"#/components/schemas/PublicConnectorPlacementName"},"publisher":{"type":"string"}},"additionalProperties":false},"PublicConnectorsResponse":{"type":"object","properties":{"status":{"type":"string","const":"success"},"query":{"$ref":"#/components/schemas/PublicConnectorsQuery"},"catalog_total":{"type":"number"},"total":{"type":"number"},"facets":{"type":"object","properties":{"categories":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"count":{"type":"number"},"id":{"type":"string"},"label":{"type":"string"}},"required":["count","id","label"]}},"placements":{"type":"array","items":{"type":"object","properties":{"placement":{"$ref":"#/components/schemas/PublicConnectorPlacementName"},"count":{"type":"number"}},"required":["placement","count"],"additionalProperties":false}}},"required":["categories","placements"],"additionalProperties":false},"connectors":{"type":"array","items":{"$ref":"#/components/schemas/PublicConnectorSummary"}},"next_cursor":{"type":"string"}},"required":["status","query","catalog_total","total","facets","connectors"],"additionalProperties":false},"PublicDeclaredMark":{"type":"object","properties":{"digest":{"type":"string"},"url":{"type":"string"},"source":{"type":"string","enum":["own","category"]}},"required":["digest","source","url"],"additionalProperties":false},"PublicEvidenceEvent":{"type":"object","properties":{"id":{"type":"string"},"kind":{"$ref":"#/components/schemas/PublicEvidenceKind"},"source":{"type":"string"},"status":{"$ref":"#/components/schemas/PublicEvidenceStatus"},"title":{"type":"string"},"timestamp":{"type":"string"},"summary":{"type":"string"},"repo":{"type":"string"},"workflow":{"type":"string"},"branch":{"type":"string"},"commit":{"type":"string"},"skill_id":{"type":"string"},"run_id":{"type":"string"},"receipt_id":{"type":"string"},"url":{"type":"string"},"metadata":{"type":"object","additionalProperties":{}},"harness":{"$ref":"#/components/schemas/PublicHarnessResult"}},"required":["id","kind","source","status","title","timestamp"],"additionalProperties":false},"PublicEvidenceInput":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/PublicEvidenceKind"},"source":{"type":"string"},"status":{"$ref":"#/components/schemas/PublicEvidenceStatus"},"title":{"type":"string"},"timestamp":{"type":"string"},"summary":{"type":"string"},"repo":{"type":"string"},"workflow":{"type":"string"},"branch":{"type":"string"},"commit":{"type":"string"},"skill_id":{"type":"string"},"run_id":{"type":"string"},"receipt_id":{"type":"string"},"url":{"type":"string"},"metadata":{"type":"object","additionalProperties":{}},"harness":{"$ref":"#/components/schemas/PublicHarnessResult"},"id":{"type":"string"}},"additionalProperties":false,"required":["kind","source","status","timestamp","title"]},"PublicEvidenceKind":{"type":"string"},"PublicEvidenceStatus":{"type":"string","enum":["success","failure","pending","running","waiting","cancelled"]},"PublicFeedItem":{"type":"object","properties":{"id":{"type":"string"},"source":{"type":"string","enum":["runx-hosted","public-evidence"]},"status":{"type":"string"},"title":{"type":"string"},"target":{"type":"string"},"timestamp":{"type":"string"},"summary":{"type":"string"},"repo":{"type":"string"},"workflow":{"type":"string"},"branch":{"type":"string"},"commit":{"type":"string"},"run_id":{"type":"string"},"receipt_id":{"type":"string"},"skill_id":{"type":"string"},"actions_count":{"type":"number"},"url":{"type":"string"},"principal":{"type":"string"},"principal_handle":{"type":"string"},"signer_trust":{"type":"string","enum":["verified","community","unverified"]},"scopes":{"type":"array","items":{"type":"string"}},"parent_receipt_id":{"type":"string"},"graph_depth":{"type":"number"},"metadata":{"type":"object","additionalProperties":{}}},"required":["id","source","status","title","target","timestamp"],"additionalProperties":false},"PublicFeedResponse":{"type":"object","properties":{"status":{"type":"string","const":"success"},"as_of":{"type":"string"},"feed":{"type":"array","items":{"$ref":"#/components/schemas/PublicFeedItem"}}},"required":["status","as_of","feed"],"additionalProperties":false},"PublicHarnessResult":{"type":"object","properties":{"producer":{"type":"string"},"verification":{"type":"string","enum":["registry","publisher"]},"suite":{"type":"string"},"attempt_id":{"type":"string"},"version":{"type":"string"},"content_digest":{"type":"string"},"result":{"type":"string","enum":["passed","failed"]},"checks_total":{"type":"number"},"checks_passed":{"type":"number"},"checks_failed":{"type":"number"},"runtime":{"type":"string"}},"required":["producer","verification","suite","attempt_id","version","content_digest","result","checks_total","checks_passed","checks_failed"],"additionalProperties":false},"PublicHarnessSummary":{"type":"object","properties":{"status":{"type":"string","enum":["passed","failed","not_recorded","older_version","unavailable"]},"declared_case_count":{"type":"number"},"declared_cases":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"runner":{"type":"string"},"expected_status":{"type":"string"}},"required":["name"],"additionalProperties":false}},"case_count":{"type":"number"},"checks_passed":{"type":"number"},"checks_failed":{"type":"number"},"receipt_ids":{"type":"array","items":{"type":"string"}},"evidence_url":{"type":"string"},"latest_run":{"$ref":"#/components/schemas/PublicEvidenceEvent"},"results":{"type":"array","items":{"$ref":"#/components/schemas/PublicEvidenceEvent"}},"recent_runs":{"type":"array","items":{"$ref":"#/components/schemas/PublicEvidenceEvent"}},"older_version":{"$ref":"#/components/schemas/PublicEvidenceEvent"}},"required":["status","declared_case_count","declared_cases","case_count","receipt_ids","results","recent_runs"],"additionalProperties":false},"PublicMark":{"type":"object","properties":{"digest":{"type":"string"},"url":{"type":"string"}},"required":["digest","url"],"additionalProperties":false},"PublicOperationPlacementReadiness":{"type":"object","properties":{"placement":{"$ref":"#/components/schemas/PublicConnectorPlacementName"},"ready":{"type":"boolean"},"reasons":{"type":"array","items":{"$ref":"#/components/schemas/PublicReadinessReason"}}},"required":["placement","ready","reasons"],"additionalProperties":false},"PublicPackageFile":{"type":"object","properties":{"path":{"type":"string"},"content":{"type":"string"}},"required":["path","content"],"additionalProperties":false},"PublicPublisher":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"handle":{"type":"string"},"display_name":{"type":"string"},"kind":{"type":"string","enum":["org","user","team"]},"verified":{"type":"boolean"},"image":{"$ref":"#/components/schemas/PublicMark"},"url":{"type":"string"}},"required":["id","slug","handle","display_name","kind","verified","url"],"additionalProperties":false},"PublicPublisherProfile":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"handle":{"type":"string"},"display_name":{"type":"string"},"kind":{"type":"string","enum":["org","user","team"]},"verified":{"type":"boolean"},"image":{"$ref":"#/components/schemas/PublicMark"},"url":{"type":"string"},"description":{"type":"string"},"links":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string"}},"required":["label","url"],"additionalProperties":false}},"skill_count":{"type":"number"},"install_count":{"type":"number"},"categories":{"type":"array","items":{"$ref":"#/components/schemas/CategoryFacetEntry"}},"updated_at":{"type":"string"}},"required":["display_name","handle","id","kind","links","slug","url","verified"],"additionalProperties":false},"PublicPublisherProfileResponse":{"type":"object","properties":{"status":{"type":"string","const":"success"},"publisher":{"$ref":"#/components/schemas/PublicPublisherProfile"}},"required":["status","publisher"],"additionalProperties":false},"PublicReadinessCheck":{"type":"string","enum":["requirement","instance","capability","delegation","approval","implementation","tolerance"]},"PublicReadinessOutcome":{"type":"string","enum":["pass","fail","required","unknown"]},"PublicReadinessReason":{"type":"object","properties":{"check":{"$ref":"#/components/schemas/PublicReadinessCheck"},"outcome":{"$ref":"#/components/schemas/PublicReadinessOutcome"},"detail":{"type":"string"}},"required":["check","outcome","detail"],"additionalProperties":false},"PublicReceiptCheck":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"result":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/PublicReceiptCheckKind"},"label":{"type":"string"}},"required":["kind","label"],"additionalProperties":false},"reason":{"type":"string"}},"required":["id","label","result","reason"],"additionalProperties":false},"PublicReceiptCheckGroup":{"type":"object","properties":{"id":{"type":"string","enum":["integrity","issuer","notarization"]},"title":{"type":"string"},"checks":{"type":"array","items":{"$ref":"#/components/schemas/PublicReceiptCheck"}}},"required":["id","title","checks"],"additionalProperties":false},"PublicReceiptCheckKind":{"type":"string","enum":["pass","fail","caution","unavailable","recorded"]},"PublicReceiptClaim":{"type":"object","properties":{"schema":{"type":"string","const":"runx.public_receipt_claim.v1"},"kind":{"type":"string"},"title":{"type":"string"},"venue":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"url":{"type":"string"}},"required":["id"],"additionalProperties":false},"subject":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string"},"label":{"type":"string"}},"required":["type","id"],"additionalProperties":false},"amount":{"type":"object","properties":{"cents":{"type":"number"},"currency":{"type":"string"}},"required":["cents","currency"],"additionalProperties":false},"source_url":{"type":"string"},"occurred_at":{"type":"string"}},"required":["schema","kind","title","venue","occurred_at"],"additionalProperties":false},"PublicReceiptNotarization":{"type":"object","properties":{"status":{"type":"string","const":"success"},"receipt":{"$ref":"#/components/schemas/PublicReceiptNotarizationRecord"}},"required":["status","receipt"],"additionalProperties":false},"PublicReceiptNotarizationRecord":{"type":"object","properties":{"notarization_status":{"type":"string","const":"notarized"},"digest":{"type":"string"},"mode":{"type":"string","enum":["full","digest_only"]},"mode_statement":{"type":"string"},"receipt_id":{"type":"string"},"declared_receipt_id":{"type":"string"},"verified_at":{"type":"string"},"sealed_at":{"type":"string"},"updated_at":{"type":"string"},"runx_version":{"type":"string"},"issuer":{"type":"object","properties":{"type":{"type":"string"},"label":{"type":"string"}},"required":["type","label"],"additionalProperties":false},"edge_key":{"type":"object","properties":{"type":{"type":"string"},"kid":{"type":"string"},"public_key_digest":{"type":"string"}},"additionalProperties":false},"verdict":{"type":"object","properties":{"valid":{"type":"boolean"},"signature_issuer_type":{"type":"string"},"signature_status":{"type":"string"},"signature_kid":{"type":"string"},"digest_status":{"type":"string"},"content_address_status":{"type":"string"},"lineage_status":{"type":"string"},"findings_count":{"type":"number"},"finding_codes":{"type":"array","items":{"type":"string"}}},"required":["findings_count","finding_codes"],"additionalProperties":false},"subject":{"type":"object","properties":{"kind":{"type":"string"},"ref_type":{"type":"string"}},"additionalProperties":false},"public_claim":{"$ref":"#/components/schemas/PublicReceiptClaim"},"claim_statement":{"type":"string"},"publisher":{"type":"object","properties":{"principal_id":{"type":"string"}},"required":["principal_id"],"additionalProperties":false},"checks":{"type":"array","items":{"$ref":"#/components/schemas/PublicReceiptCheckGroup"}},"alert":{"type":"object","properties":{"kind":{"type":"string","enum":["fail","caution"]},"label":{"type":"string"},"check_id":{"type":"string"}},"required":["kind","label","check_id"],"additionalProperties":false},"notary_verification":{"type":"object","properties":{"counter_seal":{"type":"object","properties":{"schema":{"type":"string"},"issuer":{"type":"object","properties":{"type":{"type":"string"},"kid":{"type":"string"}},"additionalProperties":false},"payload":{"type":"object","additionalProperties":{}},"payload_digest":{"type":"string"},"digest":{"type":"string"},"signature":{"type":"object","properties":{"alg":{"type":"string"},"value":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false},"signer_public_keys":{"type":"array","items":{"type":"object","properties":{"kid":{"type":"string"},"public_key_digest":{"type":"string"},"public_key_pem":{"type":"string"}},"required":["kid","public_key_digest","public_key_pem"],"additionalProperties":false}}},"required":["counter_seal","signer_public_keys"],"additionalProperties":false},"verification":{"type":"object","properties":{"notary_key_url":{"type":"string"},"notary_key_filename":{"type":"string"},"seal_command":{"$ref":"#/components/schemas/CopyableCommand"},"receipt_command":{"$ref":"#/components/schemas/CopyableCommand"}},"required":["notary_key_url","notary_key_filename","seal_command"],"additionalProperties":false},"claims":{"type":"array","items":{"type":"string"}},"limitations":{"type":"array","items":{"type":"string"}}},"required":["notarization_status","digest","mode","mode_statement","verified_at","sealed_at","updated_at","runx_version","edge_key","verdict","publisher","checks","notary_verification","verification","claims","limitations"],"additionalProperties":false},"PublicRegistryAttestation":{"type":"object","properties":{"kind":{"type":"string","enum":["source","publisher","verification"]},"id":{"type":"string"},"status":{"type":"string","enum":["verified","declared"]},"summary":{"type":"string"},"source":{"type":"string"},"issued_at":{"type":"string"},"metadata":{"type":"object","additionalProperties":{}}},"required":["kind","id","status","summary"],"additionalProperties":false},"PublicRegistryPublisher":{"type":"object","properties":{"kind":{"type":"string","enum":["organization","user","team","service","publisher"]},"id":{"type":"string"},"handle":{"type":"string"},"display_name":{"type":"string"}},"required":["kind","id"],"additionalProperties":false},"PublicRegistrySource":{"type":"object","properties":{"provider":{"type":"string","const":"github"},"repo":{"type":"string"},"repo_url":{"type":"string"},"skill_path":{"type":"string"},"profile_path":{"type":"string"},"ref":{"type":"string"},"sha":{"type":"string"},"default_branch":{"type":"string"},"event":{"type":"string","enum":["enrollment","push","tag","tombstone"]},"immutable":{"type":"boolean"},"live":{"type":"boolean"},"tombstoned":{"type":"boolean"},"tag":{"type":"string"},"publisher_handle":{"type":"string"}},"required":["provider","repo","repo_url","skill_path","ref","sha","default_branch","event","immutable","live"],"additionalProperties":false},"PublicSkillConnector":{"type":"object","properties":{"connector":{"type":"string"},"version":{"type":"string"},"name":{"type":"string"},"runtime_capability":{"type":"boolean"},"trust_tier":{"type":"string","enum":["first_party","verified","community"]},"mark":{"$ref":"#/components/schemas/PublicDeclaredMark"}},"required":["connector","version","name","runtime_capability","mark"],"additionalProperties":false},"PublicSkillDetail":{"type":"object","properties":{"skill_id":{"type":"string"},"publisher":{"$ref":"#/components/schemas/PublicPublisher"},"trust_tier":{"type":"string","enum":["first_party","verified","community"]},"maturity":{"type":"string","enum":["alpha","beta","stable"]},"name":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"},"mark":{"$ref":"#/components/schemas/PublicSubjectMark"},"discoverable":{"type":"boolean"},"relationships":{"type":"array","items":{"$ref":"#/components/schemas/PublicSkillRelationship"}},"connectors":{"type":"array","items":{"$ref":"#/components/schemas/PublicSkillConnector"}},"description":{"type":"string"},"catalog_kind":{"type":"string","enum":["skill","graph"]},"version":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"profile_mode":{"type":"string","enum":["profiled","portable"]},"runner_names":{"type":"array","items":{"type":"string"}},"paid_listing":{"$ref":"#/components/schemas/PaidSkillListingContract"},"required_scopes":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"category":{"type":"string"},"category_label":{"type":"string"},"install_count":{"type":"number"},"verified_run_count":{"type":"number"},"last_verified_run_at":{"type":"string"},"page_url":{"type":"string"},"install_command":{"$ref":"#/components/schemas/CopyableCommand"},"run_command":{"$ref":"#/components/schemas/CopyableCommand"},"catalog_visibility":{"type":"string","enum":["public","internal"]},"attestations":{"type":"array","items":{"$ref":"#/components/schemas/PublicRegistryAttestation"}},"digest":{"type":"string"},"profile_digest":{"type":"string"},"content_digest":{"type":"string"},"presentation":{"$ref":"#/components/schemas/PublicSkillPresentation"},"files":{"$ref":"#/components/schemas/PublicSkillFiles"},"versions_url":{"type":"string"},"markdown":{"type":"string"},"profile_document":{"type":"string"},"harness":{"$ref":"#/components/schemas/PublicHarnessSummary"},"recent_activity":{"type":"array","items":{"$ref":"#/components/schemas/PublicFeedItem"}},"source":{"$ref":"#/components/schemas/PublicRegistrySource"}},"required":["attestations","catalog_kind","category","category_label","connectors","content_digest","created_at","digest","discoverable","files","harness","install_command","install_count","mark","markdown","maturity","name","page_url","profile_mode","publisher","recent_activity","required_scopes","run_command","runner_names","skill_id","tags","title","trust_tier","updated_at","verified_run_count","version","versions_url"],"additionalProperties":false},"PublicSkillDetailResponse":{"type":"object","properties":{"status":{"type":"string","const":"success"},"skill":{"$ref":"#/components/schemas/PublicSkillDetail"}},"required":["status","skill"],"additionalProperties":false},"PublicSkillFiles":{"type":"object","properties":{"manual":{"type":"string"},"profile":{"type":"string"},"catalog":{"type":"string"}},"required":["manual"],"additionalProperties":false},"PublicSkillHarnessResponse":{"type":"object","properties":{"status":{"type":"string","const":"success"},"skill_id":{"type":"string"},"harness":{"$ref":"#/components/schemas/PublicHarnessSummary"}},"required":["status","skill_id","harness"],"additionalProperties":false},"PublicSkillPresentation":{"type":"object","properties":{"title":{"type":"string"},"overview":{"type":"string"},"method":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"skill":{"type":"string"},"runner":{"type":"string"},"public_skill":{"type":"object","properties":{"skill_id":{"type":"string"},"name":{"type":"string"},"page_url":{"type":"string"}},"required":["skill_id","name","page_url"],"additionalProperties":false}},"required":["title","description"],"additionalProperties":false}},"inputs":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"description":{"type":"string"},"input":{"type":"string"}},"required":["label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"description":{"type":"string"}},"required":["label"],"additionalProperties":false}},"stops":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"}},"required":["title"],"additionalProperties":false},"example":{"type":"object","properties":{"title":{"type":"string"},"path":{"type":"string"},"url":{"type":"string"}},"required":["title","path","url"],"additionalProperties":false},"relationships":{"type":"array","items":{"$ref":"#/components/schemas/PublicSkillRelationship"}}},"additionalProperties":false},"PublicSkillRelationship":{"type":"object","properties":{"kind":{"type":"string","enum":["evidence_source","handoff","ecosystem"]},"id":{"type":"string"},"label":{"type":"string"},"reference":{"type":"string"}},"required":["kind","id","label"],"additionalProperties":false},"PublicSkillSummary":{"type":"object","properties":{"skill_id":{"type":"string"},"publisher":{"$ref":"#/components/schemas/PublicPublisher"},"trust_tier":{"type":"string","enum":["first_party","verified","community"]},"maturity":{"type":"string","enum":["alpha","beta","stable"]},"name":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"},"mark":{"$ref":"#/components/schemas/PublicSubjectMark"},"discoverable":{"type":"boolean"},"relationships":{"type":"array","items":{"$ref":"#/components/schemas/PublicSkillRelationship"}},"connectors":{"type":"array","items":{"$ref":"#/components/schemas/PublicSkillConnector"}},"description":{"type":"string"},"catalog_kind":{"type":"string","enum":["skill","graph"]},"version":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"profile_mode":{"type":"string","enum":["profiled","portable"]},"runner_names":{"type":"array","items":{"type":"string"}},"paid_listing":{"$ref":"#/components/schemas/PaidSkillListingContract"},"required_scopes":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"category":{"type":"string"},"category_label":{"type":"string"},"install_count":{"type":"number"},"verified_run_count":{"type":"number"},"last_verified_run_at":{"type":"string"},"page_url":{"type":"string"},"install_command":{"$ref":"#/components/schemas/CopyableCommand"},"run_command":{"$ref":"#/components/schemas/CopyableCommand"},"catalog_visibility":{"type":"string","enum":["public","internal"]}},"required":["skill_id","publisher","trust_tier","maturity","name","title","mark","discoverable","connectors","catalog_kind","version","created_at","updated_at","profile_mode","runner_names","required_scopes","tags","category","category_label","install_count","verified_run_count","page_url","install_command","run_command"],"additionalProperties":false},"PublicSkillVersionSummary":{"type":"object","properties":{"version":{"type":"string"},"created_at":{"type":"string"},"content_digest":{"type":"string"},"trust_tier":{"type":"string","enum":["first_party","verified","community"]},"maturity":{"type":"string","enum":["alpha","beta","stable"]},"immutable":{"type":"boolean"},"source_ref":{"type":"string"},"page_url":{"type":"string"}},"required":["version","created_at","content_digest","trust_tier","maturity","immutable","page_url"],"additionalProperties":false},"PublicSkillVersionsResponse":{"type":"object","properties":{"skill_id":{"type":"string"},"versions":{"type":"array","items":{"$ref":"#/components/schemas/PublicSkillVersionSummary"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string"},"status":{"type":"string","const":"success"}},"required":["has_more","skill_id","status","versions"],"additionalProperties":false},"PublicSkillVersionsResult":{"type":"object","properties":{"skill_id":{"type":"string"},"versions":{"type":"array","items":{"$ref":"#/components/schemas/PublicSkillVersionSummary"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string"}},"required":["skill_id","versions","has_more"],"additionalProperties":false},"PublicSkillsQuery":{"type":"object","properties":{"q":{"type":"string"},"publisher":{"type":"string"},"tag":{"type":"string"},"kind":{"type":"string","enum":["skill","graph"]},"category":{"type":"string"},"profile_mode":{"type":"string","enum":["profiled","portable"]},"sort":{"type":"string","enum":["recommended","newest","a-z","most-installed","relevance"]},"include":{"type":"string","const":"unverified"},"trust_tier":{"type":"string","enum":["first_party","verified","community"]},"featured":{"type":"boolean"},"ids":{"type":"array","items":{"type":"string"}},"connector":{"type":"string"},"limit":{"type":"number"},"cursor":{"type":"string"}},"required":["q","sort","limit"],"additionalProperties":false},"PublicSkillsResponse":{"type":"object","properties":{"query":{"$ref":"#/components/schemas/PublicSkillsQuery"},"skills":{"type":"array","items":{"$ref":"#/components/schemas/PublicSkillSummary"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string"},"total":{"type":"number"},"catalog_total":{"type":"number"},"connector":{"type":"object","properties":{"connector":{"type":"string"},"name":{"type":"string"}},"required":["connector","name"],"additionalProperties":false},"facets":{"type":"object","properties":{"publishers":{"type":"array","items":{"$ref":"#/components/schemas/FacetEntry"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/FacetEntry"}},"kinds":{"type":"array","items":{"$ref":"#/components/schemas/FacetEntry"}},"categories":{"type":"array","items":{"$ref":"#/components/schemas/CategoryFacetEntry"}},"profile_modes":{"type":"array","items":{"$ref":"#/components/schemas/FacetEntry"}}},"required":["publishers","tags","kinds","categories","profile_modes"],"additionalProperties":false},"status":{"type":"string","const":"success"}},"required":["has_more","query","skills","status"],"additionalProperties":false},"PublicSkillsResult":{"type":"object","properties":{"query":{"$ref":"#/components/schemas/PublicSkillsQuery"},"skills":{"type":"array","items":{"$ref":"#/components/schemas/PublicSkillSummary"}},"has_more":{"type":"boolean"},"next_cursor":{"type":"string"},"total":{"type":"number"},"catalog_total":{"type":"number"},"connector":{"type":"object","properties":{"connector":{"type":"string"},"name":{"type":"string"}},"required":["connector","name"],"additionalProperties":false},"facets":{"type":"object","properties":{"publishers":{"type":"array","items":{"$ref":"#/components/schemas/FacetEntry"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/FacetEntry"}},"kinds":{"type":"array","items":{"$ref":"#/components/schemas/FacetEntry"}},"categories":{"type":"array","items":{"$ref":"#/components/schemas/CategoryFacetEntry"}},"profile_modes":{"type":"array","items":{"$ref":"#/components/schemas/FacetEntry"}}},"required":["publishers","tags","kinds","categories","profile_modes"],"additionalProperties":false}},"required":["query","skills","has_more"],"additionalProperties":false},"PublicSubjectMark":{"anyOf":[{"$ref":"#/components/schemas/PublicDeclaredMark"},{"$ref":"#/components/schemas/PublicBoundConnectorMark"}]},"PublicSystemStatus":{"type":"object","properties":{"overall":{"type":"string","enum":["online","degraded"]},"checked_at":{"type":"string"},"summary":{"type":"string"},"checks":{"type":"array","items":{"$ref":"#/components/schemas/PublicSystemStatusCheck"}}},"required":["overall","checked_at","summary","checks"],"additionalProperties":false},"PublicSystemStatusCheck":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"status":{"type":"string","enum":["ok","not_ready","disabled","unknown"]},"detail":{"type":"string"}},"required":["id","label","status"],"additionalProperties":false},"PublicTrustRoot":{"type":"object","properties":{"schema":{"type":"string","const":"runx.trust_root.v1"},"keys":{"type":"array","items":{"$ref":"#/components/schemas/PublicTrustRootKey"}}},"required":["schema","keys"],"additionalProperties":false},"PublicTrustRootKey":{"type":"object","properties":{"kty":{"type":"string","const":"OKP"},"crv":{"type":"string","const":"Ed25519"},"alg":{"type":"string","const":"EdDSA"},"use":{"type":"string","const":"sig"},"kid":{"type":"string"},"purpose":{"type":"string","const":"receipt_signature"},"issuer_type":{"type":"string"},"x":{"type":"string"},"public_key_digest":{"type":"string"}},"required":["kty","crv","alg","use","kid","purpose","x","public_key_digest"],"additionalProperties":false},"PublicTrustSignal":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"status":{"type":"string","enum":["verified","declared","not_declared","placeholder"]},"value":{"type":"string"}},"required":["id","label","status","value"],"additionalProperties":false},"PublicWithdrawnConnectorPackage":{"type":"object","properties":{"connector":{"type":"string"},"version":{"type":"string"},"withdrawn_at":{"type":"string"},"files":{"type":"array","items":{"$ref":"#/components/schemas/PublicPackageFile"}},"signed_manifest":{"$ref":"#/components/schemas/RegistrySignedManifest"}},"required":["connector","version","withdrawn_at","files","signed_manifest"],"additionalProperties":false},"ReferenceKind":{"type":"string","enum":["thread","comment","event","tracking_item","change_request","repository","external_url"]},"RegistrySignedManifest":{"type":"object","properties":{"schema":{"type":"string","const":"runx.registry.signed_manifest.v1"},"subject":{"$ref":"#/components/schemas/RegistrySubject"},"version":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._+-]{0,127}$"},"content_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"signer":{"type":"object","properties":{"id":{"type":"string","pattern":"^[\\x21-\\x7e]{1,128}$"},"key_id":{"type":"string","pattern":"^[\\x21-\\x7e]{1,128}$"}},"required":["id","key_id"],"additionalProperties":false},"signature":{"type":"object","properties":{"alg":{"type":"string","const":"ed25519"},"value":{"type":"string","pattern":"^base64:[A-Za-z0-9_-]+$"}},"required":["alg","value"],"additionalProperties":false}},"required":["schema","subject","version","content_digest","signer","signature"],"additionalProperties":false},"RegistrySubject":{"type":"object","properties":{"kind":{"$ref":"#/components/schemas/RegistrySubjectKind"},"name":{"type":"string","pattern":"^[a-z0-9]([a-z0-9-]{0,62}[a-z0-9])?(/[a-z0-9]([a-z0-9-]{0,62}[a-z0-9])?)?$"}},"required":["kind","name"],"additionalProperties":false},"RegistrySubjectKind":{"type":"string","enum":["skill","connector"]},"Template":{"$ref":"#/components/schemas/JsonValue"},"SellerPurchaseList":{"type":"object","properties":{"schema":{"type":"string","const":"runx.seller_purchase_page.v1"},"items":{"type":"array","items":{"$ref":"#/components/schemas/SellerPurchaseSummary"},"maxItems":100},"next_cursor":{"type":"string","minLength":1,"maxLength":512}},"required":["schema","items"],"additionalProperties":false},"SellerPurchaseListRequest":{"type":"object","properties":{"cursor":{"type":"string","minLength":1,"maxLength":512},"limit":{"type":"integer","minimum":1,"maximum":100,"default":50}},"additionalProperties":false,"description":"Seller-facing HTTP contracts owned by purchases. OpenAPI is generated from these types; portable fields reference their canonical Runx schema."},"SellerPurchaseMetricsContract":{"type":"object","properties":{"purchase_count":{"type":"integer","minimum":0},"paid_count":{"type":"integer","minimum":0},"successful_count":{"type":"integer","minimum":0},"failed_count":{"type":"integer","minimum":0},"in_progress_count":{"type":"integer","minimum":0},"delivered_count":{"type":"integer","minimum":0},"refunded_count":{"type":"integer","minimum":0},"unique_buyer_count":{"type":"integer","minimum":0},"repeat_buyer_count":{"type":"integer","minimum":0},"money":{"type":"array","items":{"type":"object","properties":{"currency":{"$ref":"#/components/schemas/RunxPurchase/properties/currency"},"gross_amount_minor":{"type":"integer","minimum":0},"refunded_amount_minor":{"type":"integer","minimum":0}},"required":["currency","gross_amount_minor","refunded_amount_minor"],"additionalProperties":false}}},"required":["purchase_count","paid_count","successful_count","failed_count","in_progress_count","delivered_count","refunded_count","unique_buyer_count","repeat_buyer_count","money"],"additionalProperties":false},"SellerPurchaseOverviewContract":{"type":"object","properties":{"schema":{"type":"string","const":"runx.seller_purchase_overview.v1"},"generated_at":{"type":"string","format":"date-time"},"periods":{"type":"array","items":{"type":"object","properties":{"period":{"type":"string","enum":["last_24_hours","last_7_days","last_30_days","all_time"]},"metrics":{"$ref":"#/components/schemas/SellerPurchaseMetricsContract"}},"required":["period","metrics"],"additionalProperties":false},"minItems":4,"maxItems":4},"tools":{"type":"array","items":{"type":"object","properties":{"offer_id":{"type":"string","minLength":1,"maxLength":256},"metrics":{"$ref":"#/components/schemas/SellerPurchaseMetricsContract"},"last_paid_at":{"type":"string","format":"date-time"}},"required":["offer_id","metrics"],"additionalProperties":false},"maxItems":100},"offers_truncated":{"type":"boolean"},"daily":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date"},"metrics":{"$ref":"#/components/schemas/SellerPurchaseMetricsContract"}},"required":["date","metrics"],"additionalProperties":false},"minItems":30,"maxItems":30}},"required":["schema","generated_at","periods","tools","offers_truncated","daily"],"additionalProperties":false},"SellerPurchaseReference":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/RunxReference/properties/type"},"uri":{"type":"string","minLength":1,"maxLength":2048}},"required":["type","uri"],"additionalProperties":false},"SellerPurchaseSummary":{"type":"object","properties":{"purchase_id":{"$ref":"#/components/schemas/RunxPurchase/properties/purchase_id"},"offer_version":{"$ref":"#/components/schemas/RunxPurchase/properties/offer_version"},"package_digest":{"$ref":"#/components/schemas/RunxPurchase/properties/package_digest"},"input_digest":{"$ref":"#/components/schemas/RunxPurchase/properties/input_digest"},"amount_minor":{"$ref":"#/components/schemas/RunxPurchase/properties/amount_minor"},"currency":{"$ref":"#/components/schemas/RunxPurchase/properties/currency"},"settlement_family":{"$ref":"#/components/schemas/RunxPurchase/properties/settlement_family"},"payment_state":{"$ref":"#/components/schemas/RunxPurchase/properties/payment_state"},"execution_state":{"$ref":"#/components/schemas/RunxPurchase/properties/execution_state"},"outcome_gate":{"$ref":"#/components/schemas/RunxPurchase/properties/outcome_gate"},"payment_ref":{"$ref":"#/components/schemas/SellerPurchaseReference"},"created_at":{"$ref":"#/components/schemas/RunxPurchase/properties/created_at"},"updated_at":{"$ref":"#/components/schemas/RunxPurchase/properties/updated_at"},"run":{"type":"object","properties":{"run_ref":{"$ref":"#/components/schemas/SellerPurchaseReference"},"attempt_count":{"type":"integer","minimum":0},"next_attempt_at":{"type":"string","format":"date-time"},"blocked_at":{"type":"string","format":"date-time"}},"required":["attempt_count","next_attempt_at"],"additionalProperties":false},"terminal":{"type":"object","properties":{"outcome":{"type":"string","enum":["fulfilment","refund"]},"delivery_state":{"type":"string","enum":["pending","delivered","suppressed"]},"delivered_at":{"type":"string","format":"date-time"},"receipt_ref":{"$ref":"#/components/schemas/SellerPurchaseReference"},"result_ref":{"$ref":"#/components/schemas/SellerPurchaseReference"},"refund_ref":{"$ref":"#/components/schemas/SellerPurchaseReference"},"failure":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":128},"message":{"type":"string","minLength":1,"maxLength":2000}},"required":["code","message"],"additionalProperties":false}},"required":["outcome","delivery_state"],"additionalProperties":false}},"required":["purchase_id","offer_version","package_digest","input_digest","amount_minor","currency","payment_state","execution_state","outcome_gate","created_at","updated_at"],"additionalProperties":false},"PublicReceiptProjection":{"type":"object","properties":{"seq":{"type":"integer","minimum":1},"event":{"type":"string","enum":["published","unpublished"]},"digest":{"type":"string"},"receipt_id":{"type":"string"},"kid":{"type":"string"},"schema":{"type":"string"},"subject_kind":{"type":"string"},"seal":{"type":"object","additionalProperties":true},"lineage_uris":{"type":"array","items":{"type":"string"}},"tombstone_reason":{"type":"string"},"published_at":{"type":"string","format":"date-time"}},"required":["seq","event","digest","lineage_uris","published_at"],"additionalProperties":false},"PublicReceiptProjectionFeedEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"success"},"cursor":{"type":"integer","minimum":0},"next_cursor":{"type":"integer","minimum":1},"receipts":{"type":"array","items":{"$ref":"#/components/schemas/PublicReceiptProjection"}}},"required":["status","cursor","receipts"],"additionalProperties":false},"PublicPublisherProfileLink":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string","format":"uri"}},"required":["label","url"],"additionalProperties":false},"HostedSkillPublishRequest":{"type":"object","properties":{"markdown":{"type":"string","description":"Complete SKILL.md document, including frontmatter."},"profile_document":{"type":"string","description":"Optional run.yaml profile document published with the skill."},"version":{"type":"string","description":"Optional version or content ref. If omitted, the registry derives one from content."},"publisher":{"type":"string","description":"The namespace to publish for, required when the principal may publish for several; it must be one it is authorized for."},"package_files":{"type":"array","description":"Optional UTF-8 skill package files persisted with the registry version and used by hosted publish admission to rerun the package harness. Allowed paths are root worker modules referenced by run.yaml, nested SKILL.md/run.yaml packages, references markdown, and tool manifests/minimal runtimes.","maxItems":500,"items":{"$ref":"#/components/schemas/HostedSkillPackageFile"}}},"required":["markdown"],"additionalProperties":false},"HostedSkillPackageFile":{"type":"object","properties":{"path":{"type":"string","description":"Relative allowlisted package path. Root SKILL.md and run.yaml use their dedicated fields."},"content":{"type":"string","description":"UTF-8 file content."}},"required":["path","content"],"additionalProperties":false},"HostedSkillPublishResult":{"type":"object","properties":{"status":{"type":"string","enum":["published","unchanged"]},"skill_id":{"type":"string"},"publisher":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"digest":{"type":"string"},"profile_digest":{"type":"string"},"paid_listing":{"$ref":"#/components/schemas/RunxPaidSkillListing"},"trust_tier":{"type":"string","const":"community"},"maturity":{"type":"string","enum":["alpha","beta","stable"]},"install_command":{"$ref":"#/components/schemas/CopyableCommand"},"run_command":{"$ref":"#/components/schemas/CopyableCommand"},"public_url":{"type":"string","format":"uri"},"harness":{"$ref":"#/components/schemas/HarnessPublishSummary"}},"required":["status","skill_id","publisher","name","version","digest","trust_tier","maturity","install_command","run_command","public_url"],"additionalProperties":false},"HostedSkillPublishEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"success"},"publish":{"$ref":"#/components/schemas/HostedSkillPublishResult"}},"required":["status","publish"],"additionalProperties":false},"HostedSkillReportRequest":{"type":"object","properties":{"version":{"type":"string","description":"Optional skill version to report. If omitted, the latest public version is reported."},"reason":{"type":"string","enum":["spam","malware","unsafe_authority","misleading","rights","other"]},"detail":{"type":"string","maxLength":2000,"description":"Optional reporter detail. Stored for moderation review, never used as trust evidence."}},"required":["reason"],"additionalProperties":false},"HostedSkillReportResult":{"type":"object","properties":{"status":{"type":"string","enum":["recorded","already_recorded"]},"id":{"type":"string"},"skill_id":{"type":"string"},"version":{"type":"string"},"reason":{"type":"string","enum":["spam","malware","unsafe_authority","misleading","rights","other"]},"created_at":{"type":"string","format":"date-time"}},"required":["status","id","skill_id","version","reason","created_at"],"additionalProperties":false},"HostedSkillReportEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"success"},"report":{"$ref":"#/components/schemas/HostedSkillReportResult"}},"required":["status","report"],"additionalProperties":false},"AcquireSkillRequest":{"type":"object","properties":{"installation_id":{"type":"string"},"version":{"type":"string"},"channel":{"type":"string"}},"required":["installation_id"],"additionalProperties":false},"SkillVersionRecordEnvelope":{"type":"object","description":"One version's signed registry record, as a registry closure holds it; the runtime verifies it against the registry's key.","properties":{"status":{"type":"string","const":"success"},"record":{"type":"object","properties":{"skill_id":{"type":"string"},"version":{"type":"string"}},"required":["skill_id","version"],"additionalProperties":true}},"required":["status","record"],"additionalProperties":false},"AcquireSkillResponse":{"type":"object","properties":{"status":{"type":"string","const":"success"},"install_count":{"type":"integer"},"acquisition":{"type":"object","properties":{"skill_id":{"type":"string"},"name":{"type":"string"},"version":{"type":"string"},"digest":{"type":"string"},"signed_manifest":{"$ref":"#/components/schemas/RegistrySignedManifest"},"markdown":{"type":"string"},"profile_document":{"type":"string"},"profile_digest":{"type":"string"},"package_files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"content":{"type":"string"}},"required":["path","content"],"additionalProperties":false}},"bundle_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"paid_listing":{"$ref":"#/components/schemas/RunxPaidSkillListing"},"trust_tier":{"type":"string","enum":["first_party","verified","community"]},"publisher":{"$ref":"#/components/schemas/PublicRegistryPublisher"},"source_metadata":{"$ref":"#/components/schemas/PublicRegistrySource"},"attestations":{"type":"array","items":{"$ref":"#/components/schemas/PublicRegistryAttestation"}},"runner_names":{"type":"array","items":{"type":"string"}}},"required":["skill_id","name","version","digest","markdown","trust_tier","publisher","attestations","runner_names"],"additionalProperties":false}},"required":["status","install_count","acquisition"],"additionalProperties":false},"WebhookAcceptedEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"accepted"},"updated":{"type":"integer"}},"required":["status","updated"],"additionalProperties":false},"PublicEvidenceIngestRequest":{"type":"object","properties":{"events":{"type":"array","items":{"$ref":"#/components/schemas/PublicEvidenceInput"}}},"required":["events"],"additionalProperties":false},"PublicEvidenceIngestEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"accepted"},"count":{"type":"integer"},"events":{"type":"array","items":{"$ref":"#/components/schemas/PublicEvidenceInput"}}},"required":["status","count","events"],"additionalProperties":false},"HarnessPublishSummary":{"type":"object","properties":{"status":{"type":"string","enum":["passed","failed","not_declared"]},"case_count":{"type":"integer"},"assertion_error_count":{"type":"integer"},"assertion_errors":{"type":"array","items":{"type":"string"}},"case_names":{"type":"array","items":{"type":"string"}},"receipt_ids":{"type":"array","items":{"type":"string"}},"graph_case_count":{"type":"integer"},"evidence_id":{"type":"string"},"evidence_url":{"type":"string","format":"uri"}},"required":["status","case_count","assertion_error_count","assertion_errors","case_names","receipt_ids"],"additionalProperties":false},"AdminRegistryPublishRequest":{"type":"object","properties":{"publisher":{"type":"string","description":"An existing publisher's namespace; administrative publication never creates one."},"version":{"type":"string"},"markdown":{"type":"string"},"profile_document":{"type":"string"},"package_files":{"type":"array","items":{"$ref":"#/components/schemas/HostedSkillPackageFile"}},"trust_tier":{"type":"string","enum":["first_party","verified","community"],"description":"The verification authority's admission for this version; community when absent."},"harness":{"$ref":"#/components/schemas/HarnessPublishSummary"}},"required":["publisher","markdown","harness"],"additionalProperties":false},"AdminRegistryPublisherRequest":{"type":"object","properties":{"slug":{"type":"string","pattern":"^[a-z0-9]([a-z0-9-]{0,62}[a-z0-9])?$"},"kind":{"type":"string","enum":["org","user","team"]},"display_name":{"type":"string","minLength":1,"maxLength":100},"verified":{"type":"boolean"},"principals":{"type":"array","items":{"type":"string","minLength":1}}},"required":["slug","kind","display_name","principals"],"additionalProperties":false},"AdminRegistryPublisher":{"type":"object","properties":{"publisher_id":{"type":"string","pattern":"^pub_[0-9a-f]{32}$"},"slug":{"type":"string"},"kind":{"type":"string","enum":["org","user","team"]},"display_name":{"type":"string"},"description":{"type":"string"},"verified":{"type":"boolean"},"image_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"links":{"type":"array","items":{"$ref":"#/components/schemas/PublicPublisherProfileLink"}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["publisher_id","slug","kind","display_name","verified","links","created_at","updated_at"],"additionalProperties":false},"AdminRegistryPublisherResponse":{"type":"object","properties":{"status":{"type":"string","const":"success"},"publisher":{"$ref":"#/components/schemas/AdminRegistryPublisher"}},"required":["status","publisher"],"additionalProperties":false},"AdminRegistryPublisherPrincipalResponse":{"type":"object","properties":{"status":{"type":"string","const":"success"},"publisher":{"type":"string"},"principal_id":{"type":"string"}},"required":["status","publisher","principal_id"],"additionalProperties":false},"AdminRegistryPublisherPrincipalRequest":{"type":"object","properties":{"principal_id":{"type":"string","minLength":1}},"required":["principal_id"],"additionalProperties":false},"PublisherImageRequest":{"type":"object","properties":{"mark_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"}},"required":["mark_digest"],"additionalProperties":false},"PublisherProfileRequest":{"type":"object","properties":{"display_name":{"type":"string","minLength":1,"maxLength":100},"description":{"oneOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"links":{"type":"array","maxItems":8,"items":{"$ref":"#/components/schemas/PublicPublisherProfileLink"}}},"additionalProperties":false},"AdminRegistryPublisherProfileRequest":{"type":"object","properties":{"display_name":{"type":"string","minLength":1,"maxLength":100},"description":{"oneOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"links":{"type":"array","maxItems":8,"items":{"$ref":"#/components/schemas/PublicPublisherProfileLink"}},"verified":{"type":"boolean"}},"additionalProperties":false},"AdminRegistryPublishEnvelope":{"type":"object","properties":{"status":{"type":"string","const":"success"},"publish":{"type":"object","additionalProperties":true},"harness":{"$ref":"#/components/schemas/HarnessPublishSummary"}},"required":["status","publish","harness"],"additionalProperties":false},"SourceAdmissionPolicy":{"type":"object","properties":{"enabled":{"type":"boolean"},"allowed_providers":{"type":"array","items":{"type":"string","minLength":1}},"allowed_sources":{"type":"array","items":{"type":"string","minLength":1}},"allowed_event_kinds":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false},"SourceObservationRequest":{"type":"object","required":["source_event","source_policy"],"properties":{"source_event":{"type":"object","required":["provider","source_locator"],"properties":{"provider":{"type":"string","minLength":1},"source_locator":{"type":"string","minLength":1}},"additionalProperties":true},"source_policy":{"$ref":"#/components/schemas/SourceAdmissionPolicy"}},"additionalProperties":false},"SourceObservation":{"type":"object","required":["schema","observation_id","content_digest","admitted_at","source_policy_digest","signal"],"properties":{"schema":{"const":"runx.source_observation.v1"},"observation_id":{"type":"string","pattern":"^obs_[a-f0-9]{64}$"},"content_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"source_policy_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"admitted_at":{"type":"string","format":"date-time"},"signal":{"$ref":"#/components/schemas/RunxSignal"}},"additionalProperties":false},"SourceObservationEnvelope":{"type":"object","required":["status","observation"],"properties":{"status":{"enum":["accepted","duplicate"]},"observation":{"$ref":"#/components/schemas/SourceObservation"}},"additionalProperties":false},"SourceObservationPage":{"type":"object","required":["status","observations"],"properties":{"status":{"const":"success"},"observations":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/SourceObservation"}},"next_cursor":{"type":"string"}},"additionalProperties":false},"TenantReceiptSummaryEnvelope":{"type":"object","required":["status","receipt"],"properties":{"status":{"enum":["accepted","duplicate","found"]},"receipt":{"type":"object"},"duplicate_of":{"type":"string"}},"additionalProperties":false},"TenantReceiptSummaryList":{"type":"object","required":["status","receipts"],"properties":{"status":{"const":"success"},"receipts":{"type":"array","maxItems":100,"items":{"type":"object"}},"next_cursor":{"type":"string"}},"additionalProperties":false},"ArtifactAllocationRequest":{"type":"object","required":["operation","run_id","input"],"properties":{"operation":{"type":"string","const":"artifact.allocate"},"run_id":{"type":"string","minLength":1,"maxLength":256},"input":{"type":"object","required":["idempotency_key","data_base64","content_digest","media_type"],"properties":{"idempotency_key":{"type":"string","minLength":1,"maxLength":500},"data_base64":{"type":"string"},"content_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"media_type":{"type":"string","minLength":1,"maxLength":200}},"additionalProperties":false}},"additionalProperties":false},"ArtifactInspectionRequest":{"type":"object","required":["operation","run_id","input"],"properties":{"operation":{"type":"string","const":"artifact.inspect"},"run_id":{"type":"string","minLength":1,"maxLength":256},"input":{"type":"object","required":["artifact_uri"],"properties":{"artifact_uri":{"type":"string","pattern":"^runx:artifact:sha256:[0-9a-f]{64}$"}},"additionalProperties":false}},"additionalProperties":false},"ArtifactHandoffRequest":{"type":"object","required":["operation","run_id","input"],"properties":{"operation":{"type":"string","const":"artifact.handoff"},"run_id":{"type":"string","minLength":1,"maxLength":256},"input":{"type":"object","required":["source_artifact_uri","target_principal_id","idempotency_key"],"properties":{"source_artifact_uri":{"type":"string","pattern":"^runx:artifact:sha256:[0-9a-f]{64}$"},"target_principal_id":{"type":"string","minLength":1,"maxLength":200},"idempotency_key":{"type":"string","minLength":1,"maxLength":500}},"additionalProperties":false}},"additionalProperties":false},"ArtifactDownloadRequest":{"type":"object","required":["operation","run_id","input"],"properties":{"operation":{"type":"string","const":"artifact.download"},"run_id":{"type":"string","minLength":1,"maxLength":256},"input":{"type":"object","required":["artifact_uri"],"properties":{"artifact_uri":{"type":"string","pattern":"^runx:artifact:sha256:[0-9a-f]{64}$"},"maximum_bytes":{"type":"integer","minimum":1}},"additionalProperties":false}},"additionalProperties":false},"ArtifactAccessRequest":{"type":"object","required":["operation","run_id","input"],"properties":{"operation":{"type":"string","const":"artifact.access"},"run_id":{"type":"string","minLength":1,"maxLength":256},"input":{"type":"object","required":["artifact_uri"],"properties":{"artifact_uri":{"type":"string","pattern":"^runx:artifact:sha256:[0-9a-f]{64}$"},"expires_in_seconds":{"type":"integer","minimum":1,"maximum":300}},"additionalProperties":false}},"additionalProperties":false},"ArtifactOperationRequest":{"oneOf":[{"$ref":"#/components/schemas/ArtifactAllocationRequest"},{"$ref":"#/components/schemas/ArtifactInspectionRequest"},{"$ref":"#/components/schemas/ArtifactHandoffRequest"},{"$ref":"#/components/schemas/ArtifactDownloadRequest"},{"$ref":"#/components/schemas/ArtifactAccessRequest"}]},"ArtifactOperationEnvelope":{"type":"object","required":["schema","status","provider","operation","target","result","transport","readback_uri","access","principal_uri","finality","result_digest"],"properties":{"schema":{"type":"string","const":"runx.provider.operation.v1"},"status":{"type":"string","const":"success"},"provider":{"type":"string","const":"runx-artifact"},"operation":{"type":"string","enum":["artifact.allocate","artifact.inspect","artifact.handoff","artifact.download","artifact.access"]},"target":{"type":"string","pattern":"^runx:artifact:sha256:[0-9a-f]{64}$"},"result":{"oneOf":[{"$ref":"#/components/schemas/HostedArtifactEvidence"},{"$ref":"#/components/schemas/HostedArtifactHandoffEvidence"},{"$ref":"#/components/schemas/HostedArtifactDownloadEvidence"},{"$ref":"#/components/schemas/HostedArtifactAccessEvidence"}]},"transport":{"type":"string","const":"hosted_control_plane"},"readback_uri":{"type":"string"},"access":{"type":"string","enum":["read","mutate"]},"principal_uri":{"type":"string"},"finality":{"type":"string","const":"verified"},"result_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"operation_id":{"type":"string"},"idempotency_key":{"type":"string"}},"oneOf":[{"required":["operation_id","idempotency_key"],"properties":{"operation":{"const":"artifact.allocate"},"access":{"const":"mutate"},"result":{"$ref":"#/components/schemas/HostedArtifactEvidence"}}},{"properties":{"operation":{"const":"artifact.inspect"},"access":{"const":"read"},"result":{"$ref":"#/components/schemas/HostedArtifactEvidence"}},"not":{"anyOf":[{"required":["operation_id"]},{"required":["idempotency_key"]}]}},{"required":["operation_id","idempotency_key"],"properties":{"operation":{"const":"artifact.handoff"},"access":{"const":"mutate"},"result":{"$ref":"#/components/schemas/HostedArtifactHandoffEvidence"}}},{"properties":{"operation":{"const":"artifact.download"},"access":{"const":"read"},"result":{"$ref":"#/components/schemas/HostedArtifactDownloadEvidence"}},"not":{"anyOf":[{"required":["operation_id"]},{"required":["idempotency_key"]}]}},{"properties":{"operation":{"const":"artifact.access"},"access":{"const":"read"},"result":{"$ref":"#/components/schemas/HostedArtifactAccessEvidence"}},"not":{"anyOf":[{"required":["operation_id"]},{"required":["idempotency_key"]}]}}],"additionalProperties":false},"HostedArtifactDownloadEvidence":{"type":"object","required":["artifact_uri","content_digest","media_type","size_bytes","created_at","data_base64"],"properties":{"artifact_uri":{"type":"string","pattern":"^runx:artifact:sha256:[0-9a-f]{64}$"},"content_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"media_type":{"type":"string","minLength":1,"maxLength":200},"size_bytes":{"type":"integer","minimum":1},"created_at":{"type":"string","format":"date-time"},"data_base64":{"type":"string"}},"additionalProperties":false},"HostedArtifactAccessEvidence":{"type":"object","required":["artifact_uri","content_digest","media_type","size_bytes","created_at","url","expires_at"],"properties":{"artifact_uri":{"type":"string","pattern":"^runx:artifact:sha256:[0-9a-f]{64}$"},"content_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"media_type":{"type":"string","minLength":1,"maxLength":200},"size_bytes":{"type":"integer","minimum":1},"created_at":{"type":"string","format":"date-time"},"url":{"type":"string","format":"uri"},"expires_at":{"type":"string","format":"date-time"}},"additionalProperties":false},"HostedArtifactEvidence":{"type":"object","required":["artifact_uri","content_digest","media_type","size_bytes","created_at"],"properties":{"artifact_uri":{"type":"string","pattern":"^runx:artifact:sha256:[0-9a-f]{64}$"},"content_digest":{"type":"string","pattern":"^sha256:[0-9a-f]{64}$"},"media_type":{"type":"string","minLength":1,"maxLength":200},"size_bytes":{"type":"integer","minimum":1},"created_at":{"type":"string","format":"date-time"}},"additionalProperties":false},"HostedArtifactHandoffEvidence":{"type":"object","required":["source_artifact_uri","target_principal_uri","artifact"],"properties":{"source_artifact_uri":{"type":"string","pattern":"^runx:artifact:sha256:[0-9a-f]{64}$"},"target_principal_uri":{"type":"string","pattern":"^runx:principal:.+$"},"artifact":{"$ref":"#/components/schemas/HostedArtifactEvidence"}},"additionalProperties":false},"ReceiptNotarizeRequest":{"oneOf":[{"type":"object","required":["receipt"],"properties":{"publish":{"type":"boolean"},"public_claim":{"$ref":"#/components/schemas/ReceiptPublicClaim"},"receipt":{"type":"object","additionalProperties":true}},"additionalProperties":false},{"type":"object","required":["receipt_raw"],"properties":{"publish":{"type":"boolean"},"public_claim":{"$ref":"#/components/schemas/ReceiptPublicClaim"},"receipt_raw":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["mode","digest"],"properties":{"mode":{"type":"string","const":"digest_only"},"publish":{"type":"boolean"},"public_claim":{"$ref":"#/components/schemas/ReceiptPublicClaim"},"digest":{"type":"string"},"receipt_id":{"type":"string"}},"additionalProperties":false}]},"ReceiptPublicClaim":{"type":"object","required":["schema","kind","title","venue","occurred_at"],"properties":{"schema":{"type":"string","const":"runx.public_receipt_claim.v1"},"kind":{"type":"string","enum":["payout","funding","judgment","profile_update","delivery","signup"]},"title":{"type":"string","maxLength":96},"venue":{"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string","maxLength":48},"url":{"type":"string","format":"uri"}},"additionalProperties":false},"subject":{"type":"object","required":["type","id"],"properties":{"type":{"type":"string"},"id":{"type":"string"},"label":{"type":"string","maxLength":80}},"additionalProperties":false},"amount":{"type":"object","required":["cents","currency"],"properties":{"cents":{"type":"integer","minimum":0},"currency":{"type":"string","minLength":3,"maxLength":3}},"additionalProperties":false},"source_url":{"type":"string","format":"uri"},"occurred_at":{"type":"string","format":"date-time"}},"additionalProperties":false},"ReceiptNotaryEnvelope":{"type":"object","required":["status","replay_status","digest","mode","published","runx_version","verified_at","verdict","counter_seal"],"properties":{"status":{"type":"string","const":"notarized"},"replay_status":{"type":"string","enum":["created","existing"]},"digest":{"type":"string"},"mode":{"type":"string","enum":["full","digest_only"]},"published":{"type":"boolean"},"receipt_id":{"type":"string"},"public_claim":{"$ref":"#/components/schemas/ReceiptPublicClaim"},"public_url":{"type":"string","format":"uri"},"edge_issuer":{"type":"object","additionalProperties":true},"runx_version":{"type":"string"},"verified_at":{"type":"string","format":"date-time"},"verdict":{"type":"object","additionalProperties":true},"counter_seal":{"type":"object","additionalProperties":true}},"additionalProperties":false},"ReceiptVerificationFailedEnvelope":{"type":"object","required":["error","code","verdict"],"properties":{"error":{"type":"string"},"code":{"type":"string","const":"receipt_verification_failed"},"verdict":{"type":"object","additionalProperties":true}},"additionalProperties":false},"CreateAccountRequest":{"type":"object","properties":{"display_name":{"type":"string"}}},"AccountCreatedEnvelope":{"type":"object","required":["status","principal","credential"],"properties":{"status":{"const":"created"},"principal":{"type":"object"},"credential":{"type":"object","required":["credential_id","token"],"properties":{"credential_id":{"type":"string"},"token":{"type":"string"}}}}},"StripeSetupIntentRequest":{"type":"object","properties":{"idempotency_key":{"type":"string"}}},"StripeSetupIntentEnvelope":{"type":"object","required":["status","stripe_setup"],"properties":{"status":{"const":"created"},"stripe_setup":{"type":"object","required":["customer","setup_intent_id","client_secret"],"properties":{"customer":{"type":"string"},"setup_intent_id":{"type":"string"},"client_secret":{"type":"string"}}}}},"StripePaymentMethodEnvelope":{"type":"object","required":["status","stripe_payment_method"],"properties":{"status":{"const":"success"},"stripe_payment_method":{"type":"object","required":["principal_id","paymentMethod","created_at","updated_at"],"properties":{"principal_id":{"type":"string"},"customer":{"type":"string"},"paymentMethod":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"}}}}},"BillingTopupRequest":{"type":"object","required":["amount"],"properties":{"amount":{"type":"integer","minimum":1},"idempotency_key":{"type":"string"}}},"BillingTopupEnvelope":{"type":"object","required":["status","balance","credited","debited","receipt_id"],"properties":{"status":{"enum":["applied","already_applied"]},"balance":{"type":"integer"},"credited":{"type":"integer"},"debited":{"type":"integer"},"receipt_id":{"type":"string"}}},"BillingBalanceEnvelope":{"type":"object","required":["status","balance","credited","debited"],"properties":{"status":{"const":"success"},"balance":{"type":"integer"},"credited":{"type":"integer"},"debited":{"type":"integer"}}},"EntitlementEnvelope":{"type":"object","required":["status","entitlement"],"properties":{"status":{"const":"success"},"entitlement":{"type":"object"}}},"EntitlementListEnvelope":{"type":"object","required":["status","entitlements"],"properties":{"status":{"const":"success"},"entitlements":{"type":"array","items":{"type":"object"}}}},"PutEntitlementRequest":{"type":"object","required":["subscription_reference"],"properties":{"principal_id":{"type":"string"},"subscription_reference":{"type":"string"}}},"StripeConnectOnboardingStartRequest":{"type":"object","required":["refresh_url","return_url"],"properties":{"refresh_url":{"type":"string","format":"uri"},"return_url":{"type":"string","format":"uri"},"seller_principal_id":{"type":"string"},"email":{"type":"string"},"country":{"type":"string"}},"additionalProperties":false},"StripeConnectSeller":{"type":"object","required":["principal_id","stripe_account_id","charges_enabled","payouts_enabled","details_submitted","status","registered_at","updated_at"],"properties":{"principal_id":{"type":"string"},"stripe_account_id":{"type":"string"},"charges_enabled":{"type":"boolean"},"payouts_enabled":{"type":"boolean"},"details_submitted":{"type":"boolean"},"status":{"type":"string","enum":["pending","enabled","restricted"]},"registered_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"additionalProperties":false},"StripeConnectOnboardingStartEnvelope":{"type":"object","required":["ok","onboarding_url","expires_at","seller"],"properties":{"ok":{"const":true},"onboarding_url":{"type":"string","format":"uri"},"expires_at":{"oneOf":[{"type":"integer"},{"type":"string"}]},"seller":{"$ref":"#/components/schemas/StripeConnectSeller"}},"additionalProperties":false},"StripeConnectOnboardingStatusEnvelope":{"type":"object","required":["ok","seller"],"properties":{"ok":{"const":true},"seller":{"oneOf":[{"$ref":"#/components/schemas/StripeConnectSeller"},{"type":"null"}]}},"additionalProperties":false},"MarketplaceFundingRequest":{"type":"object","required":["idempotency_key","posting_id","payer_ref","payee_ref","currency","price_cents","fee_cents","claim_limit","funded_claim_slots"],"properties":{"principal_id":{"type":"string"},"idempotency_key":{"type":"string"},"posting_id":{"type":"string"},"payer_ref":{"type":"string"},"payee_ref":{"type":"string"},"currency":{"type":"string"},"price_cents":{"type":"integer","minimum":1},"fee_cents":{"type":"integer","minimum":0},"claim_limit":{"type":"integer","minimum":1},"funded_claim_slots":{"type":"integer","minimum":1},"quote_digest":{"type":"string"},"quote_expires_at":{"type":"string","format":"date-time"},"refund_policy_ref":{"type":"string"}},"additionalProperties":false},"PayPalMarketplaceOrderRequest":{"type":"object","required":["idempotency_key","posting_id","payer_ref","payee_ref","currency","price_cents","fee_cents","claim_limit","funded_claim_slots"],"properties":{"principal_id":{"type":"string"},"idempotency_key":{"type":"string"},"posting_id":{"type":"string"},"payer_ref":{"type":"string"},"payee_ref":{"type":"string"},"currency":{"type":"string"},"price_cents":{"type":"integer","minimum":1},"fee_cents":{"type":"integer","minimum":0},"claim_limit":{"type":"integer","minimum":1},"funded_claim_slots":{"type":"integer","minimum":1},"quote_digest":{"type":"string"},"quote_expires_at":{"type":"string","format":"date-time"},"refund_policy_ref":{"type":"string"},"return_url":{"type":"string","format":"uri"},"cancel_url":{"type":"string","format":"uri"}},"additionalProperties":false},"PayPalMarketplaceCaptureRequest":{"type":"object","required":["idempotency_key","posting_id","payer_ref","payee_ref","currency","price_cents","fee_cents","claim_limit","funded_claim_slots","order_id"],"properties":{"principal_id":{"type":"string"},"idempotency_key":{"type":"string"},"posting_id":{"type":"string"},"payer_ref":{"type":"string"},"payee_ref":{"type":"string"},"currency":{"type":"string"},"price_cents":{"type":"integer","minimum":1},"fee_cents":{"type":"integer","minimum":0},"claim_limit":{"type":"integer","minimum":1},"funded_claim_slots":{"type":"integer","minimum":1},"quote_digest":{"type":"string"},"quote_expires_at":{"type":"string","format":"date-time"},"refund_policy_ref":{"type":"string"},"order_id":{"type":"string"}},"additionalProperties":false},"PayPalOrderEnvelope":{"type":"object","required":["ok","order_id","status","amount_cents","currency"],"properties":{"ok":{"const":true},"order_id":{"type":"string"},"status":{"type":"string"},"approval_url":{"type":"string","format":"uri"},"amount_cents":{"type":"integer","minimum":1},"currency":{"type":"string"}},"additionalProperties":false},"X402MarketplaceFundingRequest":{"type":"object","required":["idempotency_key","posting_id","payer_ref","payee_ref","currency","price_cents","fee_cents","claim_limit","funded_claim_slots","payment_payload","payment_requirements"],"properties":{"principal_id":{"type":"string"},"idempotency_key":{"type":"string"},"posting_id":{"type":"string"},"payer_ref":{"type":"string"},"payee_ref":{"type":"string"},"currency":{"type":"string"},"price_cents":{"type":"integer","minimum":1},"fee_cents":{"type":"integer","minimum":0},"claim_limit":{"type":"integer","minimum":1},"funded_claim_slots":{"type":"integer","minimum":1},"quote_digest":{"type":"string"},"quote_expires_at":{"type":"string","format":"date-time"},"refund_policy_ref":{"type":"string"},"payment_payload":{"$ref":"#/components/schemas/X402V2PaymentPayload"},"payment_requirements":{"$ref":"#/components/schemas/X402V2PaymentRequirements"}},"additionalProperties":false},"X402MarketplaceRefundRequest":{"type":"object","required":["funding_receipt_id","idempotency_key","amount_cents","refund_basis","reason","worker_slots_refunded","worker_refunded_cents","fee_refunded_cents"],"properties":{"funding_receipt_id":{"type":"string"},"idempotency_key":{"type":"string"},"amount_cents":{"type":"integer","minimum":1},"refund_basis":{"type":"string"},"reason":{"type":"string"},"worker_slots_refunded":{"type":"integer","minimum":0},"worker_refunded_cents":{"type":"integer","minimum":0},"fee_refunded_cents":{"type":"integer","minimum":0},"policy_decision_ref":{"type":"string"}},"additionalProperties":false},"X402SettlementPendingEnvelope":{"type":"object","required":["ok","status","code","message","retryable"],"properties":{"ok":{"const":true},"status":{"const":"pending"},"code":{"const":"settlement_pending"},"message":{"type":"string"},"retryable":{"const":true}},"additionalProperties":false},"X402MarketplacePayoutRequest":{"type":"object","required":["idempotency_key","posting_id","claim_id","worker_principal_id","rail","payout_identity_hash","payee_ref","currency","amount_cents","source_funding_intent_id","settled_at"],"properties":{"idempotency_key":{"type":"string"},"posting_id":{"type":"string"},"claim_id":{"type":"string"},"worker_principal_id":{"type":"string"},"rail":{"type":"string"},"payout_identity_hash":{"type":"string"},"payee_ref":{"type":"string"},"payer_ref":{"type":"string"},"currency":{"type":"string"},"amount_cents":{"type":"integer","minimum":1},"source_funding_intent_id":{"type":"string"},"payout_basis_ref":{"type":"string"},"settled_at":{"type":"string","format":"date-time"}},"additionalProperties":false},"X402MarketplaceFloatPayoutRequest":{"type":"object","required":["idempotency_key","posting_id","claim_id","worker_principal_id","rail","payout_identity_hash","payee_ref","currency","amount_cents","settled_at"],"properties":{"idempotency_key":{"type":"string"},"posting_id":{"type":"string"},"claim_id":{"type":"string"},"worker_principal_id":{"type":"string"},"rail":{"type":"string"},"payout_identity_hash":{"type":"string"},"payee_ref":{"type":"string"},"payer_ref":{"type":"string"},"currency":{"type":"string"},"amount_cents":{"type":"integer","minimum":1},"source_funding_intent_id":{"type":"string"},"payout_basis_ref":{"type":"string"},"settled_at":{"type":"string","format":"date-time"}},"additionalProperties":false},"X402WorkerWalletRequest":{"type":"object","required":["worker_principal_id","rail","address"],"properties":{"worker_principal_id":{"type":"string"},"rail":{"type":"string"},"address":{"type":"string"}},"additionalProperties":false},"X402WorkerWalletEnvelope":{"type":"object","required":["ok"],"properties":{"ok":{"const":true}},"additionalProperties":false},"MarketplacePayoutRequest":{"type":"object","required":["idempotency_key","posting_id","claim_id","destination_account_id","payee_ref","currency","amount_cents","source_funding_intent_id","settled_at"],"properties":{"principal_id":{"type":"string"},"idempotency_key":{"type":"string"},"posting_id":{"type":"string"},"claim_id":{"type":"string"},"destination_account_id":{"type":"string"},"payee_ref":{"type":"string"},"payer_ref":{"type":"string"},"currency":{"type":"string"},"amount_cents":{"type":"integer","minimum":1},"source_funding_intent_id":{"type":"string"},"settled_at":{"type":"string","format":"date-time"}},"additionalProperties":false},"MarketplaceRefundRequest":{"type":"object","required":["idempotency_key","amount_cents","refund_basis","reason"],"oneOf":[{"required":["funding_receipt_id","worker_slots_refunded","worker_refunded_cents","fee_refunded_cents"]},{"required":["payout_receipt_id","payer_ref"]}],"properties":{"funding_receipt_id":{"type":"string"},"payout_receipt_id":{"type":"string"},"idempotency_key":{"type":"string"},"amount_cents":{"type":"integer","minimum":1},"refund_basis":{"type":"string"},"reason":{"type":"string"},"payer_ref":{"type":"string"},"worker_slots_refunded":{"type":"integer","minimum":0},"worker_refunded_cents":{"type":"integer","minimum":0},"fee_refunded_cents":{"type":"integer","minimum":0},"policy_decision_ref":{"type":"string"}},"additionalProperties":false},"PayPalMarketplaceRefundRequest":{"type":"object","required":["funding_receipt_id","idempotency_key","amount_cents","refund_basis","reason","worker_slots_refunded","worker_refunded_cents","fee_refunded_cents"],"properties":{"funding_receipt_id":{"type":"string"},"idempotency_key":{"type":"string"},"amount_cents":{"type":"integer","minimum":1},"refund_basis":{"type":"string"},"reason":{"type":"string"},"worker_slots_refunded":{"type":"integer","minimum":0},"worker_refunded_cents":{"type":"integer","minimum":0},"fee_refunded_cents":{"type":"integer","minimum":0},"policy_decision_ref":{"type":"string"}},"additionalProperties":false},"MarketplaceReceiptEnvelope":{"type":"object","required":["ok","receipt","idempotent_replay"],"properties":{"ok":{"const":true},"receipt":{"type":"object","additionalProperties":true},"idempotent_replay":{"type":"boolean"}},"additionalProperties":false},"X402MarketplaceQuoteRequest":{"type":"object","required":["resource","price_cents","fee_cents","funded_claim_slots"],"properties":{"resource":{"type":"string"},"description":{"type":"string"},"price_cents":{"type":"integer","minimum":1},"fee_cents":{"type":"integer","minimum":0},"funded_claim_slots":{"type":"integer","minimum":1},"max_timeout_seconds":{"type":"integer","minimum":1}},"additionalProperties":false},"X402SettlementTarget":{"type":"object","required":["network","asset","pay_to","asset_decimals"],"properties":{"network":{"type":"string","enum":["base-sepolia","base"]},"asset":{"type":"string"},"pay_to":{"type":"string"},"asset_decimals":{"type":"integer","minimum":0},"eip712_domain":{"type":"object","description":"Present on readback: the asset's EIP-712 domain a buyer signs its transfer authorization against, derived from the asset and never configured. Ignored on write.","required":["name","version"],"properties":{"name":{"type":"string"},"version":{"type":"string"}},"additionalProperties":false},"recommended":{"type":"boolean"}},"additionalProperties":false},"X402SettlementTargetsRequest":{"type":"object","required":["targets"],"properties":{"targets":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/X402SettlementTarget"}}},"additionalProperties":false},"X402SettlementTargetsEnvelope":{"type":"object","required":["ok","outbound_configured","targets"],"properties":{"ok":{"const":true},"grant_id":{"type":"string"},"outbound_configured":{"type":"boolean"},"targets":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/X402SettlementTarget"}}},"additionalProperties":false},"X402QuoteEnvelope":{"type":"object","required":["ok","accepts","payment_requirements"],"properties":{"ok":{"const":true},"accepts":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/X402V2PaymentRequirements"}},"payment_requirements":{"$ref":"#/components/schemas/X402V2PaymentRequirements"}},"additionalProperties":false},"RunxReference":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1","x-runx-source-id":"https://schemas.runx.ai/runx/reference/v1.json"},"RunxPaidSkillListing":{"additionalProperties":false,"description":"Immutable marketplace identity and commercial terms for paid runners in one published skill version. Seller identity is resolved by the authenticated registry boundary and is never accepted from `run.yaml`.","properties":{"bundle_digest":{"description":"The registry's digest of the published bundle's files.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"offers":{"additionalProperties":{"additionalProperties":false,"description":"One immutable, registry-resolved runner offer.","properties":{"accepted_settlement_families":{"items":{"maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"acts_on":{"additionalProperties":false,"description":"A resource an earlier purchase bought that a paid runner acts on, such as the inbox an extension extends. runx admits the purchase only while its buyer holds that resource, so the buyer hands the seller's run no bearer.","properties":{"connector":{"description":"The seller connector the resource is held in.","minLength":1,"type":"string"},"credential":{"description":"That connector's `kind: purchase` credential.","maxLength":64,"pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"},"target":{"description":"The held resource, rendered from the runner's inputs alone."}},"required":["connector","credential","target"],"title":"PaidSkillActsOn","type":"object"},"currency":{"pattern":"^[A-Z]{3}$","type":"string"},"offer_version":{"additionalProperties":false,"properties":{"input_schema_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"offer_id":{"minLength":1,"type":"string"},"output_schema_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"profile_digest":{"description":"The digest of the profile that declares the offer at that version.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"version":{"description":"The package version the offer is sold at.","minLength":1,"type":"string"}},"required":["offer_id","version","profile_digest","input_schema_digest","output_schema_digest"],"title":"EmbeddedOfferVersionBinding","type":"object"},"price":{"anyOf":[{"additionalProperties":false,"description":"One amount for every call.","properties":{"amount_minor":{"maximum":9007199254740991,"minimum":1,"type":"integer"},"model":{"const":"fixed","type":"string"}},"required":["model","amount_minor"],"type":"object"},{"additionalProperties":false,"description":"An amount for each combination of values of the selector inputs, each an `enum` input the runner requires. The cases cover every combination exactly once.","properties":{"cases":{"items":{"additionalProperties":false,"description":"One `input_choice` case: the selector values, in selector order, and what a call with them costs.","properties":{"amount_minor":{"maximum":9007199254740991,"minimum":1,"type":"integer"},"when":{"items":{"oneOf":[{"type":"string"},{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},{"type":"boolean"}],"title":"PriceChoice"},"type":"array"}},"required":["when","amount_minor"],"title":"PaidSkillPriceCase","type":"object"},"type":"array"},"model":{"const":"input_choice","type":"string"},"selectors":{"items":{"minLength":1,"type":"string"},"type":"array"}},"required":["model","selectors","cases"],"type":"object"},{"additionalProperties":false,"description":"A base amount plus a unit amount for each started `unit_bytes` of the committed artifact the `artifact_input` names, up to `max_bytes`.","properties":{"artifact_input":{"minLength":1,"type":"string"},"base_amount_minor":{"maximum":9007199254740991,"minimum":1,"type":"integer"},"max_bytes":{"minimum":1,"type":"integer"},"model":{"const":"artifact_bytes","type":"string"},"unit_amount_minor":{"maximum":9007199254740991,"minimum":1,"type":"integer"},"unit_bytes":{"minimum":1,"type":"integer"}},"required":["model","artifact_input","base_amount_minor","unit_bytes","unit_amount_minor","max_bytes"],"type":"object"}],"description":"How an offer prices one call: from the listing and the inputs the runner receives, never from the runner. Cloud and the buyer's kernel compute the same amount, so nothing the buyer or the seller's runner says can change it.","title":"PaidSkillPrice"}},"required":["offer_version","price","currency","accepted_settlement_families"],"title":"PaidSkillRunnerOffer","type":"object"},"maxProperties":64,"minProperties":1,"propertyNames":{"minLength":1},"type":"object"},"profile_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"seller_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"const":"principal","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PrincipalReference","type":"object","x-runx-schema":"runx.reference.v1"},"skill_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"skill_id":{"minLength":1,"type":"string"},"version":{"minLength":1,"type":"string"}},"required":["skill_id","version","skill_digest","profile_digest","bundle_digest","seller_ref","offers"],"title":"PaidSkillListing","type":"object","x-runx-packet":true,"x-runx-schema":"runx.marketplace.paid_skill_listing.v1","x-runx-source-id":"https://schemas.runx.ai/runx/marketplace/paid-skill-listing/v1.json"},"RunxOfferVersionBinding":{"additionalProperties":false,"properties":{"input_schema_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"offer_id":{"minLength":1,"type":"string"},"output_schema_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"profile_digest":{"description":"The digest of the profile that declares the offer at that version.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"version":{"description":"The package version the offer is sold at.","minLength":1,"type":"string"}},"required":["offer_id","version","profile_digest","input_schema_digest","output_schema_digest"],"title":"OfferVersionBinding","type":"object","x-runx-packet":true,"x-runx-schema":"runx.payment.offer_version_binding.v1","x-runx-source-id":"https://schemas.runx.ai/runx/payment/offer-version-binding/v1.json"},"RunxPurchase":{"additionalProperties":false,"properties":{"accepted_settlement_families":{"items":{"maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"act_ref":{"additionalProperties":false,"description":"The purchase's act, fixed before any run: what the seller's run performs and capacity reserves.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"amount_minor":{"maximum":9007199254740991,"minimum":1,"type":"integer"},"buyer_key":{"description":"The key the buyer claims with; runx's purchase receipt binds it.","pattern":"^ed25519:[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$","type":"string"},"buyer_ref":{"additionalProperties":false,"description":"The buyer: the principal that pays.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"const":"principal","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PrincipalReference","type":"object","x-runx-schema":"runx.reference.v1"},"canonicalizer_version":{"description":"The sole V1 canonicalization identifier for digest-bound inputs.","enum":["runx.receipt.c14n.v1"],"title":"PurchaseCanonicalizerVersion","type":"string"},"created_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"currency":{"pattern":"^[A-Z]{3}$","type":"string"},"execution_state":{"enum":["unstarted","queued","running","waiting_external","cancelling","succeeded","failed","cancelled"],"title":"PurchaseExecutionState","type":"string"},"expires_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"external_job_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"idempotency":{"additionalProperties":false,"properties":{"binding_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"key":{"minLength":1,"type":"string"}},"required":["key","binding_digest"],"title":"PaymentIdempotencyBinding","type":"object"},"input_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"offer_version":{"additionalProperties":false,"properties":{"input_schema_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"offer_id":{"minLength":1,"type":"string"},"output_schema_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"profile_digest":{"description":"The digest of the profile that declares the offer at that version.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"version":{"description":"The package version the offer is sold at.","minLength":1,"type":"string"}},"required":["offer_id","version","profile_digest","input_schema_digest","output_schema_digest"],"title":"OfferVersionBinding","type":"object","x-runx-schema":"runx.payment.offer_version_binding.v1"},"outcome_gate":{"enum":["open","fulfilment_won","refund_won"],"title":"PurchaseOutcomeGate","type":"string"},"package_digest":{"description":"The execution package digest the purchase runs (`runx.skill-package.v1` over the files a run loads), not the registry's digest of the published package files that a listing binds.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"payment_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PaymentReference","type":"object","x-runx-schema":"runx.reference.v1"},"payment_state":{"enum":["unpaid","settling","settled","refunded"],"title":"PurchasePaymentState","type":"string"},"purchase_id":{"minLength":1,"type":"string"},"seller_ref":{"additionalProperties":false,"description":"The seller: the publisher's principal enrolled to sell the skill.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"const":"principal","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PrincipalReference","type":"object","x-runx-schema":"runx.reference.v1"},"settlement_family":{"maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"},"skill_ref":{"additionalProperties":false,"description":"What is bought: the skill runner binding the seller's run performs.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"updated_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"}},"required":["purchase_id","buyer_ref","seller_ref","skill_ref","offer_version","package_digest","input_digest","canonicalizer_version","amount_minor","currency","accepted_settlement_families","idempotency","expires_at","payment_state","execution_state","outcome_gate","created_at","updated_at"],"title":"Purchase","type":"object","x-runx-packet":true,"x-runx-schema":"runx.payment.purchase.v1","x-runx-source-id":"https://schemas.runx.ai/runx/payment/purchase/v1.json"},"RunxQuotePurchaseResult":{"$defs":{"PurchasePaymentChallenge":{"additionalProperties":false,"properties":{"media_type":{"minLength":1,"type":"string"},"payload":{},"payload_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"payment_method":{"additionalProperties":false,"description":"Protocol-owned discovery and display terms. These do not authorize a payment: the settlement executor verifies the complete challenge itself.","properties":{"asset":{"minLength":1,"type":"string"},"method":{"minLength":1,"type":"string"},"network":{"minLength":1,"type":"string"},"pay_to":{"minLength":1,"type":"string"}},"required":["method"],"title":"PurchasePaymentMethod","type":"object"},"protocol_version":{"description":"Present only when the payment protocol carries a version.","minLength":1,"type":"string"},"quote_expires_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"quote_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"settlement_family":{"maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"}},"required":["settlement_family","media_type","payload","payload_digest","quote_ref","quote_expires_at"],"title":"PurchasePaymentChallenge","type":"object"},"PurchasePaymentOptionBinding":{"additionalProperties":false,"description":"One exact quoted option. Its provider attempt retains this binding through settlement and recovery; this is not another payment or purchase identity.","properties":{"payload_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"settlement_family":{"maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"}},"required":["settlement_family","payload_digest"],"title":"PurchasePaymentOptionBinding","type":"object"}},"anyOf":[{"additionalProperties":false,"properties":{"status":{"const":"admitted","type":"string"},"value":{"additionalProperties":false,"properties":{"payment_options":{"items":{"$ref":"#/components/schemas/RunxQuotePurchaseResult/$defs/PurchasePaymentChallenge"},"minItems":1,"type":"array"},"purchase":{"additionalProperties":false,"properties":{"accepted_settlement_families":{"items":{"maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"act_ref":{"additionalProperties":false,"description":"The purchase's act, fixed before any run: what the seller's run performs and capacity reserves.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"amount_minor":{"maximum":9007199254740991,"minimum":1,"type":"integer"},"buyer_key":{"description":"The key the buyer claims with; runx's purchase receipt binds it.","pattern":"^ed25519:[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$","type":"string"},"buyer_ref":{"additionalProperties":false,"description":"The buyer: the principal that pays.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"const":"principal","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PrincipalReference","type":"object","x-runx-schema":"runx.reference.v1"},"canonicalizer_version":{"description":"The sole V1 canonicalization identifier for digest-bound inputs.","enum":["runx.receipt.c14n.v1"],"title":"PurchaseCanonicalizerVersion","type":"string"},"created_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"currency":{"pattern":"^[A-Z]{3}$","type":"string"},"execution_state":{"enum":["unstarted","queued","running","waiting_external","cancelling","succeeded","failed","cancelled"],"title":"PurchaseExecutionState","type":"string"},"expires_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"external_job_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"idempotency":{"additionalProperties":false,"properties":{"binding_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"key":{"minLength":1,"type":"string"}},"required":["key","binding_digest"],"title":"PaymentIdempotencyBinding","type":"object"},"input_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"offer_version":{"additionalProperties":false,"properties":{"input_schema_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"offer_id":{"minLength":1,"type":"string"},"output_schema_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"profile_digest":{"description":"The digest of the profile that declares the offer at that version.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"version":{"description":"The package version the offer is sold at.","minLength":1,"type":"string"}},"required":["offer_id","version","profile_digest","input_schema_digest","output_schema_digest"],"title":"OfferVersionBinding","type":"object","x-runx-schema":"runx.payment.offer_version_binding.v1"},"outcome_gate":{"enum":["open","fulfilment_won","refund_won"],"title":"PurchaseOutcomeGate","type":"string"},"package_digest":{"description":"The execution package digest the purchase runs (`runx.skill-package.v1` over the files a run loads), not the registry's digest of the published package files that a listing binds.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"payment_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PaymentReference","type":"object","x-runx-schema":"runx.reference.v1"},"payment_state":{"enum":["unpaid","settling","settled","refunded"],"title":"PurchasePaymentState","type":"string"},"purchase_id":{"minLength":1,"type":"string"},"seller_ref":{"additionalProperties":false,"description":"The seller: the publisher's principal enrolled to sell the skill.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"const":"principal","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PrincipalReference","type":"object","x-runx-schema":"runx.reference.v1"},"settlement_family":{"maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"},"skill_ref":{"additionalProperties":false,"description":"What is bought: the skill runner binding the seller's run performs.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"updated_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"}},"required":["purchase_id","buyer_ref","seller_ref","skill_ref","offer_version","package_digest","input_digest","canonicalizer_version","amount_minor","currency","accepted_settlement_families","idempotency","expires_at","payment_state","execution_state","outcome_gate","created_at","updated_at"],"title":"Purchase","type":"object","x-runx-schema":"runx.payment.purchase.v1"}},"required":["purchase","payment_options"],"title":"QuotePurchaseAdmission","type":"object"}},"required":["status","value"],"type":"object"},{"additionalProperties":false,"properties":{"code":{"enum":["offer_unavailable","quote_expired","terms_changed","replay_conflict","payment_not_authorized","capacity_unavailable","not_found","cancellation_not_available"],"title":"PurchaseRefusalCode","type":"string"},"reason":{"maxLength":512,"minLength":1,"type":"string"},"status":{"const":"refused","type":"string"}},"required":["status","code","reason"],"type":"object"}],"title":"QuotePurchaseResult","x-runx-packet":true,"x-runx-schema":"runx.payment.quote_purchase.result.v1","x-runx-source-id":"https://schemas.runx.ai/runx/payment/quote-purchase/result/v1.json"},"RunxExecutePurchaseRequest":{"additionalProperties":false,"properties":{"idempotency":{"additionalProperties":false,"properties":{"binding_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"key":{"minLength":1,"type":"string"}},"required":["key","binding_digest"],"title":"PaymentIdempotencyBinding","type":"object"},"payment_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PaymentReference","type":"object","x-runx-schema":"runx.reference.v1"},"purchase_id":{"minLength":1,"type":"string"},"settlement_family":{"maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"}},"required":["purchase_id","settlement_family","payment_ref","idempotency"],"title":"ExecutePurchaseRequest","type":"object","x-runx-packet":true,"x-runx-schema":"runx.payment.execute_purchase.request.v1","x-runx-source-id":"https://schemas.runx.ai/runx/payment/execute-purchase/request/v1.json"},"RunxExecutePurchaseResult":{"anyOf":[{"additionalProperties":false,"properties":{"status":{"const":"admitted","type":"string"},"value":{"additionalProperties":false,"properties":{"purchase":{"additionalProperties":false,"properties":{"accepted_settlement_families":{"items":{"maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"act_ref":{"additionalProperties":false,"description":"The purchase's act, fixed before any run: what the seller's run performs and capacity reserves.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"amount_minor":{"maximum":9007199254740991,"minimum":1,"type":"integer"},"buyer_key":{"description":"The key the buyer claims with; runx's purchase receipt binds it.","pattern":"^ed25519:[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$","type":"string"},"buyer_ref":{"additionalProperties":false,"description":"The buyer: the principal that pays.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"const":"principal","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PrincipalReference","type":"object","x-runx-schema":"runx.reference.v1"},"canonicalizer_version":{"description":"The sole V1 canonicalization identifier for digest-bound inputs.","enum":["runx.receipt.c14n.v1"],"title":"PurchaseCanonicalizerVersion","type":"string"},"created_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"currency":{"pattern":"^[A-Z]{3}$","type":"string"},"execution_state":{"enum":["unstarted","queued","running","waiting_external","cancelling","succeeded","failed","cancelled"],"title":"PurchaseExecutionState","type":"string"},"expires_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"external_job_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"idempotency":{"additionalProperties":false,"properties":{"binding_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"key":{"minLength":1,"type":"string"}},"required":["key","binding_digest"],"title":"PaymentIdempotencyBinding","type":"object"},"input_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"offer_version":{"additionalProperties":false,"properties":{"input_schema_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"offer_id":{"minLength":1,"type":"string"},"output_schema_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"profile_digest":{"description":"The digest of the profile that declares the offer at that version.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"version":{"description":"The package version the offer is sold at.","minLength":1,"type":"string"}},"required":["offer_id","version","profile_digest","input_schema_digest","output_schema_digest"],"title":"OfferVersionBinding","type":"object","x-runx-schema":"runx.payment.offer_version_binding.v1"},"outcome_gate":{"enum":["open","fulfilment_won","refund_won"],"title":"PurchaseOutcomeGate","type":"string"},"package_digest":{"description":"The execution package digest the purchase runs (`runx.skill-package.v1` over the files a run loads), not the registry's digest of the published package files that a listing binds.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"payment_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PaymentReference","type":"object","x-runx-schema":"runx.reference.v1"},"payment_state":{"enum":["unpaid","settling","settled","refunded"],"title":"PurchasePaymentState","type":"string"},"purchase_id":{"minLength":1,"type":"string"},"seller_ref":{"additionalProperties":false,"description":"The seller: the publisher's principal enrolled to sell the skill.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"const":"principal","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PrincipalReference","type":"object","x-runx-schema":"runx.reference.v1"},"settlement_family":{"maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"},"skill_ref":{"additionalProperties":false,"description":"What is bought: the skill runner binding the seller's run performs.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"updated_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"}},"required":["purchase_id","buyer_ref","seller_ref","skill_ref","offer_version","package_digest","input_digest","canonicalizer_version","amount_minor","currency","accepted_settlement_families","idempotency","expires_at","payment_state","execution_state","outcome_gate","created_at","updated_at"],"title":"Purchase","type":"object","x-runx-schema":"runx.payment.purchase.v1"}},"required":["purchase"],"title":"PurchaseAdmission","type":"object"}},"required":["status","value"],"type":"object"},{"additionalProperties":false,"properties":{"code":{"enum":["offer_unavailable","quote_expired","terms_changed","replay_conflict","payment_not_authorized","capacity_unavailable","not_found","cancellation_not_available"],"title":"PurchaseRefusalCode","type":"string"},"reason":{"maxLength":512,"minLength":1,"type":"string"},"status":{"const":"refused","type":"string"}},"required":["status","code","reason"],"type":"object"}],"title":"ExecutePurchaseResult","x-runx-packet":true,"x-runx-schema":"runx.payment.execute_purchase.result.v1","x-runx-source-id":"https://schemas.runx.ai/runx/payment/execute-purchase/result/v1.json"},"RunxGetPurchaseRequest":{"additionalProperties":false,"properties":{"purchase_id":{"minLength":1,"type":"string"}},"required":["purchase_id"],"title":"GetPurchaseRequest","type":"object","x-runx-packet":true,"x-runx-schema":"runx.payment.get_purchase.request.v1","x-runx-source-id":"https://schemas.runx.ai/runx/payment/get-purchase/request/v1.json"},"RunxGetPurchaseResult":{"anyOf":[{"additionalProperties":false,"properties":{"status":{"const":"admitted","type":"string"},"value":{"additionalProperties":false,"properties":{"failure":{"additionalProperties":false,"description":"Why a refund won. Present only after refund won.","properties":{"code":{"maxLength":96,"minLength":1,"type":"string"},"message":{"maxLength":500,"minLength":1,"type":"string"}},"required":["code","message"],"title":"PurchaseFailure","type":"object"},"purchase":{"additionalProperties":false,"properties":{"accepted_settlement_families":{"items":{"maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"act_ref":{"additionalProperties":false,"description":"The purchase's act, fixed before any run: what the seller's run performs and capacity reserves.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"amount_minor":{"maximum":9007199254740991,"minimum":1,"type":"integer"},"buyer_key":{"description":"The key the buyer claims with; runx's purchase receipt binds it.","pattern":"^ed25519:[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$","type":"string"},"buyer_ref":{"additionalProperties":false,"description":"The buyer: the principal that pays.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"const":"principal","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PrincipalReference","type":"object","x-runx-schema":"runx.reference.v1"},"canonicalizer_version":{"description":"The sole V1 canonicalization identifier for digest-bound inputs.","enum":["runx.receipt.c14n.v1"],"title":"PurchaseCanonicalizerVersion","type":"string"},"created_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"currency":{"pattern":"^[A-Z]{3}$","type":"string"},"execution_state":{"enum":["unstarted","queued","running","waiting_external","cancelling","succeeded","failed","cancelled"],"title":"PurchaseExecutionState","type":"string"},"expires_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"external_job_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"idempotency":{"additionalProperties":false,"properties":{"binding_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"key":{"minLength":1,"type":"string"}},"required":["key","binding_digest"],"title":"PaymentIdempotencyBinding","type":"object"},"input_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"offer_version":{"additionalProperties":false,"properties":{"input_schema_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"offer_id":{"minLength":1,"type":"string"},"output_schema_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"profile_digest":{"description":"The digest of the profile that declares the offer at that version.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"version":{"description":"The package version the offer is sold at.","minLength":1,"type":"string"}},"required":["offer_id","version","profile_digest","input_schema_digest","output_schema_digest"],"title":"OfferVersionBinding","type":"object","x-runx-schema":"runx.payment.offer_version_binding.v1"},"outcome_gate":{"enum":["open","fulfilment_won","refund_won"],"title":"PurchaseOutcomeGate","type":"string"},"package_digest":{"description":"The execution package digest the purchase runs (`runx.skill-package.v1` over the files a run loads), not the registry's digest of the published package files that a listing binds.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"payment_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PaymentReference","type":"object","x-runx-schema":"runx.reference.v1"},"payment_state":{"enum":["unpaid","settling","settled","refunded"],"title":"PurchasePaymentState","type":"string"},"purchase_id":{"minLength":1,"type":"string"},"seller_ref":{"additionalProperties":false,"description":"The seller: the publisher's principal enrolled to sell the skill.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"const":"principal","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PrincipalReference","type":"object","x-runx-schema":"runx.reference.v1"},"settlement_family":{"maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"},"skill_ref":{"additionalProperties":false,"description":"What is bought: the skill runner binding the seller's run performs.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"updated_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"}},"required":["purchase_id","buyer_ref","seller_ref","skill_ref","offer_version","package_digest","input_digest","canonicalizer_version","amount_minor","currency","accepted_settlement_families","idempotency","expires_at","payment_state","execution_state","outcome_gate","created_at","updated_at"],"title":"Purchase","type":"object","x-runx-schema":"runx.payment.purchase.v1"},"receipt_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"result_ref":{"additionalProperties":false,"description":"What fulfilled the purchase: the source run (act) or the durable continuation's result (artifact). Present only after fulfilment won.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"run_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"const":"act","type":"string"},"uri":{"pattern":"^runx:run:[A-Za-z0-9][A-Za-z0-9._:-]{0,255}$","type":"string"}},"required":["type","uri"],"title":"PurchaseRunReference","type":"object","x-runx-schema":"runx.reference.v1"}},"required":["purchase"],"title":"GetPurchaseAdmission","type":"object"}},"required":["status","value"],"type":"object"},{"additionalProperties":false,"properties":{"code":{"enum":["offer_unavailable","quote_expired","terms_changed","replay_conflict","payment_not_authorized","capacity_unavailable","not_found","cancellation_not_available"],"title":"PurchaseRefusalCode","type":"string"},"reason":{"maxLength":512,"minLength":1,"type":"string"},"status":{"const":"refused","type":"string"}},"required":["status","code","reason"],"type":"object"}],"title":"GetPurchaseResult","x-runx-packet":true,"x-runx-schema":"runx.payment.get_purchase.result.v1","x-runx-source-id":"https://schemas.runx.ai/runx/payment/get-purchase/result/v1.json"},"RunxPurchaseRead":{"additionalProperties":false,"description":"What a buyer reads of its purchase: the purchase, its receipt once sealed, the runner's public result once fulfilment won, and what runx holds for it. Never the seller's run, step outputs or grants, and never a held value.","properties":{"balance_micro":{"description":"What the reading account's runx balance holds, in micro-USD, while the purchase can still be paid from it. Never shown to a buyer key.","minimum":0,"type":"integer"},"failure":{"additionalProperties":false,"description":"Why a refund won. Present only after refund won.","properties":{"code":{"maxLength":96,"minLength":1,"type":"string"},"message":{"maxLength":500,"minLength":1,"type":"string"}},"required":["code","message"],"title":"PurchaseFailure","type":"object"},"holds":{"description":"Each resource runx holds for the purchase's buyer, once fulfilment won.","items":{"additionalProperties":false,"description":"One resource a fulfilled purchase bought, held by runx for the purchase's buyer (S10, N11): where it is held and until when, and the digest of the held value, which tells holds apart without showing one.","properties":{"connector":{"minLength":1,"type":"string"},"credential":{"minLength":1,"type":"string"},"expires_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"target":{"minLength":1,"type":"string"},"value_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"}},"required":["connector","credential","target","expires_at","value_digest"],"title":"PurchaseHold","type":"object"},"minItems":1,"type":"array"},"purchase":{"additionalProperties":false,"properties":{"accepted_settlement_families":{"items":{"maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"act_ref":{"additionalProperties":false,"description":"The purchase's act, fixed before any run: what the seller's run performs and capacity reserves.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"amount_minor":{"maximum":9007199254740991,"minimum":1,"type":"integer"},"buyer_key":{"description":"The key the buyer claims with; runx's purchase receipt binds it.","pattern":"^ed25519:[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$","type":"string"},"buyer_ref":{"additionalProperties":false,"description":"The buyer: the principal that pays.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"const":"principal","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PrincipalReference","type":"object","x-runx-schema":"runx.reference.v1"},"canonicalizer_version":{"description":"The sole V1 canonicalization identifier for digest-bound inputs.","enum":["runx.receipt.c14n.v1"],"title":"PurchaseCanonicalizerVersion","type":"string"},"created_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"currency":{"pattern":"^[A-Z]{3}$","type":"string"},"execution_state":{"enum":["unstarted","queued","running","waiting_external","cancelling","succeeded","failed","cancelled"],"title":"PurchaseExecutionState","type":"string"},"expires_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"external_job_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"idempotency":{"additionalProperties":false,"properties":{"binding_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"key":{"minLength":1,"type":"string"}},"required":["key","binding_digest"],"title":"PaymentIdempotencyBinding","type":"object"},"input_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"offer_version":{"additionalProperties":false,"properties":{"input_schema_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"offer_id":{"minLength":1,"type":"string"},"output_schema_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"profile_digest":{"description":"The digest of the profile that declares the offer at that version.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"version":{"description":"The package version the offer is sold at.","minLength":1,"type":"string"}},"required":["offer_id","version","profile_digest","input_schema_digest","output_schema_digest"],"title":"OfferVersionBinding","type":"object","x-runx-schema":"runx.payment.offer_version_binding.v1"},"outcome_gate":{"enum":["open","fulfilment_won","refund_won"],"title":"PurchaseOutcomeGate","type":"string"},"package_digest":{"description":"The execution package digest the purchase runs (`runx.skill-package.v1` over the files a run loads), not the registry's digest of the published package files that a listing binds.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"payment_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PaymentReference","type":"object","x-runx-schema":"runx.reference.v1"},"payment_state":{"enum":["unpaid","settling","settled","refunded"],"title":"PurchasePaymentState","type":"string"},"purchase_id":{"minLength":1,"type":"string"},"seller_ref":{"additionalProperties":false,"description":"The seller: the publisher's principal enrolled to sell the skill.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"const":"principal","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PrincipalReference","type":"object","x-runx-schema":"runx.reference.v1"},"settlement_family":{"maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"},"skill_ref":{"additionalProperties":false,"description":"What is bought: the skill runner binding the seller's run performs.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"updated_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"}},"required":["purchase_id","buyer_ref","seller_ref","skill_ref","offer_version","package_digest","input_digest","canonicalizer_version","amount_minor","currency","accepted_settlement_families","idempotency","expires_at","payment_state","execution_state","outcome_gate","created_at","updated_at"],"title":"Purchase","type":"object","x-runx-schema":"runx.payment.purchase.v1"},"receipt":{"additionalProperties":{},"description":"runx's signed purchase receipt, once sealed: what a claim presents.","type":"object"},"result":{}},"required":["purchase"],"title":"PurchaseRead","type":"object","x-runx-packet":true,"x-runx-schema":"runx.payment.purchase_read.v1","x-runx-source-id":"https://schemas.runx.ai/runx/payment/purchase-read/v1.json"},"RunxPurchaseClaim":{"additionalProperties":false,"description":"What a buyer sends runx's claim route for a held value (`runx.payment.purchase_claim.v1`).","properties":{"claim_url":{"description":"The endpoint this claim is sent to: a claim is good for one endpoint.","minLength":1,"type":"string"},"issued_at":{"description":"When the buyer signed; runx refuses a stale claim.","minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"receipt_digest":{"description":"The digest of runx's receipt for the fulfilled purchase, as the purchase gave it: a purchase has none until it is fulfilled.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"signature":{"description":"The buyer's signature over the claim schema, the endpoint, the time and the receipt digest, as stable JSON.","pattern":"^ed25519:[A-Za-z0-9_-]{85}[AQgw]$","type":"string"}},"required":["receipt_digest","claim_url","issued_at","signature"],"title":"PurchaseClaim","type":"object","x-runx-packet":true,"x-runx-schema":"runx.payment.purchase_claim.v1","x-runx-source-id":"https://schemas.runx.ai/runx/payment/purchase-claim/v1.json"},"RunxCancelPurchaseRequest":{"additionalProperties":false,"properties":{"idempotency":{"additionalProperties":false,"properties":{"binding_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"key":{"minLength":1,"type":"string"}},"required":["key","binding_digest"],"title":"PaymentIdempotencyBinding","type":"object"},"purchase_id":{"minLength":1,"type":"string"}},"required":["purchase_id","idempotency"],"title":"CancelPurchaseRequest","type":"object","x-runx-packet":true,"x-runx-schema":"runx.payment.cancel_purchase.request.v1","x-runx-source-id":"https://schemas.runx.ai/runx/payment/cancel-purchase/request/v1.json"},"RunxCancelPurchaseResult":{"anyOf":[{"additionalProperties":false,"properties":{"status":{"const":"admitted","type":"string"},"value":{"additionalProperties":false,"properties":{"purchase":{"additionalProperties":false,"properties":{"accepted_settlement_families":{"items":{"maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"},"maxItems":16,"minItems":1,"type":"array","uniqueItems":true},"act_ref":{"additionalProperties":false,"description":"The purchase's act, fixed before any run: what the seller's run performs and capacity reserves.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"amount_minor":{"maximum":9007199254740991,"minimum":1,"type":"integer"},"buyer_key":{"description":"The key the buyer claims with; runx's purchase receipt binds it.","pattern":"^ed25519:[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$","type":"string"},"buyer_ref":{"additionalProperties":false,"description":"The buyer: the principal that pays.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"const":"principal","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PrincipalReference","type":"object","x-runx-schema":"runx.reference.v1"},"canonicalizer_version":{"description":"The sole V1 canonicalization identifier for digest-bound inputs.","enum":["runx.receipt.c14n.v1"],"title":"PurchaseCanonicalizerVersion","type":"string"},"created_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"currency":{"pattern":"^[A-Z]{3}$","type":"string"},"execution_state":{"enum":["unstarted","queued","running","waiting_external","cancelling","succeeded","failed","cancelled"],"title":"PurchaseExecutionState","type":"string"},"expires_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"external_job_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"idempotency":{"additionalProperties":false,"properties":{"binding_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"key":{"minLength":1,"type":"string"}},"required":["key","binding_digest"],"title":"PaymentIdempotencyBinding","type":"object"},"input_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"offer_version":{"additionalProperties":false,"properties":{"input_schema_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"offer_id":{"minLength":1,"type":"string"},"output_schema_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"profile_digest":{"description":"The digest of the profile that declares the offer at that version.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"version":{"description":"The package version the offer is sold at.","minLength":1,"type":"string"}},"required":["offer_id","version","profile_digest","input_schema_digest","output_schema_digest"],"title":"OfferVersionBinding","type":"object","x-runx-schema":"runx.payment.offer_version_binding.v1"},"outcome_gate":{"enum":["open","fulfilment_won","refund_won"],"title":"PurchaseOutcomeGate","type":"string"},"package_digest":{"description":"The execution package digest the purchase runs (`runx.skill-package.v1` over the files a run loads), not the registry's digest of the published package files that a listing binds.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"payment_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PaymentReference","type":"object","x-runx-schema":"runx.reference.v1"},"payment_state":{"enum":["unpaid","settling","settled","refunded"],"title":"PurchasePaymentState","type":"string"},"purchase_id":{"minLength":1,"type":"string"},"seller_ref":{"additionalProperties":false,"description":"The seller: the publisher's principal enrolled to sell the skill.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"const":"principal","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"PrincipalReference","type":"object","x-runx-schema":"runx.reference.v1"},"settlement_family":{"maxLength":64,"minLength":1,"pattern":"^[a-z0-9][a-z0-9._-]{0,63}$","type":"string"},"skill_ref":{"additionalProperties":false,"description":"What is bought: the skill runner binding the seller's run performs.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"updated_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"}},"required":["purchase_id","buyer_ref","seller_ref","skill_ref","offer_version","package_digest","input_digest","canonicalizer_version","amount_minor","currency","accepted_settlement_families","idempotency","expires_at","payment_state","execution_state","outcome_gate","created_at","updated_at"],"title":"Purchase","type":"object","x-runx-schema":"runx.payment.purchase.v1"}},"required":["purchase"],"title":"PurchaseAdmission","type":"object"}},"required":["status","value"],"type":"object"},{"additionalProperties":false,"properties":{"code":{"enum":["offer_unavailable","quote_expired","terms_changed","replay_conflict","payment_not_authorized","capacity_unavailable","not_found","cancellation_not_available"],"title":"PurchaseRefusalCode","type":"string"},"reason":{"maxLength":512,"minLength":1,"type":"string"},"status":{"const":"refused","type":"string"}},"required":["status","code","reason"],"type":"object"}],"title":"CancelPurchaseResult","x-runx-packet":true,"x-runx-schema":"runx.payment.cancel_purchase.result.v1","x-runx-source-id":"https://schemas.runx.ai/runx/payment/cancel-purchase/result/v1.json"},"RunxSignal":{"additionalProperties":false,"properties":{"authenticity":{"additionalProperties":false,"properties":{"evidence_refs":{"items":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"minItems":1,"type":"array"},"host_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"principal_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"signature_refs":{"items":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"minItems":1,"type":"array"},"trust_level":{"enum":["unverified","observed","verified_delivery","verified_signature","operator_attested"],"title":"SignalTrustLevel","type":"string"},"verified_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"verified_by_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"}},"required":["host_ref","trust_level"],"title":"SignalAuthenticity","type":"object"},"body_preview":{"minLength":1,"type":"string"},"digest":{"additionalProperties":false,"description":"A content digest with how it was taken and what it was taken over.","properties":{"algorithm":{"description":"The algorithm a content digest was taken with.","enum":["sha256"],"title":"DigestAlgorithm","type":"string"},"canonicalization":{"minLength":1,"type":"string"},"derived_from":{"items":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"type":"array"},"value":{"minLength":1,"type":"string"}},"required":["algorithm","canonicalization","value","derived_from"],"title":"ContentDigest","type":"object"},"evidence_refs":{"items":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"minItems":1,"type":"array"},"extensions":{"additionalProperties":{},"type":"object"},"links":{"additionalProperties":false,"properties":{"duplicate_candidates":{"items":{"additionalProperties":false,"properties":{"candidate_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"confidence":{"type":"number"},"evidence_refs":{"items":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"type":"array"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"reviewer_refs":{"items":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"minItems":1,"type":"array"}},"required":["candidate_ref","confidence","observed_at"],"title":"DuplicateCandidate","type":"object"},"minItems":1,"type":"array"},"duplicate_of":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"related":{"items":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"minItems":1,"type":"array"},"superseded_by":{"items":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"minItems":1,"type":"array"},"supersedes":{"items":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"minItems":1,"type":"array"}},"title":"Links","type":"object"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"schema":{"enum":["runx.signal.v1"],"title":"SignalSchema","type":"string"},"signal_id":{"minLength":1,"type":"string"},"signal_type":{"description":"Open signal type identifier (e.g. `issue_opened`). Adapters can publish their own identifier without a contract edit.","minLength":1,"type":"string"},"source_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"title":{"minLength":1,"type":"string"}},"required":["schema","signal_id","source_ref","signal_type","title","observed_at"],"title":"Signal","type":"object","x-runx-packet":true,"x-runx-schema":"runx.signal.v1","x-runx-source-id":"https://schemas.runx.ai/runx/signal/v1.json"},"RunxReceipt":{"additionalProperties":false,"description":"The single signed governance receipt: `runx.receipt.v1`.\n\n`decisions[]` (each choice and the act it selects) and `acts[]` (intent, the caller's reason, the checks bound to each act) are inline. Every field is signed; display identity comes from `subject.kind`, `subject.ref`, `issuer` and `authority.actor_ref`.","properties":{"acts":{"items":{"additionalProperties":false,"description":"What was done, inline. The act's semantic core (intent, the caller's reason, the checks bound to it) stays in the signed body; its outcome is the receipt's seal. Only the bulky execution I/O (the agent-context envelope: instructions/inputs/output and tool calls) is referenced via `context_ref` and hydrated by projections.","properties":{"artifact_refs":{"items":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"type":"array"},"context_ref":{"additionalProperties":false,"description":"The agent-context envelope (instructions/inputs/output/tool-calls) is referenced here and hydrated by the inspection projections.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"criterion_bindings":{"items":{"additionalProperties":false,"description":"One check's result and the references that prove it.","properties":{"criterion_id":{"description":"A check the runtime runs and binds to a receipt. The runtime is the only writer of criteria, so they are its own closed vocabulary: each names what was checked, and its binding states the result and the evidence.","enum":["step_outcome","output_contract_verified","voice_profile_applied","packet_schemas_verified"],"title":"Criterion","type":"string"},"evidence_refs":{"items":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"type":"array"},"status":{"enum":["verified","failed"],"title":"CriterionStatus","type":"string"},"verification_refs":{"items":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"type":"array"}},"required":["criterion_id","status","evidence_refs","verification_refs"],"title":"CriterionBinding","type":"object"},"type":"array"},"form":{"description":"What kind of act a governed call is.","enum":["observation","reply","review"],"title":"ActForm","type":"string"},"id":{"minLength":1,"type":"string"},"intent":{"additionalProperties":false,"description":"Why an act was done and under what it was legitimate.","properties":{"legitimacy":{"description":"The execution term the act was admitted under.","maxLength":512,"pattern":"^runx:authority_term:\\S+$","type":"string"},"purpose":{"minLength":1,"type":"string"}},"required":["purpose","legitimacy"],"title":"Intent","type":"object"},"operation":{"additionalProperties":false,"description":"The connector operation the act ran, exactly as admission bound it: its qualified connector, manifest and connector digests, and the operation, instance and target it was admitted for.","properties":{"act_digest":{"description":"Digest of the act the call performs, when its caller states one.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"amount":{"additionalProperties":false,"description":"Present when the operation requires an amount.","properties":{"unit":{"minLength":1,"type":"string"},"units":{"minimum":0,"type":"integer"}},"required":["units","unit"],"title":"OperationAmount","type":"object"},"approval_digest":{"description":"Digest of the approval text a person is shown, when the call is gated.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"connector":{"maxLength":129,"pattern":"^(?!versions(?:/|$))[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?(?:/(?!versions$)[a-z][a-z0-9-]{0,62}[a-z0-9])?$","type":"string"},"connector_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"instance_id":{"description":"The instance fixes the placement, principal and account.","maxLength":128,"pattern":"^[a-z0-9][a-z0-9._-]{0,127}$","type":"string"},"manifest_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"operation":{"maxLength":100,"pattern":"^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$","type":"string"},"operation_digest":{"description":"What the operation means: its verb, scopes, target and floors.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"payload_digest":{"maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"request_key_digest":{"description":"Digest of the caller's request key; present for mutations.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"target":{"minLength":1,"type":"string"}},"required":["connector","manifest_digest","connector_digest","operation","operation_digest","instance_id","target","payload_digest"],"title":"OperationIntent","type":"object"},"previous":{"additionalProperties":false,"description":"The receipt the caller states this act follows. It is the caller's statement, recorded as given: runx does not check it.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"reason":{"description":"What the caller told a reader about this particular call, when it said anything.","minLength":1,"type":"string"},"target_refs":{"items":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"type":"array"}},"required":["id","form","intent","criterion_bindings","target_refs","artifact_refs"],"title":"ReceiptAct","type":"object"},"type":"array"},"authority":{"additionalProperties":false,"properties":{"actor_ref":{"additionalProperties":false,"description":"The principal an act was admitted for, when the run was given one. A receipt with no admitted actor states none.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"derivations":{"description":"How each derived execution term in `terms` was proven.","items":{"additionalProperties":false,"description":"How an execution term was derived: the evidence admission proved, ordered capability first, then each delegation link from principal to actor, then any approval; and one subset proof per parent term.","properties":{"derived_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"evidence":{"items":{"additionalProperties":false,"properties":{"kind":{"description":"The three kinds of evidence admission proves. Each has one job.","enum":["capability","delegation","approval"],"title":"AuthorityEvidenceKind","type":"string"},"reference":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"term":{"additionalProperties":false,"description":"The capability or delegation term, sealed so the subset proofs can be re-checked offline. Approvals carry no term.","properties":{"approvals":{"items":{"additionalProperties":false,"properties":{"approval_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"approved_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"approved_by_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"}},"required":["approval_ref"],"title":"AuthorityApproval","type":"object"},"minItems":1,"type":"array"},"bounds":{"additionalProperties":false,"properties":{"operations":{"description":"Connector operations, as `<connector>/<operation>` or `<connector>/*`.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"scopes":{"description":"Provider grant scopes.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"targets":{"description":"Provider targets: exact values, `<prefix>*`, or `*`.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"uses":{"additionalProperties":false,"description":"How many times a term may be used. An execution term is single use. Usage is reserved atomically with each effect attempt, never counted from receipts.","properties":{"per_day":{"minimum":0,"type":"integer"},"total":{"minimum":0,"type":"integer"}},"title":"AuthorityUseLimit","type":"object"}},"title":"AuthorityBounds","type":"object"},"credential_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"expires_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"issued_by_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"principal_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"resource_family":{"enum":["connector"],"title":"AuthorityResourceFamily","type":"string"},"resource_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"term_id":{"minLength":1,"type":"string"},"verbs":{"items":{"enum":["read","write","comment","review","merge","create","update","delete","execute","revoke"],"title":"AuthorityVerb","type":"string"},"type":"array"}},"required":["term_id","principal_ref","resource_ref","resource_family","verbs","bounds","issued_by_ref"],"title":"AuthorityTerm","type":"object","x-runx-schema":"runx.authority_term.v1"}},"required":["kind","reference"],"title":"AuthorityEvidence","type":"object"},"type":"array"},"intent_digest":{"minLength":1,"type":"string"},"proofs":{"items":{"additionalProperties":false,"properties":{"checked_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"compared_terms":{"items":{"additionalProperties":false,"properties":{"child_term_id":{"minLength":1,"type":"string"},"parent_term_id":{"minLength":1,"type":"string"},"relation":{"enum":["equal","subset"],"title":"AuthoritySubsetRelation","type":"string"}},"required":["child_term_id","parent_term_id","relation"],"title":"AuthoritySubsetComparison","type":"object"},"type":"array"},"comparison_algorithm":{"minLength":1,"type":"string"},"parent_authority_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"proof_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"result":{"enum":["subset"],"title":"AuthoritySubsetResult","type":"string"}},"required":["parent_authority_ref","comparison_algorithm","result","compared_terms","checked_at"],"title":"AuthoritySubsetProof","type":"object","x-runx-schema":"runx.authority_subset_proof.v1"},"type":"array"},"term_id":{"minLength":1,"type":"string"}},"required":["term_id","intent_digest","evidence","proofs","derived_at"],"title":"AuthorityDerivation","type":"object","x-runx-schema":"runx.authority_derivation.v1"},"type":"array"},"enforcement":{"additionalProperties":false,"description":"What the runtime enforced around the subject.","properties":{"execution_boundary":{"additionalProperties":false,"description":"Where the subject ran, when the runtime observed it.","properties":{"kind":{"enum":["trusted_host_process","deterministic_worker","native_capability","remote_provider"],"title":"ExecutionBoundaryKind","type":"string"}},"required":["kind"],"title":"ExecutionBoundaryObservation","type":"object"}},"title":"ReceiptEnforcement","type":"object"},"grant_refs":{"description":"The capability evidence that admitted the receipt's effects: a runx Connect grant, or the local connector instance the operator confirmed.","items":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"type":"array"},"mandate_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"scope_refs":{"items":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"type":"array"},"terms":{"items":{"additionalProperties":false,"properties":{"approvals":{"items":{"additionalProperties":false,"properties":{"approval_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"approved_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"approved_by_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"}},"required":["approval_ref"],"title":"AuthorityApproval","type":"object"},"minItems":1,"type":"array"},"bounds":{"additionalProperties":false,"properties":{"operations":{"description":"Connector operations, as `<connector>/<operation>` or `<connector>/*`.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"scopes":{"description":"Provider grant scopes.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"targets":{"description":"Provider targets: exact values, `<prefix>*`, or `*`.","items":{"minLength":1,"type":"string"},"minItems":1,"type":"array"},"uses":{"additionalProperties":false,"description":"How many times a term may be used. An execution term is single use. Usage is reserved atomically with each effect attempt, never counted from receipts.","properties":{"per_day":{"minimum":0,"type":"integer"},"total":{"minimum":0,"type":"integer"}},"title":"AuthorityUseLimit","type":"object"}},"title":"AuthorityBounds","type":"object"},"credential_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"expires_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"issued_by_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"principal_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"resource_family":{"enum":["connector"],"title":"AuthorityResourceFamily","type":"string"},"resource_ref":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"term_id":{"minLength":1,"type":"string"},"verbs":{"items":{"enum":["read","write","comment","review","merge","create","update","delete","execute","revoke"],"title":"AuthorityVerb","type":"string"},"type":"array"}},"required":["term_id","principal_ref","resource_ref","resource_family","verbs","bounds","issued_by_ref"],"title":"AuthorityTerm","type":"object","x-runx-schema":"runx.authority_term.v1"},"type":"array"}},"required":["grant_refs","scope_refs","terms","derivations","enforcement"],"title":"ReceiptAuthority","type":"object"},"canonicalization":{"description":"The canonicalization byte contract a receipt's id and digest commit under. v1 has one.","enum":["runx.receipt.c14n.v1"],"title":"ReceiptCanonicalization","type":"string"},"created_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"decisions":{"items":{"additionalProperties":false,"properties":{"choice":{"description":"The decisions a governed call can carry out.","enum":["continue","escalate","defer","close","decline","monitor"],"title":"DecisionChoice","type":"string"},"decision_id":{"minLength":1,"type":"string"},"selected_act_id":{"description":"The act the decision is carried out by. Its intent, target and artifacts are that act's.","minLength":1,"type":"string"}},"required":["decision_id","choice","selected_act_id"],"title":"Decision","type":"object","x-runx-schema":"runx.decision.v1"},"type":"array"},"digest":{"minLength":1,"type":"string"},"id":{"minLength":1,"type":"string"},"issuer":{"additionalProperties":false,"properties":{"kid":{"minLength":1,"type":"string"},"public_key_digest":{"minLength":1,"type":"string"},"runx_version":{"description":"The runx release that issued the receipt.","minLength":1,"type":"string"},"type":{"enum":["local","hosted","ci"],"title":"ReceiptIssuerType","type":"string"}},"required":["type","kid","public_key_digest","runx_version"],"title":"ReceiptIssuer","type":"object"},"lineage":{"additionalProperties":false,"description":"What runx committed of a receipt's place among others.","properties":{"children":{"description":"The receipts of the subject's direct children, each committed by its id and signed-body digest.","items":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"type":"array"}},"required":["children"],"title":"Lineage","type":"object"},"schema":{"enum":["runx.receipt.v1"],"title":"ReceiptSchema","type":"string"},"seal":{"additionalProperties":false,"description":"Exactly one seal. `deferred` expresses a suspended (waiting/delegated) run. It closes when the receipt is created, so the receipt's `created_at` is its one time.","properties":{"criteria":{"items":{"additionalProperties":false,"description":"One check's result and the references that prove it.","properties":{"criterion_id":{"description":"A check the runtime runs and binds to a receipt. The runtime is the only writer of criteria, so they are its own closed vocabulary: each names what was checked, and its binding states the result and the evidence.","enum":["step_outcome","output_contract_verified","voice_profile_applied","packet_schemas_verified"],"title":"Criterion","type":"string"},"evidence_refs":{"items":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"type":"array"},"status":{"enum":["verified","failed"],"title":"CriterionStatus","type":"string"},"verification_refs":{"items":{"additionalProperties":false,"properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"},"type":"array"}},"required":["criterion_id","status","evidence_refs","verification_refs"],"title":"CriterionBinding","type":"object"},"type":"array"},"outcome":{"description":"How a run, or a receipt's subject, ended.","enum":["completed","deferred","superseded","declined","blocked","failed","killed","timed_out"],"title":"RunOutcome","type":"string"},"reason":{"description":"Why it ended so, where the outcome alone does not say.","enum":["preflight_refused","input_contract_invalid","graph_step_failed","graph_blocked","authority_denied","cost_limit_exceeded","resolution_pending","managed_agent_provider_failed","managed_agent_resolution_failed","managed_agent_empty_turn_budget_exhausted","managed_agent_tool_execution_failed","managed_agent_round_budget_exhausted","host_closed"],"title":"SealReason","type":"string"}},"required":["outcome","criteria"],"title":"Seal","type":"object"},"signature":{"additionalProperties":false,"properties":{"alg":{"enum":["Ed25519"],"title":"SignatureAlgorithm","type":"string"},"value":{"minLength":1,"type":"string"}},"required":["alg","value"],"title":"ReceiptSignature","type":"object"},"subject":{"additionalProperties":false,"properties":{"kind":{"description":"What a receipt seals: one step's attempt, or the whole graph a run ran.","enum":["step","graph"],"title":"SubjectKind","type":"string"},"outcome_digest":{"description":"The digest of how the subject ended: its seal's outcome, the outputs it declared, and its direct children's receipt ids. The receipt commits to that; the produced content beyond its declared outputs is not part of it.","maxLength":71,"pattern":"^sha256:[0-9a-f]{64}$","type":"string"},"ref":{"additionalProperties":false,"description":"What ran.","properties":{"label":{"minLength":1,"type":"string"},"locator":{"minLength":1,"type":"string"},"observed_at":{"minLength":1,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$","type":"string"},"proof_kind":{"enum":["effect_evidence","effect_finality","credential_resolution"],"title":"ProofKind","type":"string"},"provider":{"minLength":1,"type":"string"},"type":{"description":"What a reference points at. External kinds never name a provider: the reference's `provider` and `locator` say where, and connectors declare which of their locators are which kind.","enum":["thread","comment","event","tracking_item","change_request","repository","signal","run","act","receipt","artifact","verification","harness","host","surface","target","skill_binding","principal","scope_admission","grant","mandate","credential","webhook_delivery","redaction_policy","external_url","connector_instance","connector_operation"],"title":"ReferenceType","type":"string"},"uri":{"minLength":1,"type":"string"}},"required":["type","uri"],"title":"Reference","type":"object","x-runx-schema":"runx.reference.v1"}},"required":["kind","ref","outcome_digest"],"title":"Subject","type":"object"}},"required":["schema","id","created_at","canonicalization","issuer","signature","digest","subject","authority","decisions","acts","seal","lineage"],"title":"Receipt","type":"object","x-runx-packet":true,"x-runx-schema":"runx.receipt.v1","x-runx-source-id":"https://schemas.runx.ai/runx/receipt/v1.json"},"X402V2ResourceInfo":{"additionalProperties":true,"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"iconUrl":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}]},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceName":{"anyOf":[{"maxLength":32,"minLength":1,"pattern":"^[\\x20-\\x7e]+$","type":"string"},{"type":"null"}]},"tags":{"anyOf":[{"items":{"maxLength":32,"minLength":1,"pattern":"^[\\x20-\\x7e]+$","type":"string"},"maxItems":5,"type":"array"},{"type":"null"}]},"url":{"minLength":1,"type":"string"}},"required":["url"],"title":"X402ResourceInfo","type":"object","x-runx-source-id":"https://schemas.runx.ai/external/x402/v2/resource-info.schema.json"},"X402V2PaymentRequirements":{"additionalProperties":true,"properties":{"amount":{"minLength":1,"type":"string"},"asset":{"minLength":1,"type":"string"},"extra":{"anyOf":[{"additionalProperties":{},"type":"object"},{"type":"null"}]},"maxTimeoutSeconds":{"exclusiveMinimum":0,"type":"number"},"network":{"minLength":3,"pattern":"^.*:.*$","type":"string"},"payTo":{"minLength":1,"type":"string"},"scheme":{"minLength":1,"type":"string"}},"required":["scheme","network","amount","asset","payTo","maxTimeoutSeconds"],"title":"X402PaymentRequirements","type":"object","x-runx-source-id":"https://schemas.runx.ai/external/x402/v2/payment-requirements.schema.json"},"X402V2PaymentRequired":{"additionalProperties":true,"properties":{"accepts":{"items":{"additionalProperties":true,"properties":{"amount":{"minLength":1,"type":"string"},"asset":{"minLength":1,"type":"string"},"extra":{"anyOf":[{"additionalProperties":{},"type":"object"},{"type":"null"}]},"maxTimeoutSeconds":{"exclusiveMinimum":0,"type":"number"},"network":{"minLength":3,"pattern":"^.*:.*$","type":"string"},"payTo":{"minLength":1,"type":"string"},"scheme":{"minLength":1,"type":"string"}},"required":["scheme","network","amount","asset","payTo","maxTimeoutSeconds"],"title":"X402PaymentRequirements","type":"object"},"minItems":1,"type":"array"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"extensions":{"anyOf":[{"additionalProperties":{},"type":"object"},{"type":"null"}]},"resource":{"additionalProperties":true,"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"iconUrl":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}]},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceName":{"anyOf":[{"maxLength":32,"minLength":1,"pattern":"^[\\x20-\\x7e]+$","type":"string"},{"type":"null"}]},"tags":{"anyOf":[{"items":{"maxLength":32,"minLength":1,"pattern":"^[\\x20-\\x7e]+$","type":"string"},"maxItems":5,"type":"array"},{"type":"null"}]},"url":{"minLength":1,"type":"string"}},"required":["url"],"title":"X402ResourceInfo","type":"object"},"x402Version":{"const":2,"type":"integer"}},"required":["x402Version","resource","accepts"],"title":"X402PaymentRequired","type":"object","x-runx-source-id":"https://schemas.runx.ai/external/x402/v2/payment-required.schema.json"},"X402V2PaymentPayload":{"additionalProperties":true,"properties":{"accepted":{"additionalProperties":true,"properties":{"amount":{"minLength":1,"type":"string"},"asset":{"minLength":1,"type":"string"},"extra":{"anyOf":[{"additionalProperties":{},"type":"object"},{"type":"null"}]},"maxTimeoutSeconds":{"exclusiveMinimum":0,"type":"number"},"network":{"minLength":3,"pattern":"^.*:.*$","type":"string"},"payTo":{"minLength":1,"type":"string"},"scheme":{"minLength":1,"type":"string"}},"required":["scheme","network","amount","asset","payTo","maxTimeoutSeconds"],"title":"X402PaymentRequirements","type":"object"},"extensions":{"anyOf":[{"additionalProperties":{},"type":"object"},{"type":"null"}]},"payload":{"additionalProperties":{},"type":"object"},"resource":{"anyOf":[{"additionalProperties":true,"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"iconUrl":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}]},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceName":{"anyOf":[{"maxLength":32,"minLength":1,"pattern":"^[\\x20-\\x7e]+$","type":"string"},{"type":"null"}]},"tags":{"anyOf":[{"items":{"maxLength":32,"minLength":1,"pattern":"^[\\x20-\\x7e]+$","type":"string"},"maxItems":5,"type":"array"},{"type":"null"}]},"url":{"minLength":1,"type":"string"}},"required":["url"],"title":"X402ResourceInfo","type":"object"},{"type":"null"}]},"x402Version":{"const":2,"type":"integer"}},"required":["x402Version","accepted","payload"],"title":"X402PaymentPayload","type":"object","x-runx-source-id":"https://schemas.runx.ai/external/x402/v2/payment-payload.schema.json"},"X402V2SettleResponse":{"additionalProperties":true,"properties":{"amount":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"extensions":{"anyOf":[{"additionalProperties":{},"type":"object"},{"type":"null"}]},"extra":{"anyOf":[{"additionalProperties":{},"type":"object"},{"type":"null"}]},"network":{"minLength":3,"pattern":"^.*:.*$","type":"string"},"payer":{"anyOf":[{"type":"string"},{"type":"null"}]},"success":{"type":"boolean"},"transaction":{"type":"string"}},"required":["success","transaction","network"],"title":"X402SettleResponse","type":"object","x-runx-source-id":"https://schemas.runx.ai/external/x402/v2/settle-response.schema.json"}}}}