@cossistant/types 0.0.24 → 0.0.26
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/api/common.d.ts +17 -20
- package/api/common.d.ts.map +1 -1
- package/api/contact.d.ts +99 -101
- package/api/contact.d.ts.map +1 -1
- package/api/conversation.d.ts +322 -326
- package/api/conversation.d.ts.map +1 -1
- package/api/notification.d.ts +70 -73
- package/api/notification.d.ts.map +1 -1
- package/api/organization.d.ts +7 -9
- package/api/organization.d.ts.map +1 -1
- package/api/timeline-item.d.ts +261 -265
- package/api/timeline-item.d.ts.map +1 -1
- package/api/upload.d.ts +95 -98
- package/api/upload.d.ts.map +1 -1
- package/api/user.d.ts +19 -21
- package/api/user.d.ts.map +1 -1
- package/api/visitor.d.ts +110 -112
- package/api/visitor.d.ts.map +1 -1
- package/api/website.d.ts +177 -179
- package/api/website.d.ts.map +1 -1
- package/package.json +1 -1
- package/realtime-events.d.ts +330 -332
- package/realtime-events.d.ts.map +1 -1
- package/schemas.d.ts +80 -82
- package/schemas.d.ts.map +1 -1
- package/trpc/contact.d.ts +78 -80
- package/trpc/contact.d.ts.map +1 -1
- package/trpc/conversation.d.ts +328 -330
- package/trpc/conversation.d.ts.map +1 -1
- package/trpc/visitor.d.ts +105 -107
- package/trpc/visitor.d.ts.map +1 -1
- package/api.d.ts +0 -71
- package/api.d.ts.map +0 -1
- package/checks.d.ts +0 -189
- package/checks.d.ts.map +0 -1
- package/coerce.d.ts +0 -9
- package/coerce.d.ts.map +0 -1
- package/core.d.ts +0 -35
- package/core.d.ts.map +0 -1
- package/errors.d.ts +0 -121
- package/errors.d.ts.map +0 -1
- package/errors2.d.ts +0 -24
- package/errors2.d.ts.map +0 -1
- package/index2.d.ts +0 -4
- package/index3.d.ts +0 -1
- package/metadata.d.ts +0 -1
- package/openapi-generator.d.ts +0 -1
- package/openapi-generator2.d.ts +0 -1
- package/openapi-generator3.d.ts +0 -1
- package/openapi30.d.ts +0 -125
- package/openapi30.d.ts.map +0 -1
- package/openapi31.d.ts +0 -131
- package/openapi31.d.ts.map +0 -1
- package/parse.d.ts +0 -17
- package/parse.d.ts.map +0 -1
- package/registries.d.ts +0 -32
- package/registries.d.ts.map +0 -1
- package/schemas2.d.ts +0 -685
- package/schemas2.d.ts.map +0 -1
- package/schemas3.d.ts +0 -325
- package/schemas3.d.ts.map +0 -1
- package/specification-extension.d.ts +0 -9
- package/specification-extension.d.ts.map +0 -1
- package/standard-schema.d.ts +0 -59
- package/standard-schema.d.ts.map +0 -1
- package/util.d.ts +0 -41
- package/util.d.ts.map +0 -1
- package/versions.d.ts +0 -9
- package/versions.d.ts.map +0 -1
- package/zod-extensions.d.ts +0 -39
- package/zod-extensions.d.ts.map +0 -1
package/trpc/conversation.d.ts
CHANGED
|
@@ -1,163 +1,161 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { output } from "../core.js";
|
|
3
|
-
import { ZodArray, ZodBoolean, ZodEnum, ZodLiteral, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodString, ZodULID, ZodUnion } from "../schemas3.js";
|
|
1
|
+
import { z } from "zod";
|
|
4
2
|
|
|
5
3
|
//#region src/trpc/conversation.d.ts
|
|
6
|
-
declare const conversationStatusSchema: ZodEnum<{
|
|
4
|
+
declare const conversationStatusSchema: z.ZodEnum<{
|
|
7
5
|
open: "open";
|
|
8
6
|
resolved: "resolved";
|
|
9
7
|
spam: "spam";
|
|
10
8
|
}>;
|
|
11
|
-
declare const conversationPrioritySchema: ZodEnum<{
|
|
9
|
+
declare const conversationPrioritySchema: z.ZodEnum<{
|
|
12
10
|
low: "low";
|
|
13
11
|
normal: "normal";
|
|
14
12
|
high: "high";
|
|
15
13
|
urgent: "urgent";
|
|
16
14
|
}>;
|
|
17
|
-
declare const conversationSentimentSchema: ZodNullable<ZodEnum<{
|
|
15
|
+
declare const conversationSentimentSchema: z.ZodNullable<z.ZodEnum<{
|
|
18
16
|
positive: "positive";
|
|
19
17
|
negative: "negative";
|
|
20
18
|
neutral: "neutral";
|
|
21
19
|
}>>;
|
|
22
|
-
declare const conversationRecordSchema: ZodObject<{
|
|
23
|
-
id: ZodString;
|
|
24
|
-
organizationId: ZodString;
|
|
25
|
-
visitorId: ZodString;
|
|
26
|
-
websiteId: ZodString;
|
|
27
|
-
status: ZodEnum<{
|
|
20
|
+
declare const conversationRecordSchema: z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
organizationId: z.ZodString;
|
|
23
|
+
visitorId: z.ZodString;
|
|
24
|
+
websiteId: z.ZodString;
|
|
25
|
+
status: z.ZodEnum<{
|
|
28
26
|
open: "open";
|
|
29
27
|
resolved: "resolved";
|
|
30
28
|
spam: "spam";
|
|
31
29
|
}>;
|
|
32
|
-
priority: ZodEnum<{
|
|
30
|
+
priority: z.ZodEnum<{
|
|
33
31
|
low: "low";
|
|
34
32
|
normal: "normal";
|
|
35
33
|
high: "high";
|
|
36
34
|
urgent: "urgent";
|
|
37
35
|
}>;
|
|
38
|
-
sentiment: ZodNullable<ZodEnum<{
|
|
36
|
+
sentiment: z.ZodNullable<z.ZodEnum<{
|
|
39
37
|
positive: "positive";
|
|
40
38
|
negative: "negative";
|
|
41
39
|
neutral: "neutral";
|
|
42
40
|
}>>;
|
|
43
|
-
sentimentConfidence: ZodNullable<ZodNumber>;
|
|
44
|
-
channel: ZodString;
|
|
45
|
-
title: ZodNullable<ZodString>;
|
|
46
|
-
resolutionTime: ZodNullable<ZodNumber>;
|
|
47
|
-
startedAt: ZodNullable<ZodString>;
|
|
48
|
-
firstResponseAt: ZodNullable<ZodString>;
|
|
49
|
-
resolvedAt: ZodNullable<ZodString>;
|
|
50
|
-
lastMessageAt: ZodNullable<ZodString>;
|
|
51
|
-
lastMessageBy: ZodNullable<ZodString>;
|
|
52
|
-
resolvedByUserId: ZodNullable<ZodString>;
|
|
53
|
-
resolvedByAiAgentId: ZodNullable<ZodString>;
|
|
54
|
-
createdAt: ZodString;
|
|
55
|
-
updatedAt: ZodString;
|
|
56
|
-
deletedAt: ZodNullable<ZodString>;
|
|
57
|
-
},
|
|
58
|
-
type ConversationRecordResponse =
|
|
59
|
-
declare const conversationMutationResponseSchema: ZodObject<{
|
|
60
|
-
conversation: ZodObject<{
|
|
61
|
-
id: ZodString;
|
|
62
|
-
organizationId: ZodString;
|
|
63
|
-
visitorId: ZodString;
|
|
64
|
-
websiteId: ZodString;
|
|
65
|
-
status: ZodEnum<{
|
|
41
|
+
sentimentConfidence: z.ZodNullable<z.ZodNumber>;
|
|
42
|
+
channel: z.ZodString;
|
|
43
|
+
title: z.ZodNullable<z.ZodString>;
|
|
44
|
+
resolutionTime: z.ZodNullable<z.ZodNumber>;
|
|
45
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
46
|
+
firstResponseAt: z.ZodNullable<z.ZodString>;
|
|
47
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
48
|
+
lastMessageAt: z.ZodNullable<z.ZodString>;
|
|
49
|
+
lastMessageBy: z.ZodNullable<z.ZodString>;
|
|
50
|
+
resolvedByUserId: z.ZodNullable<z.ZodString>;
|
|
51
|
+
resolvedByAiAgentId: z.ZodNullable<z.ZodString>;
|
|
52
|
+
createdAt: z.ZodString;
|
|
53
|
+
updatedAt: z.ZodString;
|
|
54
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
type ConversationRecordResponse = z.infer<typeof conversationRecordSchema>;
|
|
57
|
+
declare const conversationMutationResponseSchema: z.ZodObject<{
|
|
58
|
+
conversation: z.ZodObject<{
|
|
59
|
+
id: z.ZodString;
|
|
60
|
+
organizationId: z.ZodString;
|
|
61
|
+
visitorId: z.ZodString;
|
|
62
|
+
websiteId: z.ZodString;
|
|
63
|
+
status: z.ZodEnum<{
|
|
66
64
|
open: "open";
|
|
67
65
|
resolved: "resolved";
|
|
68
66
|
spam: "spam";
|
|
69
67
|
}>;
|
|
70
|
-
priority: ZodEnum<{
|
|
68
|
+
priority: z.ZodEnum<{
|
|
71
69
|
low: "low";
|
|
72
70
|
normal: "normal";
|
|
73
71
|
high: "high";
|
|
74
72
|
urgent: "urgent";
|
|
75
73
|
}>;
|
|
76
|
-
sentiment: ZodNullable<ZodEnum<{
|
|
74
|
+
sentiment: z.ZodNullable<z.ZodEnum<{
|
|
77
75
|
positive: "positive";
|
|
78
76
|
negative: "negative";
|
|
79
77
|
neutral: "neutral";
|
|
80
78
|
}>>;
|
|
81
|
-
sentimentConfidence: ZodNullable<ZodNumber>;
|
|
82
|
-
channel: ZodString;
|
|
83
|
-
title: ZodNullable<ZodString>;
|
|
84
|
-
resolutionTime: ZodNullable<ZodNumber>;
|
|
85
|
-
startedAt: ZodNullable<ZodString>;
|
|
86
|
-
firstResponseAt: ZodNullable<ZodString>;
|
|
87
|
-
resolvedAt: ZodNullable<ZodString>;
|
|
88
|
-
lastMessageAt: ZodNullable<ZodString>;
|
|
89
|
-
lastMessageBy: ZodNullable<ZodString>;
|
|
90
|
-
resolvedByUserId: ZodNullable<ZodString>;
|
|
91
|
-
resolvedByAiAgentId: ZodNullable<ZodString>;
|
|
92
|
-
createdAt: ZodString;
|
|
93
|
-
updatedAt: ZodString;
|
|
94
|
-
deletedAt: ZodNullable<ZodString>;
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
declare const conversationHeaderSchema: ZodObject<{
|
|
98
|
-
id: ZodString;
|
|
99
|
-
status: ZodEnum<{
|
|
79
|
+
sentimentConfidence: z.ZodNullable<z.ZodNumber>;
|
|
80
|
+
channel: z.ZodString;
|
|
81
|
+
title: z.ZodNullable<z.ZodString>;
|
|
82
|
+
resolutionTime: z.ZodNullable<z.ZodNumber>;
|
|
83
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
84
|
+
firstResponseAt: z.ZodNullable<z.ZodString>;
|
|
85
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
86
|
+
lastMessageAt: z.ZodNullable<z.ZodString>;
|
|
87
|
+
lastMessageBy: z.ZodNullable<z.ZodString>;
|
|
88
|
+
resolvedByUserId: z.ZodNullable<z.ZodString>;
|
|
89
|
+
resolvedByAiAgentId: z.ZodNullable<z.ZodString>;
|
|
90
|
+
createdAt: z.ZodString;
|
|
91
|
+
updatedAt: z.ZodString;
|
|
92
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
declare const conversationHeaderSchema: z.ZodObject<{
|
|
96
|
+
id: z.ZodString;
|
|
97
|
+
status: z.ZodEnum<{
|
|
100
98
|
open: "open";
|
|
101
99
|
resolved: "resolved";
|
|
102
100
|
spam: "spam";
|
|
103
101
|
}>;
|
|
104
|
-
priority: ZodEnum<{
|
|
102
|
+
priority: z.ZodEnum<{
|
|
105
103
|
low: "low";
|
|
106
104
|
normal: "normal";
|
|
107
105
|
high: "high";
|
|
108
106
|
urgent: "urgent";
|
|
109
107
|
}>;
|
|
110
|
-
organizationId: ZodString;
|
|
111
|
-
visitorId: ZodString;
|
|
112
|
-
visitor: ZodObject<{
|
|
113
|
-
id: ZodULID;
|
|
114
|
-
lastSeenAt: ZodNullable<ZodString>;
|
|
115
|
-
blockedAt: ZodNullable<ZodString>;
|
|
116
|
-
blockedByUserId: ZodNullable<ZodString>;
|
|
117
|
-
isBlocked: ZodBoolean;
|
|
118
|
-
contact: ZodNullable<ZodObject<{
|
|
119
|
-
id: ZodULID;
|
|
120
|
-
name: ZodNullable<ZodString>;
|
|
121
|
-
email: ZodNullable<ZodString>;
|
|
122
|
-
image: ZodNullable<ZodString>;
|
|
123
|
-
metadataHash: ZodOptional<ZodString>;
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
websiteId: ZodString;
|
|
127
|
-
channel: ZodString;
|
|
128
|
-
title: ZodNullable<ZodString>;
|
|
129
|
-
resolutionTime: ZodNullable<ZodNumber>;
|
|
130
|
-
startedAt: ZodNullable<ZodString>;
|
|
131
|
-
firstResponseAt: ZodNullable<ZodString>;
|
|
132
|
-
resolvedAt: ZodNullable<ZodString>;
|
|
133
|
-
resolvedByUserId: ZodNullable<ZodString>;
|
|
134
|
-
resolvedByAiAgentId: ZodNullable<ZodString>;
|
|
135
|
-
createdAt: ZodString;
|
|
136
|
-
updatedAt: ZodString;
|
|
137
|
-
deletedAt: ZodNullable<ZodString>;
|
|
138
|
-
lastMessageAt: ZodNullable<ZodString>;
|
|
139
|
-
lastSeenAt: ZodNullable<ZodString>;
|
|
140
|
-
lastMessageTimelineItem: ZodNullable<ZodObject<{
|
|
141
|
-
id: ZodOptional<ZodString>;
|
|
142
|
-
conversationId: ZodString;
|
|
143
|
-
organizationId: ZodString;
|
|
144
|
-
visibility: ZodEnum<{
|
|
145
|
-
private: "private";
|
|
108
|
+
organizationId: z.ZodString;
|
|
109
|
+
visitorId: z.ZodString;
|
|
110
|
+
visitor: z.ZodObject<{
|
|
111
|
+
id: z.ZodULID;
|
|
112
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
113
|
+
blockedAt: z.ZodNullable<z.ZodString>;
|
|
114
|
+
blockedByUserId: z.ZodNullable<z.ZodString>;
|
|
115
|
+
isBlocked: z.ZodBoolean;
|
|
116
|
+
contact: z.ZodNullable<z.ZodObject<{
|
|
117
|
+
id: z.ZodULID;
|
|
118
|
+
name: z.ZodNullable<z.ZodString>;
|
|
119
|
+
email: z.ZodNullable<z.ZodString>;
|
|
120
|
+
image: z.ZodNullable<z.ZodString>;
|
|
121
|
+
metadataHash: z.ZodOptional<z.ZodString>;
|
|
122
|
+
}, z.core.$strip>>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
websiteId: z.ZodString;
|
|
125
|
+
channel: z.ZodString;
|
|
126
|
+
title: z.ZodNullable<z.ZodString>;
|
|
127
|
+
resolutionTime: z.ZodNullable<z.ZodNumber>;
|
|
128
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
129
|
+
firstResponseAt: z.ZodNullable<z.ZodString>;
|
|
130
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
131
|
+
resolvedByUserId: z.ZodNullable<z.ZodString>;
|
|
132
|
+
resolvedByAiAgentId: z.ZodNullable<z.ZodString>;
|
|
133
|
+
createdAt: z.ZodString;
|
|
134
|
+
updatedAt: z.ZodString;
|
|
135
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
136
|
+
lastMessageAt: z.ZodNullable<z.ZodString>;
|
|
137
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
138
|
+
lastMessageTimelineItem: z.ZodNullable<z.ZodObject<{
|
|
139
|
+
id: z.ZodOptional<z.ZodString>;
|
|
140
|
+
conversationId: z.ZodString;
|
|
141
|
+
organizationId: z.ZodString;
|
|
142
|
+
visibility: z.ZodEnum<{
|
|
146
143
|
public: "public";
|
|
144
|
+
private: "private";
|
|
147
145
|
}>;
|
|
148
|
-
type: ZodEnum<{
|
|
146
|
+
type: z.ZodEnum<{
|
|
149
147
|
message: "message";
|
|
150
148
|
event: "event";
|
|
151
149
|
identification: "identification";
|
|
152
150
|
}>;
|
|
153
|
-
text: ZodNullable<ZodString>;
|
|
154
|
-
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
155
|
-
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
156
|
-
type: ZodLiteral<"text">;
|
|
157
|
-
text: ZodString;
|
|
158
|
-
},
|
|
159
|
-
type: ZodLiteral<"event">;
|
|
160
|
-
eventType: ZodEnum<{
|
|
151
|
+
text: z.ZodNullable<z.ZodString>;
|
|
152
|
+
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
153
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
154
|
+
type: z.ZodLiteral<"text">;
|
|
155
|
+
text: z.ZodString;
|
|
156
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
157
|
+
type: z.ZodLiteral<"event">;
|
|
158
|
+
eventType: z.ZodEnum<{
|
|
161
159
|
resolved: "resolved";
|
|
162
160
|
assigned: "assigned";
|
|
163
161
|
unassigned: "unassigned";
|
|
@@ -173,60 +171,60 @@ declare const conversationHeaderSchema: ZodObject<{
|
|
|
173
171
|
visitor_unblocked: "visitor_unblocked";
|
|
174
172
|
visitor_identified: "visitor_identified";
|
|
175
173
|
}>;
|
|
176
|
-
actorUserId: ZodNullable<ZodString>;
|
|
177
|
-
actorAiAgentId: ZodNullable<ZodString>;
|
|
178
|
-
targetUserId: ZodNullable<ZodString>;
|
|
179
|
-
targetAiAgentId: ZodNullable<ZodString>;
|
|
180
|
-
message: ZodOptional<ZodNullable<ZodString>>;
|
|
181
|
-
},
|
|
182
|
-
type: ZodLiteral<"image">;
|
|
183
|
-
url: ZodString;
|
|
184
|
-
mediaType: ZodString;
|
|
185
|
-
fileName: ZodOptional<ZodString>;
|
|
186
|
-
size: ZodOptional<ZodNumber>;
|
|
187
|
-
width: ZodOptional<ZodNumber>;
|
|
188
|
-
height: ZodOptional<ZodNumber>;
|
|
189
|
-
},
|
|
190
|
-
type: ZodLiteral<"file">;
|
|
191
|
-
url: ZodString;
|
|
192
|
-
mediaType: ZodString;
|
|
193
|
-
fileName: ZodOptional<ZodString>;
|
|
194
|
-
size: ZodOptional<ZodNumber>;
|
|
195
|
-
},
|
|
196
|
-
type: ZodLiteral<"metadata">;
|
|
197
|
-
source: ZodEnum<{
|
|
174
|
+
actorUserId: z.ZodNullable<z.ZodString>;
|
|
175
|
+
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
176
|
+
targetUserId: z.ZodNullable<z.ZodString>;
|
|
177
|
+
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
178
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
179
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
180
|
+
type: z.ZodLiteral<"image">;
|
|
181
|
+
url: z.ZodString;
|
|
182
|
+
mediaType: z.ZodString;
|
|
183
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
184
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
185
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
186
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
188
|
+
type: z.ZodLiteral<"file">;
|
|
189
|
+
url: z.ZodString;
|
|
190
|
+
mediaType: z.ZodString;
|
|
191
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
192
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
193
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
194
|
+
type: z.ZodLiteral<"metadata">;
|
|
195
|
+
source: z.ZodEnum<{
|
|
198
196
|
email: "email";
|
|
199
197
|
widget: "widget";
|
|
200
198
|
api: "api";
|
|
201
199
|
}>;
|
|
202
|
-
},
|
|
203
|
-
userId: ZodNullable<ZodString>;
|
|
204
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
205
|
-
visitorId: ZodNullable<ZodString>;
|
|
206
|
-
createdAt: ZodString;
|
|
207
|
-
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
208
|
-
},
|
|
209
|
-
lastTimelineItem: ZodNullable<ZodObject<{
|
|
210
|
-
id: ZodOptional<ZodString>;
|
|
211
|
-
conversationId: ZodString;
|
|
212
|
-
organizationId: ZodString;
|
|
213
|
-
visibility: ZodEnum<{
|
|
214
|
-
private: "private";
|
|
200
|
+
}, z.core.$strip>]>>;
|
|
201
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
202
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
203
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
204
|
+
createdAt: z.ZodString;
|
|
205
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
206
|
+
}, z.core.$strip>>;
|
|
207
|
+
lastTimelineItem: z.ZodNullable<z.ZodObject<{
|
|
208
|
+
id: z.ZodOptional<z.ZodString>;
|
|
209
|
+
conversationId: z.ZodString;
|
|
210
|
+
organizationId: z.ZodString;
|
|
211
|
+
visibility: z.ZodEnum<{
|
|
215
212
|
public: "public";
|
|
213
|
+
private: "private";
|
|
216
214
|
}>;
|
|
217
|
-
type: ZodEnum<{
|
|
215
|
+
type: z.ZodEnum<{
|
|
218
216
|
message: "message";
|
|
219
217
|
event: "event";
|
|
220
218
|
identification: "identification";
|
|
221
219
|
}>;
|
|
222
|
-
text: ZodNullable<ZodString>;
|
|
223
|
-
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
224
|
-
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
225
|
-
type: ZodLiteral<"text">;
|
|
226
|
-
text: ZodString;
|
|
227
|
-
},
|
|
228
|
-
type: ZodLiteral<"event">;
|
|
229
|
-
eventType: ZodEnum<{
|
|
220
|
+
text: z.ZodNullable<z.ZodString>;
|
|
221
|
+
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
222
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
223
|
+
type: z.ZodLiteral<"text">;
|
|
224
|
+
text: z.ZodString;
|
|
225
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
226
|
+
type: z.ZodLiteral<"event">;
|
|
227
|
+
eventType: z.ZodEnum<{
|
|
230
228
|
resolved: "resolved";
|
|
231
229
|
assigned: "assigned";
|
|
232
230
|
unassigned: "unassigned";
|
|
@@ -242,117 +240,117 @@ declare const conversationHeaderSchema: ZodObject<{
|
|
|
242
240
|
visitor_unblocked: "visitor_unblocked";
|
|
243
241
|
visitor_identified: "visitor_identified";
|
|
244
242
|
}>;
|
|
245
|
-
actorUserId: ZodNullable<ZodString>;
|
|
246
|
-
actorAiAgentId: ZodNullable<ZodString>;
|
|
247
|
-
targetUserId: ZodNullable<ZodString>;
|
|
248
|
-
targetAiAgentId: ZodNullable<ZodString>;
|
|
249
|
-
message: ZodOptional<ZodNullable<ZodString>>;
|
|
250
|
-
},
|
|
251
|
-
type: ZodLiteral<"image">;
|
|
252
|
-
url: ZodString;
|
|
253
|
-
mediaType: ZodString;
|
|
254
|
-
fileName: ZodOptional<ZodString>;
|
|
255
|
-
size: ZodOptional<ZodNumber>;
|
|
256
|
-
width: ZodOptional<ZodNumber>;
|
|
257
|
-
height: ZodOptional<ZodNumber>;
|
|
258
|
-
},
|
|
259
|
-
type: ZodLiteral<"file">;
|
|
260
|
-
url: ZodString;
|
|
261
|
-
mediaType: ZodString;
|
|
262
|
-
fileName: ZodOptional<ZodString>;
|
|
263
|
-
size: ZodOptional<ZodNumber>;
|
|
264
|
-
},
|
|
265
|
-
type: ZodLiteral<"metadata">;
|
|
266
|
-
source: ZodEnum<{
|
|
243
|
+
actorUserId: z.ZodNullable<z.ZodString>;
|
|
244
|
+
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
245
|
+
targetUserId: z.ZodNullable<z.ZodString>;
|
|
246
|
+
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
247
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
248
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
249
|
+
type: z.ZodLiteral<"image">;
|
|
250
|
+
url: z.ZodString;
|
|
251
|
+
mediaType: z.ZodString;
|
|
252
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
253
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
254
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
255
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
256
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
257
|
+
type: z.ZodLiteral<"file">;
|
|
258
|
+
url: z.ZodString;
|
|
259
|
+
mediaType: z.ZodString;
|
|
260
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
261
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
262
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
263
|
+
type: z.ZodLiteral<"metadata">;
|
|
264
|
+
source: z.ZodEnum<{
|
|
267
265
|
email: "email";
|
|
268
266
|
widget: "widget";
|
|
269
267
|
api: "api";
|
|
270
268
|
}>;
|
|
271
|
-
},
|
|
272
|
-
userId: ZodNullable<ZodString>;
|
|
273
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
274
|
-
visitorId: ZodNullable<ZodString>;
|
|
275
|
-
createdAt: ZodString;
|
|
276
|
-
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
277
|
-
},
|
|
278
|
-
viewIds: ZodArray<ZodString>;
|
|
279
|
-
seenData: ZodArray<ZodObject<{
|
|
280
|
-
id: ZodString;
|
|
281
|
-
conversationId: ZodString;
|
|
282
|
-
userId: ZodNullable<ZodString>;
|
|
283
|
-
visitorId: ZodNullable<ZodString>;
|
|
284
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
285
|
-
lastSeenAt: ZodString;
|
|
286
|
-
createdAt: ZodString;
|
|
287
|
-
updatedAt: ZodString;
|
|
288
|
-
deletedAt: ZodNullable<ZodString>;
|
|
289
|
-
},
|
|
290
|
-
},
|
|
291
|
-
declare const listConversationHeadersResponseSchema: ZodObject<{
|
|
292
|
-
items: ZodArray<ZodObject<{
|
|
293
|
-
id: ZodString;
|
|
294
|
-
status: ZodEnum<{
|
|
269
|
+
}, z.core.$strip>]>>;
|
|
270
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
271
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
272
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
273
|
+
createdAt: z.ZodString;
|
|
274
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
275
|
+
}, z.core.$strip>>;
|
|
276
|
+
viewIds: z.ZodArray<z.ZodString>;
|
|
277
|
+
seenData: z.ZodArray<z.ZodObject<{
|
|
278
|
+
id: z.ZodString;
|
|
279
|
+
conversationId: z.ZodString;
|
|
280
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
281
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
282
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
283
|
+
lastSeenAt: z.ZodString;
|
|
284
|
+
createdAt: z.ZodString;
|
|
285
|
+
updatedAt: z.ZodString;
|
|
286
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
287
|
+
}, z.core.$strip>>;
|
|
288
|
+
}, z.core.$strip>;
|
|
289
|
+
declare const listConversationHeadersResponseSchema: z.ZodObject<{
|
|
290
|
+
items: z.ZodArray<z.ZodObject<{
|
|
291
|
+
id: z.ZodString;
|
|
292
|
+
status: z.ZodEnum<{
|
|
295
293
|
open: "open";
|
|
296
294
|
resolved: "resolved";
|
|
297
295
|
spam: "spam";
|
|
298
296
|
}>;
|
|
299
|
-
priority: ZodEnum<{
|
|
297
|
+
priority: z.ZodEnum<{
|
|
300
298
|
low: "low";
|
|
301
299
|
normal: "normal";
|
|
302
300
|
high: "high";
|
|
303
301
|
urgent: "urgent";
|
|
304
302
|
}>;
|
|
305
|
-
organizationId: ZodString;
|
|
306
|
-
visitorId: ZodString;
|
|
307
|
-
visitor: ZodObject<{
|
|
308
|
-
id: ZodULID;
|
|
309
|
-
lastSeenAt: ZodNullable<ZodString>;
|
|
310
|
-
blockedAt: ZodNullable<ZodString>;
|
|
311
|
-
blockedByUserId: ZodNullable<ZodString>;
|
|
312
|
-
isBlocked: ZodBoolean;
|
|
313
|
-
contact: ZodNullable<ZodObject<{
|
|
314
|
-
id: ZodULID;
|
|
315
|
-
name: ZodNullable<ZodString>;
|
|
316
|
-
email: ZodNullable<ZodString>;
|
|
317
|
-
image: ZodNullable<ZodString>;
|
|
318
|
-
metadataHash: ZodOptional<ZodString>;
|
|
319
|
-
},
|
|
320
|
-
},
|
|
321
|
-
websiteId: ZodString;
|
|
322
|
-
channel: ZodString;
|
|
323
|
-
title: ZodNullable<ZodString>;
|
|
324
|
-
resolutionTime: ZodNullable<ZodNumber>;
|
|
325
|
-
startedAt: ZodNullable<ZodString>;
|
|
326
|
-
firstResponseAt: ZodNullable<ZodString>;
|
|
327
|
-
resolvedAt: ZodNullable<ZodString>;
|
|
328
|
-
resolvedByUserId: ZodNullable<ZodString>;
|
|
329
|
-
resolvedByAiAgentId: ZodNullable<ZodString>;
|
|
330
|
-
createdAt: ZodString;
|
|
331
|
-
updatedAt: ZodString;
|
|
332
|
-
deletedAt: ZodNullable<ZodString>;
|
|
333
|
-
lastMessageAt: ZodNullable<ZodString>;
|
|
334
|
-
lastSeenAt: ZodNullable<ZodString>;
|
|
335
|
-
lastMessageTimelineItem: ZodNullable<ZodObject<{
|
|
336
|
-
id: ZodOptional<ZodString>;
|
|
337
|
-
conversationId: ZodString;
|
|
338
|
-
organizationId: ZodString;
|
|
339
|
-
visibility: ZodEnum<{
|
|
340
|
-
private: "private";
|
|
303
|
+
organizationId: z.ZodString;
|
|
304
|
+
visitorId: z.ZodString;
|
|
305
|
+
visitor: z.ZodObject<{
|
|
306
|
+
id: z.ZodULID;
|
|
307
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
308
|
+
blockedAt: z.ZodNullable<z.ZodString>;
|
|
309
|
+
blockedByUserId: z.ZodNullable<z.ZodString>;
|
|
310
|
+
isBlocked: z.ZodBoolean;
|
|
311
|
+
contact: z.ZodNullable<z.ZodObject<{
|
|
312
|
+
id: z.ZodULID;
|
|
313
|
+
name: z.ZodNullable<z.ZodString>;
|
|
314
|
+
email: z.ZodNullable<z.ZodString>;
|
|
315
|
+
image: z.ZodNullable<z.ZodString>;
|
|
316
|
+
metadataHash: z.ZodOptional<z.ZodString>;
|
|
317
|
+
}, z.core.$strip>>;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
websiteId: z.ZodString;
|
|
320
|
+
channel: z.ZodString;
|
|
321
|
+
title: z.ZodNullable<z.ZodString>;
|
|
322
|
+
resolutionTime: z.ZodNullable<z.ZodNumber>;
|
|
323
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
324
|
+
firstResponseAt: z.ZodNullable<z.ZodString>;
|
|
325
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
326
|
+
resolvedByUserId: z.ZodNullable<z.ZodString>;
|
|
327
|
+
resolvedByAiAgentId: z.ZodNullable<z.ZodString>;
|
|
328
|
+
createdAt: z.ZodString;
|
|
329
|
+
updatedAt: z.ZodString;
|
|
330
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
331
|
+
lastMessageAt: z.ZodNullable<z.ZodString>;
|
|
332
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
333
|
+
lastMessageTimelineItem: z.ZodNullable<z.ZodObject<{
|
|
334
|
+
id: z.ZodOptional<z.ZodString>;
|
|
335
|
+
conversationId: z.ZodString;
|
|
336
|
+
organizationId: z.ZodString;
|
|
337
|
+
visibility: z.ZodEnum<{
|
|
341
338
|
public: "public";
|
|
339
|
+
private: "private";
|
|
342
340
|
}>;
|
|
343
|
-
type: ZodEnum<{
|
|
341
|
+
type: z.ZodEnum<{
|
|
344
342
|
message: "message";
|
|
345
343
|
event: "event";
|
|
346
344
|
identification: "identification";
|
|
347
345
|
}>;
|
|
348
|
-
text: ZodNullable<ZodString>;
|
|
349
|
-
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
350
|
-
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
351
|
-
type: ZodLiteral<"text">;
|
|
352
|
-
text: ZodString;
|
|
353
|
-
},
|
|
354
|
-
type: ZodLiteral<"event">;
|
|
355
|
-
eventType: ZodEnum<{
|
|
346
|
+
text: z.ZodNullable<z.ZodString>;
|
|
347
|
+
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
348
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
349
|
+
type: z.ZodLiteral<"text">;
|
|
350
|
+
text: z.ZodString;
|
|
351
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
352
|
+
type: z.ZodLiteral<"event">;
|
|
353
|
+
eventType: z.ZodEnum<{
|
|
356
354
|
resolved: "resolved";
|
|
357
355
|
assigned: "assigned";
|
|
358
356
|
unassigned: "unassigned";
|
|
@@ -368,60 +366,60 @@ declare const listConversationHeadersResponseSchema: ZodObject<{
|
|
|
368
366
|
visitor_unblocked: "visitor_unblocked";
|
|
369
367
|
visitor_identified: "visitor_identified";
|
|
370
368
|
}>;
|
|
371
|
-
actorUserId: ZodNullable<ZodString>;
|
|
372
|
-
actorAiAgentId: ZodNullable<ZodString>;
|
|
373
|
-
targetUserId: ZodNullable<ZodString>;
|
|
374
|
-
targetAiAgentId: ZodNullable<ZodString>;
|
|
375
|
-
message: ZodOptional<ZodNullable<ZodString>>;
|
|
376
|
-
},
|
|
377
|
-
type: ZodLiteral<"image">;
|
|
378
|
-
url: ZodString;
|
|
379
|
-
mediaType: ZodString;
|
|
380
|
-
fileName: ZodOptional<ZodString>;
|
|
381
|
-
size: ZodOptional<ZodNumber>;
|
|
382
|
-
width: ZodOptional<ZodNumber>;
|
|
383
|
-
height: ZodOptional<ZodNumber>;
|
|
384
|
-
},
|
|
385
|
-
type: ZodLiteral<"file">;
|
|
386
|
-
url: ZodString;
|
|
387
|
-
mediaType: ZodString;
|
|
388
|
-
fileName: ZodOptional<ZodString>;
|
|
389
|
-
size: ZodOptional<ZodNumber>;
|
|
390
|
-
},
|
|
391
|
-
type: ZodLiteral<"metadata">;
|
|
392
|
-
source: ZodEnum<{
|
|
369
|
+
actorUserId: z.ZodNullable<z.ZodString>;
|
|
370
|
+
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
371
|
+
targetUserId: z.ZodNullable<z.ZodString>;
|
|
372
|
+
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
373
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
374
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
375
|
+
type: z.ZodLiteral<"image">;
|
|
376
|
+
url: z.ZodString;
|
|
377
|
+
mediaType: z.ZodString;
|
|
378
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
379
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
380
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
381
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
382
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
383
|
+
type: z.ZodLiteral<"file">;
|
|
384
|
+
url: z.ZodString;
|
|
385
|
+
mediaType: z.ZodString;
|
|
386
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
387
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
388
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
389
|
+
type: z.ZodLiteral<"metadata">;
|
|
390
|
+
source: z.ZodEnum<{
|
|
393
391
|
email: "email";
|
|
394
392
|
widget: "widget";
|
|
395
393
|
api: "api";
|
|
396
394
|
}>;
|
|
397
|
-
},
|
|
398
|
-
userId: ZodNullable<ZodString>;
|
|
399
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
400
|
-
visitorId: ZodNullable<ZodString>;
|
|
401
|
-
createdAt: ZodString;
|
|
402
|
-
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
403
|
-
},
|
|
404
|
-
lastTimelineItem: ZodNullable<ZodObject<{
|
|
405
|
-
id: ZodOptional<ZodString>;
|
|
406
|
-
conversationId: ZodString;
|
|
407
|
-
organizationId: ZodString;
|
|
408
|
-
visibility: ZodEnum<{
|
|
409
|
-
private: "private";
|
|
395
|
+
}, z.core.$strip>]>>;
|
|
396
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
397
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
398
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
399
|
+
createdAt: z.ZodString;
|
|
400
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
401
|
+
}, z.core.$strip>>;
|
|
402
|
+
lastTimelineItem: z.ZodNullable<z.ZodObject<{
|
|
403
|
+
id: z.ZodOptional<z.ZodString>;
|
|
404
|
+
conversationId: z.ZodString;
|
|
405
|
+
organizationId: z.ZodString;
|
|
406
|
+
visibility: z.ZodEnum<{
|
|
410
407
|
public: "public";
|
|
408
|
+
private: "private";
|
|
411
409
|
}>;
|
|
412
|
-
type: ZodEnum<{
|
|
410
|
+
type: z.ZodEnum<{
|
|
413
411
|
message: "message";
|
|
414
412
|
event: "event";
|
|
415
413
|
identification: "identification";
|
|
416
414
|
}>;
|
|
417
|
-
text: ZodNullable<ZodString>;
|
|
418
|
-
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
419
|
-
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
420
|
-
type: ZodLiteral<"text">;
|
|
421
|
-
text: ZodString;
|
|
422
|
-
},
|
|
423
|
-
type: ZodLiteral<"event">;
|
|
424
|
-
eventType: ZodEnum<{
|
|
415
|
+
text: z.ZodNullable<z.ZodString>;
|
|
416
|
+
tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
417
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
418
|
+
type: z.ZodLiteral<"text">;
|
|
419
|
+
text: z.ZodString;
|
|
420
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
421
|
+
type: z.ZodLiteral<"event">;
|
|
422
|
+
eventType: z.ZodEnum<{
|
|
425
423
|
resolved: "resolved";
|
|
426
424
|
assigned: "assigned";
|
|
427
425
|
unassigned: "unassigned";
|
|
@@ -437,56 +435,56 @@ declare const listConversationHeadersResponseSchema: ZodObject<{
|
|
|
437
435
|
visitor_unblocked: "visitor_unblocked";
|
|
438
436
|
visitor_identified: "visitor_identified";
|
|
439
437
|
}>;
|
|
440
|
-
actorUserId: ZodNullable<ZodString>;
|
|
441
|
-
actorAiAgentId: ZodNullable<ZodString>;
|
|
442
|
-
targetUserId: ZodNullable<ZodString>;
|
|
443
|
-
targetAiAgentId: ZodNullable<ZodString>;
|
|
444
|
-
message: ZodOptional<ZodNullable<ZodString>>;
|
|
445
|
-
},
|
|
446
|
-
type: ZodLiteral<"image">;
|
|
447
|
-
url: ZodString;
|
|
448
|
-
mediaType: ZodString;
|
|
449
|
-
fileName: ZodOptional<ZodString>;
|
|
450
|
-
size: ZodOptional<ZodNumber>;
|
|
451
|
-
width: ZodOptional<ZodNumber>;
|
|
452
|
-
height: ZodOptional<ZodNumber>;
|
|
453
|
-
},
|
|
454
|
-
type: ZodLiteral<"file">;
|
|
455
|
-
url: ZodString;
|
|
456
|
-
mediaType: ZodString;
|
|
457
|
-
fileName: ZodOptional<ZodString>;
|
|
458
|
-
size: ZodOptional<ZodNumber>;
|
|
459
|
-
},
|
|
460
|
-
type: ZodLiteral<"metadata">;
|
|
461
|
-
source: ZodEnum<{
|
|
438
|
+
actorUserId: z.ZodNullable<z.ZodString>;
|
|
439
|
+
actorAiAgentId: z.ZodNullable<z.ZodString>;
|
|
440
|
+
targetUserId: z.ZodNullable<z.ZodString>;
|
|
441
|
+
targetAiAgentId: z.ZodNullable<z.ZodString>;
|
|
442
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
443
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
444
|
+
type: z.ZodLiteral<"image">;
|
|
445
|
+
url: z.ZodString;
|
|
446
|
+
mediaType: z.ZodString;
|
|
447
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
448
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
449
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
450
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
451
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
452
|
+
type: z.ZodLiteral<"file">;
|
|
453
|
+
url: z.ZodString;
|
|
454
|
+
mediaType: z.ZodString;
|
|
455
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
456
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
457
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
458
|
+
type: z.ZodLiteral<"metadata">;
|
|
459
|
+
source: z.ZodEnum<{
|
|
462
460
|
email: "email";
|
|
463
461
|
widget: "widget";
|
|
464
462
|
api: "api";
|
|
465
463
|
}>;
|
|
466
|
-
},
|
|
467
|
-
userId: ZodNullable<ZodString>;
|
|
468
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
469
|
-
visitorId: ZodNullable<ZodString>;
|
|
470
|
-
createdAt: ZodString;
|
|
471
|
-
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
472
|
-
},
|
|
473
|
-
viewIds: ZodArray<ZodString>;
|
|
474
|
-
seenData: ZodArray<ZodObject<{
|
|
475
|
-
id: ZodString;
|
|
476
|
-
conversationId: ZodString;
|
|
477
|
-
userId: ZodNullable<ZodString>;
|
|
478
|
-
visitorId: ZodNullable<ZodString>;
|
|
479
|
-
aiAgentId: ZodNullable<ZodString>;
|
|
480
|
-
lastSeenAt: ZodString;
|
|
481
|
-
createdAt: ZodString;
|
|
482
|
-
updatedAt: ZodString;
|
|
483
|
-
deletedAt: ZodNullable<ZodString>;
|
|
484
|
-
},
|
|
485
|
-
},
|
|
486
|
-
nextCursor: ZodNullable<ZodString>;
|
|
487
|
-
},
|
|
488
|
-
type ConversationMutationResponse =
|
|
489
|
-
type ConversationHeader =
|
|
464
|
+
}, z.core.$strip>]>>;
|
|
465
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
466
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
467
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
468
|
+
createdAt: z.ZodString;
|
|
469
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
470
|
+
}, z.core.$strip>>;
|
|
471
|
+
viewIds: z.ZodArray<z.ZodString>;
|
|
472
|
+
seenData: z.ZodArray<z.ZodObject<{
|
|
473
|
+
id: z.ZodString;
|
|
474
|
+
conversationId: z.ZodString;
|
|
475
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
476
|
+
visitorId: z.ZodNullable<z.ZodString>;
|
|
477
|
+
aiAgentId: z.ZodNullable<z.ZodString>;
|
|
478
|
+
lastSeenAt: z.ZodString;
|
|
479
|
+
createdAt: z.ZodString;
|
|
480
|
+
updatedAt: z.ZodString;
|
|
481
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
482
|
+
}, z.core.$strip>>;
|
|
483
|
+
}, z.core.$strip>>;
|
|
484
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
485
|
+
}, z.core.$strip>;
|
|
486
|
+
type ConversationMutationResponse = z.infer<typeof conversationMutationResponseSchema>;
|
|
487
|
+
type ConversationHeader = z.infer<typeof conversationHeaderSchema>;
|
|
490
488
|
//#endregion
|
|
491
489
|
export { ConversationHeader, ConversationMutationResponse, ConversationRecordResponse, conversationHeaderSchema, conversationMutationResponseSchema, conversationPrioritySchema, conversationRecordSchema, conversationSentimentSchema, conversationStatusSchema, listConversationHeadersResponseSchema };
|
|
492
490
|
//# sourceMappingURL=conversation.d.ts.map
|