@vonage/client-sdk 0.2.0-rc.1 → 0.2.1-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.
@@ -4,6 +4,7 @@ type __doNotImplementIt = typeof __doNotImplementIt
4
4
  export namespace vonage {
5
5
  interface CombinedEvents extends vonage.VoiceEvents, vonage.ChatEvents {
6
6
  callInvite(callId: string, invite: vonage.VoiceInviteJS): void;
7
+ callInviteCancel(callId: string, reason: vonage.CancelReasonJS): void;
7
8
  callTransfer(callId: string, conversationId: string): void;
8
9
  mute(callId: string, legId: string, isMuted: boolean): void;
9
10
  earmuff(callId: string, legId: string, earmuffStatus: boolean): void;
@@ -455,6 +456,7 @@ export namespace vonage {
455
456
  export namespace vonage {
456
457
  interface VoiceEvents extends vonage.CoreClientEvents {
457
458
  callInvite(callId: string, invite: vonage.VoiceInviteJS): void;
459
+ callInviteCancel(callId: string, reason: vonage.CancelReasonJS): void;
458
460
  callTransfer(callId: string, conversationId: string): void;
459
461
  mute(callId: string, legId: string, isMuted: boolean): void;
460
462
  earmuff(callId: string, legId: string, earmuffStatus: boolean): void;
@@ -573,6 +575,30 @@ export namespace vonage {
573
575
  const REASON_CLIENT_DISCONNECTED: string;
574
576
  const REASON_CLIENT_NETWORK_ERROR: string;
575
577
  const REASON_PING_TIMEOUT: string;
578
+ abstract class CancelReasonJS {
579
+ private constructor();
580
+ get reason(): string;
581
+ static get RemoteCancel(): vonage.CancelReasonJS & {
582
+ get name(): "RemoteCancel";
583
+ get ordinal(): 0;
584
+ };
585
+ static get RemoteAnswer(): vonage.CancelReasonJS & {
586
+ get name(): "RemoteAnswer";
587
+ get ordinal(): 1;
588
+ };
589
+ static get RemoteReject(): vonage.CancelReasonJS & {
590
+ get name(): "RemoteReject";
591
+ get ordinal(): 2;
592
+ };
593
+ static get RemoteTimeout(): vonage.CancelReasonJS & {
594
+ get name(): "RemoteTimeout";
595
+ get ordinal(): 3;
596
+ };
597
+ static values(): Array<vonage.CancelReasonJS>;
598
+ static valueOf(value: string): vonage.CancelReasonJS;
599
+ get name(): "RemoteCancel" | "RemoteAnswer" | "RemoteReject" | "RemoteTimeout";
600
+ get ordinal(): 0 | 1 | 2 | 3;
601
+ }
576
602
  class RTCQualityJS {
577
603
  constructor(callQuality: any/* com.vonage.clientcore.core.conversation.RTCQuality */);
578
604
  get mos_score(): number;