feat(shared): add dm_call_undeliverable event type

This commit is contained in:
Jannis Braun
2026-04-21 13:33:52 +02:00
parent 852e3657f9
commit 1be544bbd5
+14
View File
@@ -358,6 +358,19 @@ export interface Activity {
// ─── WebSocket Event Types ────────────────────────────────────────────────── // ─── WebSocket Event Types ──────────────────────────────────────────────────
export type DmCallUndeliverableReason =
| 'peer_rejected'
| 'peer_awaiting_approval'
| 'peer_transient_failure'
| 'livekit_unavailable';
export interface DmCallUndeliverableFailure {
reason: DmCallUndeliverableReason;
peerOrigin?: string;
peerLabel?: string;
affectedUserIds?: string[];
}
// Client → Server Events // Client → Server Events
export type ClientEvent = export type ClientEvent =
| { type: 'auth'; token: string } | { type: 'auth'; token: string }
@@ -413,6 +426,7 @@ export type ServerEvent =
| { type: 'dm_call_accepted'; dmChannelId: string | null; federatedCallId?: string } | { type: 'dm_call_accepted'; dmChannelId: string | null; federatedCallId?: string }
| { type: 'dm_call_rejected'; dmChannelId: string } | { type: 'dm_call_rejected'; dmChannelId: string }
| { type: 'dm_call_ended'; dmChannelId: string } | { type: 'dm_call_ended'; dmChannelId: string }
| { type: 'dm_call_undeliverable'; dmChannelId: string | null; federatedCallId: string; terminal: boolean; failures: DmCallUndeliverableFailure[] }
| { type: 'voice_status_update'; userId: string; channelId: string; isMuted: boolean; isDeafened: boolean; isCameraOn: boolean; isScreenSharing: boolean } | { 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_created'; dmChannel: DmChannel }
| { type: 'dm_channel_closed'; dmChannelId: string } | { type: 'dm_channel_closed'; dmChannelId: string }