{"lexicon":1,"id":"tickets.atmosphere.inviteOrganizerCollaboration","defs":{"main":{"type":"procedure","description":"Invite a co-organizer to operationally co-run a ticketed event (Part A: operational delegation only). revenueShareBps, if set, is a RECORDED INTENT for MANUAL RECONCILIATION between the organizers — ATM never auto-splits or auto-pays ticket revenue, which always settles to the single primary organizer. Requires app service-auth plus a verified inviter organizer assertion.","input":{"encoding":"application/json","schema":{"type":"object","required":["organizerDid","coOrganizerDid"],"properties":{"environment":{"type":"string","knownValues":["test","live"],"maxLength":16},"eventId":{"type":"string","minLength":1,"maxLength":300},"eventUri":{"type":"string","format":"at-uri"},"organizerDid":{"type":"string","format":"did","description":"The inviting PRIMARY organizer (or an already-accepted co-organizer) authorizing this invite."},"organizerAssertionJwt":{"type":"string","description":"Optional short-lived user service-auth JWT from organizerDid to ATM, scoped to tickets.atmosphere.inviteOrganizerCollaboration. Proves the inviting organizer authorized the app to manage collaborations for this event.","maxLength":8192},"coOrganizerDid":{"type":"string","format":"did","description":"The DID being invited to co-organize the event."},"revenueShareBps":{"type":"integer","minimum":0,"maximum":10000,"description":"OPTIONAL recorded revenue-share INTENT in basis points (0..10000), for MANUAL RECONCILIATION ONLY between the primary organizer and the co-organizer. This is NOT an automatic split: ATM never transfers or auto-pays any portion of ticket gross revenue based on this value. Ticket revenue settles entirely to the single primary organizer's connected account."}}}},"output":{"encoding":"application/json","schema":{"type":"object","required":["collaboration"],"properties":{"collaboration":{"type":"ref","ref":"tickets.atmosphere.defs#organizerCollaboration"}}}},"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":"InvalidCollaboration","description":"Invalid collaboration request (e.g. inviting the primary organizer as their own co-organizer, or an invalid revenueShareBps)."},{"name":"CollaborationAlreadyAccepted","description":"An accepted collaboration already exists for this co-organizer."},{"name":"UserDidMismatch","description":"organizerAssertionJwt issuer does not match organizerDid."}]}}}