@eloquentai/chat-sdk 0.25.0-dev → 0.25.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.
@@ -1,85 +1,25 @@
1
1
  import { z } from 'zod';
2
- export declare const conversationResponseApiSchema: z.ZodUnion<[z.ZodObject<{
2
+ export declare const conversationResponseApiSchema: z.ZodUnion<readonly [z.ZodObject<{
3
3
  message_id: z.ZodNullable<z.ZodString>;
4
4
  created_at: z.ZodString;
5
5
  data: z.ZodObject<{
6
6
  type: z.ZodLiteral<"utterance">;
7
7
  content: z.ZodString;
8
8
  role: z.ZodString;
9
- }, "strip", z.ZodTypeAny, {
10
- type: "utterance";
11
- role: string;
12
- content: string;
13
- }, {
14
- type: "utterance";
15
- role: string;
16
- content: string;
17
- }>;
18
- }, "strip", z.ZodTypeAny, {
19
- data: {
20
- type: "utterance";
21
- role: string;
22
- content: string;
23
- };
24
- message_id: string | null;
25
- created_at: string;
26
- }, {
27
- data: {
28
- type: "utterance";
29
- role: string;
30
- content: string;
31
- };
32
- message_id: string | null;
33
- created_at: string;
34
- }>, z.ZodObject<{
9
+ }, z.core.$strip>;
10
+ }, z.core.$strip>, z.ZodObject<{
35
11
  created_at: z.ZodString;
36
12
  data: z.ZodObject<{
37
13
  type: z.ZodLiteral<"error">;
38
14
  code: z.ZodString;
39
- }, "strip", z.ZodTypeAny, {
40
- type: "error";
41
- code: string;
42
- }, {
43
- type: "error";
44
- code: string;
45
- }>;
46
- }, "strip", z.ZodTypeAny, {
47
- data: {
48
- type: "error";
49
- code: string;
50
- };
51
- created_at: string;
52
- }, {
53
- data: {
54
- type: "error";
55
- code: string;
56
- };
57
- created_at: string;
58
- }>, z.ZodObject<{
15
+ }, z.core.$strip>;
16
+ }, z.core.$strip>, z.ZodObject<{
59
17
  created_at: z.ZodString;
60
18
  data: z.ZodObject<{
61
19
  type: z.ZodLiteral<"agent_cognition">;
62
20
  content: z.ZodString;
63
- }, "strip", z.ZodTypeAny, {
64
- type: "agent_cognition";
65
- content: string;
66
- }, {
67
- type: "agent_cognition";
68
- content: string;
69
- }>;
70
- }, "strip", z.ZodTypeAny, {
71
- data: {
72
- type: "agent_cognition";
73
- content: string;
74
- };
75
- created_at: string;
76
- }, {
77
- data: {
78
- type: "agent_cognition";
79
- content: string;
80
- };
81
- created_at: string;
82
- }>]>;
21
+ }, z.core.$strip>;
22
+ }, z.core.$strip>]>;
83
23
  export type ConversationResponseApi = z.infer<typeof conversationResponseApiSchema>;
84
24
  type NotificationData = ConversationResponseApi["data"];
85
25
  export type UtteranceNotification = {
@@ -107,29 +47,7 @@ export declare const conversationResponseSchema: z.ZodObject<{
107
47
  id: z.ZodString;
108
48
  type: z.ZodString;
109
49
  content: z.ZodString;
110
- }, "strip", z.ZodTypeAny, {
111
- id: string;
112
- type: string;
113
- content: string;
114
- }, {
115
- id: string;
116
- type: string;
117
- content: string;
118
- }>;
119
- }, "strip", z.ZodTypeAny, {
120
- message_id: string;
121
- response: {
122
- id: string;
123
- type: string;
124
- content: string;
125
- };
126
- }, {
127
- message_id: string;
128
- response: {
129
- id: string;
130
- type: string;
131
- content: string;
132
- };
133
- }>;
50
+ }, z.core.$strip>;
51
+ }, z.core.$strip>;
134
52
  export type ConversationResponse = z.infer<typeof conversationResponseSchema>;
135
53
  export {};