@cossistant/react 0.0.31 → 0.0.33

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 (145) hide show
  1. package/hooks/index.d.ts +2 -2
  2. package/hooks/index.js +2 -2
  3. package/hooks/private/use-grouped-messages.d.ts +27 -2
  4. package/hooks/private/use-grouped-messages.d.ts.map +1 -1
  5. package/hooks/private/use-grouped-messages.js +156 -103
  6. package/hooks/private/use-grouped-messages.js.map +1 -1
  7. package/hooks/use-new-message-sound.d.ts.map +1 -1
  8. package/hooks/use-new-message-sound.js +2 -2
  9. package/hooks/use-new-message-sound.js.map +1 -1
  10. package/hooks/use-send-message.js +1 -1
  11. package/hooks/use-send-message.js.map +1 -1
  12. package/hooks/use-typing-sound.d.ts.map +1 -1
  13. package/hooks/use-typing-sound.js +2 -2
  14. package/hooks/use-typing-sound.js.map +1 -1
  15. package/index.d.ts +2 -2
  16. package/index.js +2 -2
  17. package/package.json +4 -6
  18. package/packages/tiny-markdown/src/context/index.d.ts +1 -0
  19. package/packages/tiny-markdown/src/context/tiny-markdown-context.d.ts +3 -0
  20. package/packages/tiny-markdown/src/hooks/index.d.ts +4 -0
  21. package/packages/tiny-markdown/src/hooks/use-caret-position.d.ts +1 -0
  22. package/packages/tiny-markdown/src/hooks/use-tiny-markdown.d.ts +1 -0
  23. package/packages/tiny-markdown/src/hooks/use-tiny-mention.d.ts +1 -0
  24. package/packages/tiny-markdown/src/hooks/use-tiny-shortcuts.d.ts +1 -0
  25. package/packages/tiny-markdown/src/index.d.ts +4 -0
  26. package/packages/tiny-markdown/src/types.d.ts +75 -0
  27. package/packages/tiny-markdown/src/types.d.ts.map +1 -0
  28. package/packages/tiny-markdown/src/utils/index.d.ts +3 -0
  29. package/packages/tiny-markdown/src/utils/markdown-parser.d.ts +1 -0
  30. package/packages/tiny-markdown/src/utils/mention-parser.d.ts +1 -0
  31. package/packages/tiny-markdown/src/utils/merge-refs.d.ts +1 -0
  32. package/packages/types/src/api/conversation.d.ts +316 -12
  33. package/packages/types/src/api/conversation.d.ts.map +1 -1
  34. package/packages/types/src/api/timeline-item.d.ts +236 -9
  35. package/packages/types/src/api/timeline-item.d.ts.map +1 -1
  36. package/packages/types/src/realtime-events.d.ts +259 -13
  37. package/packages/types/src/realtime-events.d.ts.map +1 -1
  38. package/packages/types/src/schemas.d.ts +79 -3
  39. package/packages/types/src/schemas.d.ts.map +1 -1
  40. package/primitives/avatar/image.d.ts +1 -1
  41. package/primitives/command-block-utils.d.ts +26 -0
  42. package/primitives/command-block-utils.d.ts.map +1 -0
  43. package/primitives/command-block-utils.js +310 -0
  44. package/primitives/command-block-utils.js.map +1 -0
  45. package/primitives/index.d.ts +7 -3
  46. package/primitives/index.js +11 -2
  47. package/primitives/index.parts.d.ts +6 -2
  48. package/primitives/index.parts.js +5 -1
  49. package/primitives/multimodal-input.d.ts +2 -2
  50. package/primitives/multimodal-input.d.ts.map +1 -1
  51. package/primitives/timeline-code-block.d.ts +32 -0
  52. package/primitives/timeline-code-block.d.ts.map +1 -0
  53. package/primitives/timeline-code-block.js +66 -0
  54. package/primitives/timeline-code-block.js.map +1 -0
  55. package/primitives/timeline-command-block.d.ts +29 -0
  56. package/primitives/timeline-command-block.d.ts.map +1 -0
  57. package/primitives/timeline-command-block.js +97 -0
  58. package/primitives/timeline-command-block.js.map +1 -0
  59. package/primitives/timeline-item-group.d.ts.map +1 -1
  60. package/primitives/timeline-item-group.js +5 -15
  61. package/primitives/timeline-item-group.js.map +1 -1
  62. package/primitives/timeline-item.d.ts +23 -3
  63. package/primitives/timeline-item.d.ts.map +1 -1
  64. package/primitives/timeline-item.js +151 -80
  65. package/primitives/timeline-item.js.map +1 -1
  66. package/primitives/timeline-message-layout.d.ts +9 -0
  67. package/primitives/timeline-message-layout.d.ts.map +1 -0
  68. package/primitives/timeline-message-layout.js +20 -0
  69. package/primitives/timeline-message-layout.js.map +1 -0
  70. package/provider.d.ts.map +1 -1
  71. package/provider.js +6 -3
  72. package/provider.js.map +1 -1
  73. package/realtime/event-filter.js +4 -3
  74. package/realtime/event-filter.js.map +1 -1
  75. package/sounds/sound-data.d.ts +6 -0
  76. package/sounds/sound-data.d.ts.map +1 -0
  77. package/sounds/sound-data.js +7 -0
  78. package/sounds/sound-data.js.map +1 -0
  79. package/support/components/avatar-stack.js +1 -1
  80. package/support/components/avatar-stack.js.map +1 -1
  81. package/support/components/avatar.d.ts +1 -2
  82. package/support/components/avatar.d.ts.map +1 -1
  83. package/support/components/avatar.js +9 -7
  84. package/support/components/avatar.js.map +1 -1
  85. package/support/components/button.d.ts +2 -2
  86. package/support/components/button.d.ts.map +1 -1
  87. package/support/components/button.js +1 -0
  88. package/support/components/button.js.map +1 -1
  89. package/support/components/conversation-button-link.js +2 -1
  90. package/support/components/conversation-button-link.js.map +1 -1
  91. package/support/components/conversation-event.d.ts +3 -0
  92. package/support/components/conversation-event.d.ts.map +1 -1
  93. package/support/components/conversation-event.js +46 -15
  94. package/support/components/conversation-event.js.map +1 -1
  95. package/support/components/conversation-resolved-feedback.d.ts +1 -1
  96. package/support/components/conversation-resolved-feedback.d.ts.map +1 -1
  97. package/support/components/conversation-resolved-feedback.js +56 -13
  98. package/support/components/conversation-resolved-feedback.js.map +1 -1
  99. package/support/components/conversation-timeline.d.ts.map +1 -1
  100. package/support/components/conversation-timeline.js +12 -0
  101. package/support/components/conversation-timeline.js.map +1 -1
  102. package/support/components/index.d.ts +2 -1
  103. package/support/components/index.js +2 -1
  104. package/support/components/timeline-activity-group.d.ts +25 -0
  105. package/support/components/timeline-activity-group.d.ts.map +1 -0
  106. package/support/components/timeline-activity-group.js +104 -0
  107. package/support/components/timeline-activity-group.js.map +1 -0
  108. package/support/components/timeline-code-block.d.ts +14 -0
  109. package/support/components/timeline-code-block.d.ts.map +1 -0
  110. package/support/components/timeline-code-block.js +44 -0
  111. package/support/components/timeline-code-block.js.map +1 -0
  112. package/support/components/timeline-command-block.d.ts +12 -0
  113. package/support/components/timeline-command-block.d.ts.map +1 -0
  114. package/support/components/timeline-command-block.js +42 -0
  115. package/support/components/timeline-command-block.js.map +1 -0
  116. package/support/components/timeline-message-item.d.ts +2 -1
  117. package/support/components/timeline-message-item.d.ts.map +1 -1
  118. package/support/components/timeline-message-item.js +23 -3
  119. package/support/components/timeline-message-item.js.map +1 -1
  120. package/support/components/typing-indicator.d.ts.map +1 -1
  121. package/support/components/typing-indicator.js +15 -7
  122. package/support/components/typing-indicator.js.map +1 -1
  123. package/support/index.d.ts +4 -4
  124. package/support/pages/conversation-history.js +1 -1
  125. package/support/pages/conversation.js +4 -2
  126. package/support/pages/conversation.js.map +1 -1
  127. package/support/pages/home.js +1 -1
  128. package/support/store/support-store.d.ts +5 -5
  129. package/support/text/locales/en.js +3 -0
  130. package/support/text/locales/en.js.map +1 -1
  131. package/support/text/locales/es.js +3 -0
  132. package/support/text/locales/es.js.map +1 -1
  133. package/support/text/locales/fr.js +3 -0
  134. package/support/text/locales/fr.js.map +1 -1
  135. package/support/text/locales/keys.d.ts +9 -0
  136. package/support/text/locales/keys.d.ts.map +1 -1
  137. package/support/text/locales/keys.js +3 -0
  138. package/support/text/locales/keys.js.map +1 -1
  139. package/utils/metadata-hash.d.ts +1 -1
  140. package/utils/metadata-hash.js +9 -4
  141. package/utils/metadata-hash.js.map +1 -1
  142. package/utils/timeline-item-sender.d.ts +17 -0
  143. package/utils/timeline-item-sender.d.ts.map +1 -0
  144. package/utils/timeline-item-sender.js +43 -0
  145. package/utils/timeline-item-sender.js.map +1 -0
@@ -58,8 +58,8 @@ declare const realtimeSchema: {
58
58
  aiAgentId: ZodNullable<ZodString>;
59
59
  lastSeenAt: ZodString;
60
60
  actorType: ZodEnum<{
61
- visitor: "visitor";
62
61
  user: "user";
62
+ visitor: "visitor";
63
63
  ai_agent: "ai_agent";
64
64
  }>;
65
65
  actorId: ZodString;
@@ -92,6 +92,7 @@ declare const realtimeSchema: {
92
92
  message: "message";
93
93
  event: "event";
94
94
  identification: "identification";
95
+ tool: "tool";
95
96
  }>;
96
97
  text: ZodNullable<ZodString>;
97
98
  parts: ZodArray<ZodUnknown>;
@@ -137,6 +138,7 @@ declare const realtimeSchema: {
137
138
  message: "message";
138
139
  event: "event";
139
140
  identification: "identification";
141
+ tool: "tool";
140
142
  }>;
141
143
  text: ZodNullable<ZodString>;
142
144
  tool: ZodOptional<ZodNullable<ZodString>>;
@@ -144,15 +146,15 @@ declare const realtimeSchema: {
144
146
  type: ZodLiteral<"text">;
145
147
  text: ZodString;
146
148
  state: ZodOptional<ZodEnum<{
147
- streaming: "streaming";
148
149
  done: "done";
150
+ streaming: "streaming";
149
151
  }>>;
150
152
  }, $strip>, ZodObject<{
151
153
  type: ZodLiteral<"reasoning">;
152
154
  text: ZodString;
153
155
  state: ZodOptional<ZodEnum<{
154
- streaming: "streaming";
155
156
  done: "done";
157
+ streaming: "streaming";
156
158
  }>>;
157
159
  providerMetadata: ZodOptional<ZodObject<{
158
160
  cossistant: ZodOptional<ZodObject<{
@@ -162,6 +164,19 @@ declare const realtimeSchema: {
162
164
  }>>;
163
165
  progressMessage: ZodOptional<ZodString>;
164
166
  knowledgeId: ZodOptional<ZodString>;
167
+ toolTimeline: ZodOptional<ZodObject<{
168
+ logType: ZodEnum<{
169
+ log: "log";
170
+ customer_facing: "customer_facing";
171
+ decision: "decision";
172
+ }>;
173
+ triggerMessageId: ZodString;
174
+ workflowRunId: ZodString;
175
+ triggerVisibility: ZodOptional<ZodEnum<{
176
+ public: "public";
177
+ private: "private";
178
+ }>>;
179
+ }, $strip>>;
165
180
  }, $strip>>;
166
181
  }, $loose>>;
167
182
  }, $strip>, ZodObject<{
@@ -171,11 +186,34 @@ declare const realtimeSchema: {
171
186
  input: ZodRecord<ZodString, ZodUnknown>;
172
187
  output: ZodOptional<ZodUnknown>;
173
188
  state: ZodEnum<{
189
+ result: "result";
174
190
  error: "error";
175
191
  partial: "partial";
176
- result: "result";
177
192
  }>;
178
193
  errorText: ZodOptional<ZodString>;
194
+ callProviderMetadata: ZodOptional<ZodObject<{
195
+ cossistant: ZodOptional<ZodObject<{
196
+ visibility: ZodOptional<ZodEnum<{
197
+ public: "public";
198
+ private: "private";
199
+ }>>;
200
+ progressMessage: ZodOptional<ZodString>;
201
+ knowledgeId: ZodOptional<ZodString>;
202
+ toolTimeline: ZodOptional<ZodObject<{
203
+ logType: ZodEnum<{
204
+ log: "log";
205
+ customer_facing: "customer_facing";
206
+ decision: "decision";
207
+ }>;
208
+ triggerMessageId: ZodString;
209
+ workflowRunId: ZodString;
210
+ triggerVisibility: ZodOptional<ZodEnum<{
211
+ public: "public";
212
+ private: "private";
213
+ }>>;
214
+ }, $strip>>;
215
+ }, $strip>>;
216
+ }, $loose>>;
179
217
  providerMetadata: ZodOptional<ZodObject<{
180
218
  cossistant: ZodOptional<ZodObject<{
181
219
  visibility: ZodOptional<ZodEnum<{
@@ -184,6 +222,19 @@ declare const realtimeSchema: {
184
222
  }>>;
185
223
  progressMessage: ZodOptional<ZodString>;
186
224
  knowledgeId: ZodOptional<ZodString>;
225
+ toolTimeline: ZodOptional<ZodObject<{
226
+ logType: ZodEnum<{
227
+ log: "log";
228
+ customer_facing: "customer_facing";
229
+ decision: "decision";
230
+ }>;
231
+ triggerMessageId: ZodString;
232
+ workflowRunId: ZodString;
233
+ triggerVisibility: ZodOptional<ZodEnum<{
234
+ public: "public";
235
+ private: "private";
236
+ }>>;
237
+ }, $strip>>;
187
238
  }, $strip>>;
188
239
  }, $loose>>;
189
240
  }, $strip>, ZodObject<{
@@ -199,6 +250,19 @@ declare const realtimeSchema: {
199
250
  }>>;
200
251
  progressMessage: ZodOptional<ZodString>;
201
252
  knowledgeId: ZodOptional<ZodString>;
253
+ toolTimeline: ZodOptional<ZodObject<{
254
+ logType: ZodEnum<{
255
+ log: "log";
256
+ customer_facing: "customer_facing";
257
+ decision: "decision";
258
+ }>;
259
+ triggerMessageId: ZodString;
260
+ workflowRunId: ZodString;
261
+ triggerVisibility: ZodOptional<ZodEnum<{
262
+ public: "public";
263
+ private: "private";
264
+ }>>;
265
+ }, $strip>>;
202
266
  }, $strip>>;
203
267
  }, $loose>>;
204
268
  }, $strip>, ZodObject<{
@@ -215,6 +279,19 @@ declare const realtimeSchema: {
215
279
  }>>;
216
280
  progressMessage: ZodOptional<ZodString>;
217
281
  knowledgeId: ZodOptional<ZodString>;
282
+ toolTimeline: ZodOptional<ZodObject<{
283
+ logType: ZodEnum<{
284
+ log: "log";
285
+ customer_facing: "customer_facing";
286
+ decision: "decision";
287
+ }>;
288
+ triggerMessageId: ZodString;
289
+ workflowRunId: ZodString;
290
+ triggerVisibility: ZodOptional<ZodEnum<{
291
+ public: "public";
292
+ private: "private";
293
+ }>>;
294
+ }, $strip>>;
218
295
  }, $strip>>;
219
296
  }, $loose>>;
220
297
  }, $strip>, ZodObject<{
@@ -279,9 +356,9 @@ declare const realtimeSchema: {
279
356
  spam: "spam";
280
357
  }>;
281
358
  priority: ZodEnum<{
282
- normal: "normal";
283
359
  high: "high";
284
360
  low: "low";
361
+ normal: "normal";
285
362
  urgent: "urgent";
286
363
  }>;
287
364
  organizationId: ZodString;
@@ -334,6 +411,7 @@ declare const realtimeSchema: {
334
411
  message: "message";
335
412
  event: "event";
336
413
  identification: "identification";
414
+ tool: "tool";
337
415
  }>;
338
416
  text: ZodNullable<ZodString>;
339
417
  tool: ZodOptional<ZodNullable<ZodString>>;
@@ -341,15 +419,15 @@ declare const realtimeSchema: {
341
419
  type: ZodLiteral<"text">;
342
420
  text: ZodString;
343
421
  state: ZodOptional<ZodEnum<{
344
- streaming: "streaming";
345
422
  done: "done";
423
+ streaming: "streaming";
346
424
  }>>;
347
425
  }, $strip>, ZodObject<{
348
426
  type: ZodLiteral<"reasoning">;
349
427
  text: ZodString;
350
428
  state: ZodOptional<ZodEnum<{
351
- streaming: "streaming";
352
429
  done: "done";
430
+ streaming: "streaming";
353
431
  }>>;
354
432
  providerMetadata: ZodOptional<ZodObject<{
355
433
  cossistant: ZodOptional<ZodObject<{
@@ -359,6 +437,19 @@ declare const realtimeSchema: {
359
437
  }>>;
360
438
  progressMessage: ZodOptional<ZodString>;
361
439
  knowledgeId: ZodOptional<ZodString>;
440
+ toolTimeline: ZodOptional<ZodObject<{
441
+ logType: ZodEnum<{
442
+ log: "log";
443
+ customer_facing: "customer_facing";
444
+ decision: "decision";
445
+ }>;
446
+ triggerMessageId: ZodString;
447
+ workflowRunId: ZodString;
448
+ triggerVisibility: ZodOptional<ZodEnum<{
449
+ public: "public";
450
+ private: "private";
451
+ }>>;
452
+ }, $strip>>;
362
453
  }, $strip>>;
363
454
  }, $loose>>;
364
455
  }, $strip>, ZodObject<{
@@ -368,11 +459,34 @@ declare const realtimeSchema: {
368
459
  input: ZodRecord<ZodString, ZodUnknown>;
369
460
  output: ZodOptional<ZodUnknown>;
370
461
  state: ZodEnum<{
462
+ result: "result";
371
463
  error: "error";
372
464
  partial: "partial";
373
- result: "result";
374
465
  }>;
375
466
  errorText: ZodOptional<ZodString>;
467
+ callProviderMetadata: ZodOptional<ZodObject<{
468
+ cossistant: ZodOptional<ZodObject<{
469
+ visibility: ZodOptional<ZodEnum<{
470
+ public: "public";
471
+ private: "private";
472
+ }>>;
473
+ progressMessage: ZodOptional<ZodString>;
474
+ knowledgeId: ZodOptional<ZodString>;
475
+ toolTimeline: ZodOptional<ZodObject<{
476
+ logType: ZodEnum<{
477
+ log: "log";
478
+ customer_facing: "customer_facing";
479
+ decision: "decision";
480
+ }>;
481
+ triggerMessageId: ZodString;
482
+ workflowRunId: ZodString;
483
+ triggerVisibility: ZodOptional<ZodEnum<{
484
+ public: "public";
485
+ private: "private";
486
+ }>>;
487
+ }, $strip>>;
488
+ }, $strip>>;
489
+ }, $loose>>;
376
490
  providerMetadata: ZodOptional<ZodObject<{
377
491
  cossistant: ZodOptional<ZodObject<{
378
492
  visibility: ZodOptional<ZodEnum<{
@@ -381,6 +495,19 @@ declare const realtimeSchema: {
381
495
  }>>;
382
496
  progressMessage: ZodOptional<ZodString>;
383
497
  knowledgeId: ZodOptional<ZodString>;
498
+ toolTimeline: ZodOptional<ZodObject<{
499
+ logType: ZodEnum<{
500
+ log: "log";
501
+ customer_facing: "customer_facing";
502
+ decision: "decision";
503
+ }>;
504
+ triggerMessageId: ZodString;
505
+ workflowRunId: ZodString;
506
+ triggerVisibility: ZodOptional<ZodEnum<{
507
+ public: "public";
508
+ private: "private";
509
+ }>>;
510
+ }, $strip>>;
384
511
  }, $strip>>;
385
512
  }, $loose>>;
386
513
  }, $strip>, ZodObject<{
@@ -396,6 +523,19 @@ declare const realtimeSchema: {
396
523
  }>>;
397
524
  progressMessage: ZodOptional<ZodString>;
398
525
  knowledgeId: ZodOptional<ZodString>;
526
+ toolTimeline: ZodOptional<ZodObject<{
527
+ logType: ZodEnum<{
528
+ log: "log";
529
+ customer_facing: "customer_facing";
530
+ decision: "decision";
531
+ }>;
532
+ triggerMessageId: ZodString;
533
+ workflowRunId: ZodString;
534
+ triggerVisibility: ZodOptional<ZodEnum<{
535
+ public: "public";
536
+ private: "private";
537
+ }>>;
538
+ }, $strip>>;
399
539
  }, $strip>>;
400
540
  }, $loose>>;
401
541
  }, $strip>, ZodObject<{
@@ -412,6 +552,19 @@ declare const realtimeSchema: {
412
552
  }>>;
413
553
  progressMessage: ZodOptional<ZodString>;
414
554
  knowledgeId: ZodOptional<ZodString>;
555
+ toolTimeline: ZodOptional<ZodObject<{
556
+ logType: ZodEnum<{
557
+ log: "log";
558
+ customer_facing: "customer_facing";
559
+ decision: "decision";
560
+ }>;
561
+ triggerMessageId: ZodString;
562
+ workflowRunId: ZodString;
563
+ triggerVisibility: ZodOptional<ZodEnum<{
564
+ public: "public";
565
+ private: "private";
566
+ }>>;
567
+ }, $strip>>;
415
568
  }, $strip>>;
416
569
  }, $loose>>;
417
570
  }, $strip>, ZodObject<{
@@ -479,6 +632,7 @@ declare const realtimeSchema: {
479
632
  message: "message";
480
633
  event: "event";
481
634
  identification: "identification";
635
+ tool: "tool";
482
636
  }>;
483
637
  text: ZodNullable<ZodString>;
484
638
  tool: ZodOptional<ZodNullable<ZodString>>;
@@ -486,15 +640,15 @@ declare const realtimeSchema: {
486
640
  type: ZodLiteral<"text">;
487
641
  text: ZodString;
488
642
  state: ZodOptional<ZodEnum<{
489
- streaming: "streaming";
490
643
  done: "done";
644
+ streaming: "streaming";
491
645
  }>>;
492
646
  }, $strip>, ZodObject<{
493
647
  type: ZodLiteral<"reasoning">;
494
648
  text: ZodString;
495
649
  state: ZodOptional<ZodEnum<{
496
- streaming: "streaming";
497
650
  done: "done";
651
+ streaming: "streaming";
498
652
  }>>;
499
653
  providerMetadata: ZodOptional<ZodObject<{
500
654
  cossistant: ZodOptional<ZodObject<{
@@ -504,6 +658,19 @@ declare const realtimeSchema: {
504
658
  }>>;
505
659
  progressMessage: ZodOptional<ZodString>;
506
660
  knowledgeId: ZodOptional<ZodString>;
661
+ toolTimeline: ZodOptional<ZodObject<{
662
+ logType: ZodEnum<{
663
+ log: "log";
664
+ customer_facing: "customer_facing";
665
+ decision: "decision";
666
+ }>;
667
+ triggerMessageId: ZodString;
668
+ workflowRunId: ZodString;
669
+ triggerVisibility: ZodOptional<ZodEnum<{
670
+ public: "public";
671
+ private: "private";
672
+ }>>;
673
+ }, $strip>>;
507
674
  }, $strip>>;
508
675
  }, $loose>>;
509
676
  }, $strip>, ZodObject<{
@@ -513,11 +680,34 @@ declare const realtimeSchema: {
513
680
  input: ZodRecord<ZodString, ZodUnknown>;
514
681
  output: ZodOptional<ZodUnknown>;
515
682
  state: ZodEnum<{
683
+ result: "result";
516
684
  error: "error";
517
685
  partial: "partial";
518
- result: "result";
519
686
  }>;
520
687
  errorText: ZodOptional<ZodString>;
688
+ callProviderMetadata: ZodOptional<ZodObject<{
689
+ cossistant: ZodOptional<ZodObject<{
690
+ visibility: ZodOptional<ZodEnum<{
691
+ public: "public";
692
+ private: "private";
693
+ }>>;
694
+ progressMessage: ZodOptional<ZodString>;
695
+ knowledgeId: ZodOptional<ZodString>;
696
+ toolTimeline: ZodOptional<ZodObject<{
697
+ logType: ZodEnum<{
698
+ log: "log";
699
+ customer_facing: "customer_facing";
700
+ decision: "decision";
701
+ }>;
702
+ triggerMessageId: ZodString;
703
+ workflowRunId: ZodString;
704
+ triggerVisibility: ZodOptional<ZodEnum<{
705
+ public: "public";
706
+ private: "private";
707
+ }>>;
708
+ }, $strip>>;
709
+ }, $strip>>;
710
+ }, $loose>>;
521
711
  providerMetadata: ZodOptional<ZodObject<{
522
712
  cossistant: ZodOptional<ZodObject<{
523
713
  visibility: ZodOptional<ZodEnum<{
@@ -526,6 +716,19 @@ declare const realtimeSchema: {
526
716
  }>>;
527
717
  progressMessage: ZodOptional<ZodString>;
528
718
  knowledgeId: ZodOptional<ZodString>;
719
+ toolTimeline: ZodOptional<ZodObject<{
720
+ logType: ZodEnum<{
721
+ log: "log";
722
+ customer_facing: "customer_facing";
723
+ decision: "decision";
724
+ }>;
725
+ triggerMessageId: ZodString;
726
+ workflowRunId: ZodString;
727
+ triggerVisibility: ZodOptional<ZodEnum<{
728
+ public: "public";
729
+ private: "private";
730
+ }>>;
731
+ }, $strip>>;
529
732
  }, $strip>>;
530
733
  }, $loose>>;
531
734
  }, $strip>, ZodObject<{
@@ -541,6 +744,19 @@ declare const realtimeSchema: {
541
744
  }>>;
542
745
  progressMessage: ZodOptional<ZodString>;
543
746
  knowledgeId: ZodOptional<ZodString>;
747
+ toolTimeline: ZodOptional<ZodObject<{
748
+ logType: ZodEnum<{
749
+ log: "log";
750
+ customer_facing: "customer_facing";
751
+ decision: "decision";
752
+ }>;
753
+ triggerMessageId: ZodString;
754
+ workflowRunId: ZodString;
755
+ triggerVisibility: ZodOptional<ZodEnum<{
756
+ public: "public";
757
+ private: "private";
758
+ }>>;
759
+ }, $strip>>;
544
760
  }, $strip>>;
545
761
  }, $loose>>;
546
762
  }, $strip>, ZodObject<{
@@ -557,6 +773,19 @@ declare const realtimeSchema: {
557
773
  }>>;
558
774
  progressMessage: ZodOptional<ZodString>;
559
775
  knowledgeId: ZodOptional<ZodString>;
776
+ toolTimeline: ZodOptional<ZodObject<{
777
+ logType: ZodEnum<{
778
+ log: "log";
779
+ customer_facing: "customer_facing";
780
+ decision: "decision";
781
+ }>;
782
+ triggerMessageId: ZodString;
783
+ workflowRunId: ZodString;
784
+ triggerVisibility: ZodOptional<ZodEnum<{
785
+ public: "public";
786
+ private: "private";
787
+ }>>;
788
+ }, $strip>>;
560
789
  }, $strip>>;
561
790
  }, $loose>>;
562
791
  }, $strip>, ZodObject<{
@@ -728,6 +957,22 @@ declare const realtimeSchema: {
728
957
  sentimentConfidence: ZodOptional<ZodNullable<ZodNumber>>;
729
958
  escalatedAt: ZodOptional<ZodNullable<ZodString>>;
730
959
  escalationReason: ZodOptional<ZodNullable<ZodString>>;
960
+ status: ZodOptional<ZodEnum<{
961
+ resolved: "resolved";
962
+ open: "open";
963
+ spam: "spam";
964
+ }>>;
965
+ priority: ZodOptional<ZodEnum<{
966
+ high: "high";
967
+ low: "low";
968
+ normal: "normal";
969
+ urgent: "urgent";
970
+ }>>;
971
+ resolvedAt: ZodOptional<ZodNullable<ZodString>>;
972
+ resolvedByUserId: ZodOptional<ZodNullable<ZodString>>;
973
+ resolvedByAiAgentId: ZodOptional<ZodNullable<ZodString>>;
974
+ resolutionTime: ZodOptional<ZodNullable<ZodNumber>>;
975
+ deletedAt: ZodOptional<ZodNullable<ZodString>>;
731
976
  }, $strip>;
732
977
  aiAgentId: ZodNullable<ZodString>;
733
978
  }, $strip>;
@@ -780,9 +1025,9 @@ declare const realtimeSchema: {
780
1025
  toolCallId: ZodString;
781
1026
  toolName: ZodString;
782
1027
  state: ZodEnum<{
1028
+ result: "result";
783
1029
  error: "error";
784
1030
  partial: "partial";
785
- result: "result";
786
1031
  }>;
787
1032
  }, $strip>>;
788
1033
  audience: ZodDefault<ZodEnum<{
@@ -829,6 +1074,7 @@ declare const realtimeSchema: {
829
1074
  message: "message";
830
1075
  event: "event";
831
1076
  identification: "identification";
1077
+ tool: "tool";
832
1078
  }>;
833
1079
  text: ZodNullable<ZodString>;
834
1080
  parts: ZodArray<ZodUnknown>;
@@ -969,8 +1215,8 @@ declare const realtimeSchema: {
969
1215
  id: ZodString;
970
1216
  title: ZodNullable<ZodString>;
971
1217
  type: ZodEnum<{
972
- url: "url";
973
1218
  article: "article";
1219
+ url: "url";
974
1220
  faq: "faq";
975
1221
  }>;
976
1222
  }, $strip>>;
@@ -1 +1 @@
1
- {"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../../../../../types/src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;cAqBa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8VD,iBAAA,gBAAiC;KAEjC,+BAA+B,qBAAqB,eACvD,gBAAgB;KAGb,wBAAwB;QAC7B;WACG,qBAAqB;;KAGnB,gBAAA,WACL,oBAAoB,cAAc,KACvC;KAEU,4BAA4B,qBACvC,qBAAqB"}
1
+ {"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../../../../../types/src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;cAsBa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6WD,iBAAA,gBAAiC;KAEjC,+BAA+B,qBAAqB,eACvD,gBAAgB;KAGb,wBAAwB;QAC7B;WACG,qBAAqB;;KAGnB,gBAAA,WACL,oBAAoB,cAAc,KACvC;KAEU,4BAA4B,qBACvC,qBAAqB"}
@@ -32,6 +32,7 @@ declare const conversationSchema: ZodObject<{
32
32
  message: "message";
33
33
  event: "event";
34
34
  identification: "identification";
35
+ tool: "tool";
35
36
  }>;
36
37
  text: ZodNullable<ZodString>;
37
38
  tool: ZodOptional<ZodNullable<ZodString>>;
@@ -39,15 +40,15 @@ declare const conversationSchema: ZodObject<{
39
40
  type: ZodLiteral<"text">;
40
41
  text: ZodString;
41
42
  state: ZodOptional<ZodEnum<{
42
- streaming: "streaming";
43
43
  done: "done";
44
+ streaming: "streaming";
44
45
  }>>;
45
46
  }, $strip>, ZodObject<{
46
47
  type: ZodLiteral<"reasoning">;
47
48
  text: ZodString;
48
49
  state: ZodOptional<ZodEnum<{
49
- streaming: "streaming";
50
50
  done: "done";
51
+ streaming: "streaming";
51
52
  }>>;
52
53
  providerMetadata: ZodOptional<ZodObject<{
53
54
  cossistant: ZodOptional<ZodObject<{
@@ -57,6 +58,19 @@ declare const conversationSchema: ZodObject<{
57
58
  }>>;
58
59
  progressMessage: ZodOptional<ZodString>;
59
60
  knowledgeId: ZodOptional<ZodString>;
61
+ toolTimeline: ZodOptional<ZodObject<{
62
+ logType: ZodEnum<{
63
+ log: "log";
64
+ customer_facing: "customer_facing";
65
+ decision: "decision";
66
+ }>;
67
+ triggerMessageId: ZodString;
68
+ workflowRunId: ZodString;
69
+ triggerVisibility: ZodOptional<ZodEnum<{
70
+ public: "public";
71
+ private: "private";
72
+ }>>;
73
+ }, $strip>>;
60
74
  }, $strip>>;
61
75
  }, $loose>>;
62
76
  }, $strip>, ZodObject<{
@@ -66,11 +80,34 @@ declare const conversationSchema: ZodObject<{
66
80
  input: ZodRecord<ZodString, ZodUnknown>;
67
81
  output: ZodOptional<ZodUnknown>;
68
82
  state: ZodEnum<{
83
+ result: "result";
69
84
  error: "error";
70
85
  partial: "partial";
71
- result: "result";
72
86
  }>;
73
87
  errorText: ZodOptional<ZodString>;
88
+ callProviderMetadata: ZodOptional<ZodObject<{
89
+ cossistant: ZodOptional<ZodObject<{
90
+ visibility: ZodOptional<ZodEnum<{
91
+ public: "public";
92
+ private: "private";
93
+ }>>;
94
+ progressMessage: ZodOptional<ZodString>;
95
+ knowledgeId: ZodOptional<ZodString>;
96
+ toolTimeline: ZodOptional<ZodObject<{
97
+ logType: ZodEnum<{
98
+ log: "log";
99
+ customer_facing: "customer_facing";
100
+ decision: "decision";
101
+ }>;
102
+ triggerMessageId: ZodString;
103
+ workflowRunId: ZodString;
104
+ triggerVisibility: ZodOptional<ZodEnum<{
105
+ public: "public";
106
+ private: "private";
107
+ }>>;
108
+ }, $strip>>;
109
+ }, $strip>>;
110
+ }, $loose>>;
74
111
  providerMetadata: ZodOptional<ZodObject<{
75
112
  cossistant: ZodOptional<ZodObject<{
76
113
  visibility: ZodOptional<ZodEnum<{
@@ -79,6 +116,19 @@ declare const conversationSchema: ZodObject<{
79
116
  }>>;
80
117
  progressMessage: ZodOptional<ZodString>;
81
118
  knowledgeId: ZodOptional<ZodString>;
119
+ toolTimeline: ZodOptional<ZodObject<{
120
+ logType: ZodEnum<{
121
+ log: "log";
122
+ customer_facing: "customer_facing";
123
+ decision: "decision";
124
+ }>;
125
+ triggerMessageId: ZodString;
126
+ workflowRunId: ZodString;
127
+ triggerVisibility: ZodOptional<ZodEnum<{
128
+ public: "public";
129
+ private: "private";
130
+ }>>;
131
+ }, $strip>>;
82
132
  }, $strip>>;
83
133
  }, $loose>>;
84
134
  }, $strip>, ZodObject<{
@@ -94,6 +144,19 @@ declare const conversationSchema: ZodObject<{
94
144
  }>>;
95
145
  progressMessage: ZodOptional<ZodString>;
96
146
  knowledgeId: ZodOptional<ZodString>;
147
+ toolTimeline: ZodOptional<ZodObject<{
148
+ logType: ZodEnum<{
149
+ log: "log";
150
+ customer_facing: "customer_facing";
151
+ decision: "decision";
152
+ }>;
153
+ triggerMessageId: ZodString;
154
+ workflowRunId: ZodString;
155
+ triggerVisibility: ZodOptional<ZodEnum<{
156
+ public: "public";
157
+ private: "private";
158
+ }>>;
159
+ }, $strip>>;
97
160
  }, $strip>>;
98
161
  }, $loose>>;
99
162
  }, $strip>, ZodObject<{
@@ -110,6 +173,19 @@ declare const conversationSchema: ZodObject<{
110
173
  }>>;
111
174
  progressMessage: ZodOptional<ZodString>;
112
175
  knowledgeId: ZodOptional<ZodString>;
176
+ toolTimeline: ZodOptional<ZodObject<{
177
+ logType: ZodEnum<{
178
+ log: "log";
179
+ customer_facing: "customer_facing";
180
+ decision: "decision";
181
+ }>;
182
+ triggerMessageId: ZodString;
183
+ workflowRunId: ZodString;
184
+ triggerVisibility: ZodOptional<ZodEnum<{
185
+ public: "public";
186
+ private: "private";
187
+ }>>;
188
+ }, $strip>>;
113
189
  }, $strip>>;
114
190
  }, $loose>>;
115
191
  }, $strip>, ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","names":[],"sources":["../../../../../types/src/schemas.ts"],"sourcesContent":[],"mappings":";;;;;;cAkBa,oBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqBnB,YAAA,GAAe,cAAe;cAE7B,wBAAsB;;;;;;;;;;CAvBJ,QAAA,CAAA;AAAA,KAmCnB,gBAAA,GAAmB,MAnCA,CAAA,OAmCe,sBAnCf,CAAA"}
1
+ {"version":3,"file":"schemas.d.ts","names":[],"sources":["../../../../../types/src/schemas.ts"],"sourcesContent":[],"mappings":";;;;;;cAkBa,oBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAA,MAAA,SAAA,CAAA;QAAA,KAAA,EAAA,OAAA;QAqBnB,MAAY,EAAA,QAAkB;QAE7B,GAAA,EAAA,KAAA;;;;;;;;;;KAFD,YAAA,GAAe,cAAe;cAE7B,wBAAsB;;;;EAAA,SAAA,aAAA,UAAA,CAAA;EAAA,SAAA,aAAA,UAAA,CAAA;EAYvB,UAAA,WAAgB;;;;;KAAhB,gBAAA,GAAmB,cAAe"}
@@ -15,7 +15,7 @@ type AvatarImageProps = Omit<React$1.ImgHTMLAttributes<HTMLImageElement>, "src"
15
15
  * Controlled `<img>` that syncs its loading status back to the avatar context
16
16
  * so fallbacks know when to display.
17
17
  */
18
- declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<React$1.ImgHTMLAttributes<HTMLImageElement>, "alt" | "src"> & {
18
+ declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<React$1.ImgHTMLAttributes<HTMLImageElement>, "src" | "alt"> & {
19
19
  src: string;
20
20
  alt?: string;
21
21
  asChild?: boolean;
@@ -0,0 +1,26 @@
1
+ import { MarkdownToken } from "../packages/tiny-markdown/src/types.js";
2
+ import "../packages/tiny-markdown/src/index.js";
3
+
4
+ //#region src/primitives/command-block-utils.d.ts
5
+ declare const COMMAND_PREFERENCE_STORAGE_KEY = "cossistant:package-manager";
6
+ declare const COMMAND_PREFERENCE_EVENT = "cossistant:package-manager-change";
7
+ declare const DEFAULT_PACKAGE_MANAGER: "npm";
8
+ declare const COMMAND_PACKAGE_MANAGERS: readonly ["npm", "yarn", "pnpm", "bun"];
9
+ type CommandPackageManager = (typeof COMMAND_PACKAGE_MANAGERS)[number];
10
+ type CommandVariants = Record<CommandPackageManager, string>;
11
+ declare function isCommandPackageManager(value: string): value is CommandPackageManager;
12
+ type StandaloneInlineCommand = {
13
+ command: string;
14
+ variants: CommandVariants;
15
+ };
16
+ type InlineParagraphCommand = {
17
+ command: string;
18
+ variants: CommandVariants;
19
+ index: number;
20
+ };
21
+ declare function mapCommandVariants(input: string): CommandVariants | null;
22
+ declare function mapStandaloneInlineCommandFromParagraphChildren(children: MarkdownToken[]): StandaloneInlineCommand | null;
23
+ declare function mapInlineCommandFromParagraphChildren(children: MarkdownToken[]): InlineParagraphCommand | null;
24
+ //#endregion
25
+ export { COMMAND_PACKAGE_MANAGERS, COMMAND_PREFERENCE_EVENT, COMMAND_PREFERENCE_STORAGE_KEY, CommandPackageManager, CommandVariants, DEFAULT_PACKAGE_MANAGER, InlineParagraphCommand, StandaloneInlineCommand, isCommandPackageManager, mapCommandVariants, mapInlineCommandFromParagraphChildren, mapStandaloneInlineCommandFromParagraphChildren };
26
+ //# sourceMappingURL=command-block-utils.d.ts.map