UNPKG

@assistable/chat-widget

Version:

A chat widget that can be paired with Assistable workflows built using the Assistant API.

29 lines (28 loc) 771 B
export type WidgetConfig = { url: string; threadId: string | null; responseIsAStream: boolean; user: Record<any, any>; widgetTitle: string; greetingMessage: string | null; disableErrorAlert: boolean; closeOnOutsideClick: boolean; openOnLoad: boolean; location_id: string | null; }; declare function init(): void; declare function open(e: Event): void; declare function close(): void; declare const buildShipChatWidget: { open: typeof open; close: typeof close; config: WidgetConfig; init: typeof init; setLocationId: (id: string) => void; }; declare global { interface Window { buildShipChatWidget: typeof buildShipChatWidget; } } export default buildShipChatWidget;