@vonage/client-sdk 2.7.0 → 2.7.2
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/api_docs/ts/classes/VonageClient.html +7 -7
- package/dist/client/index.cjs +26289 -43523
- package/dist/client/index.mjs +26289 -43523
- package/dist/kotlin/JsUnions.d.ts +17 -17
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +31 -31
- package/dist/vonageClientSDK.js +26312 -43957
- package/dist/vonageClientSDK.min.js +1 -143
- package/dist/vonageClientSDK.min.mjs +1 -143
- package/dist/vonageClientSDK.mjs +26312 -43957
- package/package.json +5 -13
- package/rollup.config.js +5 -4
|
@@ -396,19 +396,6 @@ export type CSErrorCodesJS = 'CONVERSATION_DUPLICATE_NAME' | 'MEMBER_ALREADY_JOI
|
|
|
396
396
|
* A SessionErrorCodesJS is a union of 'EMPTY_TOKEN', 'FORCED_DISCONNECT', 'TIMEOUT', 'INTERNAL_FAILURE', 'NO_ACTIVE_SESSION', 'ALREADY_ACTIVE_SESSION', 'INVALID_TOKEN', 'EXPIRED_TOKEN', 'INVALID_USER', 'AUTHORIZATION_ERROR', 'INVALID_SESSION', 'MAX_OPEN_SESSIONS', 'INVALID_SOCKET_TRANSPORT', 'CLIENT_DISCONNECT', 'PING_TIMEOUT_DISCONNECT', 'TRANSPORT_CLOSED_DISCONNECT'
|
|
397
397
|
*/
|
|
398
398
|
export type SessionErrorCodesJS = 'EMPTY_TOKEN' | 'FORCED_DISCONNECT' | 'TIMEOUT' | 'INTERNAL_FAILURE' | 'NO_ACTIVE_SESSION' | 'ALREADY_ACTIVE_SESSION' | 'INVALID_TOKEN' | 'EXPIRED_TOKEN' | 'INVALID_USER' | 'AUTHORIZATION_ERROR' | 'INVALID_SESSION' | 'MAX_OPEN_SESSIONS' | 'INVALID_SOCKET_TRANSPORT' | 'CLIENT_DISCONNECT' | 'PING_TIMEOUT_DISCONNECT' | 'TRANSPORT_CLOSED_DISCONNECT';
|
|
399
|
-
/**
|
|
400
|
-
* A VoiceChannelTypeJS is a union of 'app', 'phone', 'sip', 'websocket'
|
|
401
|
-
*/
|
|
402
|
-
export type VoiceChannelTypeJS = 'app' | 'phone' | 'sip' | 'websocket';
|
|
403
|
-
/**
|
|
404
|
-
* A ConversationEvent is a union of {@link NonPersistentConversationEvent}, {@link PersistentConversationEvent}
|
|
405
|
-
* @group Chat
|
|
406
|
-
*/
|
|
407
|
-
export type ConversationEvent = NonPersistentConversationEvent | PersistentConversationEvent;
|
|
408
|
-
/**
|
|
409
|
-
* A CancelReasonJS is a union of 'RemoteCancel', 'AnsweredElsewhere', 'RejectedElsewhere', 'RemoteTimeout'
|
|
410
|
-
*/
|
|
411
|
-
export type CancelReasonJS = 'RemoteCancel' | 'AnsweredElsewhere' | 'RejectedElsewhere' | 'RemoteTimeout';
|
|
412
399
|
/**
|
|
413
400
|
* A ConversationState is a union of 'ACTIVE', 'INACTIVE', 'DELETED'
|
|
414
401
|
*/
|
|
@@ -421,14 +408,22 @@ export type MemberState = 'INVITED' | 'JOINED' | 'LEFT' | 'UNKNOWN';
|
|
|
421
408
|
* A ConversationChannelType is a union of 'APP', 'PHONE', 'PSTN', 'sip', 'VBC', 'WEBSOCKET', 'SMS', 'MMS', 'WHATSAPP', 'VIBER', 'MESSENGER'
|
|
422
409
|
*/
|
|
423
410
|
export type ConversationChannelType = 'APP' | 'PHONE' | 'PSTN' | 'sip' | 'VBC' | 'WEBSOCKET' | 'SMS' | 'MMS' | 'WHATSAPP' | 'VIBER' | 'MESSENGER';
|
|
424
|
-
/**
|
|
425
|
-
* A SessionErrorReasonJS is a union of 'EXPIRED_TOKEN', 'TRANSPORT_CLOSED', 'PING_TIMEOUT'
|
|
426
|
-
*/
|
|
427
|
-
export type SessionErrorReasonJS = 'EXPIRED_TOKEN' | 'TRANSPORT_CLOSED' | 'PING_TIMEOUT';
|
|
428
411
|
/**
|
|
429
412
|
* A VonageErrorTypeJS is a union of 'CS_ERROR', 'NETWORK_ERROR', 'SESSION_ERROR', 'INTERNAL_ERROR', 'UNKNOWN_ERROR'
|
|
430
413
|
*/
|
|
431
414
|
export type VonageErrorTypeJS = 'CS_ERROR' | 'NETWORK_ERROR' | 'SESSION_ERROR' | 'INTERNAL_ERROR' | 'UNKNOWN_ERROR';
|
|
415
|
+
/**
|
|
416
|
+
* A VoiceChannelTypeJS is a union of 'app', 'phone', 'sip', 'websocket'
|
|
417
|
+
*/
|
|
418
|
+
export type VoiceChannelTypeJS = 'app' | 'phone' | 'sip' | 'websocket';
|
|
419
|
+
/**
|
|
420
|
+
* A CancelReasonJS is a union of 'RemoteCancel', 'AnsweredElsewhere', 'RejectedElsewhere', 'RemoteTimeout'
|
|
421
|
+
*/
|
|
422
|
+
export type CancelReasonJS = 'RemoteCancel' | 'AnsweredElsewhere' | 'RejectedElsewhere' | 'RemoteTimeout';
|
|
423
|
+
/**
|
|
424
|
+
* A SessionErrorReasonJS is a union of 'EXPIRED_TOKEN', 'TRANSPORT_CLOSED', 'PING_TIMEOUT'
|
|
425
|
+
*/
|
|
426
|
+
export type SessionErrorReasonJS = 'EXPIRED_TOKEN' | 'TRANSPORT_CLOSED' | 'PING_TIMEOUT';
|
|
432
427
|
/**
|
|
433
428
|
* A LegStatusJS is a union of 'RINGING', 'ANSWERED', 'COMPLETED'
|
|
434
429
|
*/
|
|
@@ -441,3 +436,8 @@ export type CallDisconnectReasonJS = 'networkChange';
|
|
|
441
436
|
* A HangupReasonJS is a union of 'REMOTE_HANGUP', 'REMOTE_REJECT', 'REMOTE_NO_ANSWER_TIMEOUT', 'LOCAL_HANGUP', 'MEDIA_TIMEOUT'
|
|
442
437
|
*/
|
|
443
438
|
export type HangupReasonJS = 'REMOTE_HANGUP' | 'REMOTE_REJECT' | 'REMOTE_NO_ANSWER_TIMEOUT' | 'LOCAL_HANGUP' | 'MEDIA_TIMEOUT';
|
|
439
|
+
/**
|
|
440
|
+
* A ConversationEvent is a union of {@link NonPersistentConversationEvent}, {@link PersistentConversationEvent}
|
|
441
|
+
* @group Chat
|
|
442
|
+
*/
|
|
443
|
+
export type ConversationEvent = NonPersistentConversationEvent | PersistentConversationEvent;
|
|
@@ -122,10 +122,10 @@ export declare namespace vonage {
|
|
|
122
122
|
get name(): "NONE";
|
|
123
123
|
get ordinal(): 5;
|
|
124
124
|
};
|
|
125
|
+
static values(): [typeof vonage.EventStateTypeJS.SEEN, typeof vonage.EventStateTypeJS.DELIVERED, typeof vonage.EventStateTypeJS.SUBMITTED, typeof vonage.EventStateTypeJS.REJECTED, typeof vonage.EventStateTypeJS.UNDELIVERABLE, typeof vonage.EventStateTypeJS.NONE];
|
|
126
|
+
static valueOf(value: string): vonage.EventStateTypeJS;
|
|
125
127
|
get name(): "SEEN" | "DELIVERED" | "SUBMITTED" | "REJECTED" | "UNDELIVERABLE" | "NONE";
|
|
126
128
|
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5;
|
|
127
|
-
static values(): Array<vonage.EventStateTypeJS>;
|
|
128
|
-
static valueOf(value: string): vonage.EventStateTypeJS;
|
|
129
129
|
}
|
|
130
130
|
namespace EventStateTypeJS {
|
|
131
131
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
@@ -702,11 +702,11 @@ export declare namespace vonage {
|
|
|
702
702
|
get name(): "DESC";
|
|
703
703
|
get ordinal(): 1;
|
|
704
704
|
};
|
|
705
|
+
static values(): [typeof vonage.PresentingOrderJS.ASC, typeof vonage.PresentingOrderJS.DESC];
|
|
706
|
+
static valueOf(value: string): vonage.PresentingOrderJS;
|
|
705
707
|
get name(): "ASC" | "DESC";
|
|
706
708
|
get ordinal(): 0 | 1;
|
|
707
709
|
get corePresentingOrder(): any/* com.vonage.clientcore.core.api.models.PresentingOrder */;
|
|
708
|
-
static values(): Array<vonage.PresentingOrderJS>;
|
|
709
|
-
static valueOf(value: string): vonage.PresentingOrderJS;
|
|
710
710
|
}
|
|
711
711
|
namespace PresentingOrderJS {
|
|
712
712
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
@@ -724,11 +724,11 @@ export declare namespace vonage {
|
|
|
724
724
|
get name(): "CUSTOM_SORT_KEY";
|
|
725
725
|
get ordinal(): 1;
|
|
726
726
|
};
|
|
727
|
+
static values(): [typeof vonage.OrderByJS.CREATED, typeof vonage.OrderByJS.CUSTOM_SORT_KEY];
|
|
728
|
+
static valueOf(value: string): vonage.OrderByJS;
|
|
727
729
|
get name(): "CREATED" | "CUSTOM_SORT_KEY";
|
|
728
730
|
get ordinal(): 0 | 1;
|
|
729
731
|
get coreOrderBy(): any/* com.vonage.clientcore.core.api.models.OrderBy */;
|
|
730
|
-
static values(): Array<vonage.OrderByJS>;
|
|
731
|
-
static valueOf(value: string): vonage.OrderByJS;
|
|
732
732
|
}
|
|
733
733
|
namespace OrderByJS {
|
|
734
734
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
@@ -1104,7 +1104,7 @@ export declare namespace vonage {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
1106
|
abstract class MediaClientErrorJS extends Error {
|
|
1107
|
-
|
|
1107
|
+
private constructor();
|
|
1108
1108
|
}
|
|
1109
1109
|
namespace MediaClientErrorJS {
|
|
1110
1110
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
@@ -1260,12 +1260,12 @@ export declare namespace vonage {
|
|
|
1260
1260
|
get name(): "US";
|
|
1261
1261
|
get ordinal(): 2;
|
|
1262
1262
|
};
|
|
1263
|
+
static values(): [typeof vonage.CoreClientConfigRegionJS.AP, typeof vonage.CoreClientConfigRegionJS.EU, typeof vonage.CoreClientConfigRegionJS.US];
|
|
1264
|
+
static valueOf(value: string): vonage.CoreClientConfigRegionJS;
|
|
1263
1265
|
get name(): "AP" | "EU" | "US";
|
|
1264
1266
|
get ordinal(): 0 | 1 | 2;
|
|
1265
1267
|
get coreRegion(): any/* com.vonage.clientcore.core.api.ClientConfigRegion */;
|
|
1266
1268
|
get emergencyRegion(): any/* com.vonage.client.emergency.EmergencyClientConfigRegion */;
|
|
1267
|
-
static values(): Array<vonage.CoreClientConfigRegionJS>;
|
|
1268
|
-
static valueOf(value: string): vonage.CoreClientConfigRegionJS;
|
|
1269
1269
|
}
|
|
1270
1270
|
namespace CoreClientConfigRegionJS {
|
|
1271
1271
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
@@ -1345,10 +1345,10 @@ export declare namespace vonage {
|
|
|
1345
1345
|
get name(): "DEFAULT";
|
|
1346
1346
|
get ordinal(): 7;
|
|
1347
1347
|
};
|
|
1348
|
+
static values(): [typeof vonage.Topics.HTTP, typeof vonage.Topics.WS, typeof vonage.Topics.MEDIA, typeof vonage.Topics.API, typeof vonage.Topics.STORE, typeof vonage.Topics.REDUCER, typeof vonage.Topics.EMERGENCY, typeof vonage.Topics.DEFAULT];
|
|
1349
|
+
static valueOf(value: string): vonage.Topics;
|
|
1348
1350
|
get name(): "HTTP" | "WS" | "MEDIA" | "API" | "STORE" | "REDUCER" | "EMERGENCY" | "DEFAULT";
|
|
1349
1351
|
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
1350
|
-
static values(): Array<vonage.Topics>;
|
|
1351
|
-
static valueOf(value: string): vonage.Topics;
|
|
1352
1352
|
}
|
|
1353
1353
|
namespace Topics {
|
|
1354
1354
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
@@ -1356,7 +1356,7 @@ export declare namespace vonage {
|
|
|
1356
1356
|
const constructor: abstract new () => Topics;
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
|
-
function createVonageLoggerJS(name: string, minLogLevel: vonage.LoggingLevelJS | undefined, topics: Array<vonage.Topics> | undefined, onLog: (
|
|
1359
|
+
function createVonageLoggerJS(name: string, minLogLevel: vonage.LoggingLevelJS | undefined, topics: Array<vonage.Topics> | undefined, onLog: (logLevel: string, topic: vonage.TopicJS, message: string) => void): vonage.VonageLoggerJS;
|
|
1360
1360
|
abstract class LoggingLevelJS {
|
|
1361
1361
|
private constructor();
|
|
1362
1362
|
static get Verbose(): vonage.LoggingLevelJS & {
|
|
@@ -1383,10 +1383,10 @@ export declare namespace vonage {
|
|
|
1383
1383
|
get name(): "Assert";
|
|
1384
1384
|
get ordinal(): 5;
|
|
1385
1385
|
};
|
|
1386
|
+
static values(): [typeof vonage.LoggingLevelJS.Verbose, typeof vonage.LoggingLevelJS.Debug, typeof vonage.LoggingLevelJS.Info, typeof vonage.LoggingLevelJS.Warn, typeof vonage.LoggingLevelJS.Error, typeof vonage.LoggingLevelJS.Assert];
|
|
1387
|
+
static valueOf(value: string): vonage.LoggingLevelJS;
|
|
1386
1388
|
get name(): "Verbose" | "Debug" | "Info" | "Warn" | "Error" | "Assert";
|
|
1387
1389
|
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5;
|
|
1388
|
-
static values(): Array<vonage.LoggingLevelJS>;
|
|
1389
|
-
static valueOf(value: string): vonage.LoggingLevelJS;
|
|
1390
1390
|
}
|
|
1391
1391
|
namespace LoggingLevelJS {
|
|
1392
1392
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
@@ -1540,7 +1540,7 @@ export declare namespace vonage {
|
|
|
1540
1540
|
}
|
|
1541
1541
|
export declare namespace vonage {
|
|
1542
1542
|
interface HttpClientJS {
|
|
1543
|
-
request(verb: string, url: string, headers: Json, body: Nullable<string>, callback: (
|
|
1543
|
+
request(verb: string, url: string, headers: Json, body: Nullable<string>, callback: (error: Nullable<vonage.HttpClientErrorJS>, response: Nullable<vonage.HttpClientResponseJS>) => void): void;
|
|
1544
1544
|
}
|
|
1545
1545
|
interface SocketClientJS {
|
|
1546
1546
|
delegate?: Nullable<vonage.SocketClientDelegateJS>;
|
|
@@ -1563,24 +1563,24 @@ export declare namespace vonage {
|
|
|
1563
1563
|
}
|
|
1564
1564
|
interface MediaClientJS {
|
|
1565
1565
|
delegate?: Nullable<vonage.MediaClientDelegateJS>;
|
|
1566
|
-
enableMediaOutbound(closure: (p0: any,
|
|
1567
|
-
enableMediaInbound(rtcId: string, offerSDP: string, closure: (p0: any,
|
|
1568
|
-
processAnswer(id: string, sdp: string, closure: (
|
|
1569
|
-
disableMedia(id: string, closure: (
|
|
1570
|
-
mute(id: string, closure: (
|
|
1571
|
-
unmute(id: string, closure: (
|
|
1572
|
-
enableEarmuff(id: string, closure: (
|
|
1573
|
-
disableEarmuff(id: string, closure: (
|
|
1566
|
+
enableMediaOutbound(closure: (p0: any, sdp: Nullable<string>, callback: (legId: Nullable<string>) => void) => void): void;
|
|
1567
|
+
enableMediaInbound(rtcId: string, offerSDP: string, closure: (p0: any, sdp: Nullable<string>) => void): void;
|
|
1568
|
+
processAnswer(id: string, sdp: string, closure: (error: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1569
|
+
disableMedia(id: string, closure: (error: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1570
|
+
mute(id: string, closure: (error: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1571
|
+
unmute(id: string, closure: (error: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1572
|
+
enableEarmuff(id: string, closure: (error: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1573
|
+
disableEarmuff(id: string, closure: (error: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1574
1574
|
getPeerConnection(id: string): any;
|
|
1575
1575
|
getAudioOutputElement(): any;
|
|
1576
1576
|
getMediaConnectionState(id: string): string;
|
|
1577
|
-
enableRtcStatsCollection(id: string, interval: any/* kotlin.Number */, closure: (
|
|
1578
|
-
enableNoiseSuppression(id: string, closure: (
|
|
1579
|
-
disableNoiseSuppression(id: string, closure: (
|
|
1580
|
-
enableAutoGainControl(id: string, closure: (
|
|
1581
|
-
disableAutoGainControl(id: string, closure: (
|
|
1582
|
-
enableEchoCancellation(id: string, closure: (
|
|
1583
|
-
disableEchoCancellation(id: string, closure: (
|
|
1577
|
+
enableRtcStatsCollection(id: string, interval: any/* kotlin.Number */, closure: (error: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1578
|
+
enableNoiseSuppression(id: string, closure: (error: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1579
|
+
disableNoiseSuppression(id: string, closure: (error: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1580
|
+
enableAutoGainControl(id: string, closure: (error: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1581
|
+
disableAutoGainControl(id: string, closure: (error: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1582
|
+
enableEchoCancellation(id: string, closure: (error: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1583
|
+
disableEchoCancellation(id: string, closure: (error: Nullable<vonage.MediaClientErrorJS>) => void): void;
|
|
1584
1584
|
}
|
|
1585
1585
|
interface MediaClientDelegateJS {
|
|
1586
1586
|
onRawRtcStats(id: string, entries: Array<vonage.RawRtcStatsEntryJS>): void;
|
|
@@ -1791,7 +1791,7 @@ export declare namespace vonage.emergency {
|
|
|
1791
1791
|
}
|
|
1792
1792
|
export declare namespace vonage.utils {
|
|
1793
1793
|
abstract class OptionJS<T> {
|
|
1794
|
-
|
|
1794
|
+
private constructor();
|
|
1795
1795
|
orNull(): Nullable<T>;
|
|
1796
1796
|
contains<R>(value: R): boolean;
|
|
1797
1797
|
map<R>(f: (p0: T) => R): vonage.utils.OptionJS<R>;
|