@linqapp/sdk 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/client.d.mts +6 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/attachments.d.mts +18 -9
  10. package/resources/attachments.d.mts.map +1 -1
  11. package/resources/attachments.d.ts +18 -9
  12. package/resources/attachments.d.ts.map +1 -1
  13. package/resources/attachments.js +16 -8
  14. package/resources/attachments.js.map +1 -1
  15. package/resources/attachments.mjs +16 -8
  16. package/resources/attachments.mjs.map +1 -1
  17. package/resources/chats/chats.d.mts +28 -11
  18. package/resources/chats/chats.d.mts.map +1 -1
  19. package/resources/chats/chats.d.ts +28 -11
  20. package/resources/chats/chats.d.ts.map +1 -1
  21. package/resources/chats/chats.js +5 -4
  22. package/resources/chats/chats.js.map +1 -1
  23. package/resources/chats/chats.mjs +5 -4
  24. package/resources/chats/chats.mjs.map +1 -1
  25. package/resources/chats/index.d.mts +1 -1
  26. package/resources/chats/index.d.mts.map +1 -1
  27. package/resources/chats/index.d.ts +1 -1
  28. package/resources/chats/index.d.ts.map +1 -1
  29. package/resources/chats/index.js.map +1 -1
  30. package/resources/chats/index.mjs.map +1 -1
  31. package/resources/index.d.mts +3 -3
  32. package/resources/index.d.mts.map +1 -1
  33. package/resources/index.d.ts +3 -3
  34. package/resources/index.d.ts.map +1 -1
  35. package/resources/index.js.map +1 -1
  36. package/resources/index.mjs.map +1 -1
  37. package/resources/messages.d.mts +2 -9
  38. package/resources/messages.d.mts.map +1 -1
  39. package/resources/messages.d.ts +2 -9
  40. package/resources/messages.d.ts.map +1 -1
  41. package/resources/messages.js +1 -3
  42. package/resources/messages.js.map +1 -1
  43. package/resources/messages.mjs +1 -3
  44. package/resources/messages.mjs.map +1 -1
  45. package/resources/phonenumbers.d.mts +1 -1
  46. package/resources/phonenumbers.d.mts.map +1 -1
  47. package/resources/phonenumbers.d.ts +1 -1
  48. package/resources/phonenumbers.d.ts.map +1 -1
  49. package/resources/webhook-events.d.mts +5 -1
  50. package/resources/webhook-events.d.mts.map +1 -1
  51. package/resources/webhook-events.d.ts +5 -1
  52. package/resources/webhook-events.d.ts.map +1 -1
  53. package/resources/webhooks.d.mts +274 -34
  54. package/resources/webhooks.d.mts.map +1 -1
  55. package/resources/webhooks.d.ts +274 -34
  56. package/resources/webhooks.d.ts.map +1 -1
  57. package/src/client.ts +4 -2
  58. package/src/resources/attachments.ts +18 -9
  59. package/src/resources/chats/chats.ts +32 -11
  60. package/src/resources/chats/index.ts +1 -0
  61. package/src/resources/index.ts +2 -1
  62. package/src/resources/messages.ts +1 -11
  63. package/src/resources/phonenumbers.ts +1 -1
  64. package/src/resources/webhook-events.ts +5 -1
  65. package/src/resources/webhooks.ts +293 -32
  66. package/src/version.ts +1 -1
  67. package/version.d.mts +1 -1
  68. package/version.d.ts +1 -1
  69. package/version.js +1 -1
  70. package/version.mjs +1 -1
@@ -372,7 +372,11 @@ export interface MessageSentV2026WebhookEvent {
372
372
  */
373
373
  event_id: string;
374
374
  /**
375
- * Valid webhook event types that can be subscribed to
375
+ * Valid webhook event types that can be subscribed to.
376
+ *
377
+ * **Note:** `message.edited` is only delivered to subscriptions using
378
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
379
+ * subscription will not produce any deliveries.
376
380
  */
377
381
  event_type: WebhookEventsAPI.WebhookEventType;
378
382
  /**
@@ -429,7 +433,11 @@ export interface MessageReceivedV2026WebhookEvent {
429
433
  */
430
434
  event_id: string;
431
435
  /**
432
- * Valid webhook event types that can be subscribed to
436
+ * Valid webhook event types that can be subscribed to.
437
+ *
438
+ * **Note:** `message.edited` is only delivered to subscriptions using
439
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
440
+ * subscription will not produce any deliveries.
433
441
  */
434
442
  event_type: WebhookEventsAPI.WebhookEventType;
435
443
  /**
@@ -486,7 +494,11 @@ export interface MessageReadV2026WebhookEvent {
486
494
  */
487
495
  event_id: string;
488
496
  /**
489
- * Valid webhook event types that can be subscribed to
497
+ * Valid webhook event types that can be subscribed to.
498
+ *
499
+ * **Note:** `message.edited` is only delivered to subscriptions using
500
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
501
+ * subscription will not produce any deliveries.
490
502
  */
491
503
  event_type: WebhookEventsAPI.WebhookEventType;
492
504
  /**
@@ -543,7 +555,11 @@ export interface MessageDeliveredV2026WebhookEvent {
543
555
  */
544
556
  event_id: string;
545
557
  /**
546
- * Valid webhook event types that can be subscribed to
558
+ * Valid webhook event types that can be subscribed to.
559
+ *
560
+ * **Note:** `message.edited` is only delivered to subscriptions using
561
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
562
+ * subscription will not produce any deliveries.
547
563
  */
548
564
  event_type: WebhookEventsAPI.WebhookEventType;
549
565
  /**
@@ -584,7 +600,11 @@ export interface MessageFailedV2026WebhookEvent {
584
600
  */
585
601
  event_id: string;
586
602
  /**
587
- * Valid webhook event types that can be subscribed to
603
+ * Valid webhook event types that can be subscribed to.
604
+ *
605
+ * **Note:** `message.edited` is only delivered to subscriptions using
606
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
607
+ * subscription will not produce any deliveries.
588
608
  */
589
609
  event_type: WebhookEventsAPI.WebhookEventType;
590
610
  /**
@@ -652,7 +672,11 @@ export interface ReactionAddedV2026WebhookEvent {
652
672
  */
653
673
  event_id: string;
654
674
  /**
655
- * Valid webhook event types that can be subscribed to
675
+ * Valid webhook event types that can be subscribed to.
676
+ *
677
+ * **Note:** `message.edited` is only delivered to subscriptions using
678
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
679
+ * subscription will not produce any deliveries.
656
680
  */
657
681
  event_type: WebhookEventsAPI.WebhookEventType;
658
682
  /**
@@ -691,7 +715,11 @@ export interface ReactionRemovedV2026WebhookEvent {
691
715
  */
692
716
  event_id: string;
693
717
  /**
694
- * Valid webhook event types that can be subscribed to
718
+ * Valid webhook event types that can be subscribed to.
719
+ *
720
+ * **Note:** `message.edited` is only delivered to subscriptions using
721
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
722
+ * subscription will not produce any deliveries.
695
723
  */
696
724
  event_type: WebhookEventsAPI.WebhookEventType;
697
725
  /**
@@ -730,7 +758,11 @@ export interface ParticipantAddedV2026WebhookEvent {
730
758
  */
731
759
  event_id: string;
732
760
  /**
733
- * Valid webhook event types that can be subscribed to
761
+ * Valid webhook event types that can be subscribed to.
762
+ *
763
+ * **Note:** `message.edited` is only delivered to subscriptions using
764
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
765
+ * subscription will not produce any deliveries.
734
766
  */
735
767
  event_type: WebhookEventsAPI.WebhookEventType;
736
768
  /**
@@ -793,7 +825,11 @@ export interface ParticipantRemovedV2026WebhookEvent {
793
825
  */
794
826
  event_id: string;
795
827
  /**
796
- * Valid webhook event types that can be subscribed to
828
+ * Valid webhook event types that can be subscribed to.
829
+ *
830
+ * **Note:** `message.edited` is only delivered to subscriptions using
831
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
832
+ * subscription will not produce any deliveries.
797
833
  */
798
834
  event_type: WebhookEventsAPI.WebhookEventType;
799
835
  /**
@@ -856,7 +892,11 @@ export interface ChatGroupNameUpdatedV2026WebhookEvent {
856
892
  */
857
893
  event_id: string;
858
894
  /**
859
- * Valid webhook event types that can be subscribed to
895
+ * Valid webhook event types that can be subscribed to.
896
+ *
897
+ * **Note:** `message.edited` is only delivered to subscriptions using
898
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
899
+ * subscription will not produce any deliveries.
860
900
  */
861
901
  event_type: WebhookEventsAPI.WebhookEventType;
862
902
  /**
@@ -922,7 +962,11 @@ export interface ChatGroupIconUpdatedV2026WebhookEvent {
922
962
  */
923
963
  event_id: string;
924
964
  /**
925
- * Valid webhook event types that can be subscribed to
965
+ * Valid webhook event types that can be subscribed to.
966
+ *
967
+ * **Note:** `message.edited` is only delivered to subscriptions using
968
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
969
+ * subscription will not produce any deliveries.
926
970
  */
927
971
  event_type: WebhookEventsAPI.WebhookEventType;
928
972
  /**
@@ -990,7 +1034,11 @@ export interface ChatGroupNameUpdateFailedV2026WebhookEvent {
990
1034
  */
991
1035
  event_id: string;
992
1036
  /**
993
- * Valid webhook event types that can be subscribed to
1037
+ * Valid webhook event types that can be subscribed to.
1038
+ *
1039
+ * **Note:** `message.edited` is only delivered to subscriptions using
1040
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
1041
+ * subscription will not produce any deliveries.
994
1042
  */
995
1043
  event_type: WebhookEventsAPI.WebhookEventType;
996
1044
  /**
@@ -1052,7 +1100,11 @@ export interface ChatGroupIconUpdateFailedV2026WebhookEvent {
1052
1100
  */
1053
1101
  event_id: string;
1054
1102
  /**
1055
- * Valid webhook event types that can be subscribed to
1103
+ * Valid webhook event types that can be subscribed to.
1104
+ *
1105
+ * **Note:** `message.edited` is only delivered to subscriptions using
1106
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
1107
+ * subscription will not produce any deliveries.
1056
1108
  */
1057
1109
  event_type: WebhookEventsAPI.WebhookEventType;
1058
1110
  /**
@@ -1113,7 +1165,11 @@ export interface ChatCreatedV2026WebhookEvent {
1113
1165
  */
1114
1166
  event_id: string;
1115
1167
  /**
1116
- * Valid webhook event types that can be subscribed to
1168
+ * Valid webhook event types that can be subscribed to.
1169
+ *
1170
+ * **Note:** `message.edited` is only delivered to subscriptions using
1171
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
1172
+ * subscription will not produce any deliveries.
1117
1173
  */
1118
1174
  event_type: WebhookEventsAPI.WebhookEventType;
1119
1175
  /**
@@ -1190,7 +1246,11 @@ export interface ChatTypingIndicatorStartedV2026WebhookEvent {
1190
1246
  */
1191
1247
  event_id: string;
1192
1248
  /**
1193
- * Valid webhook event types that can be subscribed to
1249
+ * Valid webhook event types that can be subscribed to.
1250
+ *
1251
+ * **Note:** `message.edited` is only delivered to subscriptions using
1252
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
1253
+ * subscription will not produce any deliveries.
1194
1254
  */
1195
1255
  event_type: WebhookEventsAPI.WebhookEventType;
1196
1256
  /**
@@ -1240,7 +1300,11 @@ export interface ChatTypingIndicatorStoppedV2026WebhookEvent {
1240
1300
  */
1241
1301
  event_id: string;
1242
1302
  /**
1243
- * Valid webhook event types that can be subscribed to
1303
+ * Valid webhook event types that can be subscribed to.
1304
+ *
1305
+ * **Note:** `message.edited` is only delivered to subscriptions using
1306
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
1307
+ * subscription will not produce any deliveries.
1244
1308
  */
1245
1309
  event_type: WebhookEventsAPI.WebhookEventType;
1246
1310
  /**
@@ -1269,6 +1333,118 @@ export declare namespace ChatTypingIndicatorStoppedV2026WebhookEvent {
1269
1333
  chat_id: string;
1270
1334
  }
1271
1335
  }
1336
+ /**
1337
+ * Complete webhook payload for message.edited events (2026-02-03 format only)
1338
+ */
1339
+ export interface MessageEditedV2026WebhookEvent {
1340
+ /**
1341
+ * API version for the webhook payload format
1342
+ */
1343
+ api_version: string;
1344
+ /**
1345
+ * When the event was created
1346
+ */
1347
+ created_at: string;
1348
+ /**
1349
+ * Payload for `message.edited` events (2026-02-03 format).
1350
+ *
1351
+ * Describes which part of a message was edited and when. Only text parts can be
1352
+ * edited. Only available for subscriptions using `webhook_version: "2026-02-03"`.
1353
+ */
1354
+ data: MessageEditedV2026WebhookEvent.Data;
1355
+ /**
1356
+ * Unique identifier for this event (for deduplication)
1357
+ */
1358
+ event_id: string;
1359
+ /**
1360
+ * Valid webhook event types that can be subscribed to.
1361
+ *
1362
+ * **Note:** `message.edited` is only delivered to subscriptions using
1363
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
1364
+ * subscription will not produce any deliveries.
1365
+ */
1366
+ event_type: WebhookEventsAPI.WebhookEventType;
1367
+ /**
1368
+ * Partner identifier. Present on all webhooks for cross-referencing.
1369
+ */
1370
+ partner_id: string;
1371
+ /**
1372
+ * Trace ID for debugging and correlation across systems.
1373
+ */
1374
+ trace_id: string;
1375
+ /**
1376
+ * Date-based webhook payload version. Determined by the `?version=` query
1377
+ * parameter in your webhook subscription URL. If no version parameter is
1378
+ * specified, defaults based on subscription creation date.
1379
+ */
1380
+ webhook_version: string;
1381
+ }
1382
+ export declare namespace MessageEditedV2026WebhookEvent {
1383
+ /**
1384
+ * Payload for `message.edited` events (2026-02-03 format).
1385
+ *
1386
+ * Describes which part of a message was edited and when. Only text parts can be
1387
+ * edited. Only available for subscriptions using `webhook_version: "2026-02-03"`.
1388
+ */
1389
+ interface Data {
1390
+ /**
1391
+ * Message identifier
1392
+ */
1393
+ id: string;
1394
+ /**
1395
+ * Chat context
1396
+ */
1397
+ chat: Data.Chat;
1398
+ /**
1399
+ * "outbound" if you sent the original message, "inbound" if you received it
1400
+ */
1401
+ direction: 'outbound' | 'inbound';
1402
+ /**
1403
+ * When the edit occurred
1404
+ */
1405
+ edited_at: string;
1406
+ /**
1407
+ * The edited part
1408
+ */
1409
+ part: Data.Part;
1410
+ /**
1411
+ * The handle that sent (and edited) this message
1412
+ */
1413
+ sender_handle: Shared.ChatHandle;
1414
+ }
1415
+ namespace Data {
1416
+ /**
1417
+ * Chat context
1418
+ */
1419
+ interface Chat {
1420
+ /**
1421
+ * Chat identifier
1422
+ */
1423
+ id: string;
1424
+ /**
1425
+ * Whether this is a group chat
1426
+ */
1427
+ is_group: boolean;
1428
+ /**
1429
+ * The handle that owns this chat (your phone number)
1430
+ */
1431
+ owner_handle: Shared.ChatHandle;
1432
+ }
1433
+ /**
1434
+ * The edited part
1435
+ */
1436
+ interface Part {
1437
+ /**
1438
+ * Zero-based index of the edited part within the message
1439
+ */
1440
+ index: number;
1441
+ /**
1442
+ * New text content of the part
1443
+ */
1444
+ text: string;
1445
+ }
1446
+ }
1447
+ }
1272
1448
  /**
1273
1449
  * Complete webhook payload for phone_number.status_updated events
1274
1450
  */
@@ -1353,7 +1529,11 @@ export interface MessageSentV2025WebhookEvent {
1353
1529
  */
1354
1530
  event_id: string;
1355
1531
  /**
1356
- * Valid webhook event types that can be subscribed to
1532
+ * Valid webhook event types that can be subscribed to.
1533
+ *
1534
+ * **Note:** `message.edited` is only delivered to subscriptions using
1535
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
1536
+ * subscription will not produce any deliveries.
1357
1537
  */
1358
1538
  event_type: WebhookEventsAPI.WebhookEventType;
1359
1539
  /**
@@ -1453,7 +1633,11 @@ export interface MessageReceivedV2025WebhookEvent {
1453
1633
  */
1454
1634
  event_id: string;
1455
1635
  /**
1456
- * Valid webhook event types that can be subscribed to
1636
+ * Valid webhook event types that can be subscribed to.
1637
+ *
1638
+ * **Note:** `message.edited` is only delivered to subscriptions using
1639
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
1640
+ * subscription will not produce any deliveries.
1457
1641
  */
1458
1642
  event_type: WebhookEventsAPI.WebhookEventType;
1459
1643
  /**
@@ -1553,7 +1737,11 @@ export interface MessageReadV2025WebhookEvent {
1553
1737
  */
1554
1738
  event_id: string;
1555
1739
  /**
1556
- * Valid webhook event types that can be subscribed to
1740
+ * Valid webhook event types that can be subscribed to.
1741
+ *
1742
+ * **Note:** `message.edited` is only delivered to subscriptions using
1743
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
1744
+ * subscription will not produce any deliveries.
1557
1745
  */
1558
1746
  event_type: WebhookEventsAPI.WebhookEventType;
1559
1747
  /**
@@ -1661,7 +1849,11 @@ export interface MessageDeliveredV2025WebhookEvent {
1661
1849
  */
1662
1850
  event_id: string;
1663
1851
  /**
1664
- * Valid webhook event types that can be subscribed to
1852
+ * Valid webhook event types that can be subscribed to.
1853
+ *
1854
+ * **Note:** `message.edited` is only delivered to subscriptions using
1855
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
1856
+ * subscription will not produce any deliveries.
1665
1857
  */
1666
1858
  event_type: WebhookEventsAPI.WebhookEventType;
1667
1859
  /**
@@ -1770,7 +1962,11 @@ export interface MessageFailedV2025WebhookEvent {
1770
1962
  */
1771
1963
  event_id: string;
1772
1964
  /**
1773
- * Valid webhook event types that can be subscribed to
1965
+ * Valid webhook event types that can be subscribed to.
1966
+ *
1967
+ * **Note:** `message.edited` is only delivered to subscriptions using
1968
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
1969
+ * subscription will not produce any deliveries.
1774
1970
  */
1775
1971
  event_type: WebhookEventsAPI.WebhookEventType;
1776
1972
  /**
@@ -1838,7 +2034,11 @@ export interface ReactionAddedV2025WebhookEvent {
1838
2034
  */
1839
2035
  event_id: string;
1840
2036
  /**
1841
- * Valid webhook event types that can be subscribed to
2037
+ * Valid webhook event types that can be subscribed to.
2038
+ *
2039
+ * **Note:** `message.edited` is only delivered to subscriptions using
2040
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
2041
+ * subscription will not produce any deliveries.
1842
2042
  */
1843
2043
  event_type: WebhookEventsAPI.WebhookEventType;
1844
2044
  /**
@@ -1877,7 +2077,11 @@ export interface ReactionRemovedV2025WebhookEvent {
1877
2077
  */
1878
2078
  event_id: string;
1879
2079
  /**
1880
- * Valid webhook event types that can be subscribed to
2080
+ * Valid webhook event types that can be subscribed to.
2081
+ *
2082
+ * **Note:** `message.edited` is only delivered to subscriptions using
2083
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
2084
+ * subscription will not produce any deliveries.
1881
2085
  */
1882
2086
  event_type: WebhookEventsAPI.WebhookEventType;
1883
2087
  /**
@@ -1916,7 +2120,11 @@ export interface ParticipantAddedV2025WebhookEvent {
1916
2120
  */
1917
2121
  event_id: string;
1918
2122
  /**
1919
- * Valid webhook event types that can be subscribed to
2123
+ * Valid webhook event types that can be subscribed to.
2124
+ *
2125
+ * **Note:** `message.edited` is only delivered to subscriptions using
2126
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
2127
+ * subscription will not produce any deliveries.
1920
2128
  */
1921
2129
  event_type: WebhookEventsAPI.WebhookEventType;
1922
2130
  /**
@@ -1979,7 +2187,11 @@ export interface ParticipantRemovedV2025WebhookEvent {
1979
2187
  */
1980
2188
  event_id: string;
1981
2189
  /**
1982
- * Valid webhook event types that can be subscribed to
2190
+ * Valid webhook event types that can be subscribed to.
2191
+ *
2192
+ * **Note:** `message.edited` is only delivered to subscriptions using
2193
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
2194
+ * subscription will not produce any deliveries.
1983
2195
  */
1984
2196
  event_type: WebhookEventsAPI.WebhookEventType;
1985
2197
  /**
@@ -2042,7 +2254,11 @@ export interface ChatGroupNameUpdatedV2025WebhookEvent {
2042
2254
  */
2043
2255
  event_id: string;
2044
2256
  /**
2045
- * Valid webhook event types that can be subscribed to
2257
+ * Valid webhook event types that can be subscribed to.
2258
+ *
2259
+ * **Note:** `message.edited` is only delivered to subscriptions using
2260
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
2261
+ * subscription will not produce any deliveries.
2046
2262
  */
2047
2263
  event_type: WebhookEventsAPI.WebhookEventType;
2048
2264
  /**
@@ -2108,7 +2324,11 @@ export interface ChatGroupIconUpdatedV2025WebhookEvent {
2108
2324
  */
2109
2325
  event_id: string;
2110
2326
  /**
2111
- * Valid webhook event types that can be subscribed to
2327
+ * Valid webhook event types that can be subscribed to.
2328
+ *
2329
+ * **Note:** `message.edited` is only delivered to subscriptions using
2330
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
2331
+ * subscription will not produce any deliveries.
2112
2332
  */
2113
2333
  event_type: WebhookEventsAPI.WebhookEventType;
2114
2334
  /**
@@ -2176,7 +2396,11 @@ export interface ChatGroupNameUpdateFailedV2025WebhookEvent {
2176
2396
  */
2177
2397
  event_id: string;
2178
2398
  /**
2179
- * Valid webhook event types that can be subscribed to
2399
+ * Valid webhook event types that can be subscribed to.
2400
+ *
2401
+ * **Note:** `message.edited` is only delivered to subscriptions using
2402
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
2403
+ * subscription will not produce any deliveries.
2180
2404
  */
2181
2405
  event_type: WebhookEventsAPI.WebhookEventType;
2182
2406
  /**
@@ -2238,7 +2462,11 @@ export interface ChatGroupIconUpdateFailedV2025WebhookEvent {
2238
2462
  */
2239
2463
  event_id: string;
2240
2464
  /**
2241
- * Valid webhook event types that can be subscribed to
2465
+ * Valid webhook event types that can be subscribed to.
2466
+ *
2467
+ * **Note:** `message.edited` is only delivered to subscriptions using
2468
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
2469
+ * subscription will not produce any deliveries.
2242
2470
  */
2243
2471
  event_type: WebhookEventsAPI.WebhookEventType;
2244
2472
  /**
@@ -2299,7 +2527,11 @@ export interface ChatCreatedV2025WebhookEvent {
2299
2527
  */
2300
2528
  event_id: string;
2301
2529
  /**
2302
- * Valid webhook event types that can be subscribed to
2530
+ * Valid webhook event types that can be subscribed to.
2531
+ *
2532
+ * **Note:** `message.edited` is only delivered to subscriptions using
2533
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
2534
+ * subscription will not produce any deliveries.
2303
2535
  */
2304
2536
  event_type: WebhookEventsAPI.WebhookEventType;
2305
2537
  /**
@@ -2376,7 +2608,11 @@ export interface ChatTypingIndicatorStartedV2025WebhookEvent {
2376
2608
  */
2377
2609
  event_id: string;
2378
2610
  /**
2379
- * Valid webhook event types that can be subscribed to
2611
+ * Valid webhook event types that can be subscribed to.
2612
+ *
2613
+ * **Note:** `message.edited` is only delivered to subscriptions using
2614
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
2615
+ * subscription will not produce any deliveries.
2380
2616
  */
2381
2617
  event_type: WebhookEventsAPI.WebhookEventType;
2382
2618
  /**
@@ -2426,7 +2662,11 @@ export interface ChatTypingIndicatorStoppedV2025WebhookEvent {
2426
2662
  */
2427
2663
  event_id: string;
2428
2664
  /**
2429
- * Valid webhook event types that can be subscribed to
2665
+ * Valid webhook event types that can be subscribed to.
2666
+ *
2667
+ * **Note:** `message.edited` is only delivered to subscriptions using
2668
+ * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
2669
+ * subscription will not produce any deliveries.
2430
2670
  */
2431
2671
  event_type: WebhookEventsAPI.WebhookEventType;
2432
2672
  /**
@@ -2520,8 +2760,8 @@ export declare namespace PhoneNumberStatusUpdatedV2025WebhookEvent {
2520
2760
  /**
2521
2761
  * Complete webhook payload for message.sent events (2026-02-03 format)
2522
2762
  */
2523
- export type EventsWebhookEvent = MessageSentV2026WebhookEvent | MessageReceivedV2026WebhookEvent | MessageReadV2026WebhookEvent | MessageDeliveredV2026WebhookEvent | MessageFailedV2026WebhookEvent | ReactionAddedV2026WebhookEvent | ReactionRemovedV2026WebhookEvent | ParticipantAddedV2026WebhookEvent | ParticipantRemovedV2026WebhookEvent | ChatGroupNameUpdatedV2026WebhookEvent | ChatGroupIconUpdatedV2026WebhookEvent | ChatGroupNameUpdateFailedV2026WebhookEvent | ChatGroupIconUpdateFailedV2026WebhookEvent | ChatCreatedV2026WebhookEvent | ChatTypingIndicatorStartedV2026WebhookEvent | ChatTypingIndicatorStoppedV2026WebhookEvent | PhoneNumberStatusUpdatedV2026WebhookEvent | MessageSentV2025WebhookEvent | MessageReceivedV2025WebhookEvent | MessageReadV2025WebhookEvent | MessageDeliveredV2025WebhookEvent | MessageFailedV2025WebhookEvent | ReactionAddedV2025WebhookEvent | ReactionRemovedV2025WebhookEvent | ParticipantAddedV2025WebhookEvent | ParticipantRemovedV2025WebhookEvent | ChatGroupNameUpdatedV2025WebhookEvent | ChatGroupIconUpdatedV2025WebhookEvent | ChatGroupNameUpdateFailedV2025WebhookEvent | ChatGroupIconUpdateFailedV2025WebhookEvent | ChatCreatedV2025WebhookEvent | ChatTypingIndicatorStartedV2025WebhookEvent | ChatTypingIndicatorStoppedV2025WebhookEvent | PhoneNumberStatusUpdatedV2025WebhookEvent;
2763
+ export type EventsWebhookEvent = MessageSentV2026WebhookEvent | MessageReceivedV2026WebhookEvent | MessageReadV2026WebhookEvent | MessageDeliveredV2026WebhookEvent | MessageFailedV2026WebhookEvent | ReactionAddedV2026WebhookEvent | ReactionRemovedV2026WebhookEvent | ParticipantAddedV2026WebhookEvent | ParticipantRemovedV2026WebhookEvent | ChatGroupNameUpdatedV2026WebhookEvent | ChatGroupIconUpdatedV2026WebhookEvent | ChatGroupNameUpdateFailedV2026WebhookEvent | ChatGroupIconUpdateFailedV2026WebhookEvent | ChatCreatedV2026WebhookEvent | ChatTypingIndicatorStartedV2026WebhookEvent | ChatTypingIndicatorStoppedV2026WebhookEvent | MessageEditedV2026WebhookEvent | PhoneNumberStatusUpdatedV2026WebhookEvent | MessageSentV2025WebhookEvent | MessageReceivedV2025WebhookEvent | MessageReadV2025WebhookEvent | MessageDeliveredV2025WebhookEvent | MessageFailedV2025WebhookEvent | ReactionAddedV2025WebhookEvent | ReactionRemovedV2025WebhookEvent | ParticipantAddedV2025WebhookEvent | ParticipantRemovedV2025WebhookEvent | ChatGroupNameUpdatedV2025WebhookEvent | ChatGroupIconUpdatedV2025WebhookEvent | ChatGroupNameUpdateFailedV2025WebhookEvent | ChatGroupIconUpdateFailedV2025WebhookEvent | ChatCreatedV2025WebhookEvent | ChatTypingIndicatorStartedV2025WebhookEvent | ChatTypingIndicatorStoppedV2025WebhookEvent | PhoneNumberStatusUpdatedV2025WebhookEvent;
2524
2764
  export declare namespace Webhooks {
2525
- export { type MessageEventV2 as MessageEventV2, type MessagePayload as MessagePayload, type ReactionEventBase as ReactionEventBase, type SchemasMediaPartResponse as SchemasMediaPartResponse, type SchemasMessageEffect as SchemasMessageEffect, type SchemasTextPartResponse as SchemasTextPartResponse, type MessageSentV2026WebhookEvent as MessageSentV2026WebhookEvent, type MessageReceivedV2026WebhookEvent as MessageReceivedV2026WebhookEvent, type MessageReadV2026WebhookEvent as MessageReadV2026WebhookEvent, type MessageDeliveredV2026WebhookEvent as MessageDeliveredV2026WebhookEvent, type MessageFailedV2026WebhookEvent as MessageFailedV2026WebhookEvent, type ReactionAddedV2026WebhookEvent as ReactionAddedV2026WebhookEvent, type ReactionRemovedV2026WebhookEvent as ReactionRemovedV2026WebhookEvent, type ParticipantAddedV2026WebhookEvent as ParticipantAddedV2026WebhookEvent, type ParticipantRemovedV2026WebhookEvent as ParticipantRemovedV2026WebhookEvent, type ChatGroupNameUpdatedV2026WebhookEvent as ChatGroupNameUpdatedV2026WebhookEvent, type ChatGroupIconUpdatedV2026WebhookEvent as ChatGroupIconUpdatedV2026WebhookEvent, type ChatGroupNameUpdateFailedV2026WebhookEvent as ChatGroupNameUpdateFailedV2026WebhookEvent, type ChatGroupIconUpdateFailedV2026WebhookEvent as ChatGroupIconUpdateFailedV2026WebhookEvent, type ChatCreatedV2026WebhookEvent as ChatCreatedV2026WebhookEvent, type ChatTypingIndicatorStartedV2026WebhookEvent as ChatTypingIndicatorStartedV2026WebhookEvent, type ChatTypingIndicatorStoppedV2026WebhookEvent as ChatTypingIndicatorStoppedV2026WebhookEvent, type PhoneNumberStatusUpdatedV2026WebhookEvent as PhoneNumberStatusUpdatedV2026WebhookEvent, type MessageSentV2025WebhookEvent as MessageSentV2025WebhookEvent, type MessageReceivedV2025WebhookEvent as MessageReceivedV2025WebhookEvent, type MessageReadV2025WebhookEvent as MessageReadV2025WebhookEvent, type MessageDeliveredV2025WebhookEvent as MessageDeliveredV2025WebhookEvent, type MessageFailedV2025WebhookEvent as MessageFailedV2025WebhookEvent, type ReactionAddedV2025WebhookEvent as ReactionAddedV2025WebhookEvent, type ReactionRemovedV2025WebhookEvent as ReactionRemovedV2025WebhookEvent, type ParticipantAddedV2025WebhookEvent as ParticipantAddedV2025WebhookEvent, type ParticipantRemovedV2025WebhookEvent as ParticipantRemovedV2025WebhookEvent, type ChatGroupNameUpdatedV2025WebhookEvent as ChatGroupNameUpdatedV2025WebhookEvent, type ChatGroupIconUpdatedV2025WebhookEvent as ChatGroupIconUpdatedV2025WebhookEvent, type ChatGroupNameUpdateFailedV2025WebhookEvent as ChatGroupNameUpdateFailedV2025WebhookEvent, type ChatGroupIconUpdateFailedV2025WebhookEvent as ChatGroupIconUpdateFailedV2025WebhookEvent, type ChatCreatedV2025WebhookEvent as ChatCreatedV2025WebhookEvent, type ChatTypingIndicatorStartedV2025WebhookEvent as ChatTypingIndicatorStartedV2025WebhookEvent, type ChatTypingIndicatorStoppedV2025WebhookEvent as ChatTypingIndicatorStoppedV2025WebhookEvent, type PhoneNumberStatusUpdatedV2025WebhookEvent as PhoneNumberStatusUpdatedV2025WebhookEvent, type EventsWebhookEvent as EventsWebhookEvent, };
2765
+ export { type MessageEventV2 as MessageEventV2, type MessagePayload as MessagePayload, type ReactionEventBase as ReactionEventBase, type SchemasMediaPartResponse as SchemasMediaPartResponse, type SchemasMessageEffect as SchemasMessageEffect, type SchemasTextPartResponse as SchemasTextPartResponse, type MessageSentV2026WebhookEvent as MessageSentV2026WebhookEvent, type MessageReceivedV2026WebhookEvent as MessageReceivedV2026WebhookEvent, type MessageReadV2026WebhookEvent as MessageReadV2026WebhookEvent, type MessageDeliveredV2026WebhookEvent as MessageDeliveredV2026WebhookEvent, type MessageFailedV2026WebhookEvent as MessageFailedV2026WebhookEvent, type ReactionAddedV2026WebhookEvent as ReactionAddedV2026WebhookEvent, type ReactionRemovedV2026WebhookEvent as ReactionRemovedV2026WebhookEvent, type ParticipantAddedV2026WebhookEvent as ParticipantAddedV2026WebhookEvent, type ParticipantRemovedV2026WebhookEvent as ParticipantRemovedV2026WebhookEvent, type ChatGroupNameUpdatedV2026WebhookEvent as ChatGroupNameUpdatedV2026WebhookEvent, type ChatGroupIconUpdatedV2026WebhookEvent as ChatGroupIconUpdatedV2026WebhookEvent, type ChatGroupNameUpdateFailedV2026WebhookEvent as ChatGroupNameUpdateFailedV2026WebhookEvent, type ChatGroupIconUpdateFailedV2026WebhookEvent as ChatGroupIconUpdateFailedV2026WebhookEvent, type ChatCreatedV2026WebhookEvent as ChatCreatedV2026WebhookEvent, type ChatTypingIndicatorStartedV2026WebhookEvent as ChatTypingIndicatorStartedV2026WebhookEvent, type ChatTypingIndicatorStoppedV2026WebhookEvent as ChatTypingIndicatorStoppedV2026WebhookEvent, type MessageEditedV2026WebhookEvent as MessageEditedV2026WebhookEvent, type PhoneNumberStatusUpdatedV2026WebhookEvent as PhoneNumberStatusUpdatedV2026WebhookEvent, type MessageSentV2025WebhookEvent as MessageSentV2025WebhookEvent, type MessageReceivedV2025WebhookEvent as MessageReceivedV2025WebhookEvent, type MessageReadV2025WebhookEvent as MessageReadV2025WebhookEvent, type MessageDeliveredV2025WebhookEvent as MessageDeliveredV2025WebhookEvent, type MessageFailedV2025WebhookEvent as MessageFailedV2025WebhookEvent, type ReactionAddedV2025WebhookEvent as ReactionAddedV2025WebhookEvent, type ReactionRemovedV2025WebhookEvent as ReactionRemovedV2025WebhookEvent, type ParticipantAddedV2025WebhookEvent as ParticipantAddedV2025WebhookEvent, type ParticipantRemovedV2025WebhookEvent as ParticipantRemovedV2025WebhookEvent, type ChatGroupNameUpdatedV2025WebhookEvent as ChatGroupNameUpdatedV2025WebhookEvent, type ChatGroupIconUpdatedV2025WebhookEvent as ChatGroupIconUpdatedV2025WebhookEvent, type ChatGroupNameUpdateFailedV2025WebhookEvent as ChatGroupNameUpdateFailedV2025WebhookEvent, type ChatGroupIconUpdateFailedV2025WebhookEvent as ChatGroupIconUpdateFailedV2025WebhookEvent, type ChatCreatedV2025WebhookEvent as ChatCreatedV2025WebhookEvent, type ChatTypingIndicatorStartedV2025WebhookEvent as ChatTypingIndicatorStartedV2025WebhookEvent, type ChatTypingIndicatorStoppedV2025WebhookEvent as ChatTypingIndicatorStoppedV2025WebhookEvent, type PhoneNumberStatusUpdatedV2025WebhookEvent as PhoneNumberStatusUpdatedV2025WebhookEvent, type EventsWebhookEvent as EventsWebhookEvent, };
2526
2766
  }
2527
2767
  //# sourceMappingURL=webhooks.d.ts.map