@vonage/client-sdk 1.6.2 → 1.6.3-snapshot.43.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.
@@ -1,23 +1,6 @@
1
1
  type Nullable<T> = T | null | undefined
2
2
  export declare namespace vonage {
3
3
  interface CombinedEvents extends vonage.VoiceEvents, vonage.ChatEvents {
4
- callInvite(callId: string, from: string, channelType: string): void;
5
- callInviteCancel(callId: string, reason: string): void;
6
- callTransfer(callId: string, conversationId: string): void;
7
- mute(callId: string, legId: string, isMuted: boolean): void;
8
- earmuff(callId: string, legId: string, earmuffStatus: boolean): void;
9
- dtmf(callId: string, legId: string, digits: string): void;
10
- callHangup(callId: string, callQuality: vonage.RTCQualityJS, reason: string): void;
11
- legStatusUpdate(callId: string, legId: string, status: string): void;
12
- callMediaReconnecting(callId: string): void;
13
- callMediaReconnection(callId: string): void;
14
- callMediaDisconnect(callId: string, reason: string): void;
15
- rtcStatsUpdate(rtcStats: vonage.RTCStatsJS, legId: string): void;
16
- callMediaError(callId: string, error: vonage.VonageErrorJS): void;
17
- reconnecting(): void;
18
- reconnection(): void;
19
- sessionError(reason: vonage.SessionErrorReasonJS): void;
20
- conversationEvent(event: vonage.ConversationEventJS): void;
21
4
  }
22
5
  }
23
6
  export declare namespace vonage {
@@ -109,10 +92,10 @@ export declare namespace vonage {
109
92
  get name(): "NONE";
110
93
  get ordinal(): 5;
111
94
  };
112
- static values(): Array<vonage.EventStateTypeJS>;
113
- static valueOf(value: string): vonage.EventStateTypeJS;
114
95
  get name(): "SEEN" | "DELIVERED" | "SUBMITTED" | "REJECTED" | "UNDELIVERABLE" | "NONE";
115
96
  get ordinal(): 0 | 1 | 2 | 3 | 4 | 5;
97
+ static values(): Array<vonage.EventStateTypeJS>;
98
+ static valueOf(value: string): vonage.EventStateTypeJS;
116
99
  }
117
100
  class EventStateJS {
118
101
  private constructor();
@@ -464,7 +447,6 @@ export declare namespace vonage {
464
447
  export declare namespace vonage {
465
448
  abstract class PresentingOrderJS {
466
449
  private constructor();
467
- get corePresentingOrder(): any/* com.vonage.clientcore.core.api.models.PresentingOrder */;
468
450
  static get ASC(): vonage.PresentingOrderJS & {
469
451
  get name(): "ASC";
470
452
  get ordinal(): 0;
@@ -473,14 +455,14 @@ export declare namespace vonage {
473
455
  get name(): "DESC";
474
456
  get ordinal(): 1;
475
457
  };
476
- static values(): Array<vonage.PresentingOrderJS>;
477
- static valueOf(value: string): vonage.PresentingOrderJS;
478
458
  get name(): "ASC" | "DESC";
479
459
  get ordinal(): 0 | 1;
460
+ get corePresentingOrder(): any/* com.vonage.clientcore.core.api.models.PresentingOrder */;
461
+ static values(): Array<vonage.PresentingOrderJS>;
462
+ static valueOf(value: string): vonage.PresentingOrderJS;
480
463
  }
481
464
  abstract class OrderByJS {
482
465
  private constructor();
483
- get coreOrderBy(): any/* com.vonage.clientcore.core.api.models.OrderBy */;
484
466
  static get CREATED(): vonage.OrderByJS & {
485
467
  get name(): "CREATED";
486
468
  get ordinal(): 0;
@@ -489,10 +471,11 @@ export declare namespace vonage {
489
471
  get name(): "CUSTOM_SORT_KEY";
490
472
  get ordinal(): 1;
491
473
  };
492
- static values(): Array<vonage.OrderByJS>;
493
- static valueOf(value: string): vonage.OrderByJS;
494
474
  get name(): "CREATED" | "CUSTOM_SORT_KEY";
495
475
  get ordinal(): 0 | 1;
476
+ get coreOrderBy(): any/* com.vonage.clientcore.core.api.models.OrderBy */;
477
+ static values(): Array<vonage.OrderByJS>;
478
+ static valueOf(value: string): vonage.OrderByJS;
496
479
  }
497
480
  class ConversationJS {
498
481
  private constructor();
@@ -716,10 +699,10 @@ export declare namespace vonage {
716
699
  get name(): "UNKNOWN_ERROR";
717
700
  get ordinal(): 4;
718
701
  };
719
- static values(): Array<vonage.VonageErrorTypeJS>;
720
- static valueOf(value: string): vonage.VonageErrorTypeJS;
721
702
  get name(): "CS_ERROR" | "NETWORK_ERROR" | "SESSION_ERROR" | "INTERNAL_ERROR" | "UNKNOWN_ERROR";
722
703
  get ordinal(): 0 | 1 | 2 | 3 | 4;
704
+ static values(): Array<vonage.VonageErrorTypeJS>;
705
+ static valueOf(value: string): vonage.VonageErrorTypeJS;
723
706
  }
724
707
  abstract class MediaClientErrorJS {
725
708
  protected constructor();
@@ -769,9 +752,6 @@ export declare namespace vonage {
769
752
  export declare namespace vonage {
770
753
  interface ChatEvents extends vonage.CoreClientEvents {
771
754
  conversationEvent(event: vonage.ConversationEventJS): void;
772
- reconnecting(): void;
773
- reconnection(): void;
774
- sessionError(reason: vonage.SessionErrorReasonJS): void;
775
755
  }
776
756
  }
777
757
  export declare namespace vonage {
@@ -800,12 +780,6 @@ export declare namespace vonage {
800
780
  deleteEvent(id: number, conversationId: string): Promise<any>;
801
781
  sendMessageSeenEvent(id: number, conversationId: string): Promise<any>;
802
782
  updateConversation(conversationId: string, parameters: vonage.UpdateConversationParametersJS): Promise<any>;
803
- setConfig(config: vonage.ConfigObjectJS): void;
804
- createSession(token: string, sessionId: Nullable<string>): Promise<string>;
805
- deleteSession(): Promise<any>;
806
- refreshSession(token: string): Promise<any>;
807
- getConversation(conversationIdOrName: string): Promise<vonage.ConversationJS>;
808
- getUser(userIdOrName: string): Promise<vonage.UserJS>;
809
783
  }
810
784
  }
811
785
  export declare namespace vonage {
@@ -833,20 +807,12 @@ export declare namespace vonage {
833
807
  readonly loggingLevel?: Nullable<vonage.LoggingLevelJS>;
834
808
  readonly customLoggers?: Nullable<Array<vonage.VonageLoggerJS>>;
835
809
  readonly disableInternalLogger?: Nullable<boolean>;
836
- readonly region?: Nullable<vonage.CoreClientConfigRegionJS>;
837
- readonly apiUrl?: Nullable<string>;
838
- readonly websocketUrl?: Nullable<string>;
839
- readonly websocketPath?: Nullable<string>;
840
- readonly rtcStatsTelemetry?: Nullable<boolean>;
841
- readonly autoReconnectMedia?: Nullable<boolean>;
842
- readonly noiseSuppression?: Nullable<boolean>;
843
810
  }
844
811
  }
845
812
  export declare namespace vonage {
846
813
  const DEFAULT_REGION: vonage.CoreClientConfigRegionJS;
847
814
  abstract class CoreClientConfigRegionJS {
848
815
  private constructor();
849
- get coreRegion(): any/* com.vonage.clientcore.core.api.ClientConfigRegion */;
850
816
  static get AP(): vonage.CoreClientConfigRegionJS & {
851
817
  get name(): "AP";
852
818
  get ordinal(): 0;
@@ -859,10 +825,11 @@ export declare namespace vonage {
859
825
  get name(): "US";
860
826
  get ordinal(): 2;
861
827
  };
862
- static values(): Array<vonage.CoreClientConfigRegionJS>;
863
- static valueOf(value: string): vonage.CoreClientConfigRegionJS;
864
828
  get name(): "AP" | "EU" | "US";
865
829
  get ordinal(): 0 | 1 | 2;
830
+ get coreRegion(): any/* com.vonage.clientcore.core.api.ClientConfigRegion */;
831
+ static values(): Array<vonage.CoreClientConfigRegionJS>;
832
+ static valueOf(value: string): vonage.CoreClientConfigRegionJS;
866
833
  }
867
834
  class CoreClientConfigJS implements vonage.ConfigObjectJS {
868
835
  constructor(region?: vonage.CoreClientConfigRegionJS);
@@ -918,10 +885,10 @@ export declare namespace vonage {
918
885
  get name(): "DEFAULT";
919
886
  get ordinal(): 6;
920
887
  };
921
- static values(): Array<vonage.Topics>;
922
- static valueOf(value: string): vonage.Topics;
923
888
  get name(): "HTTP" | "WS" | "MEDIA" | "API" | "STORE" | "REDUCER" | "DEFAULT";
924
889
  get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6;
890
+ static values(): Array<vonage.Topics>;
891
+ static valueOf(value: string): vonage.Topics;
925
892
  }
926
893
  function createVonageLoggerJS(name: string, minLogLevel: vonage.LoggingLevelJS | undefined, topics: Array<vonage.Topics> | undefined, onLog: (p0: string, p1: vonage.TopicJS, p2: string) => void): vonage.VonageLoggerJS;
927
894
  abstract class LoggingLevelJS {
@@ -950,16 +917,15 @@ export declare namespace vonage {
950
917
  get name(): "Assert";
951
918
  get ordinal(): 5;
952
919
  };
953
- static values(): Array<vonage.LoggingLevelJS>;
954
- static valueOf(value: string): vonage.LoggingLevelJS;
955
920
  get name(): "Verbose" | "Debug" | "Info" | "Warn" | "Error" | "Assert";
956
921
  get ordinal(): 0 | 1 | 2 | 3 | 4 | 5;
922
+ static values(): Array<vonage.LoggingLevelJS>;
923
+ static valueOf(value: string): vonage.LoggingLevelJS;
957
924
  }
958
925
  const DEFAULT_LOGGING_LEVEL: vonage.LoggingLevelJS;
959
926
  function setDefaultLoggingLevel(level: vonage.LoggingLevelJS): void;
960
927
  abstract class SessionErrorReasonJS {
961
928
  private constructor();
962
- get reason(): any/* com.vonage.clientcore.core.api.SessionErrorReason */;
963
929
  static get EXPIRED_TOKEN(): vonage.SessionErrorReasonJS & {
964
930
  get name(): "EXPIRED_TOKEN";
965
931
  get ordinal(): 0;
@@ -972,10 +938,11 @@ export declare namespace vonage {
972
938
  get name(): "PING_TIMEOUT";
973
939
  get ordinal(): 2;
974
940
  };
975
- static values(): Array<vonage.SessionErrorReasonJS>;
976
- static valueOf(value: string): vonage.SessionErrorReasonJS;
977
941
  get name(): "EXPIRED_TOKEN" | "TRANSPORT_CLOSED" | "PING_TIMEOUT";
978
942
  get ordinal(): 0 | 1 | 2;
943
+ get reason(): any/* com.vonage.clientcore.core.api.SessionErrorReason */;
944
+ static values(): Array<vonage.SessionErrorReasonJS>;
945
+ static valueOf(value: string): vonage.SessionErrorReasonJS;
979
946
  }
980
947
  interface ICoreClientJS {
981
948
  readonly core: any/* com.vonage.clientcore.core.CoreClient */;
@@ -1002,9 +969,6 @@ export declare namespace vonage {
1002
969
  callMediaDisconnect(callId: string, reason: string): void;
1003
970
  rtcStatsUpdate(rtcStats: vonage.RTCStatsJS, legId: string): void;
1004
971
  callMediaError(callId: string, error: vonage.VonageErrorJS): void;
1005
- reconnecting(): void;
1006
- reconnection(): void;
1007
- sessionError(reason: vonage.SessionErrorReasonJS): void;
1008
972
  }
1009
973
  interface CallSayParams {
1010
974
  readonly text: string;
@@ -1058,12 +1022,6 @@ export declare namespace vonage {
1058
1022
  enableEarmuff(callId: string): Promise<any>;
1059
1023
  disableEarmuff(callId: string): Promise<any>;
1060
1024
  sendDTMF(callId: string, digits: string): Promise<any>;
1061
- setConfig(config: vonage.ConfigObjectJS): void;
1062
- createSession(token: string, sessionId: Nullable<string>): Promise<string>;
1063
- deleteSession(): Promise<any>;
1064
- refreshSession(token: string): Promise<any>;
1065
- getConversation(conversationIdOrName: string): Promise<vonage.ConversationJS>;
1066
- getUser(userIdOrName: string): Promise<vonage.UserJS>;
1067
1025
  }
1068
1026
  class VoiceInviteFromInfoJS {
1069
1027
  constructor(id: Nullable<string>, type: string);