/** * Constants matched against TUICallService's CallStatus / IS_GROUP values. * These are plain strings — no dependency on the host's modules. */ export const STATUS_CALLING = 'calling'; export const STATUS_CONNECTED = 'connected'; export const STATUS_IDLE = 'idle'; /** * Named events flowing through the uni global event bus. * * TUICallService publishes on these channels; the group-call plugin listens. * Neither side imports from the other — the event name is the contract. */ export const GROUP_CALL_EVENTS = { /** Fired when callStatus changes. Payload: string (CallStatus enum value). */ STATUS_CHANGED: 'groupCall:statusChanged', /** Fired when isGroup changes. Payload: boolean. */ IS_GROUP_CHANGED: 'groupCall:isGroupChanged', } as const;