@cossistant/core 0.0.29 → 0.0.30

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.
Files changed (51) hide show
  1. package/_virtual/rolldown_runtime.js +27 -12
  2. package/ai-sdk-utils.d.ts +141 -0
  3. package/ai-sdk-utils.d.ts.map +1 -0
  4. package/ai-sdk-utils.js +255 -0
  5. package/ai-sdk-utils.js.map +1 -0
  6. package/client.d.ts +6 -6
  7. package/client.d.ts.map +1 -1
  8. package/client.js +2 -2
  9. package/client.js.map +1 -1
  10. package/index.d.ts +3 -1
  11. package/index.js +3 -1
  12. package/package.json +1 -1
  13. package/privacy-filter.d.ts +112 -0
  14. package/privacy-filter.d.ts.map +1 -0
  15. package/privacy-filter.js +170 -0
  16. package/privacy-filter.js.map +1 -0
  17. package/rest-client.d.ts +4 -4
  18. package/rest-client.d.ts.map +1 -1
  19. package/rest-client.js +4 -4
  20. package/rest-client.js.map +1 -1
  21. package/store/conversations-store.d.ts +1 -1
  22. package/store/seen-store.d.ts +2 -2
  23. package/store/timeline-items-store.d.ts +5 -5
  24. package/store/timeline-items-store.d.ts.map +1 -1
  25. package/store/timeline-items-store.js +1 -1
  26. package/store/timeline-items-store.js.map +1 -1
  27. package/store/typing-store.d.ts +1 -1
  28. package/store/typing-store.d.ts.map +1 -1
  29. package/store/typing-store.js +12 -19
  30. package/store/typing-store.js.map +1 -1
  31. package/types/src/api/contact.d.ts.map +1 -0
  32. package/{conversation.d.ts → types/src/api/conversation.d.ts} +458 -78
  33. package/types/src/api/conversation.d.ts.map +1 -0
  34. package/types/src/api/timeline-item.d.ts +602 -0
  35. package/types/src/api/timeline-item.d.ts.map +1 -0
  36. package/types/src/api/timeline-item.js +67 -19
  37. package/types/src/api/timeline-item.js.map +1 -1
  38. package/types/src/api/upload.d.ts.map +1 -0
  39. package/{realtime-events.d.ts → types/src/realtime-events.d.ts} +446 -48
  40. package/types/src/realtime-events.d.ts.map +1 -0
  41. package/{schemas.d.ts → types/src/schemas.d.ts} +92 -16
  42. package/types/src/schemas.d.ts.map +1 -0
  43. package/contact.d.ts.map +0 -1
  44. package/conversation.d.ts.map +0 -1
  45. package/realtime-events.d.ts.map +0 -1
  46. package/schemas.d.ts.map +0 -1
  47. package/timeline-item.d.ts +0 -298
  48. package/timeline-item.d.ts.map +0 -1
  49. package/upload.d.ts.map +0 -1
  50. /package/{contact.d.ts → types/src/api/contact.d.ts} +0 -0
  51. /package/{upload.d.ts → types/src/api/upload.d.ts} +0 -0
@@ -0,0 +1,602 @@
1
+ import { z } from "@hono/zod-openapi";
2
+
3
+ //#region ../types/src/api/timeline-item.d.ts
4
+
5
+ declare const timelineItemSchema: z.ZodObject<{
6
+ id: z.ZodOptional<z.ZodString>;
7
+ conversationId: z.ZodString;
8
+ organizationId: z.ZodString;
9
+ visibility: z.ZodEnum<{
10
+ public: "public";
11
+ private: "private";
12
+ }>;
13
+ type: z.ZodEnum<{
14
+ message: "message";
15
+ event: "event";
16
+ identification: "identification";
17
+ }>;
18
+ text: z.ZodNullable<z.ZodString>;
19
+ tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
21
+ type: z.ZodLiteral<"text">;
22
+ text: z.ZodString;
23
+ state: z.ZodOptional<z.ZodEnum<{
24
+ streaming: "streaming";
25
+ done: "done";
26
+ }>>;
27
+ }, z.core.$strip>, z.ZodObject<{
28
+ type: z.ZodLiteral<"reasoning">;
29
+ text: z.ZodString;
30
+ state: z.ZodOptional<z.ZodEnum<{
31
+ streaming: "streaming";
32
+ done: "done";
33
+ }>>;
34
+ providerMetadata: z.ZodOptional<z.ZodObject<{
35
+ cossistant: z.ZodOptional<z.ZodObject<{
36
+ visibility: z.ZodOptional<z.ZodEnum<{
37
+ public: "public";
38
+ private: "private";
39
+ }>>;
40
+ progressMessage: z.ZodOptional<z.ZodString>;
41
+ knowledgeId: z.ZodOptional<z.ZodString>;
42
+ }, z.core.$strip>>;
43
+ }, z.core.$loose>>;
44
+ }, z.core.$strip>, z.ZodObject<{
45
+ type: z.ZodString;
46
+ toolCallId: z.ZodString;
47
+ toolName: z.ZodString;
48
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
49
+ output: z.ZodOptional<z.ZodUnknown>;
50
+ state: z.ZodEnum<{
51
+ error: "error";
52
+ partial: "partial";
53
+ result: "result";
54
+ }>;
55
+ errorText: z.ZodOptional<z.ZodString>;
56
+ providerMetadata: z.ZodOptional<z.ZodObject<{
57
+ cossistant: z.ZodOptional<z.ZodObject<{
58
+ visibility: z.ZodOptional<z.ZodEnum<{
59
+ public: "public";
60
+ private: "private";
61
+ }>>;
62
+ progressMessage: z.ZodOptional<z.ZodString>;
63
+ knowledgeId: z.ZodOptional<z.ZodString>;
64
+ }, z.core.$strip>>;
65
+ }, z.core.$loose>>;
66
+ }, z.core.$strip>, z.ZodObject<{
67
+ type: z.ZodLiteral<"source-url">;
68
+ sourceId: z.ZodString;
69
+ url: z.ZodString;
70
+ title: z.ZodOptional<z.ZodString>;
71
+ providerMetadata: z.ZodOptional<z.ZodObject<{
72
+ cossistant: z.ZodOptional<z.ZodObject<{
73
+ visibility: z.ZodOptional<z.ZodEnum<{
74
+ public: "public";
75
+ private: "private";
76
+ }>>;
77
+ progressMessage: z.ZodOptional<z.ZodString>;
78
+ knowledgeId: z.ZodOptional<z.ZodString>;
79
+ }, z.core.$strip>>;
80
+ }, z.core.$loose>>;
81
+ }, z.core.$strip>, z.ZodObject<{
82
+ type: z.ZodLiteral<"source-document">;
83
+ sourceId: z.ZodString;
84
+ mediaType: z.ZodString;
85
+ title: z.ZodString;
86
+ filename: z.ZodOptional<z.ZodString>;
87
+ providerMetadata: z.ZodOptional<z.ZodObject<{
88
+ cossistant: z.ZodOptional<z.ZodObject<{
89
+ visibility: z.ZodOptional<z.ZodEnum<{
90
+ public: "public";
91
+ private: "private";
92
+ }>>;
93
+ progressMessage: z.ZodOptional<z.ZodString>;
94
+ knowledgeId: z.ZodOptional<z.ZodString>;
95
+ }, z.core.$strip>>;
96
+ }, z.core.$loose>>;
97
+ }, z.core.$strip>, z.ZodObject<{
98
+ type: z.ZodLiteral<"step-start">;
99
+ }, z.core.$strip>, z.ZodObject<{
100
+ type: z.ZodLiteral<"file">;
101
+ url: z.ZodString;
102
+ mediaType: z.ZodString;
103
+ filename: z.ZodOptional<z.ZodString>;
104
+ size: z.ZodOptional<z.ZodNumber>;
105
+ }, z.core.$strip>, z.ZodObject<{
106
+ type: z.ZodLiteral<"image">;
107
+ url: z.ZodString;
108
+ mediaType: z.ZodString;
109
+ filename: z.ZodOptional<z.ZodString>;
110
+ size: z.ZodOptional<z.ZodNumber>;
111
+ width: z.ZodOptional<z.ZodNumber>;
112
+ height: z.ZodOptional<z.ZodNumber>;
113
+ }, z.core.$strip>, z.ZodObject<{
114
+ type: z.ZodLiteral<"event">;
115
+ eventType: z.ZodEnum<{
116
+ resolved: "resolved";
117
+ assigned: "assigned";
118
+ unassigned: "unassigned";
119
+ participant_requested: "participant_requested";
120
+ participant_joined: "participant_joined";
121
+ participant_left: "participant_left";
122
+ status_changed: "status_changed";
123
+ priority_changed: "priority_changed";
124
+ tag_added: "tag_added";
125
+ tag_removed: "tag_removed";
126
+ reopened: "reopened";
127
+ visitor_blocked: "visitor_blocked";
128
+ visitor_unblocked: "visitor_unblocked";
129
+ visitor_identified: "visitor_identified";
130
+ }>;
131
+ actorUserId: z.ZodNullable<z.ZodString>;
132
+ actorAiAgentId: z.ZodNullable<z.ZodString>;
133
+ targetUserId: z.ZodNullable<z.ZodString>;
134
+ targetAiAgentId: z.ZodNullable<z.ZodString>;
135
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
136
+ }, z.core.$strip>, z.ZodObject<{
137
+ type: z.ZodLiteral<"metadata">;
138
+ source: z.ZodEnum<{
139
+ email: "email";
140
+ widget: "widget";
141
+ api: "api";
142
+ }>;
143
+ }, z.core.$strip>]>>;
144
+ userId: z.ZodNullable<z.ZodString>;
145
+ aiAgentId: z.ZodNullable<z.ZodString>;
146
+ visitorId: z.ZodNullable<z.ZodString>;
147
+ createdAt: z.ZodString;
148
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
149
+ }, z.core.$strip>;
150
+ type timelineItemSchema = z.infer<typeof timelineItemSchema>;
151
+ type TimelineItem = z.infer<typeof timelineItemSchema>;
152
+ declare const getConversationTimelineItemsRequestSchema: z.ZodObject<{
153
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
154
+ cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
155
+ }, z.core.$strip>;
156
+ type GetConversationTimelineItemsRequest = z.infer<typeof getConversationTimelineItemsRequestSchema>;
157
+ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
158
+ items: z.ZodArray<z.ZodObject<{
159
+ id: z.ZodOptional<z.ZodString>;
160
+ conversationId: z.ZodString;
161
+ organizationId: z.ZodString;
162
+ visibility: z.ZodEnum<{
163
+ public: "public";
164
+ private: "private";
165
+ }>;
166
+ type: z.ZodEnum<{
167
+ message: "message";
168
+ event: "event";
169
+ identification: "identification";
170
+ }>;
171
+ text: z.ZodNullable<z.ZodString>;
172
+ tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
173
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
174
+ type: z.ZodLiteral<"text">;
175
+ text: z.ZodString;
176
+ state: z.ZodOptional<z.ZodEnum<{
177
+ streaming: "streaming";
178
+ done: "done";
179
+ }>>;
180
+ }, z.core.$strip>, z.ZodObject<{
181
+ type: z.ZodLiteral<"reasoning">;
182
+ text: z.ZodString;
183
+ state: z.ZodOptional<z.ZodEnum<{
184
+ streaming: "streaming";
185
+ done: "done";
186
+ }>>;
187
+ providerMetadata: z.ZodOptional<z.ZodObject<{
188
+ cossistant: z.ZodOptional<z.ZodObject<{
189
+ visibility: z.ZodOptional<z.ZodEnum<{
190
+ public: "public";
191
+ private: "private";
192
+ }>>;
193
+ progressMessage: z.ZodOptional<z.ZodString>;
194
+ knowledgeId: z.ZodOptional<z.ZodString>;
195
+ }, z.core.$strip>>;
196
+ }, z.core.$loose>>;
197
+ }, z.core.$strip>, z.ZodObject<{
198
+ type: z.ZodString;
199
+ toolCallId: z.ZodString;
200
+ toolName: z.ZodString;
201
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
202
+ output: z.ZodOptional<z.ZodUnknown>;
203
+ state: z.ZodEnum<{
204
+ error: "error";
205
+ partial: "partial";
206
+ result: "result";
207
+ }>;
208
+ errorText: z.ZodOptional<z.ZodString>;
209
+ providerMetadata: z.ZodOptional<z.ZodObject<{
210
+ cossistant: z.ZodOptional<z.ZodObject<{
211
+ visibility: z.ZodOptional<z.ZodEnum<{
212
+ public: "public";
213
+ private: "private";
214
+ }>>;
215
+ progressMessage: z.ZodOptional<z.ZodString>;
216
+ knowledgeId: z.ZodOptional<z.ZodString>;
217
+ }, z.core.$strip>>;
218
+ }, z.core.$loose>>;
219
+ }, z.core.$strip>, z.ZodObject<{
220
+ type: z.ZodLiteral<"source-url">;
221
+ sourceId: z.ZodString;
222
+ url: z.ZodString;
223
+ title: z.ZodOptional<z.ZodString>;
224
+ providerMetadata: z.ZodOptional<z.ZodObject<{
225
+ cossistant: z.ZodOptional<z.ZodObject<{
226
+ visibility: z.ZodOptional<z.ZodEnum<{
227
+ public: "public";
228
+ private: "private";
229
+ }>>;
230
+ progressMessage: z.ZodOptional<z.ZodString>;
231
+ knowledgeId: z.ZodOptional<z.ZodString>;
232
+ }, z.core.$strip>>;
233
+ }, z.core.$loose>>;
234
+ }, z.core.$strip>, z.ZodObject<{
235
+ type: z.ZodLiteral<"source-document">;
236
+ sourceId: z.ZodString;
237
+ mediaType: z.ZodString;
238
+ title: z.ZodString;
239
+ filename: z.ZodOptional<z.ZodString>;
240
+ providerMetadata: z.ZodOptional<z.ZodObject<{
241
+ cossistant: z.ZodOptional<z.ZodObject<{
242
+ visibility: z.ZodOptional<z.ZodEnum<{
243
+ public: "public";
244
+ private: "private";
245
+ }>>;
246
+ progressMessage: z.ZodOptional<z.ZodString>;
247
+ knowledgeId: z.ZodOptional<z.ZodString>;
248
+ }, z.core.$strip>>;
249
+ }, z.core.$loose>>;
250
+ }, z.core.$strip>, z.ZodObject<{
251
+ type: z.ZodLiteral<"step-start">;
252
+ }, z.core.$strip>, z.ZodObject<{
253
+ type: z.ZodLiteral<"file">;
254
+ url: z.ZodString;
255
+ mediaType: z.ZodString;
256
+ filename: z.ZodOptional<z.ZodString>;
257
+ size: z.ZodOptional<z.ZodNumber>;
258
+ }, z.core.$strip>, z.ZodObject<{
259
+ type: z.ZodLiteral<"image">;
260
+ url: z.ZodString;
261
+ mediaType: z.ZodString;
262
+ filename: z.ZodOptional<z.ZodString>;
263
+ size: z.ZodOptional<z.ZodNumber>;
264
+ width: z.ZodOptional<z.ZodNumber>;
265
+ height: z.ZodOptional<z.ZodNumber>;
266
+ }, z.core.$strip>, z.ZodObject<{
267
+ type: z.ZodLiteral<"event">;
268
+ eventType: z.ZodEnum<{
269
+ resolved: "resolved";
270
+ assigned: "assigned";
271
+ unassigned: "unassigned";
272
+ participant_requested: "participant_requested";
273
+ participant_joined: "participant_joined";
274
+ participant_left: "participant_left";
275
+ status_changed: "status_changed";
276
+ priority_changed: "priority_changed";
277
+ tag_added: "tag_added";
278
+ tag_removed: "tag_removed";
279
+ reopened: "reopened";
280
+ visitor_blocked: "visitor_blocked";
281
+ visitor_unblocked: "visitor_unblocked";
282
+ visitor_identified: "visitor_identified";
283
+ }>;
284
+ actorUserId: z.ZodNullable<z.ZodString>;
285
+ actorAiAgentId: z.ZodNullable<z.ZodString>;
286
+ targetUserId: z.ZodNullable<z.ZodString>;
287
+ targetAiAgentId: z.ZodNullable<z.ZodString>;
288
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
289
+ }, z.core.$strip>, z.ZodObject<{
290
+ type: z.ZodLiteral<"metadata">;
291
+ source: z.ZodEnum<{
292
+ email: "email";
293
+ widget: "widget";
294
+ api: "api";
295
+ }>;
296
+ }, z.core.$strip>]>>;
297
+ userId: z.ZodNullable<z.ZodString>;
298
+ aiAgentId: z.ZodNullable<z.ZodString>;
299
+ visitorId: z.ZodNullable<z.ZodString>;
300
+ createdAt: z.ZodString;
301
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
+ }, z.core.$strip>>;
303
+ nextCursor: z.ZodNullable<z.ZodString>;
304
+ hasNextPage: z.ZodBoolean;
305
+ }, z.core.$strip>;
306
+ type GetConversationTimelineItemsResponse = z.infer<typeof getConversationTimelineItemsResponseSchema>;
307
+ declare const sendTimelineItemRequestSchema: z.ZodObject<{
308
+ conversationId: z.ZodString;
309
+ item: z.ZodObject<{
310
+ id: z.ZodOptional<z.ZodString>;
311
+ type: z.ZodDefault<z.ZodEnum<{
312
+ message: "message";
313
+ event: "event";
314
+ }>>;
315
+ text: z.ZodString;
316
+ parts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
317
+ type: z.ZodLiteral<"text">;
318
+ text: z.ZodString;
319
+ state: z.ZodOptional<z.ZodEnum<{
320
+ streaming: "streaming";
321
+ done: "done";
322
+ }>>;
323
+ }, z.core.$strip>, z.ZodObject<{
324
+ type: z.ZodLiteral<"reasoning">;
325
+ text: z.ZodString;
326
+ state: z.ZodOptional<z.ZodEnum<{
327
+ streaming: "streaming";
328
+ done: "done";
329
+ }>>;
330
+ providerMetadata: z.ZodOptional<z.ZodObject<{
331
+ cossistant: z.ZodOptional<z.ZodObject<{
332
+ visibility: z.ZodOptional<z.ZodEnum<{
333
+ public: "public";
334
+ private: "private";
335
+ }>>;
336
+ progressMessage: z.ZodOptional<z.ZodString>;
337
+ knowledgeId: z.ZodOptional<z.ZodString>;
338
+ }, z.core.$strip>>;
339
+ }, z.core.$loose>>;
340
+ }, z.core.$strip>, z.ZodObject<{
341
+ type: z.ZodString;
342
+ toolCallId: z.ZodString;
343
+ toolName: z.ZodString;
344
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
345
+ output: z.ZodOptional<z.ZodUnknown>;
346
+ state: z.ZodEnum<{
347
+ error: "error";
348
+ partial: "partial";
349
+ result: "result";
350
+ }>;
351
+ errorText: z.ZodOptional<z.ZodString>;
352
+ providerMetadata: z.ZodOptional<z.ZodObject<{
353
+ cossistant: z.ZodOptional<z.ZodObject<{
354
+ visibility: z.ZodOptional<z.ZodEnum<{
355
+ public: "public";
356
+ private: "private";
357
+ }>>;
358
+ progressMessage: z.ZodOptional<z.ZodString>;
359
+ knowledgeId: z.ZodOptional<z.ZodString>;
360
+ }, z.core.$strip>>;
361
+ }, z.core.$loose>>;
362
+ }, z.core.$strip>, z.ZodObject<{
363
+ type: z.ZodLiteral<"source-url">;
364
+ sourceId: z.ZodString;
365
+ url: z.ZodString;
366
+ title: z.ZodOptional<z.ZodString>;
367
+ providerMetadata: z.ZodOptional<z.ZodObject<{
368
+ cossistant: z.ZodOptional<z.ZodObject<{
369
+ visibility: z.ZodOptional<z.ZodEnum<{
370
+ public: "public";
371
+ private: "private";
372
+ }>>;
373
+ progressMessage: z.ZodOptional<z.ZodString>;
374
+ knowledgeId: z.ZodOptional<z.ZodString>;
375
+ }, z.core.$strip>>;
376
+ }, z.core.$loose>>;
377
+ }, z.core.$strip>, z.ZodObject<{
378
+ type: z.ZodLiteral<"source-document">;
379
+ sourceId: z.ZodString;
380
+ mediaType: z.ZodString;
381
+ title: z.ZodString;
382
+ filename: z.ZodOptional<z.ZodString>;
383
+ providerMetadata: z.ZodOptional<z.ZodObject<{
384
+ cossistant: z.ZodOptional<z.ZodObject<{
385
+ visibility: z.ZodOptional<z.ZodEnum<{
386
+ public: "public";
387
+ private: "private";
388
+ }>>;
389
+ progressMessage: z.ZodOptional<z.ZodString>;
390
+ knowledgeId: z.ZodOptional<z.ZodString>;
391
+ }, z.core.$strip>>;
392
+ }, z.core.$loose>>;
393
+ }, z.core.$strip>, z.ZodObject<{
394
+ type: z.ZodLiteral<"step-start">;
395
+ }, z.core.$strip>, z.ZodObject<{
396
+ type: z.ZodLiteral<"file">;
397
+ url: z.ZodString;
398
+ mediaType: z.ZodString;
399
+ filename: z.ZodOptional<z.ZodString>;
400
+ size: z.ZodOptional<z.ZodNumber>;
401
+ }, z.core.$strip>, z.ZodObject<{
402
+ type: z.ZodLiteral<"image">;
403
+ url: z.ZodString;
404
+ mediaType: z.ZodString;
405
+ filename: z.ZodOptional<z.ZodString>;
406
+ size: z.ZodOptional<z.ZodNumber>;
407
+ width: z.ZodOptional<z.ZodNumber>;
408
+ height: z.ZodOptional<z.ZodNumber>;
409
+ }, z.core.$strip>, z.ZodObject<{
410
+ type: z.ZodLiteral<"event">;
411
+ eventType: z.ZodEnum<{
412
+ resolved: "resolved";
413
+ assigned: "assigned";
414
+ unassigned: "unassigned";
415
+ participant_requested: "participant_requested";
416
+ participant_joined: "participant_joined";
417
+ participant_left: "participant_left";
418
+ status_changed: "status_changed";
419
+ priority_changed: "priority_changed";
420
+ tag_added: "tag_added";
421
+ tag_removed: "tag_removed";
422
+ reopened: "reopened";
423
+ visitor_blocked: "visitor_blocked";
424
+ visitor_unblocked: "visitor_unblocked";
425
+ visitor_identified: "visitor_identified";
426
+ }>;
427
+ actorUserId: z.ZodNullable<z.ZodString>;
428
+ actorAiAgentId: z.ZodNullable<z.ZodString>;
429
+ targetUserId: z.ZodNullable<z.ZodString>;
430
+ targetAiAgentId: z.ZodNullable<z.ZodString>;
431
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
432
+ }, z.core.$strip>, z.ZodObject<{
433
+ type: z.ZodLiteral<"metadata">;
434
+ source: z.ZodEnum<{
435
+ email: "email";
436
+ widget: "widget";
437
+ api: "api";
438
+ }>;
439
+ }, z.core.$strip>]>>>;
440
+ visibility: z.ZodDefault<z.ZodEnum<{
441
+ public: "public";
442
+ private: "private";
443
+ }>>;
444
+ tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
445
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
446
+ aiAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
447
+ visitorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
448
+ createdAt: z.ZodOptional<z.ZodString>;
449
+ }, z.core.$strip>;
450
+ }, z.core.$strip>;
451
+ type SendTimelineItemRequest = z.infer<typeof sendTimelineItemRequestSchema>;
452
+ declare const sendTimelineItemResponseSchema: z.ZodObject<{
453
+ item: z.ZodObject<{
454
+ id: z.ZodOptional<z.ZodString>;
455
+ conversationId: z.ZodString;
456
+ organizationId: z.ZodString;
457
+ visibility: z.ZodEnum<{
458
+ public: "public";
459
+ private: "private";
460
+ }>;
461
+ type: z.ZodEnum<{
462
+ message: "message";
463
+ event: "event";
464
+ identification: "identification";
465
+ }>;
466
+ text: z.ZodNullable<z.ZodString>;
467
+ tool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
468
+ parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
469
+ type: z.ZodLiteral<"text">;
470
+ text: z.ZodString;
471
+ state: z.ZodOptional<z.ZodEnum<{
472
+ streaming: "streaming";
473
+ done: "done";
474
+ }>>;
475
+ }, z.core.$strip>, z.ZodObject<{
476
+ type: z.ZodLiteral<"reasoning">;
477
+ text: z.ZodString;
478
+ state: z.ZodOptional<z.ZodEnum<{
479
+ streaming: "streaming";
480
+ done: "done";
481
+ }>>;
482
+ providerMetadata: z.ZodOptional<z.ZodObject<{
483
+ cossistant: z.ZodOptional<z.ZodObject<{
484
+ visibility: z.ZodOptional<z.ZodEnum<{
485
+ public: "public";
486
+ private: "private";
487
+ }>>;
488
+ progressMessage: z.ZodOptional<z.ZodString>;
489
+ knowledgeId: z.ZodOptional<z.ZodString>;
490
+ }, z.core.$strip>>;
491
+ }, z.core.$loose>>;
492
+ }, z.core.$strip>, z.ZodObject<{
493
+ type: z.ZodString;
494
+ toolCallId: z.ZodString;
495
+ toolName: z.ZodString;
496
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
497
+ output: z.ZodOptional<z.ZodUnknown>;
498
+ state: z.ZodEnum<{
499
+ error: "error";
500
+ partial: "partial";
501
+ result: "result";
502
+ }>;
503
+ errorText: z.ZodOptional<z.ZodString>;
504
+ providerMetadata: z.ZodOptional<z.ZodObject<{
505
+ cossistant: z.ZodOptional<z.ZodObject<{
506
+ visibility: z.ZodOptional<z.ZodEnum<{
507
+ public: "public";
508
+ private: "private";
509
+ }>>;
510
+ progressMessage: z.ZodOptional<z.ZodString>;
511
+ knowledgeId: z.ZodOptional<z.ZodString>;
512
+ }, z.core.$strip>>;
513
+ }, z.core.$loose>>;
514
+ }, z.core.$strip>, z.ZodObject<{
515
+ type: z.ZodLiteral<"source-url">;
516
+ sourceId: z.ZodString;
517
+ url: z.ZodString;
518
+ title: z.ZodOptional<z.ZodString>;
519
+ providerMetadata: z.ZodOptional<z.ZodObject<{
520
+ cossistant: z.ZodOptional<z.ZodObject<{
521
+ visibility: z.ZodOptional<z.ZodEnum<{
522
+ public: "public";
523
+ private: "private";
524
+ }>>;
525
+ progressMessage: z.ZodOptional<z.ZodString>;
526
+ knowledgeId: z.ZodOptional<z.ZodString>;
527
+ }, z.core.$strip>>;
528
+ }, z.core.$loose>>;
529
+ }, z.core.$strip>, z.ZodObject<{
530
+ type: z.ZodLiteral<"source-document">;
531
+ sourceId: z.ZodString;
532
+ mediaType: z.ZodString;
533
+ title: z.ZodString;
534
+ filename: z.ZodOptional<z.ZodString>;
535
+ providerMetadata: z.ZodOptional<z.ZodObject<{
536
+ cossistant: z.ZodOptional<z.ZodObject<{
537
+ visibility: z.ZodOptional<z.ZodEnum<{
538
+ public: "public";
539
+ private: "private";
540
+ }>>;
541
+ progressMessage: z.ZodOptional<z.ZodString>;
542
+ knowledgeId: z.ZodOptional<z.ZodString>;
543
+ }, z.core.$strip>>;
544
+ }, z.core.$loose>>;
545
+ }, z.core.$strip>, z.ZodObject<{
546
+ type: z.ZodLiteral<"step-start">;
547
+ }, z.core.$strip>, z.ZodObject<{
548
+ type: z.ZodLiteral<"file">;
549
+ url: z.ZodString;
550
+ mediaType: z.ZodString;
551
+ filename: z.ZodOptional<z.ZodString>;
552
+ size: z.ZodOptional<z.ZodNumber>;
553
+ }, z.core.$strip>, z.ZodObject<{
554
+ type: z.ZodLiteral<"image">;
555
+ url: z.ZodString;
556
+ mediaType: z.ZodString;
557
+ filename: z.ZodOptional<z.ZodString>;
558
+ size: z.ZodOptional<z.ZodNumber>;
559
+ width: z.ZodOptional<z.ZodNumber>;
560
+ height: z.ZodOptional<z.ZodNumber>;
561
+ }, z.core.$strip>, z.ZodObject<{
562
+ type: z.ZodLiteral<"event">;
563
+ eventType: z.ZodEnum<{
564
+ resolved: "resolved";
565
+ assigned: "assigned";
566
+ unassigned: "unassigned";
567
+ participant_requested: "participant_requested";
568
+ participant_joined: "participant_joined";
569
+ participant_left: "participant_left";
570
+ status_changed: "status_changed";
571
+ priority_changed: "priority_changed";
572
+ tag_added: "tag_added";
573
+ tag_removed: "tag_removed";
574
+ reopened: "reopened";
575
+ visitor_blocked: "visitor_blocked";
576
+ visitor_unblocked: "visitor_unblocked";
577
+ visitor_identified: "visitor_identified";
578
+ }>;
579
+ actorUserId: z.ZodNullable<z.ZodString>;
580
+ actorAiAgentId: z.ZodNullable<z.ZodString>;
581
+ targetUserId: z.ZodNullable<z.ZodString>;
582
+ targetAiAgentId: z.ZodNullable<z.ZodString>;
583
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
584
+ }, z.core.$strip>, z.ZodObject<{
585
+ type: z.ZodLiteral<"metadata">;
586
+ source: z.ZodEnum<{
587
+ email: "email";
588
+ widget: "widget";
589
+ api: "api";
590
+ }>;
591
+ }, z.core.$strip>]>>;
592
+ userId: z.ZodNullable<z.ZodString>;
593
+ aiAgentId: z.ZodNullable<z.ZodString>;
594
+ visitorId: z.ZodNullable<z.ZodString>;
595
+ createdAt: z.ZodString;
596
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
597
+ }, z.core.$strip>;
598
+ }, z.core.$strip>;
599
+ type SendTimelineItemResponse = z.infer<typeof sendTimelineItemResponseSchema>;
600
+ //#endregion
601
+ export { GetConversationTimelineItemsRequest, GetConversationTimelineItemsResponse, SendTimelineItemRequest, SendTimelineItemResponse, TimelineItem };
602
+ //# sourceMappingURL=timeline-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeline-item.d.ts","names":[],"sources":["../../../../../types/src/api/timeline-item.ts"],"sourcesContent":[],"mappings":";;;;cAkSa,oBAAkB,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2HwB,GAAA,aAAA;IAAA,KAAA,eAAA,YAAA,CAAA;IAiB3C,gBAAA,eAAA,YAAoC,CAAA;MAKnC,UAAA,eAkDV,YAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA/IS,kBAAA,GAAqB,CAAA,CAAE,aAAa;KAEpC,YAAA,GAAe,CAAA,CAAE,aAAa;cAkD7B,2CAAyC,CAAA,CAAA;;;;KAe1C,mCAAA,GAAsC,CAAA,CAAE,aAC5C;cAGK,4CAA0C,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAsBb,OAAA,EAAA,SAAA;UAAA,CAAA,CAAA,CAAA;UAoD9B,eAAuB,eAC3B,YAAA,CAAA;UAGK,WAAA,eAQV,YAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KArES,oCAAA,GAAuC,CAAA,CAAE,aAC7C;cAIK,+BAA6B,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAwDC,CAAA,eAAA,CAAA,CAAA;MAAA,CAAA,eAAA,CAAA,CAAA;IAU/B,CAAA,eAAA,CAAA,aAAwB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAdxB,uBAAA,GAA0B,CAAA,CAAE,aAChC;cAGK,gCAA8B,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAU/B,wBAAA,GAA2B,CAAA,CAAE,aACjC"}