@cossistant/types 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.
@@ -1,30 +1,125 @@
1
1
  import { z } from "@hono/zod-openapi";
2
2
 
3
3
  //#region src/api/timeline-item.d.ts
4
- declare const timelinePartImageSchema: z.ZodObject<{
5
- type: z.ZodLiteral<"image">;
4
+ declare const cossistantProviderMetadataSchema: z.ZodOptional<z.ZodObject<{
5
+ cossistant: z.ZodOptional<z.ZodObject<{
6
+ visibility: z.ZodOptional<z.ZodEnum<{
7
+ public: "public";
8
+ private: "private";
9
+ }>>;
10
+ progressMessage: z.ZodOptional<z.ZodString>;
11
+ knowledgeId: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>>;
13
+ }, z.core.$loose>>;
14
+ declare const textPartSchema: z.ZodObject<{
15
+ type: z.ZodLiteral<"text">;
16
+ text: z.ZodString;
17
+ state: z.ZodOptional<z.ZodEnum<{
18
+ streaming: "streaming";
19
+ done: "done";
20
+ }>>;
21
+ }, z.core.$strip>;
22
+ declare const reasoningPartSchema: z.ZodObject<{
23
+ type: z.ZodLiteral<"reasoning">;
24
+ text: z.ZodString;
25
+ state: z.ZodOptional<z.ZodEnum<{
26
+ streaming: "streaming";
27
+ done: "done";
28
+ }>>;
29
+ providerMetadata: z.ZodOptional<z.ZodObject<{
30
+ cossistant: z.ZodOptional<z.ZodObject<{
31
+ visibility: z.ZodOptional<z.ZodEnum<{
32
+ public: "public";
33
+ private: "private";
34
+ }>>;
35
+ progressMessage: z.ZodOptional<z.ZodString>;
36
+ knowledgeId: z.ZodOptional<z.ZodString>;
37
+ }, z.core.$strip>>;
38
+ }, z.core.$loose>>;
39
+ }, z.core.$strip>;
40
+ declare const toolStateSchema: z.ZodEnum<{
41
+ error: "error";
42
+ partial: "partial";
43
+ result: "result";
44
+ }>;
45
+ declare const toolPartSchema: z.ZodObject<{
46
+ type: z.ZodString;
47
+ toolCallId: z.ZodString;
48
+ toolName: z.ZodString;
49
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
50
+ output: z.ZodOptional<z.ZodUnknown>;
51
+ state: z.ZodEnum<{
52
+ error: "error";
53
+ partial: "partial";
54
+ result: "result";
55
+ }>;
56
+ errorText: z.ZodOptional<z.ZodString>;
57
+ providerMetadata: z.ZodOptional<z.ZodObject<{
58
+ cossistant: z.ZodOptional<z.ZodObject<{
59
+ visibility: z.ZodOptional<z.ZodEnum<{
60
+ public: "public";
61
+ private: "private";
62
+ }>>;
63
+ progressMessage: z.ZodOptional<z.ZodString>;
64
+ knowledgeId: z.ZodOptional<z.ZodString>;
65
+ }, z.core.$strip>>;
66
+ }, z.core.$loose>>;
67
+ }, z.core.$strip>;
68
+ declare const sourceUrlPartSchema: z.ZodObject<{
69
+ type: z.ZodLiteral<"source-url">;
70
+ sourceId: z.ZodString;
6
71
  url: z.ZodString;
72
+ title: z.ZodOptional<z.ZodString>;
73
+ providerMetadata: z.ZodOptional<z.ZodObject<{
74
+ cossistant: z.ZodOptional<z.ZodObject<{
75
+ visibility: z.ZodOptional<z.ZodEnum<{
76
+ public: "public";
77
+ private: "private";
78
+ }>>;
79
+ progressMessage: z.ZodOptional<z.ZodString>;
80
+ knowledgeId: z.ZodOptional<z.ZodString>;
81
+ }, z.core.$strip>>;
82
+ }, z.core.$loose>>;
83
+ }, z.core.$strip>;
84
+ declare const sourceDocumentPartSchema: z.ZodObject<{
85
+ type: z.ZodLiteral<"source-document">;
86
+ sourceId: z.ZodString;
7
87
  mediaType: z.ZodString;
8
- fileName: z.ZodOptional<z.ZodString>;
9
- size: z.ZodOptional<z.ZodNumber>;
10
- width: z.ZodOptional<z.ZodNumber>;
11
- height: z.ZodOptional<z.ZodNumber>;
88
+ title: z.ZodString;
89
+ filename: z.ZodOptional<z.ZodString>;
90
+ providerMetadata: z.ZodOptional<z.ZodObject<{
91
+ cossistant: z.ZodOptional<z.ZodObject<{
92
+ visibility: z.ZodOptional<z.ZodEnum<{
93
+ public: "public";
94
+ private: "private";
95
+ }>>;
96
+ progressMessage: z.ZodOptional<z.ZodString>;
97
+ knowledgeId: z.ZodOptional<z.ZodString>;
98
+ }, z.core.$strip>>;
99
+ }, z.core.$loose>>;
12
100
  }, z.core.$strip>;
13
- declare const timelinePartTextSchema: z.ZodObject<{
14
- type: z.ZodLiteral<"text">;
15
- text: z.ZodString;
101
+ declare const stepStartPartSchema: z.ZodObject<{
102
+ type: z.ZodLiteral<"step-start">;
16
103
  }, z.core.$strip>;
17
- declare const timelineFileSchema: z.ZodObject<{
104
+ declare const filePartSchema: z.ZodObject<{
18
105
  type: z.ZodLiteral<"file">;
19
106
  url: z.ZodString;
20
107
  mediaType: z.ZodString;
21
- fileName: z.ZodOptional<z.ZodString>;
108
+ filename: z.ZodOptional<z.ZodString>;
22
109
  size: z.ZodOptional<z.ZodNumber>;
23
110
  }, z.core.$strip>;
111
+ declare const imagePartSchema: z.ZodObject<{
112
+ type: z.ZodLiteral<"image">;
113
+ url: z.ZodString;
114
+ mediaType: z.ZodString;
115
+ filename: z.ZodOptional<z.ZodString>;
116
+ size: z.ZodOptional<z.ZodNumber>;
117
+ width: z.ZodOptional<z.ZodNumber>;
118
+ height: z.ZodOptional<z.ZodNumber>;
119
+ }, z.core.$strip>;
24
120
  declare const timelinePartEventSchema: z.ZodObject<{
25
121
  type: z.ZodLiteral<"event">;
26
122
  eventType: z.ZodEnum<{
27
- resolved: "resolved";
28
123
  assigned: "assigned";
29
124
  unassigned: "unassigned";
30
125
  participant_requested: "participant_requested";
@@ -34,6 +129,7 @@ declare const timelinePartEventSchema: z.ZodObject<{
34
129
  priority_changed: "priority_changed";
35
130
  tag_added: "tag_added";
36
131
  tag_removed: "tag_removed";
132
+ resolved: "resolved";
37
133
  reopened: "reopened";
38
134
  visitor_blocked: "visitor_blocked";
39
135
  visitor_unblocked: "visitor_unblocked";
@@ -56,10 +152,99 @@ declare const timelinePartMetadataSchema: z.ZodObject<{
56
152
  declare const timelineItemPartsSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
57
153
  type: z.ZodLiteral<"text">;
58
154
  text: z.ZodString;
155
+ state: z.ZodOptional<z.ZodEnum<{
156
+ streaming: "streaming";
157
+ done: "done";
158
+ }>>;
159
+ }, z.core.$strip>, z.ZodObject<{
160
+ type: z.ZodLiteral<"reasoning">;
161
+ text: z.ZodString;
162
+ state: z.ZodOptional<z.ZodEnum<{
163
+ streaming: "streaming";
164
+ done: "done";
165
+ }>>;
166
+ providerMetadata: z.ZodOptional<z.ZodObject<{
167
+ cossistant: z.ZodOptional<z.ZodObject<{
168
+ visibility: z.ZodOptional<z.ZodEnum<{
169
+ public: "public";
170
+ private: "private";
171
+ }>>;
172
+ progressMessage: z.ZodOptional<z.ZodString>;
173
+ knowledgeId: z.ZodOptional<z.ZodString>;
174
+ }, z.core.$strip>>;
175
+ }, z.core.$loose>>;
176
+ }, z.core.$strip>, z.ZodObject<{
177
+ type: z.ZodString;
178
+ toolCallId: z.ZodString;
179
+ toolName: z.ZodString;
180
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
181
+ output: z.ZodOptional<z.ZodUnknown>;
182
+ state: z.ZodEnum<{
183
+ error: "error";
184
+ partial: "partial";
185
+ result: "result";
186
+ }>;
187
+ errorText: z.ZodOptional<z.ZodString>;
188
+ providerMetadata: z.ZodOptional<z.ZodObject<{
189
+ cossistant: z.ZodOptional<z.ZodObject<{
190
+ visibility: z.ZodOptional<z.ZodEnum<{
191
+ public: "public";
192
+ private: "private";
193
+ }>>;
194
+ progressMessage: z.ZodOptional<z.ZodString>;
195
+ knowledgeId: z.ZodOptional<z.ZodString>;
196
+ }, z.core.$strip>>;
197
+ }, z.core.$loose>>;
198
+ }, z.core.$strip>, z.ZodObject<{
199
+ type: z.ZodLiteral<"source-url">;
200
+ sourceId: z.ZodString;
201
+ url: z.ZodString;
202
+ title: z.ZodOptional<z.ZodString>;
203
+ providerMetadata: z.ZodOptional<z.ZodObject<{
204
+ cossistant: z.ZodOptional<z.ZodObject<{
205
+ visibility: z.ZodOptional<z.ZodEnum<{
206
+ public: "public";
207
+ private: "private";
208
+ }>>;
209
+ progressMessage: z.ZodOptional<z.ZodString>;
210
+ knowledgeId: z.ZodOptional<z.ZodString>;
211
+ }, z.core.$strip>>;
212
+ }, z.core.$loose>>;
213
+ }, z.core.$strip>, z.ZodObject<{
214
+ type: z.ZodLiteral<"source-document">;
215
+ sourceId: z.ZodString;
216
+ mediaType: z.ZodString;
217
+ title: z.ZodString;
218
+ filename: z.ZodOptional<z.ZodString>;
219
+ providerMetadata: z.ZodOptional<z.ZodObject<{
220
+ cossistant: z.ZodOptional<z.ZodObject<{
221
+ visibility: z.ZodOptional<z.ZodEnum<{
222
+ public: "public";
223
+ private: "private";
224
+ }>>;
225
+ progressMessage: z.ZodOptional<z.ZodString>;
226
+ knowledgeId: z.ZodOptional<z.ZodString>;
227
+ }, z.core.$strip>>;
228
+ }, z.core.$loose>>;
229
+ }, z.core.$strip>, z.ZodObject<{
230
+ type: z.ZodLiteral<"step-start">;
231
+ }, z.core.$strip>, z.ZodObject<{
232
+ type: z.ZodLiteral<"file">;
233
+ url: z.ZodString;
234
+ mediaType: z.ZodString;
235
+ filename: z.ZodOptional<z.ZodString>;
236
+ size: z.ZodOptional<z.ZodNumber>;
237
+ }, z.core.$strip>, z.ZodObject<{
238
+ type: z.ZodLiteral<"image">;
239
+ url: z.ZodString;
240
+ mediaType: z.ZodString;
241
+ filename: z.ZodOptional<z.ZodString>;
242
+ size: z.ZodOptional<z.ZodNumber>;
243
+ width: z.ZodOptional<z.ZodNumber>;
244
+ height: z.ZodOptional<z.ZodNumber>;
59
245
  }, z.core.$strip>, z.ZodObject<{
60
246
  type: z.ZodLiteral<"event">;
61
247
  eventType: z.ZodEnum<{
62
- resolved: "resolved";
63
248
  assigned: "assigned";
64
249
  unassigned: "unassigned";
65
250
  participant_requested: "participant_requested";
@@ -69,6 +254,7 @@ declare const timelineItemPartsSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObje
69
254
  priority_changed: "priority_changed";
70
255
  tag_added: "tag_added";
71
256
  tag_removed: "tag_removed";
257
+ resolved: "resolved";
72
258
  reopened: "reopened";
73
259
  visitor_blocked: "visitor_blocked";
74
260
  visitor_unblocked: "visitor_unblocked";
@@ -79,20 +265,6 @@ declare const timelineItemPartsSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObje
79
265
  targetUserId: z.ZodNullable<z.ZodString>;
80
266
  targetAiAgentId: z.ZodNullable<z.ZodString>;
81
267
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
- }, z.core.$strip>, z.ZodObject<{
83
- type: z.ZodLiteral<"image">;
84
- url: z.ZodString;
85
- mediaType: z.ZodString;
86
- fileName: z.ZodOptional<z.ZodString>;
87
- size: z.ZodOptional<z.ZodNumber>;
88
- width: z.ZodOptional<z.ZodNumber>;
89
- height: z.ZodOptional<z.ZodNumber>;
90
- }, z.core.$strip>, z.ZodObject<{
91
- type: z.ZodLiteral<"file">;
92
- url: z.ZodString;
93
- mediaType: z.ZodString;
94
- fileName: z.ZodOptional<z.ZodString>;
95
- size: z.ZodOptional<z.ZodNumber>;
96
268
  }, z.core.$strip>, z.ZodObject<{
97
269
  type: z.ZodLiteral<"metadata">;
98
270
  source: z.ZodEnum<{
@@ -119,10 +291,99 @@ declare const timelineItemSchema: z.ZodObject<{
119
291
  parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
120
292
  type: z.ZodLiteral<"text">;
121
293
  text: z.ZodString;
294
+ state: z.ZodOptional<z.ZodEnum<{
295
+ streaming: "streaming";
296
+ done: "done";
297
+ }>>;
298
+ }, z.core.$strip>, z.ZodObject<{
299
+ type: z.ZodLiteral<"reasoning">;
300
+ text: z.ZodString;
301
+ state: z.ZodOptional<z.ZodEnum<{
302
+ streaming: "streaming";
303
+ done: "done";
304
+ }>>;
305
+ providerMetadata: z.ZodOptional<z.ZodObject<{
306
+ cossistant: z.ZodOptional<z.ZodObject<{
307
+ visibility: z.ZodOptional<z.ZodEnum<{
308
+ public: "public";
309
+ private: "private";
310
+ }>>;
311
+ progressMessage: z.ZodOptional<z.ZodString>;
312
+ knowledgeId: z.ZodOptional<z.ZodString>;
313
+ }, z.core.$strip>>;
314
+ }, z.core.$loose>>;
315
+ }, z.core.$strip>, z.ZodObject<{
316
+ type: z.ZodString;
317
+ toolCallId: z.ZodString;
318
+ toolName: z.ZodString;
319
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
320
+ output: z.ZodOptional<z.ZodUnknown>;
321
+ state: z.ZodEnum<{
322
+ error: "error";
323
+ partial: "partial";
324
+ result: "result";
325
+ }>;
326
+ errorText: z.ZodOptional<z.ZodString>;
327
+ providerMetadata: z.ZodOptional<z.ZodObject<{
328
+ cossistant: z.ZodOptional<z.ZodObject<{
329
+ visibility: z.ZodOptional<z.ZodEnum<{
330
+ public: "public";
331
+ private: "private";
332
+ }>>;
333
+ progressMessage: z.ZodOptional<z.ZodString>;
334
+ knowledgeId: z.ZodOptional<z.ZodString>;
335
+ }, z.core.$strip>>;
336
+ }, z.core.$loose>>;
337
+ }, z.core.$strip>, z.ZodObject<{
338
+ type: z.ZodLiteral<"source-url">;
339
+ sourceId: z.ZodString;
340
+ url: z.ZodString;
341
+ title: z.ZodOptional<z.ZodString>;
342
+ providerMetadata: z.ZodOptional<z.ZodObject<{
343
+ cossistant: z.ZodOptional<z.ZodObject<{
344
+ visibility: z.ZodOptional<z.ZodEnum<{
345
+ public: "public";
346
+ private: "private";
347
+ }>>;
348
+ progressMessage: z.ZodOptional<z.ZodString>;
349
+ knowledgeId: z.ZodOptional<z.ZodString>;
350
+ }, z.core.$strip>>;
351
+ }, z.core.$loose>>;
352
+ }, z.core.$strip>, z.ZodObject<{
353
+ type: z.ZodLiteral<"source-document">;
354
+ sourceId: z.ZodString;
355
+ mediaType: z.ZodString;
356
+ title: z.ZodString;
357
+ filename: z.ZodOptional<z.ZodString>;
358
+ providerMetadata: z.ZodOptional<z.ZodObject<{
359
+ cossistant: z.ZodOptional<z.ZodObject<{
360
+ visibility: z.ZodOptional<z.ZodEnum<{
361
+ public: "public";
362
+ private: "private";
363
+ }>>;
364
+ progressMessage: z.ZodOptional<z.ZodString>;
365
+ knowledgeId: z.ZodOptional<z.ZodString>;
366
+ }, z.core.$strip>>;
367
+ }, z.core.$loose>>;
368
+ }, z.core.$strip>, z.ZodObject<{
369
+ type: z.ZodLiteral<"step-start">;
370
+ }, z.core.$strip>, z.ZodObject<{
371
+ type: z.ZodLiteral<"file">;
372
+ url: z.ZodString;
373
+ mediaType: z.ZodString;
374
+ filename: z.ZodOptional<z.ZodString>;
375
+ size: z.ZodOptional<z.ZodNumber>;
376
+ }, z.core.$strip>, z.ZodObject<{
377
+ type: z.ZodLiteral<"image">;
378
+ url: z.ZodString;
379
+ mediaType: z.ZodString;
380
+ filename: z.ZodOptional<z.ZodString>;
381
+ size: z.ZodOptional<z.ZodNumber>;
382
+ width: z.ZodOptional<z.ZodNumber>;
383
+ height: z.ZodOptional<z.ZodNumber>;
122
384
  }, z.core.$strip>, z.ZodObject<{
123
385
  type: z.ZodLiteral<"event">;
124
386
  eventType: z.ZodEnum<{
125
- resolved: "resolved";
126
387
  assigned: "assigned";
127
388
  unassigned: "unassigned";
128
389
  participant_requested: "participant_requested";
@@ -132,6 +393,7 @@ declare const timelineItemSchema: z.ZodObject<{
132
393
  priority_changed: "priority_changed";
133
394
  tag_added: "tag_added";
134
395
  tag_removed: "tag_removed";
396
+ resolved: "resolved";
135
397
  reopened: "reopened";
136
398
  visitor_blocked: "visitor_blocked";
137
399
  visitor_unblocked: "visitor_unblocked";
@@ -142,20 +404,6 @@ declare const timelineItemSchema: z.ZodObject<{
142
404
  targetUserId: z.ZodNullable<z.ZodString>;
143
405
  targetAiAgentId: z.ZodNullable<z.ZodString>;
144
406
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
145
- }, z.core.$strip>, z.ZodObject<{
146
- type: z.ZodLiteral<"image">;
147
- url: z.ZodString;
148
- mediaType: z.ZodString;
149
- fileName: z.ZodOptional<z.ZodString>;
150
- size: z.ZodOptional<z.ZodNumber>;
151
- width: z.ZodOptional<z.ZodNumber>;
152
- height: z.ZodOptional<z.ZodNumber>;
153
- }, z.core.$strip>, z.ZodObject<{
154
- type: z.ZodLiteral<"file">;
155
- url: z.ZodString;
156
- mediaType: z.ZodString;
157
- fileName: z.ZodOptional<z.ZodString>;
158
- size: z.ZodOptional<z.ZodNumber>;
159
407
  }, z.core.$strip>, z.ZodObject<{
160
408
  type: z.ZodLiteral<"metadata">;
161
409
  source: z.ZodEnum<{
@@ -173,11 +421,24 @@ declare const timelineItemSchema: z.ZodObject<{
173
421
  type timelineItemSchema = z.infer<typeof timelineItemSchema>;
174
422
  type TimelineItem = z.infer<typeof timelineItemSchema>;
175
423
  type TimelineItemParts = z.infer<typeof timelineItemPartsSchema>;
176
- type TimelinePartText = z.infer<typeof timelinePartTextSchema>;
177
- type TimelinePartImage = z.infer<typeof timelinePartImageSchema>;
178
- type TimelinePartFile = z.infer<typeof timelineFileSchema>;
424
+ type TextPart = z.infer<typeof textPartSchema>;
425
+ type ReasoningPart = z.infer<typeof reasoningPartSchema>;
426
+ type ToolPart = z.infer<typeof toolPartSchema>;
427
+ type SourceUrlPart = z.infer<typeof sourceUrlPartSchema>;
428
+ type SourceDocumentPart = z.infer<typeof sourceDocumentPartSchema>;
429
+ type StepStartPart = z.infer<typeof stepStartPartSchema>;
430
+ type FilePart = z.infer<typeof filePartSchema>;
431
+ type ImagePart = z.infer<typeof imagePartSchema>;
179
432
  type TimelinePartEvent = z.infer<typeof timelinePartEventSchema>;
180
433
  type TimelinePartMetadata = z.infer<typeof timelinePartMetadataSchema>;
434
+ /** @deprecated Use `FilePart` instead */
435
+ type TimelinePartFile = FilePart;
436
+ /** @deprecated Use `ImagePart` instead */
437
+ type TimelinePartImage = ImagePart;
438
+ /** @deprecated Use `TextPart` instead */
439
+ type TimelinePartText = TextPart;
440
+ type CossistantProviderMetadata = z.infer<typeof cossistantProviderMetadataSchema>;
441
+ type ToolState = z.infer<typeof toolStateSchema>;
181
442
  declare const getConversationTimelineItemsRequestSchema: z.ZodObject<{
182
443
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
183
444
  cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -202,10 +463,99 @@ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
202
463
  parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
203
464
  type: z.ZodLiteral<"text">;
204
465
  text: z.ZodString;
466
+ state: z.ZodOptional<z.ZodEnum<{
467
+ streaming: "streaming";
468
+ done: "done";
469
+ }>>;
470
+ }, z.core.$strip>, z.ZodObject<{
471
+ type: z.ZodLiteral<"reasoning">;
472
+ text: z.ZodString;
473
+ state: z.ZodOptional<z.ZodEnum<{
474
+ streaming: "streaming";
475
+ done: "done";
476
+ }>>;
477
+ providerMetadata: z.ZodOptional<z.ZodObject<{
478
+ cossistant: z.ZodOptional<z.ZodObject<{
479
+ visibility: z.ZodOptional<z.ZodEnum<{
480
+ public: "public";
481
+ private: "private";
482
+ }>>;
483
+ progressMessage: z.ZodOptional<z.ZodString>;
484
+ knowledgeId: z.ZodOptional<z.ZodString>;
485
+ }, z.core.$strip>>;
486
+ }, z.core.$loose>>;
487
+ }, z.core.$strip>, z.ZodObject<{
488
+ type: z.ZodString;
489
+ toolCallId: z.ZodString;
490
+ toolName: z.ZodString;
491
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
492
+ output: z.ZodOptional<z.ZodUnknown>;
493
+ state: z.ZodEnum<{
494
+ error: "error";
495
+ partial: "partial";
496
+ result: "result";
497
+ }>;
498
+ errorText: z.ZodOptional<z.ZodString>;
499
+ providerMetadata: z.ZodOptional<z.ZodObject<{
500
+ cossistant: z.ZodOptional<z.ZodObject<{
501
+ visibility: z.ZodOptional<z.ZodEnum<{
502
+ public: "public";
503
+ private: "private";
504
+ }>>;
505
+ progressMessage: z.ZodOptional<z.ZodString>;
506
+ knowledgeId: z.ZodOptional<z.ZodString>;
507
+ }, z.core.$strip>>;
508
+ }, z.core.$loose>>;
509
+ }, z.core.$strip>, z.ZodObject<{
510
+ type: z.ZodLiteral<"source-url">;
511
+ sourceId: z.ZodString;
512
+ url: z.ZodString;
513
+ title: z.ZodOptional<z.ZodString>;
514
+ providerMetadata: z.ZodOptional<z.ZodObject<{
515
+ cossistant: z.ZodOptional<z.ZodObject<{
516
+ visibility: z.ZodOptional<z.ZodEnum<{
517
+ public: "public";
518
+ private: "private";
519
+ }>>;
520
+ progressMessage: z.ZodOptional<z.ZodString>;
521
+ knowledgeId: z.ZodOptional<z.ZodString>;
522
+ }, z.core.$strip>>;
523
+ }, z.core.$loose>>;
524
+ }, z.core.$strip>, z.ZodObject<{
525
+ type: z.ZodLiteral<"source-document">;
526
+ sourceId: z.ZodString;
527
+ mediaType: z.ZodString;
528
+ title: z.ZodString;
529
+ filename: z.ZodOptional<z.ZodString>;
530
+ providerMetadata: z.ZodOptional<z.ZodObject<{
531
+ cossistant: z.ZodOptional<z.ZodObject<{
532
+ visibility: z.ZodOptional<z.ZodEnum<{
533
+ public: "public";
534
+ private: "private";
535
+ }>>;
536
+ progressMessage: z.ZodOptional<z.ZodString>;
537
+ knowledgeId: z.ZodOptional<z.ZodString>;
538
+ }, z.core.$strip>>;
539
+ }, z.core.$loose>>;
540
+ }, z.core.$strip>, z.ZodObject<{
541
+ type: z.ZodLiteral<"step-start">;
542
+ }, z.core.$strip>, z.ZodObject<{
543
+ type: z.ZodLiteral<"file">;
544
+ url: z.ZodString;
545
+ mediaType: z.ZodString;
546
+ filename: z.ZodOptional<z.ZodString>;
547
+ size: z.ZodOptional<z.ZodNumber>;
548
+ }, z.core.$strip>, z.ZodObject<{
549
+ type: z.ZodLiteral<"image">;
550
+ url: z.ZodString;
551
+ mediaType: z.ZodString;
552
+ filename: z.ZodOptional<z.ZodString>;
553
+ size: z.ZodOptional<z.ZodNumber>;
554
+ width: z.ZodOptional<z.ZodNumber>;
555
+ height: z.ZodOptional<z.ZodNumber>;
205
556
  }, z.core.$strip>, z.ZodObject<{
206
557
  type: z.ZodLiteral<"event">;
207
558
  eventType: z.ZodEnum<{
208
- resolved: "resolved";
209
559
  assigned: "assigned";
210
560
  unassigned: "unassigned";
211
561
  participant_requested: "participant_requested";
@@ -215,6 +565,7 @@ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
215
565
  priority_changed: "priority_changed";
216
566
  tag_added: "tag_added";
217
567
  tag_removed: "tag_removed";
568
+ resolved: "resolved";
218
569
  reopened: "reopened";
219
570
  visitor_blocked: "visitor_blocked";
220
571
  visitor_unblocked: "visitor_unblocked";
@@ -225,20 +576,6 @@ declare const getConversationTimelineItemsResponseSchema: z.ZodObject<{
225
576
  targetUserId: z.ZodNullable<z.ZodString>;
226
577
  targetAiAgentId: z.ZodNullable<z.ZodString>;
227
578
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
228
- }, z.core.$strip>, z.ZodObject<{
229
- type: z.ZodLiteral<"image">;
230
- url: z.ZodString;
231
- mediaType: z.ZodString;
232
- fileName: z.ZodOptional<z.ZodString>;
233
- size: z.ZodOptional<z.ZodNumber>;
234
- width: z.ZodOptional<z.ZodNumber>;
235
- height: z.ZodOptional<z.ZodNumber>;
236
- }, z.core.$strip>, z.ZodObject<{
237
- type: z.ZodLiteral<"file">;
238
- url: z.ZodString;
239
- mediaType: z.ZodString;
240
- fileName: z.ZodOptional<z.ZodString>;
241
- size: z.ZodOptional<z.ZodNumber>;
242
579
  }, z.core.$strip>, z.ZodObject<{
243
580
  type: z.ZodLiteral<"metadata">;
244
581
  source: z.ZodEnum<{
@@ -269,10 +606,99 @@ declare const sendTimelineItemRequestSchema: z.ZodObject<{
269
606
  parts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
270
607
  type: z.ZodLiteral<"text">;
271
608
  text: z.ZodString;
609
+ state: z.ZodOptional<z.ZodEnum<{
610
+ streaming: "streaming";
611
+ done: "done";
612
+ }>>;
613
+ }, z.core.$strip>, z.ZodObject<{
614
+ type: z.ZodLiteral<"reasoning">;
615
+ text: z.ZodString;
616
+ state: z.ZodOptional<z.ZodEnum<{
617
+ streaming: "streaming";
618
+ done: "done";
619
+ }>>;
620
+ providerMetadata: z.ZodOptional<z.ZodObject<{
621
+ cossistant: z.ZodOptional<z.ZodObject<{
622
+ visibility: z.ZodOptional<z.ZodEnum<{
623
+ public: "public";
624
+ private: "private";
625
+ }>>;
626
+ progressMessage: z.ZodOptional<z.ZodString>;
627
+ knowledgeId: z.ZodOptional<z.ZodString>;
628
+ }, z.core.$strip>>;
629
+ }, z.core.$loose>>;
630
+ }, z.core.$strip>, z.ZodObject<{
631
+ type: z.ZodString;
632
+ toolCallId: z.ZodString;
633
+ toolName: z.ZodString;
634
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
635
+ output: z.ZodOptional<z.ZodUnknown>;
636
+ state: z.ZodEnum<{
637
+ error: "error";
638
+ partial: "partial";
639
+ result: "result";
640
+ }>;
641
+ errorText: z.ZodOptional<z.ZodString>;
642
+ providerMetadata: z.ZodOptional<z.ZodObject<{
643
+ cossistant: z.ZodOptional<z.ZodObject<{
644
+ visibility: z.ZodOptional<z.ZodEnum<{
645
+ public: "public";
646
+ private: "private";
647
+ }>>;
648
+ progressMessage: z.ZodOptional<z.ZodString>;
649
+ knowledgeId: z.ZodOptional<z.ZodString>;
650
+ }, z.core.$strip>>;
651
+ }, z.core.$loose>>;
652
+ }, z.core.$strip>, z.ZodObject<{
653
+ type: z.ZodLiteral<"source-url">;
654
+ sourceId: z.ZodString;
655
+ url: z.ZodString;
656
+ title: z.ZodOptional<z.ZodString>;
657
+ providerMetadata: z.ZodOptional<z.ZodObject<{
658
+ cossistant: z.ZodOptional<z.ZodObject<{
659
+ visibility: z.ZodOptional<z.ZodEnum<{
660
+ public: "public";
661
+ private: "private";
662
+ }>>;
663
+ progressMessage: z.ZodOptional<z.ZodString>;
664
+ knowledgeId: z.ZodOptional<z.ZodString>;
665
+ }, z.core.$strip>>;
666
+ }, z.core.$loose>>;
667
+ }, z.core.$strip>, z.ZodObject<{
668
+ type: z.ZodLiteral<"source-document">;
669
+ sourceId: z.ZodString;
670
+ mediaType: z.ZodString;
671
+ title: z.ZodString;
672
+ filename: z.ZodOptional<z.ZodString>;
673
+ providerMetadata: z.ZodOptional<z.ZodObject<{
674
+ cossistant: z.ZodOptional<z.ZodObject<{
675
+ visibility: z.ZodOptional<z.ZodEnum<{
676
+ public: "public";
677
+ private: "private";
678
+ }>>;
679
+ progressMessage: z.ZodOptional<z.ZodString>;
680
+ knowledgeId: z.ZodOptional<z.ZodString>;
681
+ }, z.core.$strip>>;
682
+ }, z.core.$loose>>;
683
+ }, z.core.$strip>, z.ZodObject<{
684
+ type: z.ZodLiteral<"step-start">;
685
+ }, z.core.$strip>, z.ZodObject<{
686
+ type: z.ZodLiteral<"file">;
687
+ url: z.ZodString;
688
+ mediaType: z.ZodString;
689
+ filename: z.ZodOptional<z.ZodString>;
690
+ size: z.ZodOptional<z.ZodNumber>;
691
+ }, z.core.$strip>, z.ZodObject<{
692
+ type: z.ZodLiteral<"image">;
693
+ url: z.ZodString;
694
+ mediaType: z.ZodString;
695
+ filename: z.ZodOptional<z.ZodString>;
696
+ size: z.ZodOptional<z.ZodNumber>;
697
+ width: z.ZodOptional<z.ZodNumber>;
698
+ height: z.ZodOptional<z.ZodNumber>;
272
699
  }, z.core.$strip>, z.ZodObject<{
273
700
  type: z.ZodLiteral<"event">;
274
701
  eventType: z.ZodEnum<{
275
- resolved: "resolved";
276
702
  assigned: "assigned";
277
703
  unassigned: "unassigned";
278
704
  participant_requested: "participant_requested";
@@ -282,6 +708,7 @@ declare const sendTimelineItemRequestSchema: z.ZodObject<{
282
708
  priority_changed: "priority_changed";
283
709
  tag_added: "tag_added";
284
710
  tag_removed: "tag_removed";
711
+ resolved: "resolved";
285
712
  reopened: "reopened";
286
713
  visitor_blocked: "visitor_blocked";
287
714
  visitor_unblocked: "visitor_unblocked";
@@ -292,20 +719,6 @@ declare const sendTimelineItemRequestSchema: z.ZodObject<{
292
719
  targetUserId: z.ZodNullable<z.ZodString>;
293
720
  targetAiAgentId: z.ZodNullable<z.ZodString>;
294
721
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
295
- }, z.core.$strip>, z.ZodObject<{
296
- type: z.ZodLiteral<"image">;
297
- url: z.ZodString;
298
- mediaType: z.ZodString;
299
- fileName: z.ZodOptional<z.ZodString>;
300
- size: z.ZodOptional<z.ZodNumber>;
301
- width: z.ZodOptional<z.ZodNumber>;
302
- height: z.ZodOptional<z.ZodNumber>;
303
- }, z.core.$strip>, z.ZodObject<{
304
- type: z.ZodLiteral<"file">;
305
- url: z.ZodString;
306
- mediaType: z.ZodString;
307
- fileName: z.ZodOptional<z.ZodString>;
308
- size: z.ZodOptional<z.ZodNumber>;
309
722
  }, z.core.$strip>, z.ZodObject<{
310
723
  type: z.ZodLiteral<"metadata">;
311
724
  source: z.ZodEnum<{
@@ -345,10 +758,99 @@ declare const sendTimelineItemResponseSchema: z.ZodObject<{
345
758
  parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
346
759
  type: z.ZodLiteral<"text">;
347
760
  text: z.ZodString;
761
+ state: z.ZodOptional<z.ZodEnum<{
762
+ streaming: "streaming";
763
+ done: "done";
764
+ }>>;
765
+ }, z.core.$strip>, z.ZodObject<{
766
+ type: z.ZodLiteral<"reasoning">;
767
+ text: z.ZodString;
768
+ state: z.ZodOptional<z.ZodEnum<{
769
+ streaming: "streaming";
770
+ done: "done";
771
+ }>>;
772
+ providerMetadata: z.ZodOptional<z.ZodObject<{
773
+ cossistant: z.ZodOptional<z.ZodObject<{
774
+ visibility: z.ZodOptional<z.ZodEnum<{
775
+ public: "public";
776
+ private: "private";
777
+ }>>;
778
+ progressMessage: z.ZodOptional<z.ZodString>;
779
+ knowledgeId: z.ZodOptional<z.ZodString>;
780
+ }, z.core.$strip>>;
781
+ }, z.core.$loose>>;
782
+ }, z.core.$strip>, z.ZodObject<{
783
+ type: z.ZodString;
784
+ toolCallId: z.ZodString;
785
+ toolName: z.ZodString;
786
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
787
+ output: z.ZodOptional<z.ZodUnknown>;
788
+ state: z.ZodEnum<{
789
+ error: "error";
790
+ partial: "partial";
791
+ result: "result";
792
+ }>;
793
+ errorText: z.ZodOptional<z.ZodString>;
794
+ providerMetadata: z.ZodOptional<z.ZodObject<{
795
+ cossistant: z.ZodOptional<z.ZodObject<{
796
+ visibility: z.ZodOptional<z.ZodEnum<{
797
+ public: "public";
798
+ private: "private";
799
+ }>>;
800
+ progressMessage: z.ZodOptional<z.ZodString>;
801
+ knowledgeId: z.ZodOptional<z.ZodString>;
802
+ }, z.core.$strip>>;
803
+ }, z.core.$loose>>;
804
+ }, z.core.$strip>, z.ZodObject<{
805
+ type: z.ZodLiteral<"source-url">;
806
+ sourceId: z.ZodString;
807
+ url: z.ZodString;
808
+ title: z.ZodOptional<z.ZodString>;
809
+ providerMetadata: z.ZodOptional<z.ZodObject<{
810
+ cossistant: z.ZodOptional<z.ZodObject<{
811
+ visibility: z.ZodOptional<z.ZodEnum<{
812
+ public: "public";
813
+ private: "private";
814
+ }>>;
815
+ progressMessage: z.ZodOptional<z.ZodString>;
816
+ knowledgeId: z.ZodOptional<z.ZodString>;
817
+ }, z.core.$strip>>;
818
+ }, z.core.$loose>>;
819
+ }, z.core.$strip>, z.ZodObject<{
820
+ type: z.ZodLiteral<"source-document">;
821
+ sourceId: z.ZodString;
822
+ mediaType: z.ZodString;
823
+ title: z.ZodString;
824
+ filename: z.ZodOptional<z.ZodString>;
825
+ providerMetadata: z.ZodOptional<z.ZodObject<{
826
+ cossistant: z.ZodOptional<z.ZodObject<{
827
+ visibility: z.ZodOptional<z.ZodEnum<{
828
+ public: "public";
829
+ private: "private";
830
+ }>>;
831
+ progressMessage: z.ZodOptional<z.ZodString>;
832
+ knowledgeId: z.ZodOptional<z.ZodString>;
833
+ }, z.core.$strip>>;
834
+ }, z.core.$loose>>;
835
+ }, z.core.$strip>, z.ZodObject<{
836
+ type: z.ZodLiteral<"step-start">;
837
+ }, z.core.$strip>, z.ZodObject<{
838
+ type: z.ZodLiteral<"file">;
839
+ url: z.ZodString;
840
+ mediaType: z.ZodString;
841
+ filename: z.ZodOptional<z.ZodString>;
842
+ size: z.ZodOptional<z.ZodNumber>;
843
+ }, z.core.$strip>, z.ZodObject<{
844
+ type: z.ZodLiteral<"image">;
845
+ url: z.ZodString;
846
+ mediaType: z.ZodString;
847
+ filename: z.ZodOptional<z.ZodString>;
848
+ size: z.ZodOptional<z.ZodNumber>;
849
+ width: z.ZodOptional<z.ZodNumber>;
850
+ height: z.ZodOptional<z.ZodNumber>;
348
851
  }, z.core.$strip>, z.ZodObject<{
349
852
  type: z.ZodLiteral<"event">;
350
853
  eventType: z.ZodEnum<{
351
- resolved: "resolved";
352
854
  assigned: "assigned";
353
855
  unassigned: "unassigned";
354
856
  participant_requested: "participant_requested";
@@ -358,6 +860,7 @@ declare const sendTimelineItemResponseSchema: z.ZodObject<{
358
860
  priority_changed: "priority_changed";
359
861
  tag_added: "tag_added";
360
862
  tag_removed: "tag_removed";
863
+ resolved: "resolved";
361
864
  reopened: "reopened";
362
865
  visitor_blocked: "visitor_blocked";
363
866
  visitor_unblocked: "visitor_unblocked";
@@ -368,20 +871,6 @@ declare const sendTimelineItemResponseSchema: z.ZodObject<{
368
871
  targetUserId: z.ZodNullable<z.ZodString>;
369
872
  targetAiAgentId: z.ZodNullable<z.ZodString>;
370
873
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
371
- }, z.core.$strip>, z.ZodObject<{
372
- type: z.ZodLiteral<"image">;
373
- url: z.ZodString;
374
- mediaType: z.ZodString;
375
- fileName: z.ZodOptional<z.ZodString>;
376
- size: z.ZodOptional<z.ZodNumber>;
377
- width: z.ZodOptional<z.ZodNumber>;
378
- height: z.ZodOptional<z.ZodNumber>;
379
- }, z.core.$strip>, z.ZodObject<{
380
- type: z.ZodLiteral<"file">;
381
- url: z.ZodString;
382
- mediaType: z.ZodString;
383
- fileName: z.ZodOptional<z.ZodString>;
384
- size: z.ZodOptional<z.ZodNumber>;
385
874
  }, z.core.$strip>, z.ZodObject<{
386
875
  type: z.ZodLiteral<"metadata">;
387
876
  source: z.ZodEnum<{
@@ -399,5 +888,5 @@ declare const sendTimelineItemResponseSchema: z.ZodObject<{
399
888
  }, z.core.$strip>;
400
889
  type SendTimelineItemResponse = z.infer<typeof sendTimelineItemResponseSchema>;
401
890
  //#endregion
402
- export { GetConversationTimelineItemsRequest, GetConversationTimelineItemsResponse, SendTimelineItemRequest, SendTimelineItemResponse, TimelineItem, TimelineItemParts, TimelinePartEvent, TimelinePartFile, TimelinePartImage, TimelinePartMetadata, TimelinePartText, getConversationTimelineItemsRequestSchema, getConversationTimelineItemsResponseSchema, sendTimelineItemRequestSchema, sendTimelineItemResponseSchema, timelineItemPartsSchema, timelineItemSchema };
891
+ export { CossistantProviderMetadata, FilePart, GetConversationTimelineItemsRequest, GetConversationTimelineItemsResponse, ImagePart, ReasoningPart, SendTimelineItemRequest, SendTimelineItemResponse, SourceDocumentPart, SourceUrlPart, StepStartPart, TextPart, TimelineItem, TimelineItemParts, TimelinePartEvent, TimelinePartFile, TimelinePartImage, TimelinePartMetadata, TimelinePartText, ToolPart, ToolState, cossistantProviderMetadataSchema, filePartSchema, getConversationTimelineItemsRequestSchema, getConversationTimelineItemsResponseSchema, imagePartSchema, reasoningPartSchema, sendTimelineItemRequestSchema, sendTimelineItemResponseSchema, sourceDocumentPartSchema, sourceUrlPartSchema, stepStartPartSchema, textPartSchema, timelineItemPartsSchema, timelineItemSchema, timelinePartEventSchema, timelinePartMetadataSchema, toolPartSchema, toolStateSchema };
403
892
  //# sourceMappingURL=timeline-item.d.ts.map