@eloquentai/chat-sdk 0.19.2-dev → 0.19.3-dev

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.
@@ -1,9 +1,12 @@
1
1
  import { BootResponse } from '../../lib/eloquent-ai-api-client.ts';
2
2
  import { ConversationResponse } from './validations';
3
3
  type UseRealTimeEventsProps = {
4
- conversationId?: string;
5
- onReceiveMessage: (response: ConversationResponse) => void;
4
+ onReceiveMessage: (response: ConversationResponse, conversationId: string) => void;
6
5
  chatSettings: BootResponse["chat_settings"] | null;
7
6
  };
8
- export declare function useRealTimeEvents({ conversationId, onReceiveMessage, chatSettings, }: UseRealTimeEventsProps): void;
7
+ type UseRealTimeEventsReturn = {
8
+ connect: (conversationId: string) => Promise<void>;
9
+ disconnect: () => void;
10
+ };
11
+ export declare function useRealTimeEvents({ onReceiveMessage, chatSettings, }: UseRealTimeEventsProps): UseRealTimeEventsReturn;
9
12
  export {};