@xpert-ai/chatkit-web-component 0.10.0 → 0.11.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.
@@ -2769,6 +2769,13 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
2769
2769
  },
2770
2770
  targetOrigin: window.location.origin,
2771
2771
  handlers: {
2772
+ onRealtimeVoiceCommand: (input) => {
2773
+ var _a2;
2774
+ const voice = (_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.realtimeVoice;
2775
+ if (!voice || input.type === "start" && !voice.enabled)
2776
+ throw new IntegrationError("Realtime voice is unavailable.");
2777
+ return voice.onCommand(input);
2778
+ },
2772
2779
  onFileInputClick: ({
2773
2780
  inputAttributes
2774
2781
  }) => {