@kl1/contracts 1.1.41-uat → 1.1.43-uat

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 (40) hide show
  1. package/dist/index.js +2963 -2771
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +2961 -2772
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/channel/index.d.ts +1692 -73
  6. package/dist/src/channel/index.d.ts.map +1 -1
  7. package/dist/src/channel/schema.d.ts +36 -0
  8. package/dist/src/channel/schema.d.ts.map +1 -1
  9. package/dist/src/channel/validation.d.ts +7 -0
  10. package/dist/src/channel/validation.d.ts.map +1 -1
  11. package/dist/src/chat/index.d.ts +767 -59
  12. package/dist/src/chat/index.d.ts.map +1 -1
  13. package/dist/src/chat/schema.d.ts +136 -20
  14. package/dist/src/chat/schema.d.ts.map +1 -1
  15. package/dist/src/chat/validation.d.ts +153 -61
  16. package/dist/src/chat/validation.d.ts.map +1 -1
  17. package/dist/src/contract.d.ts +3972 -1072
  18. package/dist/src/contract.d.ts.map +1 -1
  19. package/dist/src/cx-log/index.d.ts +75 -0
  20. package/dist/src/cx-log/index.d.ts.map +1 -1
  21. package/dist/src/cx-log/schema.d.ts +61 -0
  22. package/dist/src/cx-log/schema.d.ts.map +1 -1
  23. package/dist/src/index.d.ts +1 -0
  24. package/dist/src/index.d.ts.map +1 -1
  25. package/dist/src/instagram/index.d.ts +145 -53
  26. package/dist/src/instagram/index.d.ts.map +1 -1
  27. package/dist/src/line/index.d.ts +150 -58
  28. package/dist/src/line/index.d.ts.map +1 -1
  29. package/dist/src/line/validation.d.ts +5 -5
  30. package/dist/src/messenger/index.d.ts +180 -54
  31. package/dist/src/messenger/index.d.ts.map +1 -1
  32. package/dist/src/messenger/validation.d.ts +43 -0
  33. package/dist/src/messenger/validation.d.ts.map +1 -1
  34. package/dist/src/viber/index.d.ts +286 -53
  35. package/dist/src/viber/index.d.ts.map +1 -1
  36. package/dist/src/webchat/index.d.ts +192 -53
  37. package/dist/src/webchat/index.d.ts.map +1 -1
  38. package/dist/src/workflow-rule/index.d.ts +132 -0
  39. package/dist/src/workflow-rule/index.d.ts.map +1 -1
  40. package/package.json +4 -10
@@ -83,6 +83,25 @@ export declare const viberContract: {
83
83
  isReloginRequired: z.ZodBoolean;
84
84
  connectedUserName: z.ZodString;
85
85
  connectedUserId: z.ZodString;
86
+ botpressBot: z.ZodNullable<z.ZodObject<{
87
+ id: z.ZodString;
88
+ name: z.ZodString;
89
+ botId: z.ZodString;
90
+ integrationId: z.ZodString;
91
+ accessToken: z.ZodString;
92
+ }, "strip", z.ZodTypeAny, {
93
+ id: string;
94
+ name: string;
95
+ accessToken: string;
96
+ botId: string;
97
+ integrationId: string;
98
+ }, {
99
+ id: string;
100
+ name: string;
101
+ accessToken: string;
102
+ botId: string;
103
+ integrationId: string;
104
+ }>>;
86
105
  actor: z.ZodObject<{
87
106
  id: z.ZodString;
88
107
  createdAt: z.ZodDate;
@@ -351,6 +370,13 @@ export declare const viberContract: {
351
370
  isReloginRequired: boolean;
352
371
  connectedUserName: string;
353
372
  connectedUserId: string;
373
+ botpressBot: {
374
+ id: string;
375
+ name: string;
376
+ accessToken: string;
377
+ botId: string;
378
+ integrationId: string;
379
+ } | null;
354
380
  }, {
355
381
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
356
382
  id: string;
@@ -415,6 +441,13 @@ export declare const viberContract: {
415
441
  isReloginRequired: boolean;
416
442
  connectedUserName: string;
417
443
  connectedUserId: string;
444
+ botpressBot: {
445
+ id: string;
446
+ name: string;
447
+ accessToken: string;
448
+ botId: string;
449
+ integrationId: string;
450
+ } | null;
418
451
  }>;
419
452
  }, "strip", z.ZodTypeAny, {
420
453
  channel: {
@@ -481,6 +514,13 @@ export declare const viberContract: {
481
514
  isReloginRequired: boolean;
482
515
  connectedUserName: string;
483
516
  connectedUserId: string;
517
+ botpressBot: {
518
+ id: string;
519
+ name: string;
520
+ accessToken: string;
521
+ botId: string;
522
+ integrationId: string;
523
+ } | null;
484
524
  };
485
525
  requestId: string;
486
526
  }, {
@@ -548,6 +588,13 @@ export declare const viberContract: {
548
588
  isReloginRequired: boolean;
549
589
  connectedUserName: string;
550
590
  connectedUserId: string;
591
+ botpressBot: {
592
+ id: string;
593
+ name: string;
594
+ accessToken: string;
595
+ botId: string;
596
+ integrationId: string;
597
+ } | null;
551
598
  };
552
599
  requestId: string;
553
600
  }>;
@@ -619,6 +666,25 @@ export declare const viberContract: {
619
666
  isReloginRequired: z.ZodBoolean;
620
667
  connectedUserName: z.ZodString;
621
668
  connectedUserId: z.ZodString;
669
+ botpressBot: z.ZodNullable<z.ZodObject<{
670
+ id: z.ZodString;
671
+ name: z.ZodString;
672
+ botId: z.ZodString;
673
+ integrationId: z.ZodString;
674
+ accessToken: z.ZodString;
675
+ }, "strip", z.ZodTypeAny, {
676
+ id: string;
677
+ name: string;
678
+ accessToken: string;
679
+ botId: string;
680
+ integrationId: string;
681
+ }, {
682
+ id: string;
683
+ name: string;
684
+ accessToken: string;
685
+ botId: string;
686
+ integrationId: string;
687
+ }>>;
622
688
  actor: z.ZodObject<{
623
689
  id: z.ZodString;
624
690
  createdAt: z.ZodDate;
@@ -887,6 +953,13 @@ export declare const viberContract: {
887
953
  isReloginRequired: boolean;
888
954
  connectedUserName: string;
889
955
  connectedUserId: string;
956
+ botpressBot: {
957
+ id: string;
958
+ name: string;
959
+ accessToken: string;
960
+ botId: string;
961
+ integrationId: string;
962
+ } | null;
890
963
  }, {
891
964
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
892
965
  id: string;
@@ -951,6 +1024,13 @@ export declare const viberContract: {
951
1024
  isReloginRequired: boolean;
952
1025
  connectedUserName: string;
953
1026
  connectedUserId: string;
1027
+ botpressBot: {
1028
+ id: string;
1029
+ name: string;
1030
+ accessToken: string;
1031
+ botId: string;
1032
+ integrationId: string;
1033
+ } | null;
954
1034
  }>;
955
1035
  }, "strip", z.ZodTypeAny, {
956
1036
  channel: {
@@ -1017,6 +1097,13 @@ export declare const viberContract: {
1017
1097
  isReloginRequired: boolean;
1018
1098
  connectedUserName: string;
1019
1099
  connectedUserId: string;
1100
+ botpressBot: {
1101
+ id: string;
1102
+ name: string;
1103
+ accessToken: string;
1104
+ botId: string;
1105
+ integrationId: string;
1106
+ } | null;
1020
1107
  };
1021
1108
  requestId: string;
1022
1109
  }, {
@@ -1084,6 +1171,13 @@ export declare const viberContract: {
1084
1171
  isReloginRequired: boolean;
1085
1172
  connectedUserName: string;
1086
1173
  connectedUserId: string;
1174
+ botpressBot: {
1175
+ id: string;
1176
+ name: string;
1177
+ accessToken: string;
1178
+ botId: string;
1179
+ integrationId: string;
1180
+ } | null;
1087
1181
  };
1088
1182
  requestId: string;
1089
1183
  }>;
@@ -1102,6 +1196,7 @@ export declare const viberContract: {
1102
1196
  };
1103
1197
  sendMessage: {
1104
1198
  body: z.ZodObject<{
1199
+ isBot: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
1105
1200
  room: z.ZodObject<{
1106
1201
  id: z.ZodString;
1107
1202
  lastMessage: z.ZodOptional<z.ZodString>;
@@ -1456,7 +1551,7 @@ export declare const viberContract: {
1456
1551
  message: z.ZodObject<{
1457
1552
  message: z.ZodOptional<z.ZodString>;
1458
1553
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
1459
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
1554
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
1460
1555
  readAt: z.ZodOptional<z.ZodDate>;
1461
1556
  metadata: z.ZodOptional<z.ZodAny>;
1462
1557
  platformId: z.ZodOptional<z.ZodString>;
@@ -1472,18 +1567,21 @@ export declare const viberContract: {
1472
1567
  fileName: z.ZodString;
1473
1568
  fileSize: z.ZodNumber;
1474
1569
  fileKey: z.ZodString;
1570
+ originalUrl: z.ZodOptional<z.ZodString>;
1475
1571
  }, "strip", z.ZodTypeAny, {
1476
1572
  fileName: string;
1477
1573
  fileKey: string;
1478
1574
  bucketName: string;
1479
1575
  fileSize: number;
1576
+ originalUrl?: string | undefined;
1480
1577
  }, {
1481
1578
  fileName: string;
1482
1579
  fileKey: string;
1483
1580
  bucketName: string;
1484
1581
  fileSize: number;
1582
+ originalUrl?: string | undefined;
1485
1583
  }>>;
1486
- sender: z.ZodObject<{
1584
+ sender: z.ZodOptional<z.ZodObject<{
1487
1585
  id: z.ZodString;
1488
1586
  name: z.ZodString;
1489
1587
  email: z.ZodString;
@@ -1501,17 +1599,10 @@ export declare const viberContract: {
1501
1599
  name: string;
1502
1600
  email: string;
1503
1601
  phone: string | null;
1504
- }>;
1602
+ }>>;
1505
1603
  }, "strip", z.ZodTypeAny, {
1506
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
1604
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
1507
1605
  direction: "incoming" | "outgoing" | "system";
1508
- sender: {
1509
- id: string;
1510
- address: string | null;
1511
- name: string;
1512
- email: string;
1513
- phone: string | null;
1514
- };
1515
1606
  message?: string | undefined;
1516
1607
  readAt?: Date | undefined;
1517
1608
  metadata?: any;
@@ -1528,17 +1619,18 @@ export declare const viberContract: {
1528
1619
  fileKey: string;
1529
1620
  bucketName: string;
1530
1621
  fileSize: number;
1622
+ originalUrl?: string | undefined;
1531
1623
  } | undefined;
1532
- }, {
1533
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
1534
- direction: "incoming" | "outgoing" | "system";
1535
- sender: {
1624
+ sender?: {
1536
1625
  id: string;
1537
1626
  address: string | null;
1538
1627
  name: string;
1539
1628
  email: string;
1540
1629
  phone: string | null;
1541
- };
1630
+ } | undefined;
1631
+ }, {
1632
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
1633
+ direction: "incoming" | "outgoing" | "system";
1542
1634
  message?: string | undefined;
1543
1635
  readAt?: Date | undefined;
1544
1636
  metadata?: any;
@@ -1555,19 +1647,20 @@ export declare const viberContract: {
1555
1647
  fileKey: string;
1556
1648
  bucketName: string;
1557
1649
  fileSize: number;
1650
+ originalUrl?: string | undefined;
1558
1651
  } | undefined;
1559
- }>;
1560
- }, "strip", z.ZodTypeAny, {
1561
- message: {
1562
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
1563
- direction: "incoming" | "outgoing" | "system";
1564
- sender: {
1652
+ sender?: {
1565
1653
  id: string;
1566
1654
  address: string | null;
1567
1655
  name: string;
1568
1656
  email: string;
1569
1657
  phone: string | null;
1570
- };
1658
+ } | undefined;
1659
+ }>;
1660
+ }, "strip", z.ZodTypeAny, {
1661
+ message: {
1662
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
1663
+ direction: "incoming" | "outgoing" | "system";
1571
1664
  message?: string | undefined;
1572
1665
  readAt?: Date | undefined;
1573
1666
  metadata?: any;
@@ -1584,6 +1677,14 @@ export declare const viberContract: {
1584
1677
  fileKey: string;
1585
1678
  bucketName: string;
1586
1679
  fileSize: number;
1680
+ originalUrl?: string | undefined;
1681
+ } | undefined;
1682
+ sender?: {
1683
+ id: string;
1684
+ address: string | null;
1685
+ name: string;
1686
+ email: string;
1687
+ phone: string | null;
1587
1688
  } | undefined;
1588
1689
  };
1589
1690
  room: {
@@ -1653,17 +1754,11 @@ export declare const viberContract: {
1653
1754
  metadata?: any;
1654
1755
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1655
1756
  };
1757
+ isBot: boolean | null;
1656
1758
  }, {
1657
1759
  message: {
1658
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
1760
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
1659
1761
  direction: "incoming" | "outgoing" | "system";
1660
- sender: {
1661
- id: string;
1662
- address: string | null;
1663
- name: string;
1664
- email: string;
1665
- phone: string | null;
1666
- };
1667
1762
  message?: string | undefined;
1668
1763
  readAt?: Date | undefined;
1669
1764
  metadata?: any;
@@ -1680,6 +1775,14 @@ export declare const viberContract: {
1680
1775
  fileKey: string;
1681
1776
  bucketName: string;
1682
1777
  fileSize: number;
1778
+ originalUrl?: string | undefined;
1779
+ } | undefined;
1780
+ sender?: {
1781
+ id: string;
1782
+ address: string | null;
1783
+ name: string;
1784
+ email: string;
1785
+ phone: string | null;
1683
1786
  } | undefined;
1684
1787
  };
1685
1788
  room: {
@@ -1749,6 +1852,7 @@ export declare const viberContract: {
1749
1852
  metadata?: any;
1750
1853
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1751
1854
  };
1855
+ isBot?: boolean | null | undefined;
1752
1856
  }>;
1753
1857
  method: "POST";
1754
1858
  responses: {
@@ -1761,7 +1865,7 @@ export declare const viberContract: {
1761
1865
  deletedAt: z.ZodNullable<z.ZodDate>;
1762
1866
  message: z.ZodString;
1763
1867
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
1764
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
1868
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
1765
1869
  readAt: z.ZodDate;
1766
1870
  metadata: z.ZodAny;
1767
1871
  platformId: z.ZodString;
@@ -1786,6 +1890,7 @@ export declare const viberContract: {
1786
1890
  firstResponseAt: z.ZodDate;
1787
1891
  firstResponseTime: z.ZodNumber;
1788
1892
  isLatest: z.ZodBoolean;
1893
+ isBotRoom: z.ZodBoolean;
1789
1894
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
1790
1895
  platformContact: z.ZodObject<{
1791
1896
  id: z.ZodString;
@@ -3161,6 +3266,25 @@ export declare const viberContract: {
3161
3266
  isReloginRequired: z.ZodBoolean;
3162
3267
  connectedUserName: z.ZodString;
3163
3268
  connectedUserId: z.ZodString;
3269
+ botpressBot: z.ZodNullable<z.ZodObject<{
3270
+ id: z.ZodString;
3271
+ name: z.ZodString;
3272
+ botId: z.ZodString;
3273
+ integrationId: z.ZodString;
3274
+ accessToken: z.ZodString;
3275
+ }, "strip", z.ZodTypeAny, {
3276
+ id: string;
3277
+ name: string;
3278
+ accessToken: string;
3279
+ botId: string;
3280
+ integrationId: string;
3281
+ }, {
3282
+ id: string;
3283
+ name: string;
3284
+ accessToken: string;
3285
+ botId: string;
3286
+ integrationId: string;
3287
+ }>>;
3164
3288
  actor: z.ZodObject<{
3165
3289
  id: z.ZodString;
3166
3290
  createdAt: z.ZodDate;
@@ -3429,6 +3553,13 @@ export declare const viberContract: {
3429
3553
  isReloginRequired: boolean;
3430
3554
  connectedUserName: string;
3431
3555
  connectedUserId: string;
3556
+ botpressBot: {
3557
+ id: string;
3558
+ name: string;
3559
+ accessToken: string;
3560
+ botId: string;
3561
+ integrationId: string;
3562
+ } | null;
3432
3563
  }, {
3433
3564
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
3434
3565
  id: string;
@@ -3493,6 +3624,13 @@ export declare const viberContract: {
3493
3624
  isReloginRequired: boolean;
3494
3625
  connectedUserName: string;
3495
3626
  connectedUserId: string;
3627
+ botpressBot: {
3628
+ id: string;
3629
+ name: string;
3630
+ accessToken: string;
3631
+ botId: string;
3632
+ integrationId: string;
3633
+ } | null;
3496
3634
  }>;
3497
3635
  cxlog: z.ZodObject<{
3498
3636
  id: z.ZodString;
@@ -4004,6 +4142,13 @@ export declare const viberContract: {
4004
4142
  isReloginRequired: boolean;
4005
4143
  connectedUserName: string;
4006
4144
  connectedUserId: string;
4145
+ botpressBot: {
4146
+ id: string;
4147
+ name: string;
4148
+ accessToken: string;
4149
+ botId: string;
4150
+ integrationId: string;
4151
+ } | null;
4007
4152
  };
4008
4153
  direction: "incoming" | "outgoing" | "system";
4009
4154
  status: number;
@@ -4218,6 +4363,7 @@ export declare const viberContract: {
4218
4363
  };
4219
4364
  closedAt: Date;
4220
4365
  lastMessageAt: Date | null;
4366
+ isBotRoom: boolean;
4221
4367
  cxlog: {
4222
4368
  id: string;
4223
4369
  channel: string | null;
@@ -4362,6 +4508,13 @@ export declare const viberContract: {
4362
4508
  isReloginRequired: boolean;
4363
4509
  connectedUserName: string;
4364
4510
  connectedUserId: string;
4511
+ botpressBot: {
4512
+ id: string;
4513
+ name: string;
4514
+ accessToken: string;
4515
+ botId: string;
4516
+ integrationId: string;
4517
+ } | null;
4365
4518
  };
4366
4519
  direction: "incoming" | "outgoing" | "system";
4367
4520
  status: number;
@@ -4576,6 +4729,7 @@ export declare const viberContract: {
4576
4729
  };
4577
4730
  closedAt: Date;
4578
4731
  lastMessageAt: Date | null;
4732
+ isBotRoom: boolean;
4579
4733
  cxlog: {
4580
4734
  id: string;
4581
4735
  channel: string | null;
@@ -4696,7 +4850,7 @@ export declare const viberContract: {
4696
4850
  deletedAt: z.ZodNullable<z.ZodDate>;
4697
4851
  message: z.ZodString;
4698
4852
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
4699
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
4853
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
4700
4854
  readAt: z.ZodDate;
4701
4855
  metadata: z.ZodAny;
4702
4856
  platformId: z.ZodString;
@@ -5354,7 +5508,7 @@ export declare const viberContract: {
5354
5508
  };
5355
5509
  }>;
5356
5510
  }, "strip", z.ZodTypeAny, {
5357
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
5511
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
5358
5512
  message: string;
5359
5513
  id: string;
5360
5514
  url: string;
@@ -5406,7 +5560,6 @@ export declare const viberContract: {
5406
5560
  telephonySignature: string | null;
5407
5561
  };
5408
5562
  };
5409
- platformId: string;
5410
5563
  upload: {
5411
5564
  id: string;
5412
5565
  status: string | null;
@@ -5463,6 +5616,7 @@ export declare const viberContract: {
5463
5616
  telephonySignature: string | null;
5464
5617
  };
5465
5618
  };
5619
+ platformId: string;
5466
5620
  readAt: Date;
5467
5621
  platformMessageId: string;
5468
5622
  replyPlatformMessageId: string;
@@ -5516,7 +5670,7 @@ export declare const viberContract: {
5516
5670
  metadata?: any;
5517
5671
  template?: any;
5518
5672
  }, {
5519
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
5673
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
5520
5674
  message: string;
5521
5675
  id: string;
5522
5676
  url: string;
@@ -5568,7 +5722,6 @@ export declare const viberContract: {
5568
5722
  telephonySignature: string | null;
5569
5723
  };
5570
5724
  };
5571
- platformId: string;
5572
5725
  upload: {
5573
5726
  id: string;
5574
5727
  status: string | null;
@@ -5625,6 +5778,7 @@ export declare const viberContract: {
5625
5778
  telephonySignature: string | null;
5626
5779
  };
5627
5780
  };
5781
+ platformId: string;
5628
5782
  readAt: Date;
5629
5783
  platformMessageId: string;
5630
5784
  replyPlatformMessageId: string;
@@ -6316,7 +6470,7 @@ export declare const viberContract: {
6316
6470
  isActive: boolean;
6317
6471
  }>;
6318
6472
  }, "strip", z.ZodTypeAny, {
6319
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
6473
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
6320
6474
  message: string;
6321
6475
  id: string;
6322
6476
  url: string;
@@ -6368,7 +6522,6 @@ export declare const viberContract: {
6368
6522
  telephonySignature: string | null;
6369
6523
  };
6370
6524
  };
6371
- platformId: string;
6372
6525
  upload: {
6373
6526
  id: string;
6374
6527
  status: string | null;
@@ -6425,6 +6578,7 @@ export declare const viberContract: {
6425
6578
  telephonySignature: string | null;
6426
6579
  };
6427
6580
  };
6581
+ platformId: string;
6428
6582
  room: {
6429
6583
  id: string;
6430
6584
  channel: {
@@ -6491,6 +6645,13 @@ export declare const viberContract: {
6491
6645
  isReloginRequired: boolean;
6492
6646
  connectedUserName: string;
6493
6647
  connectedUserId: string;
6648
+ botpressBot: {
6649
+ id: string;
6650
+ name: string;
6651
+ accessToken: string;
6652
+ botId: string;
6653
+ integrationId: string;
6654
+ } | null;
6494
6655
  };
6495
6656
  direction: "incoming" | "outgoing" | "system";
6496
6657
  status: number;
@@ -6705,6 +6866,7 @@ export declare const viberContract: {
6705
6866
  };
6706
6867
  closedAt: Date;
6707
6868
  lastMessageAt: Date | null;
6869
+ isBotRoom: boolean;
6708
6870
  cxlog: {
6709
6871
  id: string;
6710
6872
  channel: string | null;
@@ -6800,7 +6962,7 @@ export declare const viberContract: {
6800
6962
  previewUrl: string;
6801
6963
  imageSetId: string;
6802
6964
  repliedMessage: {
6803
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
6965
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
6804
6966
  message: string;
6805
6967
  id: string;
6806
6968
  url: string;
@@ -6852,7 +7014,6 @@ export declare const viberContract: {
6852
7014
  telephonySignature: string | null;
6853
7015
  };
6854
7016
  };
6855
- platformId: string;
6856
7017
  upload: {
6857
7018
  id: string;
6858
7019
  status: string | null;
@@ -6909,6 +7070,7 @@ export declare const viberContract: {
6909
7070
  telephonySignature: string | null;
6910
7071
  };
6911
7072
  };
7073
+ platformId: string;
6912
7074
  readAt: Date;
6913
7075
  platformMessageId: string;
6914
7076
  replyPlatformMessageId: string;
@@ -7009,7 +7171,7 @@ export declare const viberContract: {
7009
7171
  metadata?: any;
7010
7172
  template?: any;
7011
7173
  }, {
7012
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
7174
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
7013
7175
  message: string;
7014
7176
  id: string;
7015
7177
  url: string;
@@ -7061,7 +7223,6 @@ export declare const viberContract: {
7061
7223
  telephonySignature: string | null;
7062
7224
  };
7063
7225
  };
7064
- platformId: string;
7065
7226
  upload: {
7066
7227
  id: string;
7067
7228
  status: string | null;
@@ -7118,6 +7279,7 @@ export declare const viberContract: {
7118
7279
  telephonySignature: string | null;
7119
7280
  };
7120
7281
  };
7282
+ platformId: string;
7121
7283
  room: {
7122
7284
  id: string;
7123
7285
  channel: {
@@ -7184,6 +7346,13 @@ export declare const viberContract: {
7184
7346
  isReloginRequired: boolean;
7185
7347
  connectedUserName: string;
7186
7348
  connectedUserId: string;
7349
+ botpressBot: {
7350
+ id: string;
7351
+ name: string;
7352
+ accessToken: string;
7353
+ botId: string;
7354
+ integrationId: string;
7355
+ } | null;
7187
7356
  };
7188
7357
  direction: "incoming" | "outgoing" | "system";
7189
7358
  status: number;
@@ -7398,6 +7567,7 @@ export declare const viberContract: {
7398
7567
  };
7399
7568
  closedAt: Date;
7400
7569
  lastMessageAt: Date | null;
7570
+ isBotRoom: boolean;
7401
7571
  cxlog: {
7402
7572
  id: string;
7403
7573
  channel: string | null;
@@ -7493,7 +7663,7 @@ export declare const viberContract: {
7493
7663
  previewUrl: string;
7494
7664
  imageSetId: string;
7495
7665
  repliedMessage: {
7496
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
7666
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
7497
7667
  message: string;
7498
7668
  id: string;
7499
7669
  url: string;
@@ -7545,7 +7715,6 @@ export declare const viberContract: {
7545
7715
  telephonySignature: string | null;
7546
7716
  };
7547
7717
  };
7548
- platformId: string;
7549
7718
  upload: {
7550
7719
  id: string;
7551
7720
  status: string | null;
@@ -7602,6 +7771,7 @@ export declare const viberContract: {
7602
7771
  telephonySignature: string | null;
7603
7772
  };
7604
7773
  };
7774
+ platformId: string;
7605
7775
  readAt: Date;
7606
7776
  platformMessageId: string;
7607
7777
  replyPlatformMessageId: string;
@@ -7704,7 +7874,7 @@ export declare const viberContract: {
7704
7874
  }>;
7705
7875
  }, "strip", z.ZodTypeAny, {
7706
7876
  data: {
7707
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
7877
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
7708
7878
  message: string;
7709
7879
  id: string;
7710
7880
  url: string;
@@ -7756,7 +7926,6 @@ export declare const viberContract: {
7756
7926
  telephonySignature: string | null;
7757
7927
  };
7758
7928
  };
7759
- platformId: string;
7760
7929
  upload: {
7761
7930
  id: string;
7762
7931
  status: string | null;
@@ -7813,6 +7982,7 @@ export declare const viberContract: {
7813
7982
  telephonySignature: string | null;
7814
7983
  };
7815
7984
  };
7985
+ platformId: string;
7816
7986
  room: {
7817
7987
  id: string;
7818
7988
  channel: {
@@ -7879,6 +8049,13 @@ export declare const viberContract: {
7879
8049
  isReloginRequired: boolean;
7880
8050
  connectedUserName: string;
7881
8051
  connectedUserId: string;
8052
+ botpressBot: {
8053
+ id: string;
8054
+ name: string;
8055
+ accessToken: string;
8056
+ botId: string;
8057
+ integrationId: string;
8058
+ } | null;
7882
8059
  };
7883
8060
  direction: "incoming" | "outgoing" | "system";
7884
8061
  status: number;
@@ -8093,6 +8270,7 @@ export declare const viberContract: {
8093
8270
  };
8094
8271
  closedAt: Date;
8095
8272
  lastMessageAt: Date | null;
8273
+ isBotRoom: boolean;
8096
8274
  cxlog: {
8097
8275
  id: string;
8098
8276
  channel: string | null;
@@ -8188,7 +8366,7 @@ export declare const viberContract: {
8188
8366
  previewUrl: string;
8189
8367
  imageSetId: string;
8190
8368
  repliedMessage: {
8191
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
8369
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
8192
8370
  message: string;
8193
8371
  id: string;
8194
8372
  url: string;
@@ -8240,7 +8418,6 @@ export declare const viberContract: {
8240
8418
  telephonySignature: string | null;
8241
8419
  };
8242
8420
  };
8243
- platformId: string;
8244
8421
  upload: {
8245
8422
  id: string;
8246
8423
  status: string | null;
@@ -8297,6 +8474,7 @@ export declare const viberContract: {
8297
8474
  telephonySignature: string | null;
8298
8475
  };
8299
8476
  };
8477
+ platformId: string;
8300
8478
  readAt: Date;
8301
8479
  platformMessageId: string;
8302
8480
  replyPlatformMessageId: string;
@@ -8400,7 +8578,7 @@ export declare const viberContract: {
8400
8578
  requestId: string;
8401
8579
  }, {
8402
8580
  data: {
8403
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
8581
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
8404
8582
  message: string;
8405
8583
  id: string;
8406
8584
  url: string;
@@ -8452,7 +8630,6 @@ export declare const viberContract: {
8452
8630
  telephonySignature: string | null;
8453
8631
  };
8454
8632
  };
8455
- platformId: string;
8456
8633
  upload: {
8457
8634
  id: string;
8458
8635
  status: string | null;
@@ -8509,6 +8686,7 @@ export declare const viberContract: {
8509
8686
  telephonySignature: string | null;
8510
8687
  };
8511
8688
  };
8689
+ platformId: string;
8512
8690
  room: {
8513
8691
  id: string;
8514
8692
  channel: {
@@ -8575,6 +8753,13 @@ export declare const viberContract: {
8575
8753
  isReloginRequired: boolean;
8576
8754
  connectedUserName: string;
8577
8755
  connectedUserId: string;
8756
+ botpressBot: {
8757
+ id: string;
8758
+ name: string;
8759
+ accessToken: string;
8760
+ botId: string;
8761
+ integrationId: string;
8762
+ } | null;
8578
8763
  };
8579
8764
  direction: "incoming" | "outgoing" | "system";
8580
8765
  status: number;
@@ -8789,6 +8974,7 @@ export declare const viberContract: {
8789
8974
  };
8790
8975
  closedAt: Date;
8791
8976
  lastMessageAt: Date | null;
8977
+ isBotRoom: boolean;
8792
8978
  cxlog: {
8793
8979
  id: string;
8794
8980
  channel: string | null;
@@ -8884,7 +9070,7 @@ export declare const viberContract: {
8884
9070
  previewUrl: string;
8885
9071
  imageSetId: string;
8886
9072
  repliedMessage: {
8887
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
9073
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
8888
9074
  message: string;
8889
9075
  id: string;
8890
9076
  url: string;
@@ -8936,7 +9122,6 @@ export declare const viberContract: {
8936
9122
  telephonySignature: string | null;
8937
9123
  };
8938
9124
  };
8939
- platformId: string;
8940
9125
  upload: {
8941
9126
  id: string;
8942
9127
  status: string | null;
@@ -8993,6 +9178,7 @@ export declare const viberContract: {
8993
9178
  telephonySignature: string | null;
8994
9179
  };
8995
9180
  };
9181
+ platformId: string;
8996
9182
  readAt: Date;
8997
9183
  platformMessageId: string;
8998
9184
  replyPlatformMessageId: string;
@@ -9154,6 +9340,25 @@ export declare const viberContract: {
9154
9340
  isReloginRequired: z.ZodBoolean;
9155
9341
  connectedUserName: z.ZodString;
9156
9342
  connectedUserId: z.ZodString;
9343
+ botpressBot: z.ZodNullable<z.ZodObject<{
9344
+ id: z.ZodString;
9345
+ name: z.ZodString;
9346
+ botId: z.ZodString;
9347
+ integrationId: z.ZodString;
9348
+ accessToken: z.ZodString;
9349
+ }, "strip", z.ZodTypeAny, {
9350
+ id: string;
9351
+ name: string;
9352
+ accessToken: string;
9353
+ botId: string;
9354
+ integrationId: string;
9355
+ }, {
9356
+ id: string;
9357
+ name: string;
9358
+ accessToken: string;
9359
+ botId: string;
9360
+ integrationId: string;
9361
+ }>>;
9157
9362
  actor: z.ZodObject<{
9158
9363
  id: z.ZodString;
9159
9364
  createdAt: z.ZodDate;
@@ -9422,6 +9627,13 @@ export declare const viberContract: {
9422
9627
  isReloginRequired: boolean;
9423
9628
  connectedUserName: string;
9424
9629
  connectedUserId: string;
9630
+ botpressBot: {
9631
+ id: string;
9632
+ name: string;
9633
+ accessToken: string;
9634
+ botId: string;
9635
+ integrationId: string;
9636
+ } | null;
9425
9637
  }, {
9426
9638
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
9427
9639
  id: string;
@@ -9486,6 +9698,13 @@ export declare const viberContract: {
9486
9698
  isReloginRequired: boolean;
9487
9699
  connectedUserName: string;
9488
9700
  connectedUserId: string;
9701
+ botpressBot: {
9702
+ id: string;
9703
+ name: string;
9704
+ accessToken: string;
9705
+ botId: string;
9706
+ integrationId: string;
9707
+ } | null;
9489
9708
  }>;
9490
9709
  }, "strip", z.ZodTypeAny, {
9491
9710
  channel: {
@@ -9552,6 +9771,13 @@ export declare const viberContract: {
9552
9771
  isReloginRequired: boolean;
9553
9772
  connectedUserName: string;
9554
9773
  connectedUserId: string;
9774
+ botpressBot: {
9775
+ id: string;
9776
+ name: string;
9777
+ accessToken: string;
9778
+ botId: string;
9779
+ integrationId: string;
9780
+ } | null;
9555
9781
  };
9556
9782
  requestId: string;
9557
9783
  }, {
@@ -9619,6 +9845,13 @@ export declare const viberContract: {
9619
9845
  isReloginRequired: boolean;
9620
9846
  connectedUserName: string;
9621
9847
  connectedUserId: string;
9848
+ botpressBot: {
9849
+ id: string;
9850
+ name: string;
9851
+ accessToken: string;
9852
+ botId: string;
9853
+ integrationId: string;
9854
+ } | null;
9622
9855
  };
9623
9856
  requestId: string;
9624
9857
  }>;