@eloquentai/chat-sdk 0.32.0-dev → 0.33.1-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.
@@ -16,6 +16,7 @@ export interface UseChatProps {
16
16
  }
17
17
  export interface UseChatReturn {
18
18
  isReady: boolean;
19
+ isChatEnabled: boolean;
19
20
  isMobile: boolean;
20
21
  chatInterfaceProps: Partial<ChatInterfaceProps>;
21
22
  chatOpen: boolean;
@@ -22,6 +22,7 @@ export interface UseSdkInitializationReturn {
22
22
  messages: Message[];
23
23
  isReady: boolean;
24
24
  isChatClosed: boolean;
25
+ isChatEnabled: boolean;
25
26
  }
26
27
  /**
27
28
  * Hook to handle SDK initialization for the EloquentAI Chat SDK
@@ -1,6 +1,7 @@
1
1
  export declare enum ERROR_CODES {
2
2
  NETWORK_ERROR = 0,
3
3
  MAINTENANCE_MODE = 5031,
4
+ CHAT_DISABLED = 5032,
4
5
  TECHNICAL_DIFFICULTIES = 5001
5
6
  }
6
7
  export declare const ERROR_MESSAGES: Record<ERROR_CODES | string, string>;