@eloquentai/chat-sdk 0.21.6-dev → 0.21.8-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.
@@ -4,6 +4,7 @@ import { ChatInterfaceProps } from '../chat-interface';
4
4
  export interface UseChatProps {
5
5
  appId: string;
6
6
  userId?: string;
7
+ userName?: string;
7
8
  theme?: Partial<ThemeContextType>;
8
9
  chatProps?: Partial<ChatInterfaceProps>;
9
10
  isMobile?: boolean;
@@ -28,7 +29,7 @@ export interface UseChatReturn {
28
29
  * @param options The hook parameters
29
30
  * @returns The chat hook return type
30
31
  */
31
- export declare function useChat({ environment, appId, userId: initialUserId, chatProps, isMobile: propIsMobile, initialOpen: propInitialOpen, }: Readonly<Partial<UseChatProps> & {
32
+ export declare function useChat({ environment, appId, userId: initialUserId, userName: initialUserName, chatProps, isMobile: propIsMobile, initialOpen: propInitialOpen, }: Readonly<Partial<UseChatProps> & {
32
33
  environment: "test" | "live";
33
34
  appId: string;
34
35
  }>): UseChatReturn;
@@ -7,6 +7,7 @@ export interface Conversation {
7
7
  export interface UseMessageEventsProps {
8
8
  appId: string;
9
9
  userId: string;
10
+ userName?: string;
10
11
  externalId?: string | null;
11
12
  deviceId: string;
12
13
  apiClient: EloquentAiApiClient | null;
@@ -24,4 +25,4 @@ export interface UseMessageEventsReturn {
24
25
  /**
25
26
  * Hook to handle message events like sending and cleaning
26
27
  */
27
- export declare function useMessageEvents({ appId, userId, externalId, deviceId, apiClient, chatSettings, messages, setMessages, currentConversation, setCurrentConversation, chatOpen, }: UseMessageEventsProps): UseMessageEventsReturn;
28
+ export declare function useMessageEvents({ appId, userId, userName, externalId, deviceId, apiClient, chatSettings, messages, setMessages, currentConversation, setCurrentConversation, chatOpen, }: UseMessageEventsProps): UseMessageEventsReturn;
@@ -4,9 +4,11 @@ export interface UseSdkInitializationProps {
4
4
  environment: "test" | "live";
5
5
  appId: string;
6
6
  initialUserId?: string;
7
+ initialUserName?: string;
7
8
  }
8
9
  export interface UseSdkInitializationReturn {
9
10
  userId: string;
11
+ userName?: string;
10
12
  externalId?: string | null;
11
13
  deviceId: string;
12
14
  apiClient: EloquentAiApiClient | null;
@@ -21,4 +23,4 @@ export interface UseSdkInitializationReturn {
21
23
  * Hook to handle SDK initialization for the EloquentAI Chat SDK
22
24
  * Handles API client initialization, saved conversation restoration, and SDK boot
23
25
  */
24
- export declare function useSdkInitialization({ appId, initialUserId, }: UseSdkInitializationProps): UseSdkInitializationReturn;
26
+ export declare function useSdkInitialization({ appId, initialUserId, initialUserName, }: UseSdkInitializationProps): UseSdkInitializationReturn;