@botpress/webchat 2.2.19 → 2.3.0

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 (52) hide show
  1. package/.turbo/turbo-build.log +8 -8
  2. package/dist/adapters/adapters/webchat-to-target.d.ts +46 -0
  3. package/dist/adapters/webchat.d.ts +816 -0
  4. package/dist/client/{PushpinClient/index.d.ts → client.d.ts} +6 -5
  5. package/dist/client/index.d.ts +1 -2
  6. package/dist/client/{PushpinClient/inner-client → inner-client}/index.d.ts +3 -3
  7. package/dist/client/{PushpinClient/inner-client → inner-client}/signal-listener.d.ts +1 -1
  8. package/dist/client/types.d.ts +3 -26
  9. package/dist/components/Block.d.ts +2 -2
  10. package/dist/components/Message/Message.d.ts +4 -2
  11. package/dist/components/renderers/Audio/Audio.d.ts +3 -1
  12. package/dist/components/renderers/Bubble/Bubble.d.ts +2 -2
  13. package/dist/components/renderers/Button/Button.d.ts +2 -2
  14. package/dist/components/renderers/Carousel/Carousel.d.ts +3 -1
  15. package/dist/components/renderers/Column/Column.d.ts +2 -2
  16. package/dist/components/renderers/Dropdown/Dropdown.d.ts +2 -2
  17. package/dist/components/renderers/File/File.d.ts +3 -1
  18. package/dist/components/renderers/Image/Image.d.ts +3 -1
  19. package/dist/components/renderers/Location/Location.d.ts +3 -1
  20. package/dist/components/renderers/Row/Row.d.ts +2 -2
  21. package/dist/components/renderers/Text/Text.d.ts +2 -2
  22. package/dist/components/renderers/Video/Video.d.ts +3 -1
  23. package/dist/gen/client/models.d.ts +61 -0
  24. package/dist/gen/client/operations/createMessage.d.ts +122 -0
  25. package/dist/gen/client/operations/getMessage.d.ts +61 -0
  26. package/dist/gen/client/operations/listConversationMessages.d.ts +61 -0
  27. package/dist/gen/signals/index.d.ts +416 -8
  28. package/dist/gen/signals/messageCreated.t.d.ts +61 -0
  29. package/dist/gen/signals/messageCreated.z.d.ts +415 -0
  30. package/dist/get-client.d.ts +1 -2
  31. package/dist/hooks/useClient.d.ts +1 -2
  32. package/dist/index.js +12119 -14476
  33. package/dist/index.umd.cjs +88 -88
  34. package/dist/schemas/init.d.ts +0 -7
  35. package/dist/stores/offlineStore.d.ts +1 -1
  36. package/dist/stores/webchatStore.d.ts +1 -0
  37. package/dist/style.css +1 -1
  38. package/dist/types/block-type.d.ts +3 -0
  39. package/dist/types/init.d.ts +0 -1
  40. package/openapi.ts +1 -1
  41. package/package.json +3 -2
  42. package/dist/client/MessagingClient/client.d.ts +0 -35
  43. package/dist/client/MessagingClient/index.d.ts +0 -1
  44. package/dist/gen/signals/custom.j.d.ts +0 -3
  45. package/dist/gen/signals/messageCreated.j.d.ts +0 -3
  46. package/dist/gen/signals/typingStarted.j.d.ts +0 -3
  47. package/dist/gen/signals/typingStopped.j.d.ts +0 -3
  48. package/dist/gen/signals/webchatConfig.j.d.ts +0 -3
  49. package/dist/gen/signals/webchatVisibility.j.d.ts +0 -3
  50. /package/dist/client/{PushpinClient/inner-client → inner-client}/event-emitter.d.ts +0 -0
  51. /package/dist/client/{PushpinClient/inner-client → inner-client}/eventsource.d.ts +0 -0
  52. /package/dist/client/{PushpinClient/state-machine.d.ts → state-machine.d.ts} +0 -0
@@ -282,6 +282,250 @@ export declare const videoSchema: z.ZodObject<{
282
282
  videoUrl: string;
283
283
  className?: string | undefined;
284
284
  }>;
285
+ export declare const blocSchema: z.ZodObject<{
286
+ items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
287
+ type: z.ZodLiteral<"text">;
288
+ payload: z.ZodObject<{
289
+ text: z.ZodString;
290
+ }, "strip", z.ZodTypeAny, {
291
+ text: string;
292
+ }, {
293
+ text: string;
294
+ }>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ type: "text";
297
+ payload: {
298
+ text: string;
299
+ };
300
+ }, {
301
+ type: "text";
302
+ payload: {
303
+ text: string;
304
+ };
305
+ }>, z.ZodObject<{
306
+ type: z.ZodLiteral<"markdown">;
307
+ payload: z.ZodObject<{
308
+ markdown: z.ZodString;
309
+ }, "strip", z.ZodTypeAny, {
310
+ markdown: string;
311
+ }, {
312
+ markdown: string;
313
+ }>;
314
+ }, "strip", z.ZodTypeAny, {
315
+ type: "markdown";
316
+ payload: {
317
+ markdown: string;
318
+ };
319
+ }, {
320
+ type: "markdown";
321
+ payload: {
322
+ markdown: string;
323
+ };
324
+ }>, z.ZodObject<{
325
+ type: z.ZodLiteral<"image">;
326
+ payload: z.ZodObject<{
327
+ imageUrl: z.ZodString;
328
+ }, "strip", z.ZodTypeAny, {
329
+ imageUrl: string;
330
+ }, {
331
+ imageUrl: string;
332
+ }>;
333
+ }, "strip", z.ZodTypeAny, {
334
+ type: "image";
335
+ payload: {
336
+ imageUrl: string;
337
+ };
338
+ }, {
339
+ type: "image";
340
+ payload: {
341
+ imageUrl: string;
342
+ };
343
+ }>, z.ZodObject<{
344
+ type: z.ZodLiteral<"audio">;
345
+ payload: z.ZodObject<{
346
+ audioUrl: z.ZodString;
347
+ }, "strip", z.ZodTypeAny, {
348
+ audioUrl: string;
349
+ }, {
350
+ audioUrl: string;
351
+ }>;
352
+ }, "strip", z.ZodTypeAny, {
353
+ type: "audio";
354
+ payload: {
355
+ audioUrl: string;
356
+ };
357
+ }, {
358
+ type: "audio";
359
+ payload: {
360
+ audioUrl: string;
361
+ };
362
+ }>, z.ZodObject<{
363
+ type: z.ZodLiteral<"video">;
364
+ payload: z.ZodObject<{
365
+ videoUrl: z.ZodString;
366
+ }, "strip", z.ZodTypeAny, {
367
+ videoUrl: string;
368
+ }, {
369
+ videoUrl: string;
370
+ }>;
371
+ }, "strip", z.ZodTypeAny, {
372
+ type: "video";
373
+ payload: {
374
+ videoUrl: string;
375
+ };
376
+ }, {
377
+ type: "video";
378
+ payload: {
379
+ videoUrl: string;
380
+ };
381
+ }>, z.ZodObject<{
382
+ type: z.ZodLiteral<"file">;
383
+ payload: z.ZodObject<{
384
+ fileUrl: z.ZodString;
385
+ title: z.ZodOptional<z.ZodString>;
386
+ }, "strip", z.ZodTypeAny, {
387
+ fileUrl: string;
388
+ title?: string | undefined;
389
+ }, {
390
+ fileUrl: string;
391
+ title?: string | undefined;
392
+ }>;
393
+ }, "strip", z.ZodTypeAny, {
394
+ type: "file";
395
+ payload: {
396
+ fileUrl: string;
397
+ title?: string | undefined;
398
+ };
399
+ }, {
400
+ type: "file";
401
+ payload: {
402
+ fileUrl: string;
403
+ title?: string | undefined;
404
+ };
405
+ }>, z.ZodObject<{
406
+ type: z.ZodLiteral<"location">;
407
+ payload: z.ZodObject<{
408
+ latitude: z.ZodNumber;
409
+ longitude: z.ZodNumber;
410
+ address: z.ZodOptional<z.ZodString>;
411
+ title: z.ZodOptional<z.ZodString>;
412
+ }, "strip", z.ZodTypeAny, {
413
+ latitude: number;
414
+ longitude: number;
415
+ address?: string | undefined;
416
+ title?: string | undefined;
417
+ }, {
418
+ latitude: number;
419
+ longitude: number;
420
+ address?: string | undefined;
421
+ title?: string | undefined;
422
+ }>;
423
+ }, "strip", z.ZodTypeAny, {
424
+ type: "location";
425
+ payload: {
426
+ latitude: number;
427
+ longitude: number;
428
+ address?: string | undefined;
429
+ title?: string | undefined;
430
+ };
431
+ }, {
432
+ type: "location";
433
+ payload: {
434
+ latitude: number;
435
+ longitude: number;
436
+ address?: string | undefined;
437
+ title?: string | undefined;
438
+ };
439
+ }>]>, "many">;
440
+ type: z.ZodLiteral<"bloc">;
441
+ className: z.ZodOptional<z.ZodString>;
442
+ }, "strip", z.ZodTypeAny, {
443
+ type: "bloc";
444
+ items: ({
445
+ type: "text";
446
+ payload: {
447
+ text: string;
448
+ };
449
+ } | {
450
+ type: "markdown";
451
+ payload: {
452
+ markdown: string;
453
+ };
454
+ } | {
455
+ type: "image";
456
+ payload: {
457
+ imageUrl: string;
458
+ };
459
+ } | {
460
+ type: "audio";
461
+ payload: {
462
+ audioUrl: string;
463
+ };
464
+ } | {
465
+ type: "video";
466
+ payload: {
467
+ videoUrl: string;
468
+ };
469
+ } | {
470
+ type: "file";
471
+ payload: {
472
+ fileUrl: string;
473
+ title?: string | undefined;
474
+ };
475
+ } | {
476
+ type: "location";
477
+ payload: {
478
+ latitude: number;
479
+ longitude: number;
480
+ address?: string | undefined;
481
+ title?: string | undefined;
482
+ };
483
+ })[];
484
+ className?: string | undefined;
485
+ }, {
486
+ type: "bloc";
487
+ items: ({
488
+ type: "text";
489
+ payload: {
490
+ text: string;
491
+ };
492
+ } | {
493
+ type: "markdown";
494
+ payload: {
495
+ markdown: string;
496
+ };
497
+ } | {
498
+ type: "image";
499
+ payload: {
500
+ imageUrl: string;
501
+ };
502
+ } | {
503
+ type: "audio";
504
+ payload: {
505
+ audioUrl: string;
506
+ };
507
+ } | {
508
+ type: "video";
509
+ payload: {
510
+ videoUrl: string;
511
+ };
512
+ } | {
513
+ type: "file";
514
+ payload: {
515
+ fileUrl: string;
516
+ title?: string | undefined;
517
+ };
518
+ } | {
519
+ type: "location";
520
+ payload: {
521
+ latitude: number;
522
+ longitude: number;
523
+ address?: string | undefined;
524
+ title?: string | undefined;
525
+ };
526
+ })[];
527
+ className?: string | undefined;
528
+ }>;
285
529
  export declare const messageSchema: z.ZodUnion<[z.ZodObject<{
286
530
  audioUrl: z.ZodString;
287
531
  type: z.ZodLiteral<"audio">;
@@ -553,6 +797,249 @@ export declare const messageSchema: z.ZodUnion<[z.ZodObject<{
553
797
  type: "video";
554
798
  videoUrl: string;
555
799
  className?: string | undefined;
800
+ }>, z.ZodObject<{
801
+ items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
802
+ type: z.ZodLiteral<"text">;
803
+ payload: z.ZodObject<{
804
+ text: z.ZodString;
805
+ }, "strip", z.ZodTypeAny, {
806
+ text: string;
807
+ }, {
808
+ text: string;
809
+ }>;
810
+ }, "strip", z.ZodTypeAny, {
811
+ type: "text";
812
+ payload: {
813
+ text: string;
814
+ };
815
+ }, {
816
+ type: "text";
817
+ payload: {
818
+ text: string;
819
+ };
820
+ }>, z.ZodObject<{
821
+ type: z.ZodLiteral<"markdown">;
822
+ payload: z.ZodObject<{
823
+ markdown: z.ZodString;
824
+ }, "strip", z.ZodTypeAny, {
825
+ markdown: string;
826
+ }, {
827
+ markdown: string;
828
+ }>;
829
+ }, "strip", z.ZodTypeAny, {
830
+ type: "markdown";
831
+ payload: {
832
+ markdown: string;
833
+ };
834
+ }, {
835
+ type: "markdown";
836
+ payload: {
837
+ markdown: string;
838
+ };
839
+ }>, z.ZodObject<{
840
+ type: z.ZodLiteral<"image">;
841
+ payload: z.ZodObject<{
842
+ imageUrl: z.ZodString;
843
+ }, "strip", z.ZodTypeAny, {
844
+ imageUrl: string;
845
+ }, {
846
+ imageUrl: string;
847
+ }>;
848
+ }, "strip", z.ZodTypeAny, {
849
+ type: "image";
850
+ payload: {
851
+ imageUrl: string;
852
+ };
853
+ }, {
854
+ type: "image";
855
+ payload: {
856
+ imageUrl: string;
857
+ };
858
+ }>, z.ZodObject<{
859
+ type: z.ZodLiteral<"audio">;
860
+ payload: z.ZodObject<{
861
+ audioUrl: z.ZodString;
862
+ }, "strip", z.ZodTypeAny, {
863
+ audioUrl: string;
864
+ }, {
865
+ audioUrl: string;
866
+ }>;
867
+ }, "strip", z.ZodTypeAny, {
868
+ type: "audio";
869
+ payload: {
870
+ audioUrl: string;
871
+ };
872
+ }, {
873
+ type: "audio";
874
+ payload: {
875
+ audioUrl: string;
876
+ };
877
+ }>, z.ZodObject<{
878
+ type: z.ZodLiteral<"video">;
879
+ payload: z.ZodObject<{
880
+ videoUrl: z.ZodString;
881
+ }, "strip", z.ZodTypeAny, {
882
+ videoUrl: string;
883
+ }, {
884
+ videoUrl: string;
885
+ }>;
886
+ }, "strip", z.ZodTypeAny, {
887
+ type: "video";
888
+ payload: {
889
+ videoUrl: string;
890
+ };
891
+ }, {
892
+ type: "video";
893
+ payload: {
894
+ videoUrl: string;
895
+ };
896
+ }>, z.ZodObject<{
897
+ type: z.ZodLiteral<"file">;
898
+ payload: z.ZodObject<{
899
+ fileUrl: z.ZodString;
900
+ title: z.ZodOptional<z.ZodString>;
901
+ }, "strip", z.ZodTypeAny, {
902
+ fileUrl: string;
903
+ title?: string | undefined;
904
+ }, {
905
+ fileUrl: string;
906
+ title?: string | undefined;
907
+ }>;
908
+ }, "strip", z.ZodTypeAny, {
909
+ type: "file";
910
+ payload: {
911
+ fileUrl: string;
912
+ title?: string | undefined;
913
+ };
914
+ }, {
915
+ type: "file";
916
+ payload: {
917
+ fileUrl: string;
918
+ title?: string | undefined;
919
+ };
920
+ }>, z.ZodObject<{
921
+ type: z.ZodLiteral<"location">;
922
+ payload: z.ZodObject<{
923
+ latitude: z.ZodNumber;
924
+ longitude: z.ZodNumber;
925
+ address: z.ZodOptional<z.ZodString>;
926
+ title: z.ZodOptional<z.ZodString>;
927
+ }, "strip", z.ZodTypeAny, {
928
+ latitude: number;
929
+ longitude: number;
930
+ address?: string | undefined;
931
+ title?: string | undefined;
932
+ }, {
933
+ latitude: number;
934
+ longitude: number;
935
+ address?: string | undefined;
936
+ title?: string | undefined;
937
+ }>;
938
+ }, "strip", z.ZodTypeAny, {
939
+ type: "location";
940
+ payload: {
941
+ latitude: number;
942
+ longitude: number;
943
+ address?: string | undefined;
944
+ title?: string | undefined;
945
+ };
946
+ }, {
947
+ type: "location";
948
+ payload: {
949
+ latitude: number;
950
+ longitude: number;
951
+ address?: string | undefined;
952
+ title?: string | undefined;
953
+ };
954
+ }>]>, "many">;
955
+ type: z.ZodLiteral<"bloc">;
956
+ className: z.ZodOptional<z.ZodString>;
957
+ }, "strip", z.ZodTypeAny, {
958
+ type: "bloc";
959
+ items: ({
960
+ type: "text";
961
+ payload: {
962
+ text: string;
963
+ };
964
+ } | {
965
+ type: "markdown";
966
+ payload: {
967
+ markdown: string;
968
+ };
969
+ } | {
970
+ type: "image";
971
+ payload: {
972
+ imageUrl: string;
973
+ };
974
+ } | {
975
+ type: "audio";
976
+ payload: {
977
+ audioUrl: string;
978
+ };
979
+ } | {
980
+ type: "video";
981
+ payload: {
982
+ videoUrl: string;
983
+ };
984
+ } | {
985
+ type: "file";
986
+ payload: {
987
+ fileUrl: string;
988
+ title?: string | undefined;
989
+ };
990
+ } | {
991
+ type: "location";
992
+ payload: {
993
+ latitude: number;
994
+ longitude: number;
995
+ address?: string | undefined;
996
+ title?: string | undefined;
997
+ };
998
+ })[];
999
+ className?: string | undefined;
1000
+ }, {
1001
+ type: "bloc";
1002
+ items: ({
1003
+ type: "text";
1004
+ payload: {
1005
+ text: string;
1006
+ };
1007
+ } | {
1008
+ type: "markdown";
1009
+ payload: {
1010
+ markdown: string;
1011
+ };
1012
+ } | {
1013
+ type: "image";
1014
+ payload: {
1015
+ imageUrl: string;
1016
+ };
1017
+ } | {
1018
+ type: "audio";
1019
+ payload: {
1020
+ audioUrl: string;
1021
+ };
1022
+ } | {
1023
+ type: "video";
1024
+ payload: {
1025
+ videoUrl: string;
1026
+ };
1027
+ } | {
1028
+ type: "file";
1029
+ payload: {
1030
+ fileUrl: string;
1031
+ title?: string | undefined;
1032
+ };
1033
+ } | {
1034
+ type: "location";
1035
+ payload: {
1036
+ latitude: number;
1037
+ longitude: number;
1038
+ address?: string | undefined;
1039
+ title?: string | undefined;
1040
+ };
1041
+ })[];
1042
+ className?: string | undefined;
556
1043
  }>]>;
557
1044
  export type Message = z.infer<typeof messageSchema>;
558
1045
  /**
@@ -1010,6 +1497,249 @@ export declare const messageCreatedSchema: z.ZodObject<{
1010
1497
  type: "video";
1011
1498
  videoUrl: string;
1012
1499
  className?: string | undefined;
1500
+ }>, z.ZodObject<{
1501
+ items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1502
+ type: z.ZodLiteral<"text">;
1503
+ payload: z.ZodObject<{
1504
+ text: z.ZodString;
1505
+ }, "strip", z.ZodTypeAny, {
1506
+ text: string;
1507
+ }, {
1508
+ text: string;
1509
+ }>;
1510
+ }, "strip", z.ZodTypeAny, {
1511
+ type: "text";
1512
+ payload: {
1513
+ text: string;
1514
+ };
1515
+ }, {
1516
+ type: "text";
1517
+ payload: {
1518
+ text: string;
1519
+ };
1520
+ }>, z.ZodObject<{
1521
+ type: z.ZodLiteral<"markdown">;
1522
+ payload: z.ZodObject<{
1523
+ markdown: z.ZodString;
1524
+ }, "strip", z.ZodTypeAny, {
1525
+ markdown: string;
1526
+ }, {
1527
+ markdown: string;
1528
+ }>;
1529
+ }, "strip", z.ZodTypeAny, {
1530
+ type: "markdown";
1531
+ payload: {
1532
+ markdown: string;
1533
+ };
1534
+ }, {
1535
+ type: "markdown";
1536
+ payload: {
1537
+ markdown: string;
1538
+ };
1539
+ }>, z.ZodObject<{
1540
+ type: z.ZodLiteral<"image">;
1541
+ payload: z.ZodObject<{
1542
+ imageUrl: z.ZodString;
1543
+ }, "strip", z.ZodTypeAny, {
1544
+ imageUrl: string;
1545
+ }, {
1546
+ imageUrl: string;
1547
+ }>;
1548
+ }, "strip", z.ZodTypeAny, {
1549
+ type: "image";
1550
+ payload: {
1551
+ imageUrl: string;
1552
+ };
1553
+ }, {
1554
+ type: "image";
1555
+ payload: {
1556
+ imageUrl: string;
1557
+ };
1558
+ }>, z.ZodObject<{
1559
+ type: z.ZodLiteral<"audio">;
1560
+ payload: z.ZodObject<{
1561
+ audioUrl: z.ZodString;
1562
+ }, "strip", z.ZodTypeAny, {
1563
+ audioUrl: string;
1564
+ }, {
1565
+ audioUrl: string;
1566
+ }>;
1567
+ }, "strip", z.ZodTypeAny, {
1568
+ type: "audio";
1569
+ payload: {
1570
+ audioUrl: string;
1571
+ };
1572
+ }, {
1573
+ type: "audio";
1574
+ payload: {
1575
+ audioUrl: string;
1576
+ };
1577
+ }>, z.ZodObject<{
1578
+ type: z.ZodLiteral<"video">;
1579
+ payload: z.ZodObject<{
1580
+ videoUrl: z.ZodString;
1581
+ }, "strip", z.ZodTypeAny, {
1582
+ videoUrl: string;
1583
+ }, {
1584
+ videoUrl: string;
1585
+ }>;
1586
+ }, "strip", z.ZodTypeAny, {
1587
+ type: "video";
1588
+ payload: {
1589
+ videoUrl: string;
1590
+ };
1591
+ }, {
1592
+ type: "video";
1593
+ payload: {
1594
+ videoUrl: string;
1595
+ };
1596
+ }>, z.ZodObject<{
1597
+ type: z.ZodLiteral<"file">;
1598
+ payload: z.ZodObject<{
1599
+ fileUrl: z.ZodString;
1600
+ title: z.ZodOptional<z.ZodString>;
1601
+ }, "strip", z.ZodTypeAny, {
1602
+ fileUrl: string;
1603
+ title?: string | undefined;
1604
+ }, {
1605
+ fileUrl: string;
1606
+ title?: string | undefined;
1607
+ }>;
1608
+ }, "strip", z.ZodTypeAny, {
1609
+ type: "file";
1610
+ payload: {
1611
+ fileUrl: string;
1612
+ title?: string | undefined;
1613
+ };
1614
+ }, {
1615
+ type: "file";
1616
+ payload: {
1617
+ fileUrl: string;
1618
+ title?: string | undefined;
1619
+ };
1620
+ }>, z.ZodObject<{
1621
+ type: z.ZodLiteral<"location">;
1622
+ payload: z.ZodObject<{
1623
+ latitude: z.ZodNumber;
1624
+ longitude: z.ZodNumber;
1625
+ address: z.ZodOptional<z.ZodString>;
1626
+ title: z.ZodOptional<z.ZodString>;
1627
+ }, "strip", z.ZodTypeAny, {
1628
+ latitude: number;
1629
+ longitude: number;
1630
+ address?: string | undefined;
1631
+ title?: string | undefined;
1632
+ }, {
1633
+ latitude: number;
1634
+ longitude: number;
1635
+ address?: string | undefined;
1636
+ title?: string | undefined;
1637
+ }>;
1638
+ }, "strip", z.ZodTypeAny, {
1639
+ type: "location";
1640
+ payload: {
1641
+ latitude: number;
1642
+ longitude: number;
1643
+ address?: string | undefined;
1644
+ title?: string | undefined;
1645
+ };
1646
+ }, {
1647
+ type: "location";
1648
+ payload: {
1649
+ latitude: number;
1650
+ longitude: number;
1651
+ address?: string | undefined;
1652
+ title?: string | undefined;
1653
+ };
1654
+ }>]>, "many">;
1655
+ type: z.ZodLiteral<"bloc">;
1656
+ className: z.ZodOptional<z.ZodString>;
1657
+ }, "strip", z.ZodTypeAny, {
1658
+ type: "bloc";
1659
+ items: ({
1660
+ type: "text";
1661
+ payload: {
1662
+ text: string;
1663
+ };
1664
+ } | {
1665
+ type: "markdown";
1666
+ payload: {
1667
+ markdown: string;
1668
+ };
1669
+ } | {
1670
+ type: "image";
1671
+ payload: {
1672
+ imageUrl: string;
1673
+ };
1674
+ } | {
1675
+ type: "audio";
1676
+ payload: {
1677
+ audioUrl: string;
1678
+ };
1679
+ } | {
1680
+ type: "video";
1681
+ payload: {
1682
+ videoUrl: string;
1683
+ };
1684
+ } | {
1685
+ type: "file";
1686
+ payload: {
1687
+ fileUrl: string;
1688
+ title?: string | undefined;
1689
+ };
1690
+ } | {
1691
+ type: "location";
1692
+ payload: {
1693
+ latitude: number;
1694
+ longitude: number;
1695
+ address?: string | undefined;
1696
+ title?: string | undefined;
1697
+ };
1698
+ })[];
1699
+ className?: string | undefined;
1700
+ }, {
1701
+ type: "bloc";
1702
+ items: ({
1703
+ type: "text";
1704
+ payload: {
1705
+ text: string;
1706
+ };
1707
+ } | {
1708
+ type: "markdown";
1709
+ payload: {
1710
+ markdown: string;
1711
+ };
1712
+ } | {
1713
+ type: "image";
1714
+ payload: {
1715
+ imageUrl: string;
1716
+ };
1717
+ } | {
1718
+ type: "audio";
1719
+ payload: {
1720
+ audioUrl: string;
1721
+ };
1722
+ } | {
1723
+ type: "video";
1724
+ payload: {
1725
+ videoUrl: string;
1726
+ };
1727
+ } | {
1728
+ type: "file";
1729
+ payload: {
1730
+ fileUrl: string;
1731
+ title?: string | undefined;
1732
+ };
1733
+ } | {
1734
+ type: "location";
1735
+ payload: {
1736
+ latitude: number;
1737
+ longitude: number;
1738
+ address?: string | undefined;
1739
+ title?: string | undefined;
1740
+ };
1741
+ })[];
1742
+ className?: string | undefined;
1013
1743
  }>]>;
1014
1744
  }, "strip", z.ZodTypeAny, {
1015
1745
  type: "message_created";
@@ -1087,6 +1817,49 @@ export declare const messageCreatedSchema: z.ZodObject<{
1087
1817
  type: "video";
1088
1818
  videoUrl: string;
1089
1819
  className?: string | undefined;
1820
+ } | {
1821
+ type: "bloc";
1822
+ items: ({
1823
+ type: "text";
1824
+ payload: {
1825
+ text: string;
1826
+ };
1827
+ } | {
1828
+ type: "markdown";
1829
+ payload: {
1830
+ markdown: string;
1831
+ };
1832
+ } | {
1833
+ type: "image";
1834
+ payload: {
1835
+ imageUrl: string;
1836
+ };
1837
+ } | {
1838
+ type: "audio";
1839
+ payload: {
1840
+ audioUrl: string;
1841
+ };
1842
+ } | {
1843
+ type: "video";
1844
+ payload: {
1845
+ videoUrl: string;
1846
+ };
1847
+ } | {
1848
+ type: "file";
1849
+ payload: {
1850
+ fileUrl: string;
1851
+ title?: string | undefined;
1852
+ };
1853
+ } | {
1854
+ type: "location";
1855
+ payload: {
1856
+ latitude: number;
1857
+ longitude: number;
1858
+ address?: string | undefined;
1859
+ title?: string | undefined;
1860
+ };
1861
+ })[];
1862
+ className?: string | undefined;
1090
1863
  };
1091
1864
  }, {
1092
1865
  type: "message_created";
@@ -1164,6 +1937,49 @@ export declare const messageCreatedSchema: z.ZodObject<{
1164
1937
  type: "video";
1165
1938
  videoUrl: string;
1166
1939
  className?: string | undefined;
1940
+ } | {
1941
+ type: "bloc";
1942
+ items: ({
1943
+ type: "text";
1944
+ payload: {
1945
+ text: string;
1946
+ };
1947
+ } | {
1948
+ type: "markdown";
1949
+ payload: {
1950
+ markdown: string;
1951
+ };
1952
+ } | {
1953
+ type: "image";
1954
+ payload: {
1955
+ imageUrl: string;
1956
+ };
1957
+ } | {
1958
+ type: "audio";
1959
+ payload: {
1960
+ audioUrl: string;
1961
+ };
1962
+ } | {
1963
+ type: "video";
1964
+ payload: {
1965
+ videoUrl: string;
1966
+ };
1967
+ } | {
1968
+ type: "file";
1969
+ payload: {
1970
+ fileUrl: string;
1971
+ title?: string | undefined;
1972
+ };
1973
+ } | {
1974
+ type: "location";
1975
+ payload: {
1976
+ latitude: number;
1977
+ longitude: number;
1978
+ address?: string | undefined;
1979
+ title?: string | undefined;
1980
+ };
1981
+ })[];
1982
+ className?: string | undefined;
1167
1983
  };
1168
1984
  }>;
1169
1985
  export type Signal = z.infer<typeof triggerSignalSchema> | z.infer<typeof messageCreatedSchema>;