{"lexicon":1,"id":"tickets.atmosphere.listEventWaitlist","defs":{"main":{"type":"procedure","description":"List an organizer's event waitlist: a per-capacity-group rollup plus the paginated FIFO queue, each entry with its position and current offer status. Authorized via event control (primary organizer or accepted co-organizer). Returns only a masked email hint, never raw buyer PII. A procedure (POST) so the organizer assertion stays out of URLs and logs.","input":{"encoding":"application/json","schema":{"type":"object","required":["eventId","organizerDid"],"properties":{"environment":{"type":"string","knownValues":["test","live"],"maxLength":16},"eventId":{"type":"string","minLength":1,"maxLength":300},"organizerDid":{"type":"string","format":"did"},"organizerAssertionJwt":{"type":"string","maxLength":8192},"capacityGroupId":{"type":"string","minLength":1,"maxLength":300},"includeTerminal":{"type":"boolean","default":false,"description":"Include terminal (claimed/expired/released) rows in the queue page. Absent/false returns only active (waiting/offered) entries. The cursor paginates the entries queue only; summaries are always returned in full."},"limit":{"type":"integer","minimum":1,"maximum":250},"cursor":{"type":"string","maxLength":1024}}}},"output":{"encoding":"application/json","schema":{"type":"object","required":["summaries","entries"],"properties":{"summaries":{"type":"array","maxLength":1000,"items":{"type":"ref","ref":"#waitlistSummary"}},"entries":{"type":"array","maxLength":250,"items":{"type":"ref","ref":"#waitlistEntry"}},"cursor":{"type":"string","maxLength":1024}}}},"errors":[{"name":"AppNotRegistered","description":"Caller DID is not registered as an ATM app."},{"name":"TicketsModuleDisabled","description":"This app has not enabled ATM Tickets."},{"name":"EventNotFound","description":"Ticketed event not found."},{"name":"EventControlRequired","description":"A verified primary-organizer or accepted co-organizer authorization is required for this event."},{"name":"InvalidCursor","description":"Waitlist cursor is invalid."},{"name":"UserDidMismatch","description":"organizerAssertionJwt issuer does not match organizerDid."}]},"waitlistSummary":{"type":"object","required":["eventId","capacityGroupId","capacityGroupName","activeCount","waitingCount","offeredCount","activeQuantity"],"properties":{"eventId":{"type":"string","maxLength":300},"capacityGroupId":{"type":"string","maxLength":300},"capacityGroupName":{"type":"string","maxLength":200},"activeCount":{"type":"integer","minimum":0},"waitingCount":{"type":"integer","minimum":0},"offeredCount":{"type":"integer","minimum":0},"activeQuantity":{"type":"integer","minimum":0}}},"waitlistEntry":{"type":"object","required":["waitlistId","eventId","capacityGroupId","position","quantity","status","createdAt"],"properties":{"waitlistId":{"type":"string","maxLength":300},"eventId":{"type":"string","maxLength":300},"capacityGroupId":{"type":"string","maxLength":300},"position":{"type":"integer","minimum":0},"quantity":{"type":"integer","minimum":1},"status":{"type":"string","knownValues":["waiting","offered","claimed","expired","released"],"maxLength":16},"buyerDid":{"type":"string","format":"did"},"customerEmailHint":{"type":"string","maxLength":200},"offerHoldId":{"type":"string","maxLength":300},"offeredAt":{"type":"string","format":"datetime"},"offerExpiresAt":{"type":"string","format":"datetime"},"createdAt":{"type":"string","format":"datetime"}}}}}