@xapp/stentor-chat-widget 1.98.0 → 1.99.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 +7 -3
- package/package.json +1 -1
package/lib/WidgetEnv.d.ts
CHANGED
|
@@ -133,13 +133,17 @@ export interface MCPServerConfig {
|
|
|
133
133
|
*/
|
|
134
134
|
readonly channelId?: string;
|
|
135
135
|
/**
|
|
136
|
-
* Mode determines endpoint
|
|
137
|
-
* - homeowner: /chat/stream (unauthenticated, appId
|
|
138
|
-
* - business_owner: /api/chat/stream (
|
|
136
|
+
* Mode determines endpoint paths and authentication requirements:
|
|
137
|
+
* - homeowner: /chat/stream and /chat/close (unauthenticated, appId in serverUrl)
|
|
138
|
+
* - business_owner: /api/chat/stream and /api/chat/close (requires authToken)
|
|
139
139
|
*
|
|
140
140
|
* For homeowner mode, the serverUrl should include the appId:
|
|
141
141
|
* e.g., "https://agent.xapp.ai/abc123"
|
|
142
142
|
*
|
|
143
|
+
* The serverUrl may also be given as the full stream endpoint
|
|
144
|
+
* (e.g. "https://agent.xapp.ai/abc123/chat/stream"); the widget normalises it back to
|
|
145
|
+
* the base rather than appending the path twice.
|
|
146
|
+
*
|
|
143
147
|
* @default "homeowner"
|
|
144
148
|
*/
|
|
145
149
|
readonly mode?: "homeowner" | "business_owner";
|