@voltade/envoy-sdk 1.2.1 → 1.2.3

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.
@@ -362,6 +362,8 @@ export declare const WebhookMessageSchema: z.ZodObject<{
362
362
  id: number;
363
363
  status: string;
364
364
  account_id: number;
365
+ created_at: number;
366
+ updated_at: string;
365
367
  content: string | null;
366
368
  message_type: number;
367
369
  private: boolean;
@@ -371,7 +373,6 @@ export declare const WebhookMessageSchema: z.ZodObject<{
371
373
  } & {
372
374
  [k: string]: unknown;
373
375
  };
374
- created_at: number;
375
376
  conversation_id: number;
376
377
  sender: {
377
378
  id: number;
@@ -390,7 +391,6 @@ export declare const WebhookMessageSchema: z.ZodObject<{
390
391
  additional_attributes: Record<string, unknown>;
391
392
  inbox_id: number;
392
393
  source_id: string | null;
393
- updated_at: string;
394
394
  sender_type: "Contact" | "User";
395
395
  sender_id: number;
396
396
  external_source_ids: Record<string, unknown>;
@@ -412,6 +412,8 @@ export declare const WebhookMessageSchema: z.ZodObject<{
412
412
  id: number;
413
413
  status: string;
414
414
  account_id: number;
415
+ created_at: number;
416
+ updated_at: string;
415
417
  content: string | null;
416
418
  message_type: number;
417
419
  private: boolean;
@@ -421,7 +423,6 @@ export declare const WebhookMessageSchema: z.ZodObject<{
421
423
  } & {
422
424
  [k: string]: unknown;
423
425
  };
424
- created_at: number;
425
426
  conversation_id: number;
426
427
  sender: {
427
428
  id: number;
@@ -440,7 +441,6 @@ export declare const WebhookMessageSchema: z.ZodObject<{
440
441
  additional_attributes: Record<string, unknown>;
441
442
  inbox_id: number;
442
443
  source_id: string | null;
443
- updated_at: string;
444
444
  sender_type: "Contact" | "User";
445
445
  sender_id: number;
446
446
  external_source_ids: Record<string, unknown>;
@@ -663,19 +663,19 @@ export declare const WebhookConversationSchema: z.ZodObject<{
663
663
  }, "strip", z.ZodTypeAny, {
664
664
  id: number;
665
665
  created_at: string;
666
+ updated_at: string;
666
667
  contact_id: number;
667
668
  inbox_id: number;
668
669
  source_id: string | null;
669
- updated_at: string;
670
670
  hmac_verified: boolean;
671
671
  pubsub_token: string;
672
672
  }, {
673
673
  id: number;
674
674
  created_at: string;
675
+ updated_at: string;
675
676
  contact_id: number;
676
677
  inbox_id: number;
677
678
  source_id: string | null;
678
- updated_at: string;
679
679
  hmac_verified: boolean;
680
680
  pubsub_token: string;
681
681
  }>;
@@ -781,6 +781,8 @@ export declare const WebhookConversationSchema: z.ZodObject<{
781
781
  id: number;
782
782
  status: string;
783
783
  account_id: number;
784
+ created_at: number;
785
+ updated_at: string;
784
786
  content: string | null;
785
787
  message_type: number;
786
788
  private: boolean;
@@ -790,7 +792,6 @@ export declare const WebhookConversationSchema: z.ZodObject<{
790
792
  } & {
791
793
  [k: string]: unknown;
792
794
  };
793
- created_at: number;
794
795
  conversation_id: number;
795
796
  sender: {
796
797
  id: number;
@@ -809,7 +810,6 @@ export declare const WebhookConversationSchema: z.ZodObject<{
809
810
  additional_attributes: Record<string, unknown>;
810
811
  inbox_id: number;
811
812
  source_id: string | null;
812
- updated_at: string;
813
813
  sender_type: "Contact" | "User";
814
814
  sender_id: number;
815
815
  external_source_ids: Record<string, unknown>;
@@ -831,6 +831,8 @@ export declare const WebhookConversationSchema: z.ZodObject<{
831
831
  id: number;
832
832
  status: string;
833
833
  account_id: number;
834
+ created_at: number;
835
+ updated_at: string;
834
836
  content: string | null;
835
837
  message_type: number;
836
838
  private: boolean;
@@ -840,7 +842,6 @@ export declare const WebhookConversationSchema: z.ZodObject<{
840
842
  } & {
841
843
  [k: string]: unknown;
842
844
  };
843
- created_at: number;
844
845
  conversation_id: number;
845
846
  sender: {
846
847
  id: number;
@@ -859,7 +860,6 @@ export declare const WebhookConversationSchema: z.ZodObject<{
859
860
  additional_attributes: Record<string, unknown>;
860
861
  inbox_id: number;
861
862
  source_id: string | null;
862
- updated_at: string;
863
863
  sender_type: "Contact" | "User";
864
864
  sender_id: number;
865
865
  external_source_ids: Record<string, unknown>;
@@ -1001,6 +1001,30 @@ export declare const WebhookConversationSchema: z.ZodObject<{
1001
1001
  id: number;
1002
1002
  status: "open" | "resolved" | "pending" | "snoozed";
1003
1003
  created_at: number;
1004
+ updated_at: number;
1005
+ meta: {
1006
+ sender: {
1007
+ id: number;
1008
+ name: string | null;
1009
+ email: string | null;
1010
+ phone_number: string | null;
1011
+ thumbnail: string;
1012
+ identifier: string | null;
1013
+ additional_attributes: Record<string, unknown>;
1014
+ custom_attributes: Record<string, unknown>;
1015
+ blocked: boolean;
1016
+ customer_stage: string;
1017
+ customer_stage_explanation: string | null;
1018
+ type?: string | undefined;
1019
+ };
1020
+ hmac_verified: boolean;
1021
+ assignee: {
1022
+ id: number;
1023
+ name: string;
1024
+ email: string;
1025
+ } | null;
1026
+ team?: unknown;
1027
+ };
1004
1028
  priority: string | null;
1005
1029
  additional_attributes: {
1006
1030
  browser?: {
@@ -1020,16 +1044,15 @@ export declare const WebhookConversationSchema: z.ZodObject<{
1020
1044
  };
1021
1045
  custom_attributes: Record<string, unknown>;
1022
1046
  inbox_id: number;
1023
- updated_at: number;
1024
1047
  channel: string;
1025
1048
  can_reply: boolean;
1026
1049
  contact_inbox: {
1027
1050
  id: number;
1028
1051
  created_at: string;
1052
+ updated_at: string;
1029
1053
  contact_id: number;
1030
1054
  inbox_id: number;
1031
1055
  source_id: string | null;
1032
- updated_at: string;
1033
1056
  hmac_verified: boolean;
1034
1057
  pubsub_token: string;
1035
1058
  };
@@ -1037,6 +1060,8 @@ export declare const WebhookConversationSchema: z.ZodObject<{
1037
1060
  id: number;
1038
1061
  status: string;
1039
1062
  account_id: number;
1063
+ created_at: number;
1064
+ updated_at: string;
1040
1065
  content: string | null;
1041
1066
  message_type: number;
1042
1067
  private: boolean;
@@ -1046,7 +1071,6 @@ export declare const WebhookConversationSchema: z.ZodObject<{
1046
1071
  } & {
1047
1072
  [k: string]: unknown;
1048
1073
  };
1049
- created_at: number;
1050
1074
  conversation_id: number;
1051
1075
  sender: {
1052
1076
  id: number;
@@ -1065,7 +1089,6 @@ export declare const WebhookConversationSchema: z.ZodObject<{
1065
1089
  additional_attributes: Record<string, unknown>;
1066
1090
  inbox_id: number;
1067
1091
  source_id: string | null;
1068
- updated_at: string;
1069
1092
  sender_type: "Contact" | "User";
1070
1093
  sender_id: number;
1071
1094
  external_source_ids: Record<string, unknown>;
@@ -1084,6 +1107,24 @@ export declare const WebhookConversationSchema: z.ZodObject<{
1084
1107
  assignee_id: number | null;
1085
1108
  };
1086
1109
  }[];
1110
+ labels: string[];
1111
+ snoozed_until: number | null;
1112
+ unread_count: number;
1113
+ first_reply_created_at: string | number | null;
1114
+ waiting_since: number | null;
1115
+ ai_disabled: boolean;
1116
+ reenable_ai_at: number | null;
1117
+ ai_summary: string | null;
1118
+ conversation_type: string;
1119
+ agent_last_seen_at: number;
1120
+ contact_last_seen_at: number;
1121
+ last_activity_at: number;
1122
+ timestamp: number;
1123
+ }, {
1124
+ id: number;
1125
+ status: "open" | "resolved" | "pending" | "snoozed";
1126
+ created_at: number;
1127
+ updated_at: number;
1087
1128
  meta: {
1088
1129
  sender: {
1089
1130
  id: number;
@@ -1107,23 +1148,6 @@ export declare const WebhookConversationSchema: z.ZodObject<{
1107
1148
  } | null;
1108
1149
  team?: unknown;
1109
1150
  };
1110
- labels: string[];
1111
- snoozed_until: number | null;
1112
- unread_count: number;
1113
- first_reply_created_at: string | number | null;
1114
- waiting_since: number | null;
1115
- ai_disabled: boolean;
1116
- reenable_ai_at: number | null;
1117
- ai_summary: string | null;
1118
- conversation_type: string;
1119
- agent_last_seen_at: number;
1120
- contact_last_seen_at: number;
1121
- last_activity_at: number;
1122
- timestamp: number;
1123
- }, {
1124
- id: number;
1125
- status: "open" | "resolved" | "pending" | "snoozed";
1126
- created_at: number;
1127
1151
  priority: string | null;
1128
1152
  additional_attributes: {
1129
1153
  browser?: {
@@ -1143,16 +1167,15 @@ export declare const WebhookConversationSchema: z.ZodObject<{
1143
1167
  };
1144
1168
  custom_attributes: Record<string, unknown>;
1145
1169
  inbox_id: number;
1146
- updated_at: number;
1147
1170
  channel: string;
1148
1171
  can_reply: boolean;
1149
1172
  contact_inbox: {
1150
1173
  id: number;
1151
1174
  created_at: string;
1175
+ updated_at: string;
1152
1176
  contact_id: number;
1153
1177
  inbox_id: number;
1154
1178
  source_id: string | null;
1155
- updated_at: string;
1156
1179
  hmac_verified: boolean;
1157
1180
  pubsub_token: string;
1158
1181
  };
@@ -1160,6 +1183,8 @@ export declare const WebhookConversationSchema: z.ZodObject<{
1160
1183
  id: number;
1161
1184
  status: string;
1162
1185
  account_id: number;
1186
+ created_at: number;
1187
+ updated_at: string;
1163
1188
  content: string | null;
1164
1189
  message_type: number;
1165
1190
  private: boolean;
@@ -1169,7 +1194,6 @@ export declare const WebhookConversationSchema: z.ZodObject<{
1169
1194
  } & {
1170
1195
  [k: string]: unknown;
1171
1196
  };
1172
- created_at: number;
1173
1197
  conversation_id: number;
1174
1198
  sender: {
1175
1199
  id: number;
@@ -1188,7 +1212,6 @@ export declare const WebhookConversationSchema: z.ZodObject<{
1188
1212
  additional_attributes: Record<string, unknown>;
1189
1213
  inbox_id: number;
1190
1214
  source_id: string | null;
1191
- updated_at: string;
1192
1215
  sender_type: "Contact" | "User";
1193
1216
  sender_id: number;
1194
1217
  external_source_ids: Record<string, unknown>;
@@ -1207,29 +1230,6 @@ export declare const WebhookConversationSchema: z.ZodObject<{
1207
1230
  assignee_id: number | null;
1208
1231
  };
1209
1232
  }[];
1210
- meta: {
1211
- sender: {
1212
- id: number;
1213
- name: string | null;
1214
- email: string | null;
1215
- phone_number: string | null;
1216
- thumbnail: string;
1217
- identifier: string | null;
1218
- additional_attributes: Record<string, unknown>;
1219
- custom_attributes: Record<string, unknown>;
1220
- blocked: boolean;
1221
- customer_stage: string;
1222
- customer_stage_explanation: string | null;
1223
- type?: string | undefined;
1224
- };
1225
- hmac_verified: boolean;
1226
- assignee: {
1227
- id: number;
1228
- name: string;
1229
- email: string;
1230
- } | null;
1231
- team?: unknown;
1232
- };
1233
1233
  labels: string[];
1234
1234
  snoozed_until: number | null;
1235
1235
  unread_count: number;
@@ -1368,19 +1368,19 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
1368
1368
  }, "strip", z.ZodTypeAny, {
1369
1369
  id: number;
1370
1370
  created_at: string;
1371
+ updated_at: string;
1371
1372
  contact_id: number;
1372
1373
  inbox_id: number;
1373
1374
  source_id: string | null;
1374
- updated_at: string;
1375
1375
  hmac_verified: boolean;
1376
1376
  pubsub_token: string;
1377
1377
  }, {
1378
1378
  id: number;
1379
1379
  created_at: string;
1380
+ updated_at: string;
1380
1381
  contact_id: number;
1381
1382
  inbox_id: number;
1382
1383
  source_id: string | null;
1383
- updated_at: string;
1384
1384
  hmac_verified: boolean;
1385
1385
  pubsub_token: string;
1386
1386
  }>;
@@ -1486,6 +1486,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
1486
1486
  id: number;
1487
1487
  status: string;
1488
1488
  account_id: number;
1489
+ created_at: number;
1490
+ updated_at: string;
1489
1491
  content: string | null;
1490
1492
  message_type: number;
1491
1493
  private: boolean;
@@ -1495,7 +1497,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
1495
1497
  } & {
1496
1498
  [k: string]: unknown;
1497
1499
  };
1498
- created_at: number;
1499
1500
  conversation_id: number;
1500
1501
  sender: {
1501
1502
  id: number;
@@ -1514,7 +1515,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
1514
1515
  additional_attributes: Record<string, unknown>;
1515
1516
  inbox_id: number;
1516
1517
  source_id: string | null;
1517
- updated_at: string;
1518
1518
  sender_type: "Contact" | "User";
1519
1519
  sender_id: number;
1520
1520
  external_source_ids: Record<string, unknown>;
@@ -1536,6 +1536,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
1536
1536
  id: number;
1537
1537
  status: string;
1538
1538
  account_id: number;
1539
+ created_at: number;
1540
+ updated_at: string;
1539
1541
  content: string | null;
1540
1542
  message_type: number;
1541
1543
  private: boolean;
@@ -1545,7 +1547,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
1545
1547
  } & {
1546
1548
  [k: string]: unknown;
1547
1549
  };
1548
- created_at: number;
1549
1550
  conversation_id: number;
1550
1551
  sender: {
1551
1552
  id: number;
@@ -1564,7 +1565,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
1564
1565
  additional_attributes: Record<string, unknown>;
1565
1566
  inbox_id: number;
1566
1567
  source_id: string | null;
1567
- updated_at: string;
1568
1568
  sender_type: "Contact" | "User";
1569
1569
  sender_id: number;
1570
1570
  external_source_ids: Record<string, unknown>;
@@ -1706,6 +1706,30 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
1706
1706
  id: number;
1707
1707
  status: "open" | "resolved" | "pending" | "snoozed";
1708
1708
  created_at: number;
1709
+ updated_at: number;
1710
+ meta: {
1711
+ sender: {
1712
+ id: number;
1713
+ name: string | null;
1714
+ email: string | null;
1715
+ phone_number: string | null;
1716
+ thumbnail: string;
1717
+ identifier: string | null;
1718
+ additional_attributes: Record<string, unknown>;
1719
+ custom_attributes: Record<string, unknown>;
1720
+ blocked: boolean;
1721
+ customer_stage: string;
1722
+ customer_stage_explanation: string | null;
1723
+ type?: string | undefined;
1724
+ };
1725
+ hmac_verified: boolean;
1726
+ assignee: {
1727
+ id: number;
1728
+ name: string;
1729
+ email: string;
1730
+ } | null;
1731
+ team?: unknown;
1732
+ };
1709
1733
  priority: string | null;
1710
1734
  additional_attributes: {
1711
1735
  browser?: {
@@ -1725,16 +1749,15 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
1725
1749
  };
1726
1750
  custom_attributes: Record<string, unknown>;
1727
1751
  inbox_id: number;
1728
- updated_at: number;
1729
1752
  channel: string;
1730
1753
  can_reply: boolean;
1731
1754
  contact_inbox: {
1732
1755
  id: number;
1733
1756
  created_at: string;
1757
+ updated_at: string;
1734
1758
  contact_id: number;
1735
1759
  inbox_id: number;
1736
1760
  source_id: string | null;
1737
- updated_at: string;
1738
1761
  hmac_verified: boolean;
1739
1762
  pubsub_token: string;
1740
1763
  };
@@ -1742,6 +1765,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
1742
1765
  id: number;
1743
1766
  status: string;
1744
1767
  account_id: number;
1768
+ created_at: number;
1769
+ updated_at: string;
1745
1770
  content: string | null;
1746
1771
  message_type: number;
1747
1772
  private: boolean;
@@ -1751,7 +1776,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
1751
1776
  } & {
1752
1777
  [k: string]: unknown;
1753
1778
  };
1754
- created_at: number;
1755
1779
  conversation_id: number;
1756
1780
  sender: {
1757
1781
  id: number;
@@ -1770,7 +1794,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
1770
1794
  additional_attributes: Record<string, unknown>;
1771
1795
  inbox_id: number;
1772
1796
  source_id: string | null;
1773
- updated_at: string;
1774
1797
  sender_type: "Contact" | "User";
1775
1798
  sender_id: number;
1776
1799
  external_source_ids: Record<string, unknown>;
@@ -1789,6 +1812,24 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
1789
1812
  assignee_id: number | null;
1790
1813
  };
1791
1814
  }[];
1815
+ labels: string[];
1816
+ snoozed_until: number | null;
1817
+ unread_count: number;
1818
+ first_reply_created_at: string | number | null;
1819
+ waiting_since: number | null;
1820
+ ai_disabled: boolean;
1821
+ reenable_ai_at: number | null;
1822
+ ai_summary: string | null;
1823
+ conversation_type: string;
1824
+ agent_last_seen_at: number;
1825
+ contact_last_seen_at: number;
1826
+ last_activity_at: number;
1827
+ timestamp: number;
1828
+ }, {
1829
+ id: number;
1830
+ status: "open" | "resolved" | "pending" | "snoozed";
1831
+ created_at: number;
1832
+ updated_at: number;
1792
1833
  meta: {
1793
1834
  sender: {
1794
1835
  id: number;
@@ -1812,23 +1853,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
1812
1853
  } | null;
1813
1854
  team?: unknown;
1814
1855
  };
1815
- labels: string[];
1816
- snoozed_until: number | null;
1817
- unread_count: number;
1818
- first_reply_created_at: string | number | null;
1819
- waiting_since: number | null;
1820
- ai_disabled: boolean;
1821
- reenable_ai_at: number | null;
1822
- ai_summary: string | null;
1823
- conversation_type: string;
1824
- agent_last_seen_at: number;
1825
- contact_last_seen_at: number;
1826
- last_activity_at: number;
1827
- timestamp: number;
1828
- }, {
1829
- id: number;
1830
- status: "open" | "resolved" | "pending" | "snoozed";
1831
- created_at: number;
1832
1856
  priority: string | null;
1833
1857
  additional_attributes: {
1834
1858
  browser?: {
@@ -1848,16 +1872,15 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
1848
1872
  };
1849
1873
  custom_attributes: Record<string, unknown>;
1850
1874
  inbox_id: number;
1851
- updated_at: number;
1852
1875
  channel: string;
1853
1876
  can_reply: boolean;
1854
1877
  contact_inbox: {
1855
1878
  id: number;
1856
1879
  created_at: string;
1880
+ updated_at: string;
1857
1881
  contact_id: number;
1858
1882
  inbox_id: number;
1859
1883
  source_id: string | null;
1860
- updated_at: string;
1861
1884
  hmac_verified: boolean;
1862
1885
  pubsub_token: string;
1863
1886
  };
@@ -1865,6 +1888,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
1865
1888
  id: number;
1866
1889
  status: string;
1867
1890
  account_id: number;
1891
+ created_at: number;
1892
+ updated_at: string;
1868
1893
  content: string | null;
1869
1894
  message_type: number;
1870
1895
  private: boolean;
@@ -1874,7 +1899,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
1874
1899
  } & {
1875
1900
  [k: string]: unknown;
1876
1901
  };
1877
- created_at: number;
1878
1902
  conversation_id: number;
1879
1903
  sender: {
1880
1904
  id: number;
@@ -1893,7 +1917,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
1893
1917
  additional_attributes: Record<string, unknown>;
1894
1918
  inbox_id: number;
1895
1919
  source_id: string | null;
1896
- updated_at: string;
1897
1920
  sender_type: "Contact" | "User";
1898
1921
  sender_id: number;
1899
1922
  external_source_ids: Record<string, unknown>;
@@ -1912,29 +1935,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
1912
1935
  assignee_id: number | null;
1913
1936
  };
1914
1937
  }[];
1915
- meta: {
1916
- sender: {
1917
- id: number;
1918
- name: string | null;
1919
- email: string | null;
1920
- phone_number: string | null;
1921
- thumbnail: string;
1922
- identifier: string | null;
1923
- additional_attributes: Record<string, unknown>;
1924
- custom_attributes: Record<string, unknown>;
1925
- blocked: boolean;
1926
- customer_stage: string;
1927
- customer_stage_explanation: string | null;
1928
- type?: string | undefined;
1929
- };
1930
- hmac_verified: boolean;
1931
- assignee: {
1932
- id: number;
1933
- name: string;
1934
- email: string;
1935
- } | null;
1936
- team?: unknown;
1937
- };
1938
1938
  labels: string[];
1939
1939
  snoozed_until: number | null;
1940
1940
  unread_count: number;
@@ -2030,6 +2030,7 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
2030
2030
  }, "strip", z.ZodTypeAny, {
2031
2031
  id: number;
2032
2032
  status: string;
2033
+ created_at: string;
2033
2034
  content: string | null;
2034
2035
  message_type: "incoming" | "outgoing";
2035
2036
  private: boolean;
@@ -2039,7 +2040,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
2039
2040
  } & {
2040
2041
  [k: string]: unknown;
2041
2042
  };
2042
- created_at: string;
2043
2043
  sender: {
2044
2044
  id: number;
2045
2045
  name: string | null;
@@ -2068,6 +2068,30 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
2068
2068
  id: number;
2069
2069
  status: "open" | "resolved" | "pending" | "snoozed";
2070
2070
  created_at: number;
2071
+ updated_at: number;
2072
+ meta: {
2073
+ sender: {
2074
+ id: number;
2075
+ name: string | null;
2076
+ email: string | null;
2077
+ phone_number: string | null;
2078
+ thumbnail: string;
2079
+ identifier: string | null;
2080
+ additional_attributes: Record<string, unknown>;
2081
+ custom_attributes: Record<string, unknown>;
2082
+ blocked: boolean;
2083
+ customer_stage: string;
2084
+ customer_stage_explanation: string | null;
2085
+ type?: string | undefined;
2086
+ };
2087
+ hmac_verified: boolean;
2088
+ assignee: {
2089
+ id: number;
2090
+ name: string;
2091
+ email: string;
2092
+ } | null;
2093
+ team?: unknown;
2094
+ };
2071
2095
  priority: string | null;
2072
2096
  additional_attributes: {
2073
2097
  browser?: {
@@ -2087,16 +2111,15 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
2087
2111
  };
2088
2112
  custom_attributes: Record<string, unknown>;
2089
2113
  inbox_id: number;
2090
- updated_at: number;
2091
2114
  channel: string;
2092
2115
  can_reply: boolean;
2093
2116
  contact_inbox: {
2094
2117
  id: number;
2095
2118
  created_at: string;
2119
+ updated_at: string;
2096
2120
  contact_id: number;
2097
2121
  inbox_id: number;
2098
2122
  source_id: string | null;
2099
- updated_at: string;
2100
2123
  hmac_verified: boolean;
2101
2124
  pubsub_token: string;
2102
2125
  };
@@ -2104,6 +2127,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
2104
2127
  id: number;
2105
2128
  status: string;
2106
2129
  account_id: number;
2130
+ created_at: number;
2131
+ updated_at: string;
2107
2132
  content: string | null;
2108
2133
  message_type: number;
2109
2134
  private: boolean;
@@ -2113,7 +2138,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
2113
2138
  } & {
2114
2139
  [k: string]: unknown;
2115
2140
  };
2116
- created_at: number;
2117
2141
  conversation_id: number;
2118
2142
  sender: {
2119
2143
  id: number;
@@ -2132,7 +2156,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
2132
2156
  additional_attributes: Record<string, unknown>;
2133
2157
  inbox_id: number;
2134
2158
  source_id: string | null;
2135
- updated_at: string;
2136
2159
  sender_type: "Contact" | "User";
2137
2160
  sender_id: number;
2138
2161
  external_source_ids: Record<string, unknown>;
@@ -2151,29 +2174,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
2151
2174
  assignee_id: number | null;
2152
2175
  };
2153
2176
  }[];
2154
- meta: {
2155
- sender: {
2156
- id: number;
2157
- name: string | null;
2158
- email: string | null;
2159
- phone_number: string | null;
2160
- thumbnail: string;
2161
- identifier: string | null;
2162
- additional_attributes: Record<string, unknown>;
2163
- custom_attributes: Record<string, unknown>;
2164
- blocked: boolean;
2165
- customer_stage: string;
2166
- customer_stage_explanation: string | null;
2167
- type?: string | undefined;
2168
- };
2169
- hmac_verified: boolean;
2170
- assignee: {
2171
- id: number;
2172
- name: string;
2173
- email: string;
2174
- } | null;
2175
- team?: unknown;
2176
- };
2177
2177
  labels: string[];
2178
2178
  snoozed_until: number | null;
2179
2179
  unread_count: number;
@@ -2196,6 +2196,7 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
2196
2196
  }, {
2197
2197
  id: number;
2198
2198
  status: string;
2199
+ created_at: string;
2199
2200
  content: string | null;
2200
2201
  message_type: "incoming" | "outgoing";
2201
2202
  private: boolean;
@@ -2205,7 +2206,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
2205
2206
  } & {
2206
2207
  [k: string]: unknown;
2207
2208
  };
2208
- created_at: string;
2209
2209
  sender: {
2210
2210
  id: number;
2211
2211
  name: string | null;
@@ -2234,6 +2234,30 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
2234
2234
  id: number;
2235
2235
  status: "open" | "resolved" | "pending" | "snoozed";
2236
2236
  created_at: number;
2237
+ updated_at: number;
2238
+ meta: {
2239
+ sender: {
2240
+ id: number;
2241
+ name: string | null;
2242
+ email: string | null;
2243
+ phone_number: string | null;
2244
+ thumbnail: string;
2245
+ identifier: string | null;
2246
+ additional_attributes: Record<string, unknown>;
2247
+ custom_attributes: Record<string, unknown>;
2248
+ blocked: boolean;
2249
+ customer_stage: string;
2250
+ customer_stage_explanation: string | null;
2251
+ type?: string | undefined;
2252
+ };
2253
+ hmac_verified: boolean;
2254
+ assignee: {
2255
+ id: number;
2256
+ name: string;
2257
+ email: string;
2258
+ } | null;
2259
+ team?: unknown;
2260
+ };
2237
2261
  priority: string | null;
2238
2262
  additional_attributes: {
2239
2263
  browser?: {
@@ -2253,16 +2277,15 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
2253
2277
  };
2254
2278
  custom_attributes: Record<string, unknown>;
2255
2279
  inbox_id: number;
2256
- updated_at: number;
2257
2280
  channel: string;
2258
2281
  can_reply: boolean;
2259
2282
  contact_inbox: {
2260
2283
  id: number;
2261
2284
  created_at: string;
2285
+ updated_at: string;
2262
2286
  contact_id: number;
2263
2287
  inbox_id: number;
2264
2288
  source_id: string | null;
2265
- updated_at: string;
2266
2289
  hmac_verified: boolean;
2267
2290
  pubsub_token: string;
2268
2291
  };
@@ -2270,6 +2293,8 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
2270
2293
  id: number;
2271
2294
  status: string;
2272
2295
  account_id: number;
2296
+ created_at: number;
2297
+ updated_at: string;
2273
2298
  content: string | null;
2274
2299
  message_type: number;
2275
2300
  private: boolean;
@@ -2279,7 +2304,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
2279
2304
  } & {
2280
2305
  [k: string]: unknown;
2281
2306
  };
2282
- created_at: number;
2283
2307
  conversation_id: number;
2284
2308
  sender: {
2285
2309
  id: number;
@@ -2298,7 +2322,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
2298
2322
  additional_attributes: Record<string, unknown>;
2299
2323
  inbox_id: number;
2300
2324
  source_id: string | null;
2301
- updated_at: string;
2302
2325
  sender_type: "Contact" | "User";
2303
2326
  sender_id: number;
2304
2327
  external_source_ids: Record<string, unknown>;
@@ -2317,29 +2340,6 @@ export declare const MessageCreatedEventSchema: z.ZodObject<{
2317
2340
  assignee_id: number | null;
2318
2341
  };
2319
2342
  }[];
2320
- meta: {
2321
- sender: {
2322
- id: number;
2323
- name: string | null;
2324
- email: string | null;
2325
- phone_number: string | null;
2326
- thumbnail: string;
2327
- identifier: string | null;
2328
- additional_attributes: Record<string, unknown>;
2329
- custom_attributes: Record<string, unknown>;
2330
- blocked: boolean;
2331
- customer_stage: string;
2332
- customer_stage_explanation: string | null;
2333
- type?: string | undefined;
2334
- };
2335
- hmac_verified: boolean;
2336
- assignee: {
2337
- id: number;
2338
- name: string;
2339
- email: string;
2340
- } | null;
2341
- team?: unknown;
2342
- };
2343
2343
  labels: string[];
2344
2344
  snoozed_until: number | null;
2345
2345
  unread_count: number;
@@ -2484,19 +2484,19 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
2484
2484
  }, "strip", z.ZodTypeAny, {
2485
2485
  id: number;
2486
2486
  created_at: string;
2487
+ updated_at: string;
2487
2488
  contact_id: number;
2488
2489
  inbox_id: number;
2489
2490
  source_id: string | null;
2490
- updated_at: string;
2491
2491
  hmac_verified: boolean;
2492
2492
  pubsub_token: string;
2493
2493
  }, {
2494
2494
  id: number;
2495
2495
  created_at: string;
2496
+ updated_at: string;
2496
2497
  contact_id: number;
2497
2498
  inbox_id: number;
2498
2499
  source_id: string | null;
2499
- updated_at: string;
2500
2500
  hmac_verified: boolean;
2501
2501
  pubsub_token: string;
2502
2502
  }>;
@@ -2602,6 +2602,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
2602
2602
  id: number;
2603
2603
  status: string;
2604
2604
  account_id: number;
2605
+ created_at: number;
2606
+ updated_at: string;
2605
2607
  content: string | null;
2606
2608
  message_type: number;
2607
2609
  private: boolean;
@@ -2611,7 +2613,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
2611
2613
  } & {
2612
2614
  [k: string]: unknown;
2613
2615
  };
2614
- created_at: number;
2615
2616
  conversation_id: number;
2616
2617
  sender: {
2617
2618
  id: number;
@@ -2630,7 +2631,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
2630
2631
  additional_attributes: Record<string, unknown>;
2631
2632
  inbox_id: number;
2632
2633
  source_id: string | null;
2633
- updated_at: string;
2634
2634
  sender_type: "Contact" | "User";
2635
2635
  sender_id: number;
2636
2636
  external_source_ids: Record<string, unknown>;
@@ -2652,6 +2652,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
2652
2652
  id: number;
2653
2653
  status: string;
2654
2654
  account_id: number;
2655
+ created_at: number;
2656
+ updated_at: string;
2655
2657
  content: string | null;
2656
2658
  message_type: number;
2657
2659
  private: boolean;
@@ -2661,7 +2663,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
2661
2663
  } & {
2662
2664
  [k: string]: unknown;
2663
2665
  };
2664
- created_at: number;
2665
2666
  conversation_id: number;
2666
2667
  sender: {
2667
2668
  id: number;
@@ -2680,7 +2681,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
2680
2681
  additional_attributes: Record<string, unknown>;
2681
2682
  inbox_id: number;
2682
2683
  source_id: string | null;
2683
- updated_at: string;
2684
2684
  sender_type: "Contact" | "User";
2685
2685
  sender_id: number;
2686
2686
  external_source_ids: Record<string, unknown>;
@@ -2822,6 +2822,30 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
2822
2822
  id: number;
2823
2823
  status: "open" | "resolved" | "pending" | "snoozed";
2824
2824
  created_at: number;
2825
+ updated_at: number;
2826
+ meta: {
2827
+ sender: {
2828
+ id: number;
2829
+ name: string | null;
2830
+ email: string | null;
2831
+ phone_number: string | null;
2832
+ thumbnail: string;
2833
+ identifier: string | null;
2834
+ additional_attributes: Record<string, unknown>;
2835
+ custom_attributes: Record<string, unknown>;
2836
+ blocked: boolean;
2837
+ customer_stage: string;
2838
+ customer_stage_explanation: string | null;
2839
+ type?: string | undefined;
2840
+ };
2841
+ hmac_verified: boolean;
2842
+ assignee: {
2843
+ id: number;
2844
+ name: string;
2845
+ email: string;
2846
+ } | null;
2847
+ team?: unknown;
2848
+ };
2825
2849
  priority: string | null;
2826
2850
  additional_attributes: {
2827
2851
  browser?: {
@@ -2841,16 +2865,15 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
2841
2865
  };
2842
2866
  custom_attributes: Record<string, unknown>;
2843
2867
  inbox_id: number;
2844
- updated_at: number;
2845
2868
  channel: string;
2846
2869
  can_reply: boolean;
2847
2870
  contact_inbox: {
2848
2871
  id: number;
2849
2872
  created_at: string;
2873
+ updated_at: string;
2850
2874
  contact_id: number;
2851
2875
  inbox_id: number;
2852
2876
  source_id: string | null;
2853
- updated_at: string;
2854
2877
  hmac_verified: boolean;
2855
2878
  pubsub_token: string;
2856
2879
  };
@@ -2858,6 +2881,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
2858
2881
  id: number;
2859
2882
  status: string;
2860
2883
  account_id: number;
2884
+ created_at: number;
2885
+ updated_at: string;
2861
2886
  content: string | null;
2862
2887
  message_type: number;
2863
2888
  private: boolean;
@@ -2867,7 +2892,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
2867
2892
  } & {
2868
2893
  [k: string]: unknown;
2869
2894
  };
2870
- created_at: number;
2871
2895
  conversation_id: number;
2872
2896
  sender: {
2873
2897
  id: number;
@@ -2886,7 +2910,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
2886
2910
  additional_attributes: Record<string, unknown>;
2887
2911
  inbox_id: number;
2888
2912
  source_id: string | null;
2889
- updated_at: string;
2890
2913
  sender_type: "Contact" | "User";
2891
2914
  sender_id: number;
2892
2915
  external_source_ids: Record<string, unknown>;
@@ -2905,6 +2928,24 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
2905
2928
  assignee_id: number | null;
2906
2929
  };
2907
2930
  }[];
2931
+ labels: string[];
2932
+ snoozed_until: number | null;
2933
+ unread_count: number;
2934
+ first_reply_created_at: string | number | null;
2935
+ waiting_since: number | null;
2936
+ ai_disabled: boolean;
2937
+ reenable_ai_at: number | null;
2938
+ ai_summary: string | null;
2939
+ conversation_type: string;
2940
+ agent_last_seen_at: number;
2941
+ contact_last_seen_at: number;
2942
+ last_activity_at: number;
2943
+ timestamp: number;
2944
+ }, {
2945
+ id: number;
2946
+ status: "open" | "resolved" | "pending" | "snoozed";
2947
+ created_at: number;
2948
+ updated_at: number;
2908
2949
  meta: {
2909
2950
  sender: {
2910
2951
  id: number;
@@ -2928,23 +2969,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
2928
2969
  } | null;
2929
2970
  team?: unknown;
2930
2971
  };
2931
- labels: string[];
2932
- snoozed_until: number | null;
2933
- unread_count: number;
2934
- first_reply_created_at: string | number | null;
2935
- waiting_since: number | null;
2936
- ai_disabled: boolean;
2937
- reenable_ai_at: number | null;
2938
- ai_summary: string | null;
2939
- conversation_type: string;
2940
- agent_last_seen_at: number;
2941
- contact_last_seen_at: number;
2942
- last_activity_at: number;
2943
- timestamp: number;
2944
- }, {
2945
- id: number;
2946
- status: "open" | "resolved" | "pending" | "snoozed";
2947
- created_at: number;
2948
2972
  priority: string | null;
2949
2973
  additional_attributes: {
2950
2974
  browser?: {
@@ -2964,16 +2988,15 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
2964
2988
  };
2965
2989
  custom_attributes: Record<string, unknown>;
2966
2990
  inbox_id: number;
2967
- updated_at: number;
2968
2991
  channel: string;
2969
2992
  can_reply: boolean;
2970
2993
  contact_inbox: {
2971
2994
  id: number;
2972
2995
  created_at: string;
2996
+ updated_at: string;
2973
2997
  contact_id: number;
2974
2998
  inbox_id: number;
2975
2999
  source_id: string | null;
2976
- updated_at: string;
2977
3000
  hmac_verified: boolean;
2978
3001
  pubsub_token: string;
2979
3002
  };
@@ -2981,6 +3004,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
2981
3004
  id: number;
2982
3005
  status: string;
2983
3006
  account_id: number;
3007
+ created_at: number;
3008
+ updated_at: string;
2984
3009
  content: string | null;
2985
3010
  message_type: number;
2986
3011
  private: boolean;
@@ -2990,7 +3015,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
2990
3015
  } & {
2991
3016
  [k: string]: unknown;
2992
3017
  };
2993
- created_at: number;
2994
3018
  conversation_id: number;
2995
3019
  sender: {
2996
3020
  id: number;
@@ -3009,7 +3033,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
3009
3033
  additional_attributes: Record<string, unknown>;
3010
3034
  inbox_id: number;
3011
3035
  source_id: string | null;
3012
- updated_at: string;
3013
3036
  sender_type: "Contact" | "User";
3014
3037
  sender_id: number;
3015
3038
  external_source_ids: Record<string, unknown>;
@@ -3028,29 +3051,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
3028
3051
  assignee_id: number | null;
3029
3052
  };
3030
3053
  }[];
3031
- meta: {
3032
- sender: {
3033
- id: number;
3034
- name: string | null;
3035
- email: string | null;
3036
- phone_number: string | null;
3037
- thumbnail: string;
3038
- identifier: string | null;
3039
- additional_attributes: Record<string, unknown>;
3040
- custom_attributes: Record<string, unknown>;
3041
- blocked: boolean;
3042
- customer_stage: string;
3043
- customer_stage_explanation: string | null;
3044
- type?: string | undefined;
3045
- };
3046
- hmac_verified: boolean;
3047
- assignee: {
3048
- id: number;
3049
- name: string;
3050
- email: string;
3051
- } | null;
3052
- team?: unknown;
3053
- };
3054
3054
  labels: string[];
3055
3055
  snoozed_until: number | null;
3056
3056
  unread_count: number;
@@ -3146,6 +3146,7 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
3146
3146
  }, "strip", z.ZodTypeAny, {
3147
3147
  id: number;
3148
3148
  status: string;
3149
+ created_at: string;
3149
3150
  content: string | null;
3150
3151
  message_type: "incoming" | "outgoing";
3151
3152
  private: boolean;
@@ -3155,7 +3156,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
3155
3156
  } & {
3156
3157
  [k: string]: unknown;
3157
3158
  };
3158
- created_at: string;
3159
3159
  sender: {
3160
3160
  id: number;
3161
3161
  name: string | null;
@@ -3184,6 +3184,30 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
3184
3184
  id: number;
3185
3185
  status: "open" | "resolved" | "pending" | "snoozed";
3186
3186
  created_at: number;
3187
+ updated_at: number;
3188
+ meta: {
3189
+ sender: {
3190
+ id: number;
3191
+ name: string | null;
3192
+ email: string | null;
3193
+ phone_number: string | null;
3194
+ thumbnail: string;
3195
+ identifier: string | null;
3196
+ additional_attributes: Record<string, unknown>;
3197
+ custom_attributes: Record<string, unknown>;
3198
+ blocked: boolean;
3199
+ customer_stage: string;
3200
+ customer_stage_explanation: string | null;
3201
+ type?: string | undefined;
3202
+ };
3203
+ hmac_verified: boolean;
3204
+ assignee: {
3205
+ id: number;
3206
+ name: string;
3207
+ email: string;
3208
+ } | null;
3209
+ team?: unknown;
3210
+ };
3187
3211
  priority: string | null;
3188
3212
  additional_attributes: {
3189
3213
  browser?: {
@@ -3203,16 +3227,15 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
3203
3227
  };
3204
3228
  custom_attributes: Record<string, unknown>;
3205
3229
  inbox_id: number;
3206
- updated_at: number;
3207
3230
  channel: string;
3208
3231
  can_reply: boolean;
3209
3232
  contact_inbox: {
3210
3233
  id: number;
3211
3234
  created_at: string;
3235
+ updated_at: string;
3212
3236
  contact_id: number;
3213
3237
  inbox_id: number;
3214
3238
  source_id: string | null;
3215
- updated_at: string;
3216
3239
  hmac_verified: boolean;
3217
3240
  pubsub_token: string;
3218
3241
  };
@@ -3220,6 +3243,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
3220
3243
  id: number;
3221
3244
  status: string;
3222
3245
  account_id: number;
3246
+ created_at: number;
3247
+ updated_at: string;
3223
3248
  content: string | null;
3224
3249
  message_type: number;
3225
3250
  private: boolean;
@@ -3229,7 +3254,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
3229
3254
  } & {
3230
3255
  [k: string]: unknown;
3231
3256
  };
3232
- created_at: number;
3233
3257
  conversation_id: number;
3234
3258
  sender: {
3235
3259
  id: number;
@@ -3248,7 +3272,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
3248
3272
  additional_attributes: Record<string, unknown>;
3249
3273
  inbox_id: number;
3250
3274
  source_id: string | null;
3251
- updated_at: string;
3252
3275
  sender_type: "Contact" | "User";
3253
3276
  sender_id: number;
3254
3277
  external_source_ids: Record<string, unknown>;
@@ -3267,29 +3290,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
3267
3290
  assignee_id: number | null;
3268
3291
  };
3269
3292
  }[];
3270
- meta: {
3271
- sender: {
3272
- id: number;
3273
- name: string | null;
3274
- email: string | null;
3275
- phone_number: string | null;
3276
- thumbnail: string;
3277
- identifier: string | null;
3278
- additional_attributes: Record<string, unknown>;
3279
- custom_attributes: Record<string, unknown>;
3280
- blocked: boolean;
3281
- customer_stage: string;
3282
- customer_stage_explanation: string | null;
3283
- type?: string | undefined;
3284
- };
3285
- hmac_verified: boolean;
3286
- assignee: {
3287
- id: number;
3288
- name: string;
3289
- email: string;
3290
- } | null;
3291
- team?: unknown;
3292
- };
3293
3293
  labels: string[];
3294
3294
  snoozed_until: number | null;
3295
3295
  unread_count: number;
@@ -3312,6 +3312,7 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
3312
3312
  }, {
3313
3313
  id: number;
3314
3314
  status: string;
3315
+ created_at: string;
3315
3316
  content: string | null;
3316
3317
  message_type: "incoming" | "outgoing";
3317
3318
  private: boolean;
@@ -3321,7 +3322,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
3321
3322
  } & {
3322
3323
  [k: string]: unknown;
3323
3324
  };
3324
- created_at: string;
3325
3325
  sender: {
3326
3326
  id: number;
3327
3327
  name: string | null;
@@ -3350,6 +3350,30 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
3350
3350
  id: number;
3351
3351
  status: "open" | "resolved" | "pending" | "snoozed";
3352
3352
  created_at: number;
3353
+ updated_at: number;
3354
+ meta: {
3355
+ sender: {
3356
+ id: number;
3357
+ name: string | null;
3358
+ email: string | null;
3359
+ phone_number: string | null;
3360
+ thumbnail: string;
3361
+ identifier: string | null;
3362
+ additional_attributes: Record<string, unknown>;
3363
+ custom_attributes: Record<string, unknown>;
3364
+ blocked: boolean;
3365
+ customer_stage: string;
3366
+ customer_stage_explanation: string | null;
3367
+ type?: string | undefined;
3368
+ };
3369
+ hmac_verified: boolean;
3370
+ assignee: {
3371
+ id: number;
3372
+ name: string;
3373
+ email: string;
3374
+ } | null;
3375
+ team?: unknown;
3376
+ };
3353
3377
  priority: string | null;
3354
3378
  additional_attributes: {
3355
3379
  browser?: {
@@ -3369,16 +3393,15 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
3369
3393
  };
3370
3394
  custom_attributes: Record<string, unknown>;
3371
3395
  inbox_id: number;
3372
- updated_at: number;
3373
3396
  channel: string;
3374
3397
  can_reply: boolean;
3375
3398
  contact_inbox: {
3376
3399
  id: number;
3377
3400
  created_at: string;
3401
+ updated_at: string;
3378
3402
  contact_id: number;
3379
3403
  inbox_id: number;
3380
3404
  source_id: string | null;
3381
- updated_at: string;
3382
3405
  hmac_verified: boolean;
3383
3406
  pubsub_token: string;
3384
3407
  };
@@ -3386,6 +3409,8 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
3386
3409
  id: number;
3387
3410
  status: string;
3388
3411
  account_id: number;
3412
+ created_at: number;
3413
+ updated_at: string;
3389
3414
  content: string | null;
3390
3415
  message_type: number;
3391
3416
  private: boolean;
@@ -3395,7 +3420,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
3395
3420
  } & {
3396
3421
  [k: string]: unknown;
3397
3422
  };
3398
- created_at: number;
3399
3423
  conversation_id: number;
3400
3424
  sender: {
3401
3425
  id: number;
@@ -3414,7 +3438,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
3414
3438
  additional_attributes: Record<string, unknown>;
3415
3439
  inbox_id: number;
3416
3440
  source_id: string | null;
3417
- updated_at: string;
3418
3441
  sender_type: "Contact" | "User";
3419
3442
  sender_id: number;
3420
3443
  external_source_ids: Record<string, unknown>;
@@ -3433,29 +3456,6 @@ export declare const MessageUpdatedEventSchema: z.ZodObject<{
3433
3456
  assignee_id: number | null;
3434
3457
  };
3435
3458
  }[];
3436
- meta: {
3437
- sender: {
3438
- id: number;
3439
- name: string | null;
3440
- email: string | null;
3441
- phone_number: string | null;
3442
- thumbnail: string;
3443
- identifier: string | null;
3444
- additional_attributes: Record<string, unknown>;
3445
- custom_attributes: Record<string, unknown>;
3446
- blocked: boolean;
3447
- customer_stage: string;
3448
- customer_stage_explanation: string | null;
3449
- type?: string | undefined;
3450
- };
3451
- hmac_verified: boolean;
3452
- assignee: {
3453
- id: number;
3454
- name: string;
3455
- email: string;
3456
- } | null;
3457
- team?: unknown;
3458
- };
3459
3459
  labels: string[];
3460
3460
  snoozed_until: number | null;
3461
3461
  unread_count: number;
@@ -3600,19 +3600,19 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
3600
3600
  }, "strip", z.ZodTypeAny, {
3601
3601
  id: number;
3602
3602
  created_at: string;
3603
+ updated_at: string;
3603
3604
  contact_id: number;
3604
3605
  inbox_id: number;
3605
3606
  source_id: string | null;
3606
- updated_at: string;
3607
3607
  hmac_verified: boolean;
3608
3608
  pubsub_token: string;
3609
3609
  }, {
3610
3610
  id: number;
3611
3611
  created_at: string;
3612
+ updated_at: string;
3612
3613
  contact_id: number;
3613
3614
  inbox_id: number;
3614
3615
  source_id: string | null;
3615
- updated_at: string;
3616
3616
  hmac_verified: boolean;
3617
3617
  pubsub_token: string;
3618
3618
  }>;
@@ -3718,6 +3718,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
3718
3718
  id: number;
3719
3719
  status: string;
3720
3720
  account_id: number;
3721
+ created_at: number;
3722
+ updated_at: string;
3721
3723
  content: string | null;
3722
3724
  message_type: number;
3723
3725
  private: boolean;
@@ -3727,7 +3729,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
3727
3729
  } & {
3728
3730
  [k: string]: unknown;
3729
3731
  };
3730
- created_at: number;
3731
3732
  conversation_id: number;
3732
3733
  sender: {
3733
3734
  id: number;
@@ -3746,7 +3747,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
3746
3747
  additional_attributes: Record<string, unknown>;
3747
3748
  inbox_id: number;
3748
3749
  source_id: string | null;
3749
- updated_at: string;
3750
3750
  sender_type: "Contact" | "User";
3751
3751
  sender_id: number;
3752
3752
  external_source_ids: Record<string, unknown>;
@@ -3768,6 +3768,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
3768
3768
  id: number;
3769
3769
  status: string;
3770
3770
  account_id: number;
3771
+ created_at: number;
3772
+ updated_at: string;
3771
3773
  content: string | null;
3772
3774
  message_type: number;
3773
3775
  private: boolean;
@@ -3777,7 +3779,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
3777
3779
  } & {
3778
3780
  [k: string]: unknown;
3779
3781
  };
3780
- created_at: number;
3781
3782
  conversation_id: number;
3782
3783
  sender: {
3783
3784
  id: number;
@@ -3796,7 +3797,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
3796
3797
  additional_attributes: Record<string, unknown>;
3797
3798
  inbox_id: number;
3798
3799
  source_id: string | null;
3799
- updated_at: string;
3800
3800
  sender_type: "Contact" | "User";
3801
3801
  sender_id: number;
3802
3802
  external_source_ids: Record<string, unknown>;
@@ -3938,6 +3938,30 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
3938
3938
  id: number;
3939
3939
  status: "open" | "resolved" | "pending" | "snoozed";
3940
3940
  created_at: number;
3941
+ updated_at: number;
3942
+ meta: {
3943
+ sender: {
3944
+ id: number;
3945
+ name: string | null;
3946
+ email: string | null;
3947
+ phone_number: string | null;
3948
+ thumbnail: string;
3949
+ identifier: string | null;
3950
+ additional_attributes: Record<string, unknown>;
3951
+ custom_attributes: Record<string, unknown>;
3952
+ blocked: boolean;
3953
+ customer_stage: string;
3954
+ customer_stage_explanation: string | null;
3955
+ type?: string | undefined;
3956
+ };
3957
+ hmac_verified: boolean;
3958
+ assignee: {
3959
+ id: number;
3960
+ name: string;
3961
+ email: string;
3962
+ } | null;
3963
+ team?: unknown;
3964
+ };
3941
3965
  priority: string | null;
3942
3966
  additional_attributes: {
3943
3967
  browser?: {
@@ -3957,16 +3981,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
3957
3981
  };
3958
3982
  custom_attributes: Record<string, unknown>;
3959
3983
  inbox_id: number;
3960
- updated_at: number;
3961
3984
  channel: string;
3962
3985
  can_reply: boolean;
3963
3986
  contact_inbox: {
3964
3987
  id: number;
3965
3988
  created_at: string;
3989
+ updated_at: string;
3966
3990
  contact_id: number;
3967
3991
  inbox_id: number;
3968
3992
  source_id: string | null;
3969
- updated_at: string;
3970
3993
  hmac_verified: boolean;
3971
3994
  pubsub_token: string;
3972
3995
  };
@@ -3974,6 +3997,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
3974
3997
  id: number;
3975
3998
  status: string;
3976
3999
  account_id: number;
4000
+ created_at: number;
4001
+ updated_at: string;
3977
4002
  content: string | null;
3978
4003
  message_type: number;
3979
4004
  private: boolean;
@@ -3983,7 +4008,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
3983
4008
  } & {
3984
4009
  [k: string]: unknown;
3985
4010
  };
3986
- created_at: number;
3987
4011
  conversation_id: number;
3988
4012
  sender: {
3989
4013
  id: number;
@@ -4002,7 +4026,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4002
4026
  additional_attributes: Record<string, unknown>;
4003
4027
  inbox_id: number;
4004
4028
  source_id: string | null;
4005
- updated_at: string;
4006
4029
  sender_type: "Contact" | "User";
4007
4030
  sender_id: number;
4008
4031
  external_source_ids: Record<string, unknown>;
@@ -4021,6 +4044,24 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4021
4044
  assignee_id: number | null;
4022
4045
  };
4023
4046
  }[];
4047
+ labels: string[];
4048
+ snoozed_until: number | null;
4049
+ unread_count: number;
4050
+ first_reply_created_at: string | number | null;
4051
+ waiting_since: number | null;
4052
+ ai_disabled: boolean;
4053
+ reenable_ai_at: number | null;
4054
+ ai_summary: string | null;
4055
+ conversation_type: string;
4056
+ agent_last_seen_at: number;
4057
+ contact_last_seen_at: number;
4058
+ last_activity_at: number;
4059
+ timestamp: number;
4060
+ }, {
4061
+ id: number;
4062
+ status: "open" | "resolved" | "pending" | "snoozed";
4063
+ created_at: number;
4064
+ updated_at: number;
4024
4065
  meta: {
4025
4066
  sender: {
4026
4067
  id: number;
@@ -4044,23 +4085,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4044
4085
  } | null;
4045
4086
  team?: unknown;
4046
4087
  };
4047
- labels: string[];
4048
- snoozed_until: number | null;
4049
- unread_count: number;
4050
- first_reply_created_at: string | number | null;
4051
- waiting_since: number | null;
4052
- ai_disabled: boolean;
4053
- reenable_ai_at: number | null;
4054
- ai_summary: string | null;
4055
- conversation_type: string;
4056
- agent_last_seen_at: number;
4057
- contact_last_seen_at: number;
4058
- last_activity_at: number;
4059
- timestamp: number;
4060
- }, {
4061
- id: number;
4062
- status: "open" | "resolved" | "pending" | "snoozed";
4063
- created_at: number;
4064
4088
  priority: string | null;
4065
4089
  additional_attributes: {
4066
4090
  browser?: {
@@ -4080,16 +4104,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4080
4104
  };
4081
4105
  custom_attributes: Record<string, unknown>;
4082
4106
  inbox_id: number;
4083
- updated_at: number;
4084
4107
  channel: string;
4085
4108
  can_reply: boolean;
4086
4109
  contact_inbox: {
4087
4110
  id: number;
4088
4111
  created_at: string;
4112
+ updated_at: string;
4089
4113
  contact_id: number;
4090
4114
  inbox_id: number;
4091
4115
  source_id: string | null;
4092
- updated_at: string;
4093
4116
  hmac_verified: boolean;
4094
4117
  pubsub_token: string;
4095
4118
  };
@@ -4097,6 +4120,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4097
4120
  id: number;
4098
4121
  status: string;
4099
4122
  account_id: number;
4123
+ created_at: number;
4124
+ updated_at: string;
4100
4125
  content: string | null;
4101
4126
  message_type: number;
4102
4127
  private: boolean;
@@ -4106,7 +4131,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4106
4131
  } & {
4107
4132
  [k: string]: unknown;
4108
4133
  };
4109
- created_at: number;
4110
4134
  conversation_id: number;
4111
4135
  sender: {
4112
4136
  id: number;
@@ -4125,7 +4149,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4125
4149
  additional_attributes: Record<string, unknown>;
4126
4150
  inbox_id: number;
4127
4151
  source_id: string | null;
4128
- updated_at: string;
4129
4152
  sender_type: "Contact" | "User";
4130
4153
  sender_id: number;
4131
4154
  external_source_ids: Record<string, unknown>;
@@ -4144,29 +4167,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4144
4167
  assignee_id: number | null;
4145
4168
  };
4146
4169
  }[];
4147
- meta: {
4148
- sender: {
4149
- id: number;
4150
- name: string | null;
4151
- email: string | null;
4152
- phone_number: string | null;
4153
- thumbnail: string;
4154
- identifier: string | null;
4155
- additional_attributes: Record<string, unknown>;
4156
- custom_attributes: Record<string, unknown>;
4157
- blocked: boolean;
4158
- customer_stage: string;
4159
- customer_stage_explanation: string | null;
4160
- type?: string | undefined;
4161
- };
4162
- hmac_verified: boolean;
4163
- assignee: {
4164
- id: number;
4165
- name: string;
4166
- email: string;
4167
- } | null;
4168
- team?: unknown;
4169
- };
4170
4170
  labels: string[];
4171
4171
  snoozed_until: number | null;
4172
4172
  unread_count: number;
@@ -4262,6 +4262,7 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4262
4262
  }, "strip", z.ZodTypeAny, {
4263
4263
  id: number;
4264
4264
  status: string;
4265
+ created_at: string;
4265
4266
  content: string | null;
4266
4267
  message_type: "incoming" | "outgoing";
4267
4268
  private: boolean;
@@ -4271,7 +4272,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4271
4272
  } & {
4272
4273
  [k: string]: unknown;
4273
4274
  };
4274
- created_at: string;
4275
4275
  sender: {
4276
4276
  id: number;
4277
4277
  name: string | null;
@@ -4300,6 +4300,30 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4300
4300
  id: number;
4301
4301
  status: "open" | "resolved" | "pending" | "snoozed";
4302
4302
  created_at: number;
4303
+ updated_at: number;
4304
+ meta: {
4305
+ sender: {
4306
+ id: number;
4307
+ name: string | null;
4308
+ email: string | null;
4309
+ phone_number: string | null;
4310
+ thumbnail: string;
4311
+ identifier: string | null;
4312
+ additional_attributes: Record<string, unknown>;
4313
+ custom_attributes: Record<string, unknown>;
4314
+ blocked: boolean;
4315
+ customer_stage: string;
4316
+ customer_stage_explanation: string | null;
4317
+ type?: string | undefined;
4318
+ };
4319
+ hmac_verified: boolean;
4320
+ assignee: {
4321
+ id: number;
4322
+ name: string;
4323
+ email: string;
4324
+ } | null;
4325
+ team?: unknown;
4326
+ };
4303
4327
  priority: string | null;
4304
4328
  additional_attributes: {
4305
4329
  browser?: {
@@ -4319,16 +4343,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4319
4343
  };
4320
4344
  custom_attributes: Record<string, unknown>;
4321
4345
  inbox_id: number;
4322
- updated_at: number;
4323
4346
  channel: string;
4324
4347
  can_reply: boolean;
4325
4348
  contact_inbox: {
4326
4349
  id: number;
4327
4350
  created_at: string;
4351
+ updated_at: string;
4328
4352
  contact_id: number;
4329
4353
  inbox_id: number;
4330
4354
  source_id: string | null;
4331
- updated_at: string;
4332
4355
  hmac_verified: boolean;
4333
4356
  pubsub_token: string;
4334
4357
  };
@@ -4336,6 +4359,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4336
4359
  id: number;
4337
4360
  status: string;
4338
4361
  account_id: number;
4362
+ created_at: number;
4363
+ updated_at: string;
4339
4364
  content: string | null;
4340
4365
  message_type: number;
4341
4366
  private: boolean;
@@ -4345,7 +4370,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4345
4370
  } & {
4346
4371
  [k: string]: unknown;
4347
4372
  };
4348
- created_at: number;
4349
4373
  conversation_id: number;
4350
4374
  sender: {
4351
4375
  id: number;
@@ -4364,7 +4388,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4364
4388
  additional_attributes: Record<string, unknown>;
4365
4389
  inbox_id: number;
4366
4390
  source_id: string | null;
4367
- updated_at: string;
4368
4391
  sender_type: "Contact" | "User";
4369
4392
  sender_id: number;
4370
4393
  external_source_ids: Record<string, unknown>;
@@ -4383,29 +4406,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4383
4406
  assignee_id: number | null;
4384
4407
  };
4385
4408
  }[];
4386
- meta: {
4387
- sender: {
4388
- id: number;
4389
- name: string | null;
4390
- email: string | null;
4391
- phone_number: string | null;
4392
- thumbnail: string;
4393
- identifier: string | null;
4394
- additional_attributes: Record<string, unknown>;
4395
- custom_attributes: Record<string, unknown>;
4396
- blocked: boolean;
4397
- customer_stage: string;
4398
- customer_stage_explanation: string | null;
4399
- type?: string | undefined;
4400
- };
4401
- hmac_verified: boolean;
4402
- assignee: {
4403
- id: number;
4404
- name: string;
4405
- email: string;
4406
- } | null;
4407
- team?: unknown;
4408
- };
4409
4409
  labels: string[];
4410
4410
  snoozed_until: number | null;
4411
4411
  unread_count: number;
@@ -4428,6 +4428,7 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4428
4428
  }, {
4429
4429
  id: number;
4430
4430
  status: string;
4431
+ created_at: string;
4431
4432
  content: string | null;
4432
4433
  message_type: "incoming" | "outgoing";
4433
4434
  private: boolean;
@@ -4437,7 +4438,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4437
4438
  } & {
4438
4439
  [k: string]: unknown;
4439
4440
  };
4440
- created_at: string;
4441
4441
  sender: {
4442
4442
  id: number;
4443
4443
  name: string | null;
@@ -4466,6 +4466,30 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4466
4466
  id: number;
4467
4467
  status: "open" | "resolved" | "pending" | "snoozed";
4468
4468
  created_at: number;
4469
+ updated_at: number;
4470
+ meta: {
4471
+ sender: {
4472
+ id: number;
4473
+ name: string | null;
4474
+ email: string | null;
4475
+ phone_number: string | null;
4476
+ thumbnail: string;
4477
+ identifier: string | null;
4478
+ additional_attributes: Record<string, unknown>;
4479
+ custom_attributes: Record<string, unknown>;
4480
+ blocked: boolean;
4481
+ customer_stage: string;
4482
+ customer_stage_explanation: string | null;
4483
+ type?: string | undefined;
4484
+ };
4485
+ hmac_verified: boolean;
4486
+ assignee: {
4487
+ id: number;
4488
+ name: string;
4489
+ email: string;
4490
+ } | null;
4491
+ team?: unknown;
4492
+ };
4469
4493
  priority: string | null;
4470
4494
  additional_attributes: {
4471
4495
  browser?: {
@@ -4485,16 +4509,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4485
4509
  };
4486
4510
  custom_attributes: Record<string, unknown>;
4487
4511
  inbox_id: number;
4488
- updated_at: number;
4489
4512
  channel: string;
4490
4513
  can_reply: boolean;
4491
4514
  contact_inbox: {
4492
4515
  id: number;
4493
4516
  created_at: string;
4517
+ updated_at: string;
4494
4518
  contact_id: number;
4495
4519
  inbox_id: number;
4496
4520
  source_id: string | null;
4497
- updated_at: string;
4498
4521
  hmac_verified: boolean;
4499
4522
  pubsub_token: string;
4500
4523
  };
@@ -4502,6 +4525,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4502
4525
  id: number;
4503
4526
  status: string;
4504
4527
  account_id: number;
4528
+ created_at: number;
4529
+ updated_at: string;
4505
4530
  content: string | null;
4506
4531
  message_type: number;
4507
4532
  private: boolean;
@@ -4511,7 +4536,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4511
4536
  } & {
4512
4537
  [k: string]: unknown;
4513
4538
  };
4514
- created_at: number;
4515
4539
  conversation_id: number;
4516
4540
  sender: {
4517
4541
  id: number;
@@ -4530,7 +4554,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4530
4554
  additional_attributes: Record<string, unknown>;
4531
4555
  inbox_id: number;
4532
4556
  source_id: string | null;
4533
- updated_at: string;
4534
4557
  sender_type: "Contact" | "User";
4535
4558
  sender_id: number;
4536
4559
  external_source_ids: Record<string, unknown>;
@@ -4549,29 +4572,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4549
4572
  assignee_id: number | null;
4550
4573
  };
4551
4574
  }[];
4552
- meta: {
4553
- sender: {
4554
- id: number;
4555
- name: string | null;
4556
- email: string | null;
4557
- phone_number: string | null;
4558
- thumbnail: string;
4559
- identifier: string | null;
4560
- additional_attributes: Record<string, unknown>;
4561
- custom_attributes: Record<string, unknown>;
4562
- blocked: boolean;
4563
- customer_stage: string;
4564
- customer_stage_explanation: string | null;
4565
- type?: string | undefined;
4566
- };
4567
- hmac_verified: boolean;
4568
- assignee: {
4569
- id: number;
4570
- name: string;
4571
- email: string;
4572
- } | null;
4573
- team?: unknown;
4574
- };
4575
4575
  labels: string[];
4576
4576
  snoozed_until: number | null;
4577
4577
  unread_count: number;
@@ -4715,19 +4715,19 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4715
4715
  }, "strip", z.ZodTypeAny, {
4716
4716
  id: number;
4717
4717
  created_at: string;
4718
+ updated_at: string;
4718
4719
  contact_id: number;
4719
4720
  inbox_id: number;
4720
4721
  source_id: string | null;
4721
- updated_at: string;
4722
4722
  hmac_verified: boolean;
4723
4723
  pubsub_token: string;
4724
4724
  }, {
4725
4725
  id: number;
4726
4726
  created_at: string;
4727
+ updated_at: string;
4727
4728
  contact_id: number;
4728
4729
  inbox_id: number;
4729
4730
  source_id: string | null;
4730
- updated_at: string;
4731
4731
  hmac_verified: boolean;
4732
4732
  pubsub_token: string;
4733
4733
  }>;
@@ -4833,6 +4833,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4833
4833
  id: number;
4834
4834
  status: string;
4835
4835
  account_id: number;
4836
+ created_at: number;
4837
+ updated_at: string;
4836
4838
  content: string | null;
4837
4839
  message_type: number;
4838
4840
  private: boolean;
@@ -4842,7 +4844,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4842
4844
  } & {
4843
4845
  [k: string]: unknown;
4844
4846
  };
4845
- created_at: number;
4846
4847
  conversation_id: number;
4847
4848
  sender: {
4848
4849
  id: number;
@@ -4861,7 +4862,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4861
4862
  additional_attributes: Record<string, unknown>;
4862
4863
  inbox_id: number;
4863
4864
  source_id: string | null;
4864
- updated_at: string;
4865
4865
  sender_type: "Contact" | "User";
4866
4866
  sender_id: number;
4867
4867
  external_source_ids: Record<string, unknown>;
@@ -4883,6 +4883,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4883
4883
  id: number;
4884
4884
  status: string;
4885
4885
  account_id: number;
4886
+ created_at: number;
4887
+ updated_at: string;
4886
4888
  content: string | null;
4887
4889
  message_type: number;
4888
4890
  private: boolean;
@@ -4892,7 +4894,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4892
4894
  } & {
4893
4895
  [k: string]: unknown;
4894
4896
  };
4895
- created_at: number;
4896
4897
  conversation_id: number;
4897
4898
  sender: {
4898
4899
  id: number;
@@ -4911,7 +4912,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
4911
4912
  additional_attributes: Record<string, unknown>;
4912
4913
  inbox_id: number;
4913
4914
  source_id: string | null;
4914
- updated_at: string;
4915
4915
  sender_type: "Contact" | "User";
4916
4916
  sender_id: number;
4917
4917
  external_source_ids: Record<string, unknown>;
@@ -5053,6 +5053,30 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5053
5053
  id: number;
5054
5054
  status: "open" | "resolved" | "pending" | "snoozed";
5055
5055
  created_at: number;
5056
+ updated_at: number;
5057
+ meta: {
5058
+ sender: {
5059
+ id: number;
5060
+ name: string | null;
5061
+ email: string | null;
5062
+ phone_number: string | null;
5063
+ thumbnail: string;
5064
+ identifier: string | null;
5065
+ additional_attributes: Record<string, unknown>;
5066
+ custom_attributes: Record<string, unknown>;
5067
+ blocked: boolean;
5068
+ customer_stage: string;
5069
+ customer_stage_explanation: string | null;
5070
+ type?: string | undefined;
5071
+ };
5072
+ hmac_verified: boolean;
5073
+ assignee: {
5074
+ id: number;
5075
+ name: string;
5076
+ email: string;
5077
+ } | null;
5078
+ team?: unknown;
5079
+ };
5056
5080
  priority: string | null;
5057
5081
  additional_attributes: {
5058
5082
  browser?: {
@@ -5072,16 +5096,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5072
5096
  };
5073
5097
  custom_attributes: Record<string, unknown>;
5074
5098
  inbox_id: number;
5075
- updated_at: number;
5076
5099
  channel: string;
5077
5100
  can_reply: boolean;
5078
5101
  contact_inbox: {
5079
5102
  id: number;
5080
5103
  created_at: string;
5104
+ updated_at: string;
5081
5105
  contact_id: number;
5082
5106
  inbox_id: number;
5083
5107
  source_id: string | null;
5084
- updated_at: string;
5085
5108
  hmac_verified: boolean;
5086
5109
  pubsub_token: string;
5087
5110
  };
@@ -5089,6 +5112,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5089
5112
  id: number;
5090
5113
  status: string;
5091
5114
  account_id: number;
5115
+ created_at: number;
5116
+ updated_at: string;
5092
5117
  content: string | null;
5093
5118
  message_type: number;
5094
5119
  private: boolean;
@@ -5098,7 +5123,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5098
5123
  } & {
5099
5124
  [k: string]: unknown;
5100
5125
  };
5101
- created_at: number;
5102
5126
  conversation_id: number;
5103
5127
  sender: {
5104
5128
  id: number;
@@ -5117,7 +5141,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5117
5141
  additional_attributes: Record<string, unknown>;
5118
5142
  inbox_id: number;
5119
5143
  source_id: string | null;
5120
- updated_at: string;
5121
5144
  sender_type: "Contact" | "User";
5122
5145
  sender_id: number;
5123
5146
  external_source_ids: Record<string, unknown>;
@@ -5136,6 +5159,24 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5136
5159
  assignee_id: number | null;
5137
5160
  };
5138
5161
  }[];
5162
+ labels: string[];
5163
+ snoozed_until: number | null;
5164
+ unread_count: number;
5165
+ first_reply_created_at: string | number | null;
5166
+ waiting_since: number | null;
5167
+ ai_disabled: boolean;
5168
+ reenable_ai_at: number | null;
5169
+ ai_summary: string | null;
5170
+ conversation_type: string;
5171
+ agent_last_seen_at: number;
5172
+ contact_last_seen_at: number;
5173
+ last_activity_at: number;
5174
+ timestamp: number;
5175
+ }, {
5176
+ id: number;
5177
+ status: "open" | "resolved" | "pending" | "snoozed";
5178
+ created_at: number;
5179
+ updated_at: number;
5139
5180
  meta: {
5140
5181
  sender: {
5141
5182
  id: number;
@@ -5159,23 +5200,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5159
5200
  } | null;
5160
5201
  team?: unknown;
5161
5202
  };
5162
- labels: string[];
5163
- snoozed_until: number | null;
5164
- unread_count: number;
5165
- first_reply_created_at: string | number | null;
5166
- waiting_since: number | null;
5167
- ai_disabled: boolean;
5168
- reenable_ai_at: number | null;
5169
- ai_summary: string | null;
5170
- conversation_type: string;
5171
- agent_last_seen_at: number;
5172
- contact_last_seen_at: number;
5173
- last_activity_at: number;
5174
- timestamp: number;
5175
- }, {
5176
- id: number;
5177
- status: "open" | "resolved" | "pending" | "snoozed";
5178
- created_at: number;
5179
5203
  priority: string | null;
5180
5204
  additional_attributes: {
5181
5205
  browser?: {
@@ -5195,16 +5219,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5195
5219
  };
5196
5220
  custom_attributes: Record<string, unknown>;
5197
5221
  inbox_id: number;
5198
- updated_at: number;
5199
5222
  channel: string;
5200
5223
  can_reply: boolean;
5201
5224
  contact_inbox: {
5202
5225
  id: number;
5203
5226
  created_at: string;
5227
+ updated_at: string;
5204
5228
  contact_id: number;
5205
5229
  inbox_id: number;
5206
5230
  source_id: string | null;
5207
- updated_at: string;
5208
5231
  hmac_verified: boolean;
5209
5232
  pubsub_token: string;
5210
5233
  };
@@ -5212,6 +5235,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5212
5235
  id: number;
5213
5236
  status: string;
5214
5237
  account_id: number;
5238
+ created_at: number;
5239
+ updated_at: string;
5215
5240
  content: string | null;
5216
5241
  message_type: number;
5217
5242
  private: boolean;
@@ -5221,7 +5246,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5221
5246
  } & {
5222
5247
  [k: string]: unknown;
5223
5248
  };
5224
- created_at: number;
5225
5249
  conversation_id: number;
5226
5250
  sender: {
5227
5251
  id: number;
@@ -5240,7 +5264,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5240
5264
  additional_attributes: Record<string, unknown>;
5241
5265
  inbox_id: number;
5242
5266
  source_id: string | null;
5243
- updated_at: string;
5244
5267
  sender_type: "Contact" | "User";
5245
5268
  sender_id: number;
5246
5269
  external_source_ids: Record<string, unknown>;
@@ -5259,29 +5282,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5259
5282
  assignee_id: number | null;
5260
5283
  };
5261
5284
  }[];
5262
- meta: {
5263
- sender: {
5264
- id: number;
5265
- name: string | null;
5266
- email: string | null;
5267
- phone_number: string | null;
5268
- thumbnail: string;
5269
- identifier: string | null;
5270
- additional_attributes: Record<string, unknown>;
5271
- custom_attributes: Record<string, unknown>;
5272
- blocked: boolean;
5273
- customer_stage: string;
5274
- customer_stage_explanation: string | null;
5275
- type?: string | undefined;
5276
- };
5277
- hmac_verified: boolean;
5278
- assignee: {
5279
- id: number;
5280
- name: string;
5281
- email: string;
5282
- } | null;
5283
- team?: unknown;
5284
- };
5285
5285
  labels: string[];
5286
5286
  snoozed_until: number | null;
5287
5287
  unread_count: number;
@@ -5377,6 +5377,7 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5377
5377
  }, "strip", z.ZodTypeAny, {
5378
5378
  id: number;
5379
5379
  status: string;
5380
+ created_at: string;
5380
5381
  content: string | null;
5381
5382
  message_type: "incoming" | "outgoing";
5382
5383
  private: boolean;
@@ -5386,7 +5387,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5386
5387
  } & {
5387
5388
  [k: string]: unknown;
5388
5389
  };
5389
- created_at: string;
5390
5390
  sender: {
5391
5391
  id: number;
5392
5392
  name: string | null;
@@ -5415,6 +5415,30 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5415
5415
  id: number;
5416
5416
  status: "open" | "resolved" | "pending" | "snoozed";
5417
5417
  created_at: number;
5418
+ updated_at: number;
5419
+ meta: {
5420
+ sender: {
5421
+ id: number;
5422
+ name: string | null;
5423
+ email: string | null;
5424
+ phone_number: string | null;
5425
+ thumbnail: string;
5426
+ identifier: string | null;
5427
+ additional_attributes: Record<string, unknown>;
5428
+ custom_attributes: Record<string, unknown>;
5429
+ blocked: boolean;
5430
+ customer_stage: string;
5431
+ customer_stage_explanation: string | null;
5432
+ type?: string | undefined;
5433
+ };
5434
+ hmac_verified: boolean;
5435
+ assignee: {
5436
+ id: number;
5437
+ name: string;
5438
+ email: string;
5439
+ } | null;
5440
+ team?: unknown;
5441
+ };
5418
5442
  priority: string | null;
5419
5443
  additional_attributes: {
5420
5444
  browser?: {
@@ -5434,16 +5458,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5434
5458
  };
5435
5459
  custom_attributes: Record<string, unknown>;
5436
5460
  inbox_id: number;
5437
- updated_at: number;
5438
5461
  channel: string;
5439
5462
  can_reply: boolean;
5440
5463
  contact_inbox: {
5441
5464
  id: number;
5442
5465
  created_at: string;
5466
+ updated_at: string;
5443
5467
  contact_id: number;
5444
5468
  inbox_id: number;
5445
5469
  source_id: string | null;
5446
- updated_at: string;
5447
5470
  hmac_verified: boolean;
5448
5471
  pubsub_token: string;
5449
5472
  };
@@ -5451,6 +5474,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5451
5474
  id: number;
5452
5475
  status: string;
5453
5476
  account_id: number;
5477
+ created_at: number;
5478
+ updated_at: string;
5454
5479
  content: string | null;
5455
5480
  message_type: number;
5456
5481
  private: boolean;
@@ -5460,7 +5485,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5460
5485
  } & {
5461
5486
  [k: string]: unknown;
5462
5487
  };
5463
- created_at: number;
5464
5488
  conversation_id: number;
5465
5489
  sender: {
5466
5490
  id: number;
@@ -5479,7 +5503,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5479
5503
  additional_attributes: Record<string, unknown>;
5480
5504
  inbox_id: number;
5481
5505
  source_id: string | null;
5482
- updated_at: string;
5483
5506
  sender_type: "Contact" | "User";
5484
5507
  sender_id: number;
5485
5508
  external_source_ids: Record<string, unknown>;
@@ -5498,29 +5521,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5498
5521
  assignee_id: number | null;
5499
5522
  };
5500
5523
  }[];
5501
- meta: {
5502
- sender: {
5503
- id: number;
5504
- name: string | null;
5505
- email: string | null;
5506
- phone_number: string | null;
5507
- thumbnail: string;
5508
- identifier: string | null;
5509
- additional_attributes: Record<string, unknown>;
5510
- custom_attributes: Record<string, unknown>;
5511
- blocked: boolean;
5512
- customer_stage: string;
5513
- customer_stage_explanation: string | null;
5514
- type?: string | undefined;
5515
- };
5516
- hmac_verified: boolean;
5517
- assignee: {
5518
- id: number;
5519
- name: string;
5520
- email: string;
5521
- } | null;
5522
- team?: unknown;
5523
- };
5524
5524
  labels: string[];
5525
5525
  snoozed_until: number | null;
5526
5526
  unread_count: number;
@@ -5543,6 +5543,7 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5543
5543
  }, {
5544
5544
  id: number;
5545
5545
  status: string;
5546
+ created_at: string;
5546
5547
  content: string | null;
5547
5548
  message_type: "incoming" | "outgoing";
5548
5549
  private: boolean;
@@ -5552,7 +5553,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5552
5553
  } & {
5553
5554
  [k: string]: unknown;
5554
5555
  };
5555
- created_at: string;
5556
5556
  sender: {
5557
5557
  id: number;
5558
5558
  name: string | null;
@@ -5581,6 +5581,30 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5581
5581
  id: number;
5582
5582
  status: "open" | "resolved" | "pending" | "snoozed";
5583
5583
  created_at: number;
5584
+ updated_at: number;
5585
+ meta: {
5586
+ sender: {
5587
+ id: number;
5588
+ name: string | null;
5589
+ email: string | null;
5590
+ phone_number: string | null;
5591
+ thumbnail: string;
5592
+ identifier: string | null;
5593
+ additional_attributes: Record<string, unknown>;
5594
+ custom_attributes: Record<string, unknown>;
5595
+ blocked: boolean;
5596
+ customer_stage: string;
5597
+ customer_stage_explanation: string | null;
5598
+ type?: string | undefined;
5599
+ };
5600
+ hmac_verified: boolean;
5601
+ assignee: {
5602
+ id: number;
5603
+ name: string;
5604
+ email: string;
5605
+ } | null;
5606
+ team?: unknown;
5607
+ };
5584
5608
  priority: string | null;
5585
5609
  additional_attributes: {
5586
5610
  browser?: {
@@ -5600,16 +5624,15 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5600
5624
  };
5601
5625
  custom_attributes: Record<string, unknown>;
5602
5626
  inbox_id: number;
5603
- updated_at: number;
5604
5627
  channel: string;
5605
5628
  can_reply: boolean;
5606
5629
  contact_inbox: {
5607
5630
  id: number;
5608
5631
  created_at: string;
5632
+ updated_at: string;
5609
5633
  contact_id: number;
5610
5634
  inbox_id: number;
5611
5635
  source_id: string | null;
5612
- updated_at: string;
5613
5636
  hmac_verified: boolean;
5614
5637
  pubsub_token: string;
5615
5638
  };
@@ -5617,6 +5640,8 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5617
5640
  id: number;
5618
5641
  status: string;
5619
5642
  account_id: number;
5643
+ created_at: number;
5644
+ updated_at: string;
5620
5645
  content: string | null;
5621
5646
  message_type: number;
5622
5647
  private: boolean;
@@ -5626,7 +5651,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5626
5651
  } & {
5627
5652
  [k: string]: unknown;
5628
5653
  };
5629
- created_at: number;
5630
5654
  conversation_id: number;
5631
5655
  sender: {
5632
5656
  id: number;
@@ -5645,7 +5669,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5645
5669
  additional_attributes: Record<string, unknown>;
5646
5670
  inbox_id: number;
5647
5671
  source_id: string | null;
5648
- updated_at: string;
5649
5672
  sender_type: "Contact" | "User";
5650
5673
  sender_id: number;
5651
5674
  external_source_ids: Record<string, unknown>;
@@ -5664,29 +5687,6 @@ export declare const WebhookEventSchema: z.ZodDiscriminatedUnion<"event", [z.Zod
5664
5687
  assignee_id: number | null;
5665
5688
  };
5666
5689
  }[];
5667
- meta: {
5668
- sender: {
5669
- id: number;
5670
- name: string | null;
5671
- email: string | null;
5672
- phone_number: string | null;
5673
- thumbnail: string;
5674
- identifier: string | null;
5675
- additional_attributes: Record<string, unknown>;
5676
- custom_attributes: Record<string, unknown>;
5677
- blocked: boolean;
5678
- customer_stage: string;
5679
- customer_stage_explanation: string | null;
5680
- type?: string | undefined;
5681
- };
5682
- hmac_verified: boolean;
5683
- assignee: {
5684
- id: number;
5685
- name: string;
5686
- email: string;
5687
- } | null;
5688
- team?: unknown;
5689
- };
5690
5690
  labels: string[];
5691
5691
  snoozed_until: number | null;
5692
5692
  unread_count: number;