{"version":1,"request":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"version":{"default":1,"type":"number","const":1},"goal":{"type":"string","minLength":1,"maxLength":2000},"intent":{"default":"execute","type":"string","enum":["quote","execute"]},"purchase":{"default":{"requirements":[]},"type":"object","properties":{"quantity":{"type":"integer","minimum":1,"maximum":1000000},"budgetUsd":{"type":"string","pattern":"^(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$"},"budgetExclusive":{"type":"boolean"},"reviewAfterCalls":{"type":"integer","minimum":1,"maximum":1000000},"requestedUsage":{"type":"object","properties":{"quantity":{"type":"integer","minimum":1,"maximum":1000000},"unit":{"type":"string","minLength":1,"maxLength":200},"reviewAfter":{"type":"integer","minimum":1,"maximum":1000000}},"required":["quantity","unit"],"additionalProperties":false},"requirements":{"default":[],"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":300}}},"additionalProperties":false},"operation":{"type":"object","properties":{"path":{"type":"string","maxLength":2000,"pattern":"^\\/.*"},"method":{"type":"string","enum":["get","post","put","patch","delete"]}},"required":["path","method"],"additionalProperties":false},"arguments":{"default":{"path":{},"query":{},"headers":{}},"type":"object","properties":{"path":{"default":{},"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":200},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"query":{"default":{},"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":200},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"headers":{"default":{},"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":200},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"body":{"$ref":"#/$defs/__schema0"},"bodyRef":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_-]{0,63}$"}},"additionalProperties":false},"constraints":{"default":{"maxChargeUsd":"0","maxHoldUsd":"0","allowMutations":false,"encryption":false,"freeOnly":false,"deadlineSeconds":120},"type":"object","properties":{"maxChargeUsd":{"default":"0","type":"string","pattern":"^(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$"},"maxHoldUsd":{"default":"0","type":"string","pattern":"^(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$"},"allowMutations":{"default":false,"type":"boolean"},"humanAvailable":{"description":"Whether a human is in the loop. False recommends anonymous auth for a new autonomous identity; omit when unknown. Executing a human's request without further interruptions does not by itself mean false.","type":"boolean"},"encryption":{"default":false,"type":"boolean"},"freeOnly":{"default":false,"type":"boolean"},"deadlineSeconds":{"default":120,"type":"integer","minimum":1,"maximum":3600}},"additionalProperties":false},"buyerState":{"default":{"auth":"unknown","assertion":"unknown","refreshAvailable":false,"identity":"unknown","verifiedEmail":false,"access":"unknown","sellerKey":"unknown","paymentMethods":[]},"type":"object","properties":{"auth":{"default":"unknown","type":"string","enum":["none","valid","expired","unknown"]},"assertion":{"default":"unknown","type":"string","enum":["valid","expired","missing","unknown"]},"refreshAvailable":{"default":false,"type":"boolean"},"identity":{"default":"unknown","type":"string","enum":["new","returning","unknown"]},"verifiedEmail":{"default":false,"type":"boolean"},"access":{"default":"unknown","type":"string","enum":["none","existing","pending","unknown"]},"accessId":{"type":"string","minLength":1,"maxLength":200},"planId":{"type":"string","minLength":1,"maxLength":200},"fundingAmountUsd":{"type":"string","pattern":"^(0|[1-9]\\d{0,8})(\\.\\d{1,6})?$"},"sellerKey":{"default":"unknown","type":"string","enum":["available","missing","unknown"]},"paymentMethods":{"default":[],"maxItems":3,"type":"array","items":{"type":"string","enum":["x402","mpp","card"]}}},"additionalProperties":false},"paymentDiscovery":{"default":"unknown","type":"string","enum":["unknown","checked","unavailable"]},"paymentCapabilities":{"default":[],"maxItems":10,"type":"array","items":{"oneOf":[{"type":"object","properties":{"protocol":{"type":"string","const":"x402"},"network":{"type":"string","minLength":1,"maxLength":200},"asset":{"type":"string","minLength":1,"maxLength":200},"schemes":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","enum":["exact","upto"]}}},"required":["protocol","network","asset","schemes"],"additionalProperties":false},{"type":"object","properties":{"protocol":{"type":"string","const":"mpp"},"method":{"type":"string","enum":["tempo","stripe"]},"intents":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","enum":["charge","session"]}}},"required":["protocol","method","intents"],"additionalProperties":false},{"type":"object","properties":{"protocol":{"type":"string","const":"card"},"lane":{"type":"string","const":"checkout","description":"Can open hosted checkout with a browser agent or human. Browser-agent LPT support must be verified on the actual Stripe page; never send LPT to this API."}},"required":["protocol","lane"],"additionalProperties":false}]}},"continuation":{"type":"object","properties":{"version":{"type":"string","pattern":"^[a-f0-9]{64}$"},"stepId":{"type":"string","minLength":1,"maxLength":200},"outcome":{"type":"string","enum":["timeout","error","pending","complete"]},"error":{"type":"string","minLength":1,"maxLength":200},"accessId":{"type":"string","minLength":1,"maxLength":200},"paymentId":{"type":"string","minLength":1,"maxLength":200}},"required":["version","stepId","outcome"],"additionalProperties":false}},"required":["goal"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}