@vapi-ai/web 2.2.5 → 2.2.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.
package/dist/api.js CHANGED
@@ -1609,6 +1609,22 @@ class Api extends HttpClient {
1609
1609
  type: ContentType.Json,
1610
1610
  ...params,
1611
1611
  }),
1612
+ /**
1613
+ * No description
1614
+ *
1615
+ * @tags Orgs
1616
+ * @name OrgControllerOrgToken
1617
+ * @summary Generate User Org JWT
1618
+ * @request GET:/org/{id}/auth
1619
+ * @secure
1620
+ */
1621
+ orgControllerOrgToken: (id, params = {}) => this.request({
1622
+ path: `/org/${id}/auth`,
1623
+ method: 'GET',
1624
+ secure: true,
1625
+ format: 'json',
1626
+ ...params,
1627
+ }),
1612
1628
  };
1613
1629
  token = {
1614
1630
  /**
@@ -2005,6 +2021,23 @@ class Api extends HttpClient {
2005
2021
  format: 'json',
2006
2022
  ...params,
2007
2023
  }),
2024
+ /**
2025
+ * No description
2026
+ *
2027
+ * @tags Voice Library
2028
+ * @name VoiceLibraryControllerVoiceLibraryCreateSesameVoice
2029
+ * @summary Create a new voice in the Voice Library using Sesame
2030
+ * @request POST:/voice-library/create-sesame-voice
2031
+ * @secure
2032
+ */
2033
+ voiceLibraryControllerVoiceLibraryCreateSesameVoice: (data, params = {}) => this.request({
2034
+ path: `/voice-library/create-sesame-voice`,
2035
+ method: 'POST',
2036
+ body: data,
2037
+ secure: true,
2038
+ type: ContentType.Json,
2039
+ ...params,
2040
+ }),
2008
2041
  };
2009
2042
  provider = {
2010
2043
  /**
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.7",
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,