{"lexicon":1,"id":"tickets.atmosphere.createTicketTier","defs":{"main":{"type":"procedure","description":"Create an app-scoped ATM Tickets tier and optional public ticket-tier refs for an event.","input":{"encoding":"application/json","schema":{"type":"object","required":["organizerDid","event","title","currency","unitAmount","quantityTotal"],"nullable":["description","saleStartsAt","saleEndsAt","tierRef","productRef","priceRef","organizerAssertionJwt"],"properties":{"environment":{"type":"string","knownValues":["test","live"],"maxLength":16},"organizerDid":{"type":"string","format":"did"},"organizerAssertionJwt":{"type":"string","description":"Optional short-lived user service-auth JWT from organizerDid to ATM, scoped to tickets.atmosphere.createTicketTier. Proves the app is configuring ticketing with organizer consent.","maxLength":8192},"event":{"type":"ref","ref":"tickets.atmosphere.defs#eventInput"},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","maxLength":5000},"currency":{"type":"string","minLength":3,"maxLength":3},"unitAmount":{"type":"integer","minimum":0,"maximum":2000000},"maxPerOrder":{"type":"integer","minimum":1,"maximum":50},"saleStartsAt":{"type":"string","format":"datetime"},"saleEndsAt":{"type":"string","format":"datetime"},"tierRef":{"type":"ref","ref":"com.atproto.repo.strongRef"},"productRef":{"type":"ref","ref":"com.atproto.repo.strongRef"},"priceRef":{"type":"ref","ref":"com.atproto.repo.strongRef"},"metadata":{"type":"unknown"},"quantityTotal":{"type":"integer","minimum":1,"maximum":250000}}}},"output":{"encoding":"application/json","schema":{"type":"object","required":["event","capacityGroup","tier"],"properties":{"event":{"type":"ref","ref":"tickets.atmosphere.defs#eventSummary"},"capacityGroup":{"type":"ref","ref":"tickets.atmosphere.defs#capacityGroupSummary"},"tier":{"type":"ref","ref":"tickets.atmosphere.defs#ticketTierSummary"}}}}}}}