@xapp/stentor-chat-widget 1.101.3 → 1.103.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 +31 -0
- package/package.json +1 -1
package/lib/WidgetEnv.d.ts
CHANGED
|
@@ -313,6 +313,37 @@ 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;
|
|
338
|
+
/**
|
|
339
|
+
* Register the tenant's public MCP tools (business info, knowledge search, request a
|
|
340
|
+
* callback) as WebMCP "site tools" on the host page, for the AI agent in the visitor's own
|
|
341
|
+
* browser (ChatGPT's browser, Chrome's origin trial). Each call goes to the same
|
|
342
|
+
* `{agentMcpHost}/{appId}/mcp` server the discovery tags advertise. Opt-in: set true to
|
|
343
|
+
* turn it on; a browser without WebMCP ignores it.
|
|
344
|
+
* @default false
|
|
345
|
+
*/
|
|
346
|
+
readonly webmcp?: boolean;
|
|
316
347
|
}
|
|
317
348
|
export interface WidgetAutoOpenOnPattern {
|
|
318
349
|
readonly patterns?: string[];
|