@assemble-inc/chat-widget 0.1.7 → 0.1.9

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/Widget.d.ts CHANGED
@@ -1,6 +1,13 @@
1
1
  export interface WidgetConfig {
2
2
  /** Chat endpoint. Defaults to '/api/chat'. */
3
3
  endpoint?: string;
4
+ /**
5
+ * Extra HTTP headers sent with every chat request.
6
+ * Accepts a plain object or a zero-argument function that returns one —
7
+ * the function form is called on each request so headers can be read from
8
+ * dynamic sources such as localStorage.
9
+ */
10
+ headers?: Record<string, string> | (() => Record<string, string>);
4
11
  /**
5
12
  * Full system prompt for this embed.
6
13
  * Used when the server has no systemPrompt in ChatHandlerConfig.