@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.
@@ -133,13 +133,17 @@ export interface MCPServerConfig {
133
133
  */
134
134
  readonly channelId?: string;
135
135
  /**
136
- * Mode determines endpoint path and authentication requirements:
137
- * - homeowner: /chat/stream (unauthenticated, appId should be in serverUrl)
138
- * - business_owner: /api/chat/stream (authenticated, requires authToken)
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";
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.98.0",
7
+ "version": "1.99.0",
8
8
  "description": "Chat Widget channel for stentor",
9
9
  "types": "lib/index",
10
10
  "main": "lib/index",