@vapi-ai/web 1.0.246 → 1.0.247

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/vapi.d.ts CHANGED
@@ -29,5 +29,6 @@ export default class Vapi extends VapiEventEmitter {
29
29
  private onAppMessage;
30
30
  private handleRemoteParticipantsAudioLevel;
31
31
  stop(): void;
32
+ send(message: any): void;
32
33
  }
33
34
  export {};
package/dist/vapi.js CHANGED
@@ -193,5 +193,9 @@ class Vapi extends VapiEventEmitter {
193
193
  (_a = this.call) === null || _a === void 0 ? void 0 : _a.destroy();
194
194
  this.call = null;
195
195
  }
196
+ send(message) {
197
+ var _a;
198
+ (_a = this.call) === null || _a === void 0 ? void 0 : _a.sendAppMessage(message);
199
+ }
196
200
  }
197
201
  exports.default = Vapi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vapi-ai/web",
3
- "version": "1.0.246",
3
+ "version": "1.0.247",
4
4
  "description": "",
5
5
  "main": "dist/vapi.js",
6
6
  "types": "dist/vapi.d.ts",
package/vapi.ts CHANGED
@@ -236,4 +236,8 @@ export default class Vapi extends VapiEventEmitter {
236
236
  this.call?.destroy();
237
237
  this.call = null;
238
238
  }
239
+
240
+ send(message: any): void {
241
+ this.call?.sendAppMessage(message);
242
+ }
239
243
  }