@vanira/sdk 0.0.84 → 0.0.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -79,6 +79,13 @@ export class VaniraClient {
79
79
  reason?: string,
80
80
  message?: string,
81
81
  ): Promise<{media_id: string; url: string; content_type?: string}>;
82
+ sendMediaUpdate(params: {
83
+ media_id: string;
84
+ media_url: string;
85
+ content_type: string;
86
+ reason: string;
87
+ message?: string;
88
+ }): boolean;
82
89
  }
83
90
 
84
91
  export const WebRTCClient: typeof VaniraClient;
@@ -87,6 +94,42 @@ export type WebRTCClientConfig = VaniraClientConfig;
87
94
  export type VaniraAIConfig = VaniraClientConfig;
88
95
  export type VaniraAIStatus = VaniraClientStatus;
89
96
 
97
+ export interface LiveKitTokenResponse {
98
+ url: string;
99
+ token: string;
100
+ room_name: string;
101
+ identity: string;
102
+ agent_id: string;
103
+ call_id: string;
104
+ }
105
+
106
+ export interface LiveKitVoiceClientConfig {
107
+ serverUrl: string;
108
+ agentId: string;
109
+ callId?: string;
110
+ token?: string;
111
+ continuedCallId?: string;
112
+ bridgeIdentityPrefix?: string;
113
+ onConnected?: (payload: {
114
+ roomName: string;
115
+ identity: string;
116
+ callId: string;
117
+ }) => void;
118
+ onDisconnected?: () => void;
119
+ onError?: (error: unknown) => void;
120
+ }
121
+
122
+ /** Parallel voice path via LiveKit SFU — no DataChannel / client tools (v1). */
123
+ export class LiveKitVoiceClient {
124
+ constructor(config: LiveKitVoiceClientConfig);
125
+ readonly serverUrl: string;
126
+ readonly agentId: string;
127
+ callId: string;
128
+ readonly isConnected: boolean;
129
+ connect(): Promise<LiveKitTokenResponse>;
130
+ disconnect(): void;
131
+ }
132
+
90
133
  export interface StoredCallSession {
91
134
  callId: string;
92
135
  prospectId?: string;