feat(shared): add DmCallPhase to dm_call_undeliverable event

This commit is contained in:
Jannis Braun
2026-04-23 23:06:16 +02:00
parent fe01b94876
commit 5e9b353124
+3 -1
View File
@@ -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 }