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