@vapi-ai/web 2.2.5 → 2.2.6

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/dist/api.js CHANGED
@@ -2005,6 +2005,23 @@ class Api extends HttpClient {
2005
2005
  format: 'json',
2006
2006
  ...params,
2007
2007
  }),
2008
+ /**
2009
+ * No description
2010
+ *
2011
+ * @tags Voice Library
2012
+ * @name VoiceLibraryControllerVoiceLibraryCreateSesameVoice
2013
+ * @summary Create a new voice in the Voice Library using Sesame
2014
+ * @request POST:/voice-library/create-sesame-voice
2015
+ * @secure
2016
+ */
2017
+ voiceLibraryControllerVoiceLibraryCreateSesameVoice: (data, params = {}) => this.request({
2018
+ path: `/voice-library/create-sesame-voice`,
2019
+ method: 'POST',
2020
+ body: data,
2021
+ secure: true,
2022
+ type: ContentType.Json,
2023
+ ...params,
2024
+ }),
2008
2025
  };
2009
2026
  provider = {
2010
2027
  /**
package/dist/vapi.js CHANGED
@@ -107,7 +107,7 @@ class Vapi extends VapiEventEmitter {
107
107
  this.cleanup();
108
108
  }
109
109
  const isVideoRecordingEnabled = webCall?.artifactPlan?.videoRecordingEnabled ?? false;
110
- const isVideoEnabled = webCall.transport?.assistantVideoEnabled ?? false;
110
+ const isVideoEnabled = webCall?.assistant?.voice?.provider === 'tavus';
111
111
  this.call = daily_js_1.default.createCallObject({
112
112
  audioSource: this.dailyCallObject.audioSource ?? true,
113
113
  videoSource: this.dailyCallObject.videoSource ?? isVideoRecordingEnabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vapi-ai/web",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "",
5
5
  "main": "dist/vapi.js",
6
6
  "types": "dist/vapi.d.ts",
package/vapi.ts CHANGED
@@ -225,7 +225,7 @@ export default class Vapi extends VapiEventEmitter {
225
225
  const isVideoRecordingEnabled =
226
226
  webCall?.artifactPlan?.videoRecordingEnabled ?? false;
227
227
 
228
- const isVideoEnabled = webCall.transport?.assistantVideoEnabled ?? false;
228
+ const isVideoEnabled = webCall?.assistant?.voice?.provider === 'tavus';
229
229
 
230
230
  this.call = DailyIframe.createCallObject({
231
231
  audioSource: this.dailyCallObject.audioSource ?? true,