{"openapi":"3.1.0","info":{"title":"Klisten Agent Infrastructure API","version":"0.1.0","description":"Phase 1 API. Optional capabilities fail closed unless their runtime dependencies are configured. See health and capability discovery for this instance."},"paths":{"/v1/modelroute/select":{"post":{"operationId":"selectDiscoveredModels","security":[{"ApiKey":[]}],"x-required-scope":"models:select","x-implementation-status":"private-development","responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRouteDecision"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"description":"Recommendation only; no inference or payment. Uses the operator discovery store and server time. No client catalog, price, tenant or trust override. Quality benchmark ID, version and threshold must be supplied together. Maximum body 16384 bytes. Idempotency replays the stored historical decision.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRouteRequest"}}}}}},"/v1/modelroute/decisions/{id}":{"get":{"operationId":"getModelRouteDecision","security":[{"ApiKey":[]}],"x-required-scope":"models:read","x-implementation-status":"private-development","responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelRouteDecision"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"description":"Tenant-private historical recommendation; does not refresh the catalog or call a model.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}]}},"/v1/agentscore/activity":{"post":{"operationId":"issueCredentialActivity","security":[{"ApiKey":[]}],"x-required-scope":"agents:write","x-implementation-status":"private-activity-beta","responses":{"201":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialActivityIssued"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"description":"Private first-party observation of this API key requesting a completed paid ToolGuard scan. No reputation, identity or task-success score.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialActivityIssue"}}}}}},"/v1/agentscore/activity/{jobId}":{"get":{"operationId":"readCredentialActivity","security":[{"ApiKey":[]}],"x-required-scope":"agents:read","x-implementation-status":"private-activity-beta","responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialActivityVerified"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"description":"Recheck the exact persisted source, issuer and revocation state for this authenticated key.","parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}]}},"/v1/metermcp/usage":{"get":{"operationId":"getMeterLiveUsage","security":[{"ApiKey":[]}],"x-required-scope":"meter:read","x-implementation-status":"live-usage-beta","responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeterUsage"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"description":"Read-only current reservation states for the authenticated key, grouped by UTC budget day. Inclusive range at most 31 days. No external tool payments or payouts.","parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","format":"date"}}]}},"/v1/agentescrow/drafts":{"post":{"operationId":"createEscrowDraft","security":[{"ApiKey":[]}],"x-required-scope":"escrow:write","x-implementation-status":"unfunded-draft-beta","responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscrowDraft"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"description":"Create an unfunded draft. A future deadline, distinct parties and matching delivery digest / binding patch hash are required. Settlement mode records intent only; neither mode funds or releases money. Maximum body 16384 bytes.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscrowDraftRequest"}}}}}},"/v1/agentescrow/drafts/{id}":{"get":{"operationId":"getEscrowDraft","security":[{"ApiKey":[]}],"x-required-scope":"escrow:read","x-implementation-status":"unfunded-draft-beta","responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscrowDraft"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}]}},"/v1/cleargate/check":{"post":{"operationId":"checkClearGateGrant","security":[{"ApiKey":[]}],"x-required-scope":"content:check","x-implementation-status":"free-grant-development","responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClearGateResult"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"description":"Evaluate a server-loaded signed free grant against the supplied intent and authenticated organization. Server keys, revocation and clock establish trust. Paid grants are denied. Maximum body 8192 bytes. Does not fetch content; subsequent fetching requires SSRF checks.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClearGateRequest"}}}}}},"/v1/actioncheck/check":{"post":{"operationId":"checkAction","security":[{"ApiKey":[]}],"x-required-scope":"actions:check","x-implementation-status":"private-development","responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionCheckResult"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionCheckRequest"}}}}}},"/v1/checkout/config":{"get":{"operationId":"getCheckoutConfig","description":"Read public PayPal client ID and fixed topup packages after Google authentication and membership verification. Requires exact configured Origin. No query parameters. Sandbox never funds live balances.","security":[{"SupabaseHuman":[]}],"x-implementation-status":"configured-account-access","parameters":[{"name":"Origin","in":"header","required":true,"description":"Must equal the configured site_url origin. Account mutations reject missing or different origins.","schema":{"type":"string","format":"uri"}}],"responses":{"200":{"description":"Environment-specific checkout settings; no server secrets.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutConfig"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/checkout/topups":{"post":{"operationId":"createCheckoutTopup","description":"Reserve one organization-bound topup and create an order at most once. Only a fixed package identifier is accepted. Reuse the original Idempotency-Key after ambiguous responses; do not create another topup. Requires exact configured Origin.","security":[{"SupabaseHuman":[]}],"x-implementation-status":"configured-account-access","parameters":[{"name":"Origin","in":"header","required":true,"description":"Must equal the configured site_url origin. Account mutations reject missing or different origins.","schema":{"type":"string","format":"uri"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutCreate"}}}},"responses":{"200":{"description":"Current order state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutTopup"}}}},"202":{"description":"Creation pending or held for reconciliation; no credit implied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutTopup"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/checkout/topups/{id}":{"get":{"operationId":"getCheckoutTopup","description":"Reconcile the caller’s persisted topup from provider evidence without initiating capture. Requires exact configured Origin and no query parameters.","security":[{"SupabaseHuman":[]}],"x-implementation-status":"configured-account-access","parameters":[{"name":"Origin","in":"header","required":true,"description":"Must equal the configured site_url origin. Account mutations reject missing or different origins.","schema":{"type":"string","format":"uri"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Current durable topup state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutTopup"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/checkout/topups/{id}/approval":{"get":{"operationId":"getCheckoutApproval","description":"Read a fresh provider-verified approval URL for an existing owner-bound order. Does not create or capture payment.","security":[{"SupabaseHuman":[]}],"x-implementation-status":"configured-account-access","parameters":[{"name":"Origin","in":"header","required":true,"description":"Must equal the configured site_url origin. Account mutations reject missing or different origins.","schema":{"type":"string","format":"uri"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Verified provider approval URL.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutApproval"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/checkout/topups/{id}/capture":{"post":{"operationId":"captureCheckoutTopup","description":"Claim capture durably and verify PayPal payment before a single ledger grant. Approval alone never credits funds. Send an empty JSON object; no query parameters.","security":[{"SupabaseHuman":[]}],"x-implementation-status":"configured-account-access","parameters":[{"name":"Origin","in":"header","required":true,"description":"Must equal the configured site_url origin. Account mutations reject missing or different origins.","schema":{"type":"string","format":"uri"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutEmpty"}}}},"responses":{"200":{"description":"Current durable topup state; sandbox cannot fund live balances.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutTopup"}}}},"202":{"description":"Capture pending or held; reconciliation required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutTopup"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhooks/paypal":{"post":{"operationId":"receivePayPalWebhook","security":[],"description":"PayPal notification ingress. Requires provider signature verification using the configured environment and webhook ID. A verified event selects durable reconciliation; it is not funding evidence. Unverified or unresolved events return 503 for redelivery. Maximum body 65536 bytes.","parameters":[{"name":"paypal-transmission-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"paypal-transmission-time","in":"header","required":true,"schema":{"type":"string"}},{"name":"paypal-cert-url","in":"header","required":true,"schema":{"type":"string"}},{"name":"paypal-auth-algo","in":"header","required":true,"schema":{"type":"string"}},{"name":"paypal-transmission-sig","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object"}}}},"responses":{"204":{"description":"Notification handled. No response body."},"503":{"description":"Verification or reconciliation pending.","content":{"application/json":{"schema":{"type":"object","required":["status"],"properties":{"status":{"const":"pending_verification"}}}}}}}}},"/v1/account/actioncheck/policies":{"get":{"operationId":"listActionCheckPolicies","description":"List this owner’s immutable policies and revocations.","security":[{"SupabaseHuman":[]}],"x-implementation-status":"configured-account-access","responses":{"200":{"description":"Owned policies.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionCheckOwnerPolicies"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createActionCheckPolicy","description":"Create an immutable advisory policy for the verified owner. Maximum 10 active and 100 total policies. Expiry must be within 30 days. Does not execute or reserve funds.","security":[{"SupabaseHuman":[]}],"x-implementation-status":"configured-account-access","parameters":[{"name":"Origin","in":"header","required":true,"description":"Must equal the configured site_url origin. Account mutations reject missing or different origins.","schema":{"type":"string","format":"uri"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionCheckOwnerPolicyInput"}}}},"responses":{"201":{"description":"Policy created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionCheckOwnerPolicyCreated"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/actioncheck/policies/{id}":{"delete":{"operationId":"revokeActionCheckPolicy","description":"Revoke an owned policy without deleting historical evidence.","security":[{"SupabaseHuman":[]}],"x-implementation-status":"configured-account-access","parameters":[{"name":"Origin","in":"header","required":true,"description":"Must equal the configured site_url origin. Account mutations reject missing or different origins.","schema":{"type":"string","format":"uri"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"Policy revoked."},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/config":{"get":{"operationId":"getAccountConfig","security":[],"description":"Public, no-store account availability. Always registered; returns only available:false when account access is disabled. Requests with a foreign Origin are rejected. Account CORS preflights permit only the configured site origin, declared methods, Authorization, and Content-Type.","responses":{"200":{"description":"Account availability and public sign-in configuration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountConfig"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/agentscore/enroll":{"post":{"operationId":"enrollCredentialActivity","description":"Enroll the verified account in an operator-approved factual credential activity template. Empty body only. No payment, reputation score, key creation, or caller-selected issuer is accepted. Disabled unless configured.","security":[{"SupabaseHuman":[]}],"x-implementation-status":"configured-account-access","parameters":[{"name":"Origin","in":"header","required":true,"description":"Must equal the configured site_url origin. Account mutations reject missing or different origins.","schema":{"type":"string","format":"uri"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountEmpty"}}}},"responses":{"200":{"description":"Trusted account enrollment; no charge.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityEnrollment"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/cleargate/grants":{"post":{"operationId":"createCustomerDocumentationGrant","description":"Request a free, revocable documentation grant under explicitly accepted approved terms. Grant issuance is not permission verification; use the grant check API. Registered only when configured.","security":[{"SupabaseHuman":[]}],"x-implementation-status":"configured-account-access","parameters":[{"name":"Origin","in":"header","required":true,"description":"Must equal the configured site_url origin. Account mutations reject missing or different origins.","schema":{"type":"string","format":"uri"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,128}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerGrantRequest"}}}},"responses":{"200":{"description":"Existing grant replay.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerGrantCreated"}}}},"201":{"description":"New free grant; check permission before use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerGrantCreated"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/bootstrap":{"post":{"operationId":"bootstrapAccount","description":"Create or reopen the verified Google user’s personal account. Send an empty JSON object. No caller-selected organization or email identity is accepted.","security":[{"SupabaseHuman":[]}],"x-implementation-status":"configured-account-access","parameters":[{"name":"Origin","in":"header","required":true,"description":"Must equal the configured site_url origin. Account mutations reject missing or different origins.","schema":{"type":"string","format":"uri"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountEmpty"}}}},"responses":{"200":{"description":"Durable personal account membership.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountMembership"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/overview":{"get":{"operationId":"getAccountOverview","description":"Read the caller’s account balances and key metadata. Requires membership; accepts no query parameters. Live payments remain disabled. No raw API keys are returned.","security":[{"SupabaseHuman":[]}],"x-implementation-status":"configured-account-access","responses":{"200":{"description":"Account overview, with all monetary amounts in integer micro-USD strings.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountOverview"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/keys":{"post":{"operationId":"createAccountKey","description":"Create a scoped API key for this account; the raw key is returned only once. Omitted daily cap defaults to zero; a supplied cap cannot exceed the account cap. Creating a key does not fund the account or enable payments.","security":[{"SupabaseHuman":[]}],"x-implementation-status":"configured-account-access","parameters":[{"name":"Origin","in":"header","required":true,"description":"Must equal the configured site_url origin. Account mutations reject missing or different origins.","schema":{"type":"string","format":"uri"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountKeyRequest"}}}},"responses":{"201":{"description":"New API key. This no-store response contains a secret and must never be logged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountKeyCreated"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/keys/{id}":{"delete":{"operationId":"revokeAccountKey","description":"Revoke a key belonging to the caller’s account. Unknown or foreign key IDs return 404. No query parameters are accepted.","security":[{"SupabaseHuman":[]}],"x-implementation-status":"configured-account-access","parameters":[{"name":"Origin","in":"header","required":true,"description":"Must equal the configured site_url origin. Account mutations reject missing or different origins.","schema":{"type":"string","format":"uri"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"Key revoked. No response body."},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/keys/{id}/budget":{"put":{"operationId":"setAccountKeyBudget","description":"Set the caller’s active key daily cap, at most the account cap. Zero blocks paid usage. Unknown, foreign, or revoked keys return 404; a cap above the account cap returns 422. Does not change key scopes or add funds.","security":[{"SupabaseHuman":[]}],"x-implementation-status":"configured-account-access","parameters":[{"name":"Origin","in":"header","required":true,"description":"Must equal the configured site_url origin. Account mutations reject missing or different origins.","schema":{"type":"string","format":"uri"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountBudgetRequest"}}}},"responses":{"204":{"description":"Daily key cap saved. No response body."},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/budget":{"put":{"operationId":"setAccountBudget","description":"Set the account-wide daily cap. Maximum 9007199254740991 micro-USD; zero blocks spending. Does not add funds, alter individual key caps, or enable live payments.","security":[{"SupabaseHuman":[]}],"x-implementation-status":"configured-account-access","parameters":[{"name":"Origin","in":"header","required":true,"description":"Must equal the configured site_url origin. Account mutations reject missing or different origins.","schema":{"type":"string","format":"uri"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountBudgetRequest"}}}},"responses":{"204":{"description":"Daily account cap saved. No response body."},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/toolrank/tools":{"get":{"operationId":"listTools","security":[{"ApiKey":[]}],"x-required-scope":"tools:read","x-implementation-status":"catalog-beta","responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolRankList"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"search","in":"query","schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"capability","in":"query","schema":{"type":"string","maxLength":128}},{"name":"transport","in":"query","schema":{"type":"string","enum":["streamable_http","stdio","sse"]}},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":128}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}]}},"/v1/toolrank/tools/{id}":{"get":{"operationId":"getTool","security":[{"ApiKey":[]}],"x-required-scope":"tools:read","x-implementation-status":"catalog-beta","responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolRankTool"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"}}]}},"/v1/toolrank/select":{"post":{"operationId":"selectTools","security":[{"ApiKey":[]}],"x-required-scope":"tools:select","x-implementation-status":"catalog-beta","responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolRankDecision"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolRankRequest"}}}}}},"/v1/toolrank/decisions/{id}":{"get":{"operationId":"getToolRankDecision","security":[{"ApiKey":[]}],"x-required-scope":"tools:read","x-implementation-status":"catalog-beta","responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolRankDecision"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}]}},"/v1/health":{"get":{"operationId":"health","x-implementation-status":"implemented","responses":{"200":{"description":"Ready","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}},"503":{"description":"Worker or signer unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}}}}},"/v1/services/{id}/trust":{"get":{"operationId":"getServiceTrust","security":[{"ApiKey":[]}],"x-required-scope":"trust:read","x-implementation-status":"implemented","responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Trust"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^svc_[0-9a-f-]{36}$"}}]}},"/v1/account/toolguard/services":{"get":{"operationId":"listToolguardServices","description":"List immutable registered endpoints and current baseline review state.","security":[{"SupabaseHuman":[]}],"x-implementation-status":"configured-account-access","parameters":[{"name":"Origin","in":"header","required":true,"description":"Must equal the configured site_url origin. Account mutations reject missing or different origins.","schema":{"type":"string","format":"uri"}}],"responses":{"200":{"description":"Registered services.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["services"],"properties":{"services":{"type":"array","items":{"$ref":"#/components/schemas/ToolguardService"}}}}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"registerToolguardService","description":"Register an authorized public HTTPS MCP endpoint with a fixed conservative policy. Maximum three endpoints per organization.","security":[{"SupabaseHuman":[]}],"x-implementation-status":"configured-account-access","parameters":[{"name":"Origin","in":"header","required":true,"description":"Must equal the configured site_url origin. Account mutations reject missing or different origins.","schema":{"type":"string","format":"uri"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolguardServiceRegister"}}}},"responses":{"201":{"description":"Registered service.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolguardService"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account/toolguard/services/{id}/baseline":{"post":{"operationId":"approveToolguardBaseline","description":"Approve the exact latest fresh fingerprint after reviewing evidence. No claim of publisher identity or vulnerability coverage.","security":[{"SupabaseHuman":[]}],"x-implementation-status":"configured-account-access","parameters":[{"name":"Origin","in":"header","required":true,"description":"Must equal the configured site_url origin. Account mutations reject missing or different origins.","schema":{"type":"string","format":"uri"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^svc_[0-9a-f-]{36}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolguardBaselineApproval"}}}},"responses":{"200":{"description":"Approved reviewed baseline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolguardService"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/scans/paid":{"post":{"operationId":"createPaidScan","security":[{"ApiKey":[]}],"x-required-scope":"scans:write","x-implementation-status":"implemented","responses":{"202":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaidScanAccepted"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanRequest"}}}},"description":"Reserve $0.05 from prepaid credit atomically with scan admission. Charge once on completion; release funds on terminal failure. Reuse Idempotency-Key for retries. Admission limits remain consumed after failed execution."}},"/v1/scans":{"post":{"operationId":"createScan","security":[{"ApiKey":[]}],"x-required-scope":"scans:write","x-implementation-status":"implemented","responses":{"202":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanAccepted"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanRequest"}}}}}},"/v1/scans/{id}":{"get":{"operationId":"getScan","security":[{"ApiKey":[]}],"x-required-scope":"scans:read","x-implementation-status":"implemented","responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanStatus"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^scan_[0-9a-f-]{36}$"}}]}},"/v1/gate/check":{"post":{"operationId":"checkGate","security":[{"ApiKey":[]}],"x-required-scope":"gate:check","x-implementation-status":"implemented","responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GateResponse"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GateRequest"}}}}}},"/v1/gate/check-paid":{"post":{"operationId":"checkPaidGate","security":[{"ApiKey":[]}],"x-required-scope":"gate:check","x-implementation-status":"implemented","responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GateResponse"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"description":"Prepaid evaluation costs 1000 micro-USD ($0.001) for every valid signed outcome, including deny, review and unknown. Replaying the same request with its original API key does not charge again. Operator onboarding is required.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GateRequest"}}}}}},"/v1/watches":{"post":{"operationId":"createWatch","security":[{"ApiKey":[]}],"x-required-scope":"watches:write","x-implementation-status":"implemented","responses":{"201":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchCreated"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchRequest"}}}}}},"/v1/watches/{id}":{"get":{"operationId":"getWatch","security":[{"ApiKey":[]}],"x-required-scope":"watches:read","x-implementation-status":"implemented","responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchDetail"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^watch_[0-9a-f-]{36}$"}}]},"delete":{"operationId":"deleteWatch","security":[{"ApiKey":[]}],"x-required-scope":"watches:write","x-implementation-status":"implemented","responses":{"204":{"description":"Watch cancelled."},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^watch_[0-9a-f-]{36}$"}}]}},"/v1/attestations/{id}":{"get":{"operationId":"getAttestation","security":[{"ApiKey":[]}],"x-required-scope":"attestations:read","x-implementation-status":"implemented","responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attestation"}}}},"400":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request denied or dependency unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^att_[0-9a-f-]{36}$"}}]}}},"components":{"securitySchemes":{"ApiKey":{"type":"http","scheme":"bearer","bearerFormat":"ck_live_<secret>"},"SupabaseHuman":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Supabase access token for a verified Google user in the configured project. Agent API keys are not accepted."}},"schemas":{"ModelRouteRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"task":{"type":"string","minLength":1,"maxLength":256},"input_tokens":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"max_output_tokens":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"max_cost_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991},"required_capabilities":{"default":[],"maxItems":128,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"provider_allowlist":{"maxItems":128,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"region":{"type":"string","minLength":1,"maxLength":256},"benchmark_id":{"type":"string","minLength":1,"maxLength":256},"benchmark_version":{"type":"string","minLength":1,"maxLength":256},"min_quality":{"type":"number","minimum":0,"maximum":1}},"required":["task","max_cost_micro_usd"],"additionalProperties":false},"ModelRouteDecision":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"scope":{"type":"object","properties":{"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"visibility":{"type":"string","const":"private"}},"required":["org_id","visibility"],"additionalProperties":false},"mode":{"type":"string","const":"recommendation_only"},"snapshot_id":{"type":"string"},"source_status":{"type":"string","enum":["current","stale","not_yet_valid"]},"availability_basis":{"type":"string","const":"source_listing"},"decision":{"type":"object","properties":{"policy_version":{"type":"string","const":"modelroute.selection.v1"},"status":{"type":"string","enum":["SELECTED","NO_ELIGIBLE_MODEL","INPUT_REQUIRED"]},"selected_model_id":{"type":["string","null"]},"evaluated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"request_snapshot":{"type":"object","properties":{"task":{"type":"string","minLength":1,"maxLength":256},"input_tokens":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"max_output_tokens":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"max_cost_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991},"required_capabilities":{"default":[],"maxItems":128,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"provider_allowlist":{"maxItems":128,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"region":{"type":"string","minLength":1,"maxLength":256},"benchmark_id":{"type":"string","minLength":1,"maxLength":256},"benchmark_version":{"type":"string","minLength":1,"maxLength":256},"min_quality":{"type":"number","minimum":0,"maximum":1}},"required":["task","max_cost_micro_usd"],"additionalProperties":false},"catalog_snapshot":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":256},"provider":{"type":"string","minLength":1,"maxLength":256},"available":{"type":"boolean"},"tasks":{"maxItems":128,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"capabilities":{"maxItems":128,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"regions":{"maxItems":128,"type":"array","items":{"type":"string","minLength":1,"maxLength":256}},"context_tokens":{"type":"integer","minimum":1,"maximum":9007199254740991},"max_output_tokens":{"type":"integer","minimum":1,"maximum":9007199254740991},"observed_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"},"expires_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"},"price":{"anyOf":[{"type":"object","properties":{"version":{"type":"string","minLength":1,"maxLength":256},"currency":{"type":"string","minLength":1,"maxLength":256},"unit":{"type":"string","minLength":1,"maxLength":256},"input_rate":{"type":"integer","minimum":0,"maximum":9007199254740991},"output_rate":{"type":"integer","minimum":0,"maximum":9007199254740991},"fixed_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991},"complete_upper_bound":{"type":"boolean"},"valid_from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"},"expires_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"},"source":{"type":"object","properties":{"kind":{"type":"string","enum":["official","third_party"]},"url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["kind","url"],"additionalProperties":false}},"required":["version","currency","unit","input_rate","output_rate","fixed_micro_usd","complete_upper_bound","valid_from","expires_at","source"],"additionalProperties":false},{"type":"null"}]},"quality":{"maxItems":256,"type":"array","items":{"type":"object","properties":{"benchmark_id":{"type":"string","minLength":1,"maxLength":256},"benchmark_version":{"type":"string","minLength":1,"maxLength":256},"task":{"type":"string","minLength":1,"maxLength":256},"score":{"type":"number","minimum":0,"maximum":1},"samples":{"type":"integer","minimum":1,"maximum":9007199254740991},"observed_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"},"expires_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"},"source_url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["benchmark_id","benchmark_version","task","score","samples","observed_at","expires_at","source_url"],"additionalProperties":false}}},"required":["id","provider","available","tasks","capabilities","regions","context_tokens","max_output_tokens","observed_at","expires_at","price","quality"],"additionalProperties":false}},"required_inputs":{"type":"array","items":{"type":"string","enum":["input_tokens","max_output_tokens"]}},"candidates":{"type":"array","items":{"type":"object","properties":{"model_id":{"type":"string"},"provider":{"type":"string"},"eligible":{"type":"boolean"},"exclusions":{"type":"array","items":{"type":"string","enum":["UNAVAILABLE","TASK_UNSUPPORTED","CAPABILITY_UNSUPPORTED","PROVIDER_DISALLOWED","REGION_UNSUPPORTED","CONTEXT_LIMIT","OUTPUT_LIMIT","CAPABILITIES_NOT_CURRENT","PRICE_MISSING","PRICE_STALE","PRICE_NOT_YET_VALID","PRICE_SOURCE_UNTRUSTED","PRICE_BOUND_INCOMPLETE","PRICE_CURRENCY_UNSUPPORTED","PRICE_UNIT_UNSUPPORTED","COST_OUT_OF_RANGE","BUDGET_EXCEEDED","QUALITY_MISSING_OR_INCOMPARABLE","QUALITY_NOT_CURRENT","QUALITY_AMBIGUOUS","QUALITY_BELOW_MINIMUM"]}},"upper_cost_micro_usd":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"price_snapshot":{"anyOf":[{"type":"object","properties":{"version":{"type":"string","minLength":1,"maxLength":256},"currency":{"type":"string","minLength":1,"maxLength":256},"unit":{"type":"string","minLength":1,"maxLength":256},"input_rate":{"type":"integer","minimum":0,"maximum":9007199254740991},"output_rate":{"type":"integer","minimum":0,"maximum":9007199254740991},"fixed_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991},"complete_upper_bound":{"type":"boolean"},"valid_from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"},"expires_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"},"source":{"type":"object","properties":{"kind":{"type":"string","enum":["official","third_party"]},"url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["kind","url"],"additionalProperties":false}},"required":["version","currency","unit","input_rate","output_rate","fixed_micro_usd","complete_upper_bound","valid_from","expires_at","source"],"additionalProperties":false},{"type":"null"}]},"quality_snapshot":{"anyOf":[{"type":"object","properties":{"benchmark_id":{"type":"string","minLength":1,"maxLength":256},"benchmark_version":{"type":"string","minLength":1,"maxLength":256},"task":{"type":"string","minLength":1,"maxLength":256},"score":{"type":"number","minimum":0,"maximum":1},"samples":{"type":"integer","minimum":1,"maximum":9007199254740991},"observed_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"},"expires_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"},"source_url":{"type":"string","maxLength":2048,"format":"uri"}},"required":["benchmark_id","benchmark_version","task","score","samples","observed_at","expires_at","source_url"],"additionalProperties":false},{"type":"null"}]}},"required":["model_id","provider","eligible","exclusions","upper_cost_micro_usd","price_snapshot","quality_snapshot"],"additionalProperties":false}},"ranking":{"type":"array","items":{"type":"string"}}},"required":["policy_version","status","selected_model_id","evaluated_at","request_snapshot","catalog_snapshot","required_inputs","candidates","ranking"],"additionalProperties":false}},"required":["id","scope","mode","snapshot_id","source_status","availability_basis","decision"],"additionalProperties":false},"CredentialActivityIssue":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"scan_job_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["scan_job_id"],"additionalProperties":false},"CredentialActivityIssued":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"envelope":{"type":"string","maxLength":16384},"evidence_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["envelope","evidence_digest"],"additionalProperties":false},"CredentialActivityVerified":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"type":"string","const":"active"},"checked_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"payload":{"type":"object","properties":{"schema_version":{"type":"string","const":"klisten.credential-activity.v1"},"dimension":{"type":"string","const":"credential_activity"},"verification":{"type":"string","const":"first_party_observed"},"independently_verified":{"type":"boolean","const":false},"public_sharing_consent":{"type":"boolean","const":false},"visibility":{"type":"string","const":"private"},"score":{"type":"null"},"evidence_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"issuer":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"key_id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"audience":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subject_id":{"type":"string","pattern":"^api-key:[a-f0-9-]{36}$"},"issued_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"source":{"type":"object","properties":{"kind":{"type":"string","const":"paid_toolguard_scan_completed"},"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"api_key_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"request_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"scan_job_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"service_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"observation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"manifest_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"scanner_version":{"type":"string","maxLength":100},"ruleset_version":{"type":"string","maxLength":100},"completeness":{"type":"string","enum":["complete","partial"]},"availability_status":{"type":"string","enum":["up","down","unknown"]},"observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"completed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["kind","org_id","api_key_id","request_id","scan_job_id","service_id","observation_id","manifest_digest","scanner_version","ruleset_version","completeness","availability_status","observed_at","completed_at"],"additionalProperties":false},"source_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["schema_version","dimension","verification","independently_verified","public_sharing_consent","visibility","score","evidence_id","issuer","key_id","audience","org_id","subject_id","issued_at","expires_at","source","source_digest"],"additionalProperties":false},"evidence_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["status","checked_at","payload","evidence_digest"],"additionalProperties":false},"MeterUsage":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schema_version":{"type":"string","const":"klisten.metermcp.usage.v1"},"live_usage":{"type":"boolean","const":true},"external_settlement":{"type":"boolean","const":false},"currency":{"type":"string","const":"USD"},"basis":{"type":"string","const":"current_reservation_state_by_budget_day_utc"},"scope":{"type":"object","properties":{"organization_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["organization_id","key_id"],"additionalProperties":false},"range":{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["from","to"],"additionalProperties":false},"as_of":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"totals":{"type":"object","properties":{"reservation_count":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"reserved_count":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"held_count":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"captured_count":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"released_count":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"reserved_micro_usd":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"held_micro_usd":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"captured_micro_usd":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"released_micro_usd":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"}},"required":["reservation_count","reserved_count","held_count","captured_count","released_count","reserved_micro_usd","held_micro_usd","captured_micro_usd","released_micro_usd"],"additionalProperties":false},"daily":{"maxItems":31,"type":"array","items":{"type":"object","properties":{"reservation_count":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"reserved_count":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"held_count":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"captured_count":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"released_count":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"reserved_micro_usd":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"held_micro_usd":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"captured_micro_usd":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"released_micro_usd":{"type":"string","pattern":"^(0|[1-9][0-9]*)$"},"day":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["reservation_count","reserved_count","held_count","captured_count","released_count","reserved_micro_usd","held_micro_usd","captured_micro_usd","released_micro_usd","day"],"additionalProperties":false}}},"required":["schema_version","live_usage","external_settlement","currency","basis","scope","range","as_of","totals","daily"],"additionalProperties":false},"EscrowDraftRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"payer_id":{"type":"string","pattern":"^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"},"payee_id":{"type":"string","pattern":"^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"},"amount_cents":{"type":"integer","minimum":100,"maximum":5000},"currency":{"type":"string","const":"USD"},"settlement_mode":{"type":"string","enum":["test","live"]},"delivery_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"binding":{"type":"object","properties":{"repository_id":{"type":"string","pattern":"^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"},"base_commit":{"type":"string","pattern":"^(?:[a-f0-9]{40}|[a-f0-9]{64})$"},"patch_hash":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"profile_hash":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"image_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["repository_id","base_commit","patch_hash","profile_hash","image_digest"],"additionalProperties":false},"audience":{"type":"string","pattern":"^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"},"verification_job_id":{"type":"string","pattern":"^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"},"deadline":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"},"dispute_rule":{"type":"string","const":"mutual_resolution"}},"required":["payer_id","payee_id","amount_cents","currency","settlement_mode","delivery_digest","binding","audience","verification_job_id","deadline","dispute_rule"],"additionalProperties":false},"EscrowDeliveryRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"delivery_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"receipt":{"type":"string","minLength":1,"maxLength":16384}},"required":["delivery_digest","receipt"],"additionalProperties":false},"EscrowDraft":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","const":"UNFUNDED_DRAFT"},"funds":{"type":"string","const":"unfunded"},"release_authorized":{"type":"boolean","const":false},"scope":{"type":"object","properties":{"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"visibility":{"type":"string","const":"private"}},"required":["org_id","visibility"],"additionalProperties":false},"terms":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"},"org_id":{"type":"string","pattern":"^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"},"payer_id":{"type":"string","pattern":"^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"},"payee_id":{"type":"string","pattern":"^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"},"amount_cents":{"type":"integer","minimum":100,"maximum":5000},"currency":{"type":"string","const":"USD"},"settlement_mode":{"type":"string","enum":["test","live"]},"delivery_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"binding":{"type":"object","properties":{"repository_id":{"type":"string","pattern":"^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$"},"base_commit":{"type":"string","pattern":"^(?:[a-f0-9]{40}|[a-f0-9]{64})$"},"patch_hash":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"profile_hash":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"image_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["repository_id","base_commit","patch_hash","profile_hash","image_digest"],"additionalProperties":false},"audience":{"type":"string","pattern":"^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"},"verification_job_id":{"type":"string","pattern":"^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"},"deadline":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"},"dispute_rule":{"type":"string","const":"mutual_resolution"}},"required":["id","org_id","payer_id","payee_id","amount_cents","currency","settlement_mode","delivery_digest","binding","audience","verification_job_id","deadline","dispute_rule"],"additionalProperties":false},"terms_hash":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","status","funds","release_authorized","scope","terms","terms_hash","created_at"],"additionalProperties":false},"EscrowDraftVerification":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"draft_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","const":"UNFUNDED_DRAFT"},"funds":{"type":"string","const":"unfunded"},"release_authorized":{"type":"boolean","const":false},"preview_status":{"type":"string","enum":["VERIFIED","REJECTED"]},"scope":{"type":"object","properties":{"org_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"visibility":{"type":"string","const":"private"}},"required":["org_id","visibility"],"additionalProperties":false},"delivery_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"receipt_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"verification_job_id":{"type":"string","pattern":"^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}$"},"evaluated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","draft_id","status","funds","release_authorized","preview_status","scope","delivery_digest","receipt_digest","verification_job_id","evaluated_at"],"additionalProperties":false},"ClearGateRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"grant_id":{"type":"string","minLength":1,"maxLength":128},"intent":{"type":"object","properties":{"publisher_id":{"type":"string","minLength":1,"maxLength":128},"resource":{"type":"string","maxLength":2048,"format":"uri"},"audience":{"type":"string","minLength":1,"maxLength":128},"purpose":{"type":"string","minLength":1,"maxLength":128},"territory":{"type":"string","pattern":"^[A-Z]{2}$"},"redistribute":{"type":"boolean"}},"required":["publisher_id","resource","audience","purpose","territory","redistribute"],"additionalProperties":false}},"required":["grant_id","intent"],"additionalProperties":false},"ClearGateResult":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"reason":{"type":"string"},"evaluated_scope":{"anyOf":[{"type":"object","properties":{"publisher_id":{"type":"string","minLength":1,"maxLength":128},"resource":{"type":"string","maxLength":2048,"format":"uri"},"audience":{"type":"string","minLength":1,"maxLength":128},"purpose":{"type":"string","minLength":1,"maxLength":128},"territory":{"type":"string","pattern":"^[A-Z]{2}$"},"redistribute":{"type":"boolean"},"org_id":{"type":"string","minLength":1,"maxLength":128}},"required":["publisher_id","resource","audience","purpose","territory","redistribute","org_id"],"additionalProperties":false},{"type":"null"}]},"evaluated_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"executed":{"type":"boolean","const":false},"fetch_requires_ssrf_checks":{"type":"boolean","const":true},"status":{"type":"string","const":"DENIED"},"grant_id":{"type":"null"}},"required":["reason","evaluated_scope","evaluated_at","executed","fetch_requires_ssrf_checks","status","grant_id"],"additionalProperties":false},{"type":"object","properties":{"reason":{"type":"string","const":"VERIFIED_GRANT_MATCH"},"evaluated_scope":{"anyOf":[{"type":"object","properties":{"publisher_id":{"type":"string","minLength":1,"maxLength":128},"resource":{"type":"string","maxLength":2048,"format":"uri"},"audience":{"type":"string","minLength":1,"maxLength":128},"purpose":{"type":"string","minLength":1,"maxLength":128},"territory":{"type":"string","pattern":"^[A-Z]{2}$"},"redistribute":{"type":"boolean"},"org_id":{"type":"string","minLength":1,"maxLength":128}},"required":["publisher_id","resource","audience","purpose","territory","redistribute","org_id"],"additionalProperties":false},{"type":"null"}]},"evaluated_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"executed":{"type":"boolean","const":false},"fetch_requires_ssrf_checks":{"type":"boolean","const":true},"status":{"type":"string","const":"AUTHORIZED"},"grant_id":{"type":"string"},"grant_evidence_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"scope":{"type":"object","properties":{"resource":{"type":"string","maxLength":2048,"format":"uri"},"purpose":{"type":"string","minLength":1,"maxLength":128},"territory":{"type":"string","pattern":"^[A-Z]{2}$"},"redistribute":{"type":"boolean"}},"required":["resource","purpose","territory","redistribute"],"additionalProperties":false}},"required":["reason","evaluated_scope","evaluated_at","executed","fetch_requires_ssrf_checks","status","grant_id","grant_evidence_digest","expires_at","scope"],"additionalProperties":false}]},"ActionCheckRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"policy_id":{"type":"string","minLength":1,"maxLength":200},"action":{"type":"object","properties":{"type":{"type":"string","enum":["read","write","delete","publish","send","purchase","execute"]},"resource":{"type":"string","minLength":1,"maxLength":2048},"estimated_cost_minor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"irreversible":{"type":"boolean"}},"required":["type","resource","estimated_cost_minor","currency","irreversible"],"additionalProperties":false}},"required":["policy_id","action"],"additionalProperties":false},"ActionCheckResult":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"verdict":{"type":"string","enum":["ALLOW","DENY","REQUIRES_APPROVAL","INSUFFICIENT_EVIDENCE"]},"reasons":{"type":"array","items":{"type":"string"}},"executed":{"type":"boolean","const":false},"evidence":{"type":"object","properties":{"evaluated_at":{"type":["string","null"]},"org_id":{"type":["string","null"]},"audience":{"type":["string","null"]},"policy_id":{"type":["string","null"]},"policy_version":{"type":["string","null"]},"policy_digest":{"type":["string","null"]},"action_digest":{"type":["string","null"]}},"required":["evaluated_at","org_id","audience","policy_id","policy_version","policy_digest","action_digest"],"additionalProperties":false}},"required":["verdict","reasons","executed","evidence"],"additionalProperties":false},"AccountConfig":{"$schema":"https://json-schema.org/draft/2020-12/schema","anyOf":[{"type":"object","properties":{"available":{"type":"boolean","const":false}},"required":["available"],"additionalProperties":false},{"type":"object","properties":{"available":{"type":"boolean","const":true},"google_login_enabled":{"type":"boolean","const":true},"supabase_url":{"type":"string","format":"uri"},"publishable_key":{"type":"string","minLength":1,"description":"Public Supabase publishable key; never a service-role credential."},"site_url":{"type":"string","format":"uri"},"actioncheck_policies_enabled":{"type":"boolean"},"meter_live_usage_enabled":{"type":"boolean"},"escrow_drafts_enabled":{"type":"boolean"},"credential_activity_enabled":{"type":"boolean"},"credential_activity_enrollment_enabled":{"type":"boolean"},"patchproof_customer_enabled":{"type":"boolean"},"cleargate_customer_grants_enabled":{"type":"boolean"},"cleargate_customer_offer":{"type":"object","properties":{"terms_sha256":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"terms_url":{"type":"string","format":"uri"},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"territory":{"type":"string","const":"KR"},"territories":{"minItems":1,"maxItems":250,"type":"array","items":{"type":"string","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}},"max_grant_minutes":{"type":"number","const":30}},"required":["terms_sha256","terms_url","expires_at","max_grant_minutes"],"additionalProperties":false},"cleargate_own_site_enabled":{"type":"boolean"},"allowed_key_scopes":{"type":"array","items":{"type":"string","enum":["gate:check","scans:write","scans:read","watches:write","watches:read","trust:read","attestations:read","verify:write","verify:read","tools:read","tools:select","models:read","models:select","actions:check","meter:read","escrow:read","escrow:write","agents:read","agents:write","content:check"]}}},"required":["available","google_login_enabled","supabase_url","publishable_key","site_url","actioncheck_policies_enabled","meter_live_usage_enabled","escrow_drafts_enabled","credential_activity_enabled","credential_activity_enrollment_enabled","patchproof_customer_enabled","cleargate_customer_grants_enabled","cleargate_own_site_enabled","allowed_key_scopes"],"additionalProperties":false}]},"ActivityEnrollment":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enrolled":{"type":"boolean","const":true},"issuer":{"type":"string"},"key_id":{"type":"string"},"audience":{"type":"string"},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["enrolled","issuer","key_id","audience","expires_at"],"additionalProperties":false},"CustomerGrantRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accepted_terms_sha256":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"purpose":{"type":"string","enum":["api-docs-read","api-docs-summarize"]},"territory":{"type":"string","enum":["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]}},"required":["accepted_terms_sha256","purpose","territory"],"additionalProperties":false},"CustomerGrantCreated":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"grant_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"reused":{"type":"boolean"},"permission_granted":{"type":"boolean","const":false}},"required":["grant_id","expires_at","reused","permission_granted"],"additionalProperties":false},"ActionCheckOwnerPolicyInput":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"allowed_actions":{"maxItems":7,"type":"array","items":{"type":"string","enum":["read","write","delete","publish","send","purchase","execute"]}},"allowed_resources":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":2048}},"max_cost_minor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","const":"USD"},"require_approval_for":{"maxItems":7,"type":"array","items":{"type":"string","enum":["read","write","delete","publish","send","purchase","execute"]}},"expires_at":{"type":"string","allOf":[{"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"pattern":"T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"}]}},"required":["allowed_actions","allowed_resources","max_cost_minor","currency","require_approval_for","expires_at"],"additionalProperties":false},"ActionCheckOwnerPolicyCreated":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"policy":{"type":"object","properties":{"policy_id":{"type":"string","minLength":1,"maxLength":200},"version":{"type":"string","minLength":1,"maxLength":200},"org_id":{"type":"string","minLength":1,"maxLength":200},"audience":{"type":"string","minLength":1,"maxLength":200},"valid_from":{"type":"string","allOf":[{"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"pattern":"T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"}]},"expires_at":{"type":"string","allOf":[{"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"pattern":"T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"}]},"allowed_actions":{"maxItems":7,"type":"array","items":{"type":"string","enum":["read","write","delete","publish","send","purchase","execute"]}},"allowed_resources":{"maxItems":1000,"type":"array","items":{"type":"string","minLength":1,"maxLength":2048}},"max_cost_minor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"require_approval_for":{"maxItems":7,"type":"array","items":{"type":"string","enum":["read","write","delete","publish","send","purchase","execute"]}}},"required":["policy_id","version","org_id","audience","valid_from","expires_at","allowed_actions","allowed_resources","max_cost_minor","currency","require_approval_for"],"additionalProperties":false}},"required":["policy"],"additionalProperties":false},"ActionCheckOwnerPolicies":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"policies":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"policy":{"type":"object","properties":{"policy_id":{"type":"string","minLength":1,"maxLength":200},"version":{"type":"string","minLength":1,"maxLength":200},"org_id":{"type":"string","minLength":1,"maxLength":200},"audience":{"type":"string","minLength":1,"maxLength":200},"valid_from":{"type":"string","allOf":[{"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"pattern":"T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"}]},"expires_at":{"type":"string","allOf":[{"pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"pattern":"T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"}]},"allowed_actions":{"maxItems":7,"type":"array","items":{"type":"string","enum":["read","write","delete","publish","send","purchase","execute"]}},"allowed_resources":{"maxItems":1000,"type":"array","items":{"type":"string","minLength":1,"maxLength":2048}},"max_cost_minor":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"require_approval_for":{"maxItems":7,"type":"array","items":{"type":"string","enum":["read","write","delete","publish","send","purchase","execute"]}}},"required":["policy_id","version","org_id","audience","valid_from","expires_at","allowed_actions","allowed_resources","max_cost_minor","currency","require_approval_for"],"additionalProperties":false},"revoked_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["policy","revoked_at"],"additionalProperties":false}}},"required":["policies"],"additionalProperties":false},"PaidScanAccepted":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"scan_id":{"type":"string","pattern":"^scan_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"service_id":{"type":"string","pattern":"^svc_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"status":{"type":"string","enum":["queued","running"]},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"poll_after_seconds":{"type":"number","const":2},"request_id":{"type":"string","pattern":"^req_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"charge":{"type":"object","properties":{"amount_micros":{"type":"string","pattern":"^[0-9]+$"},"tariff_version":{"type":"string"},"funding":{"type":"string","enum":["prepaid","subscription"]},"new_reservation":{"type":"boolean"}},"required":["amount_micros","tariff_version","funding","new_reservation"],"additionalProperties":false}},"required":["scan_id","service_id","status","created_at","poll_after_seconds","request_id","charge"],"additionalProperties":false},"ToolguardServiceRegister":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"canonical_name":{"type":"string","minLength":1,"maxLength":100},"endpoint":{"type":"string","maxLength":2048},"authorization_acknowledged":{"type":"boolean","const":true}},"required":["canonical_name","endpoint","authorization_acknowledged"],"additionalProperties":false},"ToolguardBaselineApproval":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"observation_id":{"type":"string","pattern":"^obs_[a-f0-9-]{36}$"},"fingerprint":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["observation_id","fingerprint"],"additionalProperties":false},"ToolguardService":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"service_id":{"type":"string"},"canonical_name":{"type":"string"},"endpoint":{"type":"string"},"policy_version":{"type":"string"},"policy_hash":{"type":"string"},"policy":{"type":"object","properties":{"version":{"type":"string","minLength":1,"maxLength":64},"max_risk":{"type":"integer","minimum":0,"maximum":100},"allowed_publishers":{"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"allowed_domains":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":253}},"prohibited_capabilities":{"maxItems":2,"type":"array","items":{"type":"string","enum":["write","destructive"]}},"max_scan_age_seconds":{"type":"integer","minimum":60,"maximum":86400},"require_approved_fingerprint":{"type":"boolean"},"required_coverage":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"string","enum":["identity","metadata","tool_schema","availability","vulnerability"]}},"allow_ttl_seconds":{"type":"integer","minimum":30,"maximum":300}},"required":["version","max_risk","allowed_publishers","allowed_domains","prohibited_capabilities","max_scan_age_seconds","require_approved_fingerprint","required_coverage","allow_ttl_seconds"],"additionalProperties":false},"policy_active":{"type":"boolean"},"approved_fingerprint":{"type":["string","null"]},"approved_at":{"type":["string","null"]},"latest_observation_id":{"type":["string","null"]},"latest_fingerprint":{"type":["string","null"]},"latest_observed_at":{"type":["string","null"]},"latest_expires_at":{"type":["string","null"]},"latest_completeness":{"type":["string","null"]}},"required":["service_id","canonical_name","endpoint","policy_version","policy_hash","policy","policy_active","approved_fingerprint","approved_at","latest_observation_id","latest_fingerprint","latest_observed_at","latest_expires_at","latest_completeness"],"additionalProperties":false},"CheckoutEmpty":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"CheckoutCreate":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"package_id":{"type":"string","enum":["usd-5-v1","usd-10-v1","usd-25-v1"]}},"required":["package_id"],"additionalProperties":false},"CheckoutApproval":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"order_id":{"type":"string"},"approval_url":{"type":"string","format":"uri"}},"required":["order_id","approval_url"],"additionalProperties":false},"CheckoutConfig":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"purchase_enabled":{"type":"boolean"},"purchase_disabled_reason":{"type":["string","null"]},"provider":{"type":"string","const":"paypal"},"environment":{"type":"string","enum":["sandbox","live"]},"client_id":{"type":"string","minLength":1},"packages":{"type":"array","items":{"type":"object","properties":{"package_id":{"type":"string","enum":["usd-5-v1","usd-10-v1","usd-25-v1"]},"currency":{"type":"string","const":"USD"},"amount_cents":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["package_id","currency","amount_cents"],"additionalProperties":false}}},"required":["purchase_enabled","purchase_disabled_reason","provider","environment","client_id","packages"],"additionalProperties":false},"CheckoutTopup":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["create_pending","order_created","capture_pending","held","settled_sandbox","credited","adverse"]},"order_id":{"type":["string","null"]},"environment":{"type":"string","enum":["sandbox","live"]},"currency":{"type":"string","const":"USD"},"amount_cents":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"credited_micro_usd":{"type":"string","pattern":"^(?:0|[1-9][0-9]{0,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|90070[0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|9007199254740990[0-9]{0}|9007199254740991)$","description":"Nonnegative integer micro-USD, at most 9007199254740991. One USD is 1000000 micro-USD."}},"required":["id","status","order_id","environment","currency","amount_cents","credited_micro_usd"],"additionalProperties":false},"AccountEmpty":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"AccountMembership":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"organization_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"role":{"type":"string","const":"owner"}},"required":["organization_id","role"],"additionalProperties":false},"AccountKeyRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"scopes":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","enum":["gate:check","scans:write","scans:read","watches:write","watches:read","trust:read","attestations:read","verify:write","verify:read","tools:read","tools:select","models:read","models:select","actions:check","meter:read","escrow:read","escrow:write","agents:read","agents:write","content:check"]}},"daily_cap_micro_usd":{"default":"0","type":"string","pattern":"^(?:0|[1-9][0-9]{0,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|90070[0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|9007199254740990[0-9]{0}|9007199254740991)$","description":"Nonnegative integer micro-USD, at most 9007199254740991. One USD is 1000000 micro-USD."}},"required":["scopes"],"additionalProperties":false},"AccountKeyCreated":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"key_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"key":{"type":"string","minLength":1,"description":"Secret returned only once. Store securely; never log."},"prefix":{"type":"string","minLength":16,"maxLength":16},"scopes":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","enum":["gate:check","scans:write","scans:read","watches:write","watches:read","trust:read","attestations:read","verify:write","verify:read","tools:read","tools:select","models:read","models:select","actions:check","meter:read","escrow:read","escrow:write","agents:read","agents:write","content:check"]}},"daily_cap_micro_usd":{"type":"string","pattern":"^(?:0|[1-9][0-9]{0,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|90070[0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|9007199254740990[0-9]{0}|9007199254740991)$","description":"Nonnegative integer micro-USD, at most 9007199254740991. One USD is 1000000 micro-USD."}},"required":["key_id","key","prefix","scopes","daily_cap_micro_usd"],"additionalProperties":false},"AccountBudgetRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"daily_cap_micro_usd":{"type":"string","pattern":"^(?:0|[1-9][0-9]{0,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|90070[0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|9007199254740990[0-9]{0}|9007199254740991)$","description":"Nonnegative integer micro-USD, at most 9007199254740991. One USD is 1000000 micro-USD."}},"required":["daily_cap_micro_usd"],"additionalProperties":false},"AccountOverview":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"organization_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"role":{"type":"string","const":"owner"},"balance_micro_usd":{"type":"string","pattern":"^(?:0|[1-9][0-9]{0,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|90070[0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|9007199254740990[0-9]{0}|9007199254740991)$","description":"Nonnegative integer micro-USD, at most 9007199254740991. One USD is 1000000 micro-USD."},"reserved_micro_usd":{"type":"string","pattern":"^(?:0|[1-9][0-9]{0,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|90070[0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|9007199254740990[0-9]{0}|9007199254740991)$","description":"Nonnegative integer micro-USD, at most 9007199254740991. One USD is 1000000 micro-USD."},"available_micro_usd":{"type":"string","pattern":"^(?:0|[1-9][0-9]{0,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|90070[0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|9007199254740990[0-9]{0}|9007199254740991)$","description":"Nonnegative integer micro-USD, at most 9007199254740991. One USD is 1000000 micro-USD."},"wallet_frozen":{"type":"boolean"},"debt_micro_usd":{"type":"string","pattern":"^(?:0|[1-9][0-9]{0,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|90070[0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|9007199254740990[0-9]{0}|9007199254740991)$","description":"Nonnegative integer micro-USD, at most 9007199254740991. One USD is 1000000 micro-USD."},"spendable_micro_usd":{"type":"string","pattern":"^(?:0|[1-9][0-9]{0,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|90070[0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|9007199254740990[0-9]{0}|9007199254740991)$","description":"Nonnegative integer micro-USD, at most 9007199254740991. One USD is 1000000 micro-USD."},"daily_cap_micro_usd":{"type":"string","pattern":"^(?:0|[1-9][0-9]{0,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|90070[0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|9007199254740990[0-9]{0}|9007199254740991)$","description":"Nonnegative integer micro-USD, at most 9007199254740991. One USD is 1000000 micro-USD."},"payments_enabled":{"type":"boolean","const":false},"keys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"prefix":{"type":"string","minLength":16,"maxLength":16},"scopes":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","enum":["gate:check","scans:write","scans:read","watches:write","watches:read","trust:read","attestations:read","verify:write","verify:read","tools:read","tools:select","models:read","models:select","actions:check","meter:read","escrow:read","escrow:write","agents:read","agents:write","content:check"]}},"revoked_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"daily_cap_micro_usd":{"type":"string","pattern":"^(?:0|[1-9][0-9]{0,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|90070[0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|9007199254740990[0-9]{0}|9007199254740991)$","description":"Nonnegative integer micro-USD, at most 9007199254740991. One USD is 1000000 micro-USD."}},"required":["id","prefix","scopes","revoked_at","daily_cap_micro_usd"],"additionalProperties":false}}},"required":["organization_id","role","balance_micro_usd","reserved_micro_usd","available_micro_usd","wallet_frozen","debt_micro_usd","spendable_micro_usd","daily_cap_micro_usd","payments_enabled","keys"],"additionalProperties":false},"ToolRankRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"capabilities":{"maxItems":128,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"}},"transport":{"type":"string","enum":["streamable_http","stdio","sse"]},"location":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"max_age_seconds":{"type":"integer","minimum":1,"maximum":86400},"min_samples":{"type":"integer","minimum":1,"maximum":1000},"min_availability_bps":{"default":0,"type":"integer","minimum":0,"maximum":10000},"max_latency_ms":{"type":"integer","minimum":0,"maximum":300000},"max_cost_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991},"require_policy_approval":{"default":false,"type":"boolean"}},"required":["capabilities","transport","location","max_age_seconds","min_samples"],"additionalProperties":false},"ToolRankTool":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"catalog_source":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"catalog_version":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"catalog_observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"snapshot_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"capabilities":{"maxItems":128,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"}},"transport":{"type":"string","enum":["streamable_http","stdio","sse"]},"active":{"type":"boolean"},"observations":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"tool_id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"snapshot_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"source":{"type":"string","enum":["independent_probe","publisher_report"]},"probe_id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"location":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"available":{"type":"boolean"},"latency_ms":{"anyOf":[{"type":"integer","minimum":0,"maximum":300000},{"type":"null"}]}},"required":["id","tool_id","snapshot_digest","source","probe_id","observed_at","location","available","latency_ms"],"additionalProperties":false}},"cost":{"anyOf":[{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"per_call_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991},"observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"snapshot_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["currency","per_call_micro_usd","observed_at","expires_at","snapshot_digest"],"additionalProperties":false},{"type":"null"}]},"trust":{"anyOf":[{"type":"object","properties":{"policy_id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"decision":{"type":"string","enum":["approved","rejected","unknown"]},"observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"snapshot_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["policy_id","decision","observed_at","expires_at","snapshot_digest"],"additionalProperties":false},{"type":"null"}]},"name":{"type":"string"},"description":{"type":"string"},"source_url":{"type":"string"},"raw_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"transport_advertised":{"type":"boolean"},"registry":{"type":"object","properties":{"external_id":{"type":"string"},"version":{"type":"string"},"status":{"type":"string","enum":["active","deprecated","deleted","unknown"]}},"required":["external_id","version","status"],"additionalProperties":false},"evidence_status":{"type":"string","const":"insufficient_evidence"},"metrics":{"type":"object","properties":{"availability_bps":{"type":"null"},"latency_ms":{"type":"null"},"sample_count":{"type":"number","const":0}},"required":["availability_bps","latency_ms","sample_count"],"additionalProperties":false},"registration_is_safety_approval":{"type":"boolean","const":false}},"required":["id","catalog_source","catalog_version","catalog_observed_at","snapshot_digest","capabilities","transport","active","observations","cost","trust","name","description","source_url","raw_digest","evidence_status","metrics","registration_is_safety_approval"],"additionalProperties":false},"ToolRankList":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"catalog_coverage":{"type":"string","const":"partial_or_unverified"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"catalog_source":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"catalog_version":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"catalog_observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"snapshot_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"capabilities":{"maxItems":128,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"}},"transport":{"type":"string","enum":["streamable_http","stdio","sse"]},"active":{"type":"boolean"},"observations":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"tool_id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"snapshot_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"source":{"type":"string","enum":["independent_probe","publisher_report"]},"probe_id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"location":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"available":{"type":"boolean"},"latency_ms":{"anyOf":[{"type":"integer","minimum":0,"maximum":300000},{"type":"null"}]}},"required":["id","tool_id","snapshot_digest","source","probe_id","observed_at","location","available","latency_ms"],"additionalProperties":false}},"cost":{"anyOf":[{"type":"object","properties":{"currency":{"type":"string","const":"USD"},"per_call_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991},"observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"snapshot_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["currency","per_call_micro_usd","observed_at","expires_at","snapshot_digest"],"additionalProperties":false},{"type":"null"}]},"trust":{"anyOf":[{"type":"object","properties":{"policy_id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"decision":{"type":"string","enum":["approved","rejected","unknown"]},"observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"snapshot_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["policy_id","decision","observed_at","expires_at","snapshot_digest"],"additionalProperties":false},{"type":"null"}]},"name":{"type":"string"},"description":{"type":"string"},"source_url":{"type":"string"},"raw_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"transport_advertised":{"type":"boolean"},"registry":{"type":"object","properties":{"external_id":{"type":"string"},"version":{"type":"string"},"status":{"type":"string","enum":["active","deprecated","deleted","unknown"]}},"required":["external_id","version","status"],"additionalProperties":false},"evidence_status":{"type":"string","const":"insufficient_evidence"},"metrics":{"type":"object","properties":{"availability_bps":{"type":"null"},"latency_ms":{"type":"null"},"sample_count":{"type":"number","const":0}},"required":["availability_bps","latency_ms","sample_count"],"additionalProperties":false},"registration_is_safety_approval":{"type":"boolean","const":false}},"required":["id","catalog_source","catalog_version","catalog_observed_at","snapshot_digest","capabilities","transport","active","observations","cost","trust","name","description","source_url","raw_digest","evidence_status","metrics","registration_is_safety_approval"],"additionalProperties":false}},"next_cursor":{"type":["string","null"]}},"required":["catalog_coverage","data","next_cursor"],"additionalProperties":false},"ToolRankDecision":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"catalog_coverage":{"type":"string","const":"partial_or_unverified"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"algorithm_version":{"type":"string"},"evaluated_at":{"type":"string"},"selected_id":{"type":["string","null"]},"status":{"type":"string","enum":["SELECTED","NO_ELIGIBLE_TOOL"]},"ranking_rule":{"type":"array","items":{"type":"string"}},"ranked":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"snapshot_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"catalog":{"type":"object","properties":{"source":{"type":"string"},"version":{"type":"string"},"observed_at":{"type":"string"}},"required":["source","version","observed_at"],"additionalProperties":false},"reasons":{"type":"array","items":{"type":"string"}},"metrics":{"type":"object","properties":{"availability_bps":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"latency_ms":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sample_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"location":{"type":"string"},"latest_observed_at":{"type":["string","null"]}},"required":["availability_bps","latency_ms","sample_count","location","latest_observed_at"],"additionalProperties":false},"cost_micro_usd":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"policy_approval":{"type":"string","enum":["approved","rejected","unknown"]},"accepted_observation_ids":{"type":"array","items":{"type":"string"}},"ignored_observations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"reason":{"type":"string"}},"required":["id","reason"],"additionalProperties":false}}},"required":["id","snapshot_digest","catalog","reasons","metrics","cost_micro_usd","policy_approval","accepted_observation_ids","ignored_observations"],"additionalProperties":false}},"excluded":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"snapshot_digest":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"catalog":{"type":"object","properties":{"source":{"type":"string"},"version":{"type":"string"},"observed_at":{"type":"string"}},"required":["source","version","observed_at"],"additionalProperties":false},"reasons":{"type":"array","items":{"type":"string"}},"metrics":{"type":"object","properties":{"availability_bps":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"latency_ms":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sample_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"location":{"type":"string"},"latest_observed_at":{"type":["string","null"]}},"required":["availability_bps","latency_ms","sample_count","location","latest_observed_at"],"additionalProperties":false},"cost_micro_usd":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"policy_approval":{"type":"string","enum":["approved","rejected","unknown"]},"accepted_observation_ids":{"type":"array","items":{"type":"string"}},"ignored_observations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"reason":{"type":"string"}},"required":["id","reason"],"additionalProperties":false}}},"required":["id","snapshot_digest","catalog","reasons","metrics","cost_micro_usd","policy_approval","accepted_observation_ids","ignored_observations"],"additionalProperties":false}},"evidence_status":{"type":"string","const":"insufficient_evidence"}},"required":["catalog_coverage","id","algorithm_version","evaluated_at","selected_id","status","ranking_rule","ranked","excluded","evidence_status"],"additionalProperties":false},"Error":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string","pattern":"^req_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"retryable":{"type":"boolean"}},"required":["code","message","request_id","retryable"],"additionalProperties":false}},"required":["error"],"additionalProperties":false},"Trust":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"service_id":{"type":"string","pattern":"^svc_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"latest_observation_id":{"anyOf":[{"type":"string","pattern":"^obs_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},{"type":"null"}]},"fingerprint":{"anyOf":[{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},{"type":"null"}]},"risk_score":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"coverage":{"type":"object","properties":{"identity":{"type":"string","enum":["complete","partial","not_checked"]},"metadata":{"type":"string","enum":["complete","partial","not_checked"]},"tool_schema":{"type":"string","enum":["complete","partial","not_checked"]},"availability":{"type":"string","enum":["complete","partial","not_checked"]},"vulnerability":{"type":"string","enum":["complete","partial","not_checked"]}},"required":["identity","metadata","tool_schema","availability","vulnerability"],"additionalProperties":false},"freshness":{"type":"string","enum":["missing","fresh","stale"]},"observed_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},{"type":"null"}]},"approved_fingerprint":{"anyOf":[{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},{"type":"null"}]},"request_id":{"type":"string","pattern":"^req_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"}},"required":["service_id","latest_observation_id","fingerprint","risk_score","coverage","freshness","observed_at","expires_at","approved_fingerprint","request_id"],"additionalProperties":false},"ScanRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"service_id":{"type":"string","pattern":"^svc_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"}},"required":["service_id"],"additionalProperties":false},"ScanAccepted":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"scan_id":{"type":"string","pattern":"^scan_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"service_id":{"type":"string","pattern":"^svc_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"status":{"type":"string","enum":["queued","running"]},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"poll_after_seconds":{"type":"number","const":2},"request_id":{"type":"string","pattern":"^req_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"}},"required":["scan_id","service_id","status","created_at","poll_after_seconds","request_id"],"additionalProperties":false},"ScanStatus":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"scan_id":{"type":"string","pattern":"^scan_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"service_id":{"type":"string","pattern":"^svc_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"status":{"type":"string","enum":["queued","running","succeeded","failed","dead_letter"]},"attempts":{"type":"integer","minimum":0,"maximum":3},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"started_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},{"type":"null"}]},"observation":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^obs_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"completeness":{"type":"string","enum":["complete","partial"]},"risk_score":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"fingerprint":{"anyOf":[{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},{"type":"null"}]},"observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"coverage":{"type":"object","properties":{"identity":{"type":"string","enum":["complete","partial","not_checked"]},"metadata":{"type":"string","enum":["complete","partial","not_checked"]},"tool_schema":{"type":"string","enum":["complete","partial","not_checked"]},"availability":{"type":"string","enum":["complete","partial","not_checked"]},"vulnerability":{"type":"string","enum":["complete","partial","not_checked"]}},"required":["identity","metadata","tool_schema","availability","vulnerability"],"additionalProperties":false},"normalized_tools":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"input_schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"output_schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"annotations":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"description_hash":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"}},"required":["name","input_schema","annotations","description_hash"],"additionalProperties":false}},"findings":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"rule_id":{"type":"string","minLength":1,"maxLength":100},"rule_version":{"type":"string","minLength":1,"maxLength":50},"kind":{"type":"string","enum":["deterministic","heuristic"]},"severity":{"type":"string","enum":["info","low","medium","high","critical"]},"code":{"type":"string","pattern":"^[A-Z][A-Z0-9_]{0,99}$"},"tool_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"evidence_pointer":{"type":"string","maxLength":1071,"pattern":"^sha256:[a-f0-9]{64}#(?:\\/[^\\r\\n]*)?$"},"summary":{"type":"string","maxLength":300}},"required":["rule_id","rule_version","kind","severity","code","tool_name","evidence_pointer","summary"],"additionalProperties":false}}},"required":["id","completeness","risk_score","fingerprint","observed_at","expires_at","coverage","findings"],"additionalProperties":false},{"type":"null"}]},"error":{"anyOf":[{"type":"object","properties":{"code":{"type":"string"},"retryable":{"type":"boolean"}},"required":["code","retryable"],"additionalProperties":false},{"type":"null"}]},"request_id":{"type":"string","pattern":"^req_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"}},"required":["scan_id","service_id","status","attempts","created_at","started_at","completed_at","observation","error","request_id"],"additionalProperties":false},"GateRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"service_id":{"type":"string","pattern":"^svc_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"tool_name":{"type":"string","minLength":1,"maxLength":128},"expected_fingerprint":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"policy_version":{"type":"string","minLength":1,"maxLength":64},"agent_id":{"type":"string","pattern":"^agt_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"}},"required":["service_id","tool_name","expected_fingerprint","policy_version"],"additionalProperties":false},"GateResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"decision_id":{"type":"string","pattern":"^dec_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"service_id":{"type":"string","pattern":"^svc_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"tool_name":{"type":"string"},"decision":{"type":"string","enum":["allow","deny","review","unknown"]},"risk_score":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"reasons":{"type":"array","items":{"type":"string"}},"observation_id":{"anyOf":[{"type":"string","pattern":"^obs_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},{"type":"null"}]},"observed_fingerprint":{"anyOf":[{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},{"type":"null"}]},"policy_version":{"type":"string"},"ruleset_version":{"type":"string"},"evidence_hash":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"evaluated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"attestation_id":{"type":"string","pattern":"^att_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"attestation":{"type":"object","properties":{"payload":{"type":"object","properties":{"schema_version":{"type":"string","const":"christine.attestation.v1"},"attestation_id":{"type":"string","pattern":"^att_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"type":{"type":"string","const":"toolguard_gate"},"issuer":{"type":"string","format":"uri"},"key_id":{"type":"string","minLength":1,"maxLength":128},"org_id":{"type":"string","pattern":"^org_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"decision_id":{"type":"string","pattern":"^dec_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"subject":{"type":"object","properties":{"service_id":{"type":"string","pattern":"^svc_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"tool_name":{"type":"string","minLength":1,"maxLength":128},"expected_fingerprint":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"observed_fingerprint":{"anyOf":[{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},{"type":"null"}]}},"required":["service_id","tool_name","expected_fingerprint","observed_fingerprint"],"additionalProperties":false},"result":{"type":"string","enum":["allow","deny","review","unknown"]},"risk_score":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"reasons":{"type":"array","items":{"type":"string","pattern":"^[A-Z][A-Z0-9_]*$"}},"policy_version":{"type":"string","minLength":1,"maxLength":128},"policy_hash":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"ruleset_version":{"type":"string","minLength":1,"maxLength":128},"evidence_hash":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"issued_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"},"expires_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"}},"required":["schema_version","attestation_id","type","issuer","key_id","org_id","decision_id","subject","result","risk_score","reasons","policy_version","policy_hash","ruleset_version","evidence_hash","issued_at","expires_at"],"additionalProperties":false},"signature":{"type":"string","pattern":"^[A-Za-z0-9_-]+$"}},"required":["payload","signature"],"additionalProperties":false},"next_action":{"type":"string","enum":["execute_if_receipt_valid","contact_operator","request_scan","stop"]},"request_id":{"type":"string","pattern":"^req_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"}},"required":["decision_id","service_id","tool_name","decision","risk_score","reasons","observation_id","observed_fingerprint","policy_version","ruleset_version","evidence_hash","evaluated_at","expires_at","attestation_id","attestation","next_action","request_id"],"additionalProperties":false},"Attestation":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"attestation_id":{"type":"string","pattern":"^att_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"status":{"type":"string","enum":["active","revoked"]},"envelope":{"type":"object","properties":{"payload":{"type":"object","properties":{"schema_version":{"type":"string","const":"christine.attestation.v1"},"attestation_id":{"type":"string","pattern":"^att_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"type":{"type":"string","const":"toolguard_gate"},"issuer":{"type":"string","format":"uri"},"key_id":{"type":"string","minLength":1,"maxLength":128},"org_id":{"type":"string","pattern":"^org_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"decision_id":{"type":"string","pattern":"^dec_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"subject":{"type":"object","properties":{"service_id":{"type":"string","pattern":"^svc_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"tool_name":{"type":"string","minLength":1,"maxLength":128},"expected_fingerprint":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"observed_fingerprint":{"anyOf":[{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},{"type":"null"}]}},"required":["service_id","tool_name","expected_fingerprint","observed_fingerprint"],"additionalProperties":false},"result":{"type":"string","enum":["allow","deny","review","unknown"]},"risk_score":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"reasons":{"type":"array","items":{"type":"string","pattern":"^[A-Z][A-Z0-9_]*$"}},"policy_version":{"type":"string","minLength":1,"maxLength":128},"policy_hash":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"ruleset_version":{"type":"string","minLength":1,"maxLength":128},"evidence_hash":{"type":"string","pattern":"^sha256:[a-f0-9]{64}$"},"issued_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"},"expires_at":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"}},"required":["schema_version","attestation_id","type","issuer","key_id","org_id","decision_id","subject","result","risk_score","reasons","policy_version","policy_hash","ruleset_version","evidence_hash","issued_at","expires_at"],"additionalProperties":false},"signature":{"type":"string","pattern":"^[A-Za-z0-9_-]+$"}},"required":["payload","signature"],"additionalProperties":false},"request_id":{"type":"string","pattern":"^req_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"}},"required":["attestation_id","status","envelope","request_id"],"additionalProperties":false},"WatchCreated":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"watch_id":{"type":"string","pattern":"^watch_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"service_id":{"type":"string","pattern":"^svc_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"status":{"type":"string","enum":["active","paused_quota","paused_error"]},"interval_seconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"webhook_endpoint_id":{"type":"string","pattern":"^wh_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"next_scan_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"request_id":{"type":"string","pattern":"^req_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"}},"required":["watch_id","service_id","status","interval_seconds","webhook_endpoint_id","created_at","next_scan_at","request_id"],"additionalProperties":false},"WatchDetail":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"watch_id":{"type":"string","pattern":"^watch_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"service_id":{"type":"string","pattern":"^svc_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"status":{"type":"string","enum":["active","paused_quota","paused_error"]},"interval_seconds":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"webhook_endpoint_id":{"type":"string","pattern":"^wh_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"next_scan_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},"request_id":{"type":"string","pattern":"^req_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"last_scan_id":{"anyOf":[{"type":"string","pattern":"^scan_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},{"type":"null"}]},"last_observation_id":{"anyOf":[{"type":"string","pattern":"^obs_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},{"type":"null"}]},"last_event_at":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"},{"type":"null"}]},"pause_reason":{"type":["string","null"]}},"required":["watch_id","service_id","status","interval_seconds","webhook_endpoint_id","created_at","next_scan_at","request_id","last_scan_id","last_observation_id","last_event_at","pause_reason"],"additionalProperties":false},"WatchRequest":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"service_id":{"type":"string","pattern":"^svc_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"},"interval_seconds":{"default":21600,"type":"integer","minimum":3600,"maximum":86400},"webhook_endpoint_id":{"type":"string","pattern":"^wh_[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"}},"required":["service_id","webhook_endpoint_id"],"additionalProperties":false},"Health":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"type":"string","enum":["ok","degraded"]},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"}},"required":["status","time"],"additionalProperties":false}}}}