{"lexicon":1,"id":"tickets.atmosphere.acceptCollaboration","defs":{"main":{"type":"procedure","description":"Accept a pending co-organizer invitation (dual-consent: app service-auth plus the co-organizer's own assertion). Acceptance grants operational event control only; any recorded revenueShareBps remains a MANUAL-RECONCILIATION intent, never an automatic payout.","input":{"encoding":"application/json","schema":{"type":"object","required":["collaborationId","coOrganizerDid","coOrganizerAssertionJwt"],"properties":{"environment":{"type":"string","knownValues":["test","live"],"maxLength":16},"collaborationId":{"type":"string","minLength":1,"maxLength":300},"coOrganizerDid":{"type":"string","format":"did","description":"The accepting co-organizer. Must match the invitation's named coOrganizerDid."},"coOrganizerAssertionJwt":{"type":"string","description":"REQUIRED short-lived user service-auth JWT issued BY coOrganizerDid to ATM, scoped to tickets.atmosphere.acceptCollaboration. This is the co-organizer's consent: ATM verifies iss === coOrganizerDid and the route-scoped lxm before flipping the row to accepted.","maxLength":8192}}}},"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":"CollaborationNotFound","description":"Collaboration invitation not found."},{"name":"CollaborationConsentRequired","description":"A valid co-organizer assertion (coOrganizerAssertionJwt) issued by coOrganizerDid is required to accept this invitation."},{"name":"CollaborationNotAcceptable","description":"This collaboration is not in a pending state, or coOrganizerDid does not match the named invitee."},{"name":"UserDidMismatch","description":"coOrganizerAssertionJwt issuer does not match coOrganizerDid."}]}}}