@eloquentai/chat-sdk 0.25.8 → 0.25.10-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.
@@ -5,6 +5,7 @@ export interface UseChatProps {
5
5
  appId: string;
6
6
  userId?: string;
7
7
  userName?: string;
8
+ userData?: Record<string, string | number | boolean>;
8
9
  theme?: Partial<ThemeContextType>;
9
10
  chatProps?: Partial<ChatInterfaceProps>;
10
11
  isMobile?: boolean;
@@ -36,7 +37,7 @@ export interface UseChatReturn {
36
37
  * @param options The hook parameters
37
38
  * @returns The chat hook return type
38
39
  */
39
- export declare function useChat({ environment, apiUrl, appId, userId: initialUserId, userName: initialUserName, chatProps, isMobile: propIsMobile, initialOpen: propInitialOpen, proactiveMessageHideDelay, }: Readonly<Partial<UseChatProps> & {
40
+ export declare function useChat({ environment, apiUrl, appId, userId: initialUserId, userName, userData, chatProps, isMobile: propIsMobile, initialOpen: propInitialOpen, proactiveMessageHideDelay, }: Readonly<Partial<UseChatProps> & {
40
41
  environment: "test" | "live";
41
42
  apiUrl?: string;
42
43
  appId: string;
@@ -8,6 +8,7 @@ export interface UseMessageEventsProps {
8
8
  appId: string;
9
9
  userId: string;
10
10
  userName?: string;
11
+ userData?: Record<string, string | number | boolean>;
11
12
  externalId?: string | null;
12
13
  deviceId: string;
13
14
  apiClient: EloquentAiApiClient | null;
@@ -25,4 +26,4 @@ export interface UseMessageEventsReturn {
25
26
  /**
26
27
  * Hook to handle message events like sending and cleaning
27
28
  */
28
- export declare function useMessageEvents({ appId, userId, userName, externalId, deviceId, apiClient, chatSettings, messages, setMessages, currentConversation, setCurrentConversation, chatOpen, }: UseMessageEventsProps): UseMessageEventsReturn;
29
+ export declare function useMessageEvents({ appId, userId, userName, userData, externalId, deviceId, apiClient, chatSettings, messages, setMessages, currentConversation, setCurrentConversation, chatOpen, }: UseMessageEventsProps): UseMessageEventsReturn;
@@ -5,11 +5,13 @@ export interface UseSdkInitializationProps {
5
5
  apiUrl?: string;
6
6
  appId: string;
7
7
  initialUserId?: string;
8
- initialUserName?: string;
8
+ userName?: string;
9
+ userData?: Record<string, string | number | boolean>;
9
10
  }
10
11
  export interface UseSdkInitializationReturn {
11
12
  userId: string;
12
13
  userName?: string;
14
+ userData?: Record<string, string | number | boolean>;
13
15
  externalId?: string | null;
14
16
  deviceId: string;
15
17
  apiClient: EloquentAiApiClient | null;
@@ -24,4 +26,4 @@ export interface UseSdkInitializationReturn {
24
26
  * Hook to handle SDK initialization for the EloquentAI Chat SDK
25
27
  * Handles API client initialization, saved conversation restoration, and SDK boot
26
28
  */
27
- export declare function useSdkInitialization({ apiUrl: apiUrlOverride, appId, initialUserId, initialUserName, }: UseSdkInitializationProps): UseSdkInitializationReturn;
29
+ export declare function useSdkInitialization({ apiUrl: apiUrlOverride, appId, initialUserId, userName, userData, }: UseSdkInitializationProps): UseSdkInitializationReturn;
@@ -1,6 +1,6 @@
1
1
  import * as Oe from "react";
2
2
  import { version as Zu } from "react";
3
- import { g as Rp } from "./index-CywxvKYH.js";
3
+ import { g as Rp } from "./index-jaki6zSQ.js";
4
4
  try {
5
5
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "e912b1ab-8839-4e6c-90b8-c20d1854ba0f", e._sentryDebugIdIdentifier = "sentry-dbid-e912b1ab-8839-4e6c-90b8-c20d1854ba0f");
@@ -18790,4 +18790,4 @@ export {
18790
18790
  iR as wrapUseRoutesV7,
18791
18791
  ik as zodErrorsIntegration
18792
18792
  };
18793
- //# sourceMappingURL=index-D768h7jL.js.map
18793
+ //# sourceMappingURL=index-CxS_K7B2.js.map