@linqapp/sdk 0.79.0 → 0.81.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.
- package/CHANGELOG.md +14 -0
- package/client.d.mts +77 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +77 -2
- package/client.d.ts.map +1 -1
- package/client.js +75 -0
- package/client.js.map +1 -1
- package/client.mjs +75 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/available-number.d.mts +13 -0
- package/resources/available-number.d.mts.map +1 -1
- package/resources/available-number.d.ts +13 -0
- package/resources/available-number.d.ts.map +1 -1
- package/resources/available-number.js +13 -0
- package/resources/available-number.js.map +1 -1
- package/resources/available-number.mjs +13 -0
- package/resources/available-number.mjs.map +1 -1
- package/resources/call-voice.d.mts +82 -0
- package/resources/call-voice.d.mts.map +1 -0
- package/resources/call-voice.d.ts +82 -0
- package/resources/call-voice.d.ts.map +1 -0
- package/resources/call-voice.js +35 -0
- package/resources/call-voice.js.map +1 -0
- package/resources/call-voice.mjs +31 -0
- package/resources/call-voice.mjs.map +1 -0
- package/resources/chats/chats.d.mts +16 -3
- package/resources/chats/chats.d.mts.map +1 -1
- package/resources/chats/chats.d.ts +16 -3
- package/resources/chats/chats.d.ts.map +1 -1
- package/resources/chats/chats.js.map +1 -1
- package/resources/chats/chats.mjs.map +1 -1
- package/resources/chats/messages.d.mts +10 -3
- package/resources/chats/messages.d.mts.map +1 -1
- package/resources/chats/messages.d.ts +10 -3
- package/resources/chats/messages.d.ts.map +1 -1
- package/resources/chats/polls.d.mts +1 -1
- package/resources/chats/polls.d.ts +1 -1
- package/resources/contact-card.d.mts +8 -0
- package/resources/contact-card.d.mts.map +1 -1
- package/resources/contact-card.d.ts +8 -0
- package/resources/contact-card.d.ts.map +1 -1
- package/resources/contact-card.js +8 -0
- package/resources/contact-card.js.map +1 -1
- package/resources/contact-card.mjs +8 -0
- package/resources/contact-card.mjs.map +1 -1
- package/resources/index.d.mts +3 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +16 -7
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +16 -7
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +6 -4
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +6 -4
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/phone-numbers.d.mts +20 -0
- package/resources/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers.d.ts +20 -0
- package/resources/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers.js +13 -0
- package/resources/phone-numbers.js.map +1 -1
- package/resources/phone-numbers.mjs +13 -0
- package/resources/phone-numbers.mjs.map +1 -1
- package/resources/phonenumbers.d.mts +13 -0
- package/resources/phonenumbers.d.mts.map +1 -1
- package/resources/phonenumbers.d.ts +13 -0
- package/resources/phonenumbers.d.ts.map +1 -1
- package/resources/phonenumbers.js +13 -0
- package/resources/phonenumbers.js.map +1 -1
- package/resources/phonenumbers.mjs +13 -0
- package/resources/phonenumbers.mjs.map +1 -1
- package/resources/shared.d.mts +4 -2
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +4 -2
- package/resources/shared.d.ts.map +1 -1
- package/resources/sip-profiles.d.mts +224 -0
- package/resources/sip-profiles.d.mts.map +1 -0
- package/resources/sip-profiles.d.ts +224 -0
- package/resources/sip-profiles.d.ts.map +1 -0
- package/resources/sip-profiles.js +168 -0
- package/resources/sip-profiles.js.map +1 -0
- package/resources/sip-profiles.mjs +164 -0
- package/resources/sip-profiles.mjs.map +1 -0
- package/resources/webhook-events.d.mts +1 -1
- package/resources/webhook-events.d.mts.map +1 -1
- package/resources/webhook-events.d.ts +1 -1
- package/resources/webhook-events.d.ts.map +1 -1
- package/resources/webhooks.d.mts +524 -44
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +524 -44
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +121 -0
- package/src/resources/available-number.ts +13 -0
- package/src/resources/call-voice.ts +110 -0
- package/src/resources/chats/chats.ts +18 -3
- package/src/resources/chats/messages.ts +11 -3
- package/src/resources/chats/polls.ts +1 -1
- package/src/resources/contact-card.ts +8 -0
- package/src/resources/index.ts +23 -0
- package/src/resources/messages/messages.ts +17 -7
- package/src/resources/phone-numbers.ts +21 -0
- package/src/resources/phonenumbers.ts +13 -0
- package/src/resources/shared.ts +4 -2
- package/src/resources/sip-profiles.ts +282 -0
- package/src/resources/webhook-events.ts +1 -7
- package/src/resources/webhooks.ts +1263 -277
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- 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
|
|
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
|
*/
|
|
@@ -649,7 +692,9 @@ export interface ReactionEventBase {
|
|
|
649
692
|
reacted_at?: string;
|
|
650
693
|
|
|
651
694
|
/**
|
|
652
|
-
* Identifier for this reaction
|
|
695
|
+
* Identifier for this reaction, matching `id` on the message's `reactions`.
|
|
696
|
+
* Changing a tapback keeps the same id, and `reaction.removed` carries the id of
|
|
697
|
+
* the reaction it removed. Pass it to
|
|
653
698
|
* `PATCH /v3/messages/{messageId}/reactions/{reactionId}` to move a sticker.
|
|
654
699
|
* Stickers stack, so this is what distinguishes one sticker from another on the
|
|
655
700
|
* same message.
|
|
@@ -1213,7 +1258,8 @@ export namespace MessageFailedWebhookEvent {
|
|
|
1213
1258
|
message_id?: string;
|
|
1214
1259
|
|
|
1215
1260
|
/**
|
|
1216
|
-
* Preferred messaging service type. Includes "auto" for default
|
|
1261
|
+
* @deprecated Preferred messaging service type. Includes "auto" for default
|
|
1262
|
+
* fallback behavior.
|
|
1217
1263
|
*/
|
|
1218
1264
|
preferred_service?: 'iMessage' | 'SMS' | 'RCS' | 'auto' | null;
|
|
1219
1265
|
|
|
@@ -3821,14 +3867,8 @@ export interface PhoneNumberStatusUpdatedWebhookEvent {
|
|
|
3821
3867
|
| 'phone_number.status_updated'
|
|
3822
3868
|
| 'phone_number.assigned'
|
|
3823
3869
|
| 'phone_number.released'
|
|
3870
|
+
| 'phone_number.line_type_updated'
|
|
3824
3871
|
| '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
3872
|
| 'location.sharing.started'
|
|
3833
3873
|
| 'location.sharing.stopped'
|
|
3834
3874
|
| 'payment.succeeded'
|
|
@@ -3980,14 +4020,8 @@ export interface PhoneNumberAssignedWebhookEvent {
|
|
|
3980
4020
|
| 'phone_number.status_updated'
|
|
3981
4021
|
| 'phone_number.assigned'
|
|
3982
4022
|
| 'phone_number.released'
|
|
4023
|
+
| 'phone_number.line_type_updated'
|
|
3983
4024
|
| '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
4025
|
| 'location.sharing.started'
|
|
3992
4026
|
| 'location.sharing.stopped'
|
|
3993
4027
|
| 'payment.succeeded'
|
|
@@ -4119,14 +4153,8 @@ export interface PhoneNumberReleasedWebhookEvent {
|
|
|
4119
4153
|
| 'phone_number.status_updated'
|
|
4120
4154
|
| 'phone_number.assigned'
|
|
4121
4155
|
| 'phone_number.released'
|
|
4156
|
+
| 'phone_number.line_type_updated'
|
|
4122
4157
|
| '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
4158
|
| 'location.sharing.started'
|
|
4131
4159
|
| 'location.sharing.stopped'
|
|
4132
4160
|
| 'payment.succeeded'
|
|
@@ -4199,6 +4227,149 @@ export namespace PhoneNumberReleasedWebhookEvent {
|
|
|
4199
4227
|
}
|
|
4200
4228
|
}
|
|
4201
4229
|
|
|
4230
|
+
/**
|
|
4231
|
+
* Complete webhook payload for phone_number.line_type_updated events
|
|
4232
|
+
*/
|
|
4233
|
+
export interface PhoneNumberLineTypeUpdatedWebhookEvent {
|
|
4234
|
+
/**
|
|
4235
|
+
* API version for the webhook payload format
|
|
4236
|
+
*/
|
|
4237
|
+
api_version: string;
|
|
4238
|
+
|
|
4239
|
+
/**
|
|
4240
|
+
* When the event was created
|
|
4241
|
+
*/
|
|
4242
|
+
created_at: string;
|
|
4243
|
+
|
|
4244
|
+
/**
|
|
4245
|
+
* Payload for phone_number.line_type_updated webhook events
|
|
4246
|
+
*/
|
|
4247
|
+
data: PhoneNumberLineTypeUpdatedWebhookEvent.Data;
|
|
4248
|
+
|
|
4249
|
+
/**
|
|
4250
|
+
* Unique identifier for this event (for deduplication)
|
|
4251
|
+
*/
|
|
4252
|
+
event_id: string;
|
|
4253
|
+
|
|
4254
|
+
/**
|
|
4255
|
+
* The type of event
|
|
4256
|
+
*/
|
|
4257
|
+
event_type:
|
|
4258
|
+
| 'message.sent'
|
|
4259
|
+
| 'message.received'
|
|
4260
|
+
| 'message.read'
|
|
4261
|
+
| 'message.delivered'
|
|
4262
|
+
| 'message.failed'
|
|
4263
|
+
| 'message.edited'
|
|
4264
|
+
| 'reaction.added'
|
|
4265
|
+
| 'reaction.removed'
|
|
4266
|
+
| 'poll.received'
|
|
4267
|
+
| 'poll.failed'
|
|
4268
|
+
| 'poll.sent'
|
|
4269
|
+
| 'poll.delivered'
|
|
4270
|
+
| 'poll.read'
|
|
4271
|
+
| 'poll.updated'
|
|
4272
|
+
| 'poll.vote.added'
|
|
4273
|
+
| 'poll.vote.removed'
|
|
4274
|
+
| 'poll.reaction.added'
|
|
4275
|
+
| 'participant.added'
|
|
4276
|
+
| 'participant.removed'
|
|
4277
|
+
| 'chat.created'
|
|
4278
|
+
| 'chat.group_name_updated'
|
|
4279
|
+
| 'chat.group_icon_updated'
|
|
4280
|
+
| 'chat.group_name_update_failed'
|
|
4281
|
+
| 'chat.group_icon_update_failed'
|
|
4282
|
+
| 'chat.background_updated'
|
|
4283
|
+
| 'chat.background_update_failed'
|
|
4284
|
+
| 'chat.typing_indicator.started'
|
|
4285
|
+
| 'chat.typing_indicator.stopped'
|
|
4286
|
+
| 'phone_number.status_updated'
|
|
4287
|
+
| 'phone_number.assigned'
|
|
4288
|
+
| 'phone_number.released'
|
|
4289
|
+
| 'phone_number.line_type_updated'
|
|
4290
|
+
| 'contact_card.received'
|
|
4291
|
+
| 'location.sharing.started'
|
|
4292
|
+
| 'location.sharing.stopped'
|
|
4293
|
+
| 'payment.succeeded'
|
|
4294
|
+
| 'payment.canceled'
|
|
4295
|
+
| 'payment.expired'
|
|
4296
|
+
| 'payment.declined'
|
|
4297
|
+
| 'payment.authorized'
|
|
4298
|
+
| 'connection.created'
|
|
4299
|
+
| 'connection.revoked'
|
|
4300
|
+
| 'zero_day_retention.updated'
|
|
4301
|
+
| 'phone_number.forwarding_updated'
|
|
4302
|
+
| 'environment.line_moved'
|
|
4303
|
+
| 'contact_card.created'
|
|
4304
|
+
| 'contact_card.updated'
|
|
4305
|
+
| 'contact_card.deleted'
|
|
4306
|
+
| 'api_token.created'
|
|
4307
|
+
| 'api_token.renamed'
|
|
4308
|
+
| 'api_token.expiry_scheduled'
|
|
4309
|
+
| 'api_token.expired'
|
|
4310
|
+
| 'api_token.activated'
|
|
4311
|
+
| 'api_token.deleted'
|
|
4312
|
+
| 'environment.created'
|
|
4313
|
+
| 'environment.renamed'
|
|
4314
|
+
| 'environment.deleted'
|
|
4315
|
+
| 'webhook_subscription.created'
|
|
4316
|
+
| 'webhook_subscription.deleted'
|
|
4317
|
+
| 'webhook_subscription.target_url_changed'
|
|
4318
|
+
| 'webhook_subscription.enabled'
|
|
4319
|
+
| 'webhook_subscription.disabled'
|
|
4320
|
+
| 'webhook_subscription.events.updated'
|
|
4321
|
+
| 'webhook_subscription.phone_numbers.updated'
|
|
4322
|
+
| 'webhook_subscription.routing_headers_set'
|
|
4323
|
+
| 'webhook_subscription.routing_headers_cleared'
|
|
4324
|
+
| 'team_member.added'
|
|
4325
|
+
| 'team_member.signed_in'
|
|
4326
|
+
| 'team_member.signed_out';
|
|
4327
|
+
|
|
4328
|
+
/**
|
|
4329
|
+
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
4330
|
+
*/
|
|
4331
|
+
partner_id: string;
|
|
4332
|
+
|
|
4333
|
+
/**
|
|
4334
|
+
* Trace ID for debugging and correlation across systems.
|
|
4335
|
+
*/
|
|
4336
|
+
trace_id: string;
|
|
4337
|
+
|
|
4338
|
+
/**
|
|
4339
|
+
* Date-based webhook payload version. Determined by the `?version=` query
|
|
4340
|
+
* parameter in your webhook subscription URL. If no version parameter is
|
|
4341
|
+
* specified, defaults based on subscription creation date.
|
|
4342
|
+
*/
|
|
4343
|
+
webhook_version: string;
|
|
4344
|
+
}
|
|
4345
|
+
|
|
4346
|
+
export namespace PhoneNumberLineTypeUpdatedWebhookEvent {
|
|
4347
|
+
/**
|
|
4348
|
+
* Payload for phone_number.line_type_updated webhook events
|
|
4349
|
+
*/
|
|
4350
|
+
export interface Data {
|
|
4351
|
+
/**
|
|
4352
|
+
* When the line type changed
|
|
4353
|
+
*/
|
|
4354
|
+
changed_at: string;
|
|
4355
|
+
|
|
4356
|
+
/**
|
|
4357
|
+
* The line type after the change
|
|
4358
|
+
*/
|
|
4359
|
+
new_line_type: 'iMessage' | 'RCS';
|
|
4360
|
+
|
|
4361
|
+
/**
|
|
4362
|
+
* Phone number in E.164 format
|
|
4363
|
+
*/
|
|
4364
|
+
phone_number: string;
|
|
4365
|
+
|
|
4366
|
+
/**
|
|
4367
|
+
* The line type before the change
|
|
4368
|
+
*/
|
|
4369
|
+
previous_line_type: 'iMessage' | 'RCS';
|
|
4370
|
+
}
|
|
4371
|
+
}
|
|
4372
|
+
|
|
4202
4373
|
export interface ConnectionCreatedWebhookEvent {
|
|
4203
4374
|
/**
|
|
4204
4375
|
* API version for the webhook payload format
|
|
@@ -4256,14 +4427,8 @@ export interface ConnectionCreatedWebhookEvent {
|
|
|
4256
4427
|
| 'phone_number.status_updated'
|
|
4257
4428
|
| 'phone_number.assigned'
|
|
4258
4429
|
| 'phone_number.released'
|
|
4430
|
+
| 'phone_number.line_type_updated'
|
|
4259
4431
|
| '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
4432
|
| 'location.sharing.started'
|
|
4268
4433
|
| 'location.sharing.stopped'
|
|
4269
4434
|
| 'payment.declined'
|
|
@@ -4524,14 +4689,8 @@ export interface ConnectionRevokedWebhookEvent {
|
|
|
4524
4689
|
| 'phone_number.status_updated'
|
|
4525
4690
|
| 'phone_number.assigned'
|
|
4526
4691
|
| 'phone_number.released'
|
|
4692
|
+
| 'phone_number.line_type_updated'
|
|
4527
4693
|
| '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
4694
|
| 'location.sharing.started'
|
|
4536
4695
|
| 'location.sharing.stopped'
|
|
4537
4696
|
| 'payment.declined'
|
|
@@ -4786,14 +4945,8 @@ export interface LocationSharingStartedWebhookEvent {
|
|
|
4786
4945
|
| 'phone_number.status_updated'
|
|
4787
4946
|
| 'phone_number.assigned'
|
|
4788
4947
|
| 'phone_number.released'
|
|
4948
|
+
| 'phone_number.line_type_updated'
|
|
4789
4949
|
| '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
4950
|
| 'location.sharing.stopped'
|
|
4798
4951
|
| 'payment.succeeded'
|
|
4799
4952
|
| 'payment.canceled'
|
|
@@ -4933,14 +5086,8 @@ export interface LocationSharingStoppedWebhookEvent {
|
|
|
4933
5086
|
| 'phone_number.status_updated'
|
|
4934
5087
|
| 'phone_number.assigned'
|
|
4935
5088
|
| 'phone_number.released'
|
|
5089
|
+
| 'phone_number.line_type_updated'
|
|
4936
5090
|
| '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
5091
|
| 'location.sharing.started'
|
|
4945
5092
|
| 'payment.succeeded'
|
|
4946
5093
|
| 'payment.canceled'
|
|
@@ -5085,14 +5232,8 @@ export interface PaymentAuthorizedWebhookEvent {
|
|
|
5085
5232
|
| 'phone_number.status_updated'
|
|
5086
5233
|
| 'phone_number.assigned'
|
|
5087
5234
|
| 'phone_number.released'
|
|
5235
|
+
| 'phone_number.line_type_updated'
|
|
5088
5236
|
| '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
5237
|
| 'location.sharing.started'
|
|
5097
5238
|
| 'location.sharing.stopped'
|
|
5098
5239
|
| 'payment.declined'
|
|
@@ -5353,14 +5494,8 @@ export interface PaymentCanceledWebhookEvent {
|
|
|
5353
5494
|
| 'phone_number.status_updated'
|
|
5354
5495
|
| 'phone_number.assigned'
|
|
5355
5496
|
| 'phone_number.released'
|
|
5497
|
+
| 'phone_number.line_type_updated'
|
|
5356
5498
|
| '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
5499
|
| 'location.sharing.started'
|
|
5365
5500
|
| 'location.sharing.stopped'
|
|
5366
5501
|
| 'payment.declined'
|
|
@@ -5621,14 +5756,8 @@ export interface PaymentDeclinedWebhookEvent {
|
|
|
5621
5756
|
| 'phone_number.status_updated'
|
|
5622
5757
|
| 'phone_number.assigned'
|
|
5623
5758
|
| 'phone_number.released'
|
|
5759
|
+
| 'phone_number.line_type_updated'
|
|
5624
5760
|
| '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
5761
|
| 'location.sharing.started'
|
|
5633
5762
|
| 'location.sharing.stopped'
|
|
5634
5763
|
| 'payment.declined'
|
|
@@ -5889,14 +6018,8 @@ export interface PaymentExpiredWebhookEvent {
|
|
|
5889
6018
|
| 'phone_number.status_updated'
|
|
5890
6019
|
| 'phone_number.assigned'
|
|
5891
6020
|
| 'phone_number.released'
|
|
6021
|
+
| 'phone_number.line_type_updated'
|
|
5892
6022
|
| '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
6023
|
| 'location.sharing.started'
|
|
5901
6024
|
| 'location.sharing.stopped'
|
|
5902
6025
|
| 'payment.declined'
|
|
@@ -6157,14 +6280,8 @@ export interface PaymentSucceededWebhookEvent {
|
|
|
6157
6280
|
| 'phone_number.status_updated'
|
|
6158
6281
|
| 'phone_number.assigned'
|
|
6159
6282
|
| 'phone_number.released'
|
|
6283
|
+
| 'phone_number.line_type_updated'
|
|
6160
6284
|
| '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
6285
|
| 'location.sharing.started'
|
|
6169
6286
|
| 'location.sharing.stopped'
|
|
6170
6287
|
| 'payment.declined'
|
|
@@ -6465,14 +6582,8 @@ export interface ZeroDayRetentionUpdatedWebhookEvent {
|
|
|
6465
6582
|
| 'phone_number.status_updated'
|
|
6466
6583
|
| 'phone_number.assigned'
|
|
6467
6584
|
| 'phone_number.released'
|
|
6585
|
+
| 'phone_number.line_type_updated'
|
|
6468
6586
|
| '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
6587
|
| 'location.sharing.started'
|
|
6477
6588
|
| 'location.sharing.stopped'
|
|
6478
6589
|
| 'payment.succeeded'
|
|
@@ -6903,14 +7014,8 @@ export interface PhoneNumberForwardingUpdatedWebhookEvent {
|
|
|
6903
7014
|
| 'phone_number.status_updated'
|
|
6904
7015
|
| 'phone_number.assigned'
|
|
6905
7016
|
| 'phone_number.released'
|
|
7017
|
+
| 'phone_number.line_type_updated'
|
|
6906
7018
|
| '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
7019
|
| 'location.sharing.started'
|
|
6915
7020
|
| 'location.sharing.stopped'
|
|
6916
7021
|
| 'payment.succeeded'
|
|
@@ -7341,14 +7446,8 @@ export interface EnvironmentLineMovedWebhookEvent {
|
|
|
7341
7446
|
| 'phone_number.status_updated'
|
|
7342
7447
|
| 'phone_number.assigned'
|
|
7343
7448
|
| 'phone_number.released'
|
|
7449
|
+
| 'phone_number.line_type_updated'
|
|
7344
7450
|
| '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
7451
|
| 'location.sharing.started'
|
|
7353
7452
|
| 'location.sharing.stopped'
|
|
7354
7453
|
| 'payment.succeeded'
|
|
@@ -7779,14 +7878,8 @@ export interface ContactCardCreatedWebhookEvent {
|
|
|
7779
7878
|
| 'phone_number.status_updated'
|
|
7780
7879
|
| 'phone_number.assigned'
|
|
7781
7880
|
| 'phone_number.released'
|
|
7881
|
+
| 'phone_number.line_type_updated'
|
|
7782
7882
|
| '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
7883
|
| 'location.sharing.started'
|
|
7791
7884
|
| 'location.sharing.stopped'
|
|
7792
7885
|
| 'payment.succeeded'
|
|
@@ -8217,14 +8310,8 @@ export interface ContactCardUpdatedWebhookEvent {
|
|
|
8217
8310
|
| 'phone_number.status_updated'
|
|
8218
8311
|
| 'phone_number.assigned'
|
|
8219
8312
|
| 'phone_number.released'
|
|
8313
|
+
| 'phone_number.line_type_updated'
|
|
8220
8314
|
| '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
8315
|
| 'location.sharing.started'
|
|
8229
8316
|
| 'location.sharing.stopped'
|
|
8230
8317
|
| 'payment.succeeded'
|
|
@@ -8655,14 +8742,8 @@ export interface ContactCardDeletedWebhookEvent {
|
|
|
8655
8742
|
| 'phone_number.status_updated'
|
|
8656
8743
|
| 'phone_number.assigned'
|
|
8657
8744
|
| 'phone_number.released'
|
|
8745
|
+
| 'phone_number.line_type_updated'
|
|
8658
8746
|
| '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
8747
|
| 'location.sharing.started'
|
|
8667
8748
|
| 'location.sharing.stopped'
|
|
8668
8749
|
| 'payment.succeeded'
|
|
@@ -9093,14 +9174,8 @@ export interface APITokenCreatedWebhookEvent {
|
|
|
9093
9174
|
| 'phone_number.status_updated'
|
|
9094
9175
|
| 'phone_number.assigned'
|
|
9095
9176
|
| 'phone_number.released'
|
|
9177
|
+
| 'phone_number.line_type_updated'
|
|
9096
9178
|
| '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
9179
|
| 'location.sharing.started'
|
|
9105
9180
|
| 'location.sharing.stopped'
|
|
9106
9181
|
| 'payment.succeeded'
|
|
@@ -9531,14 +9606,8 @@ export interface APITokenRenamedWebhookEvent {
|
|
|
9531
9606
|
| 'phone_number.status_updated'
|
|
9532
9607
|
| 'phone_number.assigned'
|
|
9533
9608
|
| 'phone_number.released'
|
|
9609
|
+
| 'phone_number.line_type_updated'
|
|
9534
9610
|
| '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
9611
|
| 'location.sharing.started'
|
|
9543
9612
|
| 'location.sharing.stopped'
|
|
9544
9613
|
| 'payment.succeeded'
|
|
@@ -9969,14 +10038,8 @@ export interface APITokenExpiryScheduledWebhookEvent {
|
|
|
9969
10038
|
| 'phone_number.status_updated'
|
|
9970
10039
|
| 'phone_number.assigned'
|
|
9971
10040
|
| 'phone_number.released'
|
|
10041
|
+
| 'phone_number.line_type_updated'
|
|
9972
10042
|
| '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
10043
|
| 'location.sharing.started'
|
|
9981
10044
|
| 'location.sharing.stopped'
|
|
9982
10045
|
| 'payment.succeeded'
|
|
@@ -10407,14 +10470,8 @@ export interface APITokenExpiredWebhookEvent {
|
|
|
10407
10470
|
| 'phone_number.status_updated'
|
|
10408
10471
|
| 'phone_number.assigned'
|
|
10409
10472
|
| 'phone_number.released'
|
|
10473
|
+
| 'phone_number.line_type_updated'
|
|
10410
10474
|
| '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
10475
|
| 'location.sharing.started'
|
|
10419
10476
|
| 'location.sharing.stopped'
|
|
10420
10477
|
| 'payment.succeeded'
|
|
@@ -10845,14 +10902,8 @@ export interface APITokenActivatedWebhookEvent {
|
|
|
10845
10902
|
| 'phone_number.status_updated'
|
|
10846
10903
|
| 'phone_number.assigned'
|
|
10847
10904
|
| 'phone_number.released'
|
|
10905
|
+
| 'phone_number.line_type_updated'
|
|
10848
10906
|
| '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
10907
|
| 'location.sharing.started'
|
|
10857
10908
|
| 'location.sharing.stopped'
|
|
10858
10909
|
| 'payment.succeeded'
|
|
@@ -11283,14 +11334,8 @@ export interface APITokenDeletedWebhookEvent {
|
|
|
11283
11334
|
| 'phone_number.status_updated'
|
|
11284
11335
|
| 'phone_number.assigned'
|
|
11285
11336
|
| 'phone_number.released'
|
|
11337
|
+
| 'phone_number.line_type_updated'
|
|
11286
11338
|
| '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
11339
|
| 'location.sharing.started'
|
|
11295
11340
|
| 'location.sharing.stopped'
|
|
11296
11341
|
| 'payment.succeeded'
|
|
@@ -11721,14 +11766,8 @@ export interface EnvironmentCreatedWebhookEvent {
|
|
|
11721
11766
|
| 'phone_number.status_updated'
|
|
11722
11767
|
| 'phone_number.assigned'
|
|
11723
11768
|
| 'phone_number.released'
|
|
11769
|
+
| 'phone_number.line_type_updated'
|
|
11724
11770
|
| '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
11771
|
| 'location.sharing.started'
|
|
11733
11772
|
| 'location.sharing.stopped'
|
|
11734
11773
|
| 'payment.succeeded'
|
|
@@ -12159,14 +12198,8 @@ export interface EnvironmentRenamedWebhookEvent {
|
|
|
12159
12198
|
| 'phone_number.status_updated'
|
|
12160
12199
|
| 'phone_number.assigned'
|
|
12161
12200
|
| 'phone_number.released'
|
|
12201
|
+
| 'phone_number.line_type_updated'
|
|
12162
12202
|
| '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
12203
|
| 'location.sharing.started'
|
|
12171
12204
|
| 'location.sharing.stopped'
|
|
12172
12205
|
| 'payment.succeeded'
|
|
@@ -12597,14 +12630,8 @@ export interface EnvironmentDeletedWebhookEvent {
|
|
|
12597
12630
|
| 'phone_number.status_updated'
|
|
12598
12631
|
| 'phone_number.assigned'
|
|
12599
12632
|
| 'phone_number.released'
|
|
12633
|
+
| 'phone_number.line_type_updated'
|
|
12600
12634
|
| '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
12635
|
| 'location.sharing.started'
|
|
12609
12636
|
| 'location.sharing.stopped'
|
|
12610
12637
|
| 'payment.succeeded'
|
|
@@ -13035,14 +13062,8 @@ export interface WebhookSubscriptionCreatedWebhookEvent {
|
|
|
13035
13062
|
| 'phone_number.status_updated'
|
|
13036
13063
|
| 'phone_number.assigned'
|
|
13037
13064
|
| 'phone_number.released'
|
|
13065
|
+
| 'phone_number.line_type_updated'
|
|
13038
13066
|
| '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
13067
|
| 'location.sharing.started'
|
|
13047
13068
|
| 'location.sharing.stopped'
|
|
13048
13069
|
| 'payment.succeeded'
|
|
@@ -13473,14 +13494,8 @@ export interface WebhookSubscriptionDeletedWebhookEvent {
|
|
|
13473
13494
|
| 'phone_number.status_updated'
|
|
13474
13495
|
| 'phone_number.assigned'
|
|
13475
13496
|
| 'phone_number.released'
|
|
13497
|
+
| 'phone_number.line_type_updated'
|
|
13476
13498
|
| '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
13499
|
| 'location.sharing.started'
|
|
13485
13500
|
| 'location.sharing.stopped'
|
|
13486
13501
|
| 'payment.succeeded'
|
|
@@ -13911,14 +13926,8 @@ export interface WebhookSubscriptionTargetURLChangedWebhookEvent {
|
|
|
13911
13926
|
| 'phone_number.status_updated'
|
|
13912
13927
|
| 'phone_number.assigned'
|
|
13913
13928
|
| 'phone_number.released'
|
|
13929
|
+
| 'phone_number.line_type_updated'
|
|
13914
13930
|
| '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
13931
|
| 'location.sharing.started'
|
|
13923
13932
|
| 'location.sharing.stopped'
|
|
13924
13933
|
| 'payment.succeeded'
|
|
@@ -14349,14 +14358,8 @@ export interface WebhookSubscriptionEnabledWebhookEvent {
|
|
|
14349
14358
|
| 'phone_number.status_updated'
|
|
14350
14359
|
| 'phone_number.assigned'
|
|
14351
14360
|
| 'phone_number.released'
|
|
14361
|
+
| 'phone_number.line_type_updated'
|
|
14352
14362
|
| '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
14363
|
| 'location.sharing.started'
|
|
14361
14364
|
| 'location.sharing.stopped'
|
|
14362
14365
|
| 'payment.succeeded'
|
|
@@ -14787,14 +14790,8 @@ export interface WebhookSubscriptionDisabledWebhookEvent {
|
|
|
14787
14790
|
| 'phone_number.status_updated'
|
|
14788
14791
|
| 'phone_number.assigned'
|
|
14789
14792
|
| 'phone_number.released'
|
|
14793
|
+
| 'phone_number.line_type_updated'
|
|
14790
14794
|
| '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
14795
|
| 'location.sharing.started'
|
|
14799
14796
|
| 'location.sharing.stopped'
|
|
14800
14797
|
| 'payment.succeeded'
|
|
@@ -15225,14 +15222,8 @@ export interface WebhookSubscriptionEventsUpdatedWebhookEvent {
|
|
|
15225
15222
|
| 'phone_number.status_updated'
|
|
15226
15223
|
| 'phone_number.assigned'
|
|
15227
15224
|
| 'phone_number.released'
|
|
15225
|
+
| 'phone_number.line_type_updated'
|
|
15228
15226
|
| '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
15227
|
| 'location.sharing.started'
|
|
15237
15228
|
| 'location.sharing.stopped'
|
|
15238
15229
|
| 'payment.succeeded'
|
|
@@ -15663,14 +15654,8 @@ export interface WebhookSubscriptionPhoneNumbersUpdatedWebhookEvent {
|
|
|
15663
15654
|
| 'phone_number.status_updated'
|
|
15664
15655
|
| 'phone_number.assigned'
|
|
15665
15656
|
| 'phone_number.released'
|
|
15657
|
+
| 'phone_number.line_type_updated'
|
|
15666
15658
|
| '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
15659
|
| 'location.sharing.started'
|
|
15675
15660
|
| 'location.sharing.stopped'
|
|
15676
15661
|
| 'payment.succeeded'
|
|
@@ -16101,14 +16086,8 @@ export interface WebhookSubscriptionRoutingHeadersSetWebhookEvent {
|
|
|
16101
16086
|
| 'phone_number.status_updated'
|
|
16102
16087
|
| 'phone_number.assigned'
|
|
16103
16088
|
| 'phone_number.released'
|
|
16089
|
+
| 'phone_number.line_type_updated'
|
|
16104
16090
|
| '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
16091
|
| 'location.sharing.started'
|
|
16113
16092
|
| 'location.sharing.stopped'
|
|
16114
16093
|
| 'payment.succeeded'
|
|
@@ -16539,14 +16518,8 @@ export interface WebhookSubscriptionRoutingHeadersClearedWebhookEvent {
|
|
|
16539
16518
|
| 'phone_number.status_updated'
|
|
16540
16519
|
| 'phone_number.assigned'
|
|
16541
16520
|
| 'phone_number.released'
|
|
16521
|
+
| 'phone_number.line_type_updated'
|
|
16542
16522
|
| '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
16523
|
| 'location.sharing.started'
|
|
16551
16524
|
| 'location.sharing.stopped'
|
|
16552
16525
|
| 'payment.succeeded'
|
|
@@ -16977,14 +16950,8 @@ export interface TeamMemberAddedWebhookEvent {
|
|
|
16977
16950
|
| 'phone_number.status_updated'
|
|
16978
16951
|
| 'phone_number.assigned'
|
|
16979
16952
|
| 'phone_number.released'
|
|
16953
|
+
| 'phone_number.line_type_updated'
|
|
16980
16954
|
| '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
16955
|
| 'location.sharing.started'
|
|
16989
16956
|
| 'location.sharing.stopped'
|
|
16990
16957
|
| 'payment.succeeded'
|
|
@@ -17415,14 +17382,8 @@ export interface TeamMemberSignedInWebhookEvent {
|
|
|
17415
17382
|
| 'phone_number.status_updated'
|
|
17416
17383
|
| 'phone_number.assigned'
|
|
17417
17384
|
| 'phone_number.released'
|
|
17385
|
+
| 'phone_number.line_type_updated'
|
|
17418
17386
|
| '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
17387
|
| 'location.sharing.started'
|
|
17427
17388
|
| 'location.sharing.stopped'
|
|
17428
17389
|
| 'payment.succeeded'
|
|
@@ -17853,14 +17814,8 @@ export interface TeamMemberSignedOutWebhookEvent {
|
|
|
17853
17814
|
| 'phone_number.status_updated'
|
|
17854
17815
|
| 'phone_number.assigned'
|
|
17855
17816
|
| 'phone_number.released'
|
|
17817
|
+
| 'phone_number.line_type_updated'
|
|
17856
17818
|
| '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
17819
|
| 'location.sharing.started'
|
|
17865
17820
|
| 'location.sharing.stopped'
|
|
17866
17821
|
| 'payment.succeeded'
|
|
@@ -18194,6 +18149,1021 @@ export namespace TeamMemberSignedOutWebhookEvent {
|
|
|
18194
18149
|
}
|
|
18195
18150
|
}
|
|
18196
18151
|
|
|
18152
|
+
export interface CallVoiceInitiatedWebhookEvent {
|
|
18153
|
+
/**
|
|
18154
|
+
* API version for the webhook payload format
|
|
18155
|
+
*/
|
|
18156
|
+
api_version: string;
|
|
18157
|
+
|
|
18158
|
+
/**
|
|
18159
|
+
* When the event was created
|
|
18160
|
+
*/
|
|
18161
|
+
created_at: string;
|
|
18162
|
+
|
|
18163
|
+
data: CallVoiceInitiatedWebhookEvent.Data;
|
|
18164
|
+
|
|
18165
|
+
/**
|
|
18166
|
+
* Unique identifier for this event (for deduplication)
|
|
18167
|
+
*/
|
|
18168
|
+
event_id: string;
|
|
18169
|
+
|
|
18170
|
+
event_type:
|
|
18171
|
+
| 'call_voice.initiated'
|
|
18172
|
+
| 'call_voice.ringing'
|
|
18173
|
+
| 'call_voice.answered'
|
|
18174
|
+
| 'call_voice.ended'
|
|
18175
|
+
| 'call_voice.failed'
|
|
18176
|
+
| 'call_voice.declined'
|
|
18177
|
+
| 'call_voice.no_answer'
|
|
18178
|
+
| 'message.sent'
|
|
18179
|
+
| 'message.received'
|
|
18180
|
+
| 'message.read'
|
|
18181
|
+
| 'message.delivered'
|
|
18182
|
+
| 'message.failed'
|
|
18183
|
+
| 'message.edited'
|
|
18184
|
+
| 'reaction.added'
|
|
18185
|
+
| 'reaction.removed'
|
|
18186
|
+
| 'poll.received'
|
|
18187
|
+
| 'poll.failed'
|
|
18188
|
+
| 'poll.sent'
|
|
18189
|
+
| 'poll.delivered'
|
|
18190
|
+
| 'poll.read'
|
|
18191
|
+
| 'poll.updated'
|
|
18192
|
+
| 'poll.vote.added'
|
|
18193
|
+
| 'poll.vote.removed'
|
|
18194
|
+
| 'poll.reaction.added'
|
|
18195
|
+
| 'participant.added'
|
|
18196
|
+
| 'participant.removed'
|
|
18197
|
+
| 'chat.created'
|
|
18198
|
+
| 'chat.group_name_updated'
|
|
18199
|
+
| 'chat.group_icon_updated'
|
|
18200
|
+
| 'chat.group_name_update_failed'
|
|
18201
|
+
| 'chat.group_icon_update_failed'
|
|
18202
|
+
| 'chat.background_updated'
|
|
18203
|
+
| 'chat.background_update_failed'
|
|
18204
|
+
| 'chat.typing_indicator.started'
|
|
18205
|
+
| 'chat.typing_indicator.stopped'
|
|
18206
|
+
| 'phone_number.status_updated'
|
|
18207
|
+
| 'phone_number.assigned'
|
|
18208
|
+
| 'phone_number.released'
|
|
18209
|
+
| 'phone_number.line_type_updated'
|
|
18210
|
+
| 'contact_card.received'
|
|
18211
|
+
| 'location.sharing.started'
|
|
18212
|
+
| 'location.sharing.stopped'
|
|
18213
|
+
| 'payment.succeeded'
|
|
18214
|
+
| 'payment.canceled'
|
|
18215
|
+
| 'payment.expired'
|
|
18216
|
+
| 'payment.declined'
|
|
18217
|
+
| 'payment.authorized'
|
|
18218
|
+
| 'connection.created'
|
|
18219
|
+
| 'connection.revoked'
|
|
18220
|
+
| 'zero_day_retention.updated'
|
|
18221
|
+
| 'phone_number.forwarding_updated'
|
|
18222
|
+
| 'environment.line_moved'
|
|
18223
|
+
| 'contact_card.created'
|
|
18224
|
+
| 'contact_card.updated'
|
|
18225
|
+
| 'contact_card.deleted'
|
|
18226
|
+
| 'api_token.created'
|
|
18227
|
+
| 'api_token.renamed'
|
|
18228
|
+
| 'api_token.expiry_scheduled'
|
|
18229
|
+
| 'api_token.expired'
|
|
18230
|
+
| 'api_token.activated'
|
|
18231
|
+
| 'api_token.deleted'
|
|
18232
|
+
| 'environment.created'
|
|
18233
|
+
| 'environment.renamed'
|
|
18234
|
+
| 'environment.deleted'
|
|
18235
|
+
| 'webhook_subscription.created'
|
|
18236
|
+
| 'webhook_subscription.deleted'
|
|
18237
|
+
| 'webhook_subscription.target_url_changed'
|
|
18238
|
+
| 'webhook_subscription.enabled'
|
|
18239
|
+
| 'webhook_subscription.disabled'
|
|
18240
|
+
| 'webhook_subscription.events.updated'
|
|
18241
|
+
| 'webhook_subscription.phone_numbers.updated'
|
|
18242
|
+
| 'webhook_subscription.routing_headers_set'
|
|
18243
|
+
| 'webhook_subscription.routing_headers_cleared'
|
|
18244
|
+
| 'team_member.added'
|
|
18245
|
+
| 'team_member.signed_in'
|
|
18246
|
+
| 'team_member.signed_out';
|
|
18247
|
+
|
|
18248
|
+
/**
|
|
18249
|
+
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
18250
|
+
*/
|
|
18251
|
+
partner_id: string;
|
|
18252
|
+
|
|
18253
|
+
/**
|
|
18254
|
+
* Trace ID for debugging and correlation across systems.
|
|
18255
|
+
*/
|
|
18256
|
+
trace_id: string;
|
|
18257
|
+
|
|
18258
|
+
/**
|
|
18259
|
+
* Date-based webhook payload version. Determined by the `?version=` query
|
|
18260
|
+
* parameter in your webhook subscription URL. If no version parameter is
|
|
18261
|
+
* specified, defaults based on subscription creation date.
|
|
18262
|
+
*/
|
|
18263
|
+
webhook_version: string;
|
|
18264
|
+
}
|
|
18265
|
+
|
|
18266
|
+
export namespace CallVoiceInitiatedWebhookEvent {
|
|
18267
|
+
export interface Data {
|
|
18268
|
+
/**
|
|
18269
|
+
* Carrier voice call ID
|
|
18270
|
+
*/
|
|
18271
|
+
id: string;
|
|
18272
|
+
|
|
18273
|
+
direction: 'inbound';
|
|
18274
|
+
|
|
18275
|
+
/**
|
|
18276
|
+
* External caller, E.164
|
|
18277
|
+
*/
|
|
18278
|
+
from: string;
|
|
18279
|
+
|
|
18280
|
+
/**
|
|
18281
|
+
* Terminal call outcome. Null on progress events (initiated/ringing/answered); set
|
|
18282
|
+
* once the call ends.
|
|
18283
|
+
*/
|
|
18284
|
+
status: 'completed' | 'busy' | 'no_answer' | 'failed' | 'canceled' | null;
|
|
18285
|
+
|
|
18286
|
+
/**
|
|
18287
|
+
* Your line that was called, E.164
|
|
18288
|
+
*/
|
|
18289
|
+
to: string;
|
|
18290
|
+
|
|
18291
|
+
ended_at?: string | null;
|
|
18292
|
+
|
|
18293
|
+
started_at?: string | null;
|
|
18294
|
+
}
|
|
18295
|
+
}
|
|
18296
|
+
|
|
18297
|
+
export interface CallVoiceRingingWebhookEvent {
|
|
18298
|
+
/**
|
|
18299
|
+
* API version for the webhook payload format
|
|
18300
|
+
*/
|
|
18301
|
+
api_version: string;
|
|
18302
|
+
|
|
18303
|
+
/**
|
|
18304
|
+
* When the event was created
|
|
18305
|
+
*/
|
|
18306
|
+
created_at: string;
|
|
18307
|
+
|
|
18308
|
+
data: CallVoiceRingingWebhookEvent.Data;
|
|
18309
|
+
|
|
18310
|
+
/**
|
|
18311
|
+
* Unique identifier for this event (for deduplication)
|
|
18312
|
+
*/
|
|
18313
|
+
event_id: string;
|
|
18314
|
+
|
|
18315
|
+
event_type:
|
|
18316
|
+
| 'call_voice.initiated'
|
|
18317
|
+
| 'call_voice.ringing'
|
|
18318
|
+
| 'call_voice.answered'
|
|
18319
|
+
| 'call_voice.ended'
|
|
18320
|
+
| 'call_voice.failed'
|
|
18321
|
+
| 'call_voice.declined'
|
|
18322
|
+
| 'call_voice.no_answer'
|
|
18323
|
+
| 'message.sent'
|
|
18324
|
+
| 'message.received'
|
|
18325
|
+
| 'message.read'
|
|
18326
|
+
| 'message.delivered'
|
|
18327
|
+
| 'message.failed'
|
|
18328
|
+
| 'message.edited'
|
|
18329
|
+
| 'reaction.added'
|
|
18330
|
+
| 'reaction.removed'
|
|
18331
|
+
| 'poll.received'
|
|
18332
|
+
| 'poll.failed'
|
|
18333
|
+
| 'poll.sent'
|
|
18334
|
+
| 'poll.delivered'
|
|
18335
|
+
| 'poll.read'
|
|
18336
|
+
| 'poll.updated'
|
|
18337
|
+
| 'poll.vote.added'
|
|
18338
|
+
| 'poll.vote.removed'
|
|
18339
|
+
| 'poll.reaction.added'
|
|
18340
|
+
| 'participant.added'
|
|
18341
|
+
| 'participant.removed'
|
|
18342
|
+
| 'chat.created'
|
|
18343
|
+
| 'chat.group_name_updated'
|
|
18344
|
+
| 'chat.group_icon_updated'
|
|
18345
|
+
| 'chat.group_name_update_failed'
|
|
18346
|
+
| 'chat.group_icon_update_failed'
|
|
18347
|
+
| 'chat.background_updated'
|
|
18348
|
+
| 'chat.background_update_failed'
|
|
18349
|
+
| 'chat.typing_indicator.started'
|
|
18350
|
+
| 'chat.typing_indicator.stopped'
|
|
18351
|
+
| 'phone_number.status_updated'
|
|
18352
|
+
| 'phone_number.assigned'
|
|
18353
|
+
| 'phone_number.released'
|
|
18354
|
+
| 'phone_number.line_type_updated'
|
|
18355
|
+
| 'contact_card.received'
|
|
18356
|
+
| 'location.sharing.started'
|
|
18357
|
+
| 'location.sharing.stopped'
|
|
18358
|
+
| 'payment.succeeded'
|
|
18359
|
+
| 'payment.canceled'
|
|
18360
|
+
| 'payment.expired'
|
|
18361
|
+
| 'payment.declined'
|
|
18362
|
+
| 'payment.authorized'
|
|
18363
|
+
| 'connection.created'
|
|
18364
|
+
| 'connection.revoked'
|
|
18365
|
+
| 'zero_day_retention.updated'
|
|
18366
|
+
| 'phone_number.forwarding_updated'
|
|
18367
|
+
| 'environment.line_moved'
|
|
18368
|
+
| 'contact_card.created'
|
|
18369
|
+
| 'contact_card.updated'
|
|
18370
|
+
| 'contact_card.deleted'
|
|
18371
|
+
| 'api_token.created'
|
|
18372
|
+
| 'api_token.renamed'
|
|
18373
|
+
| 'api_token.expiry_scheduled'
|
|
18374
|
+
| 'api_token.expired'
|
|
18375
|
+
| 'api_token.activated'
|
|
18376
|
+
| 'api_token.deleted'
|
|
18377
|
+
| 'environment.created'
|
|
18378
|
+
| 'environment.renamed'
|
|
18379
|
+
| 'environment.deleted'
|
|
18380
|
+
| 'webhook_subscription.created'
|
|
18381
|
+
| 'webhook_subscription.deleted'
|
|
18382
|
+
| 'webhook_subscription.target_url_changed'
|
|
18383
|
+
| 'webhook_subscription.enabled'
|
|
18384
|
+
| 'webhook_subscription.disabled'
|
|
18385
|
+
| 'webhook_subscription.events.updated'
|
|
18386
|
+
| 'webhook_subscription.phone_numbers.updated'
|
|
18387
|
+
| 'webhook_subscription.routing_headers_set'
|
|
18388
|
+
| 'webhook_subscription.routing_headers_cleared'
|
|
18389
|
+
| 'team_member.added'
|
|
18390
|
+
| 'team_member.signed_in'
|
|
18391
|
+
| 'team_member.signed_out';
|
|
18392
|
+
|
|
18393
|
+
/**
|
|
18394
|
+
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
18395
|
+
*/
|
|
18396
|
+
partner_id: string;
|
|
18397
|
+
|
|
18398
|
+
/**
|
|
18399
|
+
* Trace ID for debugging and correlation across systems.
|
|
18400
|
+
*/
|
|
18401
|
+
trace_id: string;
|
|
18402
|
+
|
|
18403
|
+
/**
|
|
18404
|
+
* Date-based webhook payload version. Determined by the `?version=` query
|
|
18405
|
+
* parameter in your webhook subscription URL. If no version parameter is
|
|
18406
|
+
* specified, defaults based on subscription creation date.
|
|
18407
|
+
*/
|
|
18408
|
+
webhook_version: string;
|
|
18409
|
+
}
|
|
18410
|
+
|
|
18411
|
+
export namespace CallVoiceRingingWebhookEvent {
|
|
18412
|
+
export interface Data {
|
|
18413
|
+
/**
|
|
18414
|
+
* Carrier voice call ID
|
|
18415
|
+
*/
|
|
18416
|
+
id: string;
|
|
18417
|
+
|
|
18418
|
+
direction: 'inbound';
|
|
18419
|
+
|
|
18420
|
+
/**
|
|
18421
|
+
* External caller, E.164
|
|
18422
|
+
*/
|
|
18423
|
+
from: string;
|
|
18424
|
+
|
|
18425
|
+
/**
|
|
18426
|
+
* Terminal call outcome. Null on progress events (initiated/ringing/answered); set
|
|
18427
|
+
* once the call ends.
|
|
18428
|
+
*/
|
|
18429
|
+
status: 'completed' | 'busy' | 'no_answer' | 'failed' | 'canceled' | null;
|
|
18430
|
+
|
|
18431
|
+
/**
|
|
18432
|
+
* Your line that was called, E.164
|
|
18433
|
+
*/
|
|
18434
|
+
to: string;
|
|
18435
|
+
|
|
18436
|
+
ended_at?: string | null;
|
|
18437
|
+
|
|
18438
|
+
started_at?: string | null;
|
|
18439
|
+
}
|
|
18440
|
+
}
|
|
18441
|
+
|
|
18442
|
+
export interface CallVoiceAnsweredWebhookEvent {
|
|
18443
|
+
/**
|
|
18444
|
+
* API version for the webhook payload format
|
|
18445
|
+
*/
|
|
18446
|
+
api_version: string;
|
|
18447
|
+
|
|
18448
|
+
/**
|
|
18449
|
+
* When the event was created
|
|
18450
|
+
*/
|
|
18451
|
+
created_at: string;
|
|
18452
|
+
|
|
18453
|
+
data: CallVoiceAnsweredWebhookEvent.Data;
|
|
18454
|
+
|
|
18455
|
+
/**
|
|
18456
|
+
* Unique identifier for this event (for deduplication)
|
|
18457
|
+
*/
|
|
18458
|
+
event_id: string;
|
|
18459
|
+
|
|
18460
|
+
event_type:
|
|
18461
|
+
| 'call_voice.initiated'
|
|
18462
|
+
| 'call_voice.ringing'
|
|
18463
|
+
| 'call_voice.answered'
|
|
18464
|
+
| 'call_voice.ended'
|
|
18465
|
+
| 'call_voice.failed'
|
|
18466
|
+
| 'call_voice.declined'
|
|
18467
|
+
| 'call_voice.no_answer'
|
|
18468
|
+
| 'message.sent'
|
|
18469
|
+
| 'message.received'
|
|
18470
|
+
| 'message.read'
|
|
18471
|
+
| 'message.delivered'
|
|
18472
|
+
| 'message.failed'
|
|
18473
|
+
| 'message.edited'
|
|
18474
|
+
| 'reaction.added'
|
|
18475
|
+
| 'reaction.removed'
|
|
18476
|
+
| 'poll.received'
|
|
18477
|
+
| 'poll.failed'
|
|
18478
|
+
| 'poll.sent'
|
|
18479
|
+
| 'poll.delivered'
|
|
18480
|
+
| 'poll.read'
|
|
18481
|
+
| 'poll.updated'
|
|
18482
|
+
| 'poll.vote.added'
|
|
18483
|
+
| 'poll.vote.removed'
|
|
18484
|
+
| 'poll.reaction.added'
|
|
18485
|
+
| 'participant.added'
|
|
18486
|
+
| 'participant.removed'
|
|
18487
|
+
| 'chat.created'
|
|
18488
|
+
| 'chat.group_name_updated'
|
|
18489
|
+
| 'chat.group_icon_updated'
|
|
18490
|
+
| 'chat.group_name_update_failed'
|
|
18491
|
+
| 'chat.group_icon_update_failed'
|
|
18492
|
+
| 'chat.background_updated'
|
|
18493
|
+
| 'chat.background_update_failed'
|
|
18494
|
+
| 'chat.typing_indicator.started'
|
|
18495
|
+
| 'chat.typing_indicator.stopped'
|
|
18496
|
+
| 'phone_number.status_updated'
|
|
18497
|
+
| 'phone_number.assigned'
|
|
18498
|
+
| 'phone_number.released'
|
|
18499
|
+
| 'phone_number.line_type_updated'
|
|
18500
|
+
| 'contact_card.received'
|
|
18501
|
+
| 'location.sharing.started'
|
|
18502
|
+
| 'location.sharing.stopped'
|
|
18503
|
+
| 'payment.succeeded'
|
|
18504
|
+
| 'payment.canceled'
|
|
18505
|
+
| 'payment.expired'
|
|
18506
|
+
| 'payment.declined'
|
|
18507
|
+
| 'payment.authorized'
|
|
18508
|
+
| 'connection.created'
|
|
18509
|
+
| 'connection.revoked'
|
|
18510
|
+
| 'zero_day_retention.updated'
|
|
18511
|
+
| 'phone_number.forwarding_updated'
|
|
18512
|
+
| 'environment.line_moved'
|
|
18513
|
+
| 'contact_card.created'
|
|
18514
|
+
| 'contact_card.updated'
|
|
18515
|
+
| 'contact_card.deleted'
|
|
18516
|
+
| 'api_token.created'
|
|
18517
|
+
| 'api_token.renamed'
|
|
18518
|
+
| 'api_token.expiry_scheduled'
|
|
18519
|
+
| 'api_token.expired'
|
|
18520
|
+
| 'api_token.activated'
|
|
18521
|
+
| 'api_token.deleted'
|
|
18522
|
+
| 'environment.created'
|
|
18523
|
+
| 'environment.renamed'
|
|
18524
|
+
| 'environment.deleted'
|
|
18525
|
+
| 'webhook_subscription.created'
|
|
18526
|
+
| 'webhook_subscription.deleted'
|
|
18527
|
+
| 'webhook_subscription.target_url_changed'
|
|
18528
|
+
| 'webhook_subscription.enabled'
|
|
18529
|
+
| 'webhook_subscription.disabled'
|
|
18530
|
+
| 'webhook_subscription.events.updated'
|
|
18531
|
+
| 'webhook_subscription.phone_numbers.updated'
|
|
18532
|
+
| 'webhook_subscription.routing_headers_set'
|
|
18533
|
+
| 'webhook_subscription.routing_headers_cleared'
|
|
18534
|
+
| 'team_member.added'
|
|
18535
|
+
| 'team_member.signed_in'
|
|
18536
|
+
| 'team_member.signed_out';
|
|
18537
|
+
|
|
18538
|
+
/**
|
|
18539
|
+
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
18540
|
+
*/
|
|
18541
|
+
partner_id: string;
|
|
18542
|
+
|
|
18543
|
+
/**
|
|
18544
|
+
* Trace ID for debugging and correlation across systems.
|
|
18545
|
+
*/
|
|
18546
|
+
trace_id: string;
|
|
18547
|
+
|
|
18548
|
+
/**
|
|
18549
|
+
* Date-based webhook payload version. Determined by the `?version=` query
|
|
18550
|
+
* parameter in your webhook subscription URL. If no version parameter is
|
|
18551
|
+
* specified, defaults based on subscription creation date.
|
|
18552
|
+
*/
|
|
18553
|
+
webhook_version: string;
|
|
18554
|
+
}
|
|
18555
|
+
|
|
18556
|
+
export namespace CallVoiceAnsweredWebhookEvent {
|
|
18557
|
+
export interface Data {
|
|
18558
|
+
/**
|
|
18559
|
+
* Carrier voice call ID
|
|
18560
|
+
*/
|
|
18561
|
+
id: string;
|
|
18562
|
+
|
|
18563
|
+
direction: 'inbound';
|
|
18564
|
+
|
|
18565
|
+
/**
|
|
18566
|
+
* External caller, E.164
|
|
18567
|
+
*/
|
|
18568
|
+
from: string;
|
|
18569
|
+
|
|
18570
|
+
/**
|
|
18571
|
+
* Terminal call outcome. Null on progress events (initiated/ringing/answered); set
|
|
18572
|
+
* once the call ends.
|
|
18573
|
+
*/
|
|
18574
|
+
status: 'completed' | 'busy' | 'no_answer' | 'failed' | 'canceled' | null;
|
|
18575
|
+
|
|
18576
|
+
/**
|
|
18577
|
+
* Your line that was called, E.164
|
|
18578
|
+
*/
|
|
18579
|
+
to: string;
|
|
18580
|
+
|
|
18581
|
+
ended_at?: string | null;
|
|
18582
|
+
|
|
18583
|
+
started_at?: string | null;
|
|
18584
|
+
}
|
|
18585
|
+
}
|
|
18586
|
+
|
|
18587
|
+
export interface CallVoiceEndedWebhookEvent {
|
|
18588
|
+
/**
|
|
18589
|
+
* API version for the webhook payload format
|
|
18590
|
+
*/
|
|
18591
|
+
api_version: string;
|
|
18592
|
+
|
|
18593
|
+
/**
|
|
18594
|
+
* When the event was created
|
|
18595
|
+
*/
|
|
18596
|
+
created_at: string;
|
|
18597
|
+
|
|
18598
|
+
data: CallVoiceEndedWebhookEvent.Data;
|
|
18599
|
+
|
|
18600
|
+
/**
|
|
18601
|
+
* Unique identifier for this event (for deduplication)
|
|
18602
|
+
*/
|
|
18603
|
+
event_id: string;
|
|
18604
|
+
|
|
18605
|
+
event_type:
|
|
18606
|
+
| 'call_voice.initiated'
|
|
18607
|
+
| 'call_voice.ringing'
|
|
18608
|
+
| 'call_voice.answered'
|
|
18609
|
+
| 'call_voice.ended'
|
|
18610
|
+
| 'call_voice.failed'
|
|
18611
|
+
| 'call_voice.declined'
|
|
18612
|
+
| 'call_voice.no_answer'
|
|
18613
|
+
| 'message.sent'
|
|
18614
|
+
| 'message.received'
|
|
18615
|
+
| 'message.read'
|
|
18616
|
+
| 'message.delivered'
|
|
18617
|
+
| 'message.failed'
|
|
18618
|
+
| 'message.edited'
|
|
18619
|
+
| 'reaction.added'
|
|
18620
|
+
| 'reaction.removed'
|
|
18621
|
+
| 'poll.received'
|
|
18622
|
+
| 'poll.failed'
|
|
18623
|
+
| 'poll.sent'
|
|
18624
|
+
| 'poll.delivered'
|
|
18625
|
+
| 'poll.read'
|
|
18626
|
+
| 'poll.updated'
|
|
18627
|
+
| 'poll.vote.added'
|
|
18628
|
+
| 'poll.vote.removed'
|
|
18629
|
+
| 'poll.reaction.added'
|
|
18630
|
+
| 'participant.added'
|
|
18631
|
+
| 'participant.removed'
|
|
18632
|
+
| 'chat.created'
|
|
18633
|
+
| 'chat.group_name_updated'
|
|
18634
|
+
| 'chat.group_icon_updated'
|
|
18635
|
+
| 'chat.group_name_update_failed'
|
|
18636
|
+
| 'chat.group_icon_update_failed'
|
|
18637
|
+
| 'chat.background_updated'
|
|
18638
|
+
| 'chat.background_update_failed'
|
|
18639
|
+
| 'chat.typing_indicator.started'
|
|
18640
|
+
| 'chat.typing_indicator.stopped'
|
|
18641
|
+
| 'phone_number.status_updated'
|
|
18642
|
+
| 'phone_number.assigned'
|
|
18643
|
+
| 'phone_number.released'
|
|
18644
|
+
| 'phone_number.line_type_updated'
|
|
18645
|
+
| 'contact_card.received'
|
|
18646
|
+
| 'location.sharing.started'
|
|
18647
|
+
| 'location.sharing.stopped'
|
|
18648
|
+
| 'payment.succeeded'
|
|
18649
|
+
| 'payment.canceled'
|
|
18650
|
+
| 'payment.expired'
|
|
18651
|
+
| 'payment.declined'
|
|
18652
|
+
| 'payment.authorized'
|
|
18653
|
+
| 'connection.created'
|
|
18654
|
+
| 'connection.revoked'
|
|
18655
|
+
| 'zero_day_retention.updated'
|
|
18656
|
+
| 'phone_number.forwarding_updated'
|
|
18657
|
+
| 'environment.line_moved'
|
|
18658
|
+
| 'contact_card.created'
|
|
18659
|
+
| 'contact_card.updated'
|
|
18660
|
+
| 'contact_card.deleted'
|
|
18661
|
+
| 'api_token.created'
|
|
18662
|
+
| 'api_token.renamed'
|
|
18663
|
+
| 'api_token.expiry_scheduled'
|
|
18664
|
+
| 'api_token.expired'
|
|
18665
|
+
| 'api_token.activated'
|
|
18666
|
+
| 'api_token.deleted'
|
|
18667
|
+
| 'environment.created'
|
|
18668
|
+
| 'environment.renamed'
|
|
18669
|
+
| 'environment.deleted'
|
|
18670
|
+
| 'webhook_subscription.created'
|
|
18671
|
+
| 'webhook_subscription.deleted'
|
|
18672
|
+
| 'webhook_subscription.target_url_changed'
|
|
18673
|
+
| 'webhook_subscription.enabled'
|
|
18674
|
+
| 'webhook_subscription.disabled'
|
|
18675
|
+
| 'webhook_subscription.events.updated'
|
|
18676
|
+
| 'webhook_subscription.phone_numbers.updated'
|
|
18677
|
+
| 'webhook_subscription.routing_headers_set'
|
|
18678
|
+
| 'webhook_subscription.routing_headers_cleared'
|
|
18679
|
+
| 'team_member.added'
|
|
18680
|
+
| 'team_member.signed_in'
|
|
18681
|
+
| 'team_member.signed_out';
|
|
18682
|
+
|
|
18683
|
+
/**
|
|
18684
|
+
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
18685
|
+
*/
|
|
18686
|
+
partner_id: string;
|
|
18687
|
+
|
|
18688
|
+
/**
|
|
18689
|
+
* Trace ID for debugging and correlation across systems.
|
|
18690
|
+
*/
|
|
18691
|
+
trace_id: string;
|
|
18692
|
+
|
|
18693
|
+
/**
|
|
18694
|
+
* Date-based webhook payload version. Determined by the `?version=` query
|
|
18695
|
+
* parameter in your webhook subscription URL. If no version parameter is
|
|
18696
|
+
* specified, defaults based on subscription creation date.
|
|
18697
|
+
*/
|
|
18698
|
+
webhook_version: string;
|
|
18699
|
+
}
|
|
18700
|
+
|
|
18701
|
+
export namespace CallVoiceEndedWebhookEvent {
|
|
18702
|
+
export interface Data {
|
|
18703
|
+
/**
|
|
18704
|
+
* Carrier voice call ID
|
|
18705
|
+
*/
|
|
18706
|
+
id: string;
|
|
18707
|
+
|
|
18708
|
+
direction: 'inbound';
|
|
18709
|
+
|
|
18710
|
+
/**
|
|
18711
|
+
* External caller, E.164
|
|
18712
|
+
*/
|
|
18713
|
+
from: string;
|
|
18714
|
+
|
|
18715
|
+
/**
|
|
18716
|
+
* Terminal call outcome. Null on progress events (initiated/ringing/answered); set
|
|
18717
|
+
* once the call ends.
|
|
18718
|
+
*/
|
|
18719
|
+
status: 'completed' | 'busy' | 'no_answer' | 'failed' | 'canceled' | null;
|
|
18720
|
+
|
|
18721
|
+
/**
|
|
18722
|
+
* Your line that was called, E.164
|
|
18723
|
+
*/
|
|
18724
|
+
to: string;
|
|
18725
|
+
|
|
18726
|
+
ended_at?: string | null;
|
|
18727
|
+
|
|
18728
|
+
started_at?: string | null;
|
|
18729
|
+
}
|
|
18730
|
+
}
|
|
18731
|
+
|
|
18732
|
+
export interface CallVoiceFailedWebhookEvent {
|
|
18733
|
+
/**
|
|
18734
|
+
* API version for the webhook payload format
|
|
18735
|
+
*/
|
|
18736
|
+
api_version: string;
|
|
18737
|
+
|
|
18738
|
+
/**
|
|
18739
|
+
* When the event was created
|
|
18740
|
+
*/
|
|
18741
|
+
created_at: string;
|
|
18742
|
+
|
|
18743
|
+
data: CallVoiceFailedWebhookEvent.Data;
|
|
18744
|
+
|
|
18745
|
+
/**
|
|
18746
|
+
* Unique identifier for this event (for deduplication)
|
|
18747
|
+
*/
|
|
18748
|
+
event_id: string;
|
|
18749
|
+
|
|
18750
|
+
event_type:
|
|
18751
|
+
| 'call_voice.initiated'
|
|
18752
|
+
| 'call_voice.ringing'
|
|
18753
|
+
| 'call_voice.answered'
|
|
18754
|
+
| 'call_voice.ended'
|
|
18755
|
+
| 'call_voice.failed'
|
|
18756
|
+
| 'call_voice.declined'
|
|
18757
|
+
| 'call_voice.no_answer'
|
|
18758
|
+
| 'message.sent'
|
|
18759
|
+
| 'message.received'
|
|
18760
|
+
| 'message.read'
|
|
18761
|
+
| 'message.delivered'
|
|
18762
|
+
| 'message.failed'
|
|
18763
|
+
| 'message.edited'
|
|
18764
|
+
| 'reaction.added'
|
|
18765
|
+
| 'reaction.removed'
|
|
18766
|
+
| 'poll.received'
|
|
18767
|
+
| 'poll.failed'
|
|
18768
|
+
| 'poll.sent'
|
|
18769
|
+
| 'poll.delivered'
|
|
18770
|
+
| 'poll.read'
|
|
18771
|
+
| 'poll.updated'
|
|
18772
|
+
| 'poll.vote.added'
|
|
18773
|
+
| 'poll.vote.removed'
|
|
18774
|
+
| 'poll.reaction.added'
|
|
18775
|
+
| 'participant.added'
|
|
18776
|
+
| 'participant.removed'
|
|
18777
|
+
| 'chat.created'
|
|
18778
|
+
| 'chat.group_name_updated'
|
|
18779
|
+
| 'chat.group_icon_updated'
|
|
18780
|
+
| 'chat.group_name_update_failed'
|
|
18781
|
+
| 'chat.group_icon_update_failed'
|
|
18782
|
+
| 'chat.background_updated'
|
|
18783
|
+
| 'chat.background_update_failed'
|
|
18784
|
+
| 'chat.typing_indicator.started'
|
|
18785
|
+
| 'chat.typing_indicator.stopped'
|
|
18786
|
+
| 'phone_number.status_updated'
|
|
18787
|
+
| 'phone_number.assigned'
|
|
18788
|
+
| 'phone_number.released'
|
|
18789
|
+
| 'phone_number.line_type_updated'
|
|
18790
|
+
| 'contact_card.received'
|
|
18791
|
+
| 'location.sharing.started'
|
|
18792
|
+
| 'location.sharing.stopped'
|
|
18793
|
+
| 'payment.succeeded'
|
|
18794
|
+
| 'payment.canceled'
|
|
18795
|
+
| 'payment.expired'
|
|
18796
|
+
| 'payment.declined'
|
|
18797
|
+
| 'payment.authorized'
|
|
18798
|
+
| 'connection.created'
|
|
18799
|
+
| 'connection.revoked'
|
|
18800
|
+
| 'zero_day_retention.updated'
|
|
18801
|
+
| 'phone_number.forwarding_updated'
|
|
18802
|
+
| 'environment.line_moved'
|
|
18803
|
+
| 'contact_card.created'
|
|
18804
|
+
| 'contact_card.updated'
|
|
18805
|
+
| 'contact_card.deleted'
|
|
18806
|
+
| 'api_token.created'
|
|
18807
|
+
| 'api_token.renamed'
|
|
18808
|
+
| 'api_token.expiry_scheduled'
|
|
18809
|
+
| 'api_token.expired'
|
|
18810
|
+
| 'api_token.activated'
|
|
18811
|
+
| 'api_token.deleted'
|
|
18812
|
+
| 'environment.created'
|
|
18813
|
+
| 'environment.renamed'
|
|
18814
|
+
| 'environment.deleted'
|
|
18815
|
+
| 'webhook_subscription.created'
|
|
18816
|
+
| 'webhook_subscription.deleted'
|
|
18817
|
+
| 'webhook_subscription.target_url_changed'
|
|
18818
|
+
| 'webhook_subscription.enabled'
|
|
18819
|
+
| 'webhook_subscription.disabled'
|
|
18820
|
+
| 'webhook_subscription.events.updated'
|
|
18821
|
+
| 'webhook_subscription.phone_numbers.updated'
|
|
18822
|
+
| 'webhook_subscription.routing_headers_set'
|
|
18823
|
+
| 'webhook_subscription.routing_headers_cleared'
|
|
18824
|
+
| 'team_member.added'
|
|
18825
|
+
| 'team_member.signed_in'
|
|
18826
|
+
| 'team_member.signed_out';
|
|
18827
|
+
|
|
18828
|
+
/**
|
|
18829
|
+
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
18830
|
+
*/
|
|
18831
|
+
partner_id: string;
|
|
18832
|
+
|
|
18833
|
+
/**
|
|
18834
|
+
* Trace ID for debugging and correlation across systems.
|
|
18835
|
+
*/
|
|
18836
|
+
trace_id: string;
|
|
18837
|
+
|
|
18838
|
+
/**
|
|
18839
|
+
* Date-based webhook payload version. Determined by the `?version=` query
|
|
18840
|
+
* parameter in your webhook subscription URL. If no version parameter is
|
|
18841
|
+
* specified, defaults based on subscription creation date.
|
|
18842
|
+
*/
|
|
18843
|
+
webhook_version: string;
|
|
18844
|
+
}
|
|
18845
|
+
|
|
18846
|
+
export namespace CallVoiceFailedWebhookEvent {
|
|
18847
|
+
export interface Data {
|
|
18848
|
+
/**
|
|
18849
|
+
* Carrier voice call ID
|
|
18850
|
+
*/
|
|
18851
|
+
id: string;
|
|
18852
|
+
|
|
18853
|
+
direction: 'inbound';
|
|
18854
|
+
|
|
18855
|
+
/**
|
|
18856
|
+
* External caller, E.164
|
|
18857
|
+
*/
|
|
18858
|
+
from: string;
|
|
18859
|
+
|
|
18860
|
+
/**
|
|
18861
|
+
* Terminal call outcome. Null on progress events (initiated/ringing/answered); set
|
|
18862
|
+
* once the call ends.
|
|
18863
|
+
*/
|
|
18864
|
+
status: 'completed' | 'busy' | 'no_answer' | 'failed' | 'canceled' | null;
|
|
18865
|
+
|
|
18866
|
+
/**
|
|
18867
|
+
* Your line that was called, E.164
|
|
18868
|
+
*/
|
|
18869
|
+
to: string;
|
|
18870
|
+
|
|
18871
|
+
ended_at?: string | null;
|
|
18872
|
+
|
|
18873
|
+
started_at?: string | null;
|
|
18874
|
+
}
|
|
18875
|
+
}
|
|
18876
|
+
|
|
18877
|
+
export interface CallVoiceDeclinedWebhookEvent {
|
|
18878
|
+
/**
|
|
18879
|
+
* API version for the webhook payload format
|
|
18880
|
+
*/
|
|
18881
|
+
api_version: string;
|
|
18882
|
+
|
|
18883
|
+
/**
|
|
18884
|
+
* When the event was created
|
|
18885
|
+
*/
|
|
18886
|
+
created_at: string;
|
|
18887
|
+
|
|
18888
|
+
data: CallVoiceDeclinedWebhookEvent.Data;
|
|
18889
|
+
|
|
18890
|
+
/**
|
|
18891
|
+
* Unique identifier for this event (for deduplication)
|
|
18892
|
+
*/
|
|
18893
|
+
event_id: string;
|
|
18894
|
+
|
|
18895
|
+
event_type:
|
|
18896
|
+
| 'call_voice.initiated'
|
|
18897
|
+
| 'call_voice.ringing'
|
|
18898
|
+
| 'call_voice.answered'
|
|
18899
|
+
| 'call_voice.ended'
|
|
18900
|
+
| 'call_voice.failed'
|
|
18901
|
+
| 'call_voice.declined'
|
|
18902
|
+
| 'call_voice.no_answer'
|
|
18903
|
+
| 'message.sent'
|
|
18904
|
+
| 'message.received'
|
|
18905
|
+
| 'message.read'
|
|
18906
|
+
| 'message.delivered'
|
|
18907
|
+
| 'message.failed'
|
|
18908
|
+
| 'message.edited'
|
|
18909
|
+
| 'reaction.added'
|
|
18910
|
+
| 'reaction.removed'
|
|
18911
|
+
| 'poll.received'
|
|
18912
|
+
| 'poll.failed'
|
|
18913
|
+
| 'poll.sent'
|
|
18914
|
+
| 'poll.delivered'
|
|
18915
|
+
| 'poll.read'
|
|
18916
|
+
| 'poll.updated'
|
|
18917
|
+
| 'poll.vote.added'
|
|
18918
|
+
| 'poll.vote.removed'
|
|
18919
|
+
| 'poll.reaction.added'
|
|
18920
|
+
| 'participant.added'
|
|
18921
|
+
| 'participant.removed'
|
|
18922
|
+
| 'chat.created'
|
|
18923
|
+
| 'chat.group_name_updated'
|
|
18924
|
+
| 'chat.group_icon_updated'
|
|
18925
|
+
| 'chat.group_name_update_failed'
|
|
18926
|
+
| 'chat.group_icon_update_failed'
|
|
18927
|
+
| 'chat.background_updated'
|
|
18928
|
+
| 'chat.background_update_failed'
|
|
18929
|
+
| 'chat.typing_indicator.started'
|
|
18930
|
+
| 'chat.typing_indicator.stopped'
|
|
18931
|
+
| 'phone_number.status_updated'
|
|
18932
|
+
| 'phone_number.assigned'
|
|
18933
|
+
| 'phone_number.released'
|
|
18934
|
+
| 'phone_number.line_type_updated'
|
|
18935
|
+
| 'contact_card.received'
|
|
18936
|
+
| 'location.sharing.started'
|
|
18937
|
+
| 'location.sharing.stopped'
|
|
18938
|
+
| 'payment.succeeded'
|
|
18939
|
+
| 'payment.canceled'
|
|
18940
|
+
| 'payment.expired'
|
|
18941
|
+
| 'payment.declined'
|
|
18942
|
+
| 'payment.authorized'
|
|
18943
|
+
| 'connection.created'
|
|
18944
|
+
| 'connection.revoked'
|
|
18945
|
+
| 'zero_day_retention.updated'
|
|
18946
|
+
| 'phone_number.forwarding_updated'
|
|
18947
|
+
| 'environment.line_moved'
|
|
18948
|
+
| 'contact_card.created'
|
|
18949
|
+
| 'contact_card.updated'
|
|
18950
|
+
| 'contact_card.deleted'
|
|
18951
|
+
| 'api_token.created'
|
|
18952
|
+
| 'api_token.renamed'
|
|
18953
|
+
| 'api_token.expiry_scheduled'
|
|
18954
|
+
| 'api_token.expired'
|
|
18955
|
+
| 'api_token.activated'
|
|
18956
|
+
| 'api_token.deleted'
|
|
18957
|
+
| 'environment.created'
|
|
18958
|
+
| 'environment.renamed'
|
|
18959
|
+
| 'environment.deleted'
|
|
18960
|
+
| 'webhook_subscription.created'
|
|
18961
|
+
| 'webhook_subscription.deleted'
|
|
18962
|
+
| 'webhook_subscription.target_url_changed'
|
|
18963
|
+
| 'webhook_subscription.enabled'
|
|
18964
|
+
| 'webhook_subscription.disabled'
|
|
18965
|
+
| 'webhook_subscription.events.updated'
|
|
18966
|
+
| 'webhook_subscription.phone_numbers.updated'
|
|
18967
|
+
| 'webhook_subscription.routing_headers_set'
|
|
18968
|
+
| 'webhook_subscription.routing_headers_cleared'
|
|
18969
|
+
| 'team_member.added'
|
|
18970
|
+
| 'team_member.signed_in'
|
|
18971
|
+
| 'team_member.signed_out';
|
|
18972
|
+
|
|
18973
|
+
/**
|
|
18974
|
+
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
18975
|
+
*/
|
|
18976
|
+
partner_id: string;
|
|
18977
|
+
|
|
18978
|
+
/**
|
|
18979
|
+
* Trace ID for debugging and correlation across systems.
|
|
18980
|
+
*/
|
|
18981
|
+
trace_id: string;
|
|
18982
|
+
|
|
18983
|
+
/**
|
|
18984
|
+
* Date-based webhook payload version. Determined by the `?version=` query
|
|
18985
|
+
* parameter in your webhook subscription URL. If no version parameter is
|
|
18986
|
+
* specified, defaults based on subscription creation date.
|
|
18987
|
+
*/
|
|
18988
|
+
webhook_version: string;
|
|
18989
|
+
}
|
|
18990
|
+
|
|
18991
|
+
export namespace CallVoiceDeclinedWebhookEvent {
|
|
18992
|
+
export interface Data {
|
|
18993
|
+
/**
|
|
18994
|
+
* Carrier voice call ID
|
|
18995
|
+
*/
|
|
18996
|
+
id: string;
|
|
18997
|
+
|
|
18998
|
+
direction: 'inbound';
|
|
18999
|
+
|
|
19000
|
+
/**
|
|
19001
|
+
* External caller, E.164
|
|
19002
|
+
*/
|
|
19003
|
+
from: string;
|
|
19004
|
+
|
|
19005
|
+
/**
|
|
19006
|
+
* Terminal call outcome. Null on progress events (initiated/ringing/answered); set
|
|
19007
|
+
* once the call ends.
|
|
19008
|
+
*/
|
|
19009
|
+
status: 'completed' | 'busy' | 'no_answer' | 'failed' | 'canceled' | null;
|
|
19010
|
+
|
|
19011
|
+
/**
|
|
19012
|
+
* Your line that was called, E.164
|
|
19013
|
+
*/
|
|
19014
|
+
to: string;
|
|
19015
|
+
|
|
19016
|
+
ended_at?: string | null;
|
|
19017
|
+
|
|
19018
|
+
started_at?: string | null;
|
|
19019
|
+
}
|
|
19020
|
+
}
|
|
19021
|
+
|
|
19022
|
+
export interface CallVoiceNoAnswerWebhookEvent {
|
|
19023
|
+
/**
|
|
19024
|
+
* API version for the webhook payload format
|
|
19025
|
+
*/
|
|
19026
|
+
api_version: string;
|
|
19027
|
+
|
|
19028
|
+
/**
|
|
19029
|
+
* When the event was created
|
|
19030
|
+
*/
|
|
19031
|
+
created_at: string;
|
|
19032
|
+
|
|
19033
|
+
data: CallVoiceNoAnswerWebhookEvent.Data;
|
|
19034
|
+
|
|
19035
|
+
/**
|
|
19036
|
+
* Unique identifier for this event (for deduplication)
|
|
19037
|
+
*/
|
|
19038
|
+
event_id: string;
|
|
19039
|
+
|
|
19040
|
+
event_type:
|
|
19041
|
+
| 'call_voice.initiated'
|
|
19042
|
+
| 'call_voice.ringing'
|
|
19043
|
+
| 'call_voice.answered'
|
|
19044
|
+
| 'call_voice.ended'
|
|
19045
|
+
| 'call_voice.failed'
|
|
19046
|
+
| 'call_voice.declined'
|
|
19047
|
+
| 'call_voice.no_answer'
|
|
19048
|
+
| 'message.sent'
|
|
19049
|
+
| 'message.received'
|
|
19050
|
+
| 'message.read'
|
|
19051
|
+
| 'message.delivered'
|
|
19052
|
+
| 'message.failed'
|
|
19053
|
+
| 'message.edited'
|
|
19054
|
+
| 'reaction.added'
|
|
19055
|
+
| 'reaction.removed'
|
|
19056
|
+
| 'poll.received'
|
|
19057
|
+
| 'poll.failed'
|
|
19058
|
+
| 'poll.sent'
|
|
19059
|
+
| 'poll.delivered'
|
|
19060
|
+
| 'poll.read'
|
|
19061
|
+
| 'poll.updated'
|
|
19062
|
+
| 'poll.vote.added'
|
|
19063
|
+
| 'poll.vote.removed'
|
|
19064
|
+
| 'poll.reaction.added'
|
|
19065
|
+
| 'participant.added'
|
|
19066
|
+
| 'participant.removed'
|
|
19067
|
+
| 'chat.created'
|
|
19068
|
+
| 'chat.group_name_updated'
|
|
19069
|
+
| 'chat.group_icon_updated'
|
|
19070
|
+
| 'chat.group_name_update_failed'
|
|
19071
|
+
| 'chat.group_icon_update_failed'
|
|
19072
|
+
| 'chat.background_updated'
|
|
19073
|
+
| 'chat.background_update_failed'
|
|
19074
|
+
| 'chat.typing_indicator.started'
|
|
19075
|
+
| 'chat.typing_indicator.stopped'
|
|
19076
|
+
| 'phone_number.status_updated'
|
|
19077
|
+
| 'phone_number.assigned'
|
|
19078
|
+
| 'phone_number.released'
|
|
19079
|
+
| 'phone_number.line_type_updated'
|
|
19080
|
+
| 'contact_card.received'
|
|
19081
|
+
| 'location.sharing.started'
|
|
19082
|
+
| 'location.sharing.stopped'
|
|
19083
|
+
| 'payment.succeeded'
|
|
19084
|
+
| 'payment.canceled'
|
|
19085
|
+
| 'payment.expired'
|
|
19086
|
+
| 'payment.declined'
|
|
19087
|
+
| 'payment.authorized'
|
|
19088
|
+
| 'connection.created'
|
|
19089
|
+
| 'connection.revoked'
|
|
19090
|
+
| 'zero_day_retention.updated'
|
|
19091
|
+
| 'phone_number.forwarding_updated'
|
|
19092
|
+
| 'environment.line_moved'
|
|
19093
|
+
| 'contact_card.created'
|
|
19094
|
+
| 'contact_card.updated'
|
|
19095
|
+
| 'contact_card.deleted'
|
|
19096
|
+
| 'api_token.created'
|
|
19097
|
+
| 'api_token.renamed'
|
|
19098
|
+
| 'api_token.expiry_scheduled'
|
|
19099
|
+
| 'api_token.expired'
|
|
19100
|
+
| 'api_token.activated'
|
|
19101
|
+
| 'api_token.deleted'
|
|
19102
|
+
| 'environment.created'
|
|
19103
|
+
| 'environment.renamed'
|
|
19104
|
+
| 'environment.deleted'
|
|
19105
|
+
| 'webhook_subscription.created'
|
|
19106
|
+
| 'webhook_subscription.deleted'
|
|
19107
|
+
| 'webhook_subscription.target_url_changed'
|
|
19108
|
+
| 'webhook_subscription.enabled'
|
|
19109
|
+
| 'webhook_subscription.disabled'
|
|
19110
|
+
| 'webhook_subscription.events.updated'
|
|
19111
|
+
| 'webhook_subscription.phone_numbers.updated'
|
|
19112
|
+
| 'webhook_subscription.routing_headers_set'
|
|
19113
|
+
| 'webhook_subscription.routing_headers_cleared'
|
|
19114
|
+
| 'team_member.added'
|
|
19115
|
+
| 'team_member.signed_in'
|
|
19116
|
+
| 'team_member.signed_out';
|
|
19117
|
+
|
|
19118
|
+
/**
|
|
19119
|
+
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
19120
|
+
*/
|
|
19121
|
+
partner_id: string;
|
|
19122
|
+
|
|
19123
|
+
/**
|
|
19124
|
+
* Trace ID for debugging and correlation across systems.
|
|
19125
|
+
*/
|
|
19126
|
+
trace_id: string;
|
|
19127
|
+
|
|
19128
|
+
/**
|
|
19129
|
+
* Date-based webhook payload version. Determined by the `?version=` query
|
|
19130
|
+
* parameter in your webhook subscription URL. If no version parameter is
|
|
19131
|
+
* specified, defaults based on subscription creation date.
|
|
19132
|
+
*/
|
|
19133
|
+
webhook_version: string;
|
|
19134
|
+
}
|
|
19135
|
+
|
|
19136
|
+
export namespace CallVoiceNoAnswerWebhookEvent {
|
|
19137
|
+
export interface Data {
|
|
19138
|
+
/**
|
|
19139
|
+
* Carrier voice call ID
|
|
19140
|
+
*/
|
|
19141
|
+
id: string;
|
|
19142
|
+
|
|
19143
|
+
direction: 'inbound';
|
|
19144
|
+
|
|
19145
|
+
/**
|
|
19146
|
+
* External caller, E.164
|
|
19147
|
+
*/
|
|
19148
|
+
from: string;
|
|
19149
|
+
|
|
19150
|
+
/**
|
|
19151
|
+
* Terminal call outcome. Null on progress events (initiated/ringing/answered); set
|
|
19152
|
+
* once the call ends.
|
|
19153
|
+
*/
|
|
19154
|
+
status: 'completed' | 'busy' | 'no_answer' | 'failed' | 'canceled' | null;
|
|
19155
|
+
|
|
19156
|
+
/**
|
|
19157
|
+
* Your line that was called, E.164
|
|
19158
|
+
*/
|
|
19159
|
+
to: string;
|
|
19160
|
+
|
|
19161
|
+
ended_at?: string | null;
|
|
19162
|
+
|
|
19163
|
+
started_at?: string | null;
|
|
19164
|
+
}
|
|
19165
|
+
}
|
|
19166
|
+
|
|
18197
19167
|
/**
|
|
18198
19168
|
* Complete webhook payload for message.sent events (2026-02-03 format)
|
|
18199
19169
|
*/
|
|
@@ -18230,6 +19200,7 @@ export type UnwrapWebhookEvent =
|
|
|
18230
19200
|
| PhoneNumberStatusUpdatedWebhookEvent
|
|
18231
19201
|
| PhoneNumberAssignedWebhookEvent
|
|
18232
19202
|
| PhoneNumberReleasedWebhookEvent
|
|
19203
|
+
| PhoneNumberLineTypeUpdatedWebhookEvent
|
|
18233
19204
|
| ConnectionCreatedWebhookEvent
|
|
18234
19205
|
| ConnectionRevokedWebhookEvent
|
|
18235
19206
|
| LocationSharingStartedWebhookEvent
|
|
@@ -18265,7 +19236,14 @@ export type UnwrapWebhookEvent =
|
|
|
18265
19236
|
| WebhookSubscriptionRoutingHeadersClearedWebhookEvent
|
|
18266
19237
|
| TeamMemberAddedWebhookEvent
|
|
18267
19238
|
| TeamMemberSignedInWebhookEvent
|
|
18268
|
-
| TeamMemberSignedOutWebhookEvent
|
|
19239
|
+
| TeamMemberSignedOutWebhookEvent
|
|
19240
|
+
| CallVoiceInitiatedWebhookEvent
|
|
19241
|
+
| CallVoiceRingingWebhookEvent
|
|
19242
|
+
| CallVoiceAnsweredWebhookEvent
|
|
19243
|
+
| CallVoiceEndedWebhookEvent
|
|
19244
|
+
| CallVoiceFailedWebhookEvent
|
|
19245
|
+
| CallVoiceDeclinedWebhookEvent
|
|
19246
|
+
| CallVoiceNoAnswerWebhookEvent;
|
|
18269
19247
|
|
|
18270
19248
|
export declare namespace Webhooks {
|
|
18271
19249
|
export {
|
|
@@ -18307,6 +19285,7 @@ export declare namespace Webhooks {
|
|
|
18307
19285
|
type PhoneNumberStatusUpdatedWebhookEvent as PhoneNumberStatusUpdatedWebhookEvent,
|
|
18308
19286
|
type PhoneNumberAssignedWebhookEvent as PhoneNumberAssignedWebhookEvent,
|
|
18309
19287
|
type PhoneNumberReleasedWebhookEvent as PhoneNumberReleasedWebhookEvent,
|
|
19288
|
+
type PhoneNumberLineTypeUpdatedWebhookEvent as PhoneNumberLineTypeUpdatedWebhookEvent,
|
|
18310
19289
|
type ConnectionCreatedWebhookEvent as ConnectionCreatedWebhookEvent,
|
|
18311
19290
|
type ConnectionRevokedWebhookEvent as ConnectionRevokedWebhookEvent,
|
|
18312
19291
|
type LocationSharingStartedWebhookEvent as LocationSharingStartedWebhookEvent,
|
|
@@ -18343,6 +19322,13 @@ export declare namespace Webhooks {
|
|
|
18343
19322
|
type TeamMemberAddedWebhookEvent as TeamMemberAddedWebhookEvent,
|
|
18344
19323
|
type TeamMemberSignedInWebhookEvent as TeamMemberSignedInWebhookEvent,
|
|
18345
19324
|
type TeamMemberSignedOutWebhookEvent as TeamMemberSignedOutWebhookEvent,
|
|
19325
|
+
type CallVoiceInitiatedWebhookEvent as CallVoiceInitiatedWebhookEvent,
|
|
19326
|
+
type CallVoiceRingingWebhookEvent as CallVoiceRingingWebhookEvent,
|
|
19327
|
+
type CallVoiceAnsweredWebhookEvent as CallVoiceAnsweredWebhookEvent,
|
|
19328
|
+
type CallVoiceEndedWebhookEvent as CallVoiceEndedWebhookEvent,
|
|
19329
|
+
type CallVoiceFailedWebhookEvent as CallVoiceFailedWebhookEvent,
|
|
19330
|
+
type CallVoiceDeclinedWebhookEvent as CallVoiceDeclinedWebhookEvent,
|
|
19331
|
+
type CallVoiceNoAnswerWebhookEvent as CallVoiceNoAnswerWebhookEvent,
|
|
18346
19332
|
type UnwrapWebhookEvent as UnwrapWebhookEvent,
|
|
18347
19333
|
};
|
|
18348
19334
|
}
|