@typecaast/schema 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -7,10 +7,17 @@ declare const sizeSchema: z.ZodObject<{
7
7
  }, z.core.$strip>;
8
8
  type Size = z.infer<typeof sizeSchema>;
9
9
  /**
10
- * How the rendered conversation fills its container.
11
- * - `reflow`: container queries + ResizeObserver; bubbles re-wrap on small screens.
12
- * - `scale`: CSS transform scale-to-fit, preserves exact layout.
13
- * - `fixed`: clip to canvas.
10
+ * How the rendered conversation fills its container. The widget is
11
+ * **container-driven** in the first two modes its size never grows
12
+ * with content; messages clip when they overflow the bottom-anchored
13
+ * thread.
14
+ * - `reflow`: fills the container in both axes; bubbles re-wrap to the
15
+ * container width.
16
+ * - `scale`: renders at the exact authored canvas size and CSS-scales
17
+ * to fit (preserves the canonical layout — letterboxes if the
18
+ * container's aspect doesn't match the canvas).
19
+ * - `fixed`: pins the widget to the authored canvas px; clips. The only
20
+ * non-container-driven mode.
14
21
  */
15
22
  declare const fitModeSchema: z.ZodEnum<{
16
23
  reflow: "reflow";
@@ -18,15 +25,27 @@ declare const fitModeSchema: z.ZodEnum<{
18
25
  fixed: "fixed";
19
26
  }>;
20
27
  type FitMode = z.infer<typeof fitModeSchema>;
28
+ /**
29
+ * Reply-box (composer) visibility:
30
+ * - `auto`: shown only while someone is typing/sending (default).
31
+ * - `always`: keep the message input visible the whole time.
32
+ * - `never`: never show it.
33
+ */
34
+ declare const composerModeSchema: z.ZodEnum<{
35
+ auto: "auto";
36
+ always: "always";
37
+ never: "never";
38
+ }>;
39
+ type ComposerMode = z.infer<typeof composerModeSchema>;
21
40
  /**
22
41
  * Color theme. `auto` inherits the host page's `prefers-color-scheme` (live
23
42
  * preview) and falls back to `light`; video export resolves `auto` to a
24
43
  * concrete mode and defaults to `light` when unspecified.
25
44
  */
26
45
  declare const themeModeSchema: z.ZodEnum<{
46
+ auto: "auto";
27
47
  light: "light";
28
48
  dark: "dark";
29
- auto: "auto";
30
49
  }>;
31
50
  type ThemeMode = z.infer<typeof themeModeSchema>;
32
51
  /**
@@ -58,9 +77,9 @@ declare const metaSchema: z.ZodObject<{
58
77
  fixed: "fixed";
59
78
  }>>;
60
79
  theme: z.ZodDefault<z.ZodEnum<{
80
+ auto: "auto";
61
81
  light: "light";
62
82
  dark: "dark";
63
- auto: "auto";
64
83
  }>>;
65
84
  skin: z.ZodObject<{
66
85
  id: z.ZodString;
@@ -72,6 +91,12 @@ declare const metaSchema: z.ZodObject<{
72
91
  inline: "inline";
73
92
  url: "url";
74
93
  }>>;
94
+ composer: z.ZodDefault<z.ZodEnum<{
95
+ auto: "auto";
96
+ always: "always";
97
+ never: "never";
98
+ }>>;
99
+ loop: z.ZodDefault<z.ZodBoolean>;
75
100
  }, z.core.$strip>;
76
101
  /** `meta` as it appears after parsing (defaults applied). */
77
102
  type Meta = z.infer<typeof metaSchema>;
@@ -118,8 +143,6 @@ declare const participantsSchema: z.ZodArray<z.ZodObject<{
118
143
  declare const pacingSchema: z.ZodObject<{
119
144
  readingWpm: z.ZodDefault<z.ZodNumber>;
120
145
  typingCps: z.ZodDefault<z.ZodNumber>;
121
- reactionDelayMs: z.ZodDefault<z.ZodNumber>;
122
- interMessageGapMs: z.ZodDefault<z.ZodNumber>;
123
146
  humanize: z.ZodDefault<z.ZodNumber>;
124
147
  startDelayMs: z.ZodDefault<z.ZodNumber>;
125
148
  }, z.core.$strip>;
@@ -280,9 +303,7 @@ declare const imageSugarSchema: z.ZodObject<{
280
303
  /** An incoming message, optionally preceded by a typing indicator. */
281
304
  declare const messageStepSchema: z.ZodObject<{
282
305
  id: z.ZodOptional<z.ZodString>;
283
- delay: z.ZodOptional<z.ZodNumber>;
284
306
  instant: z.ZodOptional<z.ZodBoolean>;
285
- holdAfter: z.ZodOptional<z.ZodNumber>;
286
307
  text: z.ZodOptional<z.ZodString>;
287
308
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
288
309
  src: z.ZodString;
@@ -300,20 +321,18 @@ declare const messageStepSchema: z.ZodObject<{
300
321
  /** A reaction landing on a target message (`$prev` or a message id). */
301
322
  declare const reactionStepSchema: z.ZodObject<{
302
323
  id: z.ZodOptional<z.ZodString>;
303
- delay: z.ZodOptional<z.ZodNumber>;
304
324
  instant: z.ZodOptional<z.ZodBoolean>;
305
- holdAfter: z.ZodOptional<z.ZodNumber>;
306
325
  type: z.ZodLiteral<"reaction">;
307
- target: z.ZodString;
326
+ target: z.ZodOptional<z.ZodString>;
308
327
  emoji: z.ZodString;
328
+ shortcode: z.ZodOptional<z.ZodString>;
309
329
  from: z.ZodOptional<z.ZodString>;
330
+ delay: z.ZodOptional<z.ZodNumber>;
310
331
  }, z.core.$strip>;
311
332
  /** A standalone typing indicator (no message necessarily follows). */
312
333
  declare const typingStepSchema: z.ZodObject<{
313
334
  id: z.ZodOptional<z.ZodString>;
314
- delay: z.ZodOptional<z.ZodNumber>;
315
335
  instant: z.ZodOptional<z.ZodBoolean>;
316
- holdAfter: z.ZodOptional<z.ZodNumber>;
317
336
  type: z.ZodLiteral<"typing">;
318
337
  from: z.ZodString;
319
338
  showTypingFor: z.ZodOptional<z.ZodNumber>;
@@ -321,9 +340,7 @@ declare const typingStepSchema: z.ZodObject<{
321
340
  /** The self participant typing into the composer, char by char. */
322
341
  declare const composerTypeStepSchema: z.ZodObject<{
323
342
  id: z.ZodOptional<z.ZodString>;
324
- delay: z.ZodOptional<z.ZodNumber>;
325
343
  instant: z.ZodOptional<z.ZodBoolean>;
326
- holdAfter: z.ZodOptional<z.ZodNumber>;
327
344
  type: z.ZodLiteral<"composerType">;
328
345
  from: z.ZodString;
329
346
  text: z.ZodString;
@@ -332,18 +349,14 @@ declare const composerTypeStepSchema: z.ZodObject<{
332
349
  /** Commit the composer's current text to the thread. */
333
350
  declare const sendStepSchema: z.ZodObject<{
334
351
  id: z.ZodOptional<z.ZodString>;
335
- delay: z.ZodOptional<z.ZodNumber>;
336
352
  instant: z.ZodOptional<z.ZodBoolean>;
337
- holdAfter: z.ZodOptional<z.ZodNumber>;
338
353
  type: z.ZodLiteral<"send">;
339
354
  from: z.ZodOptional<z.ZodString>;
340
355
  }, z.core.$strip>;
341
356
  /** Edit a previously sent message's body. */
342
357
  declare const editStepSchema: z.ZodObject<{
343
358
  id: z.ZodOptional<z.ZodString>;
344
- delay: z.ZodOptional<z.ZodNumber>;
345
359
  instant: z.ZodOptional<z.ZodBoolean>;
346
- holdAfter: z.ZodOptional<z.ZodNumber>;
347
360
  text: z.ZodOptional<z.ZodString>;
348
361
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
349
362
  src: z.ZodString;
@@ -353,23 +366,19 @@ declare const editStepSchema: z.ZodObject<{
353
366
  }, z.core.$strip>>>;
354
367
  content: z.ZodOptional<z.ZodArray<z.ZodType<ContentNode, unknown, z.core.$ZodTypeInternals<ContentNode, unknown>>>>;
355
368
  type: z.ZodLiteral<"edit">;
356
- target: z.ZodString;
369
+ target: z.ZodOptional<z.ZodString>;
357
370
  }, z.core.$strip>;
358
371
  /** Delete a previously sent message. */
359
372
  declare const deleteStepSchema: z.ZodObject<{
360
373
  id: z.ZodOptional<z.ZodString>;
361
- delay: z.ZodOptional<z.ZodNumber>;
362
374
  instant: z.ZodOptional<z.ZodBoolean>;
363
- holdAfter: z.ZodOptional<z.ZodNumber>;
364
375
  type: z.ZodLiteral<"delete">;
365
- target: z.ZodString;
376
+ target: z.ZodOptional<z.ZodString>;
366
377
  }, z.core.$strip>;
367
378
  /** A read receipt (optionally by a participant, optionally up to a message). */
368
379
  declare const readReceiptStepSchema: z.ZodObject<{
369
380
  id: z.ZodOptional<z.ZodString>;
370
- delay: z.ZodOptional<z.ZodNumber>;
371
381
  instant: z.ZodOptional<z.ZodBoolean>;
372
- holdAfter: z.ZodOptional<z.ZodNumber>;
373
382
  type: z.ZodLiteral<"readReceipt">;
374
383
  by: z.ZodOptional<z.ZodString>;
375
384
  target: z.ZodOptional<z.ZodString>;
@@ -377,9 +386,7 @@ declare const readReceiptStepSchema: z.ZodObject<{
377
386
  /** An app/system card (e.g. "Pull request opened" with action buttons). */
378
387
  declare const systemStepSchema: z.ZodObject<{
379
388
  id: z.ZodOptional<z.ZodString>;
380
- delay: z.ZodOptional<z.ZodNumber>;
381
389
  instant: z.ZodOptional<z.ZodBoolean>;
382
- holdAfter: z.ZodOptional<z.ZodNumber>;
383
390
  text: z.ZodOptional<z.ZodString>;
384
391
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
385
392
  src: z.ZodString;
@@ -394,22 +401,22 @@ declare const systemStepSchema: z.ZodObject<{
394
401
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
395
402
  label: z.ZodString;
396
403
  href: z.ZodOptional<z.ZodString>;
404
+ variant: z.ZodOptional<z.ZodEnum<{
405
+ primary: "primary";
406
+ secondary: "secondary";
407
+ }>>;
397
408
  }, z.core.$strip>>>;
398
409
  }, z.core.$strip>;
399
- /** An explicit pause in the timeline. */
400
- declare const beatStepSchema: z.ZodObject<{
410
+ /** An explicit pause in the timeline (formerly `beat`). */
411
+ declare const delayStepSchema: z.ZodObject<{
401
412
  id: z.ZodOptional<z.ZodString>;
402
- delay: z.ZodOptional<z.ZodNumber>;
403
413
  instant: z.ZodOptional<z.ZodBoolean>;
404
- holdAfter: z.ZodOptional<z.ZodNumber>;
405
- type: z.ZodLiteral<"beat">;
414
+ type: z.ZodLiteral<"delay">;
406
415
  duration: z.ZodNumber;
407
416
  }, z.core.$strip>;
408
417
  declare const timelineStepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
409
418
  id: z.ZodOptional<z.ZodString>;
410
- delay: z.ZodOptional<z.ZodNumber>;
411
419
  instant: z.ZodOptional<z.ZodBoolean>;
412
- holdAfter: z.ZodOptional<z.ZodNumber>;
413
420
  text: z.ZodOptional<z.ZodString>;
414
421
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
415
422
  src: z.ZodString;
@@ -425,42 +432,34 @@ declare const timelineStepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
425
432
  }, z.core.$strip>]>>;
426
433
  }, z.core.$strip>, z.ZodObject<{
427
434
  id: z.ZodOptional<z.ZodString>;
428
- delay: z.ZodOptional<z.ZodNumber>;
429
435
  instant: z.ZodOptional<z.ZodBoolean>;
430
- holdAfter: z.ZodOptional<z.ZodNumber>;
431
436
  type: z.ZodLiteral<"reaction">;
432
- target: z.ZodString;
437
+ target: z.ZodOptional<z.ZodString>;
433
438
  emoji: z.ZodString;
439
+ shortcode: z.ZodOptional<z.ZodString>;
434
440
  from: z.ZodOptional<z.ZodString>;
441
+ delay: z.ZodOptional<z.ZodNumber>;
435
442
  }, z.core.$strip>, z.ZodObject<{
436
443
  id: z.ZodOptional<z.ZodString>;
437
- delay: z.ZodOptional<z.ZodNumber>;
438
444
  instant: z.ZodOptional<z.ZodBoolean>;
439
- holdAfter: z.ZodOptional<z.ZodNumber>;
440
445
  type: z.ZodLiteral<"typing">;
441
446
  from: z.ZodString;
442
447
  showTypingFor: z.ZodOptional<z.ZodNumber>;
443
448
  }, z.core.$strip>, z.ZodObject<{
444
449
  id: z.ZodOptional<z.ZodString>;
445
- delay: z.ZodOptional<z.ZodNumber>;
446
450
  instant: z.ZodOptional<z.ZodBoolean>;
447
- holdAfter: z.ZodOptional<z.ZodNumber>;
448
451
  type: z.ZodLiteral<"composerType">;
449
452
  from: z.ZodString;
450
453
  text: z.ZodString;
451
454
  typingDuration: z.ZodOptional<z.ZodNumber>;
452
455
  }, z.core.$strip>, z.ZodObject<{
453
456
  id: z.ZodOptional<z.ZodString>;
454
- delay: z.ZodOptional<z.ZodNumber>;
455
457
  instant: z.ZodOptional<z.ZodBoolean>;
456
- holdAfter: z.ZodOptional<z.ZodNumber>;
457
458
  type: z.ZodLiteral<"send">;
458
459
  from: z.ZodOptional<z.ZodString>;
459
460
  }, z.core.$strip>, z.ZodObject<{
460
461
  id: z.ZodOptional<z.ZodString>;
461
- delay: z.ZodOptional<z.ZodNumber>;
462
462
  instant: z.ZodOptional<z.ZodBoolean>;
463
- holdAfter: z.ZodOptional<z.ZodNumber>;
464
463
  text: z.ZodOptional<z.ZodString>;
465
464
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
466
465
  src: z.ZodString;
@@ -470,27 +469,21 @@ declare const timelineStepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
470
469
  }, z.core.$strip>>>;
471
470
  content: z.ZodOptional<z.ZodArray<z.ZodType<ContentNode, unknown, z.core.$ZodTypeInternals<ContentNode, unknown>>>>;
472
471
  type: z.ZodLiteral<"edit">;
473
- target: z.ZodString;
472
+ target: z.ZodOptional<z.ZodString>;
474
473
  }, z.core.$strip>, z.ZodObject<{
475
474
  id: z.ZodOptional<z.ZodString>;
476
- delay: z.ZodOptional<z.ZodNumber>;
477
475
  instant: z.ZodOptional<z.ZodBoolean>;
478
- holdAfter: z.ZodOptional<z.ZodNumber>;
479
476
  type: z.ZodLiteral<"delete">;
480
- target: z.ZodString;
477
+ target: z.ZodOptional<z.ZodString>;
481
478
  }, z.core.$strip>, z.ZodObject<{
482
479
  id: z.ZodOptional<z.ZodString>;
483
- delay: z.ZodOptional<z.ZodNumber>;
484
480
  instant: z.ZodOptional<z.ZodBoolean>;
485
- holdAfter: z.ZodOptional<z.ZodNumber>;
486
481
  type: z.ZodLiteral<"readReceipt">;
487
482
  by: z.ZodOptional<z.ZodString>;
488
483
  target: z.ZodOptional<z.ZodString>;
489
484
  }, z.core.$strip>, z.ZodObject<{
490
485
  id: z.ZodOptional<z.ZodString>;
491
- delay: z.ZodOptional<z.ZodNumber>;
492
486
  instant: z.ZodOptional<z.ZodBoolean>;
493
- holdAfter: z.ZodOptional<z.ZodNumber>;
494
487
  text: z.ZodOptional<z.ZodString>;
495
488
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
496
489
  src: z.ZodString;
@@ -505,22 +498,22 @@ declare const timelineStepSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
505
498
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
506
499
  label: z.ZodString;
507
500
  href: z.ZodOptional<z.ZodString>;
501
+ variant: z.ZodOptional<z.ZodEnum<{
502
+ primary: "primary";
503
+ secondary: "secondary";
504
+ }>>;
508
505
  }, z.core.$strip>>>;
509
506
  }, z.core.$strip>, z.ZodObject<{
510
507
  id: z.ZodOptional<z.ZodString>;
511
- delay: z.ZodOptional<z.ZodNumber>;
512
508
  instant: z.ZodOptional<z.ZodBoolean>;
513
- holdAfter: z.ZodOptional<z.ZodNumber>;
514
- type: z.ZodLiteral<"beat">;
509
+ type: z.ZodLiteral<"delay">;
515
510
  duration: z.ZodNumber;
516
511
  }, z.core.$strip>], "type">;
517
512
  type TimelineStep = z.infer<typeof timelineStepSchema>;
518
513
  type TimelineStepInput = z.input<typeof timelineStepSchema>;
519
514
  declare const timelineSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
520
515
  id: z.ZodOptional<z.ZodString>;
521
- delay: z.ZodOptional<z.ZodNumber>;
522
516
  instant: z.ZodOptional<z.ZodBoolean>;
523
- holdAfter: z.ZodOptional<z.ZodNumber>;
524
517
  text: z.ZodOptional<z.ZodString>;
525
518
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
526
519
  src: z.ZodString;
@@ -536,42 +529,34 @@ declare const timelineSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
536
529
  }, z.core.$strip>]>>;
537
530
  }, z.core.$strip>, z.ZodObject<{
538
531
  id: z.ZodOptional<z.ZodString>;
539
- delay: z.ZodOptional<z.ZodNumber>;
540
532
  instant: z.ZodOptional<z.ZodBoolean>;
541
- holdAfter: z.ZodOptional<z.ZodNumber>;
542
533
  type: z.ZodLiteral<"reaction">;
543
- target: z.ZodString;
534
+ target: z.ZodOptional<z.ZodString>;
544
535
  emoji: z.ZodString;
536
+ shortcode: z.ZodOptional<z.ZodString>;
545
537
  from: z.ZodOptional<z.ZodString>;
538
+ delay: z.ZodOptional<z.ZodNumber>;
546
539
  }, z.core.$strip>, z.ZodObject<{
547
540
  id: z.ZodOptional<z.ZodString>;
548
- delay: z.ZodOptional<z.ZodNumber>;
549
541
  instant: z.ZodOptional<z.ZodBoolean>;
550
- holdAfter: z.ZodOptional<z.ZodNumber>;
551
542
  type: z.ZodLiteral<"typing">;
552
543
  from: z.ZodString;
553
544
  showTypingFor: z.ZodOptional<z.ZodNumber>;
554
545
  }, z.core.$strip>, z.ZodObject<{
555
546
  id: z.ZodOptional<z.ZodString>;
556
- delay: z.ZodOptional<z.ZodNumber>;
557
547
  instant: z.ZodOptional<z.ZodBoolean>;
558
- holdAfter: z.ZodOptional<z.ZodNumber>;
559
548
  type: z.ZodLiteral<"composerType">;
560
549
  from: z.ZodString;
561
550
  text: z.ZodString;
562
551
  typingDuration: z.ZodOptional<z.ZodNumber>;
563
552
  }, z.core.$strip>, z.ZodObject<{
564
553
  id: z.ZodOptional<z.ZodString>;
565
- delay: z.ZodOptional<z.ZodNumber>;
566
554
  instant: z.ZodOptional<z.ZodBoolean>;
567
- holdAfter: z.ZodOptional<z.ZodNumber>;
568
555
  type: z.ZodLiteral<"send">;
569
556
  from: z.ZodOptional<z.ZodString>;
570
557
  }, z.core.$strip>, z.ZodObject<{
571
558
  id: z.ZodOptional<z.ZodString>;
572
- delay: z.ZodOptional<z.ZodNumber>;
573
559
  instant: z.ZodOptional<z.ZodBoolean>;
574
- holdAfter: z.ZodOptional<z.ZodNumber>;
575
560
  text: z.ZodOptional<z.ZodString>;
576
561
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
577
562
  src: z.ZodString;
@@ -581,27 +566,21 @@ declare const timelineSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
581
566
  }, z.core.$strip>>>;
582
567
  content: z.ZodOptional<z.ZodArray<z.ZodType<ContentNode, unknown, z.core.$ZodTypeInternals<ContentNode, unknown>>>>;
583
568
  type: z.ZodLiteral<"edit">;
584
- target: z.ZodString;
569
+ target: z.ZodOptional<z.ZodString>;
585
570
  }, z.core.$strip>, z.ZodObject<{
586
571
  id: z.ZodOptional<z.ZodString>;
587
- delay: z.ZodOptional<z.ZodNumber>;
588
572
  instant: z.ZodOptional<z.ZodBoolean>;
589
- holdAfter: z.ZodOptional<z.ZodNumber>;
590
573
  type: z.ZodLiteral<"delete">;
591
- target: z.ZodString;
574
+ target: z.ZodOptional<z.ZodString>;
592
575
  }, z.core.$strip>, z.ZodObject<{
593
576
  id: z.ZodOptional<z.ZodString>;
594
- delay: z.ZodOptional<z.ZodNumber>;
595
577
  instant: z.ZodOptional<z.ZodBoolean>;
596
- holdAfter: z.ZodOptional<z.ZodNumber>;
597
578
  type: z.ZodLiteral<"readReceipt">;
598
579
  by: z.ZodOptional<z.ZodString>;
599
580
  target: z.ZodOptional<z.ZodString>;
600
581
  }, z.core.$strip>, z.ZodObject<{
601
582
  id: z.ZodOptional<z.ZodString>;
602
- delay: z.ZodOptional<z.ZodNumber>;
603
583
  instant: z.ZodOptional<z.ZodBoolean>;
604
- holdAfter: z.ZodOptional<z.ZodNumber>;
605
584
  text: z.ZodOptional<z.ZodString>;
606
585
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
607
586
  src: z.ZodString;
@@ -616,17 +595,19 @@ declare const timelineSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
616
595
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
617
596
  label: z.ZodString;
618
597
  href: z.ZodOptional<z.ZodString>;
598
+ variant: z.ZodOptional<z.ZodEnum<{
599
+ primary: "primary";
600
+ secondary: "secondary";
601
+ }>>;
619
602
  }, z.core.$strip>>>;
620
603
  }, z.core.$strip>, z.ZodObject<{
621
604
  id: z.ZodOptional<z.ZodString>;
622
- delay: z.ZodOptional<z.ZodNumber>;
623
605
  instant: z.ZodOptional<z.ZodBoolean>;
624
- holdAfter: z.ZodOptional<z.ZodNumber>;
625
- type: z.ZodLiteral<"beat">;
606
+ type: z.ZodLiteral<"delay">;
626
607
  duration: z.ZodNumber;
627
608
  }, z.core.$strip>], "type">>;
628
609
  /** The discriminant values of every timeline step. */
629
- declare const STEP_TYPES: readonly ["message", "reaction", "typing", "composerType", "send", "edit", "delete", "readReceipt", "system", "beat"];
610
+ declare const STEP_TYPES: readonly ["message", "reaction", "typing", "composerType", "send", "edit", "delete", "readReceipt", "system", "delay"];
630
611
  type StepType = (typeof STEP_TYPES)[number];
631
612
 
632
613
  /**
@@ -650,9 +631,9 @@ declare const configSchema: z.ZodObject<{
650
631
  fixed: "fixed";
651
632
  }>>;
652
633
  theme: z.ZodDefault<z.ZodEnum<{
634
+ auto: "auto";
653
635
  light: "light";
654
636
  dark: "dark";
655
- auto: "auto";
656
637
  }>>;
657
638
  skin: z.ZodObject<{
658
639
  id: z.ZodString;
@@ -664,6 +645,12 @@ declare const configSchema: z.ZodObject<{
664
645
  inline: "inline";
665
646
  url: "url";
666
647
  }>>;
648
+ composer: z.ZodDefault<z.ZodEnum<{
649
+ auto: "auto";
650
+ always: "always";
651
+ never: "never";
652
+ }>>;
653
+ loop: z.ZodDefault<z.ZodBoolean>;
667
654
  }, z.core.$strip>;
668
655
  participants: z.ZodArray<z.ZodObject<{
669
656
  id: z.ZodString;
@@ -679,16 +666,12 @@ declare const configSchema: z.ZodObject<{
679
666
  pacing: z.ZodDefault<z.ZodObject<{
680
667
  readingWpm: z.ZodDefault<z.ZodNumber>;
681
668
  typingCps: z.ZodDefault<z.ZodNumber>;
682
- reactionDelayMs: z.ZodDefault<z.ZodNumber>;
683
- interMessageGapMs: z.ZodDefault<z.ZodNumber>;
684
669
  humanize: z.ZodDefault<z.ZodNumber>;
685
670
  startDelayMs: z.ZodDefault<z.ZodNumber>;
686
671
  }, z.core.$strip>>;
687
672
  timeline: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
688
673
  id: z.ZodOptional<z.ZodString>;
689
- delay: z.ZodOptional<z.ZodNumber>;
690
674
  instant: z.ZodOptional<z.ZodBoolean>;
691
- holdAfter: z.ZodOptional<z.ZodNumber>;
692
675
  text: z.ZodOptional<z.ZodString>;
693
676
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
694
677
  src: z.ZodString;
@@ -704,42 +687,34 @@ declare const configSchema: z.ZodObject<{
704
687
  }, z.core.$strip>]>>;
705
688
  }, z.core.$strip>, z.ZodObject<{
706
689
  id: z.ZodOptional<z.ZodString>;
707
- delay: z.ZodOptional<z.ZodNumber>;
708
690
  instant: z.ZodOptional<z.ZodBoolean>;
709
- holdAfter: z.ZodOptional<z.ZodNumber>;
710
691
  type: z.ZodLiteral<"reaction">;
711
- target: z.ZodString;
692
+ target: z.ZodOptional<z.ZodString>;
712
693
  emoji: z.ZodString;
694
+ shortcode: z.ZodOptional<z.ZodString>;
713
695
  from: z.ZodOptional<z.ZodString>;
696
+ delay: z.ZodOptional<z.ZodNumber>;
714
697
  }, z.core.$strip>, z.ZodObject<{
715
698
  id: z.ZodOptional<z.ZodString>;
716
- delay: z.ZodOptional<z.ZodNumber>;
717
699
  instant: z.ZodOptional<z.ZodBoolean>;
718
- holdAfter: z.ZodOptional<z.ZodNumber>;
719
700
  type: z.ZodLiteral<"typing">;
720
701
  from: z.ZodString;
721
702
  showTypingFor: z.ZodOptional<z.ZodNumber>;
722
703
  }, z.core.$strip>, z.ZodObject<{
723
704
  id: z.ZodOptional<z.ZodString>;
724
- delay: z.ZodOptional<z.ZodNumber>;
725
705
  instant: z.ZodOptional<z.ZodBoolean>;
726
- holdAfter: z.ZodOptional<z.ZodNumber>;
727
706
  type: z.ZodLiteral<"composerType">;
728
707
  from: z.ZodString;
729
708
  text: z.ZodString;
730
709
  typingDuration: z.ZodOptional<z.ZodNumber>;
731
710
  }, z.core.$strip>, z.ZodObject<{
732
711
  id: z.ZodOptional<z.ZodString>;
733
- delay: z.ZodOptional<z.ZodNumber>;
734
712
  instant: z.ZodOptional<z.ZodBoolean>;
735
- holdAfter: z.ZodOptional<z.ZodNumber>;
736
713
  type: z.ZodLiteral<"send">;
737
714
  from: z.ZodOptional<z.ZodString>;
738
715
  }, z.core.$strip>, z.ZodObject<{
739
716
  id: z.ZodOptional<z.ZodString>;
740
- delay: z.ZodOptional<z.ZodNumber>;
741
717
  instant: z.ZodOptional<z.ZodBoolean>;
742
- holdAfter: z.ZodOptional<z.ZodNumber>;
743
718
  text: z.ZodOptional<z.ZodString>;
744
719
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
745
720
  src: z.ZodString;
@@ -749,27 +724,21 @@ declare const configSchema: z.ZodObject<{
749
724
  }, z.core.$strip>>>;
750
725
  content: z.ZodOptional<z.ZodArray<z.ZodType<ContentNode, unknown, z.core.$ZodTypeInternals<ContentNode, unknown>>>>;
751
726
  type: z.ZodLiteral<"edit">;
752
- target: z.ZodString;
727
+ target: z.ZodOptional<z.ZodString>;
753
728
  }, z.core.$strip>, z.ZodObject<{
754
729
  id: z.ZodOptional<z.ZodString>;
755
- delay: z.ZodOptional<z.ZodNumber>;
756
730
  instant: z.ZodOptional<z.ZodBoolean>;
757
- holdAfter: z.ZodOptional<z.ZodNumber>;
758
731
  type: z.ZodLiteral<"delete">;
759
- target: z.ZodString;
732
+ target: z.ZodOptional<z.ZodString>;
760
733
  }, z.core.$strip>, z.ZodObject<{
761
734
  id: z.ZodOptional<z.ZodString>;
762
- delay: z.ZodOptional<z.ZodNumber>;
763
735
  instant: z.ZodOptional<z.ZodBoolean>;
764
- holdAfter: z.ZodOptional<z.ZodNumber>;
765
736
  type: z.ZodLiteral<"readReceipt">;
766
737
  by: z.ZodOptional<z.ZodString>;
767
738
  target: z.ZodOptional<z.ZodString>;
768
739
  }, z.core.$strip>, z.ZodObject<{
769
740
  id: z.ZodOptional<z.ZodString>;
770
- delay: z.ZodOptional<z.ZodNumber>;
771
741
  instant: z.ZodOptional<z.ZodBoolean>;
772
- holdAfter: z.ZodOptional<z.ZodNumber>;
773
742
  text: z.ZodOptional<z.ZodString>;
774
743
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
775
744
  src: z.ZodString;
@@ -784,13 +753,15 @@ declare const configSchema: z.ZodObject<{
784
753
  actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
785
754
  label: z.ZodString;
786
755
  href: z.ZodOptional<z.ZodString>;
756
+ variant: z.ZodOptional<z.ZodEnum<{
757
+ primary: "primary";
758
+ secondary: "secondary";
759
+ }>>;
787
760
  }, z.core.$strip>>>;
788
761
  }, z.core.$strip>, z.ZodObject<{
789
762
  id: z.ZodOptional<z.ZodString>;
790
- delay: z.ZodOptional<z.ZodNumber>;
791
763
  instant: z.ZodOptional<z.ZodBoolean>;
792
- holdAfter: z.ZodOptional<z.ZodNumber>;
793
- type: z.ZodLiteral<"beat">;
764
+ type: z.ZodLiteral<"delay">;
794
765
  duration: z.ZodNumber;
795
766
  }, z.core.$strip>], "type">>;
796
767
  }, z.core.$strip>;
@@ -829,4 +800,4 @@ interface Diagnostic {
829
800
  */
830
801
  declare function validateConfig(raw: unknown): Diagnostic[];
831
802
 
832
- export { type AssetMode, CONFIG_VERSION, type Config, type ConfigInput, type ContentNode, type Diagnostic, type FitMode, type ImageNode, type ImageSugar, type InlineNode, type MessageBodySugar, type Meta, type MetaInput, type Pacing, type PacingInput, type Participant, type ParticipantInput, type ParticipantKind, STEP_TYPES, type Severity, type Size, type SkinRef, type StepType, type TextNode, type ThemeMode, type TimelineStep, type TimelineStepInput, type UnknownContentNode, assetModeSchema, beatStepSchema, buildContentNodeSchema, composerTypeStepSchema, configJsonSchema, configSchema, contentNodeSchema, contentSchema, deleteStepSchema, editStepSchema, fitModeSchema, imageNodeSchema, imageSugarSchema, imageToContentNode, inlineCodeSchema, inlineEmojiSchema, inlineLinkSchema, inlineMentionSchema, inlineNodeSchema, inlineTextSchema, isKnownContentNodeType, knownContentNodeTypes, messageStepSchema, metaSchema, pacingSchema, parseInline, participantKindSchema, participantSchema, participantsSchema, reactionStepSchema, readReceiptStepSchema, registerContentNodeType, sendStepSchema, sizeSchema, skinRefSchema, systemStepSchema, textNodeSchema, textToContentNode, themeModeSchema, timelineSchema, timelineStepSchema, toContentNodes, typingStepSchema, validateConfig };
803
+ export { type AssetMode, CONFIG_VERSION, type ComposerMode, type Config, type ConfigInput, type ContentNode, type Diagnostic, type FitMode, type ImageNode, type ImageSugar, type InlineNode, type MessageBodySugar, type Meta, type MetaInput, type Pacing, type PacingInput, type Participant, type ParticipantInput, type ParticipantKind, STEP_TYPES, type Severity, type Size, type SkinRef, type StepType, type TextNode, type ThemeMode, type TimelineStep, type TimelineStepInput, type UnknownContentNode, assetModeSchema, buildContentNodeSchema, composerModeSchema, composerTypeStepSchema, configJsonSchema, configSchema, contentNodeSchema, contentSchema, delayStepSchema, deleteStepSchema, editStepSchema, fitModeSchema, imageNodeSchema, imageSugarSchema, imageToContentNode, inlineCodeSchema, inlineEmojiSchema, inlineLinkSchema, inlineMentionSchema, inlineNodeSchema, inlineTextSchema, isKnownContentNodeType, knownContentNodeTypes, messageStepSchema, metaSchema, pacingSchema, parseInline, participantKindSchema, participantSchema, participantsSchema, reactionStepSchema, readReceiptStepSchema, registerContentNodeType, sendStepSchema, sizeSchema, skinRefSchema, systemStepSchema, textNodeSchema, textToContentNode, themeModeSchema, timelineSchema, timelineStepSchema, toContentNodes, typingStepSchema, validateConfig };