@vapi-ai/web 2.1.5 → 2.1.7

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.
Files changed (3) hide show
  1. package/dist/vapi.js +2 -2
  2. package/package.json +3 -3
  3. package/vapi.ts +2 -2
package/dist/vapi.js CHANGED
@@ -95,8 +95,8 @@ class Vapi extends VapiEventEmitter {
95
95
  this.cleanup();
96
96
  }
97
97
  const isVideoRecordingEnabled = webCall?.artifactPlan?.videoRecordingEnabled ?? false;
98
- // @ts-expect-error Tavus voice exists
99
- const isVideoEnabled = webCall.assistant?.voice?.provider === 'tavus';
98
+ // @ts-expect-error This exists
99
+ const isVideoEnabled = webCall.transport?.assistantVideoEnabled ?? false;
100
100
  this.call = daily_js_1.default.createCallObject({
101
101
  audioSource: this.dailyCallObject.audioSource ?? true,
102
102
  videoSource: this.dailyCallObject.videoSource ?? isVideoRecordingEnabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vapi-ai/web",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "description": "",
5
5
  "main": "dist/vapi.js",
6
6
  "types": "dist/vapi.d.ts",
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "homepage": "https://github.com/VapiAI/web#readme",
24
24
  "dependencies": {
25
- "@daily-co/daily-js": "^0.66.0",
26
- "@vapi-ai/web": "^1.0.263",
25
+ "@daily-co/daily-js": "^0.72.1",
26
+ "@vapi-ai/web": "^2.1.5",
27
27
  "events": "^3.3.0"
28
28
  },
29
29
  "devDependencies": {
package/vapi.ts CHANGED
@@ -203,8 +203,8 @@ export default class Vapi extends VapiEventEmitter {
203
203
  const isVideoRecordingEnabled =
204
204
  webCall?.artifactPlan?.videoRecordingEnabled ?? false;
205
205
 
206
- // @ts-expect-error Tavus voice exists
207
- const isVideoEnabled = webCall.assistant?.voice?.provider === 'tavus';
206
+ // @ts-expect-error This exists
207
+ const isVideoEnabled = webCall.transport?.assistantVideoEnabled ?? false;
208
208
 
209
209
  this.call = DailyIframe.createCallObject({
210
210
  audioSource: this.dailyCallObject.audioSource ?? true,