vanilla-agent 1.0.0 → 1.2.0

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/index.d.cts CHANGED
@@ -283,6 +283,7 @@ type AgentWidgetInitOptions = {
283
283
  config?: AgentWidgetConfig;
284
284
  useShadowDom?: boolean;
285
285
  onReady?: () => void;
286
+ windowKey?: string;
286
287
  };
287
288
 
288
289
  type Controller = {
@@ -292,6 +293,10 @@ type Controller = {
292
293
  close: () => void;
293
294
  toggle: () => void;
294
295
  clearChat: () => void;
296
+ setMessage: (message: string) => boolean;
297
+ submitMessage: (message?: string) => boolean;
298
+ startVoiceRecognition: () => boolean;
299
+ stopVoiceRecognition: () => boolean;
295
300
  };
296
301
  declare const createAgentExperience: (mount: HTMLElement, initialConfig?: AgentWidgetConfig) => Controller;
297
302
  type AgentWidgetController = Controller;
package/dist/index.d.ts CHANGED
@@ -283,6 +283,7 @@ type AgentWidgetInitOptions = {
283
283
  config?: AgentWidgetConfig;
284
284
  useShadowDom?: boolean;
285
285
  onReady?: () => void;
286
+ windowKey?: string;
286
287
  };
287
288
 
288
289
  type Controller = {
@@ -292,6 +293,10 @@ type Controller = {
292
293
  close: () => void;
293
294
  toggle: () => void;
294
295
  clearChat: () => void;
296
+ setMessage: (message: string) => boolean;
297
+ submitMessage: (message?: string) => boolean;
298
+ startVoiceRecognition: () => boolean;
299
+ stopVoiceRecognition: () => boolean;
295
300
  };
296
301
  declare const createAgentExperience: (mount: HTMLElement, initialConfig?: AgentWidgetConfig) => Controller;
297
302
  type AgentWidgetController = Controller;