{"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":8},"data":{"type":"unknown","description":"The same sanitized event payload the signed webhook carries. No raw app metadata, buyer PII, emails, or fulfillment data."}}},"main":{"type":"query","description":"List the calling app's events in monotonic seq order for pull-based reconciliation / catch-up. Requires a service-auth JWT signed by the app DID; returns only events ATM emitted to that app.","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":8},"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."}}}}}}}