avin-ai 0.2.3 → 0.2.5

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/index.d.ts CHANGED
@@ -146,7 +146,9 @@ export declare class ChatService {
146
146
  chatId?: string;
147
147
  }>;
148
148
  static sendChatMessage(agentId: string, prospectId: string, message: string, chatId: string | null, onChunk: (text: string) => void, onWidget: (widget: any) => void, onDone: (newChatId: string | null) => void): Promise<void>;
149
- static listenForAdminReplies(inboxId: string, sender: string, onMessage: (content: string) => void): EventSource;
149
+ static listenForAdminReplies(inboxId: string, sender: string, onMessage: (content: string) => void): {
150
+ close: () => void;
151
+ };
150
152
  static createCall(agentId: string, prospectId: string | null, widgetMode: string): Promise<string>;
151
153
  }
152
154
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "avin-ai",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "AvinAI Voice & Chat Widget SDK — embed conversational AI into any website with one script tag",
5
5
  "author": "AvinAI <dev@avin.ai>",
6
6
  "license": "MIT",