@vonage/client-sdk 1.4.0-alpha.3 → 1.4.0-rc.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/api_docs/ts/assets/navigation.js +1 -1
- package/api_docs/ts/assets/search.js +1 -1
- package/api_docs/ts/classes/ClientConfig.html +2 -1
- package/api_docs/ts/classes/VonageClient.html +8 -2
- package/api_docs/ts/interfaces/GetCallLegsParameters.html +8 -0
- package/api_docs/ts/interfaces/Leg.html +4 -3
- package/api_docs/ts/interfaces/LegsPage.html +8 -0
- package/api_docs/ts/modules.html +2 -0
- package/dist/client/VonageClient.d.ts +14 -1
- package/dist/client/index.cjs +15694 -14654
- package/dist/client/index.mjs +15694 -14654
- package/dist/kotlin/clientsdk-clientcore_js.d.ts +28 -0
- package/dist/lib/MediaClient.d.ts +2 -0
- package/dist/utils/ConversationModels.d.ts +14 -0
- package/dist/utils/RequestParameterModels.d.ts +13 -0
- package/dist/vonageClientSDK.js +15207 -14192
- package/dist/vonageClientSDK.min.js +1 -1
- package/dist/vonageClientSDK.min.mjs +1 -1
- package/dist/vonageClientSDK.mjs +15207 -14192
- package/package.json +1 -1
|
@@ -58,6 +58,7 @@ export declare namespace vonage {
|
|
|
58
58
|
serverCall(context: Nullable<Json>): Promise<string>;
|
|
59
59
|
reconnectCall(legId: string): Promise<any>;
|
|
60
60
|
getLeg(legId: string): Promise<vonage.LegJS>;
|
|
61
|
+
getCallLegs(callId: string, parameters: Nullable<vonage.GetCallLegsParametersJS>): Promise<vonage.LegsPageJS>;
|
|
61
62
|
answer(callId: string): Promise<any>;
|
|
62
63
|
reject(callId: string): Promise<any>;
|
|
63
64
|
hangup(callId: string, reasonText: Nullable<string>, reasonCode: Nullable<string>): Promise<any>;
|
|
@@ -498,6 +499,15 @@ export declare namespace vonage {
|
|
|
498
499
|
get user(): Nullable<string>;
|
|
499
500
|
get number(): Nullable<string>;
|
|
500
501
|
}
|
|
502
|
+
class MediaStateJS {
|
|
503
|
+
private constructor();
|
|
504
|
+
get mute(): Nullable<boolean>;
|
|
505
|
+
get earmuff(): Nullable<boolean>;
|
|
506
|
+
get play_stream(): Nullable<boolean>;
|
|
507
|
+
get recording(): Nullable<boolean>;
|
|
508
|
+
get transcribing(): Nullable<boolean>;
|
|
509
|
+
get tts(): Nullable<boolean>;
|
|
510
|
+
}
|
|
501
511
|
class LegJS {
|
|
502
512
|
private constructor();
|
|
503
513
|
get id(): string;
|
|
@@ -509,6 +519,13 @@ export declare namespace vonage {
|
|
|
509
519
|
get endTime(): string;
|
|
510
520
|
get from(): vonage.LegChannelJS;
|
|
511
521
|
get to(): vonage.LegChannelJS;
|
|
522
|
+
get mediaState(): Nullable<vonage.MediaStateJS>;
|
|
523
|
+
}
|
|
524
|
+
class LegsPageJS {
|
|
525
|
+
private constructor();
|
|
526
|
+
get legs(): Array<vonage.LegJS>;
|
|
527
|
+
get previousCursor(): Nullable<string>;
|
|
528
|
+
get nextCursor(): Nullable<string>;
|
|
512
529
|
}
|
|
513
530
|
abstract class ChannelTypeJS {
|
|
514
531
|
private constructor();
|
|
@@ -689,6 +706,7 @@ export declare namespace vonage {
|
|
|
689
706
|
readonly websocketPath?: Nullable<string>;
|
|
690
707
|
readonly rtcStatsTelemetry?: Nullable<boolean>;
|
|
691
708
|
readonly autoReconnectMedia?: Nullable<boolean>;
|
|
709
|
+
readonly noiseSuppression?: Nullable<boolean>;
|
|
692
710
|
}
|
|
693
711
|
interface InitConfigObjectJS extends vonage.ConfigObjectJS {
|
|
694
712
|
readonly loggingLevel?: Nullable<vonage.LoggingLevelJS>;
|
|
@@ -700,6 +718,7 @@ export declare namespace vonage {
|
|
|
700
718
|
readonly websocketPath?: Nullable<string>;
|
|
701
719
|
readonly rtcStatsTelemetry?: Nullable<boolean>;
|
|
702
720
|
readonly autoReconnectMedia?: Nullable<boolean>;
|
|
721
|
+
readonly noiseSuppression?: Nullable<boolean>;
|
|
703
722
|
}
|
|
704
723
|
}
|
|
705
724
|
export declare namespace vonage {
|
|
@@ -737,6 +756,7 @@ export declare namespace vonage {
|
|
|
737
756
|
set rtcStatsTelemetry(value: boolean);
|
|
738
757
|
get autoReconnectMedia(): boolean;
|
|
739
758
|
set autoReconnectMedia(value: boolean);
|
|
759
|
+
get noiseSuppression(): boolean;
|
|
740
760
|
}
|
|
741
761
|
class TopicJS {
|
|
742
762
|
constructor(name: string, tag: string);
|
|
@@ -938,6 +958,7 @@ export declare namespace vonage {
|
|
|
938
958
|
serverCall(context: Nullable<Json>): Promise<string>;
|
|
939
959
|
reconnectCall(legId: string): Promise<any>;
|
|
940
960
|
getLeg(legId: string): Promise<vonage.LegJS>;
|
|
961
|
+
getCallLegs(callId: string, parameters: Nullable<vonage.GetCallLegsParametersJS>): Promise<vonage.LegsPageJS>;
|
|
941
962
|
answer(callId: string): Promise<any>;
|
|
942
963
|
reject(callId: string): Promise<any>;
|
|
943
964
|
hangup(callId: string, reasonText: Nullable<string>, reasonCode: Nullable<string>): Promise<any>;
|
|
@@ -992,6 +1013,8 @@ export declare namespace vonage {
|
|
|
992
1013
|
unmute(id: string): void;
|
|
993
1014
|
getPeerConnection(id: string): any;
|
|
994
1015
|
enableRtcStatsCollection(interval: any/* kotlin.Number */, mediaId: string): void;
|
|
1016
|
+
enableNoiseSuppression(id: string): void;
|
|
1017
|
+
disableNoiseSuppression(id: string): void;
|
|
995
1018
|
}
|
|
996
1019
|
interface MediaClientDelegateJS {
|
|
997
1020
|
onRtcStats(rtcStats: vonage.RTCStatsJS, legId: string): void;
|
|
@@ -1119,6 +1142,11 @@ export declare namespace vonage {
|
|
|
1119
1142
|
readonly pageSize?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1120
1143
|
readonly cursor?: Nullable<string>;
|
|
1121
1144
|
}
|
|
1145
|
+
interface GetCallLegsParametersJS {
|
|
1146
|
+
readonly order?: Nullable<vonage.PresentingOrderJS>;
|
|
1147
|
+
readonly pageSize?: Nullable<any>/* Nullable<kotlin.Number> */;
|
|
1148
|
+
readonly cursor?: Nullable<string>;
|
|
1149
|
+
}
|
|
1122
1150
|
}
|
|
1123
1151
|
export declare namespace vonage.utils {
|
|
1124
1152
|
abstract class OptionJS<T> {
|
|
@@ -17,5 +17,7 @@ declare class MediaClient implements vonage.MediaClientJS {
|
|
|
17
17
|
processAnswer(id: string, sdp: string): void;
|
|
18
18
|
disableMedia(id: string): void;
|
|
19
19
|
private setMediaTracksEnabled;
|
|
20
|
+
disableNoiseSuppression(id: string): void;
|
|
21
|
+
enableNoiseSuppression(id: string): void;
|
|
20
22
|
}
|
|
21
23
|
export default MediaClient;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import vonage from '../utils/vonage';
|
|
2
2
|
import { ConversationState, MemberState, PersistentConversationEvent } from '../kotlin/JsUnions';
|
|
3
|
+
import { Leg } from '../client';
|
|
3
4
|
/**
|
|
4
5
|
* Represents a conversation
|
|
5
6
|
*
|
|
@@ -46,6 +47,19 @@ export type ConversationProperties = vonage.ConversationJS.Properties;
|
|
|
46
47
|
export type ConversationsPage = vonage.ConversationsPageJS & {
|
|
47
48
|
conversations: Conversation[];
|
|
48
49
|
};
|
|
50
|
+
/**
|
|
51
|
+
* Represents a page of legs
|
|
52
|
+
*
|
|
53
|
+
* @beta
|
|
54
|
+
* @property legs The legs in the page
|
|
55
|
+
* @property previousCursor The cursor to fetch the previous page
|
|
56
|
+
* @property nextCursor The cursor to fetch the next page
|
|
57
|
+
* @interface
|
|
58
|
+
* @group Voice
|
|
59
|
+
*/
|
|
60
|
+
export type LegsPage = vonage.LegsPageJS & {
|
|
61
|
+
legs: Leg[];
|
|
62
|
+
};
|
|
49
63
|
/**
|
|
50
64
|
* Represents a page of conversation events
|
|
51
65
|
*
|
|
@@ -65,6 +65,19 @@ export type GetConversationEventsParameters = Omit<vonage.GetConversationEventsP
|
|
|
65
65
|
export type GetConversationMembersParameters = Omit<vonage.GetConversationMembersParametersJS, 'pageSize'> & {
|
|
66
66
|
pageSize?: Nullable<number>;
|
|
67
67
|
};
|
|
68
|
+
/**
|
|
69
|
+
* Parameters object for {@link VonageClient.getCallLegs}
|
|
70
|
+
*
|
|
71
|
+
* @beta
|
|
72
|
+
* @property order The order in which call legs are presented, default is {@link PresentingOrder.ASC}.
|
|
73
|
+
* @property pageSize The maximum number of legs to retrieve per request, default is 10.
|
|
74
|
+
* @property cursor The cursor indicating the starting point for pagination, default is the first page.
|
|
75
|
+
* @interface
|
|
76
|
+
* @group Voice
|
|
77
|
+
*/
|
|
78
|
+
export type GetCallLegsParameters = Omit<vonage.GetCallLegsParametersJS, 'pageSize'> & {
|
|
79
|
+
pageSize?: Nullable<number>;
|
|
80
|
+
};
|
|
68
81
|
/**
|
|
69
82
|
* Parameters object for {@link VonageClient.updateConversation}.
|
|
70
83
|
*
|