@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/realtime-events.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $strip } from "./schemas2.js";
|
|
2
2
|
import { output } from "./core.js";
|
|
3
|
-
import { ZodArray, ZodBoolean, ZodEnum, ZodNullable, ZodObject, ZodOptional, ZodString, ZodUnknown } from "./schemas3.js";
|
|
3
|
+
import { ZodArray, ZodBoolean, ZodDefault, ZodEmail, ZodEnum, ZodLiteral, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodRecord, ZodString, ZodULID, ZodURL, ZodUnion, ZodUnknown } from "./schemas3.js";
|
|
4
4
|
|
|
5
5
|
//#region src/realtime-events.d.ts
|
|
6
6
|
declare const baseRealtimeEvent: ZodObject<{
|
|
@@ -84,10 +84,13 @@ declare const realtimeSchema: {
|
|
|
84
84
|
conversationId: ZodString;
|
|
85
85
|
organizationId: ZodString;
|
|
86
86
|
visibility: ZodEnum<{
|
|
87
|
-
|
|
87
|
+
private: "private";
|
|
88
|
+
public: "public";
|
|
88
89
|
}>;
|
|
89
90
|
type: ZodEnum<{
|
|
90
|
-
|
|
91
|
+
message: "message";
|
|
92
|
+
event: "event";
|
|
93
|
+
identification: "identification";
|
|
91
94
|
}>;
|
|
92
95
|
text: ZodNullable<ZodString>;
|
|
93
96
|
parts: ZodArray<ZodUnknown>;
|
|
@@ -105,15 +108,262 @@ declare const realtimeSchema: {
|
|
|
105
108
|
visitorId: ZodNullable<ZodString>;
|
|
106
109
|
userId: ZodNullable<ZodString>;
|
|
107
110
|
conversationId: ZodString;
|
|
108
|
-
conversation:
|
|
109
|
-
|
|
111
|
+
conversation: ZodObject<{
|
|
112
|
+
id: ZodString;
|
|
113
|
+
title: ZodOptional<ZodString>;
|
|
114
|
+
createdAt: ZodString;
|
|
115
|
+
updatedAt: ZodString;
|
|
116
|
+
visitorId: ZodString;
|
|
117
|
+
websiteId: ZodString;
|
|
118
|
+
status: ZodDefault<ZodEnum<{
|
|
119
|
+
resolved: "resolved";
|
|
120
|
+
open: "open";
|
|
121
|
+
spam: "spam";
|
|
122
|
+
}>>;
|
|
123
|
+
deletedAt: ZodDefault<ZodNullable<ZodString>>;
|
|
124
|
+
lastTimelineItem: ZodOptional<ZodObject<{
|
|
125
|
+
id: ZodOptional<ZodString>;
|
|
126
|
+
conversationId: ZodString;
|
|
127
|
+
organizationId: ZodString;
|
|
128
|
+
visibility: ZodEnum<{
|
|
129
|
+
private: "private";
|
|
130
|
+
public: "public";
|
|
131
|
+
}>;
|
|
132
|
+
type: ZodEnum<{
|
|
133
|
+
message: "message";
|
|
134
|
+
event: "event";
|
|
135
|
+
identification: "identification";
|
|
136
|
+
}>;
|
|
137
|
+
text: ZodNullable<ZodString>;
|
|
138
|
+
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
139
|
+
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
140
|
+
type: ZodLiteral<"text">;
|
|
141
|
+
text: ZodString;
|
|
142
|
+
}, $strip>, ZodObject<{
|
|
143
|
+
type: ZodLiteral<"event">;
|
|
144
|
+
eventType: ZodEnum<{
|
|
145
|
+
assigned: "assigned";
|
|
146
|
+
unassigned: "unassigned";
|
|
147
|
+
participant_requested: "participant_requested";
|
|
148
|
+
participant_joined: "participant_joined";
|
|
149
|
+
participant_left: "participant_left";
|
|
150
|
+
status_changed: "status_changed";
|
|
151
|
+
priority_changed: "priority_changed";
|
|
152
|
+
tag_added: "tag_added";
|
|
153
|
+
tag_removed: "tag_removed";
|
|
154
|
+
resolved: "resolved";
|
|
155
|
+
reopened: "reopened";
|
|
156
|
+
visitor_blocked: "visitor_blocked";
|
|
157
|
+
visitor_unblocked: "visitor_unblocked";
|
|
158
|
+
visitor_identified: "visitor_identified";
|
|
159
|
+
}>;
|
|
160
|
+
actorUserId: ZodNullable<ZodString>;
|
|
161
|
+
actorAiAgentId: ZodNullable<ZodString>;
|
|
162
|
+
targetUserId: ZodNullable<ZodString>;
|
|
163
|
+
targetAiAgentId: ZodNullable<ZodString>;
|
|
164
|
+
message: ZodOptional<ZodNullable<ZodString>>;
|
|
165
|
+
}, $strip>, ZodObject<{
|
|
166
|
+
type: ZodLiteral<"image">;
|
|
167
|
+
url: ZodString;
|
|
168
|
+
mediaType: ZodString;
|
|
169
|
+
fileName: ZodOptional<ZodString>;
|
|
170
|
+
size: ZodOptional<ZodNumber>;
|
|
171
|
+
width: ZodOptional<ZodNumber>;
|
|
172
|
+
height: ZodOptional<ZodNumber>;
|
|
173
|
+
}, $strip>, ZodObject<{
|
|
174
|
+
type: ZodLiteral<"file">;
|
|
175
|
+
url: ZodString;
|
|
176
|
+
mediaType: ZodString;
|
|
177
|
+
fileName: ZodOptional<ZodString>;
|
|
178
|
+
size: ZodOptional<ZodNumber>;
|
|
179
|
+
}, $strip>, ZodObject<{
|
|
180
|
+
type: ZodLiteral<"metadata">;
|
|
181
|
+
source: ZodEnum<{
|
|
182
|
+
email: "email";
|
|
183
|
+
widget: "widget";
|
|
184
|
+
api: "api";
|
|
185
|
+
}>;
|
|
186
|
+
}, $strip>]>>;
|
|
187
|
+
userId: ZodNullable<ZodString>;
|
|
188
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
189
|
+
visitorId: ZodNullable<ZodString>;
|
|
190
|
+
createdAt: ZodString;
|
|
191
|
+
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
192
|
+
}, $strip>>;
|
|
193
|
+
}, $strip>;
|
|
194
|
+
header: ZodObject<{
|
|
195
|
+
id: ZodString;
|
|
196
|
+
status: ZodEnum<{
|
|
197
|
+
resolved: "resolved";
|
|
198
|
+
open: "open";
|
|
199
|
+
spam: "spam";
|
|
200
|
+
}>;
|
|
201
|
+
priority: ZodEnum<{
|
|
202
|
+
low: "low";
|
|
203
|
+
normal: "normal";
|
|
204
|
+
high: "high";
|
|
205
|
+
urgent: "urgent";
|
|
206
|
+
}>;
|
|
207
|
+
organizationId: ZodString;
|
|
208
|
+
visitorId: ZodString;
|
|
209
|
+
visitor: ZodObject<{
|
|
210
|
+
id: ZodULID;
|
|
211
|
+
lastSeenAt: ZodNullable<ZodString>;
|
|
212
|
+
blockedAt: ZodNullable<ZodString>;
|
|
213
|
+
blockedByUserId: ZodNullable<ZodString>;
|
|
214
|
+
isBlocked: ZodBoolean;
|
|
215
|
+
contact: ZodNullable<ZodObject<{
|
|
216
|
+
id: ZodULID;
|
|
217
|
+
name: ZodNullable<ZodString>;
|
|
218
|
+
email: ZodNullable<ZodString>;
|
|
219
|
+
image: ZodNullable<ZodString>;
|
|
220
|
+
metadataHash: ZodOptional<ZodString>;
|
|
221
|
+
}, $strip>>;
|
|
222
|
+
}, $strip>;
|
|
223
|
+
websiteId: ZodString;
|
|
224
|
+
channel: ZodString;
|
|
225
|
+
title: ZodNullable<ZodString>;
|
|
226
|
+
resolutionTime: ZodNullable<ZodNumber>;
|
|
227
|
+
startedAt: ZodNullable<ZodString>;
|
|
228
|
+
firstResponseAt: ZodNullable<ZodString>;
|
|
229
|
+
resolvedAt: ZodNullable<ZodString>;
|
|
230
|
+
resolvedByUserId: ZodNullable<ZodString>;
|
|
231
|
+
resolvedByAiAgentId: ZodNullable<ZodString>;
|
|
232
|
+
createdAt: ZodString;
|
|
233
|
+
updatedAt: ZodString;
|
|
234
|
+
deletedAt: ZodNullable<ZodString>;
|
|
235
|
+
lastMessageAt: ZodNullable<ZodString>;
|
|
236
|
+
lastSeenAt: ZodNullable<ZodString>;
|
|
237
|
+
lastTimelineItem: ZodNullable<ZodObject<{
|
|
238
|
+
id: ZodOptional<ZodString>;
|
|
239
|
+
conversationId: ZodString;
|
|
240
|
+
organizationId: ZodString;
|
|
241
|
+
visibility: ZodEnum<{
|
|
242
|
+
private: "private";
|
|
243
|
+
public: "public";
|
|
244
|
+
}>;
|
|
245
|
+
type: ZodEnum<{
|
|
246
|
+
message: "message";
|
|
247
|
+
event: "event";
|
|
248
|
+
identification: "identification";
|
|
249
|
+
}>;
|
|
250
|
+
text: ZodNullable<ZodString>;
|
|
251
|
+
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
252
|
+
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
253
|
+
type: ZodLiteral<"text">;
|
|
254
|
+
text: ZodString;
|
|
255
|
+
}, $strip>, ZodObject<{
|
|
256
|
+
type: ZodLiteral<"event">;
|
|
257
|
+
eventType: ZodEnum<{
|
|
258
|
+
assigned: "assigned";
|
|
259
|
+
unassigned: "unassigned";
|
|
260
|
+
participant_requested: "participant_requested";
|
|
261
|
+
participant_joined: "participant_joined";
|
|
262
|
+
participant_left: "participant_left";
|
|
263
|
+
status_changed: "status_changed";
|
|
264
|
+
priority_changed: "priority_changed";
|
|
265
|
+
tag_added: "tag_added";
|
|
266
|
+
tag_removed: "tag_removed";
|
|
267
|
+
resolved: "resolved";
|
|
268
|
+
reopened: "reopened";
|
|
269
|
+
visitor_blocked: "visitor_blocked";
|
|
270
|
+
visitor_unblocked: "visitor_unblocked";
|
|
271
|
+
visitor_identified: "visitor_identified";
|
|
272
|
+
}>;
|
|
273
|
+
actorUserId: ZodNullable<ZodString>;
|
|
274
|
+
actorAiAgentId: ZodNullable<ZodString>;
|
|
275
|
+
targetUserId: ZodNullable<ZodString>;
|
|
276
|
+
targetAiAgentId: ZodNullable<ZodString>;
|
|
277
|
+
message: ZodOptional<ZodNullable<ZodString>>;
|
|
278
|
+
}, $strip>, ZodObject<{
|
|
279
|
+
type: ZodLiteral<"image">;
|
|
280
|
+
url: ZodString;
|
|
281
|
+
mediaType: ZodString;
|
|
282
|
+
fileName: ZodOptional<ZodString>;
|
|
283
|
+
size: ZodOptional<ZodNumber>;
|
|
284
|
+
width: ZodOptional<ZodNumber>;
|
|
285
|
+
height: ZodOptional<ZodNumber>;
|
|
286
|
+
}, $strip>, ZodObject<{
|
|
287
|
+
type: ZodLiteral<"file">;
|
|
288
|
+
url: ZodString;
|
|
289
|
+
mediaType: ZodString;
|
|
290
|
+
fileName: ZodOptional<ZodString>;
|
|
291
|
+
size: ZodOptional<ZodNumber>;
|
|
292
|
+
}, $strip>, ZodObject<{
|
|
293
|
+
type: ZodLiteral<"metadata">;
|
|
294
|
+
source: ZodEnum<{
|
|
295
|
+
email: "email";
|
|
296
|
+
widget: "widget";
|
|
297
|
+
api: "api";
|
|
298
|
+
}>;
|
|
299
|
+
}, $strip>]>>;
|
|
300
|
+
userId: ZodNullable<ZodString>;
|
|
301
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
302
|
+
visitorId: ZodNullable<ZodString>;
|
|
303
|
+
createdAt: ZodString;
|
|
304
|
+
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
305
|
+
}, $strip>>;
|
|
306
|
+
viewIds: ZodArray<ZodString>;
|
|
307
|
+
seenData: ZodArray<ZodObject<{
|
|
308
|
+
id: ZodString;
|
|
309
|
+
conversationId: ZodString;
|
|
310
|
+
userId: ZodNullable<ZodString>;
|
|
311
|
+
visitorId: ZodNullable<ZodString>;
|
|
312
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
313
|
+
lastSeenAt: ZodString;
|
|
314
|
+
createdAt: ZodString;
|
|
315
|
+
updatedAt: ZodString;
|
|
316
|
+
deletedAt: ZodNullable<ZodString>;
|
|
317
|
+
}, $strip>>;
|
|
318
|
+
}, $strip>;
|
|
110
319
|
}, $strip>;
|
|
111
320
|
readonly visitorIdentified: ZodObject<{
|
|
112
321
|
websiteId: ZodString;
|
|
113
322
|
organizationId: ZodString;
|
|
114
323
|
userId: ZodNullable<ZodString>;
|
|
115
324
|
visitorId: ZodString;
|
|
116
|
-
visitor:
|
|
325
|
+
visitor: ZodObject<{
|
|
326
|
+
id: ZodULID;
|
|
327
|
+
browser: ZodNullable<ZodString>;
|
|
328
|
+
browserVersion: ZodNullable<ZodString>;
|
|
329
|
+
os: ZodNullable<ZodString>;
|
|
330
|
+
osVersion: ZodNullable<ZodString>;
|
|
331
|
+
device: ZodNullable<ZodString>;
|
|
332
|
+
deviceType: ZodNullable<ZodString>;
|
|
333
|
+
ip: ZodNullable<ZodString>;
|
|
334
|
+
city: ZodNullable<ZodString>;
|
|
335
|
+
region: ZodNullable<ZodString>;
|
|
336
|
+
country: ZodNullable<ZodString>;
|
|
337
|
+
countryCode: ZodNullable<ZodString>;
|
|
338
|
+
latitude: ZodNullable<ZodNumber>;
|
|
339
|
+
longitude: ZodNullable<ZodNumber>;
|
|
340
|
+
language: ZodNullable<ZodString>;
|
|
341
|
+
timezone: ZodNullable<ZodString>;
|
|
342
|
+
screenResolution: ZodNullable<ZodString>;
|
|
343
|
+
viewport: ZodNullable<ZodString>;
|
|
344
|
+
createdAt: ZodString;
|
|
345
|
+
updatedAt: ZodString;
|
|
346
|
+
lastSeenAt: ZodNullable<ZodString>;
|
|
347
|
+
websiteId: ZodULID;
|
|
348
|
+
organizationId: ZodULID;
|
|
349
|
+
blockedAt: ZodNullable<ZodString>;
|
|
350
|
+
blockedByUserId: ZodNullable<ZodString>;
|
|
351
|
+
isBlocked: ZodBoolean;
|
|
352
|
+
contact: ZodNullable<ZodObject<{
|
|
353
|
+
id: ZodULID;
|
|
354
|
+
externalId: ZodNullable<ZodString>;
|
|
355
|
+
name: ZodNullable<ZodString>;
|
|
356
|
+
email: ZodNullable<ZodEmail>;
|
|
357
|
+
image: ZodNullable<ZodURL>;
|
|
358
|
+
metadata: ZodNullable<ZodRecord<ZodString, ZodUnion<[ZodUnion<[ZodUnion<[ZodString, ZodNumber]>, ZodBoolean]>, ZodNull]>>>;
|
|
359
|
+
contactOrganizationId: ZodNullable<ZodULID>;
|
|
360
|
+
websiteId: ZodULID;
|
|
361
|
+
organizationId: ZodULID;
|
|
362
|
+
userId: ZodNullable<ZodULID>;
|
|
363
|
+
createdAt: ZodString;
|
|
364
|
+
updatedAt: ZodString;
|
|
365
|
+
}, $strip>>;
|
|
366
|
+
}, $strip>;
|
|
117
367
|
}, $strip>;
|
|
118
368
|
};
|
|
119
369
|
type RealtimeEventType = keyof typeof realtimeSchema;
|
package/realtime-events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;;;cAMa,mBAAiB;;;;EAAjB,MAAA,aAKX,UAAA,CAAA;;;;;;cAMW;;IAXiB,SAAA,WAAA;IAAA,cAAA,WAAA;IAWjB,SAAA,aAiEH,UAAA,CAAA
|
|
1
|
+
{"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;;;cAMa,mBAAiB;;;;EAAjB,MAAA,aAKX,UAAA,CAAA;;;;;;cAMW;;IAXiB,SAAA,WAAA;IAAA,cAAA,WAAA;IAWjB,SAAA,aAiEH,UAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEE,iBAAA,gBAAiC;KAEjC,+BAA+B,qBAAqB,eACvD,gBAAgB;KAGb,wBAAwB;QAC7B;WACG,qBAAqB;;KAGnB,gBAAA,WACL,oBAAoB,cAAc,KACvC;KAEU,4BAA4B,qBACvC,qBAAqB;;;;iBAKN,gCAAgC,yBACzC,mBAEJ,qBAAqB;;;;iBAQR,gBAAA,yBAAyC;iBAIzC,0BAA0B,0BAClC,cAAc,KACnB,qBAAqB"}
|
package/schemas.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $strip } from "./schemas2.js";
|
|
2
2
|
import { output } from "./core.js";
|
|
3
|
-
import { ZodDefault, ZodEnum, ZodNullable, ZodObject, ZodOptional, ZodString } from "./schemas3.js";
|
|
3
|
+
import { ZodArray, ZodDefault, ZodEnum, ZodLiteral, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodString, ZodUnion } from "./schemas3.js";
|
|
4
4
|
|
|
5
5
|
//#region src/schemas.d.ts
|
|
6
6
|
declare const viewSchema: ZodObject<{
|
|
@@ -23,10 +23,80 @@ declare const conversationSchema: ZodObject<{
|
|
|
23
23
|
visitorId: ZodString;
|
|
24
24
|
websiteId: ZodString;
|
|
25
25
|
status: ZodDefault<ZodEnum<{
|
|
26
|
-
|
|
26
|
+
resolved: "resolved";
|
|
27
|
+
open: "open";
|
|
28
|
+
spam: "spam";
|
|
27
29
|
}>>;
|
|
28
30
|
deletedAt: ZodDefault<ZodNullable<ZodString>>;
|
|
29
|
-
lastTimelineItem:
|
|
31
|
+
lastTimelineItem: ZodOptional<ZodObject<{
|
|
32
|
+
id: ZodOptional<ZodString>;
|
|
33
|
+
conversationId: ZodString;
|
|
34
|
+
organizationId: ZodString;
|
|
35
|
+
visibility: ZodEnum<{
|
|
36
|
+
private: "private";
|
|
37
|
+
public: "public";
|
|
38
|
+
}>;
|
|
39
|
+
type: ZodEnum<{
|
|
40
|
+
message: "message";
|
|
41
|
+
event: "event";
|
|
42
|
+
identification: "identification";
|
|
43
|
+
}>;
|
|
44
|
+
text: ZodNullable<ZodString>;
|
|
45
|
+
tool: ZodOptional<ZodNullable<ZodString>>;
|
|
46
|
+
parts: ZodArray<ZodUnion<readonly [ZodObject<{
|
|
47
|
+
type: ZodLiteral<"text">;
|
|
48
|
+
text: ZodString;
|
|
49
|
+
}, $strip>, ZodObject<{
|
|
50
|
+
type: ZodLiteral<"event">;
|
|
51
|
+
eventType: ZodEnum<{
|
|
52
|
+
assigned: "assigned";
|
|
53
|
+
unassigned: "unassigned";
|
|
54
|
+
participant_requested: "participant_requested";
|
|
55
|
+
participant_joined: "participant_joined";
|
|
56
|
+
participant_left: "participant_left";
|
|
57
|
+
status_changed: "status_changed";
|
|
58
|
+
priority_changed: "priority_changed";
|
|
59
|
+
tag_added: "tag_added";
|
|
60
|
+
tag_removed: "tag_removed";
|
|
61
|
+
resolved: "resolved";
|
|
62
|
+
reopened: "reopened";
|
|
63
|
+
visitor_blocked: "visitor_blocked";
|
|
64
|
+
visitor_unblocked: "visitor_unblocked";
|
|
65
|
+
visitor_identified: "visitor_identified";
|
|
66
|
+
}>;
|
|
67
|
+
actorUserId: ZodNullable<ZodString>;
|
|
68
|
+
actorAiAgentId: ZodNullable<ZodString>;
|
|
69
|
+
targetUserId: ZodNullable<ZodString>;
|
|
70
|
+
targetAiAgentId: ZodNullable<ZodString>;
|
|
71
|
+
message: ZodOptional<ZodNullable<ZodString>>;
|
|
72
|
+
}, $strip>, ZodObject<{
|
|
73
|
+
type: ZodLiteral<"image">;
|
|
74
|
+
url: ZodString;
|
|
75
|
+
mediaType: ZodString;
|
|
76
|
+
fileName: ZodOptional<ZodString>;
|
|
77
|
+
size: ZodOptional<ZodNumber>;
|
|
78
|
+
width: ZodOptional<ZodNumber>;
|
|
79
|
+
height: ZodOptional<ZodNumber>;
|
|
80
|
+
}, $strip>, ZodObject<{
|
|
81
|
+
type: ZodLiteral<"file">;
|
|
82
|
+
url: ZodString;
|
|
83
|
+
mediaType: ZodString;
|
|
84
|
+
fileName: ZodOptional<ZodString>;
|
|
85
|
+
size: ZodOptional<ZodNumber>;
|
|
86
|
+
}, $strip>, ZodObject<{
|
|
87
|
+
type: ZodLiteral<"metadata">;
|
|
88
|
+
source: ZodEnum<{
|
|
89
|
+
email: "email";
|
|
90
|
+
widget: "widget";
|
|
91
|
+
api: "api";
|
|
92
|
+
}>;
|
|
93
|
+
}, $strip>]>>;
|
|
94
|
+
userId: ZodNullable<ZodString>;
|
|
95
|
+
aiAgentId: ZodNullable<ZodString>;
|
|
96
|
+
visitorId: ZodNullable<ZodString>;
|
|
97
|
+
createdAt: ZodString;
|
|
98
|
+
deletedAt: ZodOptional<ZodNullable<ZodString>>;
|
|
99
|
+
}, $strip>>;
|
|
30
100
|
}, $strip>;
|
|
31
101
|
type Conversation = output<typeof conversationSchema>;
|
|
32
102
|
declare const conversationSeenSchema: ZodObject<{
|
package/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","names":[],"sources":["../src/schemas.ts"],"sourcesContent":[],"mappings":";;;;;cAIa,YAAU;;;;EAAV,MAAA,aAUX,UAAA,CAAA;;;;;;;KAEU,SAAA,GAAY,cAAe;cAE1B,oBAAkB;;;;;;EAdR,SAAA,WAAA;EAAA,MAAA,YAAA,QAAA,CAAA;IAYX,
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","names":[],"sources":["../src/schemas.ts"],"sourcesContent":[],"mappings":";;;;;cAIa,YAAU;;;;EAAV,MAAA,aAUX,UAAA,CAAA;;;;;;;KAEU,SAAA,GAAY,cAAe;cAE1B,oBAAkB;;;;;;EAdR,SAAA,WAAA;EAAA,MAAA,YAAA,QAAA,CAAA;IAYX,QAAS,EAAA,UAAA;IAER,IAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkBD,YAAA,GAAe,cAAe;cAE7B,wBAAsB;;;;;;;;;;CApBJ,QAAA,CAAA;AAAA,KAgCnB,gBAAA,GAAmB,MAhCA,CAAA,OAgCe,sBAhCf,CAAA"}
|
package/trpc/contact.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $strip } from "../schemas2.js";
|
|
2
2
|
import { output } from "../core.js";
|
|
3
|
-
import { ZodArray, ZodBoolean, 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/contact.d.ts
|
|
6
6
|
declare const contactListItemSchema: ZodObject<{
|
|
@@ -49,7 +49,20 @@ declare const contactVisitorSummarySchema: ZodObject<{
|
|
|
49
49
|
}, $strip>;
|
|
50
50
|
type ContactVisitorSummary = output<typeof contactVisitorSummarySchema>;
|
|
51
51
|
declare const contactDetailResponseSchema: ZodObject<{
|
|
52
|
-
contact:
|
|
52
|
+
contact: ZodObject<{
|
|
53
|
+
id: ZodULID;
|
|
54
|
+
externalId: ZodNullable<ZodString>;
|
|
55
|
+
name: ZodNullable<ZodString>;
|
|
56
|
+
email: ZodNullable<ZodEmail>;
|
|
57
|
+
image: ZodNullable<ZodURL>;
|
|
58
|
+
metadata: ZodNullable<ZodRecord<ZodString, ZodUnion<[ZodUnion<[ZodUnion<[ZodString, ZodNumber]>, ZodBoolean]>, ZodNull]>>>;
|
|
59
|
+
contactOrganizationId: ZodNullable<ZodULID>;
|
|
60
|
+
websiteId: ZodULID;
|
|
61
|
+
organizationId: ZodULID;
|
|
62
|
+
userId: ZodNullable<ZodULID>;
|
|
63
|
+
createdAt: ZodString;
|
|
64
|
+
updatedAt: ZodString;
|
|
65
|
+
}, $strip>;
|
|
53
66
|
visitors: ZodArray<ZodObject<{
|
|
54
67
|
id: ZodULID;
|
|
55
68
|
lastSeenAt: ZodNullable<ZodString>;
|
package/trpc/contact.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.d.ts","names":[],"sources":["../../src/trpc/contact.ts"],"sourcesContent":[],"mappings":";;;;;cAGa,uBAAqB;;;;EAArB,KAAA,aAAA,UAQX,CAAA;;;;;KAEU,eAAA,GAAkB,cAAe;cAEhC,gCAA8B;;;;;KAM/B,wBAAA,GAA2B,cAC/B;AAnB0B,cAsBrB,0BAtBqB,EAsBK,SAtBL,CAAA;EAAA,KAAA,UAAA,UAAA,CAAA;IAUtB,EAAA,SAAA;IAEC,IAAA,aAAA,UAIX,CAAA;IAEU,KAAA,aAAA,UAAwB,CAAA;IAIvB,KAAA,aAAA,UAKX,CAAA;;;;;;;;;KAEU,oBAAA,GAAuB,cAAe;cAErC,6BAA2B;;;;;;;;EATD,QAAA,aAAA,UAAA,CAAA;EAAA,SAAA,aAAA,UAAA,CAAA;EAO3B,eAAA,aAAoB,UAAkB,CAAA;EAErC,SAAA,YAAA;;KAcD,qBAAA,GAAwB,cAAe;cAEtC,6BAA2B
|
|
1
|
+
{"version":3,"file":"contact.d.ts","names":[],"sources":["../../src/trpc/contact.ts"],"sourcesContent":[],"mappings":";;;;;cAGa,uBAAqB;;;;EAArB,KAAA,aAAA,UAQX,CAAA;;;;;KAEU,eAAA,GAAkB,cAAe;cAEhC,gCAA8B;;;;;KAM/B,wBAAA,GAA2B,cAC/B;AAnB0B,cAsBrB,0BAtBqB,EAsBK,SAtBL,CAAA;EAAA,KAAA,UAAA,UAAA,CAAA;IAUtB,EAAA,SAAA;IAEC,IAAA,aAAA,UAIX,CAAA;IAEU,KAAA,aAAA,UAAwB,CAAA;IAIvB,KAAA,aAAA,UAKX,CAAA;;;;;;;;;KAEU,oBAAA,GAAuB,cAAe;cAErC,6BAA2B;;;;;;;;EATD,QAAA,aAAA,UAAA,CAAA;EAAA,SAAA,aAAA,UAAA,CAAA;EAO3B,eAAA,aAAoB,UAAkB,CAAA;EAErC,SAAA,YAAA;;KAcD,qBAAA,GAAwB,cAAe;cAEtC,6BAA2B;;;;;;;;;;;;;;;;;;IAhBA,SAAA,WAAA;IAAA,OAAA,aAAA,UAAA,CAAA;IAc5B,MAAA,aAAqB,UAAkB,CAAA;IAEtC,OAAA,aAAA,UAGX,CAAA;;;;;;;;KAEU,qBAAA,GAAwB,cAAe"}
|