Overview
useAddInvite returns a callable that invites a user to an event. Host-only. Idempotent against the unique (eventId, userId) constraint. For an invite-visibility event, the invited user can now see and RSVP to it; when the notifications bundle is enabled, the invitee receives an event-invite notification.
Usage Example
Parameters
The event ID.
The user to invite (userId only — never a foreign ID).
Returns
Returns aPromise<Event> — the updated Event.

