@vonage/client-sdk 2.1.1-snapshot.110.0 → 2.1.1

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.
@@ -14,7 +14,7 @@ import { ConversationEvent } from '../kotlin/JsUnions';
14
14
  * @packageDocumentation
15
15
  */
16
16
  export * from '../utils';
17
- type VonageEventOverride = Omit<vonage.CombinedEvents, 'conversationEvent' | 'callHangup' | 'callMediaDisconnect' | 'legStatusUpdate' | 'rtcStatsUpdate' | 'callInvite' | 'callInviteCancel' | 'sessionError' | 'callMediaError' | 'disconnected' | 'hangup'> & {
17
+ type VonageEventOverride = Omit<vonage.CombinedEvents, 'conversationEvent' | 'callHangup' | 'callMediaDisconnect' | 'legStatusUpdate' | 'rtcStatsUpdate' | 'callInvite' | 'callInviteCancel' | 'sessionError' | 'callMediaError'> & {
18
18
  conversationEvent: (event: ConversationEvent) => void;
19
19
  callHangup: (callId: string, callQuality: RTCQuality, reason: HangupReason) => void;
20
20
  callMediaDisconnect: (callId: string, reason: CallDisconnectReason) => void;
@@ -24,8 +24,6 @@ type VonageEventOverride = Omit<vonage.CombinedEvents, 'conversationEvent' | 'ca
24
24
  callInvite: (callId: string, from: string, channelType: VoiceChannelType) => void;
25
25
  sessionError: (reason: SessionErrorReason) => void;
26
26
  callMediaError: (callId: string, error: VonageError) => void;
27
- disconnected: (callId: string) => void;
28
- hangup: (callId: string) => void;
29
27
  };
30
28
  /**
31
29
  * Vonage Event Names
@@ -121,15 +119,6 @@ export type CallSayParams = Partial<vonage.CallSayParams> & {
121
119
  * @group Voice
122
120
  */
123
121
  export type RtcStats = vonage.RTCStatsJS;
124
- /**
125
- * Result of an emergency call
126
- *
127
- * @property callId The call ID
128
- * @property reconnectToken The reconnect token for the call
129
- * @interface
130
- * @group Emergency
131
- */
132
- export type EmergencyCallResult = vonage.emergency.EmergencyCallResultJS;
133
122
  /**
134
123
  * VonageClient is the main entry point for the Vonage Client SDK.
135
124
  *
@@ -215,7 +204,7 @@ export declare class VonageClient extends vonage.CombinedClientJS {
215
204
  * @group Voice
216
205
  * @param id - The Call Id
217
206
  */
218
- getPeerConnection(id: string): RTCPeerConnection | undefined;
207
+ getPeerConnection(id: string): RTCPeerConnection;
219
208
  /**
220
209
  * Get the HTML Audio Element for the SDK.
221
210
  * It can be used to route output to other devices.
@@ -561,33 +550,5 @@ export declare class VonageClient extends vonage.CombinedClientJS {
561
550
  * @returns the `timestamp` of the message
562
551
  */
563
552
  sendMessageSeenEvent(id: number, conversationId: string): Promise<string>;
564
- /**
565
- * Starts an emergency call.
566
- *
567
- * @group Emergency
568
- * @param token
569
- * @param from
570
- * @param to
571
- * @returns the result containing `callId` and `reconnectToken`
572
- */
573
- emergencyCall(token: string, from: string, to: string): Promise<EmergencyCallResult>;
574
- /**
575
- * Reconnects an existing emergency call.
576
- *
577
- * @group Emergency
578
- * @param token
579
- * @param callId
580
- * @param reconnectToken
581
- * @returns void
582
- */
583
- reconnectEmergencyCall(token: string, callId: string, reconnectToken: string): Promise<void>;
584
- /**
585
- * Hangup an emergency call.
586
- *
587
- * @group Emergency
588
- * @param callId - the `callId` of the call to hangup
589
- * @returns void
590
- */
591
- hangupEmergencyCall(callId: string): Promise<void>;
592
553
  }
593
554
  export default VonageClient;