@@ -55,6 +55,9 @@ type VapiEventNames =
5555 | 'message'
5656 | 'video'
5757 | 'error'
58+ | 'camera-error'
59+ | 'network-quality-change'
60+ | 'network-connection'
5861 | 'daily-participant-updated' ;
5962
6063type VapiEventListeners = {
@@ -66,6 +69,9 @@ type VapiEventListeners = {
6669 video : ( track : MediaStreamTrack ) => void ;
6770 message : ( message : any ) => void ;
6871 error : ( error : any ) => void ;
72+ 'camera-error' : ( error : any ) => void ;
73+ 'network-quality-change' : ( event : any ) => void ;
74+ 'network-connection' : ( event : any ) => void ;
6975 'daily-participant-updated' : ( participant : DailyParticipant ) => void ;
7076} ;
7177
@@ -266,7 +272,15 @@ export default class Vapi extends VapiEventEmitter {
266272 } ) ;
267273
268274 this . call . on ( 'camera-error' , ( error : any ) => {
269- this . emit ( 'error' , error ) ;
275+ this . emit ( 'camera-error' , error ) ;
276+ } ) ;
277+
278+ this . call . on ( 'network-quality-change' , ( event : any ) => {
279+ this . emit ( 'network-quality-change' , event ) ;
280+ } ) ;
281+
282+ this . call . on ( 'network-connection' , ( event : any ) => {
283+ this . emit ( 'network-connection' , event ) ;
270284 } ) ;
271285
272286 this . call . on ( 'track-started' , async ( e ) => {
0 commit comments