{"ok":true,"probe_pass":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://agentpaystore.com/api/directory/probe-pass/schema","title":"AgentPayStore probe-pass record","description":"Callability of one listing. Says a current x402 v2 client could pay it. A v1-only seller fails v2 even though a v1 client could pay it. Never says the data is good.","type":"object","required":["state","probed_at","attempts","attempt_times","attempt_states","request","checks","failed","notes"],"properties":{"state":{"enum":["pass","fail","unreachable","inconclusive","free","pending_seller_review"]},"probed_at":{"type":"string","description":"UTC timestamp of the probe this record came from"},"attempts":{"type":"integer","minimum":1,"maximum":3,"description":"Attempts made before this state published. 1 for a pass or free on the first clean answer; 3 for a fail or unreachable."},"attempt_times":{"type":"array","minItems":1,"maxItems":3,"items":{"type":"string","format":"date-time"},"description":"UTC time of every attempt, in order. Its length equals attempts. probed_at is the last of them."},"request":{"type":"object","required":["method","url","body","source","listed","matches_listed"],"description":"The exact request the probe sent. Published with every grade so a declared request cannot shape the result unseen.","properties":{"method":{"enum":["GET","POST"]},"url":{"type":"string"},"body":{"type":["string","null"]},"source":{"enum":["declared_probe","listing_endpoint"],"description":"declared_probe: the listing supplied the probe URL, method or body. listing_endpoint: the probe used the listed endpoint as is."},"listed":{"type":"object","required":["method","url"],"properties":{"method":{"type":"string"},"url":{"type":"string"}},"description":"The operation the listing itself publishes."},"matches_listed":{"type":"boolean","description":"True when the probed method, scheme, host and path equal the listed operation. False is shown on the strip in plain words."}}},"attempt_states":{"type":"array","minItems":1,"maxItems":3,"items":{"enum":["pass","fail","unreachable","inconclusive","free"]},"description":"What each attempt observed, in order."},"http_status":{"type":["integer","null"]},"x402_version":{"type":["string","null"]},"checks":{"type":"object","required":["answers","v2","price_named","network_named","pay_to_named","resource_named","facilitator_named","facilitator_all_levels","header_body_consistent","gated"],"properties":{"answers":{"type":"boolean"},"v2":{"type":"boolean"},"price_named":{"type":"boolean"},"network_named":{"type":"boolean"},"pay_to_named":{"type":"boolean"},"resource_named":{"type":"boolean"},"facilitator_named":{"type":"boolean","description":"Facilitator named at root, in accepts[].extra.facilitator, or (read only as a hint) in accepts[].facilitator."},"facilitator_all_levels":{"type":"boolean","description":"Facilitator named in both spec-safe places: root facilitator and accepts[].extra.facilitator. accepts[].facilitator is not required; it is not an x402 v2 PaymentRequirements field."},"header_body_consistent":{"type":"boolean","description":"Where both the PAYMENT-REQUIRED header and the JSON body carry terms, they agree on x402Version, network, amount and payTo. True when only one surface carries terms."},"gated":{"type":"boolean"}}},"failed":{"type":"array","uniqueItems":true,"items":{"enum":["answers","v2","price_named","network_named","pay_to_named","gated"]},"description":"Blocking checks that did not hold. Only these six names can appear."},"notes":{"type":"array","uniqueItems":true,"items":{"enum":["resource_named","facilitator_named","facilitator_all_levels","header_body_consistent"]},"description":"Checks that did not hold but cannot stop a client paying. A note never changes state."},"measures":{"type":"string"}},"x-check-kinds":{"answers":"blocking","v2":"blocking","price_named":"blocking","network_named":"blocking","pay_to_named":"blocking","gated":"blocking","resource_named":"note","facilitator_named":"note","facilitator_all_levels":"note","header_body_consistent":"note"},"x-invariants":["A settlement count never appears without address and observed_window.","unreachable is never reported as fail.","inconclusive is never reported as fail: an HTTP 400 or 422 to the probe means the endpoint rejected the probe request before its payment layer, which is not evidence a client cannot pay.","fail, unreachable and inconclusive are held as pending_seller_review until the seller is notified.","Only a blocking check can produce fail; a note never changes state.","notes is always present, empty when there are none, so a consumer never has to guess.","A fail, unreachable or inconclusive is recorded only after 3 attempts, 20 seconds apart, none of which passed.","attempt_times has one entry per attempt, so attempts equals the length of attempt_times.","Every grade is published with the exact request that produced it: method, URL, body and whether the listing declared it.","When the probed request differs from the listed operation, matches_listed is false and the strip says so."]},"settlement_observed":{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"settlement_observed","type":"object","required":["state"],"properties":{"state":{"enum":["counted","watched_zero","not_observed"]},"address":{"type":"string"},"network":{"type":"string"},"observed_window":{"type":"string"},"count":{"type":"integer"},"last_seen":{"type":["string","null"]},"source":{"type":"string"},"reason":{"type":"string"}},"allOf":[{"if":{"properties":{"state":{"enum":["counted","watched_zero"]}}},"then":{"required":["address","observed_window","count"]}}],"x-invariants":["a count never renders without address and observed_window"]}}
