@eloquentai/chat-sdk 0.29.0 → 0.29.2-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.
- package/dist/components/chat/validations.d.ts +14 -0
- package/dist/{index-BvIaSpGp.js → index-Bdd4HwVN.js} +2122 -2085
- package/dist/{index-BvIaSpGp.js.map → index-Bdd4HwVN.js.map} +1 -1
- package/dist/{index-DbJ2Yx5Y.js → index-g833PbIu.js} +2 -2
- package/dist/{index-DbJ2Yx5Y.js.map → index-g833PbIu.js.map} +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +12 -4
|
@@ -56,6 +56,13 @@ export declare const chatResponseApiSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
56
56
|
type: z.ZodLiteral<"breadcrumb">;
|
|
57
57
|
content: z.ZodString;
|
|
58
58
|
}, z.core.$strip>;
|
|
59
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
+
message_id: z.ZodNullable<z.ZodString>;
|
|
61
|
+
created_at: z.ZodString;
|
|
62
|
+
data: z.ZodObject<{
|
|
63
|
+
type: z.ZodLiteral<"chat_escalated">;
|
|
64
|
+
content: z.ZodNull;
|
|
65
|
+
}, z.core.$strip>;
|
|
59
66
|
}, z.core.$strip>]>;
|
|
60
67
|
export type ChatResponseApi = z.infer<typeof chatResponseApiSchema>;
|
|
61
68
|
type NotificationData = ChatResponseApi["data"];
|
|
@@ -115,6 +122,13 @@ export type BreadcrumbNotification = {
|
|
|
115
122
|
type: "breadcrumb";
|
|
116
123
|
}>;
|
|
117
124
|
};
|
|
125
|
+
export type ChatEscalatedNotification = {
|
|
126
|
+
message_id: string | null;
|
|
127
|
+
created_at: string;
|
|
128
|
+
data: Extract<NotificationData, {
|
|
129
|
+
type: "chat_escalated";
|
|
130
|
+
}>;
|
|
131
|
+
};
|
|
118
132
|
export declare const chatResponseSchema: z.ZodObject<{
|
|
119
133
|
message_id: z.ZodString;
|
|
120
134
|
response: z.ZodObject<{
|