@vonage/client-sdk 2.1.3-snapshot.150.0 → 2.2.0-alpha.0

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,23 +119,6 @@ export type CallSayParams = Partial<vonage.CallSayParams> & {
121
119
  * @group Voice
122
120
  */
123
121
  export type RtcStats = vonage.RTCStatsJS;
124
- /**
125
- * Data for 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 EmergencyCallData = vonage.emergency.EmergencyCallDataJS;
133
- /**
134
- * Options for an emergency call
135
- *
136
- * @property ringbackTone Optional URL to a custom ringback tone audio file
137
- * @interface
138
- * @group Emergency
139
- */
140
- export type EmergencyCallOptions = vonage.emergency.EmergencyCallOptionsJS;
141
122
  /**
142
123
  * VonageClient is the main entry point for the Vonage Client SDK.
143
124
  *
@@ -223,7 +204,7 @@ export declare class VonageClient extends vonage.CombinedClientJS {
223
204
  * @group Voice
224
205
  * @param id - The Call Id
225
206
  */
226
- getPeerConnection(id: string): RTCPeerConnection | undefined;
207
+ getPeerConnection(id: string): RTCPeerConnection;
227
208
  /**
228
209
  * Get the HTML Audio Element for the SDK.
229
210
  * It can be used to route output to other devices.
@@ -570,34 +551,5 @@ export declare class VonageClient extends vonage.CombinedClientJS {
570
551
  * @returns the `timestamp` of the message
571
552
  */
572
553
  sendMessageSeenEvent(id: number, conversationId: string): Promise<string>;
573
- /**
574
- * Starts an emergency call.
575
- *
576
- * @group Emergency
577
- * @param token
578
- * @param from
579
- * @param to
580
- * @param options - Optional {@link EmergencyCallOptions} containing call options
581
- * @returns the result containing `callId` and `reconnectToken`
582
- */
583
- emergencyCall(token: string, from: string, to: string, options?: Nullable<EmergencyCallOptions>): Promise<EmergencyCallData>;
584
- /**
585
- * Reconnects an existing emergency call.
586
- *
587
- * @group Emergency
588
- * @param token
589
- * @param callId
590
- * @param reconnectToken
591
- * @returns void
592
- */
593
- reconnectEmergencyCall(token: string, callId: string, reconnectToken: string): Promise<void>;
594
- /**
595
- * Hangup an emergency call.
596
- *
597
- * @group Emergency
598
- * @param callId - the `callId` of the call to hangup
599
- * @returns void
600
- */
601
- hangupEmergencyCall(callId: string): Promise<void>;
602
554
  }
603
555
  export default VonageClient;