@linqapp/sdk 0.2.0 → 0.4.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 (107) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +31 -0
  3. package/client.d.mts +19 -6
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +19 -6
  6. package/client.d.ts.map +1 -1
  7. package/client.js +13 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +13 -0
  10. package/client.mjs.map +1 -1
  11. package/core/pagination.d.mts +69 -0
  12. package/core/pagination.d.mts.map +1 -0
  13. package/core/pagination.d.ts +69 -0
  14. package/core/pagination.d.ts.map +1 -0
  15. package/core/pagination.js +125 -0
  16. package/core/pagination.js.map +1 -0
  17. package/core/pagination.mjs +118 -0
  18. package/core/pagination.mjs.map +1 -0
  19. package/index.d.mts +1 -0
  20. package/index.d.mts.map +1 -1
  21. package/index.d.ts +1 -0
  22. package/index.d.ts.map +1 -1
  23. package/index.js +3 -1
  24. package/index.js.map +1 -1
  25. package/index.mjs +1 -0
  26. package/index.mjs.map +1 -1
  27. package/internal/tslib.js +18 -18
  28. package/package.json +11 -1
  29. package/pagination.d.mts +2 -0
  30. package/pagination.d.mts.map +1 -0
  31. package/pagination.d.ts +2 -0
  32. package/pagination.d.ts.map +1 -0
  33. package/pagination.js +6 -0
  34. package/pagination.js.map +1 -0
  35. package/pagination.mjs +2 -0
  36. package/pagination.mjs.map +1 -0
  37. package/resources/capability.d.mts +9 -9
  38. package/resources/capability.d.ts +9 -9
  39. package/resources/capability.js +4 -4
  40. package/resources/capability.mjs +4 -4
  41. package/resources/chats/chats.d.mts +67 -84
  42. package/resources/chats/chats.d.mts.map +1 -1
  43. package/resources/chats/chats.d.ts +67 -84
  44. package/resources/chats/chats.d.ts.map +1 -1
  45. package/resources/chats/chats.js +8 -4
  46. package/resources/chats/chats.js.map +1 -1
  47. package/resources/chats/chats.mjs +9 -5
  48. package/resources/chats/chats.mjs.map +1 -1
  49. package/resources/chats/index.d.mts +2 -2
  50. package/resources/chats/index.d.mts.map +1 -1
  51. package/resources/chats/index.d.ts +2 -2
  52. package/resources/chats/index.d.ts.map +1 -1
  53. package/resources/chats/index.js.map +1 -1
  54. package/resources/chats/index.mjs.map +1 -1
  55. package/resources/chats/messages.d.mts +12 -25
  56. package/resources/chats/messages.d.mts.map +1 -1
  57. package/resources/chats/messages.d.ts +12 -25
  58. package/resources/chats/messages.d.ts.map +1 -1
  59. package/resources/chats/messages.js +7 -3
  60. package/resources/chats/messages.js.map +1 -1
  61. package/resources/chats/messages.mjs +7 -3
  62. package/resources/chats/messages.mjs.map +1 -1
  63. package/resources/index.d.mts +4 -3
  64. package/resources/index.d.mts.map +1 -1
  65. package/resources/index.d.ts +4 -3
  66. package/resources/index.d.ts.map +1 -1
  67. package/resources/index.js +3 -1
  68. package/resources/index.js.map +1 -1
  69. package/resources/index.mjs +1 -0
  70. package/resources/index.mjs.map +1 -1
  71. package/resources/messages.d.mts +28 -72
  72. package/resources/messages.d.mts.map +1 -1
  73. package/resources/messages.d.ts +28 -72
  74. package/resources/messages.d.ts.map +1 -1
  75. package/resources/messages.js +25 -4
  76. package/resources/messages.js.map +1 -1
  77. package/resources/messages.mjs +25 -4
  78. package/resources/messages.mjs.map +1 -1
  79. package/resources/shared.d.mts +51 -0
  80. package/resources/shared.d.mts.map +1 -1
  81. package/resources/shared.d.ts +51 -0
  82. package/resources/shared.d.ts.map +1 -1
  83. package/resources/webhooks.d.mts +2506 -0
  84. package/resources/webhooks.d.mts.map +1 -0
  85. package/resources/webhooks.d.ts +2506 -0
  86. package/resources/webhooks.d.ts.map +1 -0
  87. package/resources/webhooks.js +12 -0
  88. package/resources/webhooks.js.map +1 -0
  89. package/resources/webhooks.mjs +8 -0
  90. package/resources/webhooks.mjs.map +1 -0
  91. package/src/client.ts +159 -20
  92. package/src/core/pagination.ts +212 -0
  93. package/src/index.ts +1 -0
  94. package/src/pagination.ts +2 -0
  95. package/src/resources/capability.ts +14 -14
  96. package/src/resources/chats/chats.ts +77 -100
  97. package/src/resources/chats/index.ts +4 -3
  98. package/src/resources/chats/messages.ts +21 -30
  99. package/src/resources/index.ts +55 -10
  100. package/src/resources/messages.ts +40 -90
  101. package/src/resources/shared.ts +62 -0
  102. package/src/resources/webhooks.ts +3089 -0
  103. package/src/version.ts +1 -1
  104. package/version.d.mts +1 -1
  105. package/version.d.ts +1 -1
  106. package/version.js +1 -1
  107. package/version.mjs +1 -1
@@ -0,0 +1,3089 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import * as WebhooksAPI from './webhooks';
5
+ import * as MessagesAPI from './messages';
6
+ import * as Shared from './shared';
7
+ import * as WebhookEventsAPI from './webhook-events';
8
+
9
+ export class Webhooks extends APIResource {
10
+ events(body: string): EventsWebhookEvent {
11
+ return JSON.parse(body) as EventsWebhookEvent;
12
+ }
13
+ }
14
+
15
+ /**
16
+ * Unified payload for message webhooks when using `webhook_version: "2026-02-03"`.
17
+ *
18
+ * This schema is used for message.sent, message.received, message.delivered, and
19
+ * message.read events when the subscription URL includes `?version=2026-02-03`.
20
+ *
21
+ * Key differences from V1 (2025-01-01):
22
+ *
23
+ * - `direction`: "inbound" or "outbound" instead of `is_from_me` boolean
24
+ * - `sender_handle`: Full handle object for the sender
25
+ * - `chat`: Nested object with `id`, `is_group`, and `owner_handle`
26
+ * - Message fields (`id`, `parts`, `effect`, etc.) are at the top level, not
27
+ * nested in `message`
28
+ *
29
+ * Timestamps indicate the message state:
30
+ *
31
+ * - `message.sent`: sent_at set, delivered_at=null, read_at=null
32
+ * - `message.received`: sent_at set, delivered_at=null, read_at=null
33
+ * - `message.delivered`: sent_at set, delivered_at set, read_at=null
34
+ * - `message.read`: sent_at set, delivered_at set, read_at set
35
+ */
36
+ export interface MessageEventV2 {
37
+ /**
38
+ * Message identifier
39
+ */
40
+ id: string;
41
+
42
+ /**
43
+ * Chat information
44
+ */
45
+ chat: MessageEventV2.Chat;
46
+
47
+ /**
48
+ * Message direction - "outbound" if sent by you, "inbound" if received
49
+ */
50
+ direction: 'inbound' | 'outbound';
51
+
52
+ /**
53
+ * Message parts (text and/or media)
54
+ */
55
+ parts: Array<SchemasTextPartResponse | SchemasMediaPartResponse>;
56
+
57
+ /**
58
+ * The handle that sent this message
59
+ */
60
+ sender_handle: MessagesAPI.ChatHandle;
61
+
62
+ /**
63
+ * Messaging service type
64
+ */
65
+ service: Shared.ServiceType;
66
+
67
+ /**
68
+ * When the message was delivered. Null if not yet delivered.
69
+ */
70
+ delivered_at?: string | null;
71
+
72
+ /**
73
+ * iMessage effect applied to a message (screen or bubble animation)
74
+ */
75
+ effect?: SchemasMessageEffect | null;
76
+
77
+ /**
78
+ * Idempotency key for deduplication of outbound messages.
79
+ */
80
+ idempotency_key?: string | null;
81
+
82
+ /**
83
+ * Preferred messaging service type. Includes "auto" for default fallback behavior.
84
+ */
85
+ preferred_service?: 'iMessage' | 'SMS' | 'RCS' | 'auto' | null;
86
+
87
+ /**
88
+ * When the message was read. Null if not yet read.
89
+ */
90
+ read_at?: string | null;
91
+
92
+ /**
93
+ * Reference to the message this is replying to (for threaded replies)
94
+ */
95
+ reply_to?: MessageEventV2.ReplyTo | null;
96
+
97
+ /**
98
+ * When the message was sent. Null if not yet sent.
99
+ */
100
+ sent_at?: string | null;
101
+ }
102
+
103
+ export namespace MessageEventV2 {
104
+ /**
105
+ * Chat information
106
+ */
107
+ export interface Chat {
108
+ /**
109
+ * Chat identifier
110
+ */
111
+ id: string;
112
+
113
+ /**
114
+ * Whether this is a group chat
115
+ */
116
+ is_group?: boolean | null;
117
+
118
+ /**
119
+ * Your phone number's handle. Always has is_me=true.
120
+ */
121
+ owner_handle?: MessagesAPI.ChatHandle | null;
122
+ }
123
+
124
+ /**
125
+ * Reference to the message this is replying to (for threaded replies)
126
+ */
127
+ export interface ReplyTo {
128
+ /**
129
+ * ID of the message being replied to
130
+ */
131
+ message_id?: string;
132
+
133
+ /**
134
+ * Index of the part being replied to
135
+ */
136
+ part_index?: number;
137
+ }
138
+ }
139
+
140
+ /**
141
+ * Message content nested within webhook events
142
+ */
143
+ export interface MessagePayload {
144
+ /**
145
+ * Message identifier
146
+ */
147
+ id?: string;
148
+
149
+ /**
150
+ * When the message record was created
151
+ */
152
+ created_at?: string;
153
+
154
+ /**
155
+ * When the message was delivered
156
+ */
157
+ delivered_at?: string | null;
158
+
159
+ /**
160
+ * iMessage effect applied to a message (screen or bubble animation)
161
+ */
162
+ effect?: SchemasMessageEffect;
163
+
164
+ /**
165
+ * Whether the message has been delivered
166
+ */
167
+ is_delivered?: boolean;
168
+
169
+ /**
170
+ * Whether the message has been read
171
+ */
172
+ is_read?: boolean;
173
+
174
+ /**
175
+ * Message content parts (text and/or media)
176
+ */
177
+ parts?: Array<SchemasTextPartResponse | SchemasMediaPartResponse>;
178
+
179
+ /**
180
+ * When the message was read
181
+ */
182
+ read_at?: string | null;
183
+
184
+ /**
185
+ * Reference to the message this is replying to
186
+ */
187
+ reply_to?: MessagePayload.ReplyTo;
188
+
189
+ /**
190
+ * When the message was sent
191
+ */
192
+ sent_at?: string | null;
193
+
194
+ /**
195
+ * When the message record was last updated
196
+ */
197
+ updated_at?: string;
198
+ }
199
+
200
+ export namespace MessagePayload {
201
+ /**
202
+ * Reference to the message this is replying to
203
+ */
204
+ export interface ReplyTo {
205
+ /**
206
+ * The ID of the message being replied to
207
+ */
208
+ message_id?: string;
209
+
210
+ /**
211
+ * Index of the message part being replied to (0-based)
212
+ */
213
+ part_index?: number;
214
+ }
215
+ }
216
+
217
+ export interface ReactionEventBase {
218
+ /**
219
+ * Whether this reaction was from the owner of the phone number (true) or from
220
+ * someone else (false)
221
+ */
222
+ is_from_me: boolean;
223
+
224
+ /**
225
+ * Type of reaction. Standard iMessage tapbacks are love, like, dislike, laugh,
226
+ * emphasize, question. Custom emoji reactions have type "custom" with the actual
227
+ * emoji in the custom_emoji field. Sticker reactions have type "sticker" with
228
+ * sticker attachment details in the sticker field.
229
+ */
230
+ reaction_type: MessagesAPI.ReactionType;
231
+
232
+ /**
233
+ * Chat identifier (UUID)
234
+ */
235
+ chat_id?: string;
236
+
237
+ /**
238
+ * The actual emoji when reaction_type is "custom". Null for standard tapbacks.
239
+ */
240
+ custom_emoji?: string | null;
241
+
242
+ /**
243
+ * @deprecated DEPRECATED: Use from_handle instead. Phone number or email address
244
+ * of the person who added/removed the reaction.
245
+ */
246
+ from?: string;
247
+
248
+ /**
249
+ * The person who added/removed the reaction as a full handle object
250
+ */
251
+ from_handle?: MessagesAPI.ChatHandle;
252
+
253
+ /**
254
+ * Message identifier (UUID) that the reaction was added to or removed from
255
+ */
256
+ message_id?: string;
257
+
258
+ /**
259
+ * Index of the message part that was reacted to (0-based)
260
+ */
261
+ part_index?: number;
262
+
263
+ /**
264
+ * When the reaction was added or removed
265
+ */
266
+ reacted_at?: string;
267
+
268
+ /**
269
+ * Messaging service type
270
+ */
271
+ service?: Shared.ServiceType;
272
+
273
+ /**
274
+ * Sticker attachment details when reaction_type is "sticker". Null for non-sticker
275
+ * reactions.
276
+ */
277
+ sticker?: ReactionEventBase.Sticker | null;
278
+ }
279
+
280
+ export namespace ReactionEventBase {
281
+ /**
282
+ * Sticker attachment details when reaction_type is "sticker". Null for non-sticker
283
+ * reactions.
284
+ */
285
+ export interface Sticker {
286
+ /**
287
+ * Filename of the sticker
288
+ */
289
+ file_name?: string;
290
+
291
+ /**
292
+ * Sticker image height in pixels
293
+ */
294
+ height?: number;
295
+
296
+ /**
297
+ * MIME type of the sticker image
298
+ */
299
+ mime_type?: string;
300
+
301
+ /**
302
+ * Presigned URL for downloading the sticker image (expires in 1 hour).
303
+ */
304
+ url?: string;
305
+
306
+ /**
307
+ * Sticker image width in pixels
308
+ */
309
+ width?: number;
310
+ }
311
+ }
312
+
313
+ /**
314
+ * A media attachment part
315
+ */
316
+ export interface SchemasMediaPartResponse {
317
+ /**
318
+ * Unique attachment identifier
319
+ */
320
+ id: string;
321
+
322
+ /**
323
+ * Original filename
324
+ */
325
+ filename: string;
326
+
327
+ /**
328
+ * MIME type of the file
329
+ */
330
+ mime_type: string;
331
+
332
+ /**
333
+ * File size in bytes
334
+ */
335
+ size_bytes: number;
336
+
337
+ /**
338
+ * Indicates this is a media attachment part
339
+ */
340
+ type: 'media';
341
+
342
+ /**
343
+ * Presigned URL for downloading the attachment (expires in 1 hour).
344
+ */
345
+ url: string;
346
+ }
347
+
348
+ /**
349
+ * iMessage effect applied to a message (screen or bubble animation)
350
+ */
351
+ export interface SchemasMessageEffect {
352
+ /**
353
+ * Effect name (confetti, fireworks, slam, gentle, etc.)
354
+ */
355
+ name?: string;
356
+
357
+ /**
358
+ * Effect category
359
+ */
360
+ type?: 'screen' | 'bubble';
361
+ }
362
+
363
+ /**
364
+ * A text message part
365
+ */
366
+ export interface SchemasTextPartResponse {
367
+ /**
368
+ * Indicates this is a text message part
369
+ */
370
+ type: 'text';
371
+
372
+ /**
373
+ * The text content
374
+ */
375
+ value: string;
376
+ }
377
+
378
+ /**
379
+ * Complete webhook payload for message.sent events (2026-02-03 format)
380
+ */
381
+ export interface MessageSentV2026WebhookEvent {
382
+ /**
383
+ * API version for the webhook payload format
384
+ */
385
+ api_version: string;
386
+
387
+ /**
388
+ * When the event was created
389
+ */
390
+ created_at: string;
391
+
392
+ /**
393
+ * Unified payload for message webhooks when using `webhook_version: "2026-02-03"`.
394
+ *
395
+ * This schema is used for message.sent, message.received, message.delivered, and
396
+ * message.read events when the subscription URL includes `?version=2026-02-03`.
397
+ *
398
+ * Key differences from V1 (2025-01-01):
399
+ *
400
+ * - `direction`: "inbound" or "outbound" instead of `is_from_me` boolean
401
+ * - `sender_handle`: Full handle object for the sender
402
+ * - `chat`: Nested object with `id`, `is_group`, and `owner_handle`
403
+ * - Message fields (`id`, `parts`, `effect`, etc.) are at the top level, not
404
+ * nested in `message`
405
+ *
406
+ * Timestamps indicate the message state:
407
+ *
408
+ * - `message.sent`: sent_at set, delivered_at=null, read_at=null
409
+ * - `message.received`: sent_at set, delivered_at=null, read_at=null
410
+ * - `message.delivered`: sent_at set, delivered_at set, read_at=null
411
+ * - `message.read`: sent_at set, delivered_at set, read_at set
412
+ */
413
+ data: MessageEventV2;
414
+
415
+ /**
416
+ * Unique identifier for this event (for deduplication)
417
+ */
418
+ event_id: string;
419
+
420
+ /**
421
+ * Valid webhook event types that can be subscribed to
422
+ */
423
+ event_type: WebhookEventsAPI.WebhookEventType;
424
+
425
+ /**
426
+ * Partner identifier. Present on all webhooks for cross-referencing.
427
+ */
428
+ partner_id: string;
429
+
430
+ /**
431
+ * Trace ID for debugging and correlation across systems.
432
+ */
433
+ trace_id: string;
434
+
435
+ /**
436
+ * Date-based webhook payload version. Determined by the `?version=` query
437
+ * parameter in your webhook subscription URL. If no version parameter is
438
+ * specified, defaults based on subscription creation date.
439
+ */
440
+ webhook_version: string;
441
+ }
442
+
443
+ /**
444
+ * Complete webhook payload for message.received events (2026-02-03 format)
445
+ */
446
+ export interface MessageReceivedV2026WebhookEvent {
447
+ /**
448
+ * API version for the webhook payload format
449
+ */
450
+ api_version: string;
451
+
452
+ /**
453
+ * When the event was created
454
+ */
455
+ created_at: string;
456
+
457
+ /**
458
+ * Unified payload for message webhooks when using `webhook_version: "2026-02-03"`.
459
+ *
460
+ * This schema is used for message.sent, message.received, message.delivered, and
461
+ * message.read events when the subscription URL includes `?version=2026-02-03`.
462
+ *
463
+ * Key differences from V1 (2025-01-01):
464
+ *
465
+ * - `direction`: "inbound" or "outbound" instead of `is_from_me` boolean
466
+ * - `sender_handle`: Full handle object for the sender
467
+ * - `chat`: Nested object with `id`, `is_group`, and `owner_handle`
468
+ * - Message fields (`id`, `parts`, `effect`, etc.) are at the top level, not
469
+ * nested in `message`
470
+ *
471
+ * Timestamps indicate the message state:
472
+ *
473
+ * - `message.sent`: sent_at set, delivered_at=null, read_at=null
474
+ * - `message.received`: sent_at set, delivered_at=null, read_at=null
475
+ * - `message.delivered`: sent_at set, delivered_at set, read_at=null
476
+ * - `message.read`: sent_at set, delivered_at set, read_at set
477
+ */
478
+ data: MessageEventV2;
479
+
480
+ /**
481
+ * Unique identifier for this event (for deduplication)
482
+ */
483
+ event_id: string;
484
+
485
+ /**
486
+ * Valid webhook event types that can be subscribed to
487
+ */
488
+ event_type: WebhookEventsAPI.WebhookEventType;
489
+
490
+ /**
491
+ * Partner identifier. Present on all webhooks for cross-referencing.
492
+ */
493
+ partner_id: string;
494
+
495
+ /**
496
+ * Trace ID for debugging and correlation across systems.
497
+ */
498
+ trace_id: string;
499
+
500
+ /**
501
+ * Date-based webhook payload version. Determined by the `?version=` query
502
+ * parameter in your webhook subscription URL. If no version parameter is
503
+ * specified, defaults based on subscription creation date.
504
+ */
505
+ webhook_version: string;
506
+ }
507
+
508
+ /**
509
+ * Complete webhook payload for message.read events (2026-02-03 format)
510
+ */
511
+ export interface MessageReadV2026WebhookEvent {
512
+ /**
513
+ * API version for the webhook payload format
514
+ */
515
+ api_version: string;
516
+
517
+ /**
518
+ * When the event was created
519
+ */
520
+ created_at: string;
521
+
522
+ /**
523
+ * Unified payload for message webhooks when using `webhook_version: "2026-02-03"`.
524
+ *
525
+ * This schema is used for message.sent, message.received, message.delivered, and
526
+ * message.read events when the subscription URL includes `?version=2026-02-03`.
527
+ *
528
+ * Key differences from V1 (2025-01-01):
529
+ *
530
+ * - `direction`: "inbound" or "outbound" instead of `is_from_me` boolean
531
+ * - `sender_handle`: Full handle object for the sender
532
+ * - `chat`: Nested object with `id`, `is_group`, and `owner_handle`
533
+ * - Message fields (`id`, `parts`, `effect`, etc.) are at the top level, not
534
+ * nested in `message`
535
+ *
536
+ * Timestamps indicate the message state:
537
+ *
538
+ * - `message.sent`: sent_at set, delivered_at=null, read_at=null
539
+ * - `message.received`: sent_at set, delivered_at=null, read_at=null
540
+ * - `message.delivered`: sent_at set, delivered_at set, read_at=null
541
+ * - `message.read`: sent_at set, delivered_at set, read_at set
542
+ */
543
+ data: MessageEventV2;
544
+
545
+ /**
546
+ * Unique identifier for this event (for deduplication)
547
+ */
548
+ event_id: string;
549
+
550
+ /**
551
+ * Valid webhook event types that can be subscribed to
552
+ */
553
+ event_type: WebhookEventsAPI.WebhookEventType;
554
+
555
+ /**
556
+ * Partner identifier. Present on all webhooks for cross-referencing.
557
+ */
558
+ partner_id: string;
559
+
560
+ /**
561
+ * Trace ID for debugging and correlation across systems.
562
+ */
563
+ trace_id: string;
564
+
565
+ /**
566
+ * Date-based webhook payload version. Determined by the `?version=` query
567
+ * parameter in your webhook subscription URL. If no version parameter is
568
+ * specified, defaults based on subscription creation date.
569
+ */
570
+ webhook_version: string;
571
+ }
572
+
573
+ /**
574
+ * Complete webhook payload for message.delivered events (2026-02-03 format)
575
+ */
576
+ export interface MessageDeliveredV2026WebhookEvent {
577
+ /**
578
+ * API version for the webhook payload format
579
+ */
580
+ api_version: string;
581
+
582
+ /**
583
+ * When the event was created
584
+ */
585
+ created_at: string;
586
+
587
+ /**
588
+ * Unified payload for message webhooks when using `webhook_version: "2026-02-03"`.
589
+ *
590
+ * This schema is used for message.sent, message.received, message.delivered, and
591
+ * message.read events when the subscription URL includes `?version=2026-02-03`.
592
+ *
593
+ * Key differences from V1 (2025-01-01):
594
+ *
595
+ * - `direction`: "inbound" or "outbound" instead of `is_from_me` boolean
596
+ * - `sender_handle`: Full handle object for the sender
597
+ * - `chat`: Nested object with `id`, `is_group`, and `owner_handle`
598
+ * - Message fields (`id`, `parts`, `effect`, etc.) are at the top level, not
599
+ * nested in `message`
600
+ *
601
+ * Timestamps indicate the message state:
602
+ *
603
+ * - `message.sent`: sent_at set, delivered_at=null, read_at=null
604
+ * - `message.received`: sent_at set, delivered_at=null, read_at=null
605
+ * - `message.delivered`: sent_at set, delivered_at set, read_at=null
606
+ * - `message.read`: sent_at set, delivered_at set, read_at set
607
+ */
608
+ data: MessageEventV2;
609
+
610
+ /**
611
+ * Unique identifier for this event (for deduplication)
612
+ */
613
+ event_id: string;
614
+
615
+ /**
616
+ * Valid webhook event types that can be subscribed to
617
+ */
618
+ event_type: WebhookEventsAPI.WebhookEventType;
619
+
620
+ /**
621
+ * Partner identifier. Present on all webhooks for cross-referencing.
622
+ */
623
+ partner_id: string;
624
+
625
+ /**
626
+ * Trace ID for debugging and correlation across systems.
627
+ */
628
+ trace_id: string;
629
+
630
+ /**
631
+ * Date-based webhook payload version. Determined by the `?version=` query
632
+ * parameter in your webhook subscription URL. If no version parameter is
633
+ * specified, defaults based on subscription creation date.
634
+ */
635
+ webhook_version: string;
636
+ }
637
+
638
+ /**
639
+ * Complete webhook payload for message.failed events
640
+ */
641
+ export interface MessageFailedV2026WebhookEvent {
642
+ /**
643
+ * API version for the webhook payload format
644
+ */
645
+ api_version: string;
646
+
647
+ /**
648
+ * When the event was created
649
+ */
650
+ created_at: string;
651
+
652
+ /**
653
+ * Error details for message.failed webhook events. See
654
+ * [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
655
+ * code reference.
656
+ */
657
+ data: MessageFailedV2026WebhookEvent.Data;
658
+
659
+ /**
660
+ * Unique identifier for this event (for deduplication)
661
+ */
662
+ event_id: string;
663
+
664
+ /**
665
+ * Valid webhook event types that can be subscribed to
666
+ */
667
+ event_type: WebhookEventsAPI.WebhookEventType;
668
+
669
+ /**
670
+ * Partner identifier. Present on all webhooks for cross-referencing.
671
+ */
672
+ partner_id: string;
673
+
674
+ /**
675
+ * Trace ID for debugging and correlation across systems.
676
+ */
677
+ trace_id: string;
678
+
679
+ /**
680
+ * Date-based webhook payload version. Determined by the `?version=` query
681
+ * parameter in your webhook subscription URL. If no version parameter is
682
+ * specified, defaults based on subscription creation date.
683
+ */
684
+ webhook_version: string;
685
+ }
686
+
687
+ export namespace MessageFailedV2026WebhookEvent {
688
+ /**
689
+ * Error details for message.failed webhook events. See
690
+ * [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
691
+ * code reference.
692
+ */
693
+ export interface Data {
694
+ /**
695
+ * Error codes in webhook failure events (3007, 4001).
696
+ */
697
+ code: number;
698
+
699
+ /**
700
+ * When the failure was detected
701
+ */
702
+ failed_at: string;
703
+
704
+ /**
705
+ * Chat identifier (UUID)
706
+ */
707
+ chat_id?: string;
708
+
709
+ /**
710
+ * Message identifier (UUID)
711
+ */
712
+ message_id?: string;
713
+
714
+ /**
715
+ * Human-readable description of the failure
716
+ */
717
+ reason?: string;
718
+ }
719
+ }
720
+
721
+ /**
722
+ * Complete webhook payload for reaction.added events
723
+ */
724
+ export interface ReactionAddedV2026WebhookEvent {
725
+ /**
726
+ * API version for the webhook payload format
727
+ */
728
+ api_version: string;
729
+
730
+ /**
731
+ * When the event was created
732
+ */
733
+ created_at: string;
734
+
735
+ /**
736
+ * Payload for reaction.added webhook events
737
+ */
738
+ data: ReactionEventBase;
739
+
740
+ /**
741
+ * Unique identifier for this event (for deduplication)
742
+ */
743
+ event_id: string;
744
+
745
+ /**
746
+ * Valid webhook event types that can be subscribed to
747
+ */
748
+ event_type: WebhookEventsAPI.WebhookEventType;
749
+
750
+ /**
751
+ * Partner identifier. Present on all webhooks for cross-referencing.
752
+ */
753
+ partner_id: string;
754
+
755
+ /**
756
+ * Trace ID for debugging and correlation across systems.
757
+ */
758
+ trace_id: string;
759
+
760
+ /**
761
+ * Date-based webhook payload version. Determined by the `?version=` query
762
+ * parameter in your webhook subscription URL. If no version parameter is
763
+ * specified, defaults based on subscription creation date.
764
+ */
765
+ webhook_version: string;
766
+ }
767
+
768
+ /**
769
+ * Complete webhook payload for reaction.removed events
770
+ */
771
+ export interface ReactionRemovedV2026WebhookEvent {
772
+ /**
773
+ * API version for the webhook payload format
774
+ */
775
+ api_version: string;
776
+
777
+ /**
778
+ * When the event was created
779
+ */
780
+ created_at: string;
781
+
782
+ /**
783
+ * Payload for reaction.removed webhook events
784
+ */
785
+ data: ReactionEventBase;
786
+
787
+ /**
788
+ * Unique identifier for this event (for deduplication)
789
+ */
790
+ event_id: string;
791
+
792
+ /**
793
+ * Valid webhook event types that can be subscribed to
794
+ */
795
+ event_type: WebhookEventsAPI.WebhookEventType;
796
+
797
+ /**
798
+ * Partner identifier. Present on all webhooks for cross-referencing.
799
+ */
800
+ partner_id: string;
801
+
802
+ /**
803
+ * Trace ID for debugging and correlation across systems.
804
+ */
805
+ trace_id: string;
806
+
807
+ /**
808
+ * Date-based webhook payload version. Determined by the `?version=` query
809
+ * parameter in your webhook subscription URL. If no version parameter is
810
+ * specified, defaults based on subscription creation date.
811
+ */
812
+ webhook_version: string;
813
+ }
814
+
815
+ /**
816
+ * Complete webhook payload for participant.added events
817
+ */
818
+ export interface ParticipantAddedV2026WebhookEvent {
819
+ /**
820
+ * API version for the webhook payload format
821
+ */
822
+ api_version: string;
823
+
824
+ /**
825
+ * When the event was created
826
+ */
827
+ created_at: string;
828
+
829
+ /**
830
+ * Payload for participant.added webhook events
831
+ */
832
+ data: ParticipantAddedV2026WebhookEvent.Data;
833
+
834
+ /**
835
+ * Unique identifier for this event (for deduplication)
836
+ */
837
+ event_id: string;
838
+
839
+ /**
840
+ * Valid webhook event types that can be subscribed to
841
+ */
842
+ event_type: WebhookEventsAPI.WebhookEventType;
843
+
844
+ /**
845
+ * Partner identifier. Present on all webhooks for cross-referencing.
846
+ */
847
+ partner_id: string;
848
+
849
+ /**
850
+ * Trace ID for debugging and correlation across systems.
851
+ */
852
+ trace_id: string;
853
+
854
+ /**
855
+ * Date-based webhook payload version. Determined by the `?version=` query
856
+ * parameter in your webhook subscription URL. If no version parameter is
857
+ * specified, defaults based on subscription creation date.
858
+ */
859
+ webhook_version: string;
860
+ }
861
+
862
+ export namespace ParticipantAddedV2026WebhookEvent {
863
+ /**
864
+ * Payload for participant.added webhook events
865
+ */
866
+ export interface Data {
867
+ /**
868
+ * @deprecated DEPRECATED: Use participant instead. Handle (phone number or email
869
+ * address) of the added participant.
870
+ */
871
+ handle: string;
872
+
873
+ /**
874
+ * When the participant was added
875
+ */
876
+ added_at?: string;
877
+
878
+ /**
879
+ * Chat identifier (UUID) of the group chat
880
+ */
881
+ chat_id?: string;
882
+
883
+ /**
884
+ * The added participant as a full handle object
885
+ */
886
+ participant?: MessagesAPI.ChatHandle;
887
+ }
888
+ }
889
+
890
+ /**
891
+ * Complete webhook payload for participant.removed events
892
+ */
893
+ export interface ParticipantRemovedV2026WebhookEvent {
894
+ /**
895
+ * API version for the webhook payload format
896
+ */
897
+ api_version: string;
898
+
899
+ /**
900
+ * When the event was created
901
+ */
902
+ created_at: string;
903
+
904
+ /**
905
+ * Payload for participant.removed webhook events
906
+ */
907
+ data: ParticipantRemovedV2026WebhookEvent.Data;
908
+
909
+ /**
910
+ * Unique identifier for this event (for deduplication)
911
+ */
912
+ event_id: string;
913
+
914
+ /**
915
+ * Valid webhook event types that can be subscribed to
916
+ */
917
+ event_type: WebhookEventsAPI.WebhookEventType;
918
+
919
+ /**
920
+ * Partner identifier. Present on all webhooks for cross-referencing.
921
+ */
922
+ partner_id: string;
923
+
924
+ /**
925
+ * Trace ID for debugging and correlation across systems.
926
+ */
927
+ trace_id: string;
928
+
929
+ /**
930
+ * Date-based webhook payload version. Determined by the `?version=` query
931
+ * parameter in your webhook subscription URL. If no version parameter is
932
+ * specified, defaults based on subscription creation date.
933
+ */
934
+ webhook_version: string;
935
+ }
936
+
937
+ export namespace ParticipantRemovedV2026WebhookEvent {
938
+ /**
939
+ * Payload for participant.removed webhook events
940
+ */
941
+ export interface Data {
942
+ /**
943
+ * @deprecated DEPRECATED: Use participant instead. Handle (phone number or email
944
+ * address) of the removed participant.
945
+ */
946
+ handle: string;
947
+
948
+ /**
949
+ * Chat identifier (UUID) of the group chat
950
+ */
951
+ chat_id?: string;
952
+
953
+ /**
954
+ * The removed participant as a full handle object
955
+ */
956
+ participant?: MessagesAPI.ChatHandle;
957
+
958
+ /**
959
+ * When the participant was removed
960
+ */
961
+ removed_at?: string;
962
+ }
963
+ }
964
+
965
+ /**
966
+ * Complete webhook payload for chat.group_name_updated events
967
+ */
968
+ export interface ChatGroupNameUpdatedV2026WebhookEvent {
969
+ /**
970
+ * API version for the webhook payload format
971
+ */
972
+ api_version: string;
973
+
974
+ /**
975
+ * When the event was created
976
+ */
977
+ created_at: string;
978
+
979
+ /**
980
+ * Payload for chat.group_name_updated webhook events
981
+ */
982
+ data: ChatGroupNameUpdatedV2026WebhookEvent.Data;
983
+
984
+ /**
985
+ * Unique identifier for this event (for deduplication)
986
+ */
987
+ event_id: string;
988
+
989
+ /**
990
+ * Valid webhook event types that can be subscribed to
991
+ */
992
+ event_type: WebhookEventsAPI.WebhookEventType;
993
+
994
+ /**
995
+ * Partner identifier. Present on all webhooks for cross-referencing.
996
+ */
997
+ partner_id: string;
998
+
999
+ /**
1000
+ * Trace ID for debugging and correlation across systems.
1001
+ */
1002
+ trace_id: string;
1003
+
1004
+ /**
1005
+ * Date-based webhook payload version. Determined by the `?version=` query
1006
+ * parameter in your webhook subscription URL. If no version parameter is
1007
+ * specified, defaults based on subscription creation date.
1008
+ */
1009
+ webhook_version: string;
1010
+ }
1011
+
1012
+ export namespace ChatGroupNameUpdatedV2026WebhookEvent {
1013
+ /**
1014
+ * Payload for chat.group_name_updated webhook events
1015
+ */
1016
+ export interface Data {
1017
+ /**
1018
+ * Chat identifier (UUID) of the group chat
1019
+ */
1020
+ chat_id: string;
1021
+
1022
+ /**
1023
+ * When the update occurred
1024
+ */
1025
+ updated_at: string;
1026
+
1027
+ /**
1028
+ * The handle who made the change.
1029
+ */
1030
+ changed_by_handle?: MessagesAPI.ChatHandle | null;
1031
+
1032
+ /**
1033
+ * New group name (null if the name was removed)
1034
+ */
1035
+ new_value?: string | null;
1036
+
1037
+ /**
1038
+ * Previous group name (null if no previous name)
1039
+ */
1040
+ old_value?: string | null;
1041
+ }
1042
+ }
1043
+
1044
+ /**
1045
+ * Complete webhook payload for chat.group_icon_updated events
1046
+ */
1047
+ export interface ChatGroupIconUpdatedV2026WebhookEvent {
1048
+ /**
1049
+ * API version for the webhook payload format
1050
+ */
1051
+ api_version: string;
1052
+
1053
+ /**
1054
+ * When the event was created
1055
+ */
1056
+ created_at: string;
1057
+
1058
+ /**
1059
+ * Payload for chat.group_icon_updated webhook events
1060
+ */
1061
+ data: ChatGroupIconUpdatedV2026WebhookEvent.Data;
1062
+
1063
+ /**
1064
+ * Unique identifier for this event (for deduplication)
1065
+ */
1066
+ event_id: string;
1067
+
1068
+ /**
1069
+ * Valid webhook event types that can be subscribed to
1070
+ */
1071
+ event_type: WebhookEventsAPI.WebhookEventType;
1072
+
1073
+ /**
1074
+ * Partner identifier. Present on all webhooks for cross-referencing.
1075
+ */
1076
+ partner_id: string;
1077
+
1078
+ /**
1079
+ * Trace ID for debugging and correlation across systems.
1080
+ */
1081
+ trace_id: string;
1082
+
1083
+ /**
1084
+ * Date-based webhook payload version. Determined by the `?version=` query
1085
+ * parameter in your webhook subscription URL. If no version parameter is
1086
+ * specified, defaults based on subscription creation date.
1087
+ */
1088
+ webhook_version: string;
1089
+ }
1090
+
1091
+ export namespace ChatGroupIconUpdatedV2026WebhookEvent {
1092
+ /**
1093
+ * Payload for chat.group_icon_updated webhook events
1094
+ */
1095
+ export interface Data {
1096
+ /**
1097
+ * Chat identifier (UUID) of the group chat
1098
+ */
1099
+ chat_id: string;
1100
+
1101
+ /**
1102
+ * When the update occurred
1103
+ */
1104
+ updated_at: string;
1105
+
1106
+ /**
1107
+ * The handle who made the change.
1108
+ */
1109
+ changed_by_handle?: MessagesAPI.ChatHandle | null;
1110
+
1111
+ /**
1112
+ * New icon URL (null if the icon was removed)
1113
+ */
1114
+ new_value?: string | null;
1115
+
1116
+ /**
1117
+ * Previous icon URL (null if no previous icon)
1118
+ */
1119
+ old_value?: string | null;
1120
+ }
1121
+ }
1122
+
1123
+ /**
1124
+ * Complete webhook payload for chat.group_name_update_failed events
1125
+ */
1126
+ export interface ChatGroupNameUpdateFailedV2026WebhookEvent {
1127
+ /**
1128
+ * API version for the webhook payload format
1129
+ */
1130
+ api_version: string;
1131
+
1132
+ /**
1133
+ * When the event was created
1134
+ */
1135
+ created_at: string;
1136
+
1137
+ /**
1138
+ * Error details for chat.group_name_update_failed webhook events. See
1139
+ * [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
1140
+ * code reference.
1141
+ */
1142
+ data: ChatGroupNameUpdateFailedV2026WebhookEvent.Data;
1143
+
1144
+ /**
1145
+ * Unique identifier for this event (for deduplication)
1146
+ */
1147
+ event_id: string;
1148
+
1149
+ /**
1150
+ * Valid webhook event types that can be subscribed to
1151
+ */
1152
+ event_type: WebhookEventsAPI.WebhookEventType;
1153
+
1154
+ /**
1155
+ * Partner identifier. Present on all webhooks for cross-referencing.
1156
+ */
1157
+ partner_id: string;
1158
+
1159
+ /**
1160
+ * Trace ID for debugging and correlation across systems.
1161
+ */
1162
+ trace_id: string;
1163
+
1164
+ /**
1165
+ * Date-based webhook payload version. Determined by the `?version=` query
1166
+ * parameter in your webhook subscription URL. If no version parameter is
1167
+ * specified, defaults based on subscription creation date.
1168
+ */
1169
+ webhook_version: string;
1170
+ }
1171
+
1172
+ export namespace ChatGroupNameUpdateFailedV2026WebhookEvent {
1173
+ /**
1174
+ * Error details for chat.group_name_update_failed webhook events. See
1175
+ * [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
1176
+ * code reference.
1177
+ */
1178
+ export interface Data {
1179
+ /**
1180
+ * Chat identifier (UUID) of the group chat
1181
+ */
1182
+ chat_id: string;
1183
+
1184
+ /**
1185
+ * Error codes in webhook failure events (3007, 4001).
1186
+ */
1187
+ error_code: number;
1188
+
1189
+ /**
1190
+ * When the failure was detected
1191
+ */
1192
+ failed_at: string;
1193
+ }
1194
+ }
1195
+
1196
+ /**
1197
+ * Complete webhook payload for chat.group_icon_update_failed events
1198
+ */
1199
+ export interface ChatGroupIconUpdateFailedV2026WebhookEvent {
1200
+ /**
1201
+ * API version for the webhook payload format
1202
+ */
1203
+ api_version: string;
1204
+
1205
+ /**
1206
+ * When the event was created
1207
+ */
1208
+ created_at: string;
1209
+
1210
+ /**
1211
+ * Error details for chat.group_icon_update_failed webhook events. See
1212
+ * [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
1213
+ * code reference.
1214
+ */
1215
+ data: ChatGroupIconUpdateFailedV2026WebhookEvent.Data;
1216
+
1217
+ /**
1218
+ * Unique identifier for this event (for deduplication)
1219
+ */
1220
+ event_id: string;
1221
+
1222
+ /**
1223
+ * Valid webhook event types that can be subscribed to
1224
+ */
1225
+ event_type: WebhookEventsAPI.WebhookEventType;
1226
+
1227
+ /**
1228
+ * Partner identifier. Present on all webhooks for cross-referencing.
1229
+ */
1230
+ partner_id: string;
1231
+
1232
+ /**
1233
+ * Trace ID for debugging and correlation across systems.
1234
+ */
1235
+ trace_id: string;
1236
+
1237
+ /**
1238
+ * Date-based webhook payload version. Determined by the `?version=` query
1239
+ * parameter in your webhook subscription URL. If no version parameter is
1240
+ * specified, defaults based on subscription creation date.
1241
+ */
1242
+ webhook_version: string;
1243
+ }
1244
+
1245
+ export namespace ChatGroupIconUpdateFailedV2026WebhookEvent {
1246
+ /**
1247
+ * Error details for chat.group_icon_update_failed webhook events. See
1248
+ * [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
1249
+ * code reference.
1250
+ */
1251
+ export interface Data {
1252
+ /**
1253
+ * Chat identifier (UUID) of the group chat
1254
+ */
1255
+ chat_id: string;
1256
+
1257
+ /**
1258
+ * Error codes in webhook failure events (3007, 4001).
1259
+ */
1260
+ error_code: number;
1261
+
1262
+ /**
1263
+ * When the failure was detected
1264
+ */
1265
+ failed_at: string;
1266
+ }
1267
+ }
1268
+
1269
+ /**
1270
+ * Complete webhook payload for chat.created events
1271
+ */
1272
+ export interface ChatCreatedV2026WebhookEvent {
1273
+ /**
1274
+ * API version for the webhook payload format
1275
+ */
1276
+ api_version: string;
1277
+
1278
+ /**
1279
+ * When the event was created
1280
+ */
1281
+ created_at: string;
1282
+
1283
+ /**
1284
+ * Payload for chat.created webhook events. Matches GET /v3/chats/{chatId}
1285
+ * response.
1286
+ */
1287
+ data: ChatCreatedV2026WebhookEvent.Data;
1288
+
1289
+ /**
1290
+ * Unique identifier for this event (for deduplication)
1291
+ */
1292
+ event_id: string;
1293
+
1294
+ /**
1295
+ * Valid webhook event types that can be subscribed to
1296
+ */
1297
+ event_type: WebhookEventsAPI.WebhookEventType;
1298
+
1299
+ /**
1300
+ * Partner identifier. Present on all webhooks for cross-referencing.
1301
+ */
1302
+ partner_id: string;
1303
+
1304
+ /**
1305
+ * Trace ID for debugging and correlation across systems.
1306
+ */
1307
+ trace_id: string;
1308
+
1309
+ /**
1310
+ * Date-based webhook payload version. Determined by the `?version=` query
1311
+ * parameter in your webhook subscription URL. If no version parameter is
1312
+ * specified, defaults based on subscription creation date.
1313
+ */
1314
+ webhook_version: string;
1315
+ }
1316
+
1317
+ export namespace ChatCreatedV2026WebhookEvent {
1318
+ /**
1319
+ * Payload for chat.created webhook events. Matches GET /v3/chats/{chatId}
1320
+ * response.
1321
+ */
1322
+ export interface Data {
1323
+ /**
1324
+ * Unique identifier for the chat
1325
+ */
1326
+ id: string;
1327
+
1328
+ /**
1329
+ * When the chat was created
1330
+ */
1331
+ created_at: string;
1332
+
1333
+ /**
1334
+ * Display name for the chat. Defaults to a comma-separated list of recipient
1335
+ * handles. Can be updated for group chats.
1336
+ */
1337
+ display_name: string | null;
1338
+
1339
+ /**
1340
+ * List of chat participants with full handle details. Always contains at least two
1341
+ * handles (your phone number and the other participant).
1342
+ */
1343
+ handles: Array<MessagesAPI.ChatHandle>;
1344
+
1345
+ /**
1346
+ * Whether this is a group chat
1347
+ */
1348
+ is_group: boolean;
1349
+
1350
+ /**
1351
+ * When the chat was last updated
1352
+ */
1353
+ updated_at: string;
1354
+
1355
+ /**
1356
+ * Messaging service type
1357
+ */
1358
+ service?: Shared.ServiceType | null;
1359
+ }
1360
+ }
1361
+
1362
+ /**
1363
+ * Complete webhook payload for chat.typing_indicator.started events
1364
+ */
1365
+ export interface ChatTypingIndicatorStartedV2026WebhookEvent {
1366
+ /**
1367
+ * API version for the webhook payload format
1368
+ */
1369
+ api_version: string;
1370
+
1371
+ /**
1372
+ * When the event was created
1373
+ */
1374
+ created_at: string;
1375
+
1376
+ /**
1377
+ * Payload for chat.typing_indicator.started webhook events
1378
+ */
1379
+ data: ChatTypingIndicatorStartedV2026WebhookEvent.Data;
1380
+
1381
+ /**
1382
+ * Unique identifier for this event (for deduplication)
1383
+ */
1384
+ event_id: string;
1385
+
1386
+ /**
1387
+ * Valid webhook event types that can be subscribed to
1388
+ */
1389
+ event_type: WebhookEventsAPI.WebhookEventType;
1390
+
1391
+ /**
1392
+ * Partner identifier. Present on all webhooks for cross-referencing.
1393
+ */
1394
+ partner_id: string;
1395
+
1396
+ /**
1397
+ * Trace ID for debugging and correlation across systems.
1398
+ */
1399
+ trace_id: string;
1400
+
1401
+ /**
1402
+ * Date-based webhook payload version. Determined by the `?version=` query
1403
+ * parameter in your webhook subscription URL. If no version parameter is
1404
+ * specified, defaults based on subscription creation date.
1405
+ */
1406
+ webhook_version: string;
1407
+ }
1408
+
1409
+ export namespace ChatTypingIndicatorStartedV2026WebhookEvent {
1410
+ /**
1411
+ * Payload for chat.typing_indicator.started webhook events
1412
+ */
1413
+ export interface Data {
1414
+ /**
1415
+ * Chat identifier
1416
+ */
1417
+ chat_id: string;
1418
+ }
1419
+ }
1420
+
1421
+ /**
1422
+ * Complete webhook payload for chat.typing_indicator.stopped events
1423
+ */
1424
+ export interface ChatTypingIndicatorStoppedV2026WebhookEvent {
1425
+ /**
1426
+ * API version for the webhook payload format
1427
+ */
1428
+ api_version: string;
1429
+
1430
+ /**
1431
+ * When the event was created
1432
+ */
1433
+ created_at: string;
1434
+
1435
+ /**
1436
+ * Payload for chat.typing_indicator.stopped webhook events
1437
+ */
1438
+ data: ChatTypingIndicatorStoppedV2026WebhookEvent.Data;
1439
+
1440
+ /**
1441
+ * Unique identifier for this event (for deduplication)
1442
+ */
1443
+ event_id: string;
1444
+
1445
+ /**
1446
+ * Valid webhook event types that can be subscribed to
1447
+ */
1448
+ event_type: WebhookEventsAPI.WebhookEventType;
1449
+
1450
+ /**
1451
+ * Partner identifier. Present on all webhooks for cross-referencing.
1452
+ */
1453
+ partner_id: string;
1454
+
1455
+ /**
1456
+ * Trace ID for debugging and correlation across systems.
1457
+ */
1458
+ trace_id: string;
1459
+
1460
+ /**
1461
+ * Date-based webhook payload version. Determined by the `?version=` query
1462
+ * parameter in your webhook subscription URL. If no version parameter is
1463
+ * specified, defaults based on subscription creation date.
1464
+ */
1465
+ webhook_version: string;
1466
+ }
1467
+
1468
+ export namespace ChatTypingIndicatorStoppedV2026WebhookEvent {
1469
+ /**
1470
+ * Payload for chat.typing_indicator.stopped webhook events
1471
+ */
1472
+ export interface Data {
1473
+ /**
1474
+ * Chat identifier
1475
+ */
1476
+ chat_id: string;
1477
+ }
1478
+ }
1479
+
1480
+ /**
1481
+ * Complete webhook payload for phone_number.status_updated events
1482
+ */
1483
+ export interface PhoneNumberStatusUpdatedV2026WebhookEvent {
1484
+ /**
1485
+ * API version for the webhook payload format
1486
+ */
1487
+ api_version: string;
1488
+
1489
+ /**
1490
+ * When the event was created
1491
+ */
1492
+ created_at: string;
1493
+
1494
+ /**
1495
+ * Payload for phone_number.status_updated webhook events
1496
+ */
1497
+ data: PhoneNumberStatusUpdatedV2026WebhookEvent.Data;
1498
+
1499
+ /**
1500
+ * Unique identifier for this event (for deduplication)
1501
+ */
1502
+ event_id: string;
1503
+
1504
+ /**
1505
+ * The type of event
1506
+ */
1507
+ event_type:
1508
+ | 'message.sent'
1509
+ | 'message.received'
1510
+ | 'message.read'
1511
+ | 'message.delivered'
1512
+ | 'message.failed'
1513
+ | 'message.edited'
1514
+ | 'reaction.added'
1515
+ | 'reaction.removed'
1516
+ | 'participant.added'
1517
+ | 'participant.removed'
1518
+ | 'chat.created'
1519
+ | 'chat.group_name_updated'
1520
+ | 'chat.group_icon_updated'
1521
+ | 'chat.group_name_update_failed'
1522
+ | 'chat.group_icon_update_failed'
1523
+ | 'chat.typing_indicator.started'
1524
+ | 'chat.typing_indicator.stopped'
1525
+ | 'phone_number.status_updated';
1526
+
1527
+ /**
1528
+ * Partner identifier. Present on all webhooks for cross-referencing.
1529
+ */
1530
+ partner_id: string;
1531
+
1532
+ /**
1533
+ * Trace ID for debugging and correlation across systems.
1534
+ */
1535
+ trace_id: string;
1536
+
1537
+ /**
1538
+ * Date-based webhook payload version. Determined by the `?version=` query
1539
+ * parameter in your webhook subscription URL. If no version parameter is
1540
+ * specified, defaults based on subscription creation date.
1541
+ */
1542
+ webhook_version: string;
1543
+ }
1544
+
1545
+ export namespace PhoneNumberStatusUpdatedV2026WebhookEvent {
1546
+ /**
1547
+ * Payload for phone_number.status_updated webhook events
1548
+ */
1549
+ export interface Data {
1550
+ /**
1551
+ * When the status change occurred
1552
+ */
1553
+ changed_at: string;
1554
+
1555
+ /**
1556
+ * The new service status
1557
+ */
1558
+ new_status: 'ACTIVE' | 'FLAGGED';
1559
+
1560
+ /**
1561
+ * Phone number in E.164 format
1562
+ */
1563
+ phone_number: string;
1564
+
1565
+ /**
1566
+ * The previous service status
1567
+ */
1568
+ previous_status: 'ACTIVE' | 'FLAGGED';
1569
+ }
1570
+ }
1571
+
1572
+ /**
1573
+ * Complete webhook payload for message.sent events (2025-01-01 format)
1574
+ */
1575
+ export interface MessageSentV2025WebhookEvent {
1576
+ /**
1577
+ * API version for the webhook payload format
1578
+ */
1579
+ api_version: string;
1580
+
1581
+ /**
1582
+ * When the event was created
1583
+ */
1584
+ created_at: string;
1585
+
1586
+ /**
1587
+ * Unified payload for message.sent and message.received webhook events (2025-01-01
1588
+ * format)
1589
+ */
1590
+ data: MessageSentV2025WebhookEvent.Data;
1591
+
1592
+ /**
1593
+ * Unique identifier for this event (for deduplication)
1594
+ */
1595
+ event_id: string;
1596
+
1597
+ /**
1598
+ * Valid webhook event types that can be subscribed to
1599
+ */
1600
+ event_type: WebhookEventsAPI.WebhookEventType;
1601
+
1602
+ /**
1603
+ * Partner identifier. Present on all webhooks for cross-referencing.
1604
+ */
1605
+ partner_id: string;
1606
+
1607
+ /**
1608
+ * Trace ID for debugging and correlation across systems.
1609
+ */
1610
+ trace_id: string;
1611
+
1612
+ /**
1613
+ * Date-based webhook payload version. Determined by the `?version=` query
1614
+ * parameter in your webhook subscription URL. If no version parameter is
1615
+ * specified, defaults based on subscription creation date.
1616
+ */
1617
+ webhook_version: string;
1618
+ }
1619
+
1620
+ export namespace MessageSentV2025WebhookEvent {
1621
+ /**
1622
+ * Unified payload for message.sent and message.received webhook events (2025-01-01
1623
+ * format)
1624
+ */
1625
+ export interface Data {
1626
+ /**
1627
+ * Chat identifier
1628
+ */
1629
+ chat_id?: string;
1630
+
1631
+ /**
1632
+ * @deprecated DEPRECATED: Use from_handle instead. Phone number or email address
1633
+ * of the message sender.
1634
+ */
1635
+ from?: string;
1636
+
1637
+ /**
1638
+ * The sender of this message as a full handle object
1639
+ */
1640
+ from_handle?: MessagesAPI.ChatHandle;
1641
+
1642
+ /**
1643
+ * Idempotency key for the message. Used for deduplication of outbound messages.
1644
+ */
1645
+ idempotency_key?: string | null;
1646
+
1647
+ /**
1648
+ * Whether the message was sent by us (true for sent events, false for received
1649
+ * events)
1650
+ */
1651
+ is_from_me?: boolean;
1652
+
1653
+ /**
1654
+ * Whether this is a group chat
1655
+ */
1656
+ is_group?: boolean;
1657
+
1658
+ /**
1659
+ * Message content nested within webhook events
1660
+ */
1661
+ message?: WebhooksAPI.MessagePayload;
1662
+
1663
+ /**
1664
+ * Preferred messaging service type. Includes "auto" for default fallback behavior.
1665
+ */
1666
+ preferred_service?: 'iMessage' | 'SMS' | 'RCS' | 'auto' | null;
1667
+
1668
+ /**
1669
+ * When the message was received. Null for sent events.
1670
+ */
1671
+ received_at?: string | null;
1672
+
1673
+ /**
1674
+ * Our phone number that received the message as a full handle object. Null for
1675
+ * sent events.
1676
+ */
1677
+ recipient_handle?: MessagesAPI.ChatHandle | null;
1678
+
1679
+ /**
1680
+ * @deprecated DEPRECATED: Use recipient_handle instead. Our phone number that
1681
+ * received the message. Null for sent events.
1682
+ */
1683
+ recipient_phone?: string | null;
1684
+
1685
+ /**
1686
+ * Messaging service type
1687
+ */
1688
+ service?: Shared.ServiceType | null;
1689
+ }
1690
+ }
1691
+
1692
+ /**
1693
+ * Complete webhook payload for message.received events (2025-01-01 format)
1694
+ */
1695
+ export interface MessageReceivedV2025WebhookEvent {
1696
+ /**
1697
+ * API version for the webhook payload format
1698
+ */
1699
+ api_version: string;
1700
+
1701
+ /**
1702
+ * When the event was created
1703
+ */
1704
+ created_at: string;
1705
+
1706
+ /**
1707
+ * Unified payload for message.sent and message.received webhook events (2025-01-01
1708
+ * format)
1709
+ */
1710
+ data: MessageReceivedV2025WebhookEvent.Data;
1711
+
1712
+ /**
1713
+ * Unique identifier for this event (for deduplication)
1714
+ */
1715
+ event_id: string;
1716
+
1717
+ /**
1718
+ * Valid webhook event types that can be subscribed to
1719
+ */
1720
+ event_type: WebhookEventsAPI.WebhookEventType;
1721
+
1722
+ /**
1723
+ * Partner identifier. Present on all webhooks for cross-referencing.
1724
+ */
1725
+ partner_id: string;
1726
+
1727
+ /**
1728
+ * Trace ID for debugging and correlation across systems.
1729
+ */
1730
+ trace_id: string;
1731
+
1732
+ /**
1733
+ * Date-based webhook payload version. Determined by the `?version=` query
1734
+ * parameter in your webhook subscription URL. If no version parameter is
1735
+ * specified, defaults based on subscription creation date.
1736
+ */
1737
+ webhook_version: string;
1738
+ }
1739
+
1740
+ export namespace MessageReceivedV2025WebhookEvent {
1741
+ /**
1742
+ * Unified payload for message.sent and message.received webhook events (2025-01-01
1743
+ * format)
1744
+ */
1745
+ export interface Data {
1746
+ /**
1747
+ * Chat identifier
1748
+ */
1749
+ chat_id?: string;
1750
+
1751
+ /**
1752
+ * @deprecated DEPRECATED: Use from_handle instead. Phone number or email address
1753
+ * of the message sender.
1754
+ */
1755
+ from?: string;
1756
+
1757
+ /**
1758
+ * The sender of this message as a full handle object
1759
+ */
1760
+ from_handle?: MessagesAPI.ChatHandle;
1761
+
1762
+ /**
1763
+ * Idempotency key for the message. Used for deduplication of outbound messages.
1764
+ */
1765
+ idempotency_key?: string | null;
1766
+
1767
+ /**
1768
+ * Whether the message was sent by us (true for sent events, false for received
1769
+ * events)
1770
+ */
1771
+ is_from_me?: boolean;
1772
+
1773
+ /**
1774
+ * Whether this is a group chat
1775
+ */
1776
+ is_group?: boolean;
1777
+
1778
+ /**
1779
+ * Message content nested within webhook events
1780
+ */
1781
+ message?: WebhooksAPI.MessagePayload;
1782
+
1783
+ /**
1784
+ * Preferred messaging service type. Includes "auto" for default fallback behavior.
1785
+ */
1786
+ preferred_service?: 'iMessage' | 'SMS' | 'RCS' | 'auto' | null;
1787
+
1788
+ /**
1789
+ * When the message was received. Null for sent events.
1790
+ */
1791
+ received_at?: string | null;
1792
+
1793
+ /**
1794
+ * Our phone number that received the message as a full handle object. Null for
1795
+ * sent events.
1796
+ */
1797
+ recipient_handle?: MessagesAPI.ChatHandle | null;
1798
+
1799
+ /**
1800
+ * @deprecated DEPRECATED: Use recipient_handle instead. Our phone number that
1801
+ * received the message. Null for sent events.
1802
+ */
1803
+ recipient_phone?: string | null;
1804
+
1805
+ /**
1806
+ * Messaging service type
1807
+ */
1808
+ service?: Shared.ServiceType | null;
1809
+ }
1810
+ }
1811
+
1812
+ /**
1813
+ * Complete webhook payload for message.read events (2025-01-01 format)
1814
+ */
1815
+ export interface MessageReadV2025WebhookEvent {
1816
+ /**
1817
+ * API version for the webhook payload format
1818
+ */
1819
+ api_version: string;
1820
+
1821
+ /**
1822
+ * When the event was created
1823
+ */
1824
+ created_at: string;
1825
+
1826
+ /**
1827
+ * Payload for message.read webhook events (2025-01-01 format). Extends
1828
+ * MessageEvent with read_at and message_id.
1829
+ */
1830
+ data: MessageReadV2025WebhookEvent.Data;
1831
+
1832
+ /**
1833
+ * Unique identifier for this event (for deduplication)
1834
+ */
1835
+ event_id: string;
1836
+
1837
+ /**
1838
+ * Valid webhook event types that can be subscribed to
1839
+ */
1840
+ event_type: WebhookEventsAPI.WebhookEventType;
1841
+
1842
+ /**
1843
+ * Partner identifier. Present on all webhooks for cross-referencing.
1844
+ */
1845
+ partner_id: string;
1846
+
1847
+ /**
1848
+ * Trace ID for debugging and correlation across systems.
1849
+ */
1850
+ trace_id: string;
1851
+
1852
+ /**
1853
+ * Date-based webhook payload version. Determined by the `?version=` query
1854
+ * parameter in your webhook subscription URL. If no version parameter is
1855
+ * specified, defaults based on subscription creation date.
1856
+ */
1857
+ webhook_version: string;
1858
+ }
1859
+
1860
+ export namespace MessageReadV2025WebhookEvent {
1861
+ /**
1862
+ * Payload for message.read webhook events (2025-01-01 format). Extends
1863
+ * MessageEvent with read_at and message_id.
1864
+ */
1865
+ export interface Data {
1866
+ /**
1867
+ * When the message was read
1868
+ */
1869
+ read_at: string;
1870
+
1871
+ /**
1872
+ * Chat identifier
1873
+ */
1874
+ chat_id?: string;
1875
+
1876
+ /**
1877
+ * @deprecated DEPRECATED: Use from_handle instead. Phone number or email address
1878
+ * of the message sender.
1879
+ */
1880
+ from?: string;
1881
+
1882
+ /**
1883
+ * The sender of this message as a full handle object
1884
+ */
1885
+ from_handle?: MessagesAPI.ChatHandle;
1886
+
1887
+ /**
1888
+ * Idempotency key for the message. Used for deduplication of outbound messages.
1889
+ */
1890
+ idempotency_key?: string | null;
1891
+
1892
+ /**
1893
+ * Whether the message was sent by us (true for sent events, false for received
1894
+ * events)
1895
+ */
1896
+ is_from_me?: boolean;
1897
+
1898
+ /**
1899
+ * Whether this is a group chat
1900
+ */
1901
+ is_group?: boolean;
1902
+
1903
+ /**
1904
+ * Message content nested within webhook events
1905
+ */
1906
+ message?: WebhooksAPI.MessagePayload;
1907
+
1908
+ /**
1909
+ * Message identifier (UUID)
1910
+ */
1911
+ message_id?: string;
1912
+
1913
+ /**
1914
+ * Preferred messaging service type. Includes "auto" for default fallback behavior.
1915
+ */
1916
+ preferred_service?: 'iMessage' | 'SMS' | 'RCS' | 'auto' | null;
1917
+
1918
+ /**
1919
+ * When the message was received. Null for sent events.
1920
+ */
1921
+ received_at?: string | null;
1922
+
1923
+ /**
1924
+ * Our phone number that received the message as a full handle object. Null for
1925
+ * sent events.
1926
+ */
1927
+ recipient_handle?: MessagesAPI.ChatHandle | null;
1928
+
1929
+ /**
1930
+ * @deprecated DEPRECATED: Use recipient_handle instead. Our phone number that
1931
+ * received the message. Null for sent events.
1932
+ */
1933
+ recipient_phone?: string | null;
1934
+
1935
+ /**
1936
+ * Messaging service type
1937
+ */
1938
+ service?: Shared.ServiceType | null;
1939
+ }
1940
+ }
1941
+
1942
+ /**
1943
+ * Complete webhook payload for message.delivered events (2025-01-01 format)
1944
+ */
1945
+ export interface MessageDeliveredV2025WebhookEvent {
1946
+ /**
1947
+ * API version for the webhook payload format
1948
+ */
1949
+ api_version: string;
1950
+
1951
+ /**
1952
+ * When the event was created
1953
+ */
1954
+ created_at: string;
1955
+
1956
+ /**
1957
+ * Payload for message.delivered webhook events (2025-01-01 format). Extends
1958
+ * MessageEvent with delivered_at and message_id.
1959
+ */
1960
+ data: MessageDeliveredV2025WebhookEvent.Data;
1961
+
1962
+ /**
1963
+ * Unique identifier for this event (for deduplication)
1964
+ */
1965
+ event_id: string;
1966
+
1967
+ /**
1968
+ * Valid webhook event types that can be subscribed to
1969
+ */
1970
+ event_type: WebhookEventsAPI.WebhookEventType;
1971
+
1972
+ /**
1973
+ * Partner identifier. Present on all webhooks for cross-referencing.
1974
+ */
1975
+ partner_id: string;
1976
+
1977
+ /**
1978
+ * Trace ID for debugging and correlation across systems.
1979
+ */
1980
+ trace_id: string;
1981
+
1982
+ /**
1983
+ * Date-based webhook payload version. Determined by the `?version=` query
1984
+ * parameter in your webhook subscription URL. If no version parameter is
1985
+ * specified, defaults based on subscription creation date.
1986
+ */
1987
+ webhook_version: string;
1988
+ }
1989
+
1990
+ export namespace MessageDeliveredV2025WebhookEvent {
1991
+ /**
1992
+ * Payload for message.delivered webhook events (2025-01-01 format). Extends
1993
+ * MessageEvent with delivered_at and message_id.
1994
+ */
1995
+ export interface Data {
1996
+ /**
1997
+ * When the message was delivered to the recipient's device
1998
+ */
1999
+ delivered_at: string;
2000
+
2001
+ /**
2002
+ * Chat identifier
2003
+ */
2004
+ chat_id?: string;
2005
+
2006
+ /**
2007
+ * @deprecated DEPRECATED: Use from_handle instead. Phone number or email address
2008
+ * of the message sender.
2009
+ */
2010
+ from?: string;
2011
+
2012
+ /**
2013
+ * The sender of this message as a full handle object
2014
+ */
2015
+ from_handle?: MessagesAPI.ChatHandle;
2016
+
2017
+ /**
2018
+ * Idempotency key for the message. Used for deduplication of outbound messages.
2019
+ */
2020
+ idempotency_key?: string | null;
2021
+
2022
+ /**
2023
+ * Whether the message was sent by us (true for sent events, false for received
2024
+ * events)
2025
+ */
2026
+ is_from_me?: boolean;
2027
+
2028
+ /**
2029
+ * Whether this is a group chat
2030
+ */
2031
+ is_group?: boolean;
2032
+
2033
+ /**
2034
+ * Message content nested within webhook events
2035
+ */
2036
+ message?: WebhooksAPI.MessagePayload;
2037
+
2038
+ /**
2039
+ * Message identifier (UUID)
2040
+ */
2041
+ message_id?: string;
2042
+
2043
+ /**
2044
+ * Preferred messaging service type. Includes "auto" for default fallback behavior.
2045
+ */
2046
+ preferred_service?: 'iMessage' | 'SMS' | 'RCS' | 'auto' | null;
2047
+
2048
+ /**
2049
+ * When the message was received. Null for sent events.
2050
+ */
2051
+ received_at?: string | null;
2052
+
2053
+ /**
2054
+ * Our phone number that received the message as a full handle object. Null for
2055
+ * sent events.
2056
+ */
2057
+ recipient_handle?: MessagesAPI.ChatHandle | null;
2058
+
2059
+ /**
2060
+ * @deprecated DEPRECATED: Use recipient_handle instead. Our phone number that
2061
+ * received the message. Null for sent events.
2062
+ */
2063
+ recipient_phone?: string | null;
2064
+
2065
+ /**
2066
+ * Messaging service type
2067
+ */
2068
+ service?: Shared.ServiceType | null;
2069
+ }
2070
+ }
2071
+
2072
+ /**
2073
+ * Complete webhook payload for message.failed events
2074
+ */
2075
+ export interface MessageFailedV2025WebhookEvent {
2076
+ /**
2077
+ * API version for the webhook payload format
2078
+ */
2079
+ api_version: string;
2080
+
2081
+ /**
2082
+ * When the event was created
2083
+ */
2084
+ created_at: string;
2085
+
2086
+ /**
2087
+ * Error details for message.failed webhook events. See
2088
+ * [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
2089
+ * code reference.
2090
+ */
2091
+ data: MessageFailedV2025WebhookEvent.Data;
2092
+
2093
+ /**
2094
+ * Unique identifier for this event (for deduplication)
2095
+ */
2096
+ event_id: string;
2097
+
2098
+ /**
2099
+ * Valid webhook event types that can be subscribed to
2100
+ */
2101
+ event_type: WebhookEventsAPI.WebhookEventType;
2102
+
2103
+ /**
2104
+ * Partner identifier. Present on all webhooks for cross-referencing.
2105
+ */
2106
+ partner_id: string;
2107
+
2108
+ /**
2109
+ * Trace ID for debugging and correlation across systems.
2110
+ */
2111
+ trace_id: string;
2112
+
2113
+ /**
2114
+ * Date-based webhook payload version. Determined by the `?version=` query
2115
+ * parameter in your webhook subscription URL. If no version parameter is
2116
+ * specified, defaults based on subscription creation date.
2117
+ */
2118
+ webhook_version: string;
2119
+ }
2120
+
2121
+ export namespace MessageFailedV2025WebhookEvent {
2122
+ /**
2123
+ * Error details for message.failed webhook events. See
2124
+ * [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
2125
+ * code reference.
2126
+ */
2127
+ export interface Data {
2128
+ /**
2129
+ * Error codes in webhook failure events (3007, 4001).
2130
+ */
2131
+ code: number;
2132
+
2133
+ /**
2134
+ * When the failure was detected
2135
+ */
2136
+ failed_at: string;
2137
+
2138
+ /**
2139
+ * Chat identifier (UUID)
2140
+ */
2141
+ chat_id?: string;
2142
+
2143
+ /**
2144
+ * Message identifier (UUID)
2145
+ */
2146
+ message_id?: string;
2147
+
2148
+ /**
2149
+ * Human-readable description of the failure
2150
+ */
2151
+ reason?: string;
2152
+ }
2153
+ }
2154
+
2155
+ /**
2156
+ * Complete webhook payload for reaction.added events
2157
+ */
2158
+ export interface ReactionAddedV2025WebhookEvent {
2159
+ /**
2160
+ * API version for the webhook payload format
2161
+ */
2162
+ api_version: string;
2163
+
2164
+ /**
2165
+ * When the event was created
2166
+ */
2167
+ created_at: string;
2168
+
2169
+ /**
2170
+ * Payload for reaction.added webhook events
2171
+ */
2172
+ data: ReactionEventBase;
2173
+
2174
+ /**
2175
+ * Unique identifier for this event (for deduplication)
2176
+ */
2177
+ event_id: string;
2178
+
2179
+ /**
2180
+ * Valid webhook event types that can be subscribed to
2181
+ */
2182
+ event_type: WebhookEventsAPI.WebhookEventType;
2183
+
2184
+ /**
2185
+ * Partner identifier. Present on all webhooks for cross-referencing.
2186
+ */
2187
+ partner_id: string;
2188
+
2189
+ /**
2190
+ * Trace ID for debugging and correlation across systems.
2191
+ */
2192
+ trace_id: string;
2193
+
2194
+ /**
2195
+ * Date-based webhook payload version. Determined by the `?version=` query
2196
+ * parameter in your webhook subscription URL. If no version parameter is
2197
+ * specified, defaults based on subscription creation date.
2198
+ */
2199
+ webhook_version: string;
2200
+ }
2201
+
2202
+ /**
2203
+ * Complete webhook payload for reaction.removed events
2204
+ */
2205
+ export interface ReactionRemovedV2025WebhookEvent {
2206
+ /**
2207
+ * API version for the webhook payload format
2208
+ */
2209
+ api_version: string;
2210
+
2211
+ /**
2212
+ * When the event was created
2213
+ */
2214
+ created_at: string;
2215
+
2216
+ /**
2217
+ * Payload for reaction.removed webhook events
2218
+ */
2219
+ data: ReactionEventBase;
2220
+
2221
+ /**
2222
+ * Unique identifier for this event (for deduplication)
2223
+ */
2224
+ event_id: string;
2225
+
2226
+ /**
2227
+ * Valid webhook event types that can be subscribed to
2228
+ */
2229
+ event_type: WebhookEventsAPI.WebhookEventType;
2230
+
2231
+ /**
2232
+ * Partner identifier. Present on all webhooks for cross-referencing.
2233
+ */
2234
+ partner_id: string;
2235
+
2236
+ /**
2237
+ * Trace ID for debugging and correlation across systems.
2238
+ */
2239
+ trace_id: string;
2240
+
2241
+ /**
2242
+ * Date-based webhook payload version. Determined by the `?version=` query
2243
+ * parameter in your webhook subscription URL. If no version parameter is
2244
+ * specified, defaults based on subscription creation date.
2245
+ */
2246
+ webhook_version: string;
2247
+ }
2248
+
2249
+ /**
2250
+ * Complete webhook payload for participant.added events
2251
+ */
2252
+ export interface ParticipantAddedV2025WebhookEvent {
2253
+ /**
2254
+ * API version for the webhook payload format
2255
+ */
2256
+ api_version: string;
2257
+
2258
+ /**
2259
+ * When the event was created
2260
+ */
2261
+ created_at: string;
2262
+
2263
+ /**
2264
+ * Payload for participant.added webhook events
2265
+ */
2266
+ data: ParticipantAddedV2025WebhookEvent.Data;
2267
+
2268
+ /**
2269
+ * Unique identifier for this event (for deduplication)
2270
+ */
2271
+ event_id: string;
2272
+
2273
+ /**
2274
+ * Valid webhook event types that can be subscribed to
2275
+ */
2276
+ event_type: WebhookEventsAPI.WebhookEventType;
2277
+
2278
+ /**
2279
+ * Partner identifier. Present on all webhooks for cross-referencing.
2280
+ */
2281
+ partner_id: string;
2282
+
2283
+ /**
2284
+ * Trace ID for debugging and correlation across systems.
2285
+ */
2286
+ trace_id: string;
2287
+
2288
+ /**
2289
+ * Date-based webhook payload version. Determined by the `?version=` query
2290
+ * parameter in your webhook subscription URL. If no version parameter is
2291
+ * specified, defaults based on subscription creation date.
2292
+ */
2293
+ webhook_version: string;
2294
+ }
2295
+
2296
+ export namespace ParticipantAddedV2025WebhookEvent {
2297
+ /**
2298
+ * Payload for participant.added webhook events
2299
+ */
2300
+ export interface Data {
2301
+ /**
2302
+ * @deprecated DEPRECATED: Use participant instead. Handle (phone number or email
2303
+ * address) of the added participant.
2304
+ */
2305
+ handle: string;
2306
+
2307
+ /**
2308
+ * When the participant was added
2309
+ */
2310
+ added_at?: string;
2311
+
2312
+ /**
2313
+ * Chat identifier (UUID) of the group chat
2314
+ */
2315
+ chat_id?: string;
2316
+
2317
+ /**
2318
+ * The added participant as a full handle object
2319
+ */
2320
+ participant?: MessagesAPI.ChatHandle;
2321
+ }
2322
+ }
2323
+
2324
+ /**
2325
+ * Complete webhook payload for participant.removed events
2326
+ */
2327
+ export interface ParticipantRemovedV2025WebhookEvent {
2328
+ /**
2329
+ * API version for the webhook payload format
2330
+ */
2331
+ api_version: string;
2332
+
2333
+ /**
2334
+ * When the event was created
2335
+ */
2336
+ created_at: string;
2337
+
2338
+ /**
2339
+ * Payload for participant.removed webhook events
2340
+ */
2341
+ data: ParticipantRemovedV2025WebhookEvent.Data;
2342
+
2343
+ /**
2344
+ * Unique identifier for this event (for deduplication)
2345
+ */
2346
+ event_id: string;
2347
+
2348
+ /**
2349
+ * Valid webhook event types that can be subscribed to
2350
+ */
2351
+ event_type: WebhookEventsAPI.WebhookEventType;
2352
+
2353
+ /**
2354
+ * Partner identifier. Present on all webhooks for cross-referencing.
2355
+ */
2356
+ partner_id: string;
2357
+
2358
+ /**
2359
+ * Trace ID for debugging and correlation across systems.
2360
+ */
2361
+ trace_id: string;
2362
+
2363
+ /**
2364
+ * Date-based webhook payload version. Determined by the `?version=` query
2365
+ * parameter in your webhook subscription URL. If no version parameter is
2366
+ * specified, defaults based on subscription creation date.
2367
+ */
2368
+ webhook_version: string;
2369
+ }
2370
+
2371
+ export namespace ParticipantRemovedV2025WebhookEvent {
2372
+ /**
2373
+ * Payload for participant.removed webhook events
2374
+ */
2375
+ export interface Data {
2376
+ /**
2377
+ * @deprecated DEPRECATED: Use participant instead. Handle (phone number or email
2378
+ * address) of the removed participant.
2379
+ */
2380
+ handle: string;
2381
+
2382
+ /**
2383
+ * Chat identifier (UUID) of the group chat
2384
+ */
2385
+ chat_id?: string;
2386
+
2387
+ /**
2388
+ * The removed participant as a full handle object
2389
+ */
2390
+ participant?: MessagesAPI.ChatHandle;
2391
+
2392
+ /**
2393
+ * When the participant was removed
2394
+ */
2395
+ removed_at?: string;
2396
+ }
2397
+ }
2398
+
2399
+ /**
2400
+ * Complete webhook payload for chat.group_name_updated events
2401
+ */
2402
+ export interface ChatGroupNameUpdatedV2025WebhookEvent {
2403
+ /**
2404
+ * API version for the webhook payload format
2405
+ */
2406
+ api_version: string;
2407
+
2408
+ /**
2409
+ * When the event was created
2410
+ */
2411
+ created_at: string;
2412
+
2413
+ /**
2414
+ * Payload for chat.group_name_updated webhook events
2415
+ */
2416
+ data: ChatGroupNameUpdatedV2025WebhookEvent.Data;
2417
+
2418
+ /**
2419
+ * Unique identifier for this event (for deduplication)
2420
+ */
2421
+ event_id: string;
2422
+
2423
+ /**
2424
+ * Valid webhook event types that can be subscribed to
2425
+ */
2426
+ event_type: WebhookEventsAPI.WebhookEventType;
2427
+
2428
+ /**
2429
+ * Partner identifier. Present on all webhooks for cross-referencing.
2430
+ */
2431
+ partner_id: string;
2432
+
2433
+ /**
2434
+ * Trace ID for debugging and correlation across systems.
2435
+ */
2436
+ trace_id: string;
2437
+
2438
+ /**
2439
+ * Date-based webhook payload version. Determined by the `?version=` query
2440
+ * parameter in your webhook subscription URL. If no version parameter is
2441
+ * specified, defaults based on subscription creation date.
2442
+ */
2443
+ webhook_version: string;
2444
+ }
2445
+
2446
+ export namespace ChatGroupNameUpdatedV2025WebhookEvent {
2447
+ /**
2448
+ * Payload for chat.group_name_updated webhook events
2449
+ */
2450
+ export interface Data {
2451
+ /**
2452
+ * Chat identifier (UUID) of the group chat
2453
+ */
2454
+ chat_id: string;
2455
+
2456
+ /**
2457
+ * When the update occurred
2458
+ */
2459
+ updated_at: string;
2460
+
2461
+ /**
2462
+ * The handle who made the change.
2463
+ */
2464
+ changed_by_handle?: MessagesAPI.ChatHandle | null;
2465
+
2466
+ /**
2467
+ * New group name (null if the name was removed)
2468
+ */
2469
+ new_value?: string | null;
2470
+
2471
+ /**
2472
+ * Previous group name (null if no previous name)
2473
+ */
2474
+ old_value?: string | null;
2475
+ }
2476
+ }
2477
+
2478
+ /**
2479
+ * Complete webhook payload for chat.group_icon_updated events
2480
+ */
2481
+ export interface ChatGroupIconUpdatedV2025WebhookEvent {
2482
+ /**
2483
+ * API version for the webhook payload format
2484
+ */
2485
+ api_version: string;
2486
+
2487
+ /**
2488
+ * When the event was created
2489
+ */
2490
+ created_at: string;
2491
+
2492
+ /**
2493
+ * Payload for chat.group_icon_updated webhook events
2494
+ */
2495
+ data: ChatGroupIconUpdatedV2025WebhookEvent.Data;
2496
+
2497
+ /**
2498
+ * Unique identifier for this event (for deduplication)
2499
+ */
2500
+ event_id: string;
2501
+
2502
+ /**
2503
+ * Valid webhook event types that can be subscribed to
2504
+ */
2505
+ event_type: WebhookEventsAPI.WebhookEventType;
2506
+
2507
+ /**
2508
+ * Partner identifier. Present on all webhooks for cross-referencing.
2509
+ */
2510
+ partner_id: string;
2511
+
2512
+ /**
2513
+ * Trace ID for debugging and correlation across systems.
2514
+ */
2515
+ trace_id: string;
2516
+
2517
+ /**
2518
+ * Date-based webhook payload version. Determined by the `?version=` query
2519
+ * parameter in your webhook subscription URL. If no version parameter is
2520
+ * specified, defaults based on subscription creation date.
2521
+ */
2522
+ webhook_version: string;
2523
+ }
2524
+
2525
+ export namespace ChatGroupIconUpdatedV2025WebhookEvent {
2526
+ /**
2527
+ * Payload for chat.group_icon_updated webhook events
2528
+ */
2529
+ export interface Data {
2530
+ /**
2531
+ * Chat identifier (UUID) of the group chat
2532
+ */
2533
+ chat_id: string;
2534
+
2535
+ /**
2536
+ * When the update occurred
2537
+ */
2538
+ updated_at: string;
2539
+
2540
+ /**
2541
+ * The handle who made the change.
2542
+ */
2543
+ changed_by_handle?: MessagesAPI.ChatHandle | null;
2544
+
2545
+ /**
2546
+ * New icon URL (null if the icon was removed)
2547
+ */
2548
+ new_value?: string | null;
2549
+
2550
+ /**
2551
+ * Previous icon URL (null if no previous icon)
2552
+ */
2553
+ old_value?: string | null;
2554
+ }
2555
+ }
2556
+
2557
+ /**
2558
+ * Complete webhook payload for chat.group_name_update_failed events
2559
+ */
2560
+ export interface ChatGroupNameUpdateFailedV2025WebhookEvent {
2561
+ /**
2562
+ * API version for the webhook payload format
2563
+ */
2564
+ api_version: string;
2565
+
2566
+ /**
2567
+ * When the event was created
2568
+ */
2569
+ created_at: string;
2570
+
2571
+ /**
2572
+ * Error details for chat.group_name_update_failed webhook events. See
2573
+ * [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
2574
+ * code reference.
2575
+ */
2576
+ data: ChatGroupNameUpdateFailedV2025WebhookEvent.Data;
2577
+
2578
+ /**
2579
+ * Unique identifier for this event (for deduplication)
2580
+ */
2581
+ event_id: string;
2582
+
2583
+ /**
2584
+ * Valid webhook event types that can be subscribed to
2585
+ */
2586
+ event_type: WebhookEventsAPI.WebhookEventType;
2587
+
2588
+ /**
2589
+ * Partner identifier. Present on all webhooks for cross-referencing.
2590
+ */
2591
+ partner_id: string;
2592
+
2593
+ /**
2594
+ * Trace ID for debugging and correlation across systems.
2595
+ */
2596
+ trace_id: string;
2597
+
2598
+ /**
2599
+ * Date-based webhook payload version. Determined by the `?version=` query
2600
+ * parameter in your webhook subscription URL. If no version parameter is
2601
+ * specified, defaults based on subscription creation date.
2602
+ */
2603
+ webhook_version: string;
2604
+ }
2605
+
2606
+ export namespace ChatGroupNameUpdateFailedV2025WebhookEvent {
2607
+ /**
2608
+ * Error details for chat.group_name_update_failed webhook events. See
2609
+ * [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
2610
+ * code reference.
2611
+ */
2612
+ export interface Data {
2613
+ /**
2614
+ * Chat identifier (UUID) of the group chat
2615
+ */
2616
+ chat_id: string;
2617
+
2618
+ /**
2619
+ * Error codes in webhook failure events (3007, 4001).
2620
+ */
2621
+ error_code: number;
2622
+
2623
+ /**
2624
+ * When the failure was detected
2625
+ */
2626
+ failed_at: string;
2627
+ }
2628
+ }
2629
+
2630
+ /**
2631
+ * Complete webhook payload for chat.group_icon_update_failed events
2632
+ */
2633
+ export interface ChatGroupIconUpdateFailedV2025WebhookEvent {
2634
+ /**
2635
+ * API version for the webhook payload format
2636
+ */
2637
+ api_version: string;
2638
+
2639
+ /**
2640
+ * When the event was created
2641
+ */
2642
+ created_at: string;
2643
+
2644
+ /**
2645
+ * Error details for chat.group_icon_update_failed webhook events. See
2646
+ * [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
2647
+ * code reference.
2648
+ */
2649
+ data: ChatGroupIconUpdateFailedV2025WebhookEvent.Data;
2650
+
2651
+ /**
2652
+ * Unique identifier for this event (for deduplication)
2653
+ */
2654
+ event_id: string;
2655
+
2656
+ /**
2657
+ * Valid webhook event types that can be subscribed to
2658
+ */
2659
+ event_type: WebhookEventsAPI.WebhookEventType;
2660
+
2661
+ /**
2662
+ * Partner identifier. Present on all webhooks for cross-referencing.
2663
+ */
2664
+ partner_id: string;
2665
+
2666
+ /**
2667
+ * Trace ID for debugging and correlation across systems.
2668
+ */
2669
+ trace_id: string;
2670
+
2671
+ /**
2672
+ * Date-based webhook payload version. Determined by the `?version=` query
2673
+ * parameter in your webhook subscription URL. If no version parameter is
2674
+ * specified, defaults based on subscription creation date.
2675
+ */
2676
+ webhook_version: string;
2677
+ }
2678
+
2679
+ export namespace ChatGroupIconUpdateFailedV2025WebhookEvent {
2680
+ /**
2681
+ * Error details for chat.group_icon_update_failed webhook events. See
2682
+ * [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
2683
+ * code reference.
2684
+ */
2685
+ export interface Data {
2686
+ /**
2687
+ * Chat identifier (UUID) of the group chat
2688
+ */
2689
+ chat_id: string;
2690
+
2691
+ /**
2692
+ * Error codes in webhook failure events (3007, 4001).
2693
+ */
2694
+ error_code: number;
2695
+
2696
+ /**
2697
+ * When the failure was detected
2698
+ */
2699
+ failed_at: string;
2700
+ }
2701
+ }
2702
+
2703
+ /**
2704
+ * Complete webhook payload for chat.created events
2705
+ */
2706
+ export interface ChatCreatedV2025WebhookEvent {
2707
+ /**
2708
+ * API version for the webhook payload format
2709
+ */
2710
+ api_version: string;
2711
+
2712
+ /**
2713
+ * When the event was created
2714
+ */
2715
+ created_at: string;
2716
+
2717
+ /**
2718
+ * Payload for chat.created webhook events. Matches GET /v3/chats/{chatId}
2719
+ * response.
2720
+ */
2721
+ data: ChatCreatedV2025WebhookEvent.Data;
2722
+
2723
+ /**
2724
+ * Unique identifier for this event (for deduplication)
2725
+ */
2726
+ event_id: string;
2727
+
2728
+ /**
2729
+ * Valid webhook event types that can be subscribed to
2730
+ */
2731
+ event_type: WebhookEventsAPI.WebhookEventType;
2732
+
2733
+ /**
2734
+ * Partner identifier. Present on all webhooks for cross-referencing.
2735
+ */
2736
+ partner_id: string;
2737
+
2738
+ /**
2739
+ * Trace ID for debugging and correlation across systems.
2740
+ */
2741
+ trace_id: string;
2742
+
2743
+ /**
2744
+ * Date-based webhook payload version. Determined by the `?version=` query
2745
+ * parameter in your webhook subscription URL. If no version parameter is
2746
+ * specified, defaults based on subscription creation date.
2747
+ */
2748
+ webhook_version: string;
2749
+ }
2750
+
2751
+ export namespace ChatCreatedV2025WebhookEvent {
2752
+ /**
2753
+ * Payload for chat.created webhook events. Matches GET /v3/chats/{chatId}
2754
+ * response.
2755
+ */
2756
+ export interface Data {
2757
+ /**
2758
+ * Unique identifier for the chat
2759
+ */
2760
+ id: string;
2761
+
2762
+ /**
2763
+ * When the chat was created
2764
+ */
2765
+ created_at: string;
2766
+
2767
+ /**
2768
+ * Display name for the chat. Defaults to a comma-separated list of recipient
2769
+ * handles. Can be updated for group chats.
2770
+ */
2771
+ display_name: string | null;
2772
+
2773
+ /**
2774
+ * List of chat participants with full handle details. Always contains at least two
2775
+ * handles (your phone number and the other participant).
2776
+ */
2777
+ handles: Array<MessagesAPI.ChatHandle>;
2778
+
2779
+ /**
2780
+ * Whether this is a group chat
2781
+ */
2782
+ is_group: boolean;
2783
+
2784
+ /**
2785
+ * When the chat was last updated
2786
+ */
2787
+ updated_at: string;
2788
+
2789
+ /**
2790
+ * Messaging service type
2791
+ */
2792
+ service?: Shared.ServiceType | null;
2793
+ }
2794
+ }
2795
+
2796
+ /**
2797
+ * Complete webhook payload for chat.typing_indicator.started events
2798
+ */
2799
+ export interface ChatTypingIndicatorStartedV2025WebhookEvent {
2800
+ /**
2801
+ * API version for the webhook payload format
2802
+ */
2803
+ api_version: string;
2804
+
2805
+ /**
2806
+ * When the event was created
2807
+ */
2808
+ created_at: string;
2809
+
2810
+ /**
2811
+ * Payload for chat.typing_indicator.started webhook events
2812
+ */
2813
+ data: ChatTypingIndicatorStartedV2025WebhookEvent.Data;
2814
+
2815
+ /**
2816
+ * Unique identifier for this event (for deduplication)
2817
+ */
2818
+ event_id: string;
2819
+
2820
+ /**
2821
+ * Valid webhook event types that can be subscribed to
2822
+ */
2823
+ event_type: WebhookEventsAPI.WebhookEventType;
2824
+
2825
+ /**
2826
+ * Partner identifier. Present on all webhooks for cross-referencing.
2827
+ */
2828
+ partner_id: string;
2829
+
2830
+ /**
2831
+ * Trace ID for debugging and correlation across systems.
2832
+ */
2833
+ trace_id: string;
2834
+
2835
+ /**
2836
+ * Date-based webhook payload version. Determined by the `?version=` query
2837
+ * parameter in your webhook subscription URL. If no version parameter is
2838
+ * specified, defaults based on subscription creation date.
2839
+ */
2840
+ webhook_version: string;
2841
+ }
2842
+
2843
+ export namespace ChatTypingIndicatorStartedV2025WebhookEvent {
2844
+ /**
2845
+ * Payload for chat.typing_indicator.started webhook events
2846
+ */
2847
+ export interface Data {
2848
+ /**
2849
+ * Chat identifier
2850
+ */
2851
+ chat_id: string;
2852
+ }
2853
+ }
2854
+
2855
+ /**
2856
+ * Complete webhook payload for chat.typing_indicator.stopped events
2857
+ */
2858
+ export interface ChatTypingIndicatorStoppedV2025WebhookEvent {
2859
+ /**
2860
+ * API version for the webhook payload format
2861
+ */
2862
+ api_version: string;
2863
+
2864
+ /**
2865
+ * When the event was created
2866
+ */
2867
+ created_at: string;
2868
+
2869
+ /**
2870
+ * Payload for chat.typing_indicator.stopped webhook events
2871
+ */
2872
+ data: ChatTypingIndicatorStoppedV2025WebhookEvent.Data;
2873
+
2874
+ /**
2875
+ * Unique identifier for this event (for deduplication)
2876
+ */
2877
+ event_id: string;
2878
+
2879
+ /**
2880
+ * Valid webhook event types that can be subscribed to
2881
+ */
2882
+ event_type: WebhookEventsAPI.WebhookEventType;
2883
+
2884
+ /**
2885
+ * Partner identifier. Present on all webhooks for cross-referencing.
2886
+ */
2887
+ partner_id: string;
2888
+
2889
+ /**
2890
+ * Trace ID for debugging and correlation across systems.
2891
+ */
2892
+ trace_id: string;
2893
+
2894
+ /**
2895
+ * Date-based webhook payload version. Determined by the `?version=` query
2896
+ * parameter in your webhook subscription URL. If no version parameter is
2897
+ * specified, defaults based on subscription creation date.
2898
+ */
2899
+ webhook_version: string;
2900
+ }
2901
+
2902
+ export namespace ChatTypingIndicatorStoppedV2025WebhookEvent {
2903
+ /**
2904
+ * Payload for chat.typing_indicator.stopped webhook events
2905
+ */
2906
+ export interface Data {
2907
+ /**
2908
+ * Chat identifier
2909
+ */
2910
+ chat_id: string;
2911
+ }
2912
+ }
2913
+
2914
+ /**
2915
+ * Complete webhook payload for phone_number.status_updated events
2916
+ */
2917
+ export interface PhoneNumberStatusUpdatedV2025WebhookEvent {
2918
+ /**
2919
+ * API version for the webhook payload format
2920
+ */
2921
+ api_version: string;
2922
+
2923
+ /**
2924
+ * When the event was created
2925
+ */
2926
+ created_at: string;
2927
+
2928
+ /**
2929
+ * Payload for phone_number.status_updated webhook events
2930
+ */
2931
+ data: PhoneNumberStatusUpdatedV2025WebhookEvent.Data;
2932
+
2933
+ /**
2934
+ * Unique identifier for this event (for deduplication)
2935
+ */
2936
+ event_id: string;
2937
+
2938
+ /**
2939
+ * The type of event
2940
+ */
2941
+ event_type:
2942
+ | 'message.sent'
2943
+ | 'message.received'
2944
+ | 'message.read'
2945
+ | 'message.delivered'
2946
+ | 'message.failed'
2947
+ | 'message.edited'
2948
+ | 'reaction.added'
2949
+ | 'reaction.removed'
2950
+ | 'participant.added'
2951
+ | 'participant.removed'
2952
+ | 'chat.created'
2953
+ | 'chat.group_name_updated'
2954
+ | 'chat.group_icon_updated'
2955
+ | 'chat.group_name_update_failed'
2956
+ | 'chat.group_icon_update_failed'
2957
+ | 'chat.typing_indicator.started'
2958
+ | 'chat.typing_indicator.stopped'
2959
+ | 'phone_number.status_updated';
2960
+
2961
+ /**
2962
+ * Partner identifier. Present on all webhooks for cross-referencing.
2963
+ */
2964
+ partner_id: string;
2965
+
2966
+ /**
2967
+ * Trace ID for debugging and correlation across systems.
2968
+ */
2969
+ trace_id: string;
2970
+
2971
+ /**
2972
+ * Date-based webhook payload version. Determined by the `?version=` query
2973
+ * parameter in your webhook subscription URL. If no version parameter is
2974
+ * specified, defaults based on subscription creation date.
2975
+ */
2976
+ webhook_version: string;
2977
+ }
2978
+
2979
+ export namespace PhoneNumberStatusUpdatedV2025WebhookEvent {
2980
+ /**
2981
+ * Payload for phone_number.status_updated webhook events
2982
+ */
2983
+ export interface Data {
2984
+ /**
2985
+ * When the status change occurred
2986
+ */
2987
+ changed_at: string;
2988
+
2989
+ /**
2990
+ * The new service status
2991
+ */
2992
+ new_status: 'ACTIVE' | 'FLAGGED';
2993
+
2994
+ /**
2995
+ * Phone number in E.164 format
2996
+ */
2997
+ phone_number: string;
2998
+
2999
+ /**
3000
+ * The previous service status
3001
+ */
3002
+ previous_status: 'ACTIVE' | 'FLAGGED';
3003
+ }
3004
+ }
3005
+
3006
+ /**
3007
+ * Complete webhook payload for message.sent events (2026-02-03 format)
3008
+ */
3009
+ export type EventsWebhookEvent =
3010
+ | MessageSentV2026WebhookEvent
3011
+ | MessageReceivedV2026WebhookEvent
3012
+ | MessageReadV2026WebhookEvent
3013
+ | MessageDeliveredV2026WebhookEvent
3014
+ | MessageFailedV2026WebhookEvent
3015
+ | ReactionAddedV2026WebhookEvent
3016
+ | ReactionRemovedV2026WebhookEvent
3017
+ | ParticipantAddedV2026WebhookEvent
3018
+ | ParticipantRemovedV2026WebhookEvent
3019
+ | ChatGroupNameUpdatedV2026WebhookEvent
3020
+ | ChatGroupIconUpdatedV2026WebhookEvent
3021
+ | ChatGroupNameUpdateFailedV2026WebhookEvent
3022
+ | ChatGroupIconUpdateFailedV2026WebhookEvent
3023
+ | ChatCreatedV2026WebhookEvent
3024
+ | ChatTypingIndicatorStartedV2026WebhookEvent
3025
+ | ChatTypingIndicatorStoppedV2026WebhookEvent
3026
+ | PhoneNumberStatusUpdatedV2026WebhookEvent
3027
+ | MessageSentV2025WebhookEvent
3028
+ | MessageReceivedV2025WebhookEvent
3029
+ | MessageReadV2025WebhookEvent
3030
+ | MessageDeliveredV2025WebhookEvent
3031
+ | MessageFailedV2025WebhookEvent
3032
+ | ReactionAddedV2025WebhookEvent
3033
+ | ReactionRemovedV2025WebhookEvent
3034
+ | ParticipantAddedV2025WebhookEvent
3035
+ | ParticipantRemovedV2025WebhookEvent
3036
+ | ChatGroupNameUpdatedV2025WebhookEvent
3037
+ | ChatGroupIconUpdatedV2025WebhookEvent
3038
+ | ChatGroupNameUpdateFailedV2025WebhookEvent
3039
+ | ChatGroupIconUpdateFailedV2025WebhookEvent
3040
+ | ChatCreatedV2025WebhookEvent
3041
+ | ChatTypingIndicatorStartedV2025WebhookEvent
3042
+ | ChatTypingIndicatorStoppedV2025WebhookEvent
3043
+ | PhoneNumberStatusUpdatedV2025WebhookEvent;
3044
+
3045
+ export declare namespace Webhooks {
3046
+ export {
3047
+ type MessageEventV2 as MessageEventV2,
3048
+ type MessagePayload as MessagePayload,
3049
+ type ReactionEventBase as ReactionEventBase,
3050
+ type SchemasMediaPartResponse as SchemasMediaPartResponse,
3051
+ type SchemasMessageEffect as SchemasMessageEffect,
3052
+ type SchemasTextPartResponse as SchemasTextPartResponse,
3053
+ type MessageSentV2026WebhookEvent as MessageSentV2026WebhookEvent,
3054
+ type MessageReceivedV2026WebhookEvent as MessageReceivedV2026WebhookEvent,
3055
+ type MessageReadV2026WebhookEvent as MessageReadV2026WebhookEvent,
3056
+ type MessageDeliveredV2026WebhookEvent as MessageDeliveredV2026WebhookEvent,
3057
+ type MessageFailedV2026WebhookEvent as MessageFailedV2026WebhookEvent,
3058
+ type ReactionAddedV2026WebhookEvent as ReactionAddedV2026WebhookEvent,
3059
+ type ReactionRemovedV2026WebhookEvent as ReactionRemovedV2026WebhookEvent,
3060
+ type ParticipantAddedV2026WebhookEvent as ParticipantAddedV2026WebhookEvent,
3061
+ type ParticipantRemovedV2026WebhookEvent as ParticipantRemovedV2026WebhookEvent,
3062
+ type ChatGroupNameUpdatedV2026WebhookEvent as ChatGroupNameUpdatedV2026WebhookEvent,
3063
+ type ChatGroupIconUpdatedV2026WebhookEvent as ChatGroupIconUpdatedV2026WebhookEvent,
3064
+ type ChatGroupNameUpdateFailedV2026WebhookEvent as ChatGroupNameUpdateFailedV2026WebhookEvent,
3065
+ type ChatGroupIconUpdateFailedV2026WebhookEvent as ChatGroupIconUpdateFailedV2026WebhookEvent,
3066
+ type ChatCreatedV2026WebhookEvent as ChatCreatedV2026WebhookEvent,
3067
+ type ChatTypingIndicatorStartedV2026WebhookEvent as ChatTypingIndicatorStartedV2026WebhookEvent,
3068
+ type ChatTypingIndicatorStoppedV2026WebhookEvent as ChatTypingIndicatorStoppedV2026WebhookEvent,
3069
+ type PhoneNumberStatusUpdatedV2026WebhookEvent as PhoneNumberStatusUpdatedV2026WebhookEvent,
3070
+ type MessageSentV2025WebhookEvent as MessageSentV2025WebhookEvent,
3071
+ type MessageReceivedV2025WebhookEvent as MessageReceivedV2025WebhookEvent,
3072
+ type MessageReadV2025WebhookEvent as MessageReadV2025WebhookEvent,
3073
+ type MessageDeliveredV2025WebhookEvent as MessageDeliveredV2025WebhookEvent,
3074
+ type MessageFailedV2025WebhookEvent as MessageFailedV2025WebhookEvent,
3075
+ type ReactionAddedV2025WebhookEvent as ReactionAddedV2025WebhookEvent,
3076
+ type ReactionRemovedV2025WebhookEvent as ReactionRemovedV2025WebhookEvent,
3077
+ type ParticipantAddedV2025WebhookEvent as ParticipantAddedV2025WebhookEvent,
3078
+ type ParticipantRemovedV2025WebhookEvent as ParticipantRemovedV2025WebhookEvent,
3079
+ type ChatGroupNameUpdatedV2025WebhookEvent as ChatGroupNameUpdatedV2025WebhookEvent,
3080
+ type ChatGroupIconUpdatedV2025WebhookEvent as ChatGroupIconUpdatedV2025WebhookEvent,
3081
+ type ChatGroupNameUpdateFailedV2025WebhookEvent as ChatGroupNameUpdateFailedV2025WebhookEvent,
3082
+ type ChatGroupIconUpdateFailedV2025WebhookEvent as ChatGroupIconUpdateFailedV2025WebhookEvent,
3083
+ type ChatCreatedV2025WebhookEvent as ChatCreatedV2025WebhookEvent,
3084
+ type ChatTypingIndicatorStartedV2025WebhookEvent as ChatTypingIndicatorStartedV2025WebhookEvent,
3085
+ type ChatTypingIndicatorStoppedV2025WebhookEvent as ChatTypingIndicatorStoppedV2025WebhookEvent,
3086
+ type PhoneNumberStatusUpdatedV2025WebhookEvent as PhoneNumberStatusUpdatedV2025WebhookEvent,
3087
+ type EventsWebhookEvent as EventsWebhookEvent,
3088
+ };
3089
+ }