@eloquentai/chat-sdk 0.29.1-dev → 0.30.0-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.
@@ -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<{