@cossistant/types 0.0.20 → 0.0.22
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 +2 -6
- package/api/common.d.ts.map +1 -1
- package/api/common.js +1 -8
- package/api/common.js.map +1 -1
- package/api/conversation.d.ts +388 -6
- package/api/conversation.d.ts.map +1 -1
- package/api/index.d.ts +4 -3
- package/api/index.js +3 -2
- package/api/notification.d.ts +179 -0
- package/api/notification.d.ts.map +1 -0
- package/api/notification.js +126 -0
- package/api/notification.js.map +1 -0
- package/api/timeline-item.d.ts +148 -15
- package/api/timeline-item.d.ts.map +1 -1
- package/api/timeline-item.js +10 -1
- package/api/timeline-item.js.map +1 -1
- package/api/upload.d.ts.map +1 -1
- package/api/visitor.d.ts +15 -2
- package/api/visitor.d.ts.map +1 -1
- package/api/website.d.ts +33 -8
- package/api/website.d.ts.map +1 -1
- package/api/website.js +5 -0
- package/api/website.js.map +1 -1
- package/core.d.ts.map +1 -1
- package/errors.d.ts.map +1 -1
- package/index.d.ts +4 -3
- package/index.d.ts.map +1 -1
- package/index.js +3 -2
- package/package.json +1 -1
- package/realtime-events.d.ts +256 -6
- package/realtime-events.d.ts.map +1 -1
- package/schemas.d.ts +73 -3
- package/schemas.d.ts.map +1 -1
- package/trpc/contact.d.ts +15 -2
- package/trpc/contact.d.ts.map +1 -1
- package/trpc/conversation.d.ts +233 -20
- package/trpc/conversation.d.ts.map +1 -1
- package/trpc/visitor.d.ts +79 -3
- package/trpc/visitor.d.ts.map +1 -1
package/trpc/conversation.d.ts
CHANGED
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
import { $strip } from "../schemas2.js";
|
|
2
2
|
import { output } from "../core.js";
|
|
3
|
-
import { ZodArray, ZodEnum, ZodNullable, ZodNumber, ZodObject, ZodString } from "../schemas3.js";
|
|
3
|
+
import { ZodArray, ZodBoolean, ZodEnum, ZodLiteral, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodString, ZodULID, ZodUnion } from "../schemas3.js";
|
|
4
4
|
|
|
5
5
|
//#region src/trpc/conversation.d.ts
|
|
6
6
|
declare const conversationStatusSchema: ZodEnum<{
|
|
7
|
-
|
|
7
|
+
resolved: "resolved";
|
|
8
|
+
open: "open";
|
|
9
|
+
spam: "spam";
|
|
8
10
|
}>;
|
|
9
11
|
declare const conversationPrioritySchema: ZodEnum<{
|
|
10
|
-
|
|
12
|
+
low: "low";
|
|
13
|
+
normal: "normal";
|
|
14
|
+
high: "high";
|
|
15
|
+
urgent: "urgent";
|
|
11
16
|
}>;
|
|
12
17
|
declare const conversationSentimentSchema: ZodNullable<ZodEnum<{
|
|
13
|
-
|
|
18
|
+
positive: "positive";
|
|
19
|
+
negative: "negative";
|
|
20
|
+
neutral: "neutral";
|
|
14
21
|
}>>;
|
|
15
22
|
declare const conversationRecordSchema: ZodObject<{
|
|
16
23
|
id: ZodString;
|
|
@@ -18,13 +25,20 @@ declare const conversationRecordSchema: ZodObject<{
|
|
|
18
25
|
visitorId: ZodString;
|
|
19
26
|
websiteId: ZodString;
|
|
20
27
|
status: ZodEnum<{
|
|
21
|
-
|
|
28
|
+
resolved: "resolved";
|
|
29
|
+
open: "open";
|
|
30
|
+
spam: "spam";
|
|
22
31
|
}>;
|
|
23
32
|
priority: ZodEnum<{
|
|
24
|
-
|
|
33
|
+
low: "low";
|
|
34
|
+
normal: "normal";
|
|
35
|
+
high: "high";
|
|
36
|
+
urgent: "urgent";
|
|
25
37
|
}>;
|
|
26
38
|
sentiment: ZodNullable<ZodEnum<{
|
|
27
|
-
|
|
39
|
+
positive: "positive";
|
|
40
|
+
negative: "negative";
|
|
41
|
+
neutral: "neutral";
|
|
28
42
|
}>>;
|
|
29
43
|
sentimentConfidence: ZodNullable<ZodNumber>;
|
|
30
44
|
channel: ZodString;
|
|
@@ -49,13 +63,20 @@ declare const conversationMutationResponseSchema: ZodObject<{
|
|
|
49
63
|
visitorId: ZodString;
|
|
50
64
|
websiteId: ZodString;
|
|
51
65
|
status: ZodEnum<{
|
|
52
|
-
|
|
66
|
+
resolved: "resolved";
|
|
67
|
+
open: "open";
|
|
68
|
+
spam: "spam";
|
|
53
69
|
}>;
|
|
54
70
|
priority: ZodEnum<{
|
|
55
|
-
|
|
71
|
+
low: "low";
|
|
72
|
+
normal: "normal";
|
|
73
|
+
high: "high";
|
|
74
|
+
urgent: "urgent";
|
|
56
75
|
}>;
|
|
57
76
|
sentiment: ZodNullable<ZodEnum<{
|
|
58
|
-
|
|
77
|
+
positive: "positive";
|
|
78
|
+
negative: "negative";
|
|
79
|
+
neutral: "neutral";
|
|
59
80
|
}>>;
|
|
60
81
|
sentimentConfidence: ZodNullable<ZodNumber>;
|
|
61
82
|
channel: ZodString;
|
|
@@ -76,14 +97,32 @@ declare const conversationMutationResponseSchema: ZodObject<{
|
|
|
76
97
|
declare const conversationHeaderSchema: ZodObject<{
|
|
77
98
|
id: ZodString;
|
|
78
99
|
status: ZodEnum<{
|
|
79
|
-
|
|
100
|
+
resolved: "resolved";
|
|
101
|
+
open: "open";
|
|
102
|
+
spam: "spam";
|
|
80
103
|
}>;
|
|
81
104
|
priority: ZodEnum<{
|
|
82
|
-
|
|
105
|
+
low: "low";
|
|
106
|
+
normal: "normal";
|
|
107
|
+
high: "high";
|
|
108
|
+
urgent: "urgent";
|
|
83
109
|
}>;
|
|
84
110
|
organizationId: ZodString;
|
|
85
111
|
visitorId: ZodString;
|
|
86
|
-
visitor:
|
|
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
|
+
}, $strip>>;
|
|
125
|
+
}, $strip>;
|
|
87
126
|
websiteId: ZodString;
|
|
88
127
|
channel: ZodString;
|
|
89
128
|
title: ZodNullable<ZodString>;
|
|
@@ -98,22 +137,118 @@ declare const conversationHeaderSchema: ZodObject<{
|
|
|
98
137
|
deletedAt: ZodNullable<ZodString>;
|
|
99
138
|
lastMessageAt: ZodNullable<ZodString>;
|
|
100
139
|
lastSeenAt: ZodNullable<ZodString>;
|
|
101
|
-
lastTimelineItem:
|
|
140
|
+
lastTimelineItem: ZodNullable<ZodObject<{
|
|
141
|
+
id: ZodOptional<ZodString>;
|
|
142
|
+
conversationId: ZodString;
|
|
143
|
+
organizationId: ZodString;
|
|
144
|
+
visibility: ZodEnum<{
|
|
145
|
+
private: "private";
|
|
146
|
+
public: "public";
|
|
147
|
+
}>;
|
|
148
|
+
type: ZodEnum<{
|
|
149
|
+
message: "message";
|
|
150
|
+
event: "event";
|
|
151
|
+
identification: "identification";
|
|
152
|
+
}>;
|
|
153
|
+
text: ZodNullable<ZodString>;
|
|
154
|
+
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
155
|
+
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
156
|
+
type: ZodLiteral<"text">;
|
|
157
|
+
text: ZodString;
|
|
158
|
+
}, $strip>, ZodObject<{
|
|
159
|
+
type: ZodLiteral<"event">;
|
|
160
|
+
eventType: ZodEnum<{
|
|
161
|
+
assigned: "assigned";
|
|
162
|
+
unassigned: "unassigned";
|
|
163
|
+
participant_requested: "participant_requested";
|
|
164
|
+
participant_joined: "participant_joined";
|
|
165
|
+
participant_left: "participant_left";
|
|
166
|
+
status_changed: "status_changed";
|
|
167
|
+
priority_changed: "priority_changed";
|
|
168
|
+
tag_added: "tag_added";
|
|
169
|
+
tag_removed: "tag_removed";
|
|
170
|
+
resolved: "resolved";
|
|
171
|
+
reopened: "reopened";
|
|
172
|
+
visitor_blocked: "visitor_blocked";
|
|
173
|
+
visitor_unblocked: "visitor_unblocked";
|
|
174
|
+
visitor_identified: "visitor_identified";
|
|
175
|
+
}>;
|
|
176
|
+
actorUserId: ZodNullable<ZodString>;
|
|
177
|
+
actorAiAgentId: ZodNullable<ZodString>;
|
|
178
|
+
targetUserId: ZodNullable<ZodString>;
|
|
179
|
+
targetAiAgentId: ZodNullable<ZodString>;
|
|
180
|
+
message: ZodOptional<ZodNullable<ZodString>>;
|
|
181
|
+
}, $strip>, ZodObject<{
|
|
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
|
+
}, $strip>, ZodObject<{
|
|
190
|
+
type: ZodLiteral<"file">;
|
|
191
|
+
url: ZodString;
|
|
192
|
+
mediaType: ZodString;
|
|
193
|
+
fileName: ZodOptional<ZodString>;
|
|
194
|
+
size: ZodOptional<ZodNumber>;
|
|
195
|
+
}, $strip>, ZodObject<{
|
|
196
|
+
type: ZodLiteral<"metadata">;
|
|
197
|
+
source: ZodEnum<{
|
|
198
|
+
email: "email";
|
|
199
|
+
widget: "widget";
|
|
200
|
+
api: "api";
|
|
201
|
+
}>;
|
|
202
|
+
}, $strip>]>>;
|
|
203
|
+
userId: ZodNullable<ZodString>;
|
|
204
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
205
|
+
visitorId: ZodNullable<ZodString>;
|
|
206
|
+
createdAt: ZodString;
|
|
207
|
+
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
208
|
+
}, $strip>>;
|
|
102
209
|
viewIds: ZodArray<ZodString>;
|
|
103
|
-
seenData: ZodArray<
|
|
210
|
+
seenData: ZodArray<ZodObject<{
|
|
211
|
+
id: ZodString;
|
|
212
|
+
conversationId: ZodString;
|
|
213
|
+
userId: ZodNullable<ZodString>;
|
|
214
|
+
visitorId: ZodNullable<ZodString>;
|
|
215
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
216
|
+
lastSeenAt: ZodString;
|
|
217
|
+
createdAt: ZodString;
|
|
218
|
+
updatedAt: ZodString;
|
|
219
|
+
deletedAt: ZodNullable<ZodString>;
|
|
220
|
+
}, $strip>>;
|
|
104
221
|
}, $strip>;
|
|
105
222
|
declare const listConversationHeadersResponseSchema: ZodObject<{
|
|
106
223
|
items: ZodArray<ZodObject<{
|
|
107
224
|
id: ZodString;
|
|
108
225
|
status: ZodEnum<{
|
|
109
|
-
|
|
226
|
+
resolved: "resolved";
|
|
227
|
+
open: "open";
|
|
228
|
+
spam: "spam";
|
|
110
229
|
}>;
|
|
111
230
|
priority: ZodEnum<{
|
|
112
|
-
|
|
231
|
+
low: "low";
|
|
232
|
+
normal: "normal";
|
|
233
|
+
high: "high";
|
|
234
|
+
urgent: "urgent";
|
|
113
235
|
}>;
|
|
114
236
|
organizationId: ZodString;
|
|
115
237
|
visitorId: ZodString;
|
|
116
|
-
visitor:
|
|
238
|
+
visitor: ZodObject<{
|
|
239
|
+
id: ZodULID;
|
|
240
|
+
lastSeenAt: ZodNullable<ZodString>;
|
|
241
|
+
blockedAt: ZodNullable<ZodString>;
|
|
242
|
+
blockedByUserId: ZodNullable<ZodString>;
|
|
243
|
+
isBlocked: ZodBoolean;
|
|
244
|
+
contact: ZodNullable<ZodObject<{
|
|
245
|
+
id: ZodULID;
|
|
246
|
+
name: ZodNullable<ZodString>;
|
|
247
|
+
email: ZodNullable<ZodString>;
|
|
248
|
+
image: ZodNullable<ZodString>;
|
|
249
|
+
metadataHash: ZodOptional<ZodString>;
|
|
250
|
+
}, $strip>>;
|
|
251
|
+
}, $strip>;
|
|
117
252
|
websiteId: ZodString;
|
|
118
253
|
channel: ZodString;
|
|
119
254
|
title: ZodNullable<ZodString>;
|
|
@@ -128,9 +263,87 @@ declare const listConversationHeadersResponseSchema: ZodObject<{
|
|
|
128
263
|
deletedAt: ZodNullable<ZodString>;
|
|
129
264
|
lastMessageAt: ZodNullable<ZodString>;
|
|
130
265
|
lastSeenAt: ZodNullable<ZodString>;
|
|
131
|
-
lastTimelineItem:
|
|
266
|
+
lastTimelineItem: ZodNullable<ZodObject<{
|
|
267
|
+
id: ZodOptional<ZodString>;
|
|
268
|
+
conversationId: ZodString;
|
|
269
|
+
organizationId: ZodString;
|
|
270
|
+
visibility: ZodEnum<{
|
|
271
|
+
private: "private";
|
|
272
|
+
public: "public";
|
|
273
|
+
}>;
|
|
274
|
+
type: ZodEnum<{
|
|
275
|
+
message: "message";
|
|
276
|
+
event: "event";
|
|
277
|
+
identification: "identification";
|
|
278
|
+
}>;
|
|
279
|
+
text: ZodNullable<ZodString>;
|
|
280
|
+
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
281
|
+
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
282
|
+
type: ZodLiteral<"text">;
|
|
283
|
+
text: ZodString;
|
|
284
|
+
}, $strip>, ZodObject<{
|
|
285
|
+
type: ZodLiteral<"event">;
|
|
286
|
+
eventType: ZodEnum<{
|
|
287
|
+
assigned: "assigned";
|
|
288
|
+
unassigned: "unassigned";
|
|
289
|
+
participant_requested: "participant_requested";
|
|
290
|
+
participant_joined: "participant_joined";
|
|
291
|
+
participant_left: "participant_left";
|
|
292
|
+
status_changed: "status_changed";
|
|
293
|
+
priority_changed: "priority_changed";
|
|
294
|
+
tag_added: "tag_added";
|
|
295
|
+
tag_removed: "tag_removed";
|
|
296
|
+
resolved: "resolved";
|
|
297
|
+
reopened: "reopened";
|
|
298
|
+
visitor_blocked: "visitor_blocked";
|
|
299
|
+
visitor_unblocked: "visitor_unblocked";
|
|
300
|
+
visitor_identified: "visitor_identified";
|
|
301
|
+
}>;
|
|
302
|
+
actorUserId: ZodNullable<ZodString>;
|
|
303
|
+
actorAiAgentId: ZodNullable<ZodString>;
|
|
304
|
+
targetUserId: ZodNullable<ZodString>;
|
|
305
|
+
targetAiAgentId: ZodNullable<ZodString>;
|
|
306
|
+
message: ZodOptional<ZodNullable<ZodString>>;
|
|
307
|
+
}, $strip>, ZodObject<{
|
|
308
|
+
type: ZodLiteral<"image">;
|
|
309
|
+
url: ZodString;
|
|
310
|
+
mediaType: ZodString;
|
|
311
|
+
fileName: ZodOptional<ZodString>;
|
|
312
|
+
size: ZodOptional<ZodNumber>;
|
|
313
|
+
width: ZodOptional<ZodNumber>;
|
|
314
|
+
height: ZodOptional<ZodNumber>;
|
|
315
|
+
}, $strip>, ZodObject<{
|
|
316
|
+
type: ZodLiteral<"file">;
|
|
317
|
+
url: ZodString;
|
|
318
|
+
mediaType: ZodString;
|
|
319
|
+
fileName: ZodOptional<ZodString>;
|
|
320
|
+
size: ZodOptional<ZodNumber>;
|
|
321
|
+
}, $strip>, ZodObject<{
|
|
322
|
+
type: ZodLiteral<"metadata">;
|
|
323
|
+
source: ZodEnum<{
|
|
324
|
+
email: "email";
|
|
325
|
+
widget: "widget";
|
|
326
|
+
api: "api";
|
|
327
|
+
}>;
|
|
328
|
+
}, $strip>]>>;
|
|
329
|
+
userId: ZodNullable<ZodString>;
|
|
330
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
331
|
+
visitorId: ZodNullable<ZodString>;
|
|
332
|
+
createdAt: ZodString;
|
|
333
|
+
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
334
|
+
}, $strip>>;
|
|
132
335
|
viewIds: ZodArray<ZodString>;
|
|
133
|
-
seenData: ZodArray<
|
|
336
|
+
seenData: ZodArray<ZodObject<{
|
|
337
|
+
id: ZodString;
|
|
338
|
+
conversationId: ZodString;
|
|
339
|
+
userId: ZodNullable<ZodString>;
|
|
340
|
+
visitorId: ZodNullable<ZodString>;
|
|
341
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
342
|
+
lastSeenAt: ZodString;
|
|
343
|
+
createdAt: ZodString;
|
|
344
|
+
updatedAt: ZodString;
|
|
345
|
+
deletedAt: ZodNullable<ZodString>;
|
|
346
|
+
}, $strip>>;
|
|
134
347
|
}, $strip>>;
|
|
135
348
|
nextCursor: ZodNullable<ZodString>;
|
|
136
349
|
}, $strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","names":[],"sources":["../../src/trpc/conversation.ts"],"sourcesContent":[],"mappings":";;;;;cAUa,0BAAwB
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","names":[],"sources":["../../src/trpc/conversation.ts"],"sourcesContent":[],"mappings":";;;;;cAUa,0BAAwB;;;;AAArC,CAAA,CAAA;AAMa,cAAA,0BAA0B,EAAA,OAAA,CAAA;EAO1B,GAAA,EAAA,KAAA;EAQA,MAAA,EAAA,QAAA;;;;cARA,6BAA2B,YAAA;;;;;cAQ3B,0BAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;EAAA,eAAA,aAAA,UAAA,CAAA;EAAA,UAAA,aAAA,UAAA,CAAA;EAwBzB,aAAA,aAAA,UAA0B,CAAA;EAIzB,aAAA,aAAA,UAEX,CAAA;;;;;;;KANU,0BAAA,GAA6B,cACjC;cAGK,oCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA,aAAA,aAAA,UAAA,CAAA;IAAA,aAAA,aAAA,UAAA,CAAA;IAIlC,gBAAA,aAwBX,UAAA,CAAA;;;;;;;cAxBW,0BAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0BxB,uCAAqC;;;;;;;;;;MA1Bb,MAAA,EAAA,QAAA;MAAA,IAAA,EAAA,MAAA;MA0BxB,MAAA,EAAA,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKD,4BAAA,GAA+B,cACnC;KAGI,kBAAA,GAAqB,cAAe"}
|
package/trpc/visitor.d.ts
CHANGED
|
@@ -1,11 +1,87 @@
|
|
|
1
1
|
import { $strip } from "../schemas2.js";
|
|
2
2
|
import { output } from "../core.js";
|
|
3
|
-
import { ZodArray, ZodEnum, ZodNullable, ZodNumber, ZodObject, ZodString, ZodULID } from "../schemas3.js";
|
|
3
|
+
import { ZodArray, ZodBoolean, ZodEmail, ZodEnum, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodRecord, ZodString, ZodULID, ZodURL, ZodUnion } from "../schemas3.js";
|
|
4
4
|
|
|
5
5
|
//#region src/trpc/visitor.d.ts
|
|
6
6
|
declare const blockVisitorResponseSchema: ZodObject<{
|
|
7
|
-
conversation:
|
|
8
|
-
|
|
7
|
+
conversation: ZodObject<{
|
|
8
|
+
id: ZodString;
|
|
9
|
+
organizationId: ZodString;
|
|
10
|
+
visitorId: ZodString;
|
|
11
|
+
websiteId: ZodString;
|
|
12
|
+
status: ZodEnum<{
|
|
13
|
+
resolved: "resolved";
|
|
14
|
+
open: "open";
|
|
15
|
+
spam: "spam";
|
|
16
|
+
}>;
|
|
17
|
+
priority: ZodEnum<{
|
|
18
|
+
low: "low";
|
|
19
|
+
normal: "normal";
|
|
20
|
+
high: "high";
|
|
21
|
+
urgent: "urgent";
|
|
22
|
+
}>;
|
|
23
|
+
sentiment: ZodNullable<ZodEnum<{
|
|
24
|
+
positive: "positive";
|
|
25
|
+
negative: "negative";
|
|
26
|
+
neutral: "neutral";
|
|
27
|
+
}>>;
|
|
28
|
+
sentimentConfidence: ZodNullable<ZodNumber>;
|
|
29
|
+
channel: ZodString;
|
|
30
|
+
title: ZodNullable<ZodString>;
|
|
31
|
+
resolutionTime: ZodNullable<ZodNumber>;
|
|
32
|
+
startedAt: ZodNullable<ZodString>;
|
|
33
|
+
firstResponseAt: ZodNullable<ZodString>;
|
|
34
|
+
resolvedAt: ZodNullable<ZodString>;
|
|
35
|
+
lastMessageAt: ZodNullable<ZodString>;
|
|
36
|
+
lastMessageBy: ZodNullable<ZodString>;
|
|
37
|
+
resolvedByUserId: ZodNullable<ZodString>;
|
|
38
|
+
resolvedByAiAgentId: ZodNullable<ZodString>;
|
|
39
|
+
createdAt: ZodString;
|
|
40
|
+
updatedAt: ZodString;
|
|
41
|
+
deletedAt: ZodNullable<ZodString>;
|
|
42
|
+
}, $strip>;
|
|
43
|
+
visitor: ZodObject<{
|
|
44
|
+
id: ZodULID;
|
|
45
|
+
browser: ZodNullable<ZodString>;
|
|
46
|
+
browserVersion: ZodNullable<ZodString>;
|
|
47
|
+
os: ZodNullable<ZodString>;
|
|
48
|
+
osVersion: ZodNullable<ZodString>;
|
|
49
|
+
device: ZodNullable<ZodString>;
|
|
50
|
+
deviceType: ZodNullable<ZodString>;
|
|
51
|
+
ip: ZodNullable<ZodString>;
|
|
52
|
+
city: ZodNullable<ZodString>;
|
|
53
|
+
region: ZodNullable<ZodString>;
|
|
54
|
+
country: ZodNullable<ZodString>;
|
|
55
|
+
countryCode: ZodNullable<ZodString>;
|
|
56
|
+
latitude: ZodNullable<ZodNumber>;
|
|
57
|
+
longitude: ZodNullable<ZodNumber>;
|
|
58
|
+
language: ZodNullable<ZodString>;
|
|
59
|
+
timezone: ZodNullable<ZodString>;
|
|
60
|
+
screenResolution: ZodNullable<ZodString>;
|
|
61
|
+
viewport: ZodNullable<ZodString>;
|
|
62
|
+
createdAt: ZodString;
|
|
63
|
+
updatedAt: ZodString;
|
|
64
|
+
lastSeenAt: ZodNullable<ZodString>;
|
|
65
|
+
websiteId: ZodULID;
|
|
66
|
+
organizationId: ZodULID;
|
|
67
|
+
blockedAt: ZodNullable<ZodString>;
|
|
68
|
+
blockedByUserId: ZodNullable<ZodString>;
|
|
69
|
+
isBlocked: ZodBoolean;
|
|
70
|
+
contact: ZodNullable<ZodObject<{
|
|
71
|
+
id: ZodULID;
|
|
72
|
+
externalId: ZodNullable<ZodString>;
|
|
73
|
+
name: ZodNullable<ZodString>;
|
|
74
|
+
email: ZodNullable<ZodEmail>;
|
|
75
|
+
image: ZodNullable<ZodURL>;
|
|
76
|
+
metadata: ZodNullable<ZodRecord<ZodString, ZodUnion<[ZodUnion<[ZodUnion<[ZodString, ZodNumber]>, ZodBoolean]>, ZodNull]>>>;
|
|
77
|
+
contactOrganizationId: ZodNullable<ZodULID>;
|
|
78
|
+
websiteId: ZodULID;
|
|
79
|
+
organizationId: ZodULID;
|
|
80
|
+
userId: ZodNullable<ZodULID>;
|
|
81
|
+
createdAt: ZodString;
|
|
82
|
+
updatedAt: ZodString;
|
|
83
|
+
}, $strip>>;
|
|
84
|
+
}, $strip>;
|
|
9
85
|
}, $strip>;
|
|
10
86
|
type BlockVisitorResponse = output<typeof blockVisitorResponseSchema>;
|
|
11
87
|
declare const visitorPresenceEntrySchema: ZodObject<{
|
package/trpc/visitor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visitor.d.ts","names":[],"sources":["../../src/trpc/visitor.ts"],"sourcesContent":[],"mappings":";;;;;cAIa,4BAA0B
|
|
1
|
+
{"version":3,"file":"visitor.d.ts","names":[],"sources":["../../src/trpc/visitor.ts"],"sourcesContent":[],"mappings":";;;;;cAIa,4BAA0B;;;;IAA1B,SAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKD,oBAAA,GAAuB,cAAe;cAErC,4BAA0B;;;;;;;;;;;;;;;;;cAe1B,mCAAiC;;;;;;;;;;;;;;;;;;;;;EAtBP,CAAA,QAAA,CAAA;CAAA,QAAA,CAAA;AAK3B,KAyBA,oBAAA,GAAuB,MAzBe,CAAA,OAyBA,0BAzBR,CAAA;AAE7B,KAwBD,2BAAA,GAA8B,MAXxC,CAAA,OAYM,iCAZN,CAAA"}
|