{"lexicon":1,"id":"money.atmosphere.event.list","defs":{"event":{"type":"object","required":["id","type","seq","createdAt","environment","data"],"properties":{"id":{"type":"string","maxLength":128,"description":"Delivery id (the webhook Atm-Delivery-Id)."},"type":{"type":"ref","ref":"money.atmosphere.event.receive#eventType","description":"Event type, e.g. payment.completed."},"seq":{"type":"integer","minimum":1,"description":"Monotonic sequence position within this app's event stream. For pagination, use the response `cursor` rather than constructing one from seq."},"createdAt":{"type":"string","format":"datetime"},"environment":{"type":"string","knownValues":["test","live"],"maxLength":16},"data":{"type":"unknown","description":"A bounded PII-free event summary. It retains the canonical payment.order routing, status, and state-authority cause control block for revision fencing, but excludes raw app metadata, buyer contact, shipping, and processor details."}}},"main":{"type":"query","description":"List the calling app's retained events in monotonic seq order for pull-based catch-up. Requires a service-auth JWT signed by the app DID; returns only events ATM emitted to that app. This retention-limited history is not a durable current-order reconciliation API.","parameters":{"type":"params","properties":{"cursor":{"type":"string","maxLength":1024,"description":"Opaque pagination cursor from a previous response. Omit to start from the beginning of retained history."},"environment":{"type":"string","knownValues":["test","live"],"maxLength":16},"limit":{"type":"integer","minimum":1,"maximum":200,"default":50}}},"output":{"encoding":"application/json","schema":{"type":"object","required":["events"],"properties":{"events":{"type":"array","items":{"type":"ref","ref":"#event"}},"cursor":{"type":"string","maxLength":1024,"description":"Opaque cursor to pass back as `cursor` for the next page. Absent when no more events."}}}}}}}