{"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":"string","maxLength":64,"description":"Event type, e.g. payment.completed."},"seq":{"type":"integer","minimum":1,"description":"Monotonic cursor position. Pass the last seq back as `cursor` to page forward."},"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":64,"description":"Resume after this seq (exclusive). 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":64,"description":"The seq of the last event returned; pass back as `cursor` for the next page. Absent when no more events."}}}}}}}