@xapp/stentor-chat-widget 1.101.3 → 1.102.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/lib/WidgetEnv.d.ts +22 -0
- package/package.json +1 -1
package/lib/WidgetEnv.d.ts
CHANGED
|
@@ -313,6 +313,28 @@ export interface WidgetEnv extends WidgetEnvDeprecated {
|
|
|
313
313
|
* with a configurable dock of action buttons (Chat, Form, Phone, URL).
|
|
314
314
|
*/
|
|
315
315
|
readonly actionBar?: ActionBarConfig;
|
|
316
|
+
/**
|
|
317
|
+
* The tenant's appId. When present, the widget advertises the tenant's public MCP server
|
|
318
|
+
* (`{agentMcpHost}/{appId}/mcp`) to AI browsing agents. Injected by the serving layer.
|
|
319
|
+
* Without it, the appId is derived from a homeowner MCP `connection.serverUrl` if there is one.
|
|
320
|
+
*/
|
|
321
|
+
readonly appId?: string;
|
|
322
|
+
/**
|
|
323
|
+
* Full public MCP URL to advertise, e.g. "https://agentic.xapp.ai/{appId}/mcp".
|
|
324
|
+
* Overrides appId/agentMcpHost.
|
|
325
|
+
*/
|
|
326
|
+
readonly agentMcpUrl?: string;
|
|
327
|
+
/**
|
|
328
|
+
* Host of the public MCP server used with appId.
|
|
329
|
+
* @default "https://agentic.xapp.ai"
|
|
330
|
+
*/
|
|
331
|
+
readonly agentMcpHost?: string;
|
|
332
|
+
/**
|
|
333
|
+
* Show detected AI browsing agents a short, dismissible note pointing at the MCP server.
|
|
334
|
+
* Opt-in: set true to turn it on. The MCP discovery tags in <head> are added regardless.
|
|
335
|
+
* @default false
|
|
336
|
+
*/
|
|
337
|
+
readonly agentNotice?: boolean;
|
|
316
338
|
}
|
|
317
339
|
export interface WidgetAutoOpenOnPattern {
|
|
318
340
|
readonly patterns?: string[];
|