@vogent/vogent-web-client 0.0.10 → 0.1.1

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,13 +1,35 @@
1
+ export var AiEvalRecordType;
2
+ (function (AiEvalRecordType) {
3
+ AiEvalRecordType["Dial"] = "DIAL";
4
+ })(AiEvalRecordType || (AiEvalRecordType = {}));
5
+ export var AiEvalRunStatus;
6
+ (function (AiEvalRunStatus) {
7
+ AiEvalRunStatus["Failed"] = "FAILED";
8
+ AiEvalRunStatus["Pending"] = "PENDING";
9
+ AiEvalRunStatus["Running"] = "RUNNING";
10
+ AiEvalRunStatus["Success"] = "SUCCESS";
11
+ })(AiEvalRunStatus || (AiEvalRunStatus = {}));
12
+ export var AiModelOptionValueType;
13
+ (function (AiModelOptionValueType) {
14
+ AiModelOptionValueType["Float"] = "FLOAT";
15
+ AiModelOptionValueType["Int"] = "INT";
16
+ AiModelOptionValueType["String"] = "STRING";
17
+ })(AiModelOptionValueType || (AiModelOptionValueType = {}));
18
+ export var AccessType;
19
+ (function (AccessType) {
20
+ AccessType["Deny"] = "DENY";
21
+ AccessType["Grant"] = "GRANT";
22
+ })(AccessType || (AccessType = {}));
1
23
  export var AgentType;
2
24
  (function (AgentType) {
3
25
  AgentType["CustomFlow"] = "CUSTOM_FLOW";
4
26
  AgentType["Standard"] = "STANDARD";
5
27
  })(AgentType || (AgentType = {}));
6
- export var AiModelAccessType;
7
- (function (AiModelAccessType) {
8
- AiModelAccessType["Deny"] = "DENY";
9
- AiModelAccessType["Grant"] = "GRANT";
10
- })(AiModelAccessType || (AiModelAccessType = {}));
28
+ export var AllowedAgentType;
29
+ (function (AllowedAgentType) {
30
+ AllowedAgentType["FlowOnly"] = "FLOW_ONLY";
31
+ AllowedAgentType["StandardOnly"] = "STANDARD_ONLY";
32
+ })(AllowedAgentType || (AllowedAgentType = {}));
11
33
  export var AnswerType;
12
34
  (function (AnswerType) {
13
35
  AnswerType["Human"] = "HUMAN";
@@ -15,6 +37,11 @@ export var AnswerType;
15
37
  AnswerType["Other"] = "OTHER";
16
38
  AnswerType["Unknown"] = "UNKNOWN";
17
39
  })(AnswerType || (AnswerType = {}));
40
+ export var ArrayConditionType;
41
+ (function (ArrayConditionType) {
42
+ ArrayConditionType["All"] = "all";
43
+ ArrayConditionType["Any"] = "any";
44
+ })(ArrayConditionType || (ArrayConditionType = {}));
18
45
  export var BrowserDialTokenType;
19
46
  (function (BrowserDialTokenType) {
20
47
  BrowserDialTokenType["DialSession"] = "DIAL_SESSION";
@@ -76,6 +103,12 @@ export var DialSessionUpdateReason;
76
103
  DialSessionUpdateReason["Manual"] = "MANUAL";
77
104
  DialSessionUpdateReason["PassComplete"] = "PASS_COMPLETE";
78
105
  })(DialSessionUpdateReason || (DialSessionUpdateReason = {}));
106
+ export var DialTaskStatus;
107
+ (function (DialTaskStatus) {
108
+ DialTaskStatus["Completed"] = "COMPLETED";
109
+ DialTaskStatus["Pending"] = "PENDING";
110
+ DialTaskStatus["Running"] = "RUNNING";
111
+ })(DialTaskStatus || (DialTaskStatus = {}));
79
112
  export var DialTreeStrategy;
80
113
  (function (DialTreeStrategy) {
81
114
  DialTreeStrategy["Connect"] = "CONNECT";
@@ -95,6 +128,11 @@ export var FeedbackType;
95
128
  FeedbackType["FalsePositive"] = "FALSE_POSITIVE";
96
129
  FeedbackType["PickupDelay"] = "PICKUP_DELAY";
97
130
  })(FeedbackType || (FeedbackType = {}));
131
+ export var FieldType;
132
+ (function (FieldType) {
133
+ FieldType["Input"] = "INPUT";
134
+ FieldType["Textarea"] = "TEXTAREA";
135
+ })(FieldType || (FieldType = {}));
98
136
  export var FlowConditionType;
99
137
  (function (FlowConditionType) {
100
138
  FlowConditionType["Always"] = "always";
@@ -107,6 +145,7 @@ export var FlowConditionType;
107
145
  export var FunctionType;
108
146
  (function (FunctionType) {
109
147
  FunctionType["Api"] = "API";
148
+ FunctionType["CallTransfer"] = "CALL_TRANSFER";
110
149
  FunctionType["Custom"] = "CUSTOM";
111
150
  FunctionType["KnowledgeBase"] = "KNOWLEDGE_BASE";
112
151
  })(FunctionType || (FunctionType = {}));
@@ -115,6 +154,15 @@ export var IvrDetectionType;
115
154
  IvrDetectionType["None"] = "NONE";
116
155
  IvrDetectionType["Standard"] = "STANDARD";
117
156
  })(IvrDetectionType || (IvrDetectionType = {}));
157
+ export var InferenceEventType;
158
+ (function (InferenceEventType) {
159
+ InferenceEventType["AudioInferenceFirstAudio"] = "AUDIO_INFERENCE_FIRST_AUDIO";
160
+ InferenceEventType["LlmInferenceEnded"] = "LLM_INFERENCE_ENDED";
161
+ InferenceEventType["LlmInferenceFirstToken"] = "LLM_INFERENCE_FIRST_TOKEN";
162
+ InferenceEventType["LlmInferenceStarted"] = "LLM_INFERENCE_STARTED";
163
+ InferenceEventType["StartSpeaking"] = "START_SPEAKING";
164
+ InferenceEventType["TranscriptReceived"] = "TRANSCRIPT_RECEIVED";
165
+ })(InferenceEventType || (InferenceEventType = {}));
118
166
  export var KnowledgeBaseFileStatus;
119
167
  (function (KnowledgeBaseFileStatus) {
120
168
  KnowledgeBaseFileStatus["Active"] = "ACTIVE";
@@ -124,6 +172,7 @@ export var OpeningLineType;
124
172
  (function (OpeningLineType) {
125
173
  OpeningLineType["InboundOnly"] = "INBOUND_ONLY";
126
174
  OpeningLineType["InboundOutbound"] = "INBOUND_OUTBOUND";
175
+ OpeningLineType["None"] = "NONE";
127
176
  })(OpeningLineType || (OpeningLineType = {}));
128
177
  export var RecordingSettingType;
129
178
  (function (RecordingSettingType) {
@@ -202,15 +251,29 @@ export var VoiceGender;
202
251
  VoiceGender["Male"] = "MALE";
203
252
  VoiceGender["Neutral"] = "NEUTRAL";
204
253
  })(VoiceGender || (VoiceGender = {}));
254
+ export var VoiceModel;
255
+ (function (VoiceModel) {
256
+ VoiceModel["Default"] = "DEFAULT";
257
+ VoiceModel["Sesame"] = "SESAME";
258
+ })(VoiceModel || (VoiceModel = {}));
259
+ export var VoiceTier;
260
+ (function (VoiceTier) {
261
+ VoiceTier["Premium"] = "PREMIUM";
262
+ VoiceTier["Standard"] = "STANDARD";
263
+ })(VoiceTier || (VoiceTier = {}));
264
+ export var WebcallType;
265
+ (function (WebcallType) {
266
+ WebcallType["Legacy"] = "legacy";
267
+ WebcallType["Standard"] = "standard";
268
+ })(WebcallType || (WebcallType = {}));
205
269
  export var WorkspaceDialEventType;
206
270
  (function (WorkspaceDialEventType) {
207
271
  WorkspaceDialEventType["DialCreate"] = "DIAL_CREATE";
208
272
  WorkspaceDialEventType["StatusChange"] = "STATUS_CHANGE";
209
273
  })(WorkspaceDialEventType || (WorkspaceDialEventType = {}));
210
- export const CreateAdHocDialSessionDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "CreateAdHocDialSession" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "CreateAdHocDialSessionInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "createAdHocDialSession" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "telephonyProvider" } }] } }] } }] };
211
274
  export const StartDialSessionDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "StartDialSession" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "sessionId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "startDialSession" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "dialSessionId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "sessionId" } } }] }] } }] };
212
275
  export const HangupCallDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "HangupCall" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "dialId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "dropVoicemail" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Boolean" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "transferNumber" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "hangupCall" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "dialId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "dialId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "dropVoicemail" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "dropVoicemail" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "transferNumber" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "transferNumber" } } }] }] } }] };
213
276
  export const SetPausedDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "SetPaused" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "dialId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "pauseStatus" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Boolean" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "pauseAI" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "dialId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "dialId" } } }, { "kind": "Argument", "name": { "kind": "Name", "value": "pauseStatus" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "pauseStatus" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }] } }] } }] };
214
277
  export const RefreshTranscriptDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "subscription", "name": { "kind": "Name", "value": "RefreshTranscript" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "dialId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "watchTranscript" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "dialId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "dialId" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "speaker" } }, { "kind": "Field", "name": { "kind": "Name", "value": "text" } }, { "kind": "Field", "name": { "kind": "Name", "value": "detailType" } }] } }] } }] };
215
- export const BrowserDialTokenDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "BrowserDialToken" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "BrowserDialTokenInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "browserDialToken" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "token" } }, { "kind": "Field", "name": { "kind": "Name", "value": "iceConfig" } }] } }] } }] };
278
+ export const BrowserDialTokenDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "BrowserDialToken" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "BrowserDialTokenInput" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "browserDialToken" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "input" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "token" } }, { "kind": "Field", "name": { "kind": "Name", "value": "iceConfig" } }, { "kind": "Field", "name": { "kind": "Name", "value": "telephonyProvider" } }, { "kind": "Field", "name": { "kind": "Name", "value": "url" } }] } }] } }] };
216
279
  export const ConnectSessionDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "subscription", "name": { "kind": "Name", "value": "ConnectSession" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "sessionId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "connectSession" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "sessionId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "sessionId" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "messageType" } }, { "kind": "Field", "name": { "kind": "Name", "value": "content" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "__typename" } }, { "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "DialsUpdatedMessage" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "contactId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "dials" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "answerType" } }, { "kind": "Field", "name": { "kind": "Name", "value": "phoneField" } }, { "kind": "Field", "name": { "kind": "Name", "value": "callDispositionId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "systemResultType" } }, { "kind": "Field", "name": { "kind": "Name", "value": "toNumber" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "contactComplete" } }] } }, { "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "DialConnectMessage" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "dialId" } }] } }, { "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "SessionUpdatedMessage" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "dialSession" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "reason" } }] } }] } }] } }] } }] };
@@ -0,0 +1,27 @@
1
+ import { RemoteParticipant, RemoteTrack, RemoteTrackPublication, Room } from 'livekit-client';
2
+ import { VogentAudioConn } from './VogentDevice';
3
+ export declare class LivekitCall {
4
+ _room: Room;
5
+ _params: any;
6
+ _handlers: {
7
+ ev: 'mute' | 'disconnect' | 'track-added';
8
+ fn: (...args: any[]) => void;
9
+ }[];
10
+ constructor(room: Room);
11
+ handleTrackSubscribed(track: RemoteTrack, _publication: RemoteTrackPublication, _participant: RemoteParticipant): void;
12
+ handleTrackUnsubscribed(track: RemoteTrack, _publication: RemoteTrackPublication, _participant: RemoteParticipant): void;
13
+ mute(status: boolean): void;
14
+ sendDigits(k: string): void;
15
+ disconnect(): void;
16
+ sendEvent(evName: string, ...args: any[]): void;
17
+ on(ev: 'mute' | 'disconnect' | 'track-added', fn: (...args: any[]) => void): void;
18
+ }
19
+ export declare class LivekitDevice {
20
+ _room: Room;
21
+ _token: string;
22
+ _url: string;
23
+ private constructor();
24
+ static getDevice(sessionToken: string, url: string): Promise<LivekitDevice>;
25
+ disconnect(): void;
26
+ connect(_p: any): Promise<VogentAudioConn>;
27
+ }
@@ -0,0 +1,87 @@
1
+ import { Room, RoomEvent, } from 'livekit-client';
2
+ export class LivekitCall {
3
+ constructor(room) {
4
+ this._room = room;
5
+ this._params = {};
6
+ this._handlers = [];
7
+ this._room
8
+ .on(RoomEvent.TrackSubscribed, (...args) => {
9
+ this.handleTrackSubscribed(...args);
10
+ })
11
+ .on(RoomEvent.TrackUnsubscribed, (...args) => this.handleTrackUnsubscribed(...args))
12
+ .on(RoomEvent.Disconnected, () => this.disconnect());
13
+ }
14
+ handleTrackSubscribed(track, _publication, _participant) {
15
+ console.log('Track subscribed', track);
16
+ if (track.kind === 'audio') {
17
+ const audioElement = track.attach();
18
+ document.body.appendChild(audioElement);
19
+ audioElement.style.display = 'none';
20
+ }
21
+ if (_participant.identity === 'livekit-ai-processor') {
22
+ this.sendEvent('track-added', track.mediaStreamTrack);
23
+ }
24
+ }
25
+ handleTrackUnsubscribed(track, _publication, _participant) {
26
+ if (track.kind === 'audio') {
27
+ console.log('Track unsubscribed', track);
28
+ }
29
+ }
30
+ mute(status) {
31
+ if (status) {
32
+ this._room.localParticipant.setMicrophoneEnabled(false).then(() => {
33
+ this.sendEvent('mute', true);
34
+ });
35
+ }
36
+ else {
37
+ this._room.localParticipant.setMicrophoneEnabled(true).then(() => {
38
+ this.sendEvent('mute', false);
39
+ });
40
+ }
41
+ }
42
+ sendDigits(k) {
43
+ if (k.length != 1) {
44
+ throw new Error('Invalid DTMF digit');
45
+ }
46
+ const code = k === '*' ? 10 : k === '#' ? 11 : parseInt(k);
47
+ this._room.localParticipant.publishDtmf(code, k);
48
+ }
49
+ disconnect() {
50
+ this._room.disconnect();
51
+ }
52
+ sendEvent(evName, ...args) {
53
+ for (const { ev, fn } of this._handlers) {
54
+ if (ev === evName) {
55
+ fn(...args);
56
+ }
57
+ }
58
+ }
59
+ on(ev, fn) {
60
+ this._handlers.push({
61
+ ev,
62
+ fn,
63
+ });
64
+ }
65
+ }
66
+ export class LivekitDevice {
67
+ constructor(room, token, url) {
68
+ this._room = room;
69
+ this._token = token;
70
+ this._url = url;
71
+ // speeds up connection attempt
72
+ this._room.prepareConnection(this._url, this._token);
73
+ }
74
+ static async getDevice(sessionToken, url) {
75
+ const room = new Room();
76
+ return new LivekitDevice(room, sessionToken, url);
77
+ }
78
+ disconnect() {
79
+ this._room.disconnect();
80
+ }
81
+ async connect(_p) {
82
+ await this._room.connect(this._url, this._token, {});
83
+ const lkcall = new LivekitCall(this._room);
84
+ await this._room.localParticipant.setMicrophoneEnabled(true);
85
+ return lkcall;
86
+ }
87
+ }
@@ -10,7 +10,7 @@ export interface VogentAudioConn {
10
10
  * - 'disconnect': Fired when the connection is terminated
11
11
  * @param fn - Callback function to handle the event
12
12
  */
13
- on: (ev: 'mute' | 'disconnect', fn: (...args: any[]) => void) => void;
13
+ on: (ev: 'mute' | 'disconnect' | 'track-added', fn: (...args: any[]) => void) => void;
14
14
  /**
15
15
  * Mute or unmute the audio connection
16
16
  * @param status - True to mute, false to unmute
@@ -6,7 +6,7 @@ export declare class VonageCall {
6
6
  _liveListen: boolean;
7
7
  _params: any;
8
8
  _handlers: {
9
- ev: 'mute' | 'disconnect';
9
+ ev: 'mute' | 'disconnect' | 'track-added';
10
10
  fn: (...args: any[]) => void;
11
11
  }[];
12
12
  constructor(callId: string, client: VonageClient, params: any);
package/dist/queries.js CHANGED
@@ -30,6 +30,8 @@ export const AI_GET_TOKEN = gql(`
30
30
  browserDialToken(input: $input) {
31
31
  token
32
32
  iceConfig
33
+ telephonyProvider
34
+ url
33
35
  }
34
36
  }
35
37
  `);
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@vogent/vogent-web-client",
3
- "version": "0.0.10",
3
+ "version": "0.1.1",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "@apollo/client": "^3.12.4",
7
7
  "@vonage/client-sdk": "^1.7.2",
8
8
  "graphql": "^16.10.0",
9
- "graphql-ws": "^5.16.0"
9
+ "graphql-ws": "^5.16.0",
10
+ "livekit-client": "^2.13.3"
10
11
  },
11
12
  "main": "dist/index.js",
12
13
  "types": "dist/index.d.ts",