@linqapp/sdk 0.7.1 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +2 -2
  3. package/client.d.mts +6 -6
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +6 -6
  6. package/client.d.ts.map +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs.map +1 -1
  9. package/package.json +7 -1
  10. package/resources/attachments.d.mts +7 -5
  11. package/resources/attachments.d.mts.map +1 -1
  12. package/resources/attachments.d.ts +7 -5
  13. package/resources/attachments.d.ts.map +1 -1
  14. package/resources/attachments.js +7 -5
  15. package/resources/attachments.js.map +1 -1
  16. package/resources/attachments.mjs +7 -5
  17. package/resources/attachments.mjs.map +1 -1
  18. package/resources/chats/chats.d.mts +106 -24
  19. package/resources/chats/chats.d.mts.map +1 -1
  20. package/resources/chats/chats.d.ts +106 -24
  21. package/resources/chats/chats.d.ts.map +1 -1
  22. package/resources/chats/chats.js +48 -14
  23. package/resources/chats/chats.js.map +1 -1
  24. package/resources/chats/chats.mjs +48 -14
  25. package/resources/chats/chats.mjs.map +1 -1
  26. package/resources/chats/index.d.mts +1 -1
  27. package/resources/chats/index.d.mts.map +1 -1
  28. package/resources/chats/index.d.ts +1 -1
  29. package/resources/chats/index.d.ts.map +1 -1
  30. package/resources/chats/index.js.map +1 -1
  31. package/resources/chats/index.mjs.map +1 -1
  32. package/resources/chats/messages.d.mts +26 -0
  33. package/resources/chats/messages.d.mts.map +1 -1
  34. package/resources/chats/messages.d.ts +26 -0
  35. package/resources/chats/messages.d.ts.map +1 -1
  36. package/resources/chats/messages.js +26 -0
  37. package/resources/chats/messages.js.map +1 -1
  38. package/resources/chats/messages.mjs +26 -0
  39. package/resources/chats/messages.mjs.map +1 -1
  40. package/resources/index.d.mts +3 -3
  41. package/resources/index.d.mts.map +1 -1
  42. package/resources/index.d.ts +3 -3
  43. package/resources/index.d.ts.map +1 -1
  44. package/resources/index.js.map +1 -1
  45. package/resources/index.mjs.map +1 -1
  46. package/resources/messages.d.mts +2 -9
  47. package/resources/messages.d.mts.map +1 -1
  48. package/resources/messages.d.ts +2 -9
  49. package/resources/messages.d.ts.map +1 -1
  50. package/resources/messages.js +1 -3
  51. package/resources/messages.js.map +1 -1
  52. package/resources/messages.mjs +1 -3
  53. package/resources/messages.mjs.map +1 -1
  54. package/resources/phonenumbers.d.mts +1 -1
  55. package/resources/phonenumbers.d.mts.map +1 -1
  56. package/resources/phonenumbers.d.ts +1 -1
  57. package/resources/phonenumbers.d.ts.map +1 -1
  58. package/resources/shared.d.mts +22 -0
  59. package/resources/shared.d.mts.map +1 -1
  60. package/resources/shared.d.ts +22 -0
  61. package/resources/shared.d.ts.map +1 -1
  62. package/resources/webhook-events.d.mts +5 -1
  63. package/resources/webhook-events.d.mts.map +1 -1
  64. package/resources/webhook-events.d.ts +5 -1
  65. package/resources/webhook-events.d.ts.map +1 -1
  66. package/resources/webhooks.d.mts +296 -34
  67. package/resources/webhooks.d.mts.map +1 -1
  68. package/resources/webhooks.d.ts +296 -34
  69. package/resources/webhooks.d.ts.map +1 -1
  70. package/src/client.ts +4 -2
  71. package/src/resources/attachments.ts +7 -5
  72. package/src/resources/chats/chats.ts +113 -24
  73. package/src/resources/chats/index.ts +1 -0
  74. package/src/resources/chats/messages.ts +26 -0
  75. package/src/resources/index.ts +2 -1
  76. package/src/resources/messages.ts +1 -11
  77. package/src/resources/phonenumbers.ts +1 -1
  78. package/src/resources/shared.ts +26 -0
  79. package/src/resources/webhook-events.ts +5 -1
  80. package/src/resources/webhooks.ts +319 -32
  81. package/src/version.ts +1 -1
  82. package/version.d.mts +1 -1
  83. package/version.d.ts +1 -1
  84. package/version.js +1 -1
  85. package/version.mjs +1 -1
@@ -310,6 +310,28 @@ export interface SchemasTextPartResponse {
310
310
  * The text content
311
311
  */
312
312
  value: string;
313
+ /**
314
+ * Text decorations applied to character ranges in the value
315
+ */
316
+ text_decorations?: Array<SchemasTextPartResponse.TextDecoration> | null;
317
+ }
318
+ export declare namespace SchemasTextPartResponse {
319
+ interface TextDecoration {
320
+ /**
321
+ * Character range `[start, end)` in the `value` string where the decoration
322
+ * applies. `start` is inclusive, `end` is exclusive. _Characters are measured as
323
+ * UTF-16 code units. Most characters count as 1; some emoji count as 2._
324
+ */
325
+ range: Array<number>;
326
+ /**
327
+ * Animated text effect to apply. Mutually exclusive with `style`.
328
+ */
329
+ animation?: 'big' | 'small' | 'shake' | 'nod' | 'explode' | 'ripple' | 'bloom' | 'jitter';
330
+ /**
331
+ * Text style to apply. Mutually exclusive with `animation`.
332
+ */
333
+ style?: 'bold' | 'italic' | 'strikethrough' | 'underline';
334
+ }
313
335
  }
314
336
  /**
315
337
  * Complete webhook payload for message.sent events (2026-02-03 format)
@@ -350,7 +372,11 @@ export interface MessageSentV2026WebhookEvent {
350
372
  */
351
373
  event_id: string;
352
374
  /**
353
- * 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.
354
380
  */
355
381
  event_type: WebhookEventsAPI.WebhookEventType;
356
382
  /**
@@ -407,7 +433,11 @@ export interface MessageReceivedV2026WebhookEvent {
407
433
  */
408
434
  event_id: string;
409
435
  /**
410
- * 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.
411
441
  */
412
442
  event_type: WebhookEventsAPI.WebhookEventType;
413
443
  /**
@@ -464,7 +494,11 @@ export interface MessageReadV2026WebhookEvent {
464
494
  */
465
495
  event_id: string;
466
496
  /**
467
- * 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.
468
502
  */
469
503
  event_type: WebhookEventsAPI.WebhookEventType;
470
504
  /**
@@ -521,7 +555,11 @@ export interface MessageDeliveredV2026WebhookEvent {
521
555
  */
522
556
  event_id: string;
523
557
  /**
524
- * 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.
525
563
  */
526
564
  event_type: WebhookEventsAPI.WebhookEventType;
527
565
  /**
@@ -562,7 +600,11 @@ export interface MessageFailedV2026WebhookEvent {
562
600
  */
563
601
  event_id: string;
564
602
  /**
565
- * 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.
566
608
  */
567
609
  event_type: WebhookEventsAPI.WebhookEventType;
568
610
  /**
@@ -630,7 +672,11 @@ export interface ReactionAddedV2026WebhookEvent {
630
672
  */
631
673
  event_id: string;
632
674
  /**
633
- * 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.
634
680
  */
635
681
  event_type: WebhookEventsAPI.WebhookEventType;
636
682
  /**
@@ -669,7 +715,11 @@ export interface ReactionRemovedV2026WebhookEvent {
669
715
  */
670
716
  event_id: string;
671
717
  /**
672
- * 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.
673
723
  */
674
724
  event_type: WebhookEventsAPI.WebhookEventType;
675
725
  /**
@@ -708,7 +758,11 @@ export interface ParticipantAddedV2026WebhookEvent {
708
758
  */
709
759
  event_id: string;
710
760
  /**
711
- * 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.
712
766
  */
713
767
  event_type: WebhookEventsAPI.WebhookEventType;
714
768
  /**
@@ -771,7 +825,11 @@ export interface ParticipantRemovedV2026WebhookEvent {
771
825
  */
772
826
  event_id: string;
773
827
  /**
774
- * 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.
775
833
  */
776
834
  event_type: WebhookEventsAPI.WebhookEventType;
777
835
  /**
@@ -834,7 +892,11 @@ export interface ChatGroupNameUpdatedV2026WebhookEvent {
834
892
  */
835
893
  event_id: string;
836
894
  /**
837
- * 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.
838
900
  */
839
901
  event_type: WebhookEventsAPI.WebhookEventType;
840
902
  /**
@@ -900,7 +962,11 @@ export interface ChatGroupIconUpdatedV2026WebhookEvent {
900
962
  */
901
963
  event_id: string;
902
964
  /**
903
- * 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.
904
970
  */
905
971
  event_type: WebhookEventsAPI.WebhookEventType;
906
972
  /**
@@ -968,7 +1034,11 @@ export interface ChatGroupNameUpdateFailedV2026WebhookEvent {
968
1034
  */
969
1035
  event_id: string;
970
1036
  /**
971
- * 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.
972
1042
  */
973
1043
  event_type: WebhookEventsAPI.WebhookEventType;
974
1044
  /**
@@ -1030,7 +1100,11 @@ export interface ChatGroupIconUpdateFailedV2026WebhookEvent {
1030
1100
  */
1031
1101
  event_id: string;
1032
1102
  /**
1033
- * 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.
1034
1108
  */
1035
1109
  event_type: WebhookEventsAPI.WebhookEventType;
1036
1110
  /**
@@ -1091,7 +1165,11 @@ export interface ChatCreatedV2026WebhookEvent {
1091
1165
  */
1092
1166
  event_id: string;
1093
1167
  /**
1094
- * 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.
1095
1173
  */
1096
1174
  event_type: WebhookEventsAPI.WebhookEventType;
1097
1175
  /**
@@ -1168,7 +1246,11 @@ export interface ChatTypingIndicatorStartedV2026WebhookEvent {
1168
1246
  */
1169
1247
  event_id: string;
1170
1248
  /**
1171
- * 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.
1172
1254
  */
1173
1255
  event_type: WebhookEventsAPI.WebhookEventType;
1174
1256
  /**
@@ -1218,7 +1300,11 @@ export interface ChatTypingIndicatorStoppedV2026WebhookEvent {
1218
1300
  */
1219
1301
  event_id: string;
1220
1302
  /**
1221
- * 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.
1222
1308
  */
1223
1309
  event_type: WebhookEventsAPI.WebhookEventType;
1224
1310
  /**
@@ -1247,6 +1333,118 @@ export declare namespace ChatTypingIndicatorStoppedV2026WebhookEvent {
1247
1333
  chat_id: string;
1248
1334
  }
1249
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
+ }
1250
1448
  /**
1251
1449
  * Complete webhook payload for phone_number.status_updated events
1252
1450
  */
@@ -1331,7 +1529,11 @@ export interface MessageSentV2025WebhookEvent {
1331
1529
  */
1332
1530
  event_id: string;
1333
1531
  /**
1334
- * 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.
1335
1537
  */
1336
1538
  event_type: WebhookEventsAPI.WebhookEventType;
1337
1539
  /**
@@ -1431,7 +1633,11 @@ export interface MessageReceivedV2025WebhookEvent {
1431
1633
  */
1432
1634
  event_id: string;
1433
1635
  /**
1434
- * 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.
1435
1641
  */
1436
1642
  event_type: WebhookEventsAPI.WebhookEventType;
1437
1643
  /**
@@ -1531,7 +1737,11 @@ export interface MessageReadV2025WebhookEvent {
1531
1737
  */
1532
1738
  event_id: string;
1533
1739
  /**
1534
- * 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.
1535
1745
  */
1536
1746
  event_type: WebhookEventsAPI.WebhookEventType;
1537
1747
  /**
@@ -1639,7 +1849,11 @@ export interface MessageDeliveredV2025WebhookEvent {
1639
1849
  */
1640
1850
  event_id: string;
1641
1851
  /**
1642
- * 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.
1643
1857
  */
1644
1858
  event_type: WebhookEventsAPI.WebhookEventType;
1645
1859
  /**
@@ -1748,7 +1962,11 @@ export interface MessageFailedV2025WebhookEvent {
1748
1962
  */
1749
1963
  event_id: string;
1750
1964
  /**
1751
- * 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.
1752
1970
  */
1753
1971
  event_type: WebhookEventsAPI.WebhookEventType;
1754
1972
  /**
@@ -1816,7 +2034,11 @@ export interface ReactionAddedV2025WebhookEvent {
1816
2034
  */
1817
2035
  event_id: string;
1818
2036
  /**
1819
- * 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.
1820
2042
  */
1821
2043
  event_type: WebhookEventsAPI.WebhookEventType;
1822
2044
  /**
@@ -1855,7 +2077,11 @@ export interface ReactionRemovedV2025WebhookEvent {
1855
2077
  */
1856
2078
  event_id: string;
1857
2079
  /**
1858
- * 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.
1859
2085
  */
1860
2086
  event_type: WebhookEventsAPI.WebhookEventType;
1861
2087
  /**
@@ -1894,7 +2120,11 @@ export interface ParticipantAddedV2025WebhookEvent {
1894
2120
  */
1895
2121
  event_id: string;
1896
2122
  /**
1897
- * 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.
1898
2128
  */
1899
2129
  event_type: WebhookEventsAPI.WebhookEventType;
1900
2130
  /**
@@ -1957,7 +2187,11 @@ export interface ParticipantRemovedV2025WebhookEvent {
1957
2187
  */
1958
2188
  event_id: string;
1959
2189
  /**
1960
- * 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.
1961
2195
  */
1962
2196
  event_type: WebhookEventsAPI.WebhookEventType;
1963
2197
  /**
@@ -2020,7 +2254,11 @@ export interface ChatGroupNameUpdatedV2025WebhookEvent {
2020
2254
  */
2021
2255
  event_id: string;
2022
2256
  /**
2023
- * 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.
2024
2262
  */
2025
2263
  event_type: WebhookEventsAPI.WebhookEventType;
2026
2264
  /**
@@ -2086,7 +2324,11 @@ export interface ChatGroupIconUpdatedV2025WebhookEvent {
2086
2324
  */
2087
2325
  event_id: string;
2088
2326
  /**
2089
- * 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.
2090
2332
  */
2091
2333
  event_type: WebhookEventsAPI.WebhookEventType;
2092
2334
  /**
@@ -2154,7 +2396,11 @@ export interface ChatGroupNameUpdateFailedV2025WebhookEvent {
2154
2396
  */
2155
2397
  event_id: string;
2156
2398
  /**
2157
- * 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.
2158
2404
  */
2159
2405
  event_type: WebhookEventsAPI.WebhookEventType;
2160
2406
  /**
@@ -2216,7 +2462,11 @@ export interface ChatGroupIconUpdateFailedV2025WebhookEvent {
2216
2462
  */
2217
2463
  event_id: string;
2218
2464
  /**
2219
- * 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.
2220
2470
  */
2221
2471
  event_type: WebhookEventsAPI.WebhookEventType;
2222
2472
  /**
@@ -2277,7 +2527,11 @@ export interface ChatCreatedV2025WebhookEvent {
2277
2527
  */
2278
2528
  event_id: string;
2279
2529
  /**
2280
- * 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.
2281
2535
  */
2282
2536
  event_type: WebhookEventsAPI.WebhookEventType;
2283
2537
  /**
@@ -2354,7 +2608,11 @@ export interface ChatTypingIndicatorStartedV2025WebhookEvent {
2354
2608
  */
2355
2609
  event_id: string;
2356
2610
  /**
2357
- * 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.
2358
2616
  */
2359
2617
  event_type: WebhookEventsAPI.WebhookEventType;
2360
2618
  /**
@@ -2404,7 +2662,11 @@ export interface ChatTypingIndicatorStoppedV2025WebhookEvent {
2404
2662
  */
2405
2663
  event_id: string;
2406
2664
  /**
2407
- * 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.
2408
2670
  */
2409
2671
  event_type: WebhookEventsAPI.WebhookEventType;
2410
2672
  /**
@@ -2498,8 +2760,8 @@ export declare namespace PhoneNumberStatusUpdatedV2025WebhookEvent {
2498
2760
  /**
2499
2761
  * Complete webhook payload for message.sent events (2026-02-03 format)
2500
2762
  */
2501
- 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;
2502
2764
  export declare namespace Webhooks {
2503
- 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, };
2504
2766
  }
2505
2767
  //# sourceMappingURL=webhooks.d.ts.map