{"openapi":"3.1.0","info":{"title":"Archive Custody Replay","version":"1.0.0","description":"Reconcile archive handoff offers with receiver acknowledgments and flag disputes and items awaiting acceptance.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/archive-custody-replay/v1/check":{"post":{"operationId":"archive_custody_replay","summary":"Reconcile archive handoff offers with receiver acknowledgments and flag disputes and items awaiting acceptance.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"holdings":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"item":{"type":"string","minLength":1,"maxLength":80},"custodian":{"type":"string","minLength":1,"maxLength":80}},"required":["item","custodian"],"additionalProperties":false}},"entries":{"maxItems":400,"type":"array","items":{"oneOf":[{"type":"object","properties":{"action":{"type":"string","const":"offer"},"event":{"type":"string","minLength":1,"maxLength":80},"item":{"type":"string","minLength":1,"maxLength":80},"from":{"type":"string","minLength":1,"maxLength":80},"to":{"type":"string","minLength":1,"maxLength":80}},"required":["action","event","item","from","to"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"accept"},"event":{"type":"string","minLength":1,"maxLength":80},"offer":{"type":"string","minLength":1,"maxLength":80},"by":{"type":"string","minLength":1,"maxLength":80}},"required":["action","event","offer","by"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"cancel"},"event":{"type":"string","minLength":1,"maxLength":80},"offer":{"type":"string","minLength":1,"maxLength":80},"by":{"type":"string","minLength":1,"maxLength":80}},"required":["action","event","offer","by"],"additionalProperties":false}]}}},"required":["holdings","entries"],"additionalProperties":false},"example":{"holdings":[{"item":"folio","custodian":"archive"}],"entries":[{"action":"offer","event":"T1","item":"folio","from":"archive","to":"studio"},{"action":"accept","event":"T2","offer":"T1","by":"photo"},{"action":"accept","event":"T3","offer":"T1","by":"studio"},{"action":"offer","event":"T4","item":"folio","from":"studio","to":"vault"}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"holdings":[{"item":"folio","custodian":"studio"}],"accepted":[{"offer":"T1","acknowledgment":"T3"}],"pending":[{"offer":"T4","item":"folio","from":"studio","to":"vault"}],"issues":[{"event":"T2","reason":"unexpected_actor","expected_actor":"studio"}]}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}