@linqapp/sdk 0.12.2 → 0.14.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 +27 -0
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js +2 -2
- package/client.mjs +2 -2
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/messages.d.mts +1 -4
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +1 -4
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +1 -4
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +1 -4
- package/resources/messages.mjs.map +1 -1
- package/resources/webhook-events.d.mts +2 -2
- package/resources/webhook-events.d.mts.map +1 -1
- package/resources/webhook-events.d.ts +2 -2
- package/resources/webhook-events.d.ts.map +1 -1
- package/resources/webhook-events.js +1 -1
- package/resources/webhook-events.mjs +1 -1
- package/resources/webhook-subscriptions.d.mts +2 -2
- package/resources/webhook-subscriptions.d.ts +2 -2
- package/resources/webhook-subscriptions.js +2 -2
- package/resources/webhook-subscriptions.mjs +2 -2
- package/resources/webhooks.d.mts +93 -93
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +93 -93
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +72 -72
- package/src/resources/index.ts +35 -35
- package/src/resources/messages.ts +1 -4
- package/src/resources/webhook-events.ts +9 -2
- package/src/resources/webhook-subscriptions.ts +2 -2
- package/src/resources/webhooks.ts +175 -161
- 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
package/resources/webhooks.d.mts
CHANGED
|
@@ -344,7 +344,7 @@ export interface SchemasTextPartResponse {
|
|
|
344
344
|
/**
|
|
345
345
|
* Complete webhook payload for message.sent events (2026-02-03 format)
|
|
346
346
|
*/
|
|
347
|
-
export interface
|
|
347
|
+
export interface MessageSentV2026_02_03WebhookEvent {
|
|
348
348
|
/**
|
|
349
349
|
* API version for the webhook payload format
|
|
350
350
|
*/
|
|
@@ -405,7 +405,7 @@ export interface MessageSentV2026WebhookEvent {
|
|
|
405
405
|
/**
|
|
406
406
|
* Complete webhook payload for message.received events (2026-02-03 format)
|
|
407
407
|
*/
|
|
408
|
-
export interface
|
|
408
|
+
export interface MessageReceivedV2026_02_03WebhookEvent {
|
|
409
409
|
/**
|
|
410
410
|
* API version for the webhook payload format
|
|
411
411
|
*/
|
|
@@ -466,7 +466,7 @@ export interface MessageReceivedV2026WebhookEvent {
|
|
|
466
466
|
/**
|
|
467
467
|
* Complete webhook payload for message.read events (2026-02-03 format)
|
|
468
468
|
*/
|
|
469
|
-
export interface
|
|
469
|
+
export interface MessageReadV2026_02_03WebhookEvent {
|
|
470
470
|
/**
|
|
471
471
|
* API version for the webhook payload format
|
|
472
472
|
*/
|
|
@@ -527,7 +527,7 @@ export interface MessageReadV2026WebhookEvent {
|
|
|
527
527
|
/**
|
|
528
528
|
* Complete webhook payload for message.delivered events (2026-02-03 format)
|
|
529
529
|
*/
|
|
530
|
-
export interface
|
|
530
|
+
export interface MessageDeliveredV2026_02_03WebhookEvent {
|
|
531
531
|
/**
|
|
532
532
|
* API version for the webhook payload format
|
|
533
533
|
*/
|
|
@@ -588,7 +588,7 @@ export interface MessageDeliveredV2026WebhookEvent {
|
|
|
588
588
|
/**
|
|
589
589
|
* Complete webhook payload for message.failed events
|
|
590
590
|
*/
|
|
591
|
-
export interface
|
|
591
|
+
export interface MessageFailedV2026_02_03WebhookEvent {
|
|
592
592
|
/**
|
|
593
593
|
* API version for the webhook payload format
|
|
594
594
|
*/
|
|
@@ -602,7 +602,7 @@ export interface MessageFailedV2026WebhookEvent {
|
|
|
602
602
|
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
603
603
|
* code reference.
|
|
604
604
|
*/
|
|
605
|
-
data:
|
|
605
|
+
data: MessageFailedV2026_02_03WebhookEvent.Data;
|
|
606
606
|
/**
|
|
607
607
|
* Unique identifier for this event (for deduplication)
|
|
608
608
|
*/
|
|
@@ -630,7 +630,7 @@ export interface MessageFailedV2026WebhookEvent {
|
|
|
630
630
|
*/
|
|
631
631
|
webhook_version: string;
|
|
632
632
|
}
|
|
633
|
-
export declare namespace
|
|
633
|
+
export declare namespace MessageFailedV2026_02_03WebhookEvent {
|
|
634
634
|
/**
|
|
635
635
|
* Error details for message.failed webhook events. See
|
|
636
636
|
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
@@ -662,7 +662,7 @@ export declare namespace MessageFailedV2026WebhookEvent {
|
|
|
662
662
|
/**
|
|
663
663
|
* Complete webhook payload for reaction.added events
|
|
664
664
|
*/
|
|
665
|
-
export interface
|
|
665
|
+
export interface ReactionAddedV2026_02_03WebhookEvent {
|
|
666
666
|
/**
|
|
667
667
|
* API version for the webhook payload format
|
|
668
668
|
*/
|
|
@@ -705,7 +705,7 @@ export interface ReactionAddedV2026WebhookEvent {
|
|
|
705
705
|
/**
|
|
706
706
|
* Complete webhook payload for reaction.removed events
|
|
707
707
|
*/
|
|
708
|
-
export interface
|
|
708
|
+
export interface ReactionRemovedV2026_02_03WebhookEvent {
|
|
709
709
|
/**
|
|
710
710
|
* API version for the webhook payload format
|
|
711
711
|
*/
|
|
@@ -748,7 +748,7 @@ export interface ReactionRemovedV2026WebhookEvent {
|
|
|
748
748
|
/**
|
|
749
749
|
* Complete webhook payload for participant.added events
|
|
750
750
|
*/
|
|
751
|
-
export interface
|
|
751
|
+
export interface ParticipantAddedV2026_02_03WebhookEvent {
|
|
752
752
|
/**
|
|
753
753
|
* API version for the webhook payload format
|
|
754
754
|
*/
|
|
@@ -760,7 +760,7 @@ export interface ParticipantAddedV2026WebhookEvent {
|
|
|
760
760
|
/**
|
|
761
761
|
* Payload for participant.added webhook events
|
|
762
762
|
*/
|
|
763
|
-
data:
|
|
763
|
+
data: ParticipantAddedV2026_02_03WebhookEvent.Data;
|
|
764
764
|
/**
|
|
765
765
|
* Unique identifier for this event (for deduplication)
|
|
766
766
|
*/
|
|
@@ -788,7 +788,7 @@ export interface ParticipantAddedV2026WebhookEvent {
|
|
|
788
788
|
*/
|
|
789
789
|
webhook_version: string;
|
|
790
790
|
}
|
|
791
|
-
export declare namespace
|
|
791
|
+
export declare namespace ParticipantAddedV2026_02_03WebhookEvent {
|
|
792
792
|
/**
|
|
793
793
|
* Payload for participant.added webhook events
|
|
794
794
|
*/
|
|
@@ -815,7 +815,7 @@ export declare namespace ParticipantAddedV2026WebhookEvent {
|
|
|
815
815
|
/**
|
|
816
816
|
* Complete webhook payload for participant.removed events
|
|
817
817
|
*/
|
|
818
|
-
export interface
|
|
818
|
+
export interface ParticipantRemovedV2026_02_03WebhookEvent {
|
|
819
819
|
/**
|
|
820
820
|
* API version for the webhook payload format
|
|
821
821
|
*/
|
|
@@ -827,7 +827,7 @@ export interface ParticipantRemovedV2026WebhookEvent {
|
|
|
827
827
|
/**
|
|
828
828
|
* Payload for participant.removed webhook events
|
|
829
829
|
*/
|
|
830
|
-
data:
|
|
830
|
+
data: ParticipantRemovedV2026_02_03WebhookEvent.Data;
|
|
831
831
|
/**
|
|
832
832
|
* Unique identifier for this event (for deduplication)
|
|
833
833
|
*/
|
|
@@ -855,7 +855,7 @@ export interface ParticipantRemovedV2026WebhookEvent {
|
|
|
855
855
|
*/
|
|
856
856
|
webhook_version: string;
|
|
857
857
|
}
|
|
858
|
-
export declare namespace
|
|
858
|
+
export declare namespace ParticipantRemovedV2026_02_03WebhookEvent {
|
|
859
859
|
/**
|
|
860
860
|
* Payload for participant.removed webhook events
|
|
861
861
|
*/
|
|
@@ -882,7 +882,7 @@ export declare namespace ParticipantRemovedV2026WebhookEvent {
|
|
|
882
882
|
/**
|
|
883
883
|
* Complete webhook payload for chat.group_name_updated events
|
|
884
884
|
*/
|
|
885
|
-
export interface
|
|
885
|
+
export interface ChatGroupNameUpdatedV2026_02_03WebhookEvent {
|
|
886
886
|
/**
|
|
887
887
|
* API version for the webhook payload format
|
|
888
888
|
*/
|
|
@@ -894,7 +894,7 @@ export interface ChatGroupNameUpdatedV2026WebhookEvent {
|
|
|
894
894
|
/**
|
|
895
895
|
* Payload for chat.group_name_updated webhook events
|
|
896
896
|
*/
|
|
897
|
-
data:
|
|
897
|
+
data: ChatGroupNameUpdatedV2026_02_03WebhookEvent.Data;
|
|
898
898
|
/**
|
|
899
899
|
* Unique identifier for this event (for deduplication)
|
|
900
900
|
*/
|
|
@@ -922,7 +922,7 @@ export interface ChatGroupNameUpdatedV2026WebhookEvent {
|
|
|
922
922
|
*/
|
|
923
923
|
webhook_version: string;
|
|
924
924
|
}
|
|
925
|
-
export declare namespace
|
|
925
|
+
export declare namespace ChatGroupNameUpdatedV2026_02_03WebhookEvent {
|
|
926
926
|
/**
|
|
927
927
|
* Payload for chat.group_name_updated webhook events
|
|
928
928
|
*/
|
|
@@ -952,7 +952,7 @@ export declare namespace ChatGroupNameUpdatedV2026WebhookEvent {
|
|
|
952
952
|
/**
|
|
953
953
|
* Complete webhook payload for chat.group_icon_updated events
|
|
954
954
|
*/
|
|
955
|
-
export interface
|
|
955
|
+
export interface ChatGroupIconUpdatedV2026_02_03WebhookEvent {
|
|
956
956
|
/**
|
|
957
957
|
* API version for the webhook payload format
|
|
958
958
|
*/
|
|
@@ -964,7 +964,7 @@ export interface ChatGroupIconUpdatedV2026WebhookEvent {
|
|
|
964
964
|
/**
|
|
965
965
|
* Payload for chat.group_icon_updated webhook events
|
|
966
966
|
*/
|
|
967
|
-
data:
|
|
967
|
+
data: ChatGroupIconUpdatedV2026_02_03WebhookEvent.Data;
|
|
968
968
|
/**
|
|
969
969
|
* Unique identifier for this event (for deduplication)
|
|
970
970
|
*/
|
|
@@ -992,7 +992,7 @@ export interface ChatGroupIconUpdatedV2026WebhookEvent {
|
|
|
992
992
|
*/
|
|
993
993
|
webhook_version: string;
|
|
994
994
|
}
|
|
995
|
-
export declare namespace
|
|
995
|
+
export declare namespace ChatGroupIconUpdatedV2026_02_03WebhookEvent {
|
|
996
996
|
/**
|
|
997
997
|
* Payload for chat.group_icon_updated webhook events
|
|
998
998
|
*/
|
|
@@ -1022,7 +1022,7 @@ export declare namespace ChatGroupIconUpdatedV2026WebhookEvent {
|
|
|
1022
1022
|
/**
|
|
1023
1023
|
* Complete webhook payload for chat.group_name_update_failed events
|
|
1024
1024
|
*/
|
|
1025
|
-
export interface
|
|
1025
|
+
export interface ChatGroupNameUpdateFailedV2026_02_03WebhookEvent {
|
|
1026
1026
|
/**
|
|
1027
1027
|
* API version for the webhook payload format
|
|
1028
1028
|
*/
|
|
@@ -1036,7 +1036,7 @@ export interface ChatGroupNameUpdateFailedV2026WebhookEvent {
|
|
|
1036
1036
|
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
1037
1037
|
* code reference.
|
|
1038
1038
|
*/
|
|
1039
|
-
data:
|
|
1039
|
+
data: ChatGroupNameUpdateFailedV2026_02_03WebhookEvent.Data;
|
|
1040
1040
|
/**
|
|
1041
1041
|
* Unique identifier for this event (for deduplication)
|
|
1042
1042
|
*/
|
|
@@ -1064,7 +1064,7 @@ export interface ChatGroupNameUpdateFailedV2026WebhookEvent {
|
|
|
1064
1064
|
*/
|
|
1065
1065
|
webhook_version: string;
|
|
1066
1066
|
}
|
|
1067
|
-
export declare namespace
|
|
1067
|
+
export declare namespace ChatGroupNameUpdateFailedV2026_02_03WebhookEvent {
|
|
1068
1068
|
/**
|
|
1069
1069
|
* Error details for chat.group_name_update_failed webhook events. See
|
|
1070
1070
|
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
@@ -1088,7 +1088,7 @@ export declare namespace ChatGroupNameUpdateFailedV2026WebhookEvent {
|
|
|
1088
1088
|
/**
|
|
1089
1089
|
* Complete webhook payload for chat.group_icon_update_failed events
|
|
1090
1090
|
*/
|
|
1091
|
-
export interface
|
|
1091
|
+
export interface ChatGroupIconUpdateFailedV2026_02_03WebhookEvent {
|
|
1092
1092
|
/**
|
|
1093
1093
|
* API version for the webhook payload format
|
|
1094
1094
|
*/
|
|
@@ -1102,7 +1102,7 @@ export interface ChatGroupIconUpdateFailedV2026WebhookEvent {
|
|
|
1102
1102
|
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
1103
1103
|
* code reference.
|
|
1104
1104
|
*/
|
|
1105
|
-
data:
|
|
1105
|
+
data: ChatGroupIconUpdateFailedV2026_02_03WebhookEvent.Data;
|
|
1106
1106
|
/**
|
|
1107
1107
|
* Unique identifier for this event (for deduplication)
|
|
1108
1108
|
*/
|
|
@@ -1130,7 +1130,7 @@ export interface ChatGroupIconUpdateFailedV2026WebhookEvent {
|
|
|
1130
1130
|
*/
|
|
1131
1131
|
webhook_version: string;
|
|
1132
1132
|
}
|
|
1133
|
-
export declare namespace
|
|
1133
|
+
export declare namespace ChatGroupIconUpdateFailedV2026_02_03WebhookEvent {
|
|
1134
1134
|
/**
|
|
1135
1135
|
* Error details for chat.group_icon_update_failed webhook events. See
|
|
1136
1136
|
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
@@ -1154,7 +1154,7 @@ export declare namespace ChatGroupIconUpdateFailedV2026WebhookEvent {
|
|
|
1154
1154
|
/**
|
|
1155
1155
|
* Complete webhook payload for chat.created events
|
|
1156
1156
|
*/
|
|
1157
|
-
export interface
|
|
1157
|
+
export interface ChatCreatedV2026_02_03WebhookEvent {
|
|
1158
1158
|
/**
|
|
1159
1159
|
* API version for the webhook payload format
|
|
1160
1160
|
*/
|
|
@@ -1167,7 +1167,7 @@ export interface ChatCreatedV2026WebhookEvent {
|
|
|
1167
1167
|
* Payload for chat.created webhook events. Matches GET /v3/chats/{chatId}
|
|
1168
1168
|
* response.
|
|
1169
1169
|
*/
|
|
1170
|
-
data:
|
|
1170
|
+
data: ChatCreatedV2026_02_03WebhookEvent.Data;
|
|
1171
1171
|
/**
|
|
1172
1172
|
* Unique identifier for this event (for deduplication)
|
|
1173
1173
|
*/
|
|
@@ -1195,7 +1195,7 @@ export interface ChatCreatedV2026WebhookEvent {
|
|
|
1195
1195
|
*/
|
|
1196
1196
|
webhook_version: string;
|
|
1197
1197
|
}
|
|
1198
|
-
export declare namespace
|
|
1198
|
+
export declare namespace ChatCreatedV2026_02_03WebhookEvent {
|
|
1199
1199
|
/**
|
|
1200
1200
|
* Payload for chat.created webhook events. Matches GET /v3/chats/{chatId}
|
|
1201
1201
|
* response.
|
|
@@ -1236,7 +1236,7 @@ export declare namespace ChatCreatedV2026WebhookEvent {
|
|
|
1236
1236
|
/**
|
|
1237
1237
|
* Complete webhook payload for chat.typing_indicator.started events
|
|
1238
1238
|
*/
|
|
1239
|
-
export interface
|
|
1239
|
+
export interface ChatTypingIndicatorStartedV2026_02_03WebhookEvent {
|
|
1240
1240
|
/**
|
|
1241
1241
|
* API version for the webhook payload format
|
|
1242
1242
|
*/
|
|
@@ -1248,7 +1248,7 @@ export interface ChatTypingIndicatorStartedV2026WebhookEvent {
|
|
|
1248
1248
|
/**
|
|
1249
1249
|
* Payload for chat.typing_indicator.started webhook events
|
|
1250
1250
|
*/
|
|
1251
|
-
data:
|
|
1251
|
+
data: ChatTypingIndicatorStartedV2026_02_03WebhookEvent.Data;
|
|
1252
1252
|
/**
|
|
1253
1253
|
* Unique identifier for this event (for deduplication)
|
|
1254
1254
|
*/
|
|
@@ -1276,7 +1276,7 @@ export interface ChatTypingIndicatorStartedV2026WebhookEvent {
|
|
|
1276
1276
|
*/
|
|
1277
1277
|
webhook_version: string;
|
|
1278
1278
|
}
|
|
1279
|
-
export declare namespace
|
|
1279
|
+
export declare namespace ChatTypingIndicatorStartedV2026_02_03WebhookEvent {
|
|
1280
1280
|
/**
|
|
1281
1281
|
* Payload for chat.typing_indicator.started webhook events
|
|
1282
1282
|
*/
|
|
@@ -1290,7 +1290,7 @@ export declare namespace ChatTypingIndicatorStartedV2026WebhookEvent {
|
|
|
1290
1290
|
/**
|
|
1291
1291
|
* Complete webhook payload for chat.typing_indicator.stopped events
|
|
1292
1292
|
*/
|
|
1293
|
-
export interface
|
|
1293
|
+
export interface ChatTypingIndicatorStoppedV2026_02_03WebhookEvent {
|
|
1294
1294
|
/**
|
|
1295
1295
|
* API version for the webhook payload format
|
|
1296
1296
|
*/
|
|
@@ -1302,7 +1302,7 @@ export interface ChatTypingIndicatorStoppedV2026WebhookEvent {
|
|
|
1302
1302
|
/**
|
|
1303
1303
|
* Payload for chat.typing_indicator.stopped webhook events
|
|
1304
1304
|
*/
|
|
1305
|
-
data:
|
|
1305
|
+
data: ChatTypingIndicatorStoppedV2026_02_03WebhookEvent.Data;
|
|
1306
1306
|
/**
|
|
1307
1307
|
* Unique identifier for this event (for deduplication)
|
|
1308
1308
|
*/
|
|
@@ -1330,7 +1330,7 @@ export interface ChatTypingIndicatorStoppedV2026WebhookEvent {
|
|
|
1330
1330
|
*/
|
|
1331
1331
|
webhook_version: string;
|
|
1332
1332
|
}
|
|
1333
|
-
export declare namespace
|
|
1333
|
+
export declare namespace ChatTypingIndicatorStoppedV2026_02_03WebhookEvent {
|
|
1334
1334
|
/**
|
|
1335
1335
|
* Payload for chat.typing_indicator.stopped webhook events
|
|
1336
1336
|
*/
|
|
@@ -1344,7 +1344,7 @@ export declare namespace ChatTypingIndicatorStoppedV2026WebhookEvent {
|
|
|
1344
1344
|
/**
|
|
1345
1345
|
* Complete webhook payload for message.edited events (2026-02-03 format only)
|
|
1346
1346
|
*/
|
|
1347
|
-
export interface
|
|
1347
|
+
export interface MessageEditedV2026_02_03WebhookEvent {
|
|
1348
1348
|
/**
|
|
1349
1349
|
* API version for the webhook payload format
|
|
1350
1350
|
*/
|
|
@@ -1359,7 +1359,7 @@ export interface MessageEditedV2026WebhookEvent {
|
|
|
1359
1359
|
* Describes which part of a message was edited and when. Only text parts can be
|
|
1360
1360
|
* edited. Only available for subscriptions using `webhook_version: "2026-02-03"`.
|
|
1361
1361
|
*/
|
|
1362
|
-
data:
|
|
1362
|
+
data: MessageEditedV2026_02_03WebhookEvent.Data;
|
|
1363
1363
|
/**
|
|
1364
1364
|
* Unique identifier for this event (for deduplication)
|
|
1365
1365
|
*/
|
|
@@ -1387,7 +1387,7 @@ export interface MessageEditedV2026WebhookEvent {
|
|
|
1387
1387
|
*/
|
|
1388
1388
|
webhook_version: string;
|
|
1389
1389
|
}
|
|
1390
|
-
export declare namespace
|
|
1390
|
+
export declare namespace MessageEditedV2026_02_03WebhookEvent {
|
|
1391
1391
|
/**
|
|
1392
1392
|
* Payload for `message.edited` events (2026-02-03 format).
|
|
1393
1393
|
*
|
|
@@ -1456,7 +1456,7 @@ export declare namespace MessageEditedV2026WebhookEvent {
|
|
|
1456
1456
|
/**
|
|
1457
1457
|
* Complete webhook payload for phone_number.status_updated events
|
|
1458
1458
|
*/
|
|
1459
|
-
export interface
|
|
1459
|
+
export interface PhoneNumberStatusUpdatedV2026_02_03WebhookEvent {
|
|
1460
1460
|
/**
|
|
1461
1461
|
* API version for the webhook payload format
|
|
1462
1462
|
*/
|
|
@@ -1468,7 +1468,7 @@ export interface PhoneNumberStatusUpdatedV2026WebhookEvent {
|
|
|
1468
1468
|
/**
|
|
1469
1469
|
* Payload for phone_number.status_updated webhook events
|
|
1470
1470
|
*/
|
|
1471
|
-
data:
|
|
1471
|
+
data: PhoneNumberStatusUpdatedV2026_02_03WebhookEvent.Data;
|
|
1472
1472
|
/**
|
|
1473
1473
|
* Unique identifier for this event (for deduplication)
|
|
1474
1474
|
*/
|
|
@@ -1476,7 +1476,7 @@ export interface PhoneNumberStatusUpdatedV2026WebhookEvent {
|
|
|
1476
1476
|
/**
|
|
1477
1477
|
* The type of event
|
|
1478
1478
|
*/
|
|
1479
|
-
event_type: 'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'message.edited' | 'reaction.added' | 'reaction.removed' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated';
|
|
1479
|
+
event_type: 'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'message.edited' | 'reaction.added' | 'reaction.removed' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated' | 'call.initiated' | 'call.ringing' | 'call.answered' | 'call.ended' | 'call.failed' | 'call.declined' | 'call.no_answer';
|
|
1480
1480
|
/**
|
|
1481
1481
|
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
1482
1482
|
*/
|
|
@@ -1492,7 +1492,7 @@ export interface PhoneNumberStatusUpdatedV2026WebhookEvent {
|
|
|
1492
1492
|
*/
|
|
1493
1493
|
webhook_version: string;
|
|
1494
1494
|
}
|
|
1495
|
-
export declare namespace
|
|
1495
|
+
export declare namespace PhoneNumberStatusUpdatedV2026_02_03WebhookEvent {
|
|
1496
1496
|
/**
|
|
1497
1497
|
* Payload for phone_number.status_updated webhook events
|
|
1498
1498
|
*/
|
|
@@ -1518,7 +1518,7 @@ export declare namespace PhoneNumberStatusUpdatedV2026WebhookEvent {
|
|
|
1518
1518
|
/**
|
|
1519
1519
|
* Complete webhook payload for message.sent events (2025-01-01 format)
|
|
1520
1520
|
*/
|
|
1521
|
-
export interface
|
|
1521
|
+
export interface MessageSentV2025_01_01WebhookEvent {
|
|
1522
1522
|
/**
|
|
1523
1523
|
* API version for the webhook payload format
|
|
1524
1524
|
*/
|
|
@@ -1531,7 +1531,7 @@ export interface MessageSentV2025WebhookEvent {
|
|
|
1531
1531
|
* Unified payload for message.sent and message.received webhook events (2025-01-01
|
|
1532
1532
|
* format)
|
|
1533
1533
|
*/
|
|
1534
|
-
data:
|
|
1534
|
+
data: MessageSentV2025_01_01WebhookEvent.Data;
|
|
1535
1535
|
/**
|
|
1536
1536
|
* Unique identifier for this event (for deduplication)
|
|
1537
1537
|
*/
|
|
@@ -1559,7 +1559,7 @@ export interface MessageSentV2025WebhookEvent {
|
|
|
1559
1559
|
*/
|
|
1560
1560
|
webhook_version: string;
|
|
1561
1561
|
}
|
|
1562
|
-
export declare namespace
|
|
1562
|
+
export declare namespace MessageSentV2025_01_01WebhookEvent {
|
|
1563
1563
|
/**
|
|
1564
1564
|
* Unified payload for message.sent and message.received webhook events (2025-01-01
|
|
1565
1565
|
* format)
|
|
@@ -1622,7 +1622,7 @@ export declare namespace MessageSentV2025WebhookEvent {
|
|
|
1622
1622
|
/**
|
|
1623
1623
|
* Complete webhook payload for message.received events (2025-01-01 format)
|
|
1624
1624
|
*/
|
|
1625
|
-
export interface
|
|
1625
|
+
export interface MessageReceivedV2025_01_01WebhookEvent {
|
|
1626
1626
|
/**
|
|
1627
1627
|
* API version for the webhook payload format
|
|
1628
1628
|
*/
|
|
@@ -1635,7 +1635,7 @@ export interface MessageReceivedV2025WebhookEvent {
|
|
|
1635
1635
|
* Unified payload for message.sent and message.received webhook events (2025-01-01
|
|
1636
1636
|
* format)
|
|
1637
1637
|
*/
|
|
1638
|
-
data:
|
|
1638
|
+
data: MessageReceivedV2025_01_01WebhookEvent.Data;
|
|
1639
1639
|
/**
|
|
1640
1640
|
* Unique identifier for this event (for deduplication)
|
|
1641
1641
|
*/
|
|
@@ -1663,7 +1663,7 @@ export interface MessageReceivedV2025WebhookEvent {
|
|
|
1663
1663
|
*/
|
|
1664
1664
|
webhook_version: string;
|
|
1665
1665
|
}
|
|
1666
|
-
export declare namespace
|
|
1666
|
+
export declare namespace MessageReceivedV2025_01_01WebhookEvent {
|
|
1667
1667
|
/**
|
|
1668
1668
|
* Unified payload for message.sent and message.received webhook events (2025-01-01
|
|
1669
1669
|
* format)
|
|
@@ -1726,7 +1726,7 @@ export declare namespace MessageReceivedV2025WebhookEvent {
|
|
|
1726
1726
|
/**
|
|
1727
1727
|
* Complete webhook payload for message.read events (2025-01-01 format)
|
|
1728
1728
|
*/
|
|
1729
|
-
export interface
|
|
1729
|
+
export interface MessageReadV2025_01_01WebhookEvent {
|
|
1730
1730
|
/**
|
|
1731
1731
|
* API version for the webhook payload format
|
|
1732
1732
|
*/
|
|
@@ -1739,7 +1739,7 @@ export interface MessageReadV2025WebhookEvent {
|
|
|
1739
1739
|
* Payload for message.read webhook events (2025-01-01 format). Extends
|
|
1740
1740
|
* MessageEvent with read_at and message_id.
|
|
1741
1741
|
*/
|
|
1742
|
-
data:
|
|
1742
|
+
data: MessageReadV2025_01_01WebhookEvent.Data;
|
|
1743
1743
|
/**
|
|
1744
1744
|
* Unique identifier for this event (for deduplication)
|
|
1745
1745
|
*/
|
|
@@ -1767,7 +1767,7 @@ export interface MessageReadV2025WebhookEvent {
|
|
|
1767
1767
|
*/
|
|
1768
1768
|
webhook_version: string;
|
|
1769
1769
|
}
|
|
1770
|
-
export declare namespace
|
|
1770
|
+
export declare namespace MessageReadV2025_01_01WebhookEvent {
|
|
1771
1771
|
/**
|
|
1772
1772
|
* Payload for message.read webhook events (2025-01-01 format). Extends
|
|
1773
1773
|
* MessageEvent with read_at and message_id.
|
|
@@ -1838,7 +1838,7 @@ export declare namespace MessageReadV2025WebhookEvent {
|
|
|
1838
1838
|
/**
|
|
1839
1839
|
* Complete webhook payload for message.delivered events (2025-01-01 format)
|
|
1840
1840
|
*/
|
|
1841
|
-
export interface
|
|
1841
|
+
export interface MessageDeliveredV2025_01_01WebhookEvent {
|
|
1842
1842
|
/**
|
|
1843
1843
|
* API version for the webhook payload format
|
|
1844
1844
|
*/
|
|
@@ -1851,7 +1851,7 @@ export interface MessageDeliveredV2025WebhookEvent {
|
|
|
1851
1851
|
* Payload for message.delivered webhook events (2025-01-01 format). Extends
|
|
1852
1852
|
* MessageEvent with delivered_at and message_id.
|
|
1853
1853
|
*/
|
|
1854
|
-
data:
|
|
1854
|
+
data: MessageDeliveredV2025_01_01WebhookEvent.Data;
|
|
1855
1855
|
/**
|
|
1856
1856
|
* Unique identifier for this event (for deduplication)
|
|
1857
1857
|
*/
|
|
@@ -1879,7 +1879,7 @@ export interface MessageDeliveredV2025WebhookEvent {
|
|
|
1879
1879
|
*/
|
|
1880
1880
|
webhook_version: string;
|
|
1881
1881
|
}
|
|
1882
|
-
export declare namespace
|
|
1882
|
+
export declare namespace MessageDeliveredV2025_01_01WebhookEvent {
|
|
1883
1883
|
/**
|
|
1884
1884
|
* Payload for message.delivered webhook events (2025-01-01 format). Extends
|
|
1885
1885
|
* MessageEvent with delivered_at and message_id.
|
|
@@ -1950,7 +1950,7 @@ export declare namespace MessageDeliveredV2025WebhookEvent {
|
|
|
1950
1950
|
/**
|
|
1951
1951
|
* Complete webhook payload for message.failed events
|
|
1952
1952
|
*/
|
|
1953
|
-
export interface
|
|
1953
|
+
export interface MessageFailedV2025_01_01WebhookEvent {
|
|
1954
1954
|
/**
|
|
1955
1955
|
* API version for the webhook payload format
|
|
1956
1956
|
*/
|
|
@@ -1964,7 +1964,7 @@ export interface MessageFailedV2025WebhookEvent {
|
|
|
1964
1964
|
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
1965
1965
|
* code reference.
|
|
1966
1966
|
*/
|
|
1967
|
-
data:
|
|
1967
|
+
data: MessageFailedV2025_01_01WebhookEvent.Data;
|
|
1968
1968
|
/**
|
|
1969
1969
|
* Unique identifier for this event (for deduplication)
|
|
1970
1970
|
*/
|
|
@@ -1992,7 +1992,7 @@ export interface MessageFailedV2025WebhookEvent {
|
|
|
1992
1992
|
*/
|
|
1993
1993
|
webhook_version: string;
|
|
1994
1994
|
}
|
|
1995
|
-
export declare namespace
|
|
1995
|
+
export declare namespace MessageFailedV2025_01_01WebhookEvent {
|
|
1996
1996
|
/**
|
|
1997
1997
|
* Error details for message.failed webhook events. See
|
|
1998
1998
|
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
@@ -2024,7 +2024,7 @@ export declare namespace MessageFailedV2025WebhookEvent {
|
|
|
2024
2024
|
/**
|
|
2025
2025
|
* Complete webhook payload for reaction.added events
|
|
2026
2026
|
*/
|
|
2027
|
-
export interface
|
|
2027
|
+
export interface ReactionAddedV2025_01_01WebhookEvent {
|
|
2028
2028
|
/**
|
|
2029
2029
|
* API version for the webhook payload format
|
|
2030
2030
|
*/
|
|
@@ -2067,7 +2067,7 @@ export interface ReactionAddedV2025WebhookEvent {
|
|
|
2067
2067
|
/**
|
|
2068
2068
|
* Complete webhook payload for reaction.removed events
|
|
2069
2069
|
*/
|
|
2070
|
-
export interface
|
|
2070
|
+
export interface ReactionRemovedV2025_01_01WebhookEvent {
|
|
2071
2071
|
/**
|
|
2072
2072
|
* API version for the webhook payload format
|
|
2073
2073
|
*/
|
|
@@ -2110,7 +2110,7 @@ export interface ReactionRemovedV2025WebhookEvent {
|
|
|
2110
2110
|
/**
|
|
2111
2111
|
* Complete webhook payload for participant.added events
|
|
2112
2112
|
*/
|
|
2113
|
-
export interface
|
|
2113
|
+
export interface ParticipantAddedV2025_01_01WebhookEvent {
|
|
2114
2114
|
/**
|
|
2115
2115
|
* API version for the webhook payload format
|
|
2116
2116
|
*/
|
|
@@ -2122,7 +2122,7 @@ export interface ParticipantAddedV2025WebhookEvent {
|
|
|
2122
2122
|
/**
|
|
2123
2123
|
* Payload for participant.added webhook events
|
|
2124
2124
|
*/
|
|
2125
|
-
data:
|
|
2125
|
+
data: ParticipantAddedV2025_01_01WebhookEvent.Data;
|
|
2126
2126
|
/**
|
|
2127
2127
|
* Unique identifier for this event (for deduplication)
|
|
2128
2128
|
*/
|
|
@@ -2150,7 +2150,7 @@ export interface ParticipantAddedV2025WebhookEvent {
|
|
|
2150
2150
|
*/
|
|
2151
2151
|
webhook_version: string;
|
|
2152
2152
|
}
|
|
2153
|
-
export declare namespace
|
|
2153
|
+
export declare namespace ParticipantAddedV2025_01_01WebhookEvent {
|
|
2154
2154
|
/**
|
|
2155
2155
|
* Payload for participant.added webhook events
|
|
2156
2156
|
*/
|
|
@@ -2177,7 +2177,7 @@ export declare namespace ParticipantAddedV2025WebhookEvent {
|
|
|
2177
2177
|
/**
|
|
2178
2178
|
* Complete webhook payload for participant.removed events
|
|
2179
2179
|
*/
|
|
2180
|
-
export interface
|
|
2180
|
+
export interface ParticipantRemovedV2025_01_01WebhookEvent {
|
|
2181
2181
|
/**
|
|
2182
2182
|
* API version for the webhook payload format
|
|
2183
2183
|
*/
|
|
@@ -2189,7 +2189,7 @@ export interface ParticipantRemovedV2025WebhookEvent {
|
|
|
2189
2189
|
/**
|
|
2190
2190
|
* Payload for participant.removed webhook events
|
|
2191
2191
|
*/
|
|
2192
|
-
data:
|
|
2192
|
+
data: ParticipantRemovedV2025_01_01WebhookEvent.Data;
|
|
2193
2193
|
/**
|
|
2194
2194
|
* Unique identifier for this event (for deduplication)
|
|
2195
2195
|
*/
|
|
@@ -2217,7 +2217,7 @@ export interface ParticipantRemovedV2025WebhookEvent {
|
|
|
2217
2217
|
*/
|
|
2218
2218
|
webhook_version: string;
|
|
2219
2219
|
}
|
|
2220
|
-
export declare namespace
|
|
2220
|
+
export declare namespace ParticipantRemovedV2025_01_01WebhookEvent {
|
|
2221
2221
|
/**
|
|
2222
2222
|
* Payload for participant.removed webhook events
|
|
2223
2223
|
*/
|
|
@@ -2244,7 +2244,7 @@ export declare namespace ParticipantRemovedV2025WebhookEvent {
|
|
|
2244
2244
|
/**
|
|
2245
2245
|
* Complete webhook payload for chat.group_name_updated events
|
|
2246
2246
|
*/
|
|
2247
|
-
export interface
|
|
2247
|
+
export interface ChatGroupNameUpdatedV2025_01_01WebhookEvent {
|
|
2248
2248
|
/**
|
|
2249
2249
|
* API version for the webhook payload format
|
|
2250
2250
|
*/
|
|
@@ -2256,7 +2256,7 @@ export interface ChatGroupNameUpdatedV2025WebhookEvent {
|
|
|
2256
2256
|
/**
|
|
2257
2257
|
* Payload for chat.group_name_updated webhook events
|
|
2258
2258
|
*/
|
|
2259
|
-
data:
|
|
2259
|
+
data: ChatGroupNameUpdatedV2025_01_01WebhookEvent.Data;
|
|
2260
2260
|
/**
|
|
2261
2261
|
* Unique identifier for this event (for deduplication)
|
|
2262
2262
|
*/
|
|
@@ -2284,7 +2284,7 @@ export interface ChatGroupNameUpdatedV2025WebhookEvent {
|
|
|
2284
2284
|
*/
|
|
2285
2285
|
webhook_version: string;
|
|
2286
2286
|
}
|
|
2287
|
-
export declare namespace
|
|
2287
|
+
export declare namespace ChatGroupNameUpdatedV2025_01_01WebhookEvent {
|
|
2288
2288
|
/**
|
|
2289
2289
|
* Payload for chat.group_name_updated webhook events
|
|
2290
2290
|
*/
|
|
@@ -2314,7 +2314,7 @@ export declare namespace ChatGroupNameUpdatedV2025WebhookEvent {
|
|
|
2314
2314
|
/**
|
|
2315
2315
|
* Complete webhook payload for chat.group_icon_updated events
|
|
2316
2316
|
*/
|
|
2317
|
-
export interface
|
|
2317
|
+
export interface ChatGroupIconUpdatedV2025_01_01WebhookEvent {
|
|
2318
2318
|
/**
|
|
2319
2319
|
* API version for the webhook payload format
|
|
2320
2320
|
*/
|
|
@@ -2326,7 +2326,7 @@ export interface ChatGroupIconUpdatedV2025WebhookEvent {
|
|
|
2326
2326
|
/**
|
|
2327
2327
|
* Payload for chat.group_icon_updated webhook events
|
|
2328
2328
|
*/
|
|
2329
|
-
data:
|
|
2329
|
+
data: ChatGroupIconUpdatedV2025_01_01WebhookEvent.Data;
|
|
2330
2330
|
/**
|
|
2331
2331
|
* Unique identifier for this event (for deduplication)
|
|
2332
2332
|
*/
|
|
@@ -2354,7 +2354,7 @@ export interface ChatGroupIconUpdatedV2025WebhookEvent {
|
|
|
2354
2354
|
*/
|
|
2355
2355
|
webhook_version: string;
|
|
2356
2356
|
}
|
|
2357
|
-
export declare namespace
|
|
2357
|
+
export declare namespace ChatGroupIconUpdatedV2025_01_01WebhookEvent {
|
|
2358
2358
|
/**
|
|
2359
2359
|
* Payload for chat.group_icon_updated webhook events
|
|
2360
2360
|
*/
|
|
@@ -2384,7 +2384,7 @@ export declare namespace ChatGroupIconUpdatedV2025WebhookEvent {
|
|
|
2384
2384
|
/**
|
|
2385
2385
|
* Complete webhook payload for chat.group_name_update_failed events
|
|
2386
2386
|
*/
|
|
2387
|
-
export interface
|
|
2387
|
+
export interface ChatGroupNameUpdateFailedV2025_01_01WebhookEvent {
|
|
2388
2388
|
/**
|
|
2389
2389
|
* API version for the webhook payload format
|
|
2390
2390
|
*/
|
|
@@ -2398,7 +2398,7 @@ export interface ChatGroupNameUpdateFailedV2025WebhookEvent {
|
|
|
2398
2398
|
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
2399
2399
|
* code reference.
|
|
2400
2400
|
*/
|
|
2401
|
-
data:
|
|
2401
|
+
data: ChatGroupNameUpdateFailedV2025_01_01WebhookEvent.Data;
|
|
2402
2402
|
/**
|
|
2403
2403
|
* Unique identifier for this event (for deduplication)
|
|
2404
2404
|
*/
|
|
@@ -2426,7 +2426,7 @@ export interface ChatGroupNameUpdateFailedV2025WebhookEvent {
|
|
|
2426
2426
|
*/
|
|
2427
2427
|
webhook_version: string;
|
|
2428
2428
|
}
|
|
2429
|
-
export declare namespace
|
|
2429
|
+
export declare namespace ChatGroupNameUpdateFailedV2025_01_01WebhookEvent {
|
|
2430
2430
|
/**
|
|
2431
2431
|
* Error details for chat.group_name_update_failed webhook events. See
|
|
2432
2432
|
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
@@ -2450,7 +2450,7 @@ export declare namespace ChatGroupNameUpdateFailedV2025WebhookEvent {
|
|
|
2450
2450
|
/**
|
|
2451
2451
|
* Complete webhook payload for chat.group_icon_update_failed events
|
|
2452
2452
|
*/
|
|
2453
|
-
export interface
|
|
2453
|
+
export interface ChatGroupIconUpdateFailedV2025_01_01WebhookEvent {
|
|
2454
2454
|
/**
|
|
2455
2455
|
* API version for the webhook payload format
|
|
2456
2456
|
*/
|
|
@@ -2464,7 +2464,7 @@ export interface ChatGroupIconUpdateFailedV2025WebhookEvent {
|
|
|
2464
2464
|
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
2465
2465
|
* code reference.
|
|
2466
2466
|
*/
|
|
2467
|
-
data:
|
|
2467
|
+
data: ChatGroupIconUpdateFailedV2025_01_01WebhookEvent.Data;
|
|
2468
2468
|
/**
|
|
2469
2469
|
* Unique identifier for this event (for deduplication)
|
|
2470
2470
|
*/
|
|
@@ -2492,7 +2492,7 @@ export interface ChatGroupIconUpdateFailedV2025WebhookEvent {
|
|
|
2492
2492
|
*/
|
|
2493
2493
|
webhook_version: string;
|
|
2494
2494
|
}
|
|
2495
|
-
export declare namespace
|
|
2495
|
+
export declare namespace ChatGroupIconUpdateFailedV2025_01_01WebhookEvent {
|
|
2496
2496
|
/**
|
|
2497
2497
|
* Error details for chat.group_icon_update_failed webhook events. See
|
|
2498
2498
|
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
@@ -2516,7 +2516,7 @@ export declare namespace ChatGroupIconUpdateFailedV2025WebhookEvent {
|
|
|
2516
2516
|
/**
|
|
2517
2517
|
* Complete webhook payload for chat.created events
|
|
2518
2518
|
*/
|
|
2519
|
-
export interface
|
|
2519
|
+
export interface ChatCreatedV2025_01_01WebhookEvent {
|
|
2520
2520
|
/**
|
|
2521
2521
|
* API version for the webhook payload format
|
|
2522
2522
|
*/
|
|
@@ -2529,7 +2529,7 @@ export interface ChatCreatedV2025WebhookEvent {
|
|
|
2529
2529
|
* Payload for chat.created webhook events. Matches GET /v3/chats/{chatId}
|
|
2530
2530
|
* response.
|
|
2531
2531
|
*/
|
|
2532
|
-
data:
|
|
2532
|
+
data: ChatCreatedV2025_01_01WebhookEvent.Data;
|
|
2533
2533
|
/**
|
|
2534
2534
|
* Unique identifier for this event (for deduplication)
|
|
2535
2535
|
*/
|
|
@@ -2557,7 +2557,7 @@ export interface ChatCreatedV2025WebhookEvent {
|
|
|
2557
2557
|
*/
|
|
2558
2558
|
webhook_version: string;
|
|
2559
2559
|
}
|
|
2560
|
-
export declare namespace
|
|
2560
|
+
export declare namespace ChatCreatedV2025_01_01WebhookEvent {
|
|
2561
2561
|
/**
|
|
2562
2562
|
* Payload for chat.created webhook events. Matches GET /v3/chats/{chatId}
|
|
2563
2563
|
* response.
|
|
@@ -2598,7 +2598,7 @@ export declare namespace ChatCreatedV2025WebhookEvent {
|
|
|
2598
2598
|
/**
|
|
2599
2599
|
* Complete webhook payload for chat.typing_indicator.started events
|
|
2600
2600
|
*/
|
|
2601
|
-
export interface
|
|
2601
|
+
export interface ChatTypingIndicatorStartedV2025_01_01WebhookEvent {
|
|
2602
2602
|
/**
|
|
2603
2603
|
* API version for the webhook payload format
|
|
2604
2604
|
*/
|
|
@@ -2610,7 +2610,7 @@ export interface ChatTypingIndicatorStartedV2025WebhookEvent {
|
|
|
2610
2610
|
/**
|
|
2611
2611
|
* Payload for chat.typing_indicator.started webhook events
|
|
2612
2612
|
*/
|
|
2613
|
-
data:
|
|
2613
|
+
data: ChatTypingIndicatorStartedV2025_01_01WebhookEvent.Data;
|
|
2614
2614
|
/**
|
|
2615
2615
|
* Unique identifier for this event (for deduplication)
|
|
2616
2616
|
*/
|
|
@@ -2638,7 +2638,7 @@ export interface ChatTypingIndicatorStartedV2025WebhookEvent {
|
|
|
2638
2638
|
*/
|
|
2639
2639
|
webhook_version: string;
|
|
2640
2640
|
}
|
|
2641
|
-
export declare namespace
|
|
2641
|
+
export declare namespace ChatTypingIndicatorStartedV2025_01_01WebhookEvent {
|
|
2642
2642
|
/**
|
|
2643
2643
|
* Payload for chat.typing_indicator.started webhook events
|
|
2644
2644
|
*/
|
|
@@ -2652,7 +2652,7 @@ export declare namespace ChatTypingIndicatorStartedV2025WebhookEvent {
|
|
|
2652
2652
|
/**
|
|
2653
2653
|
* Complete webhook payload for chat.typing_indicator.stopped events
|
|
2654
2654
|
*/
|
|
2655
|
-
export interface
|
|
2655
|
+
export interface ChatTypingIndicatorStoppedV2025_01_01WebhookEvent {
|
|
2656
2656
|
/**
|
|
2657
2657
|
* API version for the webhook payload format
|
|
2658
2658
|
*/
|
|
@@ -2664,7 +2664,7 @@ export interface ChatTypingIndicatorStoppedV2025WebhookEvent {
|
|
|
2664
2664
|
/**
|
|
2665
2665
|
* Payload for chat.typing_indicator.stopped webhook events
|
|
2666
2666
|
*/
|
|
2667
|
-
data:
|
|
2667
|
+
data: ChatTypingIndicatorStoppedV2025_01_01WebhookEvent.Data;
|
|
2668
2668
|
/**
|
|
2669
2669
|
* Unique identifier for this event (for deduplication)
|
|
2670
2670
|
*/
|
|
@@ -2692,7 +2692,7 @@ export interface ChatTypingIndicatorStoppedV2025WebhookEvent {
|
|
|
2692
2692
|
*/
|
|
2693
2693
|
webhook_version: string;
|
|
2694
2694
|
}
|
|
2695
|
-
export declare namespace
|
|
2695
|
+
export declare namespace ChatTypingIndicatorStoppedV2025_01_01WebhookEvent {
|
|
2696
2696
|
/**
|
|
2697
2697
|
* Payload for chat.typing_indicator.stopped webhook events
|
|
2698
2698
|
*/
|
|
@@ -2706,7 +2706,7 @@ export declare namespace ChatTypingIndicatorStoppedV2025WebhookEvent {
|
|
|
2706
2706
|
/**
|
|
2707
2707
|
* Complete webhook payload for phone_number.status_updated events
|
|
2708
2708
|
*/
|
|
2709
|
-
export interface
|
|
2709
|
+
export interface PhoneNumberStatusUpdatedV2025_01_01WebhookEvent {
|
|
2710
2710
|
/**
|
|
2711
2711
|
* API version for the webhook payload format
|
|
2712
2712
|
*/
|
|
@@ -2718,7 +2718,7 @@ export interface PhoneNumberStatusUpdatedV2025WebhookEvent {
|
|
|
2718
2718
|
/**
|
|
2719
2719
|
* Payload for phone_number.status_updated webhook events
|
|
2720
2720
|
*/
|
|
2721
|
-
data:
|
|
2721
|
+
data: PhoneNumberStatusUpdatedV2025_01_01WebhookEvent.Data;
|
|
2722
2722
|
/**
|
|
2723
2723
|
* Unique identifier for this event (for deduplication)
|
|
2724
2724
|
*/
|
|
@@ -2726,7 +2726,7 @@ export interface PhoneNumberStatusUpdatedV2025WebhookEvent {
|
|
|
2726
2726
|
/**
|
|
2727
2727
|
* The type of event
|
|
2728
2728
|
*/
|
|
2729
|
-
event_type: 'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'message.edited' | 'reaction.added' | 'reaction.removed' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated';
|
|
2729
|
+
event_type: 'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'message.edited' | 'reaction.added' | 'reaction.removed' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated' | 'call.initiated' | 'call.ringing' | 'call.answered' | 'call.ended' | 'call.failed' | 'call.declined' | 'call.no_answer';
|
|
2730
2730
|
/**
|
|
2731
2731
|
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
2732
2732
|
*/
|
|
@@ -2742,7 +2742,7 @@ export interface PhoneNumberStatusUpdatedV2025WebhookEvent {
|
|
|
2742
2742
|
*/
|
|
2743
2743
|
webhook_version: string;
|
|
2744
2744
|
}
|
|
2745
|
-
export declare namespace
|
|
2745
|
+
export declare namespace PhoneNumberStatusUpdatedV2025_01_01WebhookEvent {
|
|
2746
2746
|
/**
|
|
2747
2747
|
* Payload for phone_number.status_updated webhook events
|
|
2748
2748
|
*/
|
|
@@ -2768,8 +2768,8 @@ export declare namespace PhoneNumberStatusUpdatedV2025WebhookEvent {
|
|
|
2768
2768
|
/**
|
|
2769
2769
|
* Complete webhook payload for message.sent events (2026-02-03 format)
|
|
2770
2770
|
*/
|
|
2771
|
-
export type EventsWebhookEvent =
|
|
2771
|
+
export type EventsWebhookEvent = MessageSentV2026_02_03WebhookEvent | MessageReceivedV2026_02_03WebhookEvent | MessageReadV2026_02_03WebhookEvent | MessageDeliveredV2026_02_03WebhookEvent | MessageFailedV2026_02_03WebhookEvent | ReactionAddedV2026_02_03WebhookEvent | ReactionRemovedV2026_02_03WebhookEvent | ParticipantAddedV2026_02_03WebhookEvent | ParticipantRemovedV2026_02_03WebhookEvent | ChatGroupNameUpdatedV2026_02_03WebhookEvent | ChatGroupIconUpdatedV2026_02_03WebhookEvent | ChatGroupNameUpdateFailedV2026_02_03WebhookEvent | ChatGroupIconUpdateFailedV2026_02_03WebhookEvent | ChatCreatedV2026_02_03WebhookEvent | ChatTypingIndicatorStartedV2026_02_03WebhookEvent | ChatTypingIndicatorStoppedV2026_02_03WebhookEvent | MessageEditedV2026_02_03WebhookEvent | PhoneNumberStatusUpdatedV2026_02_03WebhookEvent | MessageSentV2025_01_01WebhookEvent | MessageReceivedV2025_01_01WebhookEvent | MessageReadV2025_01_01WebhookEvent | MessageDeliveredV2025_01_01WebhookEvent | MessageFailedV2025_01_01WebhookEvent | ReactionAddedV2025_01_01WebhookEvent | ReactionRemovedV2025_01_01WebhookEvent | ParticipantAddedV2025_01_01WebhookEvent | ParticipantRemovedV2025_01_01WebhookEvent | ChatGroupNameUpdatedV2025_01_01WebhookEvent | ChatGroupIconUpdatedV2025_01_01WebhookEvent | ChatGroupNameUpdateFailedV2025_01_01WebhookEvent | ChatGroupIconUpdateFailedV2025_01_01WebhookEvent | ChatCreatedV2025_01_01WebhookEvent | ChatTypingIndicatorStartedV2025_01_01WebhookEvent | ChatTypingIndicatorStoppedV2025_01_01WebhookEvent | PhoneNumberStatusUpdatedV2025_01_01WebhookEvent;
|
|
2772
2772
|
export declare namespace Webhooks {
|
|
2773
|
-
export { type MessageEventV2 as MessageEventV2, type MessagePayload as MessagePayload, type ReactionEventBase as ReactionEventBase, type SchemasMediaPartResponse as SchemasMediaPartResponse, type SchemasMessageEffect as SchemasMessageEffect, type SchemasTextPartResponse as SchemasTextPartResponse, type
|
|
2773
|
+
export { type MessageEventV2 as MessageEventV2, type MessagePayload as MessagePayload, type ReactionEventBase as ReactionEventBase, type SchemasMediaPartResponse as SchemasMediaPartResponse, type SchemasMessageEffect as SchemasMessageEffect, type SchemasTextPartResponse as SchemasTextPartResponse, type MessageSentV2026_02_03WebhookEvent as MessageSentV2026_02_03WebhookEvent, type MessageReceivedV2026_02_03WebhookEvent as MessageReceivedV2026_02_03WebhookEvent, type MessageReadV2026_02_03WebhookEvent as MessageReadV2026_02_03WebhookEvent, type MessageDeliveredV2026_02_03WebhookEvent as MessageDeliveredV2026_02_03WebhookEvent, type MessageFailedV2026_02_03WebhookEvent as MessageFailedV2026_02_03WebhookEvent, type ReactionAddedV2026_02_03WebhookEvent as ReactionAddedV2026_02_03WebhookEvent, type ReactionRemovedV2026_02_03WebhookEvent as ReactionRemovedV2026_02_03WebhookEvent, type ParticipantAddedV2026_02_03WebhookEvent as ParticipantAddedV2026_02_03WebhookEvent, type ParticipantRemovedV2026_02_03WebhookEvent as ParticipantRemovedV2026_02_03WebhookEvent, type ChatGroupNameUpdatedV2026_02_03WebhookEvent as ChatGroupNameUpdatedV2026_02_03WebhookEvent, type ChatGroupIconUpdatedV2026_02_03WebhookEvent as ChatGroupIconUpdatedV2026_02_03WebhookEvent, type ChatGroupNameUpdateFailedV2026_02_03WebhookEvent as ChatGroupNameUpdateFailedV2026_02_03WebhookEvent, type ChatGroupIconUpdateFailedV2026_02_03WebhookEvent as ChatGroupIconUpdateFailedV2026_02_03WebhookEvent, type ChatCreatedV2026_02_03WebhookEvent as ChatCreatedV2026_02_03WebhookEvent, type ChatTypingIndicatorStartedV2026_02_03WebhookEvent as ChatTypingIndicatorStartedV2026_02_03WebhookEvent, type ChatTypingIndicatorStoppedV2026_02_03WebhookEvent as ChatTypingIndicatorStoppedV2026_02_03WebhookEvent, type MessageEditedV2026_02_03WebhookEvent as MessageEditedV2026_02_03WebhookEvent, type PhoneNumberStatusUpdatedV2026_02_03WebhookEvent as PhoneNumberStatusUpdatedV2026_02_03WebhookEvent, type MessageSentV2025_01_01WebhookEvent as MessageSentV2025_01_01WebhookEvent, type MessageReceivedV2025_01_01WebhookEvent as MessageReceivedV2025_01_01WebhookEvent, type MessageReadV2025_01_01WebhookEvent as MessageReadV2025_01_01WebhookEvent, type MessageDeliveredV2025_01_01WebhookEvent as MessageDeliveredV2025_01_01WebhookEvent, type MessageFailedV2025_01_01WebhookEvent as MessageFailedV2025_01_01WebhookEvent, type ReactionAddedV2025_01_01WebhookEvent as ReactionAddedV2025_01_01WebhookEvent, type ReactionRemovedV2025_01_01WebhookEvent as ReactionRemovedV2025_01_01WebhookEvent, type ParticipantAddedV2025_01_01WebhookEvent as ParticipantAddedV2025_01_01WebhookEvent, type ParticipantRemovedV2025_01_01WebhookEvent as ParticipantRemovedV2025_01_01WebhookEvent, type ChatGroupNameUpdatedV2025_01_01WebhookEvent as ChatGroupNameUpdatedV2025_01_01WebhookEvent, type ChatGroupIconUpdatedV2025_01_01WebhookEvent as ChatGroupIconUpdatedV2025_01_01WebhookEvent, type ChatGroupNameUpdateFailedV2025_01_01WebhookEvent as ChatGroupNameUpdateFailedV2025_01_01WebhookEvent, type ChatGroupIconUpdateFailedV2025_01_01WebhookEvent as ChatGroupIconUpdateFailedV2025_01_01WebhookEvent, type ChatCreatedV2025_01_01WebhookEvent as ChatCreatedV2025_01_01WebhookEvent, type ChatTypingIndicatorStartedV2025_01_01WebhookEvent as ChatTypingIndicatorStartedV2025_01_01WebhookEvent, type ChatTypingIndicatorStoppedV2025_01_01WebhookEvent as ChatTypingIndicatorStoppedV2025_01_01WebhookEvent, type PhoneNumberStatusUpdatedV2025_01_01WebhookEvent as PhoneNumberStatusUpdatedV2025_01_01WebhookEvent, type EventsWebhookEvent as EventsWebhookEvent, };
|
|
2774
2774
|
}
|
|
2775
2775
|
//# sourceMappingURL=webhooks.d.mts.map
|