feat(shared): add DmCallPhase to dm_call_undeliverable event
This commit is contained in:
@@ -364,6 +364,8 @@ export type DmCallUndeliverableReason =
|
||||
| 'peer_transient_failure'
|
||||
| 'livekit_unavailable';
|
||||
|
||||
export type DmCallPhase = 'start' | 'accept' | 'reject' | 'end';
|
||||
|
||||
export interface DmCallUndeliverableFailure {
|
||||
reason: DmCallUndeliverableReason;
|
||||
peerOrigin?: string;
|
||||
@@ -426,7 +428,7 @@ export type ServerEvent =
|
||||
| { type: 'dm_call_accepted'; dmChannelId: string | null; federatedCallId?: string }
|
||||
| { type: 'dm_call_rejected'; dmChannelId: string }
|
||||
| { type: 'dm_call_ended'; dmChannelId: string }
|
||||
| { type: 'dm_call_undeliverable'; dmChannelId: string | null; federatedCallId: string; terminal: boolean; failures: DmCallUndeliverableFailure[] }
|
||||
| { type: 'dm_call_undeliverable'; dmChannelId: string | null; federatedCallId: string; terminal: boolean; phase: DmCallPhase; failures: DmCallUndeliverableFailure[] }
|
||||
| { type: 'voice_status_update'; userId: string; channelId: string; isMuted: boolean; isDeafened: boolean; isCameraOn: boolean; isScreenSharing: boolean }
|
||||
| { type: 'dm_channel_created'; dmChannel: DmChannel }
|
||||
| { type: 'dm_channel_closed'; dmChannelId: string }
|
||||
|
||||
Reference in New Issue
Block a user