@telnyx/webrtc 2.25.24 → 2.25.25
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/lib/bundle.js +1 -1
- package/lib/bundle.mjs +1 -1
- package/lib/packages/js/src/Modules/Verto/messages/verto/AnonymousLogin.d.ts +2 -0
- package/lib/packages/js/src/Modules/Verto/util/interfaces.d.ts +3 -0
- package/lib/packages/js/src/Modules/Verto/webrtc/interfaces.d.ts +1 -0
- package/lib/packages/js/src/utils/interfaces.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import BaseRequest from './BaseRequest';
|
|
2
|
+
import { TargetParams } from '../../../../utils/interfaces';
|
|
2
3
|
declare type AnonymousLoginConstructorParams = {
|
|
3
4
|
target_id: string;
|
|
4
5
|
target_type: string;
|
|
5
6
|
target_version_id?: string;
|
|
7
|
+
target_params?: TargetParams;
|
|
6
8
|
sessionId?: string;
|
|
7
9
|
userVariables?: Record<string, any>;
|
|
8
10
|
reconnection?: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IWebRTCCall } from '../webrtc/interfaces';
|
|
2
|
+
import { TargetParams } from '../../../utils/interfaces';
|
|
2
3
|
export declare type Environment = 'production' | 'development';
|
|
3
4
|
export interface IVertoOptions {
|
|
4
5
|
host?: string;
|
|
@@ -27,6 +28,7 @@ export interface IVertoOptions {
|
|
|
27
28
|
target_type: string;
|
|
28
29
|
target_id: string;
|
|
29
30
|
target_version_id?: string;
|
|
31
|
+
target_params?: TargetParams;
|
|
30
32
|
};
|
|
31
33
|
rtcIp?: string;
|
|
32
34
|
rtcPort?: number;
|
|
@@ -46,6 +48,7 @@ export interface ILoginParams {
|
|
|
46
48
|
target_type: string;
|
|
47
49
|
target_id: string;
|
|
48
50
|
target_version_id?: string;
|
|
51
|
+
target_params?: TargetParams;
|
|
49
52
|
};
|
|
50
53
|
}
|
|
51
54
|
export interface SubscribeParams {
|
|
@@ -62,6 +62,7 @@ export interface IVertoCallOptions {
|
|
|
62
62
|
debug?: boolean;
|
|
63
63
|
debugOutput?: 'socket' | 'file';
|
|
64
64
|
preferred_codecs?: RTCRtpCodecCapability[];
|
|
65
|
+
receiveOnlyAudio?: boolean;
|
|
65
66
|
prefetchIceCandidates?: boolean;
|
|
66
67
|
forceRelayCandidate?: boolean;
|
|
67
68
|
trickleIce?: boolean;
|
|
@@ -5,6 +5,10 @@ export interface ICredentials {
|
|
|
5
5
|
password?: string;
|
|
6
6
|
token?: string;
|
|
7
7
|
}
|
|
8
|
+
export interface TargetParams {
|
|
9
|
+
conversation_id?: string;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
8
12
|
export interface IClientOptions {
|
|
9
13
|
login_token?: string;
|
|
10
14
|
login?: string;
|
|
@@ -22,6 +26,7 @@ export interface IClientOptions {
|
|
|
22
26
|
target_type: string;
|
|
23
27
|
target_id: string;
|
|
24
28
|
target_version_id?: string;
|
|
29
|
+
target_params?: TargetParams;
|
|
25
30
|
};
|
|
26
31
|
rtcIp?: string;
|
|
27
32
|
rtcPort?: number;
|