@getlatedev/node 0.2.1142 → 0.2.1143
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/dist/index.d.mts +180 -0
- package/dist/index.d.ts +180 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +9 -0
- package/src/generated/types.gen.ts +180 -0
package/dist/index.d.mts
CHANGED
|
@@ -13625,6 +13625,10 @@ type WebhookLog = {
|
|
|
13625
13625
|
* Event type that triggered the delivery (e.g. post.published)
|
|
13626
13626
|
*/
|
|
13627
13627
|
event?: string;
|
|
13628
|
+
/**
|
|
13629
|
+
* true when the delivery was a sample fired by POST /v1/webhooks/test with an event, not a real event. Absent otherwise.
|
|
13630
|
+
*/
|
|
13631
|
+
test?: boolean;
|
|
13628
13632
|
/**
|
|
13629
13633
|
* Destination URL the webhook was delivered to
|
|
13630
13634
|
*/
|
|
@@ -13679,6 +13683,10 @@ type WebhookPayloadAccountAdsInitialSyncCompleted = {
|
|
|
13679
13683
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
13680
13684
|
*/
|
|
13681
13685
|
id: string;
|
|
13686
|
+
/**
|
|
13687
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
13688
|
+
*/
|
|
13689
|
+
test?: boolean;
|
|
13682
13690
|
event: 'account.ads.initial_sync_completed';
|
|
13683
13691
|
account: {
|
|
13684
13692
|
/**
|
|
@@ -13804,6 +13812,10 @@ type WebhookPayloadAccountAdsSyncFailed = {
|
|
|
13804
13812
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery.
|
|
13805
13813
|
*/
|
|
13806
13814
|
id: string;
|
|
13815
|
+
/**
|
|
13816
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
13817
|
+
*/
|
|
13818
|
+
test?: boolean;
|
|
13807
13819
|
event: 'account.ads.sync_failed';
|
|
13808
13820
|
account: WebhookAdsSyncAccount;
|
|
13809
13821
|
adAccount: WebhookAdsSyncAdAccount;
|
|
@@ -13850,6 +13862,10 @@ type WebhookPayloadAccountAdsSyncRecovered = {
|
|
|
13850
13862
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery.
|
|
13851
13863
|
*/
|
|
13852
13864
|
id: string;
|
|
13865
|
+
/**
|
|
13866
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
13867
|
+
*/
|
|
13868
|
+
test?: boolean;
|
|
13853
13869
|
event: 'account.ads.sync_recovered';
|
|
13854
13870
|
account: WebhookAdsSyncAccount;
|
|
13855
13871
|
adAccount: WebhookAdsSyncAdAccount;
|
|
@@ -13874,6 +13890,10 @@ type WebhookPayloadAccountConnected = {
|
|
|
13874
13890
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
13875
13891
|
*/
|
|
13876
13892
|
id: string;
|
|
13893
|
+
/**
|
|
13894
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
13895
|
+
*/
|
|
13896
|
+
test?: boolean;
|
|
13877
13897
|
event: 'account.connected';
|
|
13878
13898
|
account: {
|
|
13879
13899
|
/**
|
|
@@ -13902,6 +13922,10 @@ type WebhookPayloadAccountDisconnected = {
|
|
|
13902
13922
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
13903
13923
|
*/
|
|
13904
13924
|
id: string;
|
|
13925
|
+
/**
|
|
13926
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
13927
|
+
*/
|
|
13928
|
+
test?: boolean;
|
|
13905
13929
|
event: 'account.disconnected';
|
|
13906
13930
|
account: {
|
|
13907
13931
|
/**
|
|
@@ -13957,6 +13981,10 @@ type WebhookPayloadAdStatusChanged = {
|
|
|
13957
13981
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
13958
13982
|
*/
|
|
13959
13983
|
id: string;
|
|
13984
|
+
/**
|
|
13985
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
13986
|
+
*/
|
|
13987
|
+
test?: boolean;
|
|
13960
13988
|
event: 'ad.status_changed';
|
|
13961
13989
|
/**
|
|
13962
13990
|
* The connected ad-platform account that owns the ad object.
|
|
@@ -14069,6 +14097,10 @@ type WebhookPayloadAdVideoProcessed = {
|
|
|
14069
14097
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery.
|
|
14070
14098
|
*/
|
|
14071
14099
|
id: string;
|
|
14100
|
+
/**
|
|
14101
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
14102
|
+
*/
|
|
14103
|
+
test?: boolean;
|
|
14072
14104
|
event: 'ad.video.processed';
|
|
14073
14105
|
/**
|
|
14074
14106
|
* The connected ads account the video was uploaded with.
|
|
@@ -14153,6 +14185,10 @@ type WebhookPayloadAnalyticsSynced = {
|
|
|
14153
14185
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
14154
14186
|
*/
|
|
14155
14187
|
id: string;
|
|
14188
|
+
/**
|
|
14189
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
14190
|
+
*/
|
|
14191
|
+
test?: boolean;
|
|
14156
14192
|
event: 'analytics.synced';
|
|
14157
14193
|
account: {
|
|
14158
14194
|
/**
|
|
@@ -14197,6 +14233,10 @@ type WebhookPayloadApiChangelogPublished = {
|
|
|
14197
14233
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
14198
14234
|
*/
|
|
14199
14235
|
id: string;
|
|
14236
|
+
/**
|
|
14237
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
14238
|
+
*/
|
|
14239
|
+
test?: boolean;
|
|
14200
14240
|
event: 'api.changelog.published';
|
|
14201
14241
|
entry: ApiChangelogEntry;
|
|
14202
14242
|
/**
|
|
@@ -14211,6 +14251,10 @@ type event9 = 'api.changelog.published';
|
|
|
14211
14251
|
*
|
|
14212
14252
|
*/
|
|
14213
14253
|
type WebhookPayloadCallEnded = {
|
|
14254
|
+
/**
|
|
14255
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
14256
|
+
*/
|
|
14257
|
+
test?: boolean;
|
|
14214
14258
|
/**
|
|
14215
14259
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
14216
14260
|
*/
|
|
@@ -14279,6 +14323,10 @@ type event10 = 'call.ended';
|
|
|
14279
14323
|
*
|
|
14280
14324
|
*/
|
|
14281
14325
|
type WebhookPayloadCallFailed = {
|
|
14326
|
+
/**
|
|
14327
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
14328
|
+
*/
|
|
14329
|
+
test?: boolean;
|
|
14282
14330
|
/**
|
|
14283
14331
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
14284
14332
|
*/
|
|
@@ -14312,6 +14360,10 @@ type event11 = 'call.failed';
|
|
|
14312
14360
|
*
|
|
14313
14361
|
*/
|
|
14314
14362
|
type WebhookPayloadCallPermissionRequest = {
|
|
14363
|
+
/**
|
|
14364
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
14365
|
+
*/
|
|
14366
|
+
test?: boolean;
|
|
14315
14367
|
/**
|
|
14316
14368
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
14317
14369
|
*/
|
|
@@ -14348,6 +14400,10 @@ type response = 'accept' | 'reject';
|
|
|
14348
14400
|
*
|
|
14349
14401
|
*/
|
|
14350
14402
|
type WebhookPayloadCallReceived = {
|
|
14403
|
+
/**
|
|
14404
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
14405
|
+
*/
|
|
14406
|
+
test?: boolean;
|
|
14351
14407
|
/**
|
|
14352
14408
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
14353
14409
|
*/
|
|
@@ -14399,6 +14455,10 @@ type WebhookPayloadComment = {
|
|
|
14399
14455
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
14400
14456
|
*/
|
|
14401
14457
|
id: string;
|
|
14458
|
+
/**
|
|
14459
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
14460
|
+
*/
|
|
14461
|
+
test?: boolean;
|
|
14402
14462
|
event: 'comment.received';
|
|
14403
14463
|
comment: {
|
|
14404
14464
|
/**
|
|
@@ -14555,6 +14615,10 @@ type WebhookPayloadComment = {
|
|
|
14555
14615
|
type event14 = 'comment.received';
|
|
14556
14616
|
type platform13 = 'instagram' | 'facebook' | 'threads' | 'youtube' | 'linkedin' | 'bluesky' | 'reddit' | 'tiktok';
|
|
14557
14617
|
type WebhookPayloadCommerceProduct = {
|
|
14618
|
+
/**
|
|
14619
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
14620
|
+
*/
|
|
14621
|
+
test?: boolean;
|
|
14558
14622
|
id?: string;
|
|
14559
14623
|
event?: 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted';
|
|
14560
14624
|
/**
|
|
@@ -14591,6 +14655,10 @@ type WebhookPayloadCommerceProduct = {
|
|
|
14591
14655
|
type event15 = 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted';
|
|
14592
14656
|
type type17 = 'product';
|
|
14593
14657
|
type WebhookPayloadContactFieldChanged = {
|
|
14658
|
+
/**
|
|
14659
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
14660
|
+
*/
|
|
14661
|
+
test?: boolean;
|
|
14594
14662
|
/**
|
|
14595
14663
|
* Event id, the dedupe key.
|
|
14596
14664
|
*/
|
|
@@ -14626,6 +14694,10 @@ type event16 = 'contact.field_changed';
|
|
|
14626
14694
|
*/
|
|
14627
14695
|
type source4 = 'api' | 'workflow' | 'automation';
|
|
14628
14696
|
type WebhookPayloadContactTag = {
|
|
14697
|
+
/**
|
|
14698
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
14699
|
+
*/
|
|
14700
|
+
test?: boolean;
|
|
14629
14701
|
/**
|
|
14630
14702
|
* Event id, the dedupe key.
|
|
14631
14703
|
*/
|
|
@@ -14652,6 +14724,10 @@ type event17 = 'contact.tag_added' | 'contact.tag_removed';
|
|
|
14652
14724
|
*
|
|
14653
14725
|
*/
|
|
14654
14726
|
type WebhookPayloadConversationControlChanged = {
|
|
14727
|
+
/**
|
|
14728
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
14729
|
+
*/
|
|
14730
|
+
test?: boolean;
|
|
14655
14731
|
/**
|
|
14656
14732
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
14657
14733
|
*/
|
|
@@ -14700,6 +14776,10 @@ type previousOwner = 'app' | 'ai_agent' | 'other';
|
|
|
14700
14776
|
*
|
|
14701
14777
|
*/
|
|
14702
14778
|
type WebhookPayloadConversationStarted = {
|
|
14779
|
+
/**
|
|
14780
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
14781
|
+
*/
|
|
14782
|
+
test?: boolean;
|
|
14703
14783
|
/**
|
|
14704
14784
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
14705
14785
|
*/
|
|
@@ -14730,6 +14810,10 @@ type WebhookPayloadExternalPost = {
|
|
|
14730
14810
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
14731
14811
|
*/
|
|
14732
14812
|
id: string;
|
|
14813
|
+
/**
|
|
14814
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
14815
|
+
*/
|
|
14816
|
+
test?: boolean;
|
|
14733
14817
|
event: 'post.external.created' | 'post.external.updated' | 'post.external.deleted';
|
|
14734
14818
|
post: ExternalPostWebhookPost;
|
|
14735
14819
|
account: {
|
|
@@ -14755,6 +14839,10 @@ type WebhookPayloadLead = {
|
|
|
14755
14839
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
14756
14840
|
*/
|
|
14757
14841
|
id: string;
|
|
14842
|
+
/**
|
|
14843
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
14844
|
+
*/
|
|
14845
|
+
test?: boolean;
|
|
14758
14846
|
event: 'lead.received';
|
|
14759
14847
|
lead: {
|
|
14760
14848
|
/**
|
|
@@ -14825,6 +14913,10 @@ type WebhookPayloadMessage = {
|
|
|
14825
14913
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
14826
14914
|
*/
|
|
14827
14915
|
id: string;
|
|
14916
|
+
/**
|
|
14917
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
14918
|
+
*/
|
|
14919
|
+
test?: boolean;
|
|
14828
14920
|
event: 'message.received';
|
|
14829
14921
|
message: {
|
|
14830
14922
|
/**
|
|
@@ -15440,6 +15532,10 @@ type contactsOrigin = 'contact_request' | 'other';
|
|
|
15440
15532
|
*
|
|
15441
15533
|
*/
|
|
15442
15534
|
type WebhookPayloadMessageDeleted = {
|
|
15535
|
+
/**
|
|
15536
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
15537
|
+
*/
|
|
15538
|
+
test?: boolean;
|
|
15443
15539
|
/**
|
|
15444
15540
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
15445
15541
|
*/
|
|
@@ -15471,6 +15567,10 @@ type event23 = 'message.deleted';
|
|
|
15471
15567
|
*
|
|
15472
15568
|
*/
|
|
15473
15569
|
type WebhookPayloadMessageDeliveryStatus = {
|
|
15570
|
+
/**
|
|
15571
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
15572
|
+
*/
|
|
15573
|
+
test?: boolean;
|
|
15474
15574
|
/**
|
|
15475
15575
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
15476
15576
|
*/
|
|
@@ -15526,6 +15626,10 @@ type event24 = 'message.delivered' | 'message.read' | 'message.played' | 'messag
|
|
|
15526
15626
|
*
|
|
15527
15627
|
*/
|
|
15528
15628
|
type WebhookPayloadMessageEdited = {
|
|
15629
|
+
/**
|
|
15630
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
15631
|
+
*/
|
|
15632
|
+
test?: boolean;
|
|
15529
15633
|
/**
|
|
15530
15634
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
15531
15635
|
*/
|
|
@@ -15560,6 +15664,10 @@ type WebhookPayloadMessageSent = {
|
|
|
15560
15664
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
15561
15665
|
*/
|
|
15562
15666
|
id: string;
|
|
15667
|
+
/**
|
|
15668
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
15669
|
+
*/
|
|
15670
|
+
test?: boolean;
|
|
15563
15671
|
event: 'message.sent';
|
|
15564
15672
|
message: {
|
|
15565
15673
|
/**
|
|
@@ -15804,6 +15912,10 @@ type WebhookPayloadPhoneNumberStockAvailable = {
|
|
|
15804
15912
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
15805
15913
|
*/
|
|
15806
15914
|
id: string;
|
|
15915
|
+
/**
|
|
15916
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
15917
|
+
*/
|
|
15918
|
+
test?: boolean;
|
|
15807
15919
|
event: 'phone_number.stock_available';
|
|
15808
15920
|
stock: {
|
|
15809
15921
|
/**
|
|
@@ -15846,6 +15958,10 @@ type WebhookPayloadPost = {
|
|
|
15846
15958
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
15847
15959
|
*/
|
|
15848
15960
|
id: string;
|
|
15961
|
+
/**
|
|
15962
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
15963
|
+
*/
|
|
15964
|
+
test?: boolean;
|
|
15849
15965
|
event: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled';
|
|
15850
15966
|
post: {
|
|
15851
15967
|
id: string;
|
|
@@ -15911,6 +16027,10 @@ type WebhookPayloadPostPlatform = {
|
|
|
15911
16027
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
15912
16028
|
*/
|
|
15913
16029
|
id: string;
|
|
16030
|
+
/**
|
|
16031
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
16032
|
+
*/
|
|
16033
|
+
test?: boolean;
|
|
15914
16034
|
event: 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved';
|
|
15915
16035
|
post: {
|
|
15916
16036
|
id: string;
|
|
@@ -16015,6 +16135,10 @@ type WebhookPayloadReaction = {
|
|
|
16015
16135
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
16016
16136
|
*/
|
|
16017
16137
|
id: string;
|
|
16138
|
+
/**
|
|
16139
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
16140
|
+
*/
|
|
16141
|
+
test?: boolean;
|
|
16018
16142
|
event: 'reaction.received';
|
|
16019
16143
|
reaction: {
|
|
16020
16144
|
/**
|
|
@@ -16069,6 +16193,10 @@ type WebhookPayloadReferral = {
|
|
|
16069
16193
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
16070
16194
|
*/
|
|
16071
16195
|
id: string;
|
|
16196
|
+
/**
|
|
16197
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
16198
|
+
*/
|
|
16199
|
+
test?: boolean;
|
|
16072
16200
|
event: 'referral.received';
|
|
16073
16201
|
/**
|
|
16074
16202
|
* Meta's referral object, forwarded verbatim. Same shape as
|
|
@@ -16139,6 +16267,10 @@ type WebhookPayloadReviewNew = {
|
|
|
16139
16267
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
16140
16268
|
*/
|
|
16141
16269
|
id: string;
|
|
16270
|
+
/**
|
|
16271
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
16272
|
+
*/
|
|
16273
|
+
test?: boolean;
|
|
16142
16274
|
event: 'review.new';
|
|
16143
16275
|
review: ReviewWebhookReview;
|
|
16144
16276
|
account: {
|
|
@@ -16170,6 +16302,10 @@ type WebhookPayloadReviewUpdated = {
|
|
|
16170
16302
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
16171
16303
|
*/
|
|
16172
16304
|
id: string;
|
|
16305
|
+
/**
|
|
16306
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
16307
|
+
*/
|
|
16308
|
+
test?: boolean;
|
|
16173
16309
|
event: 'review.updated';
|
|
16174
16310
|
review: ReviewWebhookReview;
|
|
16175
16311
|
account: {
|
|
@@ -16188,6 +16324,10 @@ type WebhookPayloadReviewUpdated = {
|
|
|
16188
16324
|
};
|
|
16189
16325
|
type event33 = 'review.updated';
|
|
16190
16326
|
type WebhookPayloadSequenceEnrollment = {
|
|
16327
|
+
/**
|
|
16328
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
16329
|
+
*/
|
|
16330
|
+
test?: boolean;
|
|
16191
16331
|
/**
|
|
16192
16332
|
* Event id, the dedupe key.
|
|
16193
16333
|
*/
|
|
@@ -16218,6 +16358,10 @@ type event34 = 'sequence.enrolled' | 'sequence.exited';
|
|
|
16218
16358
|
*/
|
|
16219
16359
|
type exitReason = 'completed' | 'replied' | 'manual' | 'failed' | 'unsubscribed';
|
|
16220
16360
|
type WebhookPayloadSupportRun = {
|
|
16361
|
+
/**
|
|
16362
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
16363
|
+
*/
|
|
16364
|
+
test?: boolean;
|
|
16221
16365
|
/**
|
|
16222
16366
|
* Event id, the dedupe key.
|
|
16223
16367
|
*/
|
|
@@ -16257,6 +16401,10 @@ type WebhookPayloadWhatsAppAccountAlertReceived = {
|
|
|
16257
16401
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
16258
16402
|
*/
|
|
16259
16403
|
id: string;
|
|
16404
|
+
/**
|
|
16405
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
16406
|
+
*/
|
|
16407
|
+
test?: boolean;
|
|
16260
16408
|
event: 'whatsapp.account.alert_received';
|
|
16261
16409
|
account: {
|
|
16262
16410
|
accountId: string;
|
|
@@ -16307,6 +16455,10 @@ type WebhookPayloadWhatsAppAccountNameStatusUpdated = {
|
|
|
16307
16455
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
16308
16456
|
*/
|
|
16309
16457
|
id: string;
|
|
16458
|
+
/**
|
|
16459
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
16460
|
+
*/
|
|
16461
|
+
test?: boolean;
|
|
16310
16462
|
event: 'whatsapp.account.name_status_updated';
|
|
16311
16463
|
account: {
|
|
16312
16464
|
accountId: string;
|
|
@@ -16354,6 +16506,10 @@ type WebhookPayloadWhatsAppAccountQualityUpdated = {
|
|
|
16354
16506
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
16355
16507
|
*/
|
|
16356
16508
|
id: string;
|
|
16509
|
+
/**
|
|
16510
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
16511
|
+
*/
|
|
16512
|
+
test?: boolean;
|
|
16357
16513
|
event: 'whatsapp.account.quality_updated';
|
|
16358
16514
|
account: {
|
|
16359
16515
|
accountId: string;
|
|
@@ -16404,6 +16560,10 @@ type WebhookPayloadWhatsAppAccountStatusUpdated = {
|
|
|
16404
16560
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
16405
16561
|
*/
|
|
16406
16562
|
id: string;
|
|
16563
|
+
/**
|
|
16564
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
16565
|
+
*/
|
|
16566
|
+
test?: boolean;
|
|
16407
16567
|
event: 'whatsapp.account.status_updated';
|
|
16408
16568
|
account: {
|
|
16409
16569
|
accountId: string;
|
|
@@ -16474,6 +16634,10 @@ type WebhookPayloadWhatsAppContactIdentityChanged = {
|
|
|
16474
16634
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
16475
16635
|
*/
|
|
16476
16636
|
id: string;
|
|
16637
|
+
/**
|
|
16638
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
16639
|
+
*/
|
|
16640
|
+
test?: boolean;
|
|
16477
16641
|
event: 'whatsapp.contact.identity_changed';
|
|
16478
16642
|
account: {
|
|
16479
16643
|
accountId: string;
|
|
@@ -16522,6 +16686,10 @@ type WebhookPayloadWhatsAppTemplateCategoryUpdated = {
|
|
|
16522
16686
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
16523
16687
|
*/
|
|
16524
16688
|
id: string;
|
|
16689
|
+
/**
|
|
16690
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
16691
|
+
*/
|
|
16692
|
+
test?: boolean;
|
|
16525
16693
|
event: 'whatsapp.template.category_updated';
|
|
16526
16694
|
account: {
|
|
16527
16695
|
accountId: string;
|
|
@@ -16602,6 +16770,10 @@ type WebhookPayloadWhatsAppTemplateStatusUpdated = {
|
|
|
16602
16770
|
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
16603
16771
|
*/
|
|
16604
16772
|
id: string;
|
|
16773
|
+
/**
|
|
16774
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
16775
|
+
*/
|
|
16776
|
+
test?: boolean;
|
|
16605
16777
|
event: 'whatsapp.template.status_updated';
|
|
16606
16778
|
account: {
|
|
16607
16779
|
accountId: string;
|
|
@@ -16651,6 +16823,10 @@ type event43 = 'whatsapp.template.status_updated';
|
|
|
16651
16823
|
*/
|
|
16652
16824
|
type status38 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
16653
16825
|
type WebhookPayloadWorkflowRun = {
|
|
16826
|
+
/**
|
|
16827
|
+
* Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
|
|
16828
|
+
*/
|
|
16829
|
+
test?: boolean;
|
|
16654
16830
|
/**
|
|
16655
16831
|
* Event id, the dedupe key.
|
|
16656
16832
|
*/
|
|
@@ -27283,6 +27459,10 @@ type TestWebhookData = {
|
|
|
27283
27459
|
* ID of the webhook to test
|
|
27284
27460
|
*/
|
|
27285
27461
|
webhookId: string;
|
|
27462
|
+
/**
|
|
27463
|
+
* Send a sample payload of this event instead of `webhook.test`. The sample is marked with `test: true`.
|
|
27464
|
+
*/
|
|
27465
|
+
event?: 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled' | 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved' | 'post.external.created' | 'post.external.updated' | 'post.external.deleted' | 'account.connected' | 'account.disconnected' | 'account.ads.initial_sync_completed' | 'account.ads.sync_failed' | 'account.ads.sync_recovered' | 'analytics.synced' | 'message.received' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.played' | 'message.failed' | 'reaction.received' | 'referral.received' | 'conversation.started' | 'conversation.control_changed' | 'contact.tag_added' | 'contact.tag_removed' | 'contact.field_changed' | 'sequence.enrolled' | 'sequence.exited' | 'workflow.run.started' | 'workflow.run.completed' | 'workflow.run.failed' | 'support.run.completed' | 'support.run.failed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'comment.received' | 'review.new' | 'review.updated' | 'ad.status_changed' | 'ad.video.processed' | 'lead.received' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | 'whatsapp.account.quality_updated' | 'whatsapp.account.status_updated' | 'whatsapp.account.alert_received' | 'whatsapp.contact.identity_changed' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.automatic_event' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'sms.registration.action_required' | 'sms.registration.status_updated' | 'branded_calling.identity.status_updated' | 'branded_calling.identity.action_required' | 'branded_calling.number.status_updated' | 'rcs.agent.status_updated' | 'verification.approved' | 'verification.failed' | 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted' | 'api.changelog.published';
|
|
27286
27466
|
};
|
|
27287
27467
|
};
|
|
27288
27468
|
type TestWebhookResponse = ({
|