@linqapp/sdk 0.14.0 → 0.15.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 +20 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/chats/chats.d.mts +10 -1
- package/resources/chats/chats.d.mts.map +1 -1
- package/resources/chats/chats.d.ts +10 -1
- 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/typing.d.mts +4 -2
- package/resources/chats/typing.d.mts.map +1 -1
- package/resources/chats/typing.d.ts +4 -2
- package/resources/chats/typing.d.ts.map +1 -1
- package/resources/chats/typing.js +4 -2
- package/resources/chats/typing.js.map +1 -1
- package/resources/chats/typing.mjs +4 -2
- package/resources/chats/typing.mjs.map +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/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/webhooks.d.mts +160 -1411
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +160 -1411
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +36 -70
- package/src/resources/chats/chats.ts +11 -1
- package/src/resources/chats/typing.ts +4 -2
- package/src/resources/index.ts +18 -35
- package/src/resources/webhooks.ts +204 -1744
- 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
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import * as WebhooksAPI from "./webhooks.mjs";
|
|
3
2
|
import * as Shared from "./shared.mjs";
|
|
4
3
|
import * as WebhookEventsAPI from "./webhook-events.mjs";
|
|
5
4
|
export declare class Webhooks extends APIResource {
|
|
@@ -344,7 +343,7 @@ export interface SchemasTextPartResponse {
|
|
|
344
343
|
/**
|
|
345
344
|
* Complete webhook payload for message.sent events (2026-02-03 format)
|
|
346
345
|
*/
|
|
347
|
-
export interface
|
|
346
|
+
export interface MessageSentWebhookEvent {
|
|
348
347
|
/**
|
|
349
348
|
* API version for the webhook payload format
|
|
350
349
|
*/
|
|
@@ -405,7 +404,7 @@ export interface MessageSentV2026_02_03WebhookEvent {
|
|
|
405
404
|
/**
|
|
406
405
|
* Complete webhook payload for message.received events (2026-02-03 format)
|
|
407
406
|
*/
|
|
408
|
-
export interface
|
|
407
|
+
export interface MessageReceivedWebhookEvent {
|
|
409
408
|
/**
|
|
410
409
|
* API version for the webhook payload format
|
|
411
410
|
*/
|
|
@@ -466,7 +465,7 @@ export interface MessageReceivedV2026_02_03WebhookEvent {
|
|
|
466
465
|
/**
|
|
467
466
|
* Complete webhook payload for message.read events (2026-02-03 format)
|
|
468
467
|
*/
|
|
469
|
-
export interface
|
|
468
|
+
export interface MessageReadWebhookEvent {
|
|
470
469
|
/**
|
|
471
470
|
* API version for the webhook payload format
|
|
472
471
|
*/
|
|
@@ -527,7 +526,7 @@ export interface MessageReadV2026_02_03WebhookEvent {
|
|
|
527
526
|
/**
|
|
528
527
|
* Complete webhook payload for message.delivered events (2026-02-03 format)
|
|
529
528
|
*/
|
|
530
|
-
export interface
|
|
529
|
+
export interface MessageDeliveredWebhookEvent {
|
|
531
530
|
/**
|
|
532
531
|
* API version for the webhook payload format
|
|
533
532
|
*/
|
|
@@ -588,7 +587,7 @@ export interface MessageDeliveredV2026_02_03WebhookEvent {
|
|
|
588
587
|
/**
|
|
589
588
|
* Complete webhook payload for message.failed events
|
|
590
589
|
*/
|
|
591
|
-
export interface
|
|
590
|
+
export interface MessageFailedWebhookEvent {
|
|
592
591
|
/**
|
|
593
592
|
* API version for the webhook payload format
|
|
594
593
|
*/
|
|
@@ -602,7 +601,7 @@ export interface MessageFailedV2026_02_03WebhookEvent {
|
|
|
602
601
|
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
603
602
|
* code reference.
|
|
604
603
|
*/
|
|
605
|
-
data:
|
|
604
|
+
data: MessageFailedWebhookEvent.Data;
|
|
606
605
|
/**
|
|
607
606
|
* Unique identifier for this event (for deduplication)
|
|
608
607
|
*/
|
|
@@ -630,7 +629,7 @@ export interface MessageFailedV2026_02_03WebhookEvent {
|
|
|
630
629
|
*/
|
|
631
630
|
webhook_version: string;
|
|
632
631
|
}
|
|
633
|
-
export declare namespace
|
|
632
|
+
export declare namespace MessageFailedWebhookEvent {
|
|
634
633
|
/**
|
|
635
634
|
* Error details for message.failed webhook events. See
|
|
636
635
|
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
@@ -660,1297 +659,9 @@ export declare namespace MessageFailedV2026_02_03WebhookEvent {
|
|
|
660
659
|
}
|
|
661
660
|
}
|
|
662
661
|
/**
|
|
663
|
-
* Complete webhook payload for
|
|
664
|
-
*/
|
|
665
|
-
export interface ReactionAddedV2026_02_03WebhookEvent {
|
|
666
|
-
/**
|
|
667
|
-
* API version for the webhook payload format
|
|
668
|
-
*/
|
|
669
|
-
api_version: string;
|
|
670
|
-
/**
|
|
671
|
-
* When the event was created
|
|
672
|
-
*/
|
|
673
|
-
created_at: string;
|
|
674
|
-
/**
|
|
675
|
-
* Payload for reaction.added webhook events
|
|
676
|
-
*/
|
|
677
|
-
data: ReactionEventBase;
|
|
678
|
-
/**
|
|
679
|
-
* Unique identifier for this event (for deduplication)
|
|
680
|
-
*/
|
|
681
|
-
event_id: string;
|
|
682
|
-
/**
|
|
683
|
-
* Valid webhook event types that can be subscribed to.
|
|
684
|
-
*
|
|
685
|
-
* **Note:** `message.edited` is only delivered to subscriptions using
|
|
686
|
-
* `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
|
|
687
|
-
* subscription will not produce any deliveries.
|
|
688
|
-
*/
|
|
689
|
-
event_type: WebhookEventsAPI.WebhookEventType;
|
|
690
|
-
/**
|
|
691
|
-
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
692
|
-
*/
|
|
693
|
-
partner_id: string;
|
|
694
|
-
/**
|
|
695
|
-
* Trace ID for debugging and correlation across systems.
|
|
696
|
-
*/
|
|
697
|
-
trace_id: string;
|
|
698
|
-
/**
|
|
699
|
-
* Date-based webhook payload version. Determined by the `?version=` query
|
|
700
|
-
* parameter in your webhook subscription URL. If no version parameter is
|
|
701
|
-
* specified, defaults based on subscription creation date.
|
|
702
|
-
*/
|
|
703
|
-
webhook_version: string;
|
|
704
|
-
}
|
|
705
|
-
/**
|
|
706
|
-
* Complete webhook payload for reaction.removed events
|
|
707
|
-
*/
|
|
708
|
-
export interface ReactionRemovedV2026_02_03WebhookEvent {
|
|
709
|
-
/**
|
|
710
|
-
* API version for the webhook payload format
|
|
711
|
-
*/
|
|
712
|
-
api_version: string;
|
|
713
|
-
/**
|
|
714
|
-
* When the event was created
|
|
715
|
-
*/
|
|
716
|
-
created_at: string;
|
|
717
|
-
/**
|
|
718
|
-
* Payload for reaction.removed webhook events
|
|
719
|
-
*/
|
|
720
|
-
data: ReactionEventBase;
|
|
721
|
-
/**
|
|
722
|
-
* Unique identifier for this event (for deduplication)
|
|
723
|
-
*/
|
|
724
|
-
event_id: string;
|
|
725
|
-
/**
|
|
726
|
-
* Valid webhook event types that can be subscribed to.
|
|
727
|
-
*
|
|
728
|
-
* **Note:** `message.edited` is only delivered to subscriptions using
|
|
729
|
-
* `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
|
|
730
|
-
* subscription will not produce any deliveries.
|
|
731
|
-
*/
|
|
732
|
-
event_type: WebhookEventsAPI.WebhookEventType;
|
|
733
|
-
/**
|
|
734
|
-
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
735
|
-
*/
|
|
736
|
-
partner_id: string;
|
|
737
|
-
/**
|
|
738
|
-
* Trace ID for debugging and correlation across systems.
|
|
739
|
-
*/
|
|
740
|
-
trace_id: string;
|
|
741
|
-
/**
|
|
742
|
-
* Date-based webhook payload version. Determined by the `?version=` query
|
|
743
|
-
* parameter in your webhook subscription URL. If no version parameter is
|
|
744
|
-
* specified, defaults based on subscription creation date.
|
|
745
|
-
*/
|
|
746
|
-
webhook_version: string;
|
|
747
|
-
}
|
|
748
|
-
/**
|
|
749
|
-
* Complete webhook payload for participant.added events
|
|
750
|
-
*/
|
|
751
|
-
export interface ParticipantAddedV2026_02_03WebhookEvent {
|
|
752
|
-
/**
|
|
753
|
-
* API version for the webhook payload format
|
|
754
|
-
*/
|
|
755
|
-
api_version: string;
|
|
756
|
-
/**
|
|
757
|
-
* When the event was created
|
|
758
|
-
*/
|
|
759
|
-
created_at: string;
|
|
760
|
-
/**
|
|
761
|
-
* Payload for participant.added webhook events
|
|
762
|
-
*/
|
|
763
|
-
data: ParticipantAddedV2026_02_03WebhookEvent.Data;
|
|
764
|
-
/**
|
|
765
|
-
* Unique identifier for this event (for deduplication)
|
|
766
|
-
*/
|
|
767
|
-
event_id: string;
|
|
768
|
-
/**
|
|
769
|
-
* Valid webhook event types that can be subscribed to.
|
|
770
|
-
*
|
|
771
|
-
* **Note:** `message.edited` is only delivered to subscriptions using
|
|
772
|
-
* `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
|
|
773
|
-
* subscription will not produce any deliveries.
|
|
774
|
-
*/
|
|
775
|
-
event_type: WebhookEventsAPI.WebhookEventType;
|
|
776
|
-
/**
|
|
777
|
-
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
778
|
-
*/
|
|
779
|
-
partner_id: string;
|
|
780
|
-
/**
|
|
781
|
-
* Trace ID for debugging and correlation across systems.
|
|
782
|
-
*/
|
|
783
|
-
trace_id: string;
|
|
784
|
-
/**
|
|
785
|
-
* Date-based webhook payload version. Determined by the `?version=` query
|
|
786
|
-
* parameter in your webhook subscription URL. If no version parameter is
|
|
787
|
-
* specified, defaults based on subscription creation date.
|
|
788
|
-
*/
|
|
789
|
-
webhook_version: string;
|
|
790
|
-
}
|
|
791
|
-
export declare namespace ParticipantAddedV2026_02_03WebhookEvent {
|
|
792
|
-
/**
|
|
793
|
-
* Payload for participant.added webhook events
|
|
794
|
-
*/
|
|
795
|
-
interface Data {
|
|
796
|
-
/**
|
|
797
|
-
* @deprecated DEPRECATED: Use participant instead. Handle (phone number or email
|
|
798
|
-
* address) of the added participant.
|
|
799
|
-
*/
|
|
800
|
-
handle: string;
|
|
801
|
-
/**
|
|
802
|
-
* When the participant was added
|
|
803
|
-
*/
|
|
804
|
-
added_at?: string;
|
|
805
|
-
/**
|
|
806
|
-
* Chat identifier (UUID) of the group chat
|
|
807
|
-
*/
|
|
808
|
-
chat_id?: string;
|
|
809
|
-
/**
|
|
810
|
-
* The added participant as a full handle object
|
|
811
|
-
*/
|
|
812
|
-
participant?: Shared.ChatHandle;
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
/**
|
|
816
|
-
* Complete webhook payload for participant.removed events
|
|
817
|
-
*/
|
|
818
|
-
export interface ParticipantRemovedV2026_02_03WebhookEvent {
|
|
819
|
-
/**
|
|
820
|
-
* API version for the webhook payload format
|
|
821
|
-
*/
|
|
822
|
-
api_version: string;
|
|
823
|
-
/**
|
|
824
|
-
* When the event was created
|
|
825
|
-
*/
|
|
826
|
-
created_at: string;
|
|
827
|
-
/**
|
|
828
|
-
* Payload for participant.removed webhook events
|
|
829
|
-
*/
|
|
830
|
-
data: ParticipantRemovedV2026_02_03WebhookEvent.Data;
|
|
831
|
-
/**
|
|
832
|
-
* Unique identifier for this event (for deduplication)
|
|
833
|
-
*/
|
|
834
|
-
event_id: string;
|
|
835
|
-
/**
|
|
836
|
-
* Valid webhook event types that can be subscribed to.
|
|
837
|
-
*
|
|
838
|
-
* **Note:** `message.edited` is only delivered to subscriptions using
|
|
839
|
-
* `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
|
|
840
|
-
* subscription will not produce any deliveries.
|
|
841
|
-
*/
|
|
842
|
-
event_type: WebhookEventsAPI.WebhookEventType;
|
|
843
|
-
/**
|
|
844
|
-
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
845
|
-
*/
|
|
846
|
-
partner_id: string;
|
|
847
|
-
/**
|
|
848
|
-
* Trace ID for debugging and correlation across systems.
|
|
849
|
-
*/
|
|
850
|
-
trace_id: string;
|
|
851
|
-
/**
|
|
852
|
-
* Date-based webhook payload version. Determined by the `?version=` query
|
|
853
|
-
* parameter in your webhook subscription URL. If no version parameter is
|
|
854
|
-
* specified, defaults based on subscription creation date.
|
|
855
|
-
*/
|
|
856
|
-
webhook_version: string;
|
|
857
|
-
}
|
|
858
|
-
export declare namespace ParticipantRemovedV2026_02_03WebhookEvent {
|
|
859
|
-
/**
|
|
860
|
-
* Payload for participant.removed webhook events
|
|
861
|
-
*/
|
|
862
|
-
interface Data {
|
|
863
|
-
/**
|
|
864
|
-
* @deprecated DEPRECATED: Use participant instead. Handle (phone number or email
|
|
865
|
-
* address) of the removed participant.
|
|
866
|
-
*/
|
|
867
|
-
handle: string;
|
|
868
|
-
/**
|
|
869
|
-
* Chat identifier (UUID) of the group chat
|
|
870
|
-
*/
|
|
871
|
-
chat_id?: string;
|
|
872
|
-
/**
|
|
873
|
-
* The removed participant as a full handle object
|
|
874
|
-
*/
|
|
875
|
-
participant?: Shared.ChatHandle;
|
|
876
|
-
/**
|
|
877
|
-
* When the participant was removed
|
|
878
|
-
*/
|
|
879
|
-
removed_at?: string;
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
/**
|
|
883
|
-
* Complete webhook payload for chat.group_name_updated events
|
|
884
|
-
*/
|
|
885
|
-
export interface ChatGroupNameUpdatedV2026_02_03WebhookEvent {
|
|
886
|
-
/**
|
|
887
|
-
* API version for the webhook payload format
|
|
888
|
-
*/
|
|
889
|
-
api_version: string;
|
|
890
|
-
/**
|
|
891
|
-
* When the event was created
|
|
892
|
-
*/
|
|
893
|
-
created_at: string;
|
|
894
|
-
/**
|
|
895
|
-
* Payload for chat.group_name_updated webhook events
|
|
896
|
-
*/
|
|
897
|
-
data: ChatGroupNameUpdatedV2026_02_03WebhookEvent.Data;
|
|
898
|
-
/**
|
|
899
|
-
* Unique identifier for this event (for deduplication)
|
|
900
|
-
*/
|
|
901
|
-
event_id: string;
|
|
902
|
-
/**
|
|
903
|
-
* Valid webhook event types that can be subscribed to.
|
|
904
|
-
*
|
|
905
|
-
* **Note:** `message.edited` is only delivered to subscriptions using
|
|
906
|
-
* `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
|
|
907
|
-
* subscription will not produce any deliveries.
|
|
908
|
-
*/
|
|
909
|
-
event_type: WebhookEventsAPI.WebhookEventType;
|
|
910
|
-
/**
|
|
911
|
-
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
912
|
-
*/
|
|
913
|
-
partner_id: string;
|
|
914
|
-
/**
|
|
915
|
-
* Trace ID for debugging and correlation across systems.
|
|
916
|
-
*/
|
|
917
|
-
trace_id: string;
|
|
918
|
-
/**
|
|
919
|
-
* Date-based webhook payload version. Determined by the `?version=` query
|
|
920
|
-
* parameter in your webhook subscription URL. If no version parameter is
|
|
921
|
-
* specified, defaults based on subscription creation date.
|
|
922
|
-
*/
|
|
923
|
-
webhook_version: string;
|
|
924
|
-
}
|
|
925
|
-
export declare namespace ChatGroupNameUpdatedV2026_02_03WebhookEvent {
|
|
926
|
-
/**
|
|
927
|
-
* Payload for chat.group_name_updated webhook events
|
|
928
|
-
*/
|
|
929
|
-
interface Data {
|
|
930
|
-
/**
|
|
931
|
-
* Chat identifier (UUID) of the group chat
|
|
932
|
-
*/
|
|
933
|
-
chat_id: string;
|
|
934
|
-
/**
|
|
935
|
-
* When the update occurred
|
|
936
|
-
*/
|
|
937
|
-
updated_at: string;
|
|
938
|
-
/**
|
|
939
|
-
* The handle who made the change.
|
|
940
|
-
*/
|
|
941
|
-
changed_by_handle?: Shared.ChatHandle | null;
|
|
942
|
-
/**
|
|
943
|
-
* New group name (null if the name was removed)
|
|
944
|
-
*/
|
|
945
|
-
new_value?: string | null;
|
|
946
|
-
/**
|
|
947
|
-
* Previous group name (null if no previous name)
|
|
948
|
-
*/
|
|
949
|
-
old_value?: string | null;
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
/**
|
|
953
|
-
* Complete webhook payload for chat.group_icon_updated events
|
|
954
|
-
*/
|
|
955
|
-
export interface ChatGroupIconUpdatedV2026_02_03WebhookEvent {
|
|
956
|
-
/**
|
|
957
|
-
* API version for the webhook payload format
|
|
958
|
-
*/
|
|
959
|
-
api_version: string;
|
|
960
|
-
/**
|
|
961
|
-
* When the event was created
|
|
962
|
-
*/
|
|
963
|
-
created_at: string;
|
|
964
|
-
/**
|
|
965
|
-
* Payload for chat.group_icon_updated webhook events
|
|
966
|
-
*/
|
|
967
|
-
data: ChatGroupIconUpdatedV2026_02_03WebhookEvent.Data;
|
|
968
|
-
/**
|
|
969
|
-
* Unique identifier for this event (for deduplication)
|
|
970
|
-
*/
|
|
971
|
-
event_id: string;
|
|
972
|
-
/**
|
|
973
|
-
* Valid webhook event types that can be subscribed to.
|
|
974
|
-
*
|
|
975
|
-
* **Note:** `message.edited` is only delivered to subscriptions using
|
|
976
|
-
* `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
|
|
977
|
-
* subscription will not produce any deliveries.
|
|
978
|
-
*/
|
|
979
|
-
event_type: WebhookEventsAPI.WebhookEventType;
|
|
980
|
-
/**
|
|
981
|
-
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
982
|
-
*/
|
|
983
|
-
partner_id: string;
|
|
984
|
-
/**
|
|
985
|
-
* Trace ID for debugging and correlation across systems.
|
|
986
|
-
*/
|
|
987
|
-
trace_id: string;
|
|
988
|
-
/**
|
|
989
|
-
* Date-based webhook payload version. Determined by the `?version=` query
|
|
990
|
-
* parameter in your webhook subscription URL. If no version parameter is
|
|
991
|
-
* specified, defaults based on subscription creation date.
|
|
992
|
-
*/
|
|
993
|
-
webhook_version: string;
|
|
994
|
-
}
|
|
995
|
-
export declare namespace ChatGroupIconUpdatedV2026_02_03WebhookEvent {
|
|
996
|
-
/**
|
|
997
|
-
* Payload for chat.group_icon_updated webhook events
|
|
998
|
-
*/
|
|
999
|
-
interface Data {
|
|
1000
|
-
/**
|
|
1001
|
-
* Chat identifier (UUID) of the group chat
|
|
1002
|
-
*/
|
|
1003
|
-
chat_id: string;
|
|
1004
|
-
/**
|
|
1005
|
-
* When the update occurred
|
|
1006
|
-
*/
|
|
1007
|
-
updated_at: string;
|
|
1008
|
-
/**
|
|
1009
|
-
* The handle who made the change.
|
|
1010
|
-
*/
|
|
1011
|
-
changed_by_handle?: Shared.ChatHandle | null;
|
|
1012
|
-
/**
|
|
1013
|
-
* New icon URL (null if the icon was removed)
|
|
1014
|
-
*/
|
|
1015
|
-
new_value?: string | null;
|
|
1016
|
-
/**
|
|
1017
|
-
* Previous icon URL (null if no previous icon)
|
|
1018
|
-
*/
|
|
1019
|
-
old_value?: string | null;
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
/**
|
|
1023
|
-
* Complete webhook payload for chat.group_name_update_failed events
|
|
1024
|
-
*/
|
|
1025
|
-
export interface ChatGroupNameUpdateFailedV2026_02_03WebhookEvent {
|
|
1026
|
-
/**
|
|
1027
|
-
* API version for the webhook payload format
|
|
1028
|
-
*/
|
|
1029
|
-
api_version: string;
|
|
1030
|
-
/**
|
|
1031
|
-
* When the event was created
|
|
1032
|
-
*/
|
|
1033
|
-
created_at: string;
|
|
1034
|
-
/**
|
|
1035
|
-
* Error details for chat.group_name_update_failed webhook events. See
|
|
1036
|
-
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
1037
|
-
* code reference.
|
|
1038
|
-
*/
|
|
1039
|
-
data: ChatGroupNameUpdateFailedV2026_02_03WebhookEvent.Data;
|
|
1040
|
-
/**
|
|
1041
|
-
* Unique identifier for this event (for deduplication)
|
|
1042
|
-
*/
|
|
1043
|
-
event_id: string;
|
|
1044
|
-
/**
|
|
1045
|
-
* Valid webhook event types that can be subscribed to.
|
|
1046
|
-
*
|
|
1047
|
-
* **Note:** `message.edited` is only delivered to subscriptions using
|
|
1048
|
-
* `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
|
|
1049
|
-
* subscription will not produce any deliveries.
|
|
1050
|
-
*/
|
|
1051
|
-
event_type: WebhookEventsAPI.WebhookEventType;
|
|
1052
|
-
/**
|
|
1053
|
-
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
1054
|
-
*/
|
|
1055
|
-
partner_id: string;
|
|
1056
|
-
/**
|
|
1057
|
-
* Trace ID for debugging and correlation across systems.
|
|
1058
|
-
*/
|
|
1059
|
-
trace_id: string;
|
|
1060
|
-
/**
|
|
1061
|
-
* Date-based webhook payload version. Determined by the `?version=` query
|
|
1062
|
-
* parameter in your webhook subscription URL. If no version parameter is
|
|
1063
|
-
* specified, defaults based on subscription creation date.
|
|
1064
|
-
*/
|
|
1065
|
-
webhook_version: string;
|
|
1066
|
-
}
|
|
1067
|
-
export declare namespace ChatGroupNameUpdateFailedV2026_02_03WebhookEvent {
|
|
1068
|
-
/**
|
|
1069
|
-
* Error details for chat.group_name_update_failed webhook events. See
|
|
1070
|
-
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
1071
|
-
* code reference.
|
|
1072
|
-
*/
|
|
1073
|
-
interface Data {
|
|
1074
|
-
/**
|
|
1075
|
-
* Chat identifier (UUID) of the group chat
|
|
1076
|
-
*/
|
|
1077
|
-
chat_id: string;
|
|
1078
|
-
/**
|
|
1079
|
-
* Error codes in webhook failure events (3007, 4001).
|
|
1080
|
-
*/
|
|
1081
|
-
error_code: number;
|
|
1082
|
-
/**
|
|
1083
|
-
* When the failure was detected
|
|
1084
|
-
*/
|
|
1085
|
-
failed_at: string;
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
/**
|
|
1089
|
-
* Complete webhook payload for chat.group_icon_update_failed events
|
|
1090
|
-
*/
|
|
1091
|
-
export interface ChatGroupIconUpdateFailedV2026_02_03WebhookEvent {
|
|
1092
|
-
/**
|
|
1093
|
-
* API version for the webhook payload format
|
|
1094
|
-
*/
|
|
1095
|
-
api_version: string;
|
|
1096
|
-
/**
|
|
1097
|
-
* When the event was created
|
|
1098
|
-
*/
|
|
1099
|
-
created_at: string;
|
|
1100
|
-
/**
|
|
1101
|
-
* Error details for chat.group_icon_update_failed webhook events. See
|
|
1102
|
-
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
1103
|
-
* code reference.
|
|
1104
|
-
*/
|
|
1105
|
-
data: ChatGroupIconUpdateFailedV2026_02_03WebhookEvent.Data;
|
|
1106
|
-
/**
|
|
1107
|
-
* Unique identifier for this event (for deduplication)
|
|
1108
|
-
*/
|
|
1109
|
-
event_id: string;
|
|
1110
|
-
/**
|
|
1111
|
-
* Valid webhook event types that can be subscribed to.
|
|
1112
|
-
*
|
|
1113
|
-
* **Note:** `message.edited` is only delivered to subscriptions using
|
|
1114
|
-
* `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
|
|
1115
|
-
* subscription will not produce any deliveries.
|
|
1116
|
-
*/
|
|
1117
|
-
event_type: WebhookEventsAPI.WebhookEventType;
|
|
1118
|
-
/**
|
|
1119
|
-
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
1120
|
-
*/
|
|
1121
|
-
partner_id: string;
|
|
1122
|
-
/**
|
|
1123
|
-
* Trace ID for debugging and correlation across systems.
|
|
1124
|
-
*/
|
|
1125
|
-
trace_id: string;
|
|
1126
|
-
/**
|
|
1127
|
-
* Date-based webhook payload version. Determined by the `?version=` query
|
|
1128
|
-
* parameter in your webhook subscription URL. If no version parameter is
|
|
1129
|
-
* specified, defaults based on subscription creation date.
|
|
1130
|
-
*/
|
|
1131
|
-
webhook_version: string;
|
|
1132
|
-
}
|
|
1133
|
-
export declare namespace ChatGroupIconUpdateFailedV2026_02_03WebhookEvent {
|
|
1134
|
-
/**
|
|
1135
|
-
* Error details for chat.group_icon_update_failed webhook events. See
|
|
1136
|
-
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
1137
|
-
* code reference.
|
|
1138
|
-
*/
|
|
1139
|
-
interface Data {
|
|
1140
|
-
/**
|
|
1141
|
-
* Chat identifier (UUID) of the group chat
|
|
1142
|
-
*/
|
|
1143
|
-
chat_id: string;
|
|
1144
|
-
/**
|
|
1145
|
-
* Error codes in webhook failure events (3007, 4001).
|
|
1146
|
-
*/
|
|
1147
|
-
error_code: number;
|
|
1148
|
-
/**
|
|
1149
|
-
* When the failure was detected
|
|
1150
|
-
*/
|
|
1151
|
-
failed_at: string;
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
/**
|
|
1155
|
-
* Complete webhook payload for chat.created events
|
|
1156
|
-
*/
|
|
1157
|
-
export interface ChatCreatedV2026_02_03WebhookEvent {
|
|
1158
|
-
/**
|
|
1159
|
-
* API version for the webhook payload format
|
|
1160
|
-
*/
|
|
1161
|
-
api_version: string;
|
|
1162
|
-
/**
|
|
1163
|
-
* When the event was created
|
|
1164
|
-
*/
|
|
1165
|
-
created_at: string;
|
|
1166
|
-
/**
|
|
1167
|
-
* Payload for chat.created webhook events. Matches GET /v3/chats/{chatId}
|
|
1168
|
-
* response.
|
|
1169
|
-
*/
|
|
1170
|
-
data: ChatCreatedV2026_02_03WebhookEvent.Data;
|
|
1171
|
-
/**
|
|
1172
|
-
* Unique identifier for this event (for deduplication)
|
|
1173
|
-
*/
|
|
1174
|
-
event_id: string;
|
|
1175
|
-
/**
|
|
1176
|
-
* Valid webhook event types that can be subscribed to.
|
|
1177
|
-
*
|
|
1178
|
-
* **Note:** `message.edited` is only delivered to subscriptions using
|
|
1179
|
-
* `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
|
|
1180
|
-
* subscription will not produce any deliveries.
|
|
1181
|
-
*/
|
|
1182
|
-
event_type: WebhookEventsAPI.WebhookEventType;
|
|
1183
|
-
/**
|
|
1184
|
-
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
1185
|
-
*/
|
|
1186
|
-
partner_id: string;
|
|
1187
|
-
/**
|
|
1188
|
-
* Trace ID for debugging and correlation across systems.
|
|
1189
|
-
*/
|
|
1190
|
-
trace_id: string;
|
|
1191
|
-
/**
|
|
1192
|
-
* Date-based webhook payload version. Determined by the `?version=` query
|
|
1193
|
-
* parameter in your webhook subscription URL. If no version parameter is
|
|
1194
|
-
* specified, defaults based on subscription creation date.
|
|
1195
|
-
*/
|
|
1196
|
-
webhook_version: string;
|
|
1197
|
-
}
|
|
1198
|
-
export declare namespace ChatCreatedV2026_02_03WebhookEvent {
|
|
1199
|
-
/**
|
|
1200
|
-
* Payload for chat.created webhook events. Matches GET /v3/chats/{chatId}
|
|
1201
|
-
* response.
|
|
1202
|
-
*/
|
|
1203
|
-
interface Data {
|
|
1204
|
-
/**
|
|
1205
|
-
* Unique identifier for the chat
|
|
1206
|
-
*/
|
|
1207
|
-
id: string;
|
|
1208
|
-
/**
|
|
1209
|
-
* When the chat was created
|
|
1210
|
-
*/
|
|
1211
|
-
created_at: string;
|
|
1212
|
-
/**
|
|
1213
|
-
* Display name for the chat. Defaults to a comma-separated list of recipient
|
|
1214
|
-
* handles. Can be updated for group chats.
|
|
1215
|
-
*/
|
|
1216
|
-
display_name: string | null;
|
|
1217
|
-
/**
|
|
1218
|
-
* List of chat participants with full handle details. Always contains at least two
|
|
1219
|
-
* handles (your phone number and the other participant).
|
|
1220
|
-
*/
|
|
1221
|
-
handles: Array<Shared.ChatHandle>;
|
|
1222
|
-
/**
|
|
1223
|
-
* Whether this is a group chat
|
|
1224
|
-
*/
|
|
1225
|
-
is_group: boolean;
|
|
1226
|
-
/**
|
|
1227
|
-
* When the chat was last updated
|
|
1228
|
-
*/
|
|
1229
|
-
updated_at: string;
|
|
1230
|
-
/**
|
|
1231
|
-
* Messaging service type
|
|
1232
|
-
*/
|
|
1233
|
-
service?: Shared.ServiceType | null;
|
|
1234
|
-
}
|
|
1235
|
-
}
|
|
1236
|
-
/**
|
|
1237
|
-
* Complete webhook payload for chat.typing_indicator.started events
|
|
1238
|
-
*/
|
|
1239
|
-
export interface ChatTypingIndicatorStartedV2026_02_03WebhookEvent {
|
|
1240
|
-
/**
|
|
1241
|
-
* API version for the webhook payload format
|
|
1242
|
-
*/
|
|
1243
|
-
api_version: string;
|
|
1244
|
-
/**
|
|
1245
|
-
* When the event was created
|
|
1246
|
-
*/
|
|
1247
|
-
created_at: string;
|
|
1248
|
-
/**
|
|
1249
|
-
* Payload for chat.typing_indicator.started webhook events
|
|
1250
|
-
*/
|
|
1251
|
-
data: ChatTypingIndicatorStartedV2026_02_03WebhookEvent.Data;
|
|
1252
|
-
/**
|
|
1253
|
-
* Unique identifier for this event (for deduplication)
|
|
1254
|
-
*/
|
|
1255
|
-
event_id: string;
|
|
1256
|
-
/**
|
|
1257
|
-
* Valid webhook event types that can be subscribed to.
|
|
1258
|
-
*
|
|
1259
|
-
* **Note:** `message.edited` is only delivered to subscriptions using
|
|
1260
|
-
* `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
|
|
1261
|
-
* subscription will not produce any deliveries.
|
|
1262
|
-
*/
|
|
1263
|
-
event_type: WebhookEventsAPI.WebhookEventType;
|
|
1264
|
-
/**
|
|
1265
|
-
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
1266
|
-
*/
|
|
1267
|
-
partner_id: string;
|
|
1268
|
-
/**
|
|
1269
|
-
* Trace ID for debugging and correlation across systems.
|
|
1270
|
-
*/
|
|
1271
|
-
trace_id: string;
|
|
1272
|
-
/**
|
|
1273
|
-
* Date-based webhook payload version. Determined by the `?version=` query
|
|
1274
|
-
* parameter in your webhook subscription URL. If no version parameter is
|
|
1275
|
-
* specified, defaults based on subscription creation date.
|
|
1276
|
-
*/
|
|
1277
|
-
webhook_version: string;
|
|
1278
|
-
}
|
|
1279
|
-
export declare namespace ChatTypingIndicatorStartedV2026_02_03WebhookEvent {
|
|
1280
|
-
/**
|
|
1281
|
-
* Payload for chat.typing_indicator.started webhook events
|
|
1282
|
-
*/
|
|
1283
|
-
interface Data {
|
|
1284
|
-
/**
|
|
1285
|
-
* Chat identifier
|
|
1286
|
-
*/
|
|
1287
|
-
chat_id: string;
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
/**
|
|
1291
|
-
* Complete webhook payload for chat.typing_indicator.stopped events
|
|
1292
|
-
*/
|
|
1293
|
-
export interface ChatTypingIndicatorStoppedV2026_02_03WebhookEvent {
|
|
1294
|
-
/**
|
|
1295
|
-
* API version for the webhook payload format
|
|
1296
|
-
*/
|
|
1297
|
-
api_version: string;
|
|
1298
|
-
/**
|
|
1299
|
-
* When the event was created
|
|
1300
|
-
*/
|
|
1301
|
-
created_at: string;
|
|
1302
|
-
/**
|
|
1303
|
-
* Payload for chat.typing_indicator.stopped webhook events
|
|
1304
|
-
*/
|
|
1305
|
-
data: ChatTypingIndicatorStoppedV2026_02_03WebhookEvent.Data;
|
|
1306
|
-
/**
|
|
1307
|
-
* Unique identifier for this event (for deduplication)
|
|
1308
|
-
*/
|
|
1309
|
-
event_id: string;
|
|
1310
|
-
/**
|
|
1311
|
-
* Valid webhook event types that can be subscribed to.
|
|
1312
|
-
*
|
|
1313
|
-
* **Note:** `message.edited` is only delivered to subscriptions using
|
|
1314
|
-
* `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
|
|
1315
|
-
* subscription will not produce any deliveries.
|
|
1316
|
-
*/
|
|
1317
|
-
event_type: WebhookEventsAPI.WebhookEventType;
|
|
1318
|
-
/**
|
|
1319
|
-
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
1320
|
-
*/
|
|
1321
|
-
partner_id: string;
|
|
1322
|
-
/**
|
|
1323
|
-
* Trace ID for debugging and correlation across systems.
|
|
1324
|
-
*/
|
|
1325
|
-
trace_id: string;
|
|
1326
|
-
/**
|
|
1327
|
-
* Date-based webhook payload version. Determined by the `?version=` query
|
|
1328
|
-
* parameter in your webhook subscription URL. If no version parameter is
|
|
1329
|
-
* specified, defaults based on subscription creation date.
|
|
1330
|
-
*/
|
|
1331
|
-
webhook_version: string;
|
|
1332
|
-
}
|
|
1333
|
-
export declare namespace ChatTypingIndicatorStoppedV2026_02_03WebhookEvent {
|
|
1334
|
-
/**
|
|
1335
|
-
* Payload for chat.typing_indicator.stopped webhook events
|
|
1336
|
-
*/
|
|
1337
|
-
interface Data {
|
|
1338
|
-
/**
|
|
1339
|
-
* Chat identifier
|
|
1340
|
-
*/
|
|
1341
|
-
chat_id: string;
|
|
1342
|
-
}
|
|
1343
|
-
}
|
|
1344
|
-
/**
|
|
1345
|
-
* Complete webhook payload for message.edited events (2026-02-03 format only)
|
|
1346
|
-
*/
|
|
1347
|
-
export interface MessageEditedV2026_02_03WebhookEvent {
|
|
1348
|
-
/**
|
|
1349
|
-
* API version for the webhook payload format
|
|
1350
|
-
*/
|
|
1351
|
-
api_version: string;
|
|
1352
|
-
/**
|
|
1353
|
-
* When the event was created
|
|
1354
|
-
*/
|
|
1355
|
-
created_at: string;
|
|
1356
|
-
/**
|
|
1357
|
-
* Payload for `message.edited` events (2026-02-03 format).
|
|
1358
|
-
*
|
|
1359
|
-
* Describes which part of a message was edited and when. Only text parts can be
|
|
1360
|
-
* edited. Only available for subscriptions using `webhook_version: "2026-02-03"`.
|
|
1361
|
-
*/
|
|
1362
|
-
data: MessageEditedV2026_02_03WebhookEvent.Data;
|
|
1363
|
-
/**
|
|
1364
|
-
* Unique identifier for this event (for deduplication)
|
|
1365
|
-
*/
|
|
1366
|
-
event_id: string;
|
|
1367
|
-
/**
|
|
1368
|
-
* Valid webhook event types that can be subscribed to.
|
|
1369
|
-
*
|
|
1370
|
-
* **Note:** `message.edited` is only delivered to subscriptions using
|
|
1371
|
-
* `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
|
|
1372
|
-
* subscription will not produce any deliveries.
|
|
1373
|
-
*/
|
|
1374
|
-
event_type: WebhookEventsAPI.WebhookEventType;
|
|
1375
|
-
/**
|
|
1376
|
-
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
1377
|
-
*/
|
|
1378
|
-
partner_id: string;
|
|
1379
|
-
/**
|
|
1380
|
-
* Trace ID for debugging and correlation across systems.
|
|
1381
|
-
*/
|
|
1382
|
-
trace_id: string;
|
|
1383
|
-
/**
|
|
1384
|
-
* Date-based webhook payload version. Determined by the `?version=` query
|
|
1385
|
-
* parameter in your webhook subscription URL. If no version parameter is
|
|
1386
|
-
* specified, defaults based on subscription creation date.
|
|
1387
|
-
*/
|
|
1388
|
-
webhook_version: string;
|
|
1389
|
-
}
|
|
1390
|
-
export declare namespace MessageEditedV2026_02_03WebhookEvent {
|
|
1391
|
-
/**
|
|
1392
|
-
* Payload for `message.edited` events (2026-02-03 format).
|
|
1393
|
-
*
|
|
1394
|
-
* Describes which part of a message was edited and when. Only text parts can be
|
|
1395
|
-
* edited. Only available for subscriptions using `webhook_version: "2026-02-03"`.
|
|
1396
|
-
*/
|
|
1397
|
-
interface Data {
|
|
1398
|
-
/**
|
|
1399
|
-
* Message identifier
|
|
1400
|
-
*/
|
|
1401
|
-
id: string;
|
|
1402
|
-
/**
|
|
1403
|
-
* Chat context
|
|
1404
|
-
*/
|
|
1405
|
-
chat: Data.Chat;
|
|
1406
|
-
/**
|
|
1407
|
-
* "outbound" if you sent the original message, "inbound" if you received it
|
|
1408
|
-
*/
|
|
1409
|
-
direction: 'outbound' | 'inbound';
|
|
1410
|
-
/**
|
|
1411
|
-
* When the edit occurred
|
|
1412
|
-
*/
|
|
1413
|
-
edited_at: string;
|
|
1414
|
-
/**
|
|
1415
|
-
* The edited part
|
|
1416
|
-
*/
|
|
1417
|
-
part: Data.Part;
|
|
1418
|
-
/**
|
|
1419
|
-
* The handle that sent (and edited) this message
|
|
1420
|
-
*/
|
|
1421
|
-
sender_handle: Shared.ChatHandle;
|
|
1422
|
-
}
|
|
1423
|
-
namespace Data {
|
|
1424
|
-
/**
|
|
1425
|
-
* Chat context
|
|
1426
|
-
*/
|
|
1427
|
-
interface Chat {
|
|
1428
|
-
/**
|
|
1429
|
-
* Chat identifier
|
|
1430
|
-
*/
|
|
1431
|
-
id: string;
|
|
1432
|
-
/**
|
|
1433
|
-
* Whether this is a group chat
|
|
1434
|
-
*/
|
|
1435
|
-
is_group: boolean;
|
|
1436
|
-
/**
|
|
1437
|
-
* The handle that owns this chat (your phone number)
|
|
1438
|
-
*/
|
|
1439
|
-
owner_handle: Shared.ChatHandle;
|
|
1440
|
-
}
|
|
1441
|
-
/**
|
|
1442
|
-
* The edited part
|
|
1443
|
-
*/
|
|
1444
|
-
interface Part {
|
|
1445
|
-
/**
|
|
1446
|
-
* Zero-based index of the edited part within the message
|
|
1447
|
-
*/
|
|
1448
|
-
index: number;
|
|
1449
|
-
/**
|
|
1450
|
-
* New text content of the part
|
|
1451
|
-
*/
|
|
1452
|
-
text: string;
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
}
|
|
1456
|
-
/**
|
|
1457
|
-
* Complete webhook payload for phone_number.status_updated events
|
|
1458
|
-
*/
|
|
1459
|
-
export interface PhoneNumberStatusUpdatedV2026_02_03WebhookEvent {
|
|
1460
|
-
/**
|
|
1461
|
-
* API version for the webhook payload format
|
|
1462
|
-
*/
|
|
1463
|
-
api_version: string;
|
|
1464
|
-
/**
|
|
1465
|
-
* When the event was created
|
|
1466
|
-
*/
|
|
1467
|
-
created_at: string;
|
|
1468
|
-
/**
|
|
1469
|
-
* Payload for phone_number.status_updated webhook events
|
|
1470
|
-
*/
|
|
1471
|
-
data: PhoneNumberStatusUpdatedV2026_02_03WebhookEvent.Data;
|
|
1472
|
-
/**
|
|
1473
|
-
* Unique identifier for this event (for deduplication)
|
|
1474
|
-
*/
|
|
1475
|
-
event_id: string;
|
|
1476
|
-
/**
|
|
1477
|
-
* The type of event
|
|
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' | 'call.initiated' | 'call.ringing' | 'call.answered' | 'call.ended' | 'call.failed' | 'call.declined' | 'call.no_answer';
|
|
1480
|
-
/**
|
|
1481
|
-
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
1482
|
-
*/
|
|
1483
|
-
partner_id: string;
|
|
1484
|
-
/**
|
|
1485
|
-
* Trace ID for debugging and correlation across systems.
|
|
1486
|
-
*/
|
|
1487
|
-
trace_id: string;
|
|
1488
|
-
/**
|
|
1489
|
-
* Date-based webhook payload version. Determined by the `?version=` query
|
|
1490
|
-
* parameter in your webhook subscription URL. If no version parameter is
|
|
1491
|
-
* specified, defaults based on subscription creation date.
|
|
1492
|
-
*/
|
|
1493
|
-
webhook_version: string;
|
|
1494
|
-
}
|
|
1495
|
-
export declare namespace PhoneNumberStatusUpdatedV2026_02_03WebhookEvent {
|
|
1496
|
-
/**
|
|
1497
|
-
* Payload for phone_number.status_updated webhook events
|
|
1498
|
-
*/
|
|
1499
|
-
interface Data {
|
|
1500
|
-
/**
|
|
1501
|
-
* When the status change occurred
|
|
1502
|
-
*/
|
|
1503
|
-
changed_at: string;
|
|
1504
|
-
/**
|
|
1505
|
-
* The new service status
|
|
1506
|
-
*/
|
|
1507
|
-
new_status: 'ACTIVE' | 'FLAGGED';
|
|
1508
|
-
/**
|
|
1509
|
-
* Phone number in E.164 format
|
|
1510
|
-
*/
|
|
1511
|
-
phone_number: string;
|
|
1512
|
-
/**
|
|
1513
|
-
* The previous service status
|
|
1514
|
-
*/
|
|
1515
|
-
previous_status: 'ACTIVE' | 'FLAGGED';
|
|
1516
|
-
}
|
|
1517
|
-
}
|
|
1518
|
-
/**
|
|
1519
|
-
* Complete webhook payload for message.sent events (2025-01-01 format)
|
|
1520
|
-
*/
|
|
1521
|
-
export interface MessageSentV2025_01_01WebhookEvent {
|
|
1522
|
-
/**
|
|
1523
|
-
* API version for the webhook payload format
|
|
1524
|
-
*/
|
|
1525
|
-
api_version: string;
|
|
1526
|
-
/**
|
|
1527
|
-
* When the event was created
|
|
1528
|
-
*/
|
|
1529
|
-
created_at: string;
|
|
1530
|
-
/**
|
|
1531
|
-
* Unified payload for message.sent and message.received webhook events (2025-01-01
|
|
1532
|
-
* format)
|
|
1533
|
-
*/
|
|
1534
|
-
data: MessageSentV2025_01_01WebhookEvent.Data;
|
|
1535
|
-
/**
|
|
1536
|
-
* Unique identifier for this event (for deduplication)
|
|
1537
|
-
*/
|
|
1538
|
-
event_id: string;
|
|
1539
|
-
/**
|
|
1540
|
-
* Valid webhook event types that can be subscribed to.
|
|
1541
|
-
*
|
|
1542
|
-
* **Note:** `message.edited` is only delivered to subscriptions using
|
|
1543
|
-
* `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
|
|
1544
|
-
* subscription will not produce any deliveries.
|
|
1545
|
-
*/
|
|
1546
|
-
event_type: WebhookEventsAPI.WebhookEventType;
|
|
1547
|
-
/**
|
|
1548
|
-
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
1549
|
-
*/
|
|
1550
|
-
partner_id: string;
|
|
1551
|
-
/**
|
|
1552
|
-
* Trace ID for debugging and correlation across systems.
|
|
1553
|
-
*/
|
|
1554
|
-
trace_id: string;
|
|
1555
|
-
/**
|
|
1556
|
-
* Date-based webhook payload version. Determined by the `?version=` query
|
|
1557
|
-
* parameter in your webhook subscription URL. If no version parameter is
|
|
1558
|
-
* specified, defaults based on subscription creation date.
|
|
1559
|
-
*/
|
|
1560
|
-
webhook_version: string;
|
|
1561
|
-
}
|
|
1562
|
-
export declare namespace MessageSentV2025_01_01WebhookEvent {
|
|
1563
|
-
/**
|
|
1564
|
-
* Unified payload for message.sent and message.received webhook events (2025-01-01
|
|
1565
|
-
* format)
|
|
1566
|
-
*/
|
|
1567
|
-
interface Data {
|
|
1568
|
-
/**
|
|
1569
|
-
* Chat identifier
|
|
1570
|
-
*/
|
|
1571
|
-
chat_id?: string;
|
|
1572
|
-
/**
|
|
1573
|
-
* @deprecated DEPRECATED: Use from_handle instead. Phone number or email address
|
|
1574
|
-
* of the message sender.
|
|
1575
|
-
*/
|
|
1576
|
-
from?: string;
|
|
1577
|
-
/**
|
|
1578
|
-
* The sender of this message as a full handle object
|
|
1579
|
-
*/
|
|
1580
|
-
from_handle?: Shared.ChatHandle;
|
|
1581
|
-
/**
|
|
1582
|
-
* Idempotency key for the message. Used for deduplication of outbound messages.
|
|
1583
|
-
*/
|
|
1584
|
-
idempotency_key?: string | null;
|
|
1585
|
-
/**
|
|
1586
|
-
* Whether the message was sent by us (true for sent events, false for received
|
|
1587
|
-
* events)
|
|
1588
|
-
*/
|
|
1589
|
-
is_from_me?: boolean;
|
|
1590
|
-
/**
|
|
1591
|
-
* Whether this is a group chat
|
|
1592
|
-
*/
|
|
1593
|
-
is_group?: boolean;
|
|
1594
|
-
/**
|
|
1595
|
-
* Message content nested within webhook events
|
|
1596
|
-
*/
|
|
1597
|
-
message?: WebhooksAPI.MessagePayload;
|
|
1598
|
-
/**
|
|
1599
|
-
* Preferred messaging service type. Includes "auto" for default fallback behavior.
|
|
1600
|
-
*/
|
|
1601
|
-
preferred_service?: 'iMessage' | 'SMS' | 'RCS' | 'auto' | null;
|
|
1602
|
-
/**
|
|
1603
|
-
* When the message was received. Null for sent events.
|
|
1604
|
-
*/
|
|
1605
|
-
received_at?: string | null;
|
|
1606
|
-
/**
|
|
1607
|
-
* Our phone number that received the message as a full handle object. Null for
|
|
1608
|
-
* sent events.
|
|
1609
|
-
*/
|
|
1610
|
-
recipient_handle?: Shared.ChatHandle | null;
|
|
1611
|
-
/**
|
|
1612
|
-
* @deprecated DEPRECATED: Use recipient_handle instead. Our phone number that
|
|
1613
|
-
* received the message. Null for sent events.
|
|
1614
|
-
*/
|
|
1615
|
-
recipient_phone?: string | null;
|
|
1616
|
-
/**
|
|
1617
|
-
* Messaging service type
|
|
1618
|
-
*/
|
|
1619
|
-
service?: Shared.ServiceType | null;
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
/**
|
|
1623
|
-
* Complete webhook payload for message.received events (2025-01-01 format)
|
|
1624
|
-
*/
|
|
1625
|
-
export interface MessageReceivedV2025_01_01WebhookEvent {
|
|
1626
|
-
/**
|
|
1627
|
-
* API version for the webhook payload format
|
|
1628
|
-
*/
|
|
1629
|
-
api_version: string;
|
|
1630
|
-
/**
|
|
1631
|
-
* When the event was created
|
|
1632
|
-
*/
|
|
1633
|
-
created_at: string;
|
|
1634
|
-
/**
|
|
1635
|
-
* Unified payload for message.sent and message.received webhook events (2025-01-01
|
|
1636
|
-
* format)
|
|
1637
|
-
*/
|
|
1638
|
-
data: MessageReceivedV2025_01_01WebhookEvent.Data;
|
|
1639
|
-
/**
|
|
1640
|
-
* Unique identifier for this event (for deduplication)
|
|
1641
|
-
*/
|
|
1642
|
-
event_id: string;
|
|
1643
|
-
/**
|
|
1644
|
-
* Valid webhook event types that can be subscribed to.
|
|
1645
|
-
*
|
|
1646
|
-
* **Note:** `message.edited` is only delivered to subscriptions using
|
|
1647
|
-
* `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
|
|
1648
|
-
* subscription will not produce any deliveries.
|
|
1649
|
-
*/
|
|
1650
|
-
event_type: WebhookEventsAPI.WebhookEventType;
|
|
1651
|
-
/**
|
|
1652
|
-
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
1653
|
-
*/
|
|
1654
|
-
partner_id: string;
|
|
1655
|
-
/**
|
|
1656
|
-
* Trace ID for debugging and correlation across systems.
|
|
1657
|
-
*/
|
|
1658
|
-
trace_id: string;
|
|
1659
|
-
/**
|
|
1660
|
-
* Date-based webhook payload version. Determined by the `?version=` query
|
|
1661
|
-
* parameter in your webhook subscription URL. If no version parameter is
|
|
1662
|
-
* specified, defaults based on subscription creation date.
|
|
1663
|
-
*/
|
|
1664
|
-
webhook_version: string;
|
|
1665
|
-
}
|
|
1666
|
-
export declare namespace MessageReceivedV2025_01_01WebhookEvent {
|
|
1667
|
-
/**
|
|
1668
|
-
* Unified payload for message.sent and message.received webhook events (2025-01-01
|
|
1669
|
-
* format)
|
|
1670
|
-
*/
|
|
1671
|
-
interface Data {
|
|
1672
|
-
/**
|
|
1673
|
-
* Chat identifier
|
|
1674
|
-
*/
|
|
1675
|
-
chat_id?: string;
|
|
1676
|
-
/**
|
|
1677
|
-
* @deprecated DEPRECATED: Use from_handle instead. Phone number or email address
|
|
1678
|
-
* of the message sender.
|
|
1679
|
-
*/
|
|
1680
|
-
from?: string;
|
|
1681
|
-
/**
|
|
1682
|
-
* The sender of this message as a full handle object
|
|
1683
|
-
*/
|
|
1684
|
-
from_handle?: Shared.ChatHandle;
|
|
1685
|
-
/**
|
|
1686
|
-
* Idempotency key for the message. Used for deduplication of outbound messages.
|
|
1687
|
-
*/
|
|
1688
|
-
idempotency_key?: string | null;
|
|
1689
|
-
/**
|
|
1690
|
-
* Whether the message was sent by us (true for sent events, false for received
|
|
1691
|
-
* events)
|
|
1692
|
-
*/
|
|
1693
|
-
is_from_me?: boolean;
|
|
1694
|
-
/**
|
|
1695
|
-
* Whether this is a group chat
|
|
1696
|
-
*/
|
|
1697
|
-
is_group?: boolean;
|
|
1698
|
-
/**
|
|
1699
|
-
* Message content nested within webhook events
|
|
1700
|
-
*/
|
|
1701
|
-
message?: WebhooksAPI.MessagePayload;
|
|
1702
|
-
/**
|
|
1703
|
-
* Preferred messaging service type. Includes "auto" for default fallback behavior.
|
|
1704
|
-
*/
|
|
1705
|
-
preferred_service?: 'iMessage' | 'SMS' | 'RCS' | 'auto' | null;
|
|
1706
|
-
/**
|
|
1707
|
-
* When the message was received. Null for sent events.
|
|
1708
|
-
*/
|
|
1709
|
-
received_at?: string | null;
|
|
1710
|
-
/**
|
|
1711
|
-
* Our phone number that received the message as a full handle object. Null for
|
|
1712
|
-
* sent events.
|
|
1713
|
-
*/
|
|
1714
|
-
recipient_handle?: Shared.ChatHandle | null;
|
|
1715
|
-
/**
|
|
1716
|
-
* @deprecated DEPRECATED: Use recipient_handle instead. Our phone number that
|
|
1717
|
-
* received the message. Null for sent events.
|
|
1718
|
-
*/
|
|
1719
|
-
recipient_phone?: string | null;
|
|
1720
|
-
/**
|
|
1721
|
-
* Messaging service type
|
|
1722
|
-
*/
|
|
1723
|
-
service?: Shared.ServiceType | null;
|
|
1724
|
-
}
|
|
1725
|
-
}
|
|
1726
|
-
/**
|
|
1727
|
-
* Complete webhook payload for message.read events (2025-01-01 format)
|
|
1728
|
-
*/
|
|
1729
|
-
export interface MessageReadV2025_01_01WebhookEvent {
|
|
1730
|
-
/**
|
|
1731
|
-
* API version for the webhook payload format
|
|
1732
|
-
*/
|
|
1733
|
-
api_version: string;
|
|
1734
|
-
/**
|
|
1735
|
-
* When the event was created
|
|
1736
|
-
*/
|
|
1737
|
-
created_at: string;
|
|
1738
|
-
/**
|
|
1739
|
-
* Payload for message.read webhook events (2025-01-01 format). Extends
|
|
1740
|
-
* MessageEvent with read_at and message_id.
|
|
1741
|
-
*/
|
|
1742
|
-
data: MessageReadV2025_01_01WebhookEvent.Data;
|
|
1743
|
-
/**
|
|
1744
|
-
* Unique identifier for this event (for deduplication)
|
|
1745
|
-
*/
|
|
1746
|
-
event_id: string;
|
|
1747
|
-
/**
|
|
1748
|
-
* Valid webhook event types that can be subscribed to.
|
|
1749
|
-
*
|
|
1750
|
-
* **Note:** `message.edited` is only delivered to subscriptions using
|
|
1751
|
-
* `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
|
|
1752
|
-
* subscription will not produce any deliveries.
|
|
1753
|
-
*/
|
|
1754
|
-
event_type: WebhookEventsAPI.WebhookEventType;
|
|
1755
|
-
/**
|
|
1756
|
-
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
1757
|
-
*/
|
|
1758
|
-
partner_id: string;
|
|
1759
|
-
/**
|
|
1760
|
-
* Trace ID for debugging and correlation across systems.
|
|
1761
|
-
*/
|
|
1762
|
-
trace_id: string;
|
|
1763
|
-
/**
|
|
1764
|
-
* Date-based webhook payload version. Determined by the `?version=` query
|
|
1765
|
-
* parameter in your webhook subscription URL. If no version parameter is
|
|
1766
|
-
* specified, defaults based on subscription creation date.
|
|
1767
|
-
*/
|
|
1768
|
-
webhook_version: string;
|
|
1769
|
-
}
|
|
1770
|
-
export declare namespace MessageReadV2025_01_01WebhookEvent {
|
|
1771
|
-
/**
|
|
1772
|
-
* Payload for message.read webhook events (2025-01-01 format). Extends
|
|
1773
|
-
* MessageEvent with read_at and message_id.
|
|
1774
|
-
*/
|
|
1775
|
-
interface Data {
|
|
1776
|
-
/**
|
|
1777
|
-
* When the message was read
|
|
1778
|
-
*/
|
|
1779
|
-
read_at: string;
|
|
1780
|
-
/**
|
|
1781
|
-
* Chat identifier
|
|
1782
|
-
*/
|
|
1783
|
-
chat_id?: string;
|
|
1784
|
-
/**
|
|
1785
|
-
* @deprecated DEPRECATED: Use from_handle instead. Phone number or email address
|
|
1786
|
-
* of the message sender.
|
|
1787
|
-
*/
|
|
1788
|
-
from?: string;
|
|
1789
|
-
/**
|
|
1790
|
-
* The sender of this message as a full handle object
|
|
1791
|
-
*/
|
|
1792
|
-
from_handle?: Shared.ChatHandle;
|
|
1793
|
-
/**
|
|
1794
|
-
* Idempotency key for the message. Used for deduplication of outbound messages.
|
|
1795
|
-
*/
|
|
1796
|
-
idempotency_key?: string | null;
|
|
1797
|
-
/**
|
|
1798
|
-
* Whether the message was sent by us (true for sent events, false for received
|
|
1799
|
-
* events)
|
|
1800
|
-
*/
|
|
1801
|
-
is_from_me?: boolean;
|
|
1802
|
-
/**
|
|
1803
|
-
* Whether this is a group chat
|
|
1804
|
-
*/
|
|
1805
|
-
is_group?: boolean;
|
|
1806
|
-
/**
|
|
1807
|
-
* Message content nested within webhook events
|
|
1808
|
-
*/
|
|
1809
|
-
message?: WebhooksAPI.MessagePayload;
|
|
1810
|
-
/**
|
|
1811
|
-
* Message identifier (UUID)
|
|
1812
|
-
*/
|
|
1813
|
-
message_id?: string;
|
|
1814
|
-
/**
|
|
1815
|
-
* Preferred messaging service type. Includes "auto" for default fallback behavior.
|
|
1816
|
-
*/
|
|
1817
|
-
preferred_service?: 'iMessage' | 'SMS' | 'RCS' | 'auto' | null;
|
|
1818
|
-
/**
|
|
1819
|
-
* When the message was received. Null for sent events.
|
|
1820
|
-
*/
|
|
1821
|
-
received_at?: string | null;
|
|
1822
|
-
/**
|
|
1823
|
-
* Our phone number that received the message as a full handle object. Null for
|
|
1824
|
-
* sent events.
|
|
1825
|
-
*/
|
|
1826
|
-
recipient_handle?: Shared.ChatHandle | null;
|
|
1827
|
-
/**
|
|
1828
|
-
* @deprecated DEPRECATED: Use recipient_handle instead. Our phone number that
|
|
1829
|
-
* received the message. Null for sent events.
|
|
1830
|
-
*/
|
|
1831
|
-
recipient_phone?: string | null;
|
|
1832
|
-
/**
|
|
1833
|
-
* Messaging service type
|
|
1834
|
-
*/
|
|
1835
|
-
service?: Shared.ServiceType | null;
|
|
1836
|
-
}
|
|
1837
|
-
}
|
|
1838
|
-
/**
|
|
1839
|
-
* Complete webhook payload for message.delivered events (2025-01-01 format)
|
|
1840
|
-
*/
|
|
1841
|
-
export interface MessageDeliveredV2025_01_01WebhookEvent {
|
|
1842
|
-
/**
|
|
1843
|
-
* API version for the webhook payload format
|
|
1844
|
-
*/
|
|
1845
|
-
api_version: string;
|
|
1846
|
-
/**
|
|
1847
|
-
* When the event was created
|
|
1848
|
-
*/
|
|
1849
|
-
created_at: string;
|
|
1850
|
-
/**
|
|
1851
|
-
* Payload for message.delivered webhook events (2025-01-01 format). Extends
|
|
1852
|
-
* MessageEvent with delivered_at and message_id.
|
|
1853
|
-
*/
|
|
1854
|
-
data: MessageDeliveredV2025_01_01WebhookEvent.Data;
|
|
1855
|
-
/**
|
|
1856
|
-
* Unique identifier for this event (for deduplication)
|
|
1857
|
-
*/
|
|
1858
|
-
event_id: string;
|
|
1859
|
-
/**
|
|
1860
|
-
* Valid webhook event types that can be subscribed to.
|
|
1861
|
-
*
|
|
1862
|
-
* **Note:** `message.edited` is only delivered to subscriptions using
|
|
1863
|
-
* `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
|
|
1864
|
-
* subscription will not produce any deliveries.
|
|
1865
|
-
*/
|
|
1866
|
-
event_type: WebhookEventsAPI.WebhookEventType;
|
|
1867
|
-
/**
|
|
1868
|
-
* Partner identifier. Present on all webhooks for cross-referencing.
|
|
1869
|
-
*/
|
|
1870
|
-
partner_id: string;
|
|
1871
|
-
/**
|
|
1872
|
-
* Trace ID for debugging and correlation across systems.
|
|
1873
|
-
*/
|
|
1874
|
-
trace_id: string;
|
|
1875
|
-
/**
|
|
1876
|
-
* Date-based webhook payload version. Determined by the `?version=` query
|
|
1877
|
-
* parameter in your webhook subscription URL. If no version parameter is
|
|
1878
|
-
* specified, defaults based on subscription creation date.
|
|
1879
|
-
*/
|
|
1880
|
-
webhook_version: string;
|
|
1881
|
-
}
|
|
1882
|
-
export declare namespace MessageDeliveredV2025_01_01WebhookEvent {
|
|
1883
|
-
/**
|
|
1884
|
-
* Payload for message.delivered webhook events (2025-01-01 format). Extends
|
|
1885
|
-
* MessageEvent with delivered_at and message_id.
|
|
1886
|
-
*/
|
|
1887
|
-
interface Data {
|
|
1888
|
-
/**
|
|
1889
|
-
* When the message was delivered to the recipient's device
|
|
1890
|
-
*/
|
|
1891
|
-
delivered_at: string;
|
|
1892
|
-
/**
|
|
1893
|
-
* Chat identifier
|
|
1894
|
-
*/
|
|
1895
|
-
chat_id?: string;
|
|
1896
|
-
/**
|
|
1897
|
-
* @deprecated DEPRECATED: Use from_handle instead. Phone number or email address
|
|
1898
|
-
* of the message sender.
|
|
1899
|
-
*/
|
|
1900
|
-
from?: string;
|
|
1901
|
-
/**
|
|
1902
|
-
* The sender of this message as a full handle object
|
|
1903
|
-
*/
|
|
1904
|
-
from_handle?: Shared.ChatHandle;
|
|
1905
|
-
/**
|
|
1906
|
-
* Idempotency key for the message. Used for deduplication of outbound messages.
|
|
1907
|
-
*/
|
|
1908
|
-
idempotency_key?: string | null;
|
|
1909
|
-
/**
|
|
1910
|
-
* Whether the message was sent by us (true for sent events, false for received
|
|
1911
|
-
* events)
|
|
1912
|
-
*/
|
|
1913
|
-
is_from_me?: boolean;
|
|
1914
|
-
/**
|
|
1915
|
-
* Whether this is a group chat
|
|
1916
|
-
*/
|
|
1917
|
-
is_group?: boolean;
|
|
1918
|
-
/**
|
|
1919
|
-
* Message content nested within webhook events
|
|
1920
|
-
*/
|
|
1921
|
-
message?: WebhooksAPI.MessagePayload;
|
|
1922
|
-
/**
|
|
1923
|
-
* Message identifier (UUID)
|
|
1924
|
-
*/
|
|
1925
|
-
message_id?: string;
|
|
1926
|
-
/**
|
|
1927
|
-
* Preferred messaging service type. Includes "auto" for default fallback behavior.
|
|
1928
|
-
*/
|
|
1929
|
-
preferred_service?: 'iMessage' | 'SMS' | 'RCS' | 'auto' | null;
|
|
1930
|
-
/**
|
|
1931
|
-
* When the message was received. Null for sent events.
|
|
1932
|
-
*/
|
|
1933
|
-
received_at?: string | null;
|
|
1934
|
-
/**
|
|
1935
|
-
* Our phone number that received the message as a full handle object. Null for
|
|
1936
|
-
* sent events.
|
|
1937
|
-
*/
|
|
1938
|
-
recipient_handle?: Shared.ChatHandle | null;
|
|
1939
|
-
/**
|
|
1940
|
-
* @deprecated DEPRECATED: Use recipient_handle instead. Our phone number that
|
|
1941
|
-
* received the message. Null for sent events.
|
|
1942
|
-
*/
|
|
1943
|
-
recipient_phone?: string | null;
|
|
1944
|
-
/**
|
|
1945
|
-
* Messaging service type
|
|
1946
|
-
*/
|
|
1947
|
-
service?: Shared.ServiceType | null;
|
|
1948
|
-
}
|
|
1949
|
-
}
|
|
1950
|
-
/**
|
|
1951
|
-
* Complete webhook payload for message.failed events
|
|
662
|
+
* Complete webhook payload for message.edited events (2026-02-03 format only)
|
|
1952
663
|
*/
|
|
1953
|
-
export interface
|
|
664
|
+
export interface MessageEditedWebhookEvent {
|
|
1954
665
|
/**
|
|
1955
666
|
* API version for the webhook payload format
|
|
1956
667
|
*/
|
|
@@ -1960,11 +671,12 @@ export interface MessageFailedV2025_01_01WebhookEvent {
|
|
|
1960
671
|
*/
|
|
1961
672
|
created_at: string;
|
|
1962
673
|
/**
|
|
1963
|
-
*
|
|
1964
|
-
*
|
|
1965
|
-
*
|
|
674
|
+
* Payload for `message.edited` events (2026-02-03 format).
|
|
675
|
+
*
|
|
676
|
+
* Describes which part of a message was edited and when. Only text parts can be
|
|
677
|
+
* edited. Only available for subscriptions using `webhook_version: "2026-02-03"`.
|
|
1966
678
|
*/
|
|
1967
|
-
data:
|
|
679
|
+
data: MessageEditedWebhookEvent.Data;
|
|
1968
680
|
/**
|
|
1969
681
|
* Unique identifier for this event (for deduplication)
|
|
1970
682
|
*/
|
|
@@ -1992,39 +704,76 @@ export interface MessageFailedV2025_01_01WebhookEvent {
|
|
|
1992
704
|
*/
|
|
1993
705
|
webhook_version: string;
|
|
1994
706
|
}
|
|
1995
|
-
export declare namespace
|
|
707
|
+
export declare namespace MessageEditedWebhookEvent {
|
|
1996
708
|
/**
|
|
1997
|
-
*
|
|
1998
|
-
*
|
|
1999
|
-
*
|
|
709
|
+
* Payload for `message.edited` events (2026-02-03 format).
|
|
710
|
+
*
|
|
711
|
+
* Describes which part of a message was edited and when. Only text parts can be
|
|
712
|
+
* edited. Only available for subscriptions using `webhook_version: "2026-02-03"`.
|
|
2000
713
|
*/
|
|
2001
714
|
interface Data {
|
|
2002
715
|
/**
|
|
2003
|
-
*
|
|
716
|
+
* Message identifier
|
|
2004
717
|
*/
|
|
2005
|
-
|
|
718
|
+
id: string;
|
|
2006
719
|
/**
|
|
2007
|
-
*
|
|
720
|
+
* Chat context
|
|
2008
721
|
*/
|
|
2009
|
-
|
|
722
|
+
chat: Data.Chat;
|
|
2010
723
|
/**
|
|
2011
|
-
*
|
|
724
|
+
* "outbound" if you sent the original message, "inbound" if you received it
|
|
2012
725
|
*/
|
|
2013
|
-
|
|
726
|
+
direction: 'outbound' | 'inbound';
|
|
2014
727
|
/**
|
|
2015
|
-
*
|
|
728
|
+
* When the edit occurred
|
|
2016
729
|
*/
|
|
2017
|
-
|
|
730
|
+
edited_at: string;
|
|
2018
731
|
/**
|
|
2019
|
-
*
|
|
732
|
+
* The edited part
|
|
2020
733
|
*/
|
|
2021
|
-
|
|
734
|
+
part: Data.Part;
|
|
735
|
+
/**
|
|
736
|
+
* The handle that sent (and edited) this message
|
|
737
|
+
*/
|
|
738
|
+
sender_handle: Shared.ChatHandle;
|
|
739
|
+
}
|
|
740
|
+
namespace Data {
|
|
741
|
+
/**
|
|
742
|
+
* Chat context
|
|
743
|
+
*/
|
|
744
|
+
interface Chat {
|
|
745
|
+
/**
|
|
746
|
+
* Chat identifier
|
|
747
|
+
*/
|
|
748
|
+
id: string;
|
|
749
|
+
/**
|
|
750
|
+
* Whether this is a group chat
|
|
751
|
+
*/
|
|
752
|
+
is_group: boolean;
|
|
753
|
+
/**
|
|
754
|
+
* The handle that owns this chat (your phone number)
|
|
755
|
+
*/
|
|
756
|
+
owner_handle: Shared.ChatHandle;
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* The edited part
|
|
760
|
+
*/
|
|
761
|
+
interface Part {
|
|
762
|
+
/**
|
|
763
|
+
* Zero-based index of the edited part within the message
|
|
764
|
+
*/
|
|
765
|
+
index: number;
|
|
766
|
+
/**
|
|
767
|
+
* New text content of the part
|
|
768
|
+
*/
|
|
769
|
+
text: string;
|
|
770
|
+
}
|
|
2022
771
|
}
|
|
2023
772
|
}
|
|
2024
773
|
/**
|
|
2025
774
|
* Complete webhook payload for reaction.added events
|
|
2026
775
|
*/
|
|
2027
|
-
export interface
|
|
776
|
+
export interface ReactionAddedWebhookEvent {
|
|
2028
777
|
/**
|
|
2029
778
|
* API version for the webhook payload format
|
|
2030
779
|
*/
|
|
@@ -2067,7 +816,7 @@ export interface ReactionAddedV2025_01_01WebhookEvent {
|
|
|
2067
816
|
/**
|
|
2068
817
|
* Complete webhook payload for reaction.removed events
|
|
2069
818
|
*/
|
|
2070
|
-
export interface
|
|
819
|
+
export interface ReactionRemovedWebhookEvent {
|
|
2071
820
|
/**
|
|
2072
821
|
* API version for the webhook payload format
|
|
2073
822
|
*/
|
|
@@ -2110,7 +859,7 @@ export interface ReactionRemovedV2025_01_01WebhookEvent {
|
|
|
2110
859
|
/**
|
|
2111
860
|
* Complete webhook payload for participant.added events
|
|
2112
861
|
*/
|
|
2113
|
-
export interface
|
|
862
|
+
export interface ParticipantAddedWebhookEvent {
|
|
2114
863
|
/**
|
|
2115
864
|
* API version for the webhook payload format
|
|
2116
865
|
*/
|
|
@@ -2122,7 +871,7 @@ export interface ParticipantAddedV2025_01_01WebhookEvent {
|
|
|
2122
871
|
/**
|
|
2123
872
|
* Payload for participant.added webhook events
|
|
2124
873
|
*/
|
|
2125
|
-
data:
|
|
874
|
+
data: ParticipantAddedWebhookEvent.Data;
|
|
2126
875
|
/**
|
|
2127
876
|
* Unique identifier for this event (for deduplication)
|
|
2128
877
|
*/
|
|
@@ -2150,7 +899,7 @@ export interface ParticipantAddedV2025_01_01WebhookEvent {
|
|
|
2150
899
|
*/
|
|
2151
900
|
webhook_version: string;
|
|
2152
901
|
}
|
|
2153
|
-
export declare namespace
|
|
902
|
+
export declare namespace ParticipantAddedWebhookEvent {
|
|
2154
903
|
/**
|
|
2155
904
|
* Payload for participant.added webhook events
|
|
2156
905
|
*/
|
|
@@ -2177,7 +926,7 @@ export declare namespace ParticipantAddedV2025_01_01WebhookEvent {
|
|
|
2177
926
|
/**
|
|
2178
927
|
* Complete webhook payload for participant.removed events
|
|
2179
928
|
*/
|
|
2180
|
-
export interface
|
|
929
|
+
export interface ParticipantRemovedWebhookEvent {
|
|
2181
930
|
/**
|
|
2182
931
|
* API version for the webhook payload format
|
|
2183
932
|
*/
|
|
@@ -2189,7 +938,7 @@ export interface ParticipantRemovedV2025_01_01WebhookEvent {
|
|
|
2189
938
|
/**
|
|
2190
939
|
* Payload for participant.removed webhook events
|
|
2191
940
|
*/
|
|
2192
|
-
data:
|
|
941
|
+
data: ParticipantRemovedWebhookEvent.Data;
|
|
2193
942
|
/**
|
|
2194
943
|
* Unique identifier for this event (for deduplication)
|
|
2195
944
|
*/
|
|
@@ -2217,7 +966,7 @@ export interface ParticipantRemovedV2025_01_01WebhookEvent {
|
|
|
2217
966
|
*/
|
|
2218
967
|
webhook_version: string;
|
|
2219
968
|
}
|
|
2220
|
-
export declare namespace
|
|
969
|
+
export declare namespace ParticipantRemovedWebhookEvent {
|
|
2221
970
|
/**
|
|
2222
971
|
* Payload for participant.removed webhook events
|
|
2223
972
|
*/
|
|
@@ -2242,9 +991,9 @@ export declare namespace ParticipantRemovedV2025_01_01WebhookEvent {
|
|
|
2242
991
|
}
|
|
2243
992
|
}
|
|
2244
993
|
/**
|
|
2245
|
-
* Complete webhook payload for chat.
|
|
994
|
+
* Complete webhook payload for chat.created events
|
|
2246
995
|
*/
|
|
2247
|
-
export interface
|
|
996
|
+
export interface ChatCreatedWebhookEvent {
|
|
2248
997
|
/**
|
|
2249
998
|
* API version for the webhook payload format
|
|
2250
999
|
*/
|
|
@@ -2254,9 +1003,10 @@ export interface ChatGroupNameUpdatedV2025_01_01WebhookEvent {
|
|
|
2254
1003
|
*/
|
|
2255
1004
|
created_at: string;
|
|
2256
1005
|
/**
|
|
2257
|
-
* Payload for chat.
|
|
1006
|
+
* Payload for chat.created webhook events. Matches GET /v3/chats/{chatId}
|
|
1007
|
+
* response.
|
|
2258
1008
|
*/
|
|
2259
|
-
data:
|
|
1009
|
+
data: ChatCreatedWebhookEvent.Data;
|
|
2260
1010
|
/**
|
|
2261
1011
|
* Unique identifier for this event (for deduplication)
|
|
2262
1012
|
*/
|
|
@@ -2284,37 +1034,48 @@ export interface ChatGroupNameUpdatedV2025_01_01WebhookEvent {
|
|
|
2284
1034
|
*/
|
|
2285
1035
|
webhook_version: string;
|
|
2286
1036
|
}
|
|
2287
|
-
export declare namespace
|
|
1037
|
+
export declare namespace ChatCreatedWebhookEvent {
|
|
2288
1038
|
/**
|
|
2289
|
-
* Payload for chat.
|
|
1039
|
+
* Payload for chat.created webhook events. Matches GET /v3/chats/{chatId}
|
|
1040
|
+
* response.
|
|
2290
1041
|
*/
|
|
2291
1042
|
interface Data {
|
|
2292
1043
|
/**
|
|
2293
|
-
*
|
|
1044
|
+
* Unique identifier for the chat
|
|
2294
1045
|
*/
|
|
2295
|
-
|
|
1046
|
+
id: string;
|
|
2296
1047
|
/**
|
|
2297
|
-
* When the
|
|
1048
|
+
* When the chat was created
|
|
2298
1049
|
*/
|
|
2299
|
-
|
|
1050
|
+
created_at: string;
|
|
2300
1051
|
/**
|
|
2301
|
-
*
|
|
1052
|
+
* Display name for the chat. Defaults to a comma-separated list of recipient
|
|
1053
|
+
* handles. Can be updated for group chats.
|
|
2302
1054
|
*/
|
|
2303
|
-
|
|
1055
|
+
display_name: string | null;
|
|
2304
1056
|
/**
|
|
2305
|
-
*
|
|
1057
|
+
* List of chat participants with full handle details. Always contains at least two
|
|
1058
|
+
* handles (your phone number and the other participant).
|
|
2306
1059
|
*/
|
|
2307
|
-
|
|
1060
|
+
handles: Array<Shared.ChatHandle>;
|
|
2308
1061
|
/**
|
|
2309
|
-
*
|
|
1062
|
+
* Whether this is a group chat
|
|
2310
1063
|
*/
|
|
2311
|
-
|
|
1064
|
+
is_group: boolean;
|
|
1065
|
+
/**
|
|
1066
|
+
* When the chat was last updated
|
|
1067
|
+
*/
|
|
1068
|
+
updated_at: string;
|
|
1069
|
+
/**
|
|
1070
|
+
* Messaging service type
|
|
1071
|
+
*/
|
|
1072
|
+
service?: Shared.ServiceType | null;
|
|
2312
1073
|
}
|
|
2313
1074
|
}
|
|
2314
1075
|
/**
|
|
2315
|
-
* Complete webhook payload for chat.
|
|
1076
|
+
* Complete webhook payload for chat.group_name_updated events
|
|
2316
1077
|
*/
|
|
2317
|
-
export interface
|
|
1078
|
+
export interface ChatGroupNameUpdatedWebhookEvent {
|
|
2318
1079
|
/**
|
|
2319
1080
|
* API version for the webhook payload format
|
|
2320
1081
|
*/
|
|
@@ -2324,9 +1085,9 @@ export interface ChatGroupIconUpdatedV2025_01_01WebhookEvent {
|
|
|
2324
1085
|
*/
|
|
2325
1086
|
created_at: string;
|
|
2326
1087
|
/**
|
|
2327
|
-
* Payload for chat.
|
|
1088
|
+
* Payload for chat.group_name_updated webhook events
|
|
2328
1089
|
*/
|
|
2329
|
-
data:
|
|
1090
|
+
data: ChatGroupNameUpdatedWebhookEvent.Data;
|
|
2330
1091
|
/**
|
|
2331
1092
|
* Unique identifier for this event (for deduplication)
|
|
2332
1093
|
*/
|
|
@@ -2354,9 +1115,9 @@ export interface ChatGroupIconUpdatedV2025_01_01WebhookEvent {
|
|
|
2354
1115
|
*/
|
|
2355
1116
|
webhook_version: string;
|
|
2356
1117
|
}
|
|
2357
|
-
export declare namespace
|
|
1118
|
+
export declare namespace ChatGroupNameUpdatedWebhookEvent {
|
|
2358
1119
|
/**
|
|
2359
|
-
* Payload for chat.
|
|
1120
|
+
* Payload for chat.group_name_updated webhook events
|
|
2360
1121
|
*/
|
|
2361
1122
|
interface Data {
|
|
2362
1123
|
/**
|
|
@@ -2372,19 +1133,19 @@ export declare namespace ChatGroupIconUpdatedV2025_01_01WebhookEvent {
|
|
|
2372
1133
|
*/
|
|
2373
1134
|
changed_by_handle?: Shared.ChatHandle | null;
|
|
2374
1135
|
/**
|
|
2375
|
-
* New
|
|
1136
|
+
* New group name (null if the name was removed)
|
|
2376
1137
|
*/
|
|
2377
1138
|
new_value?: string | null;
|
|
2378
1139
|
/**
|
|
2379
|
-
* Previous
|
|
1140
|
+
* Previous group name (null if no previous name)
|
|
2380
1141
|
*/
|
|
2381
1142
|
old_value?: string | null;
|
|
2382
1143
|
}
|
|
2383
1144
|
}
|
|
2384
1145
|
/**
|
|
2385
|
-
* Complete webhook payload for chat.
|
|
1146
|
+
* Complete webhook payload for chat.group_icon_updated events
|
|
2386
1147
|
*/
|
|
2387
|
-
export interface
|
|
1148
|
+
export interface ChatGroupIconUpdatedWebhookEvent {
|
|
2388
1149
|
/**
|
|
2389
1150
|
* API version for the webhook payload format
|
|
2390
1151
|
*/
|
|
@@ -2394,11 +1155,9 @@ export interface ChatGroupNameUpdateFailedV2025_01_01WebhookEvent {
|
|
|
2394
1155
|
*/
|
|
2395
1156
|
created_at: string;
|
|
2396
1157
|
/**
|
|
2397
|
-
*
|
|
2398
|
-
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
2399
|
-
* code reference.
|
|
1158
|
+
* Payload for chat.group_icon_updated webhook events
|
|
2400
1159
|
*/
|
|
2401
|
-
data:
|
|
1160
|
+
data: ChatGroupIconUpdatedWebhookEvent.Data;
|
|
2402
1161
|
/**
|
|
2403
1162
|
* Unique identifier for this event (for deduplication)
|
|
2404
1163
|
*/
|
|
@@ -2426,11 +1185,9 @@ export interface ChatGroupNameUpdateFailedV2025_01_01WebhookEvent {
|
|
|
2426
1185
|
*/
|
|
2427
1186
|
webhook_version: string;
|
|
2428
1187
|
}
|
|
2429
|
-
export declare namespace
|
|
1188
|
+
export declare namespace ChatGroupIconUpdatedWebhookEvent {
|
|
2430
1189
|
/**
|
|
2431
|
-
*
|
|
2432
|
-
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
2433
|
-
* code reference.
|
|
1190
|
+
* Payload for chat.group_icon_updated webhook events
|
|
2434
1191
|
*/
|
|
2435
1192
|
interface Data {
|
|
2436
1193
|
/**
|
|
@@ -2438,19 +1195,27 @@ export declare namespace ChatGroupNameUpdateFailedV2025_01_01WebhookEvent {
|
|
|
2438
1195
|
*/
|
|
2439
1196
|
chat_id: string;
|
|
2440
1197
|
/**
|
|
2441
|
-
*
|
|
1198
|
+
* When the update occurred
|
|
2442
1199
|
*/
|
|
2443
|
-
|
|
1200
|
+
updated_at: string;
|
|
2444
1201
|
/**
|
|
2445
|
-
*
|
|
1202
|
+
* The handle who made the change.
|
|
2446
1203
|
*/
|
|
2447
|
-
|
|
1204
|
+
changed_by_handle?: Shared.ChatHandle | null;
|
|
1205
|
+
/**
|
|
1206
|
+
* New icon URL (null if the icon was removed)
|
|
1207
|
+
*/
|
|
1208
|
+
new_value?: string | null;
|
|
1209
|
+
/**
|
|
1210
|
+
* Previous icon URL (null if no previous icon)
|
|
1211
|
+
*/
|
|
1212
|
+
old_value?: string | null;
|
|
2448
1213
|
}
|
|
2449
1214
|
}
|
|
2450
1215
|
/**
|
|
2451
|
-
* Complete webhook payload for chat.
|
|
1216
|
+
* Complete webhook payload for chat.group_name_update_failed events
|
|
2452
1217
|
*/
|
|
2453
|
-
export interface
|
|
1218
|
+
export interface ChatGroupNameUpdateFailedWebhookEvent {
|
|
2454
1219
|
/**
|
|
2455
1220
|
* API version for the webhook payload format
|
|
2456
1221
|
*/
|
|
@@ -2460,11 +1225,11 @@ export interface ChatGroupIconUpdateFailedV2025_01_01WebhookEvent {
|
|
|
2460
1225
|
*/
|
|
2461
1226
|
created_at: string;
|
|
2462
1227
|
/**
|
|
2463
|
-
* Error details for chat.
|
|
1228
|
+
* Error details for chat.group_name_update_failed webhook events. See
|
|
2464
1229
|
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
2465
1230
|
* code reference.
|
|
2466
1231
|
*/
|
|
2467
|
-
data:
|
|
1232
|
+
data: ChatGroupNameUpdateFailedWebhookEvent.Data;
|
|
2468
1233
|
/**
|
|
2469
1234
|
* Unique identifier for this event (for deduplication)
|
|
2470
1235
|
*/
|
|
@@ -2492,9 +1257,9 @@ export interface ChatGroupIconUpdateFailedV2025_01_01WebhookEvent {
|
|
|
2492
1257
|
*/
|
|
2493
1258
|
webhook_version: string;
|
|
2494
1259
|
}
|
|
2495
|
-
export declare namespace
|
|
1260
|
+
export declare namespace ChatGroupNameUpdateFailedWebhookEvent {
|
|
2496
1261
|
/**
|
|
2497
|
-
* Error details for chat.
|
|
1262
|
+
* Error details for chat.group_name_update_failed webhook events. See
|
|
2498
1263
|
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
2499
1264
|
* code reference.
|
|
2500
1265
|
*/
|
|
@@ -2514,9 +1279,9 @@ export declare namespace ChatGroupIconUpdateFailedV2025_01_01WebhookEvent {
|
|
|
2514
1279
|
}
|
|
2515
1280
|
}
|
|
2516
1281
|
/**
|
|
2517
|
-
* Complete webhook payload for chat.
|
|
1282
|
+
* Complete webhook payload for chat.group_icon_update_failed events
|
|
2518
1283
|
*/
|
|
2519
|
-
export interface
|
|
1284
|
+
export interface ChatGroupIconUpdateFailedWebhookEvent {
|
|
2520
1285
|
/**
|
|
2521
1286
|
* API version for the webhook payload format
|
|
2522
1287
|
*/
|
|
@@ -2526,10 +1291,11 @@ export interface ChatCreatedV2025_01_01WebhookEvent {
|
|
|
2526
1291
|
*/
|
|
2527
1292
|
created_at: string;
|
|
2528
1293
|
/**
|
|
2529
|
-
*
|
|
2530
|
-
*
|
|
1294
|
+
* Error details for chat.group_icon_update_failed webhook events. See
|
|
1295
|
+
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
1296
|
+
* code reference.
|
|
2531
1297
|
*/
|
|
2532
|
-
data:
|
|
1298
|
+
data: ChatGroupIconUpdateFailedWebhookEvent.Data;
|
|
2533
1299
|
/**
|
|
2534
1300
|
* Unique identifier for this event (for deduplication)
|
|
2535
1301
|
*/
|
|
@@ -2557,48 +1323,31 @@ export interface ChatCreatedV2025_01_01WebhookEvent {
|
|
|
2557
1323
|
*/
|
|
2558
1324
|
webhook_version: string;
|
|
2559
1325
|
}
|
|
2560
|
-
export declare namespace
|
|
1326
|
+
export declare namespace ChatGroupIconUpdateFailedWebhookEvent {
|
|
2561
1327
|
/**
|
|
2562
|
-
*
|
|
2563
|
-
*
|
|
1328
|
+
* Error details for chat.group_icon_update_failed webhook events. See
|
|
1329
|
+
* [WebhookErrorCode](#/components/schemas/WebhookErrorCode) for the full error
|
|
1330
|
+
* code reference.
|
|
2564
1331
|
*/
|
|
2565
1332
|
interface Data {
|
|
2566
1333
|
/**
|
|
2567
|
-
*
|
|
2568
|
-
*/
|
|
2569
|
-
id: string;
|
|
2570
|
-
/**
|
|
2571
|
-
* When the chat was created
|
|
2572
|
-
*/
|
|
2573
|
-
created_at: string;
|
|
2574
|
-
/**
|
|
2575
|
-
* Display name for the chat. Defaults to a comma-separated list of recipient
|
|
2576
|
-
* handles. Can be updated for group chats.
|
|
2577
|
-
*/
|
|
2578
|
-
display_name: string | null;
|
|
2579
|
-
/**
|
|
2580
|
-
* List of chat participants with full handle details. Always contains at least two
|
|
2581
|
-
* handles (your phone number and the other participant).
|
|
2582
|
-
*/
|
|
2583
|
-
handles: Array<Shared.ChatHandle>;
|
|
2584
|
-
/**
|
|
2585
|
-
* Whether this is a group chat
|
|
1334
|
+
* Chat identifier (UUID) of the group chat
|
|
2586
1335
|
*/
|
|
2587
|
-
|
|
1336
|
+
chat_id: string;
|
|
2588
1337
|
/**
|
|
2589
|
-
*
|
|
1338
|
+
* Error codes in webhook failure events (3007, 4001).
|
|
2590
1339
|
*/
|
|
2591
|
-
|
|
1340
|
+
error_code: number;
|
|
2592
1341
|
/**
|
|
2593
|
-
*
|
|
1342
|
+
* When the failure was detected
|
|
2594
1343
|
*/
|
|
2595
|
-
|
|
1344
|
+
failed_at: string;
|
|
2596
1345
|
}
|
|
2597
1346
|
}
|
|
2598
1347
|
/**
|
|
2599
1348
|
* Complete webhook payload for chat.typing_indicator.started events
|
|
2600
1349
|
*/
|
|
2601
|
-
export interface
|
|
1350
|
+
export interface ChatTypingIndicatorStartedWebhookEvent {
|
|
2602
1351
|
/**
|
|
2603
1352
|
* API version for the webhook payload format
|
|
2604
1353
|
*/
|
|
@@ -2610,7 +1359,7 @@ export interface ChatTypingIndicatorStartedV2025_01_01WebhookEvent {
|
|
|
2610
1359
|
/**
|
|
2611
1360
|
* Payload for chat.typing_indicator.started webhook events
|
|
2612
1361
|
*/
|
|
2613
|
-
data:
|
|
1362
|
+
data: ChatTypingIndicatorStartedWebhookEvent.Data;
|
|
2614
1363
|
/**
|
|
2615
1364
|
* Unique identifier for this event (for deduplication)
|
|
2616
1365
|
*/
|
|
@@ -2638,7 +1387,7 @@ export interface ChatTypingIndicatorStartedV2025_01_01WebhookEvent {
|
|
|
2638
1387
|
*/
|
|
2639
1388
|
webhook_version: string;
|
|
2640
1389
|
}
|
|
2641
|
-
export declare namespace
|
|
1390
|
+
export declare namespace ChatTypingIndicatorStartedWebhookEvent {
|
|
2642
1391
|
/**
|
|
2643
1392
|
* Payload for chat.typing_indicator.started webhook events
|
|
2644
1393
|
*/
|
|
@@ -2652,7 +1401,7 @@ export declare namespace ChatTypingIndicatorStartedV2025_01_01WebhookEvent {
|
|
|
2652
1401
|
/**
|
|
2653
1402
|
* Complete webhook payload for chat.typing_indicator.stopped events
|
|
2654
1403
|
*/
|
|
2655
|
-
export interface
|
|
1404
|
+
export interface ChatTypingIndicatorStoppedWebhookEvent {
|
|
2656
1405
|
/**
|
|
2657
1406
|
* API version for the webhook payload format
|
|
2658
1407
|
*/
|
|
@@ -2664,7 +1413,7 @@ export interface ChatTypingIndicatorStoppedV2025_01_01WebhookEvent {
|
|
|
2664
1413
|
/**
|
|
2665
1414
|
* Payload for chat.typing_indicator.stopped webhook events
|
|
2666
1415
|
*/
|
|
2667
|
-
data:
|
|
1416
|
+
data: ChatTypingIndicatorStoppedWebhookEvent.Data;
|
|
2668
1417
|
/**
|
|
2669
1418
|
* Unique identifier for this event (for deduplication)
|
|
2670
1419
|
*/
|
|
@@ -2692,7 +1441,7 @@ export interface ChatTypingIndicatorStoppedV2025_01_01WebhookEvent {
|
|
|
2692
1441
|
*/
|
|
2693
1442
|
webhook_version: string;
|
|
2694
1443
|
}
|
|
2695
|
-
export declare namespace
|
|
1444
|
+
export declare namespace ChatTypingIndicatorStoppedWebhookEvent {
|
|
2696
1445
|
/**
|
|
2697
1446
|
* Payload for chat.typing_indicator.stopped webhook events
|
|
2698
1447
|
*/
|
|
@@ -2706,7 +1455,7 @@ export declare namespace ChatTypingIndicatorStoppedV2025_01_01WebhookEvent {
|
|
|
2706
1455
|
/**
|
|
2707
1456
|
* Complete webhook payload for phone_number.status_updated events
|
|
2708
1457
|
*/
|
|
2709
|
-
export interface
|
|
1458
|
+
export interface PhoneNumberStatusUpdatedWebhookEvent {
|
|
2710
1459
|
/**
|
|
2711
1460
|
* API version for the webhook payload format
|
|
2712
1461
|
*/
|
|
@@ -2718,7 +1467,7 @@ export interface PhoneNumberStatusUpdatedV2025_01_01WebhookEvent {
|
|
|
2718
1467
|
/**
|
|
2719
1468
|
* Payload for phone_number.status_updated webhook events
|
|
2720
1469
|
*/
|
|
2721
|
-
data:
|
|
1470
|
+
data: PhoneNumberStatusUpdatedWebhookEvent.Data;
|
|
2722
1471
|
/**
|
|
2723
1472
|
* Unique identifier for this event (for deduplication)
|
|
2724
1473
|
*/
|
|
@@ -2742,7 +1491,7 @@ export interface PhoneNumberStatusUpdatedV2025_01_01WebhookEvent {
|
|
|
2742
1491
|
*/
|
|
2743
1492
|
webhook_version: string;
|
|
2744
1493
|
}
|
|
2745
|
-
export declare namespace
|
|
1494
|
+
export declare namespace PhoneNumberStatusUpdatedWebhookEvent {
|
|
2746
1495
|
/**
|
|
2747
1496
|
* Payload for phone_number.status_updated webhook events
|
|
2748
1497
|
*/
|
|
@@ -2768,8 +1517,8 @@ export declare namespace PhoneNumberStatusUpdatedV2025_01_01WebhookEvent {
|
|
|
2768
1517
|
/**
|
|
2769
1518
|
* Complete webhook payload for message.sent events (2026-02-03 format)
|
|
2770
1519
|
*/
|
|
2771
|
-
export type EventsWebhookEvent =
|
|
1520
|
+
export type EventsWebhookEvent = MessageSentWebhookEvent | MessageReceivedWebhookEvent | MessageReadWebhookEvent | MessageDeliveredWebhookEvent | MessageFailedWebhookEvent | MessageEditedWebhookEvent | ReactionAddedWebhookEvent | ReactionRemovedWebhookEvent | ParticipantAddedWebhookEvent | ParticipantRemovedWebhookEvent | ChatCreatedWebhookEvent | ChatGroupNameUpdatedWebhookEvent | ChatGroupIconUpdatedWebhookEvent | ChatGroupNameUpdateFailedWebhookEvent | ChatGroupIconUpdateFailedWebhookEvent | ChatTypingIndicatorStartedWebhookEvent | ChatTypingIndicatorStoppedWebhookEvent | PhoneNumberStatusUpdatedWebhookEvent;
|
|
2772
1521
|
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
|
|
1522
|
+
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 MessageSentWebhookEvent as MessageSentWebhookEvent, type MessageReceivedWebhookEvent as MessageReceivedWebhookEvent, type MessageReadWebhookEvent as MessageReadWebhookEvent, type MessageDeliveredWebhookEvent as MessageDeliveredWebhookEvent, type MessageFailedWebhookEvent as MessageFailedWebhookEvent, type MessageEditedWebhookEvent as MessageEditedWebhookEvent, type ReactionAddedWebhookEvent as ReactionAddedWebhookEvent, type ReactionRemovedWebhookEvent as ReactionRemovedWebhookEvent, type ParticipantAddedWebhookEvent as ParticipantAddedWebhookEvent, type ParticipantRemovedWebhookEvent as ParticipantRemovedWebhookEvent, type ChatCreatedWebhookEvent as ChatCreatedWebhookEvent, type ChatGroupNameUpdatedWebhookEvent as ChatGroupNameUpdatedWebhookEvent, type ChatGroupIconUpdatedWebhookEvent as ChatGroupIconUpdatedWebhookEvent, type ChatGroupNameUpdateFailedWebhookEvent as ChatGroupNameUpdateFailedWebhookEvent, type ChatGroupIconUpdateFailedWebhookEvent as ChatGroupIconUpdateFailedWebhookEvent, type ChatTypingIndicatorStartedWebhookEvent as ChatTypingIndicatorStartedWebhookEvent, type ChatTypingIndicatorStoppedWebhookEvent as ChatTypingIndicatorStoppedWebhookEvent, type PhoneNumberStatusUpdatedWebhookEvent as PhoneNumberStatusUpdatedWebhookEvent, type EventsWebhookEvent as EventsWebhookEvent, };
|
|
2774
1523
|
}
|
|
2775
1524
|
//# sourceMappingURL=webhooks.d.mts.map
|