@eloquentai/chat-sdk 0.19.0-dev → 0.19.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.
@@ -4,7 +4,7 @@ export declare const conversationResponseApiSchema: z.ZodObject<{
|
|
4
4
|
message_number: z.ZodNumber;
|
5
5
|
agent_id: z.ZodString;
|
6
6
|
user_id: z.ZodString;
|
7
|
-
|
7
|
+
chat_id: z.ZodString;
|
8
8
|
created_at: z.ZodString;
|
9
9
|
data: z.ZodObject<{
|
10
10
|
type: z.ZodString;
|
@@ -25,7 +25,7 @@ export declare const conversationResponseApiSchema: z.ZodObject<{
|
|
25
25
|
message_number: number;
|
26
26
|
agent_id: string;
|
27
27
|
user_id: string;
|
28
|
-
|
28
|
+
chat_id: string;
|
29
29
|
created_at: string;
|
30
30
|
}, {
|
31
31
|
data: {
|
@@ -36,7 +36,7 @@ export declare const conversationResponseApiSchema: z.ZodObject<{
|
|
36
36
|
message_number: number;
|
37
37
|
agent_id: string;
|
38
38
|
user_id: string;
|
39
|
-
|
39
|
+
chat_id: string;
|
40
40
|
created_at: string;
|
41
41
|
}>;
|
42
42
|
export type ConversationResponseApi = z.infer<typeof conversationResponseApiSchema>;
|
package/dist/index.mjs
CHANGED
@@ -15,7 +15,7 @@ import { z as se } from "zod";
|
|
15
15
|
import ld from "react-dom/client";
|
16
16
|
try {
|
17
17
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
|
18
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
18
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "6200d94e-1d4e-426a-a8f5-54fbdd38afbc", e._sentryDebugIdIdentifier = "sentry-dbid-6200d94e-1d4e-426a-a8f5-54fbdd38afbc");
|
19
19
|
} catch {
|
20
20
|
}
|
21
21
|
const U = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, st = "9.30.0", $ = globalThis;
|
@@ -10610,7 +10610,7 @@ function $_(e) {
|
|
10610
10610
|
}
|
10611
10611
|
{
|
10612
10612
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
10613
|
-
e.SENTRY_RELEASE = { id: "
|
10613
|
+
e.SENTRY_RELEASE = { id: "f817f3ed2be120c6749d0f07d3618e8549f961f1" };
|
10614
10614
|
}
|
10615
10615
|
const H_ = "development";
|
10616
10616
|
$_({
|
@@ -11620,7 +11620,13 @@ function cl({
|
|
11620
11620
|
] }, "chat-interface-sekelton");
|
11621
11621
|
}
|
11622
11622
|
function gw(e) {
|
11623
|
-
const t = { cleanChatButton: !0, ...e }, {
|
11623
|
+
const t = { cleanChatButton: !0, ...e }, {
|
11624
|
+
isOpen: n = !1,
|
11625
|
+
isMobile: r,
|
11626
|
+
onCleanChat: o,
|
11627
|
+
onClose: s,
|
11628
|
+
theme: i
|
11629
|
+
} = t, c = Qo(n, 10), [a, u] = z(!1), l = al({
|
11624
11630
|
isOpen: c,
|
11625
11631
|
isMobile: r
|
11626
11632
|
}), d = () => a ? /* @__PURE__ */ D(Ns, { className: l, children: [
|
@@ -14905,7 +14911,7 @@ const L0 = se.object({
|
|
14905
14911
|
message_number: se.number(),
|
14906
14912
|
agent_id: se.string(),
|
14907
14913
|
user_id: se.string(),
|
14908
|
-
|
14914
|
+
chat_id: se.string(),
|
14909
14915
|
created_at: se.string(),
|
14910
14916
|
data: se.object({
|
14911
14917
|
type: se.string(),
|
@@ -15045,7 +15051,7 @@ function U0({
|
|
15045
15051
|
text: b.content,
|
15046
15052
|
userId: n || t,
|
15047
15053
|
deviceId: r
|
15048
|
-
})).
|
15054
|
+
})).chat_id, a({ id: x }));
|
15049
15055
|
} catch (x) {
|
15050
15056
|
throw clearTimeout(h.current), h.current = null, i(
|
15051
15057
|
(E) => E.filter((_) => Array.isArray(_) ? !0 : !_.isThinking)
|