@linqapp/sdk 0.80.0 → 0.82.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 (118) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +77 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +77 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +75 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +75 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/available-number.d.mts +13 -0
  12. package/resources/available-number.d.mts.map +1 -1
  13. package/resources/available-number.d.ts +13 -0
  14. package/resources/available-number.d.ts.map +1 -1
  15. package/resources/available-number.js +13 -0
  16. package/resources/available-number.js.map +1 -1
  17. package/resources/available-number.mjs +13 -0
  18. package/resources/available-number.mjs.map +1 -1
  19. package/resources/call-voice.d.mts +82 -0
  20. package/resources/call-voice.d.mts.map +1 -0
  21. package/resources/call-voice.d.ts +82 -0
  22. package/resources/call-voice.d.ts.map +1 -0
  23. package/resources/call-voice.js +35 -0
  24. package/resources/call-voice.js.map +1 -0
  25. package/resources/call-voice.mjs +31 -0
  26. package/resources/call-voice.mjs.map +1 -0
  27. package/resources/chats/chats.d.mts +16 -3
  28. package/resources/chats/chats.d.mts.map +1 -1
  29. package/resources/chats/chats.d.ts +16 -3
  30. package/resources/chats/chats.d.ts.map +1 -1
  31. package/resources/chats/chats.js.map +1 -1
  32. package/resources/chats/chats.mjs.map +1 -1
  33. package/resources/chats/messages.d.mts +10 -3
  34. package/resources/chats/messages.d.mts.map +1 -1
  35. package/resources/chats/messages.d.ts +10 -3
  36. package/resources/chats/messages.d.ts.map +1 -1
  37. package/resources/chats/polls.d.mts +1 -1
  38. package/resources/chats/polls.d.ts +1 -1
  39. package/resources/contact-card.d.mts +8 -0
  40. package/resources/contact-card.d.mts.map +1 -1
  41. package/resources/contact-card.d.ts +8 -0
  42. package/resources/contact-card.d.ts.map +1 -1
  43. package/resources/contact-card.js +8 -0
  44. package/resources/contact-card.js.map +1 -1
  45. package/resources/contact-card.mjs +8 -0
  46. package/resources/contact-card.mjs.map +1 -1
  47. package/resources/index.d.mts +3 -1
  48. package/resources/index.d.mts.map +1 -1
  49. package/resources/index.d.ts +3 -1
  50. package/resources/index.d.ts.map +1 -1
  51. package/resources/index.js +5 -1
  52. package/resources/index.js.map +1 -1
  53. package/resources/index.mjs +2 -0
  54. package/resources/index.mjs.map +1 -1
  55. package/resources/messages/messages.d.mts +36 -18
  56. package/resources/messages/messages.d.mts.map +1 -1
  57. package/resources/messages/messages.d.ts +36 -18
  58. package/resources/messages/messages.d.ts.map +1 -1
  59. package/resources/messages/messages.js +11 -5
  60. package/resources/messages/messages.js.map +1 -1
  61. package/resources/messages/messages.mjs +11 -5
  62. package/resources/messages/messages.mjs.map +1 -1
  63. package/resources/phone-numbers.d.mts +20 -0
  64. package/resources/phone-numbers.d.mts.map +1 -1
  65. package/resources/phone-numbers.d.ts +20 -0
  66. package/resources/phone-numbers.d.ts.map +1 -1
  67. package/resources/phone-numbers.js +13 -0
  68. package/resources/phone-numbers.js.map +1 -1
  69. package/resources/phone-numbers.mjs +13 -0
  70. package/resources/phone-numbers.mjs.map +1 -1
  71. package/resources/phonenumbers.d.mts +13 -0
  72. package/resources/phonenumbers.d.mts.map +1 -1
  73. package/resources/phonenumbers.d.ts +13 -0
  74. package/resources/phonenumbers.d.ts.map +1 -1
  75. package/resources/phonenumbers.js +13 -0
  76. package/resources/phonenumbers.js.map +1 -1
  77. package/resources/phonenumbers.mjs +13 -0
  78. package/resources/phonenumbers.mjs.map +1 -1
  79. package/resources/shared.d.mts +17 -13
  80. package/resources/shared.d.mts.map +1 -1
  81. package/resources/shared.d.ts +17 -13
  82. package/resources/shared.d.ts.map +1 -1
  83. package/resources/sip-profiles.d.mts +224 -0
  84. package/resources/sip-profiles.d.mts.map +1 -0
  85. package/resources/sip-profiles.d.ts +224 -0
  86. package/resources/sip-profiles.d.ts.map +1 -0
  87. package/resources/sip-profiles.js +168 -0
  88. package/resources/sip-profiles.js.map +1 -0
  89. package/resources/sip-profiles.mjs +164 -0
  90. package/resources/sip-profiles.mjs.map +1 -0
  91. package/resources/webhook-events.d.mts +1 -1
  92. package/resources/webhook-events.d.mts.map +1 -1
  93. package/resources/webhook-events.d.ts +1 -1
  94. package/resources/webhook-events.d.ts.map +1 -1
  95. package/resources/webhooks.d.mts +534 -52
  96. package/resources/webhooks.d.mts.map +1 -1
  97. package/resources/webhooks.d.ts +534 -52
  98. package/resources/webhooks.d.ts.map +1 -1
  99. package/src/client.ts +121 -0
  100. package/src/resources/available-number.ts +13 -0
  101. package/src/resources/call-voice.ts +110 -0
  102. package/src/resources/chats/chats.ts +18 -3
  103. package/src/resources/chats/messages.ts +11 -3
  104. package/src/resources/chats/polls.ts +1 -1
  105. package/src/resources/contact-card.ts +8 -0
  106. package/src/resources/index.ts +23 -0
  107. package/src/resources/messages/messages.ts +37 -18
  108. package/src/resources/phone-numbers.ts +21 -0
  109. package/src/resources/phonenumbers.ts +13 -0
  110. package/src/resources/shared.ts +17 -13
  111. package/src/resources/sip-profiles.ts +282 -0
  112. package/src/resources/webhook-events.ts +1 -7
  113. package/src/resources/webhooks.ts +1273 -285
  114. package/src/version.ts +1 -1
  115. package/version.d.mts +1 -1
  116. package/version.d.ts +1 -1
  117. package/version.js +1 -1
  118. package/version.mjs +1 -1
@@ -85,6 +85,27 @@ export interface MessageEventV2 {
85
85
  */
86
86
  delivered_at?: string | null;
87
87
 
88
+ /**
89
+ * When the sending device was first seen for this sender (the message time for a
90
+ * newly seen device). Absent for SMS/RCS and for outbound messages.
91
+ */
92
+ device_first_seen_at?: string | null;
93
+
94
+ /**
95
+ * An opaque identifier for the sending device. Pair it with `device_status` to
96
+ * tell a sender's devices apart, including after a new device has become `known`.
97
+ * Absent for SMS/RCS and for outbound messages.
98
+ */
99
+ device_id?: string | null;
100
+
101
+ /**
102
+ * The device a sender used, relative to devices we've seen from them before.
103
+ * `first_contact` = their first device (first message we've seen from this
104
+ * sender); `known` = a device we've seen before; `new` = a device we have NOT seen
105
+ * for a sender who already had one (the account/SIM-takeover signal).
106
+ */
107
+ device_status?: 'first_contact' | 'known' | 'new' | null;
108
+
88
109
  /**
89
110
  * iMessage effect applied to a message (screen or bubble animation)
90
111
  */
@@ -96,7 +117,8 @@ export interface MessageEventV2 {
96
117
  idempotency_key?: string | null;
97
118
 
98
119
  /**
99
- * Preferred messaging service type. Includes "auto" for default fallback behavior.
120
+ * @deprecated Preferred messaging service type. Includes "auto" for default
121
+ * fallback behavior.
100
122
  */
101
123
  preferred_service?: 'iMessage' | 'SMS' | 'RCS' | 'auto' | null;
102
124
 
@@ -388,6 +410,27 @@ export interface MessagePayload {
388
410
  */
389
411
  delivered_at?: string | null;
390
412
 
413
+ /**
414
+ * When the sending device was first seen for this sender (the message time for a
415
+ * newly seen device). Absent for SMS/RCS and for outbound messages.
416
+ */
417
+ device_first_seen_at?: string | null;
418
+
419
+ /**
420
+ * An opaque identifier for the sending device. Pair it with `device_status` to
421
+ * tell a sender's devices apart, including after a new device has become `known`.
422
+ * Absent for SMS/RCS and for outbound messages.
423
+ */
424
+ device_id?: string | null;
425
+
426
+ /**
427
+ * The device a sender used, relative to devices we've seen from them before.
428
+ * `first_contact` = their first device (first message we've seen from this
429
+ * sender); `known` = a device we've seen before; `new` = a device we have NOT seen
430
+ * for a sender who already had one (the account/SIM-takeover signal).
431
+ */
432
+ device_status?: 'first_contact' | 'known' | 'new' | null;
433
+
391
434
  /**
392
435
  * iMessage effect applied to a message (screen or bubble animation)
393
436
  */
@@ -606,9 +649,10 @@ export interface ReactionEventBase {
606
649
 
607
650
  /**
608
651
  * Type of reaction. Standard iMessage tapbacks are love, like, dislike, laugh,
609
- * emphasize, question. Custom emoji reactions have type "custom" with the actual
610
- * emoji in the custom_emoji field. Sticker reactions have type "sticker" with
611
- * sticker attachment details in the sticker field.
652
+ * emphasize, question. Custom tapbacks have type "custom": an emoji tapback
653
+ * carries the emoji in the custom_emoji field, and an image tapback carries the
654
+ * image in the sticker field. Sticker reactions have type "sticker" with sticker
655
+ * attachment details in the sticker field.
612
656
  */
613
657
  reaction_type: Shared.ReactionType;
614
658
 
@@ -618,7 +662,8 @@ export interface ReactionEventBase {
618
662
  chat_id?: string;
619
663
 
620
664
  /**
621
- * The actual emoji when reaction_type is "custom". Null for standard tapbacks.
665
+ * The actual emoji when reaction_type is "custom" and the tapback is an emoji.
666
+ * Null otherwise.
622
667
  */
623
668
  custom_emoji?: string | null;
624
669
 
@@ -649,7 +694,9 @@ export interface ReactionEventBase {
649
694
  reacted_at?: string;
650
695
 
651
696
  /**
652
- * Identifier for this reaction. Pass it to
697
+ * Identifier for this reaction, matching `id` on the message's `reactions`.
698
+ * Changing a tapback keeps the same id, and `reaction.removed` carries the id of
699
+ * the reaction it removed. Pass it to
653
700
  * `PATCH /v3/messages/{messageId}/reactions/{reactionId}` to move a sticker.
654
701
  * Stickers stack, so this is what distinguishes one sticker from another on the
655
702
  * same message.
@@ -664,16 +711,16 @@ export interface ReactionEventBase {
664
711
  service?: Shared.ServiceType;
665
712
 
666
713
  /**
667
- * Sticker attachment details when reaction_type is "sticker". Null for non-sticker
668
- * reactions.
714
+ * The image when reaction_type is "sticker", or when reaction_type is "custom" and
715
+ * the tapback is an image. Null otherwise.
669
716
  */
670
717
  sticker?: ReactionEventBase.Sticker | null;
671
718
  }
672
719
 
673
720
  export namespace ReactionEventBase {
674
721
  /**
675
- * Sticker attachment details when reaction_type is "sticker". Null for non-sticker
676
- * reactions.
722
+ * The image when reaction_type is "sticker", or when reaction_type is "custom" and
723
+ * the tapback is an image. Null otherwise.
677
724
  */
678
725
  export interface Sticker {
679
726
  /**
@@ -1213,7 +1260,8 @@ export namespace MessageFailedWebhookEvent {
1213
1260
  message_id?: string;
1214
1261
 
1215
1262
  /**
1216
- * Preferred messaging service type. Includes "auto" for default fallback behavior.
1263
+ * @deprecated Preferred messaging service type. Includes "auto" for default
1264
+ * fallback behavior.
1217
1265
  */
1218
1266
  preferred_service?: 'iMessage' | 'SMS' | 'RCS' | 'auto' | null;
1219
1267
 
@@ -3821,14 +3869,8 @@ export interface PhoneNumberStatusUpdatedWebhookEvent {
3821
3869
  | 'phone_number.status_updated'
3822
3870
  | 'phone_number.assigned'
3823
3871
  | 'phone_number.released'
3872
+ | 'phone_number.line_type_updated'
3824
3873
  | 'contact_card.received'
3825
- | 'call.initiated'
3826
- | 'call.ringing'
3827
- | 'call.answered'
3828
- | 'call.ended'
3829
- | 'call.failed'
3830
- | 'call.declined'
3831
- | 'call.no_answer'
3832
3874
  | 'location.sharing.started'
3833
3875
  | 'location.sharing.stopped'
3834
3876
  | 'payment.succeeded'
@@ -3980,14 +4022,8 @@ export interface PhoneNumberAssignedWebhookEvent {
3980
4022
  | 'phone_number.status_updated'
3981
4023
  | 'phone_number.assigned'
3982
4024
  | 'phone_number.released'
4025
+ | 'phone_number.line_type_updated'
3983
4026
  | 'contact_card.received'
3984
- | 'call.initiated'
3985
- | 'call.ringing'
3986
- | 'call.answered'
3987
- | 'call.ended'
3988
- | 'call.failed'
3989
- | 'call.declined'
3990
- | 'call.no_answer'
3991
4027
  | 'location.sharing.started'
3992
4028
  | 'location.sharing.stopped'
3993
4029
  | 'payment.succeeded'
@@ -4119,14 +4155,8 @@ export interface PhoneNumberReleasedWebhookEvent {
4119
4155
  | 'phone_number.status_updated'
4120
4156
  | 'phone_number.assigned'
4121
4157
  | 'phone_number.released'
4158
+ | 'phone_number.line_type_updated'
4122
4159
  | 'contact_card.received'
4123
- | 'call.initiated'
4124
- | 'call.ringing'
4125
- | 'call.answered'
4126
- | 'call.ended'
4127
- | 'call.failed'
4128
- | 'call.declined'
4129
- | 'call.no_answer'
4130
4160
  | 'location.sharing.started'
4131
4161
  | 'location.sharing.stopped'
4132
4162
  | 'payment.succeeded'
@@ -4199,6 +4229,149 @@ export namespace PhoneNumberReleasedWebhookEvent {
4199
4229
  }
4200
4230
  }
4201
4231
 
4232
+ /**
4233
+ * Complete webhook payload for phone_number.line_type_updated events
4234
+ */
4235
+ export interface PhoneNumberLineTypeUpdatedWebhookEvent {
4236
+ /**
4237
+ * API version for the webhook payload format
4238
+ */
4239
+ api_version: string;
4240
+
4241
+ /**
4242
+ * When the event was created
4243
+ */
4244
+ created_at: string;
4245
+
4246
+ /**
4247
+ * Payload for phone_number.line_type_updated webhook events
4248
+ */
4249
+ data: PhoneNumberLineTypeUpdatedWebhookEvent.Data;
4250
+
4251
+ /**
4252
+ * Unique identifier for this event (for deduplication)
4253
+ */
4254
+ event_id: string;
4255
+
4256
+ /**
4257
+ * The type of event
4258
+ */
4259
+ event_type:
4260
+ | 'message.sent'
4261
+ | 'message.received'
4262
+ | 'message.read'
4263
+ | 'message.delivered'
4264
+ | 'message.failed'
4265
+ | 'message.edited'
4266
+ | 'reaction.added'
4267
+ | 'reaction.removed'
4268
+ | 'poll.received'
4269
+ | 'poll.failed'
4270
+ | 'poll.sent'
4271
+ | 'poll.delivered'
4272
+ | 'poll.read'
4273
+ | 'poll.updated'
4274
+ | 'poll.vote.added'
4275
+ | 'poll.vote.removed'
4276
+ | 'poll.reaction.added'
4277
+ | 'participant.added'
4278
+ | 'participant.removed'
4279
+ | 'chat.created'
4280
+ | 'chat.group_name_updated'
4281
+ | 'chat.group_icon_updated'
4282
+ | 'chat.group_name_update_failed'
4283
+ | 'chat.group_icon_update_failed'
4284
+ | 'chat.background_updated'
4285
+ | 'chat.background_update_failed'
4286
+ | 'chat.typing_indicator.started'
4287
+ | 'chat.typing_indicator.stopped'
4288
+ | 'phone_number.status_updated'
4289
+ | 'phone_number.assigned'
4290
+ | 'phone_number.released'
4291
+ | 'phone_number.line_type_updated'
4292
+ | 'contact_card.received'
4293
+ | 'location.sharing.started'
4294
+ | 'location.sharing.stopped'
4295
+ | 'payment.succeeded'
4296
+ | 'payment.canceled'
4297
+ | 'payment.expired'
4298
+ | 'payment.declined'
4299
+ | 'payment.authorized'
4300
+ | 'connection.created'
4301
+ | 'connection.revoked'
4302
+ | 'zero_day_retention.updated'
4303
+ | 'phone_number.forwarding_updated'
4304
+ | 'environment.line_moved'
4305
+ | 'contact_card.created'
4306
+ | 'contact_card.updated'
4307
+ | 'contact_card.deleted'
4308
+ | 'api_token.created'
4309
+ | 'api_token.renamed'
4310
+ | 'api_token.expiry_scheduled'
4311
+ | 'api_token.expired'
4312
+ | 'api_token.activated'
4313
+ | 'api_token.deleted'
4314
+ | 'environment.created'
4315
+ | 'environment.renamed'
4316
+ | 'environment.deleted'
4317
+ | 'webhook_subscription.created'
4318
+ | 'webhook_subscription.deleted'
4319
+ | 'webhook_subscription.target_url_changed'
4320
+ | 'webhook_subscription.enabled'
4321
+ | 'webhook_subscription.disabled'
4322
+ | 'webhook_subscription.events.updated'
4323
+ | 'webhook_subscription.phone_numbers.updated'
4324
+ | 'webhook_subscription.routing_headers_set'
4325
+ | 'webhook_subscription.routing_headers_cleared'
4326
+ | 'team_member.added'
4327
+ | 'team_member.signed_in'
4328
+ | 'team_member.signed_out';
4329
+
4330
+ /**
4331
+ * Partner identifier. Present on all webhooks for cross-referencing.
4332
+ */
4333
+ partner_id: string;
4334
+
4335
+ /**
4336
+ * Trace ID for debugging and correlation across systems.
4337
+ */
4338
+ trace_id: string;
4339
+
4340
+ /**
4341
+ * Date-based webhook payload version. Determined by the `?version=` query
4342
+ * parameter in your webhook subscription URL. If no version parameter is
4343
+ * specified, defaults based on subscription creation date.
4344
+ */
4345
+ webhook_version: string;
4346
+ }
4347
+
4348
+ export namespace PhoneNumberLineTypeUpdatedWebhookEvent {
4349
+ /**
4350
+ * Payload for phone_number.line_type_updated webhook events
4351
+ */
4352
+ export interface Data {
4353
+ /**
4354
+ * When the line type changed
4355
+ */
4356
+ changed_at: string;
4357
+
4358
+ /**
4359
+ * The line type after the change
4360
+ */
4361
+ new_line_type: 'iMessage' | 'RCS';
4362
+
4363
+ /**
4364
+ * Phone number in E.164 format
4365
+ */
4366
+ phone_number: string;
4367
+
4368
+ /**
4369
+ * The line type before the change
4370
+ */
4371
+ previous_line_type: 'iMessage' | 'RCS';
4372
+ }
4373
+ }
4374
+
4202
4375
  export interface ConnectionCreatedWebhookEvent {
4203
4376
  /**
4204
4377
  * API version for the webhook payload format
@@ -4256,14 +4429,8 @@ export interface ConnectionCreatedWebhookEvent {
4256
4429
  | 'phone_number.status_updated'
4257
4430
  | 'phone_number.assigned'
4258
4431
  | 'phone_number.released'
4432
+ | 'phone_number.line_type_updated'
4259
4433
  | 'contact_card.received'
4260
- | 'call.initiated'
4261
- | 'call.ringing'
4262
- | 'call.answered'
4263
- | 'call.ended'
4264
- | 'call.failed'
4265
- | 'call.declined'
4266
- | 'call.no_answer'
4267
4434
  | 'location.sharing.started'
4268
4435
  | 'location.sharing.stopped'
4269
4436
  | 'payment.declined'
@@ -4524,14 +4691,8 @@ export interface ConnectionRevokedWebhookEvent {
4524
4691
  | 'phone_number.status_updated'
4525
4692
  | 'phone_number.assigned'
4526
4693
  | 'phone_number.released'
4694
+ | 'phone_number.line_type_updated'
4527
4695
  | 'contact_card.received'
4528
- | 'call.initiated'
4529
- | 'call.ringing'
4530
- | 'call.answered'
4531
- | 'call.ended'
4532
- | 'call.failed'
4533
- | 'call.declined'
4534
- | 'call.no_answer'
4535
4696
  | 'location.sharing.started'
4536
4697
  | 'location.sharing.stopped'
4537
4698
  | 'payment.declined'
@@ -4786,14 +4947,8 @@ export interface LocationSharingStartedWebhookEvent {
4786
4947
  | 'phone_number.status_updated'
4787
4948
  | 'phone_number.assigned'
4788
4949
  | 'phone_number.released'
4950
+ | 'phone_number.line_type_updated'
4789
4951
  | 'contact_card.received'
4790
- | 'call.initiated'
4791
- | 'call.ringing'
4792
- | 'call.answered'
4793
- | 'call.ended'
4794
- | 'call.failed'
4795
- | 'call.declined'
4796
- | 'call.no_answer'
4797
4952
  | 'location.sharing.stopped'
4798
4953
  | 'payment.succeeded'
4799
4954
  | 'payment.canceled'
@@ -4933,14 +5088,8 @@ export interface LocationSharingStoppedWebhookEvent {
4933
5088
  | 'phone_number.status_updated'
4934
5089
  | 'phone_number.assigned'
4935
5090
  | 'phone_number.released'
5091
+ | 'phone_number.line_type_updated'
4936
5092
  | 'contact_card.received'
4937
- | 'call.initiated'
4938
- | 'call.ringing'
4939
- | 'call.answered'
4940
- | 'call.ended'
4941
- | 'call.failed'
4942
- | 'call.declined'
4943
- | 'call.no_answer'
4944
5093
  | 'location.sharing.started'
4945
5094
  | 'payment.succeeded'
4946
5095
  | 'payment.canceled'
@@ -5085,14 +5234,8 @@ export interface PaymentAuthorizedWebhookEvent {
5085
5234
  | 'phone_number.status_updated'
5086
5235
  | 'phone_number.assigned'
5087
5236
  | 'phone_number.released'
5237
+ | 'phone_number.line_type_updated'
5088
5238
  | 'contact_card.received'
5089
- | 'call.initiated'
5090
- | 'call.ringing'
5091
- | 'call.answered'
5092
- | 'call.ended'
5093
- | 'call.failed'
5094
- | 'call.declined'
5095
- | 'call.no_answer'
5096
5239
  | 'location.sharing.started'
5097
5240
  | 'location.sharing.stopped'
5098
5241
  | 'payment.declined'
@@ -5353,14 +5496,8 @@ export interface PaymentCanceledWebhookEvent {
5353
5496
  | 'phone_number.status_updated'
5354
5497
  | 'phone_number.assigned'
5355
5498
  | 'phone_number.released'
5499
+ | 'phone_number.line_type_updated'
5356
5500
  | 'contact_card.received'
5357
- | 'call.initiated'
5358
- | 'call.ringing'
5359
- | 'call.answered'
5360
- | 'call.ended'
5361
- | 'call.failed'
5362
- | 'call.declined'
5363
- | 'call.no_answer'
5364
5501
  | 'location.sharing.started'
5365
5502
  | 'location.sharing.stopped'
5366
5503
  | 'payment.declined'
@@ -5621,14 +5758,8 @@ export interface PaymentDeclinedWebhookEvent {
5621
5758
  | 'phone_number.status_updated'
5622
5759
  | 'phone_number.assigned'
5623
5760
  | 'phone_number.released'
5761
+ | 'phone_number.line_type_updated'
5624
5762
  | 'contact_card.received'
5625
- | 'call.initiated'
5626
- | 'call.ringing'
5627
- | 'call.answered'
5628
- | 'call.ended'
5629
- | 'call.failed'
5630
- | 'call.declined'
5631
- | 'call.no_answer'
5632
5763
  | 'location.sharing.started'
5633
5764
  | 'location.sharing.stopped'
5634
5765
  | 'payment.declined'
@@ -5889,14 +6020,8 @@ export interface PaymentExpiredWebhookEvent {
5889
6020
  | 'phone_number.status_updated'
5890
6021
  | 'phone_number.assigned'
5891
6022
  | 'phone_number.released'
6023
+ | 'phone_number.line_type_updated'
5892
6024
  | 'contact_card.received'
5893
- | 'call.initiated'
5894
- | 'call.ringing'
5895
- | 'call.answered'
5896
- | 'call.ended'
5897
- | 'call.failed'
5898
- | 'call.declined'
5899
- | 'call.no_answer'
5900
6025
  | 'location.sharing.started'
5901
6026
  | 'location.sharing.stopped'
5902
6027
  | 'payment.declined'
@@ -6157,14 +6282,8 @@ export interface PaymentSucceededWebhookEvent {
6157
6282
  | 'phone_number.status_updated'
6158
6283
  | 'phone_number.assigned'
6159
6284
  | 'phone_number.released'
6285
+ | 'phone_number.line_type_updated'
6160
6286
  | 'contact_card.received'
6161
- | 'call.initiated'
6162
- | 'call.ringing'
6163
- | 'call.answered'
6164
- | 'call.ended'
6165
- | 'call.failed'
6166
- | 'call.declined'
6167
- | 'call.no_answer'
6168
6287
  | 'location.sharing.started'
6169
6288
  | 'location.sharing.stopped'
6170
6289
  | 'payment.declined'
@@ -6465,14 +6584,8 @@ export interface ZeroDayRetentionUpdatedWebhookEvent {
6465
6584
  | 'phone_number.status_updated'
6466
6585
  | 'phone_number.assigned'
6467
6586
  | 'phone_number.released'
6587
+ | 'phone_number.line_type_updated'
6468
6588
  | 'contact_card.received'
6469
- | 'call.initiated'
6470
- | 'call.ringing'
6471
- | 'call.answered'
6472
- | 'call.ended'
6473
- | 'call.failed'
6474
- | 'call.declined'
6475
- | 'call.no_answer'
6476
6589
  | 'location.sharing.started'
6477
6590
  | 'location.sharing.stopped'
6478
6591
  | 'payment.succeeded'
@@ -6903,14 +7016,8 @@ export interface PhoneNumberForwardingUpdatedWebhookEvent {
6903
7016
  | 'phone_number.status_updated'
6904
7017
  | 'phone_number.assigned'
6905
7018
  | 'phone_number.released'
7019
+ | 'phone_number.line_type_updated'
6906
7020
  | 'contact_card.received'
6907
- | 'call.initiated'
6908
- | 'call.ringing'
6909
- | 'call.answered'
6910
- | 'call.ended'
6911
- | 'call.failed'
6912
- | 'call.declined'
6913
- | 'call.no_answer'
6914
7021
  | 'location.sharing.started'
6915
7022
  | 'location.sharing.stopped'
6916
7023
  | 'payment.succeeded'
@@ -7341,14 +7448,8 @@ export interface EnvironmentLineMovedWebhookEvent {
7341
7448
  | 'phone_number.status_updated'
7342
7449
  | 'phone_number.assigned'
7343
7450
  | 'phone_number.released'
7451
+ | 'phone_number.line_type_updated'
7344
7452
  | 'contact_card.received'
7345
- | 'call.initiated'
7346
- | 'call.ringing'
7347
- | 'call.answered'
7348
- | 'call.ended'
7349
- | 'call.failed'
7350
- | 'call.declined'
7351
- | 'call.no_answer'
7352
7453
  | 'location.sharing.started'
7353
7454
  | 'location.sharing.stopped'
7354
7455
  | 'payment.succeeded'
@@ -7779,14 +7880,8 @@ export interface ContactCardCreatedWebhookEvent {
7779
7880
  | 'phone_number.status_updated'
7780
7881
  | 'phone_number.assigned'
7781
7882
  | 'phone_number.released'
7883
+ | 'phone_number.line_type_updated'
7782
7884
  | 'contact_card.received'
7783
- | 'call.initiated'
7784
- | 'call.ringing'
7785
- | 'call.answered'
7786
- | 'call.ended'
7787
- | 'call.failed'
7788
- | 'call.declined'
7789
- | 'call.no_answer'
7790
7885
  | 'location.sharing.started'
7791
7886
  | 'location.sharing.stopped'
7792
7887
  | 'payment.succeeded'
@@ -8217,14 +8312,8 @@ export interface ContactCardUpdatedWebhookEvent {
8217
8312
  | 'phone_number.status_updated'
8218
8313
  | 'phone_number.assigned'
8219
8314
  | 'phone_number.released'
8315
+ | 'phone_number.line_type_updated'
8220
8316
  | 'contact_card.received'
8221
- | 'call.initiated'
8222
- | 'call.ringing'
8223
- | 'call.answered'
8224
- | 'call.ended'
8225
- | 'call.failed'
8226
- | 'call.declined'
8227
- | 'call.no_answer'
8228
8317
  | 'location.sharing.started'
8229
8318
  | 'location.sharing.stopped'
8230
8319
  | 'payment.succeeded'
@@ -8655,14 +8744,8 @@ export interface ContactCardDeletedWebhookEvent {
8655
8744
  | 'phone_number.status_updated'
8656
8745
  | 'phone_number.assigned'
8657
8746
  | 'phone_number.released'
8747
+ | 'phone_number.line_type_updated'
8658
8748
  | 'contact_card.received'
8659
- | 'call.initiated'
8660
- | 'call.ringing'
8661
- | 'call.answered'
8662
- | 'call.ended'
8663
- | 'call.failed'
8664
- | 'call.declined'
8665
- | 'call.no_answer'
8666
8749
  | 'location.sharing.started'
8667
8750
  | 'location.sharing.stopped'
8668
8751
  | 'payment.succeeded'
@@ -9093,14 +9176,8 @@ export interface APITokenCreatedWebhookEvent {
9093
9176
  | 'phone_number.status_updated'
9094
9177
  | 'phone_number.assigned'
9095
9178
  | 'phone_number.released'
9179
+ | 'phone_number.line_type_updated'
9096
9180
  | 'contact_card.received'
9097
- | 'call.initiated'
9098
- | 'call.ringing'
9099
- | 'call.answered'
9100
- | 'call.ended'
9101
- | 'call.failed'
9102
- | 'call.declined'
9103
- | 'call.no_answer'
9104
9181
  | 'location.sharing.started'
9105
9182
  | 'location.sharing.stopped'
9106
9183
  | 'payment.succeeded'
@@ -9531,14 +9608,8 @@ export interface APITokenRenamedWebhookEvent {
9531
9608
  | 'phone_number.status_updated'
9532
9609
  | 'phone_number.assigned'
9533
9610
  | 'phone_number.released'
9611
+ | 'phone_number.line_type_updated'
9534
9612
  | 'contact_card.received'
9535
- | 'call.initiated'
9536
- | 'call.ringing'
9537
- | 'call.answered'
9538
- | 'call.ended'
9539
- | 'call.failed'
9540
- | 'call.declined'
9541
- | 'call.no_answer'
9542
9613
  | 'location.sharing.started'
9543
9614
  | 'location.sharing.stopped'
9544
9615
  | 'payment.succeeded'
@@ -9969,14 +10040,8 @@ export interface APITokenExpiryScheduledWebhookEvent {
9969
10040
  | 'phone_number.status_updated'
9970
10041
  | 'phone_number.assigned'
9971
10042
  | 'phone_number.released'
10043
+ | 'phone_number.line_type_updated'
9972
10044
  | 'contact_card.received'
9973
- | 'call.initiated'
9974
- | 'call.ringing'
9975
- | 'call.answered'
9976
- | 'call.ended'
9977
- | 'call.failed'
9978
- | 'call.declined'
9979
- | 'call.no_answer'
9980
10045
  | 'location.sharing.started'
9981
10046
  | 'location.sharing.stopped'
9982
10047
  | 'payment.succeeded'
@@ -10407,14 +10472,8 @@ export interface APITokenExpiredWebhookEvent {
10407
10472
  | 'phone_number.status_updated'
10408
10473
  | 'phone_number.assigned'
10409
10474
  | 'phone_number.released'
10475
+ | 'phone_number.line_type_updated'
10410
10476
  | 'contact_card.received'
10411
- | 'call.initiated'
10412
- | 'call.ringing'
10413
- | 'call.answered'
10414
- | 'call.ended'
10415
- | 'call.failed'
10416
- | 'call.declined'
10417
- | 'call.no_answer'
10418
10477
  | 'location.sharing.started'
10419
10478
  | 'location.sharing.stopped'
10420
10479
  | 'payment.succeeded'
@@ -10845,14 +10904,8 @@ export interface APITokenActivatedWebhookEvent {
10845
10904
  | 'phone_number.status_updated'
10846
10905
  | 'phone_number.assigned'
10847
10906
  | 'phone_number.released'
10907
+ | 'phone_number.line_type_updated'
10848
10908
  | 'contact_card.received'
10849
- | 'call.initiated'
10850
- | 'call.ringing'
10851
- | 'call.answered'
10852
- | 'call.ended'
10853
- | 'call.failed'
10854
- | 'call.declined'
10855
- | 'call.no_answer'
10856
10909
  | 'location.sharing.started'
10857
10910
  | 'location.sharing.stopped'
10858
10911
  | 'payment.succeeded'
@@ -11283,14 +11336,8 @@ export interface APITokenDeletedWebhookEvent {
11283
11336
  | 'phone_number.status_updated'
11284
11337
  | 'phone_number.assigned'
11285
11338
  | 'phone_number.released'
11339
+ | 'phone_number.line_type_updated'
11286
11340
  | 'contact_card.received'
11287
- | 'call.initiated'
11288
- | 'call.ringing'
11289
- | 'call.answered'
11290
- | 'call.ended'
11291
- | 'call.failed'
11292
- | 'call.declined'
11293
- | 'call.no_answer'
11294
11341
  | 'location.sharing.started'
11295
11342
  | 'location.sharing.stopped'
11296
11343
  | 'payment.succeeded'
@@ -11721,14 +11768,8 @@ export interface EnvironmentCreatedWebhookEvent {
11721
11768
  | 'phone_number.status_updated'
11722
11769
  | 'phone_number.assigned'
11723
11770
  | 'phone_number.released'
11771
+ | 'phone_number.line_type_updated'
11724
11772
  | 'contact_card.received'
11725
- | 'call.initiated'
11726
- | 'call.ringing'
11727
- | 'call.answered'
11728
- | 'call.ended'
11729
- | 'call.failed'
11730
- | 'call.declined'
11731
- | 'call.no_answer'
11732
11773
  | 'location.sharing.started'
11733
11774
  | 'location.sharing.stopped'
11734
11775
  | 'payment.succeeded'
@@ -12159,14 +12200,8 @@ export interface EnvironmentRenamedWebhookEvent {
12159
12200
  | 'phone_number.status_updated'
12160
12201
  | 'phone_number.assigned'
12161
12202
  | 'phone_number.released'
12203
+ | 'phone_number.line_type_updated'
12162
12204
  | 'contact_card.received'
12163
- | 'call.initiated'
12164
- | 'call.ringing'
12165
- | 'call.answered'
12166
- | 'call.ended'
12167
- | 'call.failed'
12168
- | 'call.declined'
12169
- | 'call.no_answer'
12170
12205
  | 'location.sharing.started'
12171
12206
  | 'location.sharing.stopped'
12172
12207
  | 'payment.succeeded'
@@ -12597,14 +12632,8 @@ export interface EnvironmentDeletedWebhookEvent {
12597
12632
  | 'phone_number.status_updated'
12598
12633
  | 'phone_number.assigned'
12599
12634
  | 'phone_number.released'
12635
+ | 'phone_number.line_type_updated'
12600
12636
  | 'contact_card.received'
12601
- | 'call.initiated'
12602
- | 'call.ringing'
12603
- | 'call.answered'
12604
- | 'call.ended'
12605
- | 'call.failed'
12606
- | 'call.declined'
12607
- | 'call.no_answer'
12608
12637
  | 'location.sharing.started'
12609
12638
  | 'location.sharing.stopped'
12610
12639
  | 'payment.succeeded'
@@ -13035,14 +13064,8 @@ export interface WebhookSubscriptionCreatedWebhookEvent {
13035
13064
  | 'phone_number.status_updated'
13036
13065
  | 'phone_number.assigned'
13037
13066
  | 'phone_number.released'
13067
+ | 'phone_number.line_type_updated'
13038
13068
  | 'contact_card.received'
13039
- | 'call.initiated'
13040
- | 'call.ringing'
13041
- | 'call.answered'
13042
- | 'call.ended'
13043
- | 'call.failed'
13044
- | 'call.declined'
13045
- | 'call.no_answer'
13046
13069
  | 'location.sharing.started'
13047
13070
  | 'location.sharing.stopped'
13048
13071
  | 'payment.succeeded'
@@ -13473,14 +13496,8 @@ export interface WebhookSubscriptionDeletedWebhookEvent {
13473
13496
  | 'phone_number.status_updated'
13474
13497
  | 'phone_number.assigned'
13475
13498
  | 'phone_number.released'
13499
+ | 'phone_number.line_type_updated'
13476
13500
  | 'contact_card.received'
13477
- | 'call.initiated'
13478
- | 'call.ringing'
13479
- | 'call.answered'
13480
- | 'call.ended'
13481
- | 'call.failed'
13482
- | 'call.declined'
13483
- | 'call.no_answer'
13484
13501
  | 'location.sharing.started'
13485
13502
  | 'location.sharing.stopped'
13486
13503
  | 'payment.succeeded'
@@ -13911,14 +13928,8 @@ export interface WebhookSubscriptionTargetURLChangedWebhookEvent {
13911
13928
  | 'phone_number.status_updated'
13912
13929
  | 'phone_number.assigned'
13913
13930
  | 'phone_number.released'
13931
+ | 'phone_number.line_type_updated'
13914
13932
  | 'contact_card.received'
13915
- | 'call.initiated'
13916
- | 'call.ringing'
13917
- | 'call.answered'
13918
- | 'call.ended'
13919
- | 'call.failed'
13920
- | 'call.declined'
13921
- | 'call.no_answer'
13922
13933
  | 'location.sharing.started'
13923
13934
  | 'location.sharing.stopped'
13924
13935
  | 'payment.succeeded'
@@ -14349,14 +14360,8 @@ export interface WebhookSubscriptionEnabledWebhookEvent {
14349
14360
  | 'phone_number.status_updated'
14350
14361
  | 'phone_number.assigned'
14351
14362
  | 'phone_number.released'
14363
+ | 'phone_number.line_type_updated'
14352
14364
  | 'contact_card.received'
14353
- | 'call.initiated'
14354
- | 'call.ringing'
14355
- | 'call.answered'
14356
- | 'call.ended'
14357
- | 'call.failed'
14358
- | 'call.declined'
14359
- | 'call.no_answer'
14360
14365
  | 'location.sharing.started'
14361
14366
  | 'location.sharing.stopped'
14362
14367
  | 'payment.succeeded'
@@ -14787,14 +14792,8 @@ export interface WebhookSubscriptionDisabledWebhookEvent {
14787
14792
  | 'phone_number.status_updated'
14788
14793
  | 'phone_number.assigned'
14789
14794
  | 'phone_number.released'
14795
+ | 'phone_number.line_type_updated'
14790
14796
  | 'contact_card.received'
14791
- | 'call.initiated'
14792
- | 'call.ringing'
14793
- | 'call.answered'
14794
- | 'call.ended'
14795
- | 'call.failed'
14796
- | 'call.declined'
14797
- | 'call.no_answer'
14798
14797
  | 'location.sharing.started'
14799
14798
  | 'location.sharing.stopped'
14800
14799
  | 'payment.succeeded'
@@ -15225,14 +15224,8 @@ export interface WebhookSubscriptionEventsUpdatedWebhookEvent {
15225
15224
  | 'phone_number.status_updated'
15226
15225
  | 'phone_number.assigned'
15227
15226
  | 'phone_number.released'
15227
+ | 'phone_number.line_type_updated'
15228
15228
  | 'contact_card.received'
15229
- | 'call.initiated'
15230
- | 'call.ringing'
15231
- | 'call.answered'
15232
- | 'call.ended'
15233
- | 'call.failed'
15234
- | 'call.declined'
15235
- | 'call.no_answer'
15236
15229
  | 'location.sharing.started'
15237
15230
  | 'location.sharing.stopped'
15238
15231
  | 'payment.succeeded'
@@ -15663,14 +15656,8 @@ export interface WebhookSubscriptionPhoneNumbersUpdatedWebhookEvent {
15663
15656
  | 'phone_number.status_updated'
15664
15657
  | 'phone_number.assigned'
15665
15658
  | 'phone_number.released'
15659
+ | 'phone_number.line_type_updated'
15666
15660
  | 'contact_card.received'
15667
- | 'call.initiated'
15668
- | 'call.ringing'
15669
- | 'call.answered'
15670
- | 'call.ended'
15671
- | 'call.failed'
15672
- | 'call.declined'
15673
- | 'call.no_answer'
15674
15661
  | 'location.sharing.started'
15675
15662
  | 'location.sharing.stopped'
15676
15663
  | 'payment.succeeded'
@@ -16101,14 +16088,8 @@ export interface WebhookSubscriptionRoutingHeadersSetWebhookEvent {
16101
16088
  | 'phone_number.status_updated'
16102
16089
  | 'phone_number.assigned'
16103
16090
  | 'phone_number.released'
16091
+ | 'phone_number.line_type_updated'
16104
16092
  | 'contact_card.received'
16105
- | 'call.initiated'
16106
- | 'call.ringing'
16107
- | 'call.answered'
16108
- | 'call.ended'
16109
- | 'call.failed'
16110
- | 'call.declined'
16111
- | 'call.no_answer'
16112
16093
  | 'location.sharing.started'
16113
16094
  | 'location.sharing.stopped'
16114
16095
  | 'payment.succeeded'
@@ -16539,14 +16520,8 @@ export interface WebhookSubscriptionRoutingHeadersClearedWebhookEvent {
16539
16520
  | 'phone_number.status_updated'
16540
16521
  | 'phone_number.assigned'
16541
16522
  | 'phone_number.released'
16523
+ | 'phone_number.line_type_updated'
16542
16524
  | 'contact_card.received'
16543
- | 'call.initiated'
16544
- | 'call.ringing'
16545
- | 'call.answered'
16546
- | 'call.ended'
16547
- | 'call.failed'
16548
- | 'call.declined'
16549
- | 'call.no_answer'
16550
16525
  | 'location.sharing.started'
16551
16526
  | 'location.sharing.stopped'
16552
16527
  | 'payment.succeeded'
@@ -16977,14 +16952,8 @@ export interface TeamMemberAddedWebhookEvent {
16977
16952
  | 'phone_number.status_updated'
16978
16953
  | 'phone_number.assigned'
16979
16954
  | 'phone_number.released'
16955
+ | 'phone_number.line_type_updated'
16980
16956
  | 'contact_card.received'
16981
- | 'call.initiated'
16982
- | 'call.ringing'
16983
- | 'call.answered'
16984
- | 'call.ended'
16985
- | 'call.failed'
16986
- | 'call.declined'
16987
- | 'call.no_answer'
16988
16957
  | 'location.sharing.started'
16989
16958
  | 'location.sharing.stopped'
16990
16959
  | 'payment.succeeded'
@@ -17415,14 +17384,8 @@ export interface TeamMemberSignedInWebhookEvent {
17415
17384
  | 'phone_number.status_updated'
17416
17385
  | 'phone_number.assigned'
17417
17386
  | 'phone_number.released'
17387
+ | 'phone_number.line_type_updated'
17418
17388
  | 'contact_card.received'
17419
- | 'call.initiated'
17420
- | 'call.ringing'
17421
- | 'call.answered'
17422
- | 'call.ended'
17423
- | 'call.failed'
17424
- | 'call.declined'
17425
- | 'call.no_answer'
17426
17389
  | 'location.sharing.started'
17427
17390
  | 'location.sharing.stopped'
17428
17391
  | 'payment.succeeded'
@@ -17853,14 +17816,8 @@ export interface TeamMemberSignedOutWebhookEvent {
17853
17816
  | 'phone_number.status_updated'
17854
17817
  | 'phone_number.assigned'
17855
17818
  | 'phone_number.released'
17819
+ | 'phone_number.line_type_updated'
17856
17820
  | 'contact_card.received'
17857
- | 'call.initiated'
17858
- | 'call.ringing'
17859
- | 'call.answered'
17860
- | 'call.ended'
17861
- | 'call.failed'
17862
- | 'call.declined'
17863
- | 'call.no_answer'
17864
17821
  | 'location.sharing.started'
17865
17822
  | 'location.sharing.stopped'
17866
17823
  | 'payment.succeeded'
@@ -18194,6 +18151,1021 @@ export namespace TeamMemberSignedOutWebhookEvent {
18194
18151
  }
18195
18152
  }
18196
18153
 
18154
+ export interface CallVoiceInitiatedWebhookEvent {
18155
+ /**
18156
+ * API version for the webhook payload format
18157
+ */
18158
+ api_version: string;
18159
+
18160
+ /**
18161
+ * When the event was created
18162
+ */
18163
+ created_at: string;
18164
+
18165
+ data: CallVoiceInitiatedWebhookEvent.Data;
18166
+
18167
+ /**
18168
+ * Unique identifier for this event (for deduplication)
18169
+ */
18170
+ event_id: string;
18171
+
18172
+ event_type:
18173
+ | 'call_voice.initiated'
18174
+ | 'call_voice.ringing'
18175
+ | 'call_voice.answered'
18176
+ | 'call_voice.ended'
18177
+ | 'call_voice.failed'
18178
+ | 'call_voice.declined'
18179
+ | 'call_voice.no_answer'
18180
+ | 'message.sent'
18181
+ | 'message.received'
18182
+ | 'message.read'
18183
+ | 'message.delivered'
18184
+ | 'message.failed'
18185
+ | 'message.edited'
18186
+ | 'reaction.added'
18187
+ | 'reaction.removed'
18188
+ | 'poll.received'
18189
+ | 'poll.failed'
18190
+ | 'poll.sent'
18191
+ | 'poll.delivered'
18192
+ | 'poll.read'
18193
+ | 'poll.updated'
18194
+ | 'poll.vote.added'
18195
+ | 'poll.vote.removed'
18196
+ | 'poll.reaction.added'
18197
+ | 'participant.added'
18198
+ | 'participant.removed'
18199
+ | 'chat.created'
18200
+ | 'chat.group_name_updated'
18201
+ | 'chat.group_icon_updated'
18202
+ | 'chat.group_name_update_failed'
18203
+ | 'chat.group_icon_update_failed'
18204
+ | 'chat.background_updated'
18205
+ | 'chat.background_update_failed'
18206
+ | 'chat.typing_indicator.started'
18207
+ | 'chat.typing_indicator.stopped'
18208
+ | 'phone_number.status_updated'
18209
+ | 'phone_number.assigned'
18210
+ | 'phone_number.released'
18211
+ | 'phone_number.line_type_updated'
18212
+ | 'contact_card.received'
18213
+ | 'location.sharing.started'
18214
+ | 'location.sharing.stopped'
18215
+ | 'payment.succeeded'
18216
+ | 'payment.canceled'
18217
+ | 'payment.expired'
18218
+ | 'payment.declined'
18219
+ | 'payment.authorized'
18220
+ | 'connection.created'
18221
+ | 'connection.revoked'
18222
+ | 'zero_day_retention.updated'
18223
+ | 'phone_number.forwarding_updated'
18224
+ | 'environment.line_moved'
18225
+ | 'contact_card.created'
18226
+ | 'contact_card.updated'
18227
+ | 'contact_card.deleted'
18228
+ | 'api_token.created'
18229
+ | 'api_token.renamed'
18230
+ | 'api_token.expiry_scheduled'
18231
+ | 'api_token.expired'
18232
+ | 'api_token.activated'
18233
+ | 'api_token.deleted'
18234
+ | 'environment.created'
18235
+ | 'environment.renamed'
18236
+ | 'environment.deleted'
18237
+ | 'webhook_subscription.created'
18238
+ | 'webhook_subscription.deleted'
18239
+ | 'webhook_subscription.target_url_changed'
18240
+ | 'webhook_subscription.enabled'
18241
+ | 'webhook_subscription.disabled'
18242
+ | 'webhook_subscription.events.updated'
18243
+ | 'webhook_subscription.phone_numbers.updated'
18244
+ | 'webhook_subscription.routing_headers_set'
18245
+ | 'webhook_subscription.routing_headers_cleared'
18246
+ | 'team_member.added'
18247
+ | 'team_member.signed_in'
18248
+ | 'team_member.signed_out';
18249
+
18250
+ /**
18251
+ * Partner identifier. Present on all webhooks for cross-referencing.
18252
+ */
18253
+ partner_id: string;
18254
+
18255
+ /**
18256
+ * Trace ID for debugging and correlation across systems.
18257
+ */
18258
+ trace_id: string;
18259
+
18260
+ /**
18261
+ * Date-based webhook payload version. Determined by the `?version=` query
18262
+ * parameter in your webhook subscription URL. If no version parameter is
18263
+ * specified, defaults based on subscription creation date.
18264
+ */
18265
+ webhook_version: string;
18266
+ }
18267
+
18268
+ export namespace CallVoiceInitiatedWebhookEvent {
18269
+ export interface Data {
18270
+ /**
18271
+ * Carrier voice call ID
18272
+ */
18273
+ id: string;
18274
+
18275
+ direction: 'inbound';
18276
+
18277
+ /**
18278
+ * External caller, E.164
18279
+ */
18280
+ from: string;
18281
+
18282
+ /**
18283
+ * Terminal call outcome. Null on progress events (initiated/ringing/answered); set
18284
+ * once the call ends.
18285
+ */
18286
+ status: 'completed' | 'busy' | 'no_answer' | 'failed' | 'canceled' | null;
18287
+
18288
+ /**
18289
+ * Your line that was called, E.164
18290
+ */
18291
+ to: string;
18292
+
18293
+ ended_at?: string | null;
18294
+
18295
+ started_at?: string | null;
18296
+ }
18297
+ }
18298
+
18299
+ export interface CallVoiceRingingWebhookEvent {
18300
+ /**
18301
+ * API version for the webhook payload format
18302
+ */
18303
+ api_version: string;
18304
+
18305
+ /**
18306
+ * When the event was created
18307
+ */
18308
+ created_at: string;
18309
+
18310
+ data: CallVoiceRingingWebhookEvent.Data;
18311
+
18312
+ /**
18313
+ * Unique identifier for this event (for deduplication)
18314
+ */
18315
+ event_id: string;
18316
+
18317
+ event_type:
18318
+ | 'call_voice.initiated'
18319
+ | 'call_voice.ringing'
18320
+ | 'call_voice.answered'
18321
+ | 'call_voice.ended'
18322
+ | 'call_voice.failed'
18323
+ | 'call_voice.declined'
18324
+ | 'call_voice.no_answer'
18325
+ | 'message.sent'
18326
+ | 'message.received'
18327
+ | 'message.read'
18328
+ | 'message.delivered'
18329
+ | 'message.failed'
18330
+ | 'message.edited'
18331
+ | 'reaction.added'
18332
+ | 'reaction.removed'
18333
+ | 'poll.received'
18334
+ | 'poll.failed'
18335
+ | 'poll.sent'
18336
+ | 'poll.delivered'
18337
+ | 'poll.read'
18338
+ | 'poll.updated'
18339
+ | 'poll.vote.added'
18340
+ | 'poll.vote.removed'
18341
+ | 'poll.reaction.added'
18342
+ | 'participant.added'
18343
+ | 'participant.removed'
18344
+ | 'chat.created'
18345
+ | 'chat.group_name_updated'
18346
+ | 'chat.group_icon_updated'
18347
+ | 'chat.group_name_update_failed'
18348
+ | 'chat.group_icon_update_failed'
18349
+ | 'chat.background_updated'
18350
+ | 'chat.background_update_failed'
18351
+ | 'chat.typing_indicator.started'
18352
+ | 'chat.typing_indicator.stopped'
18353
+ | 'phone_number.status_updated'
18354
+ | 'phone_number.assigned'
18355
+ | 'phone_number.released'
18356
+ | 'phone_number.line_type_updated'
18357
+ | 'contact_card.received'
18358
+ | 'location.sharing.started'
18359
+ | 'location.sharing.stopped'
18360
+ | 'payment.succeeded'
18361
+ | 'payment.canceled'
18362
+ | 'payment.expired'
18363
+ | 'payment.declined'
18364
+ | 'payment.authorized'
18365
+ | 'connection.created'
18366
+ | 'connection.revoked'
18367
+ | 'zero_day_retention.updated'
18368
+ | 'phone_number.forwarding_updated'
18369
+ | 'environment.line_moved'
18370
+ | 'contact_card.created'
18371
+ | 'contact_card.updated'
18372
+ | 'contact_card.deleted'
18373
+ | 'api_token.created'
18374
+ | 'api_token.renamed'
18375
+ | 'api_token.expiry_scheduled'
18376
+ | 'api_token.expired'
18377
+ | 'api_token.activated'
18378
+ | 'api_token.deleted'
18379
+ | 'environment.created'
18380
+ | 'environment.renamed'
18381
+ | 'environment.deleted'
18382
+ | 'webhook_subscription.created'
18383
+ | 'webhook_subscription.deleted'
18384
+ | 'webhook_subscription.target_url_changed'
18385
+ | 'webhook_subscription.enabled'
18386
+ | 'webhook_subscription.disabled'
18387
+ | 'webhook_subscription.events.updated'
18388
+ | 'webhook_subscription.phone_numbers.updated'
18389
+ | 'webhook_subscription.routing_headers_set'
18390
+ | 'webhook_subscription.routing_headers_cleared'
18391
+ | 'team_member.added'
18392
+ | 'team_member.signed_in'
18393
+ | 'team_member.signed_out';
18394
+
18395
+ /**
18396
+ * Partner identifier. Present on all webhooks for cross-referencing.
18397
+ */
18398
+ partner_id: string;
18399
+
18400
+ /**
18401
+ * Trace ID for debugging and correlation across systems.
18402
+ */
18403
+ trace_id: string;
18404
+
18405
+ /**
18406
+ * Date-based webhook payload version. Determined by the `?version=` query
18407
+ * parameter in your webhook subscription URL. If no version parameter is
18408
+ * specified, defaults based on subscription creation date.
18409
+ */
18410
+ webhook_version: string;
18411
+ }
18412
+
18413
+ export namespace CallVoiceRingingWebhookEvent {
18414
+ export interface Data {
18415
+ /**
18416
+ * Carrier voice call ID
18417
+ */
18418
+ id: string;
18419
+
18420
+ direction: 'inbound';
18421
+
18422
+ /**
18423
+ * External caller, E.164
18424
+ */
18425
+ from: string;
18426
+
18427
+ /**
18428
+ * Terminal call outcome. Null on progress events (initiated/ringing/answered); set
18429
+ * once the call ends.
18430
+ */
18431
+ status: 'completed' | 'busy' | 'no_answer' | 'failed' | 'canceled' | null;
18432
+
18433
+ /**
18434
+ * Your line that was called, E.164
18435
+ */
18436
+ to: string;
18437
+
18438
+ ended_at?: string | null;
18439
+
18440
+ started_at?: string | null;
18441
+ }
18442
+ }
18443
+
18444
+ export interface CallVoiceAnsweredWebhookEvent {
18445
+ /**
18446
+ * API version for the webhook payload format
18447
+ */
18448
+ api_version: string;
18449
+
18450
+ /**
18451
+ * When the event was created
18452
+ */
18453
+ created_at: string;
18454
+
18455
+ data: CallVoiceAnsweredWebhookEvent.Data;
18456
+
18457
+ /**
18458
+ * Unique identifier for this event (for deduplication)
18459
+ */
18460
+ event_id: string;
18461
+
18462
+ event_type:
18463
+ | 'call_voice.initiated'
18464
+ | 'call_voice.ringing'
18465
+ | 'call_voice.answered'
18466
+ | 'call_voice.ended'
18467
+ | 'call_voice.failed'
18468
+ | 'call_voice.declined'
18469
+ | 'call_voice.no_answer'
18470
+ | 'message.sent'
18471
+ | 'message.received'
18472
+ | 'message.read'
18473
+ | 'message.delivered'
18474
+ | 'message.failed'
18475
+ | 'message.edited'
18476
+ | 'reaction.added'
18477
+ | 'reaction.removed'
18478
+ | 'poll.received'
18479
+ | 'poll.failed'
18480
+ | 'poll.sent'
18481
+ | 'poll.delivered'
18482
+ | 'poll.read'
18483
+ | 'poll.updated'
18484
+ | 'poll.vote.added'
18485
+ | 'poll.vote.removed'
18486
+ | 'poll.reaction.added'
18487
+ | 'participant.added'
18488
+ | 'participant.removed'
18489
+ | 'chat.created'
18490
+ | 'chat.group_name_updated'
18491
+ | 'chat.group_icon_updated'
18492
+ | 'chat.group_name_update_failed'
18493
+ | 'chat.group_icon_update_failed'
18494
+ | 'chat.background_updated'
18495
+ | 'chat.background_update_failed'
18496
+ | 'chat.typing_indicator.started'
18497
+ | 'chat.typing_indicator.stopped'
18498
+ | 'phone_number.status_updated'
18499
+ | 'phone_number.assigned'
18500
+ | 'phone_number.released'
18501
+ | 'phone_number.line_type_updated'
18502
+ | 'contact_card.received'
18503
+ | 'location.sharing.started'
18504
+ | 'location.sharing.stopped'
18505
+ | 'payment.succeeded'
18506
+ | 'payment.canceled'
18507
+ | 'payment.expired'
18508
+ | 'payment.declined'
18509
+ | 'payment.authorized'
18510
+ | 'connection.created'
18511
+ | 'connection.revoked'
18512
+ | 'zero_day_retention.updated'
18513
+ | 'phone_number.forwarding_updated'
18514
+ | 'environment.line_moved'
18515
+ | 'contact_card.created'
18516
+ | 'contact_card.updated'
18517
+ | 'contact_card.deleted'
18518
+ | 'api_token.created'
18519
+ | 'api_token.renamed'
18520
+ | 'api_token.expiry_scheduled'
18521
+ | 'api_token.expired'
18522
+ | 'api_token.activated'
18523
+ | 'api_token.deleted'
18524
+ | 'environment.created'
18525
+ | 'environment.renamed'
18526
+ | 'environment.deleted'
18527
+ | 'webhook_subscription.created'
18528
+ | 'webhook_subscription.deleted'
18529
+ | 'webhook_subscription.target_url_changed'
18530
+ | 'webhook_subscription.enabled'
18531
+ | 'webhook_subscription.disabled'
18532
+ | 'webhook_subscription.events.updated'
18533
+ | 'webhook_subscription.phone_numbers.updated'
18534
+ | 'webhook_subscription.routing_headers_set'
18535
+ | 'webhook_subscription.routing_headers_cleared'
18536
+ | 'team_member.added'
18537
+ | 'team_member.signed_in'
18538
+ | 'team_member.signed_out';
18539
+
18540
+ /**
18541
+ * Partner identifier. Present on all webhooks for cross-referencing.
18542
+ */
18543
+ partner_id: string;
18544
+
18545
+ /**
18546
+ * Trace ID for debugging and correlation across systems.
18547
+ */
18548
+ trace_id: string;
18549
+
18550
+ /**
18551
+ * Date-based webhook payload version. Determined by the `?version=` query
18552
+ * parameter in your webhook subscription URL. If no version parameter is
18553
+ * specified, defaults based on subscription creation date.
18554
+ */
18555
+ webhook_version: string;
18556
+ }
18557
+
18558
+ export namespace CallVoiceAnsweredWebhookEvent {
18559
+ export interface Data {
18560
+ /**
18561
+ * Carrier voice call ID
18562
+ */
18563
+ id: string;
18564
+
18565
+ direction: 'inbound';
18566
+
18567
+ /**
18568
+ * External caller, E.164
18569
+ */
18570
+ from: string;
18571
+
18572
+ /**
18573
+ * Terminal call outcome. Null on progress events (initiated/ringing/answered); set
18574
+ * once the call ends.
18575
+ */
18576
+ status: 'completed' | 'busy' | 'no_answer' | 'failed' | 'canceled' | null;
18577
+
18578
+ /**
18579
+ * Your line that was called, E.164
18580
+ */
18581
+ to: string;
18582
+
18583
+ ended_at?: string | null;
18584
+
18585
+ started_at?: string | null;
18586
+ }
18587
+ }
18588
+
18589
+ export interface CallVoiceEndedWebhookEvent {
18590
+ /**
18591
+ * API version for the webhook payload format
18592
+ */
18593
+ api_version: string;
18594
+
18595
+ /**
18596
+ * When the event was created
18597
+ */
18598
+ created_at: string;
18599
+
18600
+ data: CallVoiceEndedWebhookEvent.Data;
18601
+
18602
+ /**
18603
+ * Unique identifier for this event (for deduplication)
18604
+ */
18605
+ event_id: string;
18606
+
18607
+ event_type:
18608
+ | 'call_voice.initiated'
18609
+ | 'call_voice.ringing'
18610
+ | 'call_voice.answered'
18611
+ | 'call_voice.ended'
18612
+ | 'call_voice.failed'
18613
+ | 'call_voice.declined'
18614
+ | 'call_voice.no_answer'
18615
+ | 'message.sent'
18616
+ | 'message.received'
18617
+ | 'message.read'
18618
+ | 'message.delivered'
18619
+ | 'message.failed'
18620
+ | 'message.edited'
18621
+ | 'reaction.added'
18622
+ | 'reaction.removed'
18623
+ | 'poll.received'
18624
+ | 'poll.failed'
18625
+ | 'poll.sent'
18626
+ | 'poll.delivered'
18627
+ | 'poll.read'
18628
+ | 'poll.updated'
18629
+ | 'poll.vote.added'
18630
+ | 'poll.vote.removed'
18631
+ | 'poll.reaction.added'
18632
+ | 'participant.added'
18633
+ | 'participant.removed'
18634
+ | 'chat.created'
18635
+ | 'chat.group_name_updated'
18636
+ | 'chat.group_icon_updated'
18637
+ | 'chat.group_name_update_failed'
18638
+ | 'chat.group_icon_update_failed'
18639
+ | 'chat.background_updated'
18640
+ | 'chat.background_update_failed'
18641
+ | 'chat.typing_indicator.started'
18642
+ | 'chat.typing_indicator.stopped'
18643
+ | 'phone_number.status_updated'
18644
+ | 'phone_number.assigned'
18645
+ | 'phone_number.released'
18646
+ | 'phone_number.line_type_updated'
18647
+ | 'contact_card.received'
18648
+ | 'location.sharing.started'
18649
+ | 'location.sharing.stopped'
18650
+ | 'payment.succeeded'
18651
+ | 'payment.canceled'
18652
+ | 'payment.expired'
18653
+ | 'payment.declined'
18654
+ | 'payment.authorized'
18655
+ | 'connection.created'
18656
+ | 'connection.revoked'
18657
+ | 'zero_day_retention.updated'
18658
+ | 'phone_number.forwarding_updated'
18659
+ | 'environment.line_moved'
18660
+ | 'contact_card.created'
18661
+ | 'contact_card.updated'
18662
+ | 'contact_card.deleted'
18663
+ | 'api_token.created'
18664
+ | 'api_token.renamed'
18665
+ | 'api_token.expiry_scheduled'
18666
+ | 'api_token.expired'
18667
+ | 'api_token.activated'
18668
+ | 'api_token.deleted'
18669
+ | 'environment.created'
18670
+ | 'environment.renamed'
18671
+ | 'environment.deleted'
18672
+ | 'webhook_subscription.created'
18673
+ | 'webhook_subscription.deleted'
18674
+ | 'webhook_subscription.target_url_changed'
18675
+ | 'webhook_subscription.enabled'
18676
+ | 'webhook_subscription.disabled'
18677
+ | 'webhook_subscription.events.updated'
18678
+ | 'webhook_subscription.phone_numbers.updated'
18679
+ | 'webhook_subscription.routing_headers_set'
18680
+ | 'webhook_subscription.routing_headers_cleared'
18681
+ | 'team_member.added'
18682
+ | 'team_member.signed_in'
18683
+ | 'team_member.signed_out';
18684
+
18685
+ /**
18686
+ * Partner identifier. Present on all webhooks for cross-referencing.
18687
+ */
18688
+ partner_id: string;
18689
+
18690
+ /**
18691
+ * Trace ID for debugging and correlation across systems.
18692
+ */
18693
+ trace_id: string;
18694
+
18695
+ /**
18696
+ * Date-based webhook payload version. Determined by the `?version=` query
18697
+ * parameter in your webhook subscription URL. If no version parameter is
18698
+ * specified, defaults based on subscription creation date.
18699
+ */
18700
+ webhook_version: string;
18701
+ }
18702
+
18703
+ export namespace CallVoiceEndedWebhookEvent {
18704
+ export interface Data {
18705
+ /**
18706
+ * Carrier voice call ID
18707
+ */
18708
+ id: string;
18709
+
18710
+ direction: 'inbound';
18711
+
18712
+ /**
18713
+ * External caller, E.164
18714
+ */
18715
+ from: string;
18716
+
18717
+ /**
18718
+ * Terminal call outcome. Null on progress events (initiated/ringing/answered); set
18719
+ * once the call ends.
18720
+ */
18721
+ status: 'completed' | 'busy' | 'no_answer' | 'failed' | 'canceled' | null;
18722
+
18723
+ /**
18724
+ * Your line that was called, E.164
18725
+ */
18726
+ to: string;
18727
+
18728
+ ended_at?: string | null;
18729
+
18730
+ started_at?: string | null;
18731
+ }
18732
+ }
18733
+
18734
+ export interface CallVoiceFailedWebhookEvent {
18735
+ /**
18736
+ * API version for the webhook payload format
18737
+ */
18738
+ api_version: string;
18739
+
18740
+ /**
18741
+ * When the event was created
18742
+ */
18743
+ created_at: string;
18744
+
18745
+ data: CallVoiceFailedWebhookEvent.Data;
18746
+
18747
+ /**
18748
+ * Unique identifier for this event (for deduplication)
18749
+ */
18750
+ event_id: string;
18751
+
18752
+ event_type:
18753
+ | 'call_voice.initiated'
18754
+ | 'call_voice.ringing'
18755
+ | 'call_voice.answered'
18756
+ | 'call_voice.ended'
18757
+ | 'call_voice.failed'
18758
+ | 'call_voice.declined'
18759
+ | 'call_voice.no_answer'
18760
+ | 'message.sent'
18761
+ | 'message.received'
18762
+ | 'message.read'
18763
+ | 'message.delivered'
18764
+ | 'message.failed'
18765
+ | 'message.edited'
18766
+ | 'reaction.added'
18767
+ | 'reaction.removed'
18768
+ | 'poll.received'
18769
+ | 'poll.failed'
18770
+ | 'poll.sent'
18771
+ | 'poll.delivered'
18772
+ | 'poll.read'
18773
+ | 'poll.updated'
18774
+ | 'poll.vote.added'
18775
+ | 'poll.vote.removed'
18776
+ | 'poll.reaction.added'
18777
+ | 'participant.added'
18778
+ | 'participant.removed'
18779
+ | 'chat.created'
18780
+ | 'chat.group_name_updated'
18781
+ | 'chat.group_icon_updated'
18782
+ | 'chat.group_name_update_failed'
18783
+ | 'chat.group_icon_update_failed'
18784
+ | 'chat.background_updated'
18785
+ | 'chat.background_update_failed'
18786
+ | 'chat.typing_indicator.started'
18787
+ | 'chat.typing_indicator.stopped'
18788
+ | 'phone_number.status_updated'
18789
+ | 'phone_number.assigned'
18790
+ | 'phone_number.released'
18791
+ | 'phone_number.line_type_updated'
18792
+ | 'contact_card.received'
18793
+ | 'location.sharing.started'
18794
+ | 'location.sharing.stopped'
18795
+ | 'payment.succeeded'
18796
+ | 'payment.canceled'
18797
+ | 'payment.expired'
18798
+ | 'payment.declined'
18799
+ | 'payment.authorized'
18800
+ | 'connection.created'
18801
+ | 'connection.revoked'
18802
+ | 'zero_day_retention.updated'
18803
+ | 'phone_number.forwarding_updated'
18804
+ | 'environment.line_moved'
18805
+ | 'contact_card.created'
18806
+ | 'contact_card.updated'
18807
+ | 'contact_card.deleted'
18808
+ | 'api_token.created'
18809
+ | 'api_token.renamed'
18810
+ | 'api_token.expiry_scheduled'
18811
+ | 'api_token.expired'
18812
+ | 'api_token.activated'
18813
+ | 'api_token.deleted'
18814
+ | 'environment.created'
18815
+ | 'environment.renamed'
18816
+ | 'environment.deleted'
18817
+ | 'webhook_subscription.created'
18818
+ | 'webhook_subscription.deleted'
18819
+ | 'webhook_subscription.target_url_changed'
18820
+ | 'webhook_subscription.enabled'
18821
+ | 'webhook_subscription.disabled'
18822
+ | 'webhook_subscription.events.updated'
18823
+ | 'webhook_subscription.phone_numbers.updated'
18824
+ | 'webhook_subscription.routing_headers_set'
18825
+ | 'webhook_subscription.routing_headers_cleared'
18826
+ | 'team_member.added'
18827
+ | 'team_member.signed_in'
18828
+ | 'team_member.signed_out';
18829
+
18830
+ /**
18831
+ * Partner identifier. Present on all webhooks for cross-referencing.
18832
+ */
18833
+ partner_id: string;
18834
+
18835
+ /**
18836
+ * Trace ID for debugging and correlation across systems.
18837
+ */
18838
+ trace_id: string;
18839
+
18840
+ /**
18841
+ * Date-based webhook payload version. Determined by the `?version=` query
18842
+ * parameter in your webhook subscription URL. If no version parameter is
18843
+ * specified, defaults based on subscription creation date.
18844
+ */
18845
+ webhook_version: string;
18846
+ }
18847
+
18848
+ export namespace CallVoiceFailedWebhookEvent {
18849
+ export interface Data {
18850
+ /**
18851
+ * Carrier voice call ID
18852
+ */
18853
+ id: string;
18854
+
18855
+ direction: 'inbound';
18856
+
18857
+ /**
18858
+ * External caller, E.164
18859
+ */
18860
+ from: string;
18861
+
18862
+ /**
18863
+ * Terminal call outcome. Null on progress events (initiated/ringing/answered); set
18864
+ * once the call ends.
18865
+ */
18866
+ status: 'completed' | 'busy' | 'no_answer' | 'failed' | 'canceled' | null;
18867
+
18868
+ /**
18869
+ * Your line that was called, E.164
18870
+ */
18871
+ to: string;
18872
+
18873
+ ended_at?: string | null;
18874
+
18875
+ started_at?: string | null;
18876
+ }
18877
+ }
18878
+
18879
+ export interface CallVoiceDeclinedWebhookEvent {
18880
+ /**
18881
+ * API version for the webhook payload format
18882
+ */
18883
+ api_version: string;
18884
+
18885
+ /**
18886
+ * When the event was created
18887
+ */
18888
+ created_at: string;
18889
+
18890
+ data: CallVoiceDeclinedWebhookEvent.Data;
18891
+
18892
+ /**
18893
+ * Unique identifier for this event (for deduplication)
18894
+ */
18895
+ event_id: string;
18896
+
18897
+ event_type:
18898
+ | 'call_voice.initiated'
18899
+ | 'call_voice.ringing'
18900
+ | 'call_voice.answered'
18901
+ | 'call_voice.ended'
18902
+ | 'call_voice.failed'
18903
+ | 'call_voice.declined'
18904
+ | 'call_voice.no_answer'
18905
+ | 'message.sent'
18906
+ | 'message.received'
18907
+ | 'message.read'
18908
+ | 'message.delivered'
18909
+ | 'message.failed'
18910
+ | 'message.edited'
18911
+ | 'reaction.added'
18912
+ | 'reaction.removed'
18913
+ | 'poll.received'
18914
+ | 'poll.failed'
18915
+ | 'poll.sent'
18916
+ | 'poll.delivered'
18917
+ | 'poll.read'
18918
+ | 'poll.updated'
18919
+ | 'poll.vote.added'
18920
+ | 'poll.vote.removed'
18921
+ | 'poll.reaction.added'
18922
+ | 'participant.added'
18923
+ | 'participant.removed'
18924
+ | 'chat.created'
18925
+ | 'chat.group_name_updated'
18926
+ | 'chat.group_icon_updated'
18927
+ | 'chat.group_name_update_failed'
18928
+ | 'chat.group_icon_update_failed'
18929
+ | 'chat.background_updated'
18930
+ | 'chat.background_update_failed'
18931
+ | 'chat.typing_indicator.started'
18932
+ | 'chat.typing_indicator.stopped'
18933
+ | 'phone_number.status_updated'
18934
+ | 'phone_number.assigned'
18935
+ | 'phone_number.released'
18936
+ | 'phone_number.line_type_updated'
18937
+ | 'contact_card.received'
18938
+ | 'location.sharing.started'
18939
+ | 'location.sharing.stopped'
18940
+ | 'payment.succeeded'
18941
+ | 'payment.canceled'
18942
+ | 'payment.expired'
18943
+ | 'payment.declined'
18944
+ | 'payment.authorized'
18945
+ | 'connection.created'
18946
+ | 'connection.revoked'
18947
+ | 'zero_day_retention.updated'
18948
+ | 'phone_number.forwarding_updated'
18949
+ | 'environment.line_moved'
18950
+ | 'contact_card.created'
18951
+ | 'contact_card.updated'
18952
+ | 'contact_card.deleted'
18953
+ | 'api_token.created'
18954
+ | 'api_token.renamed'
18955
+ | 'api_token.expiry_scheduled'
18956
+ | 'api_token.expired'
18957
+ | 'api_token.activated'
18958
+ | 'api_token.deleted'
18959
+ | 'environment.created'
18960
+ | 'environment.renamed'
18961
+ | 'environment.deleted'
18962
+ | 'webhook_subscription.created'
18963
+ | 'webhook_subscription.deleted'
18964
+ | 'webhook_subscription.target_url_changed'
18965
+ | 'webhook_subscription.enabled'
18966
+ | 'webhook_subscription.disabled'
18967
+ | 'webhook_subscription.events.updated'
18968
+ | 'webhook_subscription.phone_numbers.updated'
18969
+ | 'webhook_subscription.routing_headers_set'
18970
+ | 'webhook_subscription.routing_headers_cleared'
18971
+ | 'team_member.added'
18972
+ | 'team_member.signed_in'
18973
+ | 'team_member.signed_out';
18974
+
18975
+ /**
18976
+ * Partner identifier. Present on all webhooks for cross-referencing.
18977
+ */
18978
+ partner_id: string;
18979
+
18980
+ /**
18981
+ * Trace ID for debugging and correlation across systems.
18982
+ */
18983
+ trace_id: string;
18984
+
18985
+ /**
18986
+ * Date-based webhook payload version. Determined by the `?version=` query
18987
+ * parameter in your webhook subscription URL. If no version parameter is
18988
+ * specified, defaults based on subscription creation date.
18989
+ */
18990
+ webhook_version: string;
18991
+ }
18992
+
18993
+ export namespace CallVoiceDeclinedWebhookEvent {
18994
+ export interface Data {
18995
+ /**
18996
+ * Carrier voice call ID
18997
+ */
18998
+ id: string;
18999
+
19000
+ direction: 'inbound';
19001
+
19002
+ /**
19003
+ * External caller, E.164
19004
+ */
19005
+ from: string;
19006
+
19007
+ /**
19008
+ * Terminal call outcome. Null on progress events (initiated/ringing/answered); set
19009
+ * once the call ends.
19010
+ */
19011
+ status: 'completed' | 'busy' | 'no_answer' | 'failed' | 'canceled' | null;
19012
+
19013
+ /**
19014
+ * Your line that was called, E.164
19015
+ */
19016
+ to: string;
19017
+
19018
+ ended_at?: string | null;
19019
+
19020
+ started_at?: string | null;
19021
+ }
19022
+ }
19023
+
19024
+ export interface CallVoiceNoAnswerWebhookEvent {
19025
+ /**
19026
+ * API version for the webhook payload format
19027
+ */
19028
+ api_version: string;
19029
+
19030
+ /**
19031
+ * When the event was created
19032
+ */
19033
+ created_at: string;
19034
+
19035
+ data: CallVoiceNoAnswerWebhookEvent.Data;
19036
+
19037
+ /**
19038
+ * Unique identifier for this event (for deduplication)
19039
+ */
19040
+ event_id: string;
19041
+
19042
+ event_type:
19043
+ | 'call_voice.initiated'
19044
+ | 'call_voice.ringing'
19045
+ | 'call_voice.answered'
19046
+ | 'call_voice.ended'
19047
+ | 'call_voice.failed'
19048
+ | 'call_voice.declined'
19049
+ | 'call_voice.no_answer'
19050
+ | 'message.sent'
19051
+ | 'message.received'
19052
+ | 'message.read'
19053
+ | 'message.delivered'
19054
+ | 'message.failed'
19055
+ | 'message.edited'
19056
+ | 'reaction.added'
19057
+ | 'reaction.removed'
19058
+ | 'poll.received'
19059
+ | 'poll.failed'
19060
+ | 'poll.sent'
19061
+ | 'poll.delivered'
19062
+ | 'poll.read'
19063
+ | 'poll.updated'
19064
+ | 'poll.vote.added'
19065
+ | 'poll.vote.removed'
19066
+ | 'poll.reaction.added'
19067
+ | 'participant.added'
19068
+ | 'participant.removed'
19069
+ | 'chat.created'
19070
+ | 'chat.group_name_updated'
19071
+ | 'chat.group_icon_updated'
19072
+ | 'chat.group_name_update_failed'
19073
+ | 'chat.group_icon_update_failed'
19074
+ | 'chat.background_updated'
19075
+ | 'chat.background_update_failed'
19076
+ | 'chat.typing_indicator.started'
19077
+ | 'chat.typing_indicator.stopped'
19078
+ | 'phone_number.status_updated'
19079
+ | 'phone_number.assigned'
19080
+ | 'phone_number.released'
19081
+ | 'phone_number.line_type_updated'
19082
+ | 'contact_card.received'
19083
+ | 'location.sharing.started'
19084
+ | 'location.sharing.stopped'
19085
+ | 'payment.succeeded'
19086
+ | 'payment.canceled'
19087
+ | 'payment.expired'
19088
+ | 'payment.declined'
19089
+ | 'payment.authorized'
19090
+ | 'connection.created'
19091
+ | 'connection.revoked'
19092
+ | 'zero_day_retention.updated'
19093
+ | 'phone_number.forwarding_updated'
19094
+ | 'environment.line_moved'
19095
+ | 'contact_card.created'
19096
+ | 'contact_card.updated'
19097
+ | 'contact_card.deleted'
19098
+ | 'api_token.created'
19099
+ | 'api_token.renamed'
19100
+ | 'api_token.expiry_scheduled'
19101
+ | 'api_token.expired'
19102
+ | 'api_token.activated'
19103
+ | 'api_token.deleted'
19104
+ | 'environment.created'
19105
+ | 'environment.renamed'
19106
+ | 'environment.deleted'
19107
+ | 'webhook_subscription.created'
19108
+ | 'webhook_subscription.deleted'
19109
+ | 'webhook_subscription.target_url_changed'
19110
+ | 'webhook_subscription.enabled'
19111
+ | 'webhook_subscription.disabled'
19112
+ | 'webhook_subscription.events.updated'
19113
+ | 'webhook_subscription.phone_numbers.updated'
19114
+ | 'webhook_subscription.routing_headers_set'
19115
+ | 'webhook_subscription.routing_headers_cleared'
19116
+ | 'team_member.added'
19117
+ | 'team_member.signed_in'
19118
+ | 'team_member.signed_out';
19119
+
19120
+ /**
19121
+ * Partner identifier. Present on all webhooks for cross-referencing.
19122
+ */
19123
+ partner_id: string;
19124
+
19125
+ /**
19126
+ * Trace ID for debugging and correlation across systems.
19127
+ */
19128
+ trace_id: string;
19129
+
19130
+ /**
19131
+ * Date-based webhook payload version. Determined by the `?version=` query
19132
+ * parameter in your webhook subscription URL. If no version parameter is
19133
+ * specified, defaults based on subscription creation date.
19134
+ */
19135
+ webhook_version: string;
19136
+ }
19137
+
19138
+ export namespace CallVoiceNoAnswerWebhookEvent {
19139
+ export interface Data {
19140
+ /**
19141
+ * Carrier voice call ID
19142
+ */
19143
+ id: string;
19144
+
19145
+ direction: 'inbound';
19146
+
19147
+ /**
19148
+ * External caller, E.164
19149
+ */
19150
+ from: string;
19151
+
19152
+ /**
19153
+ * Terminal call outcome. Null on progress events (initiated/ringing/answered); set
19154
+ * once the call ends.
19155
+ */
19156
+ status: 'completed' | 'busy' | 'no_answer' | 'failed' | 'canceled' | null;
19157
+
19158
+ /**
19159
+ * Your line that was called, E.164
19160
+ */
19161
+ to: string;
19162
+
19163
+ ended_at?: string | null;
19164
+
19165
+ started_at?: string | null;
19166
+ }
19167
+ }
19168
+
18197
19169
  /**
18198
19170
  * Complete webhook payload for message.sent events (2026-02-03 format)
18199
19171
  */
@@ -18230,6 +19202,7 @@ export type UnwrapWebhookEvent =
18230
19202
  | PhoneNumberStatusUpdatedWebhookEvent
18231
19203
  | PhoneNumberAssignedWebhookEvent
18232
19204
  | PhoneNumberReleasedWebhookEvent
19205
+ | PhoneNumberLineTypeUpdatedWebhookEvent
18233
19206
  | ConnectionCreatedWebhookEvent
18234
19207
  | ConnectionRevokedWebhookEvent
18235
19208
  | LocationSharingStartedWebhookEvent
@@ -18265,7 +19238,14 @@ export type UnwrapWebhookEvent =
18265
19238
  | WebhookSubscriptionRoutingHeadersClearedWebhookEvent
18266
19239
  | TeamMemberAddedWebhookEvent
18267
19240
  | TeamMemberSignedInWebhookEvent
18268
- | TeamMemberSignedOutWebhookEvent;
19241
+ | TeamMemberSignedOutWebhookEvent
19242
+ | CallVoiceInitiatedWebhookEvent
19243
+ | CallVoiceRingingWebhookEvent
19244
+ | CallVoiceAnsweredWebhookEvent
19245
+ | CallVoiceEndedWebhookEvent
19246
+ | CallVoiceFailedWebhookEvent
19247
+ | CallVoiceDeclinedWebhookEvent
19248
+ | CallVoiceNoAnswerWebhookEvent;
18269
19249
 
18270
19250
  export declare namespace Webhooks {
18271
19251
  export {
@@ -18307,6 +19287,7 @@ export declare namespace Webhooks {
18307
19287
  type PhoneNumberStatusUpdatedWebhookEvent as PhoneNumberStatusUpdatedWebhookEvent,
18308
19288
  type PhoneNumberAssignedWebhookEvent as PhoneNumberAssignedWebhookEvent,
18309
19289
  type PhoneNumberReleasedWebhookEvent as PhoneNumberReleasedWebhookEvent,
19290
+ type PhoneNumberLineTypeUpdatedWebhookEvent as PhoneNumberLineTypeUpdatedWebhookEvent,
18310
19291
  type ConnectionCreatedWebhookEvent as ConnectionCreatedWebhookEvent,
18311
19292
  type ConnectionRevokedWebhookEvent as ConnectionRevokedWebhookEvent,
18312
19293
  type LocationSharingStartedWebhookEvent as LocationSharingStartedWebhookEvent,
@@ -18343,6 +19324,13 @@ export declare namespace Webhooks {
18343
19324
  type TeamMemberAddedWebhookEvent as TeamMemberAddedWebhookEvent,
18344
19325
  type TeamMemberSignedInWebhookEvent as TeamMemberSignedInWebhookEvent,
18345
19326
  type TeamMemberSignedOutWebhookEvent as TeamMemberSignedOutWebhookEvent,
19327
+ type CallVoiceInitiatedWebhookEvent as CallVoiceInitiatedWebhookEvent,
19328
+ type CallVoiceRingingWebhookEvent as CallVoiceRingingWebhookEvent,
19329
+ type CallVoiceAnsweredWebhookEvent as CallVoiceAnsweredWebhookEvent,
19330
+ type CallVoiceEndedWebhookEvent as CallVoiceEndedWebhookEvent,
19331
+ type CallVoiceFailedWebhookEvent as CallVoiceFailedWebhookEvent,
19332
+ type CallVoiceDeclinedWebhookEvent as CallVoiceDeclinedWebhookEvent,
19333
+ type CallVoiceNoAnswerWebhookEvent as CallVoiceNoAnswerWebhookEvent,
18346
19334
  type UnwrapWebhookEvent as UnwrapWebhookEvent,
18347
19335
  };
18348
19336
  }