@getlatedev/node 0.2.1279 → 0.2.1280

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.js CHANGED
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
36
36
  // package.json
37
37
  var package_default = {
38
38
  name: "@getlatedev/node",
39
- version: "0.2.1279",
39
+ version: "0.2.1280",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@getlatedev/node",
8
- version: "0.2.1279",
8
+ version: "0.2.1280",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1279",
3
+ "version": "0.2.1280",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -13273,7 +13273,7 @@ export type Webhook = {
13273
13273
  /**
13274
13274
  * Events subscribed to
13275
13275
  */
13276
- events?: Array<('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' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.played' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'ad.video.processed' | '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.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'api.changelog.published' | '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' | 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted' | 'commerce.order.created' | 'commerce.order.updated' | 'commerce.order.refunded' | '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')>;
13276
+ events?: Array<('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' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.played' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'ad.review.approved' | 'ad.review.rejected' | 'ad.video.processed' | '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.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'api.changelog.published' | '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' | 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted' | 'commerce.order.created' | 'commerce.order.updated' | 'commerce.order.refunded' | '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')>;
13277
13277
  /**
13278
13278
  * Whether webhook delivery is enabled
13279
13279
  */
@@ -13706,6 +13706,100 @@ export type event5 = 'account.disconnected';
13706
13706
  */
13707
13707
  export type disconnectionType = 'intentional' | 'unintentional';
13708
13708
 
13709
+ /**
13710
+ * Webhook payload for the `ad.review.approved` and `ad.review.rejected` events.
13711
+ * Emitted for every ad network Zernio syncs (Meta, Google, TikTok, LinkedIn,
13712
+ * Pinterest, X and the rest).
13713
+ *
13714
+ * Fires when an ad Zernio already tracked changes review outcome: it leaves
13715
+ * review as deliverable (`approved`), a rejection is overturned (`approved`), or
13716
+ * the platform rejects it (`rejected`). Ads seen for the first time by a sync,
13717
+ * including the history loaded when an account is connected, never fire it.
13718
+ * An ad that leaves review paused (for example its ad set is paused) sends no
13719
+ * `approved` event.
13720
+ *
13721
+ * Detected by Zernio's own ad sync (and, for Meta, the review poll), so it
13722
+ * arrives within one sync cycle of the platform's decision, not instantly.
13723
+ * Each outcome is delivered at most once per ad per 24 hours.
13724
+ *
13725
+ */
13726
+ export type WebhookPayloadAdReview = {
13727
+ /**
13728
+ * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery.
13729
+ */
13730
+ id: string;
13731
+ profiles?: WebhookProfiles;
13732
+ /**
13733
+ * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
13734
+ */
13735
+ test?: boolean;
13736
+ event: 'ad.review.approved' | 'ad.review.rejected';
13737
+ /**
13738
+ * The connected ads account that owns the ad.
13739
+ */
13740
+ account: {
13741
+ /**
13742
+ * Internal Zernio account ID (same as used in /v1/accounts/{accountId}).
13743
+ */
13744
+ accountId: string;
13745
+ /**
13746
+ * Internal Zernio profile ID this account belongs to.
13747
+ */
13748
+ profileId: string;
13749
+ /**
13750
+ * Ads connection platform (`metaads`, `googleads`, `tiktokads`, `linkedinads`, `pinterestads`, `xads`, ...).
13751
+ */
13752
+ platform: string;
13753
+ username: string;
13754
+ displayName?: (string) | null;
13755
+ };
13756
+ adObject: {
13757
+ /**
13758
+ * Always `AD`.
13759
+ */
13760
+ level: 'AD';
13761
+ /**
13762
+ * Platform-native ad ID.
13763
+ */
13764
+ platformId: string;
13765
+ /**
13766
+ * Platform-native ad account ID.
13767
+ */
13768
+ platformAdAccountId: string;
13769
+ /**
13770
+ * Zernio ad ID, usable with GET /v1/ads/{adId}.
13771
+ */
13772
+ adId: string;
13773
+ name: string;
13774
+ };
13775
+ review: {
13776
+ status: 'approved' | 'rejected';
13777
+ /**
13778
+ * Platform-native status string, forwarded verbatim (Meta `ACTIVE` / `DISAPPROVED`, TikTok `DISABLE`, ...).
13779
+ */
13780
+ raw: string;
13781
+ /**
13782
+ * Why the platform rejected the ad, when it says. Always empty on `approved`. Most networks only return a generic message today.
13783
+ */
13784
+ reasons: Array<{
13785
+ message: string;
13786
+ }>;
13787
+ };
13788
+ /**
13789
+ * UTC time at which Zernio generated this event.
13790
+ */
13791
+ timestamp: string;
13792
+ };
13793
+
13794
+ export type event6 = 'ad.review.approved' | 'ad.review.rejected';
13795
+
13796
+ /**
13797
+ * Always `AD`.
13798
+ */
13799
+ export type level2 = 'AD';
13800
+
13801
+ export type status38 = 'approved' | 'rejected';
13802
+
13709
13803
  /**
13710
13804
  * Webhook payload for the `ad.status_changed` event. Currently emitted
13711
13805
  * only for Meta (`metaads`).
@@ -13831,12 +13925,12 @@ export type WebhookPayloadAdStatusChanged = {
13831
13925
  timestamp: string;
13832
13926
  };
13833
13927
 
13834
- export type event6 = 'ad.status_changed';
13928
+ export type event7 = 'ad.status_changed';
13835
13929
 
13836
13930
  /**
13837
13931
  * Hierarchy level the status applies to. Mirrors Meta's `level`. Creative-level events are not forwarded.
13838
13932
  */
13839
- export type level2 = 'CAMPAIGN' | 'AD_SET' | 'AD';
13933
+ export type level3 = 'CAMPAIGN' | 'AD_SET' | 'AD';
13840
13934
 
13841
13935
  /**
13842
13936
  * Webhook payload for the `ad.video.processed` event. Fires once per
@@ -13902,12 +13996,12 @@ export type WebhookPayloadAdVideoProcessed = {
13902
13996
  timestamp: string;
13903
13997
  };
13904
13998
 
13905
- export type event7 = 'ad.video.processed';
13999
+ export type event8 = 'ad.video.processed';
13906
14000
 
13907
14001
  /**
13908
14002
  * `ready`: usable as `video.id` on the create endpoints. `error`: Meta could not process it; upload again.
13909
14003
  */
13910
- export type status38 = 'ready' | 'error';
14004
+ export type status39 = 'ready' | 'error';
13911
14005
 
13912
14006
  /**
13913
14007
  * Webhook payload for `analytics.synced`. Fired once per connected account each
@@ -13985,7 +14079,7 @@ export type WebhookPayloadAnalyticsSynced = {
13985
14079
  timestamp: string;
13986
14080
  };
13987
14081
 
13988
- export type event8 = 'analytics.synced';
14082
+ export type event9 = 'analytics.synced';
13989
14083
 
13990
14084
  export type WebhookPayloadApiChangelogPublished = {
13991
14085
  /**
@@ -14004,7 +14098,7 @@ export type WebhookPayloadApiChangelogPublished = {
14004
14098
  timestamp: string;
14005
14099
  };
14006
14100
 
14007
- export type event9 = 'api.changelog.published';
14101
+ export type event10 = 'api.changelog.published';
14008
14102
 
14009
14103
  /**
14010
14104
  * Webhook payload for the `call.ended` event. Fires on call hangup
@@ -14079,7 +14173,7 @@ export type WebhookPayloadCallEnded = {
14079
14173
  timestamp: string;
14080
14174
  };
14081
14175
 
14082
- export type event10 = 'call.ended';
14176
+ export type event11 = 'call.ended';
14083
14177
 
14084
14178
  /**
14085
14179
  * Webhook payload for the `call.failed` event. Fired when a call
@@ -14118,7 +14212,7 @@ export type WebhookPayloadCallFailed = {
14118
14212
  timestamp: string;
14119
14213
  };
14120
14214
 
14121
- export type event11 = 'call.failed';
14215
+ export type event12 = 'call.failed';
14122
14216
 
14123
14217
  /**
14124
14218
  * Webhook payload for the `call.permission_request` event. Fires
@@ -14160,7 +14254,7 @@ export type WebhookPayloadCallPermissionRequest = {
14160
14254
  timestamp: string;
14161
14255
  };
14162
14256
 
14163
- export type event12 = 'call.permission_request';
14257
+ export type event13 = 'call.permission_request';
14164
14258
 
14165
14259
  export type response = 'accept' | 'reject';
14166
14260
 
@@ -14219,7 +14313,7 @@ export type WebhookPayloadCallReceived = {
14219
14313
  timestamp: string;
14220
14314
  };
14221
14315
 
14222
- export type event13 = 'call.received';
14316
+ export type event14 = 'call.received';
14223
14317
 
14224
14318
  /**
14225
14319
  * Webhook payload for comment received events (Instagram, Facebook, Threads, YouTube, LinkedIn, Bluesky, Reddit, TikTok). X/Twitter does NOT fire this event. TikTok events carry only the author id: the comment.update webhook has no username, picture or owner flag.
@@ -14396,7 +14490,7 @@ export type WebhookPayloadComment = {
14396
14490
  timestamp: string;
14397
14491
  };
14398
14492
 
14399
- export type event14 = 'comment.received';
14493
+ export type event15 = 'comment.received';
14400
14494
 
14401
14495
  export type platform15 = 'instagram' | 'facebook' | 'threads' | 'youtube' | 'linkedin' | 'bluesky' | 'reddit' | 'tiktok';
14402
14496
 
@@ -14442,7 +14536,7 @@ export type WebhookPayloadCommerceOrder = {
14442
14536
  };
14443
14537
  };
14444
14538
 
14445
- export type event15 = 'commerce.order.created' | 'commerce.order.updated' | 'commerce.order.refunded';
14539
+ export type event16 = 'commerce.order.created' | 'commerce.order.updated' | 'commerce.order.refunded';
14446
14540
 
14447
14541
  export type type17 = 'order';
14448
14542
 
@@ -14485,7 +14579,7 @@ export type WebhookPayloadCommerceProduct = {
14485
14579
  };
14486
14580
  };
14487
14581
 
14488
- export type event16 = 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted';
14582
+ export type event17 = 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted';
14489
14583
 
14490
14584
  export type type18 = 'product';
14491
14585
 
@@ -14525,7 +14619,7 @@ export type WebhookPayloadContactFieldChanged = {
14525
14619
  source: 'api' | 'workflow' | 'automation';
14526
14620
  };
14527
14621
 
14528
- export type event17 = 'contact.field_changed';
14622
+ export type event18 = 'contact.field_changed';
14529
14623
 
14530
14624
  /**
14531
14625
  * Who wrote the field: the API or dashboard, a workflow set_field node, or an automation.
@@ -14557,7 +14651,7 @@ export type WebhookPayloadContactTag = {
14557
14651
  source: 'api' | 'workflow' | 'automation';
14558
14652
  };
14559
14653
 
14560
- export type event18 = 'contact.tag_added' | 'contact.tag_removed';
14654
+ export type event19 = 'contact.tag_added' | 'contact.tag_removed';
14561
14655
 
14562
14656
  /**
14563
14657
  * Who answers a conversation changed under Meta's handover protocol. WhatsApp: Meta
@@ -14603,7 +14697,7 @@ export type WebhookPayloadConversationControlChanged = {
14603
14697
  timestamp: string;
14604
14698
  };
14605
14699
 
14606
- export type event19 = 'conversation.control_changed';
14700
+ export type event20 = 'conversation.control_changed';
14607
14701
 
14608
14702
  /**
14609
14703
  * Who answers now. ai_agent: Meta Business Agent (WhatsApp); app: you; other: another app (a WhatsApp partner, or a Messenger / Instagram receiver such as Page Inbox).
@@ -14645,7 +14739,7 @@ export type WebhookPayloadConversationStarted = {
14645
14739
  timestamp: string;
14646
14740
  };
14647
14741
 
14648
- export type event20 = 'conversation.started';
14742
+ export type event21 = 'conversation.started';
14649
14743
 
14650
14744
  /**
14651
14745
  * Webhook payload for post.external.created / post.external.updated /
@@ -14682,7 +14776,7 @@ export type WebhookPayloadExternalPost = {
14682
14776
  timestamp: string;
14683
14777
  };
14684
14778
 
14685
- export type event21 = 'post.external.created' | 'post.external.updated' | 'post.external.deleted';
14779
+ export type event22 = 'post.external.created' | 'post.external.updated' | 'post.external.deleted';
14686
14780
 
14687
14781
  /**
14688
14782
  * Webhook payload for lead.received events (Meta Lead Gen / Instant Forms).
@@ -14758,7 +14852,7 @@ export type WebhookPayloadLead = {
14758
14852
  timestamp: string;
14759
14853
  };
14760
14854
 
14761
- export type event22 = 'lead.received';
14855
+ export type event23 = 'lead.received';
14762
14856
 
14763
14857
  export type platform16 = 'facebook';
14764
14858
 
@@ -15349,7 +15443,7 @@ export type WebhookPayloadMessage = {
15349
15443
  timestamp: string;
15350
15444
  };
15351
15445
 
15352
- export type event23 = 'message.received';
15446
+ export type event24 = 'message.received';
15353
15447
 
15354
15448
  /**
15355
15449
  * Which Zernio surface produced the message. Always present and
@@ -15415,7 +15509,7 @@ export type WebhookPayloadMessageDeleted = {
15415
15509
  timestamp: string;
15416
15510
  };
15417
15511
 
15418
- export type event24 = 'message.deleted';
15512
+ export type event25 = 'message.deleted';
15419
15513
 
15420
15514
  /**
15421
15515
  * Shared payload for message.delivered, message.read, message.played and
@@ -15483,7 +15577,7 @@ export type WebhookPayloadMessageDeliveryStatus = {
15483
15577
  timestamp: string;
15484
15578
  };
15485
15579
 
15486
- export type event25 = 'message.delivered' | 'message.read' | 'message.played' | 'message.failed';
15580
+ export type event26 = 'message.delivered' | 'message.read' | 'message.played' | 'message.failed';
15487
15581
 
15488
15582
  /**
15489
15583
  * Webhook payload for message.edited events. Fires when the sender
@@ -15526,7 +15620,7 @@ export type WebhookPayloadMessageEdited = {
15526
15620
  timestamp: string;
15527
15621
  };
15528
15622
 
15529
- export type event26 = 'message.edited';
15623
+ export type event27 = 'message.edited';
15530
15624
 
15531
15625
  /**
15532
15626
  * Webhook payload for message sent events (fired when a message is sent via the API, or from the WhatsApp Business app on Coexistence numbers)
@@ -15772,7 +15866,7 @@ export type WebhookPayloadMessageSent = {
15772
15866
  timestamp: string;
15773
15867
  };
15774
15868
 
15775
- export type event27 = 'message.sent';
15869
+ export type event28 = 'message.sent';
15776
15870
 
15777
15871
  /**
15778
15872
  * Every platform whose outgoing messages Zernio observes. sms is absent on purpose: its carrier receipts update delivery status and never raise message.sent.
@@ -15830,7 +15924,7 @@ export type WebhookPayloadPhoneNumberStockAvailable = {
15830
15924
  timestamp: string;
15831
15925
  };
15832
15926
 
15833
- export type event28 = 'phone_number.stock_available';
15927
+ export type event29 = 'phone_number.stock_available';
15834
15928
 
15835
15929
  /**
15836
15930
  * Webhook payload for post events
@@ -15885,7 +15979,7 @@ export type WebhookPayloadPost = {
15885
15979
  timestamp: string;
15886
15980
  };
15887
15981
 
15888
- export type event29 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled';
15982
+ export type event30 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled';
15889
15983
 
15890
15984
  /**
15891
15985
  * Webhook payload for the per-platform terminal events
@@ -16009,12 +16103,12 @@ export type WebhookPayloadPostPlatform = {
16009
16103
  timestamp: string;
16010
16104
  };
16011
16105
 
16012
- export type event30 = 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved';
16106
+ export type event31 = 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved';
16013
16107
 
16014
16108
  /**
16015
16109
  * Terminal status this event fires on. Matches the event suffix.
16016
16110
  */
16017
- export type status39 = 'published' | 'failed' | 'deleted';
16111
+ export type status40 = 'published' | 'failed' | 'deleted';
16018
16112
 
16019
16113
  /**
16020
16114
  * Webhook payload for reaction received events (WhatsApp, Telegram, Slack, Instagram, Facebook Messenger, TikTok)
@@ -16074,7 +16168,7 @@ export type WebhookPayloadReaction = {
16074
16168
  timestamp: string;
16075
16169
  };
16076
16170
 
16077
- export type event31 = 'reaction.received';
16171
+ export type event32 = 'reaction.received';
16078
16172
 
16079
16173
  export type action = 'added' | 'removed';
16080
16174
 
@@ -16153,7 +16247,7 @@ export type WebhookPayloadReferral = {
16153
16247
  timestamp: string;
16154
16248
  };
16155
16249
 
16156
- export type event32 = 'referral.received';
16250
+ export type event33 = 'referral.received';
16157
16251
 
16158
16252
  /**
16159
16253
  * Webhook payload for the review.new event (new review posted on a connected account).
@@ -16185,7 +16279,7 @@ export type WebhookPayloadReviewNew = {
16185
16279
  timestamp: string;
16186
16280
  };
16187
16281
 
16188
- export type event33 = 'review.new';
16282
+ export type event34 = 'review.new';
16189
16283
 
16190
16284
  /**
16191
16285
  * Webhook payload for the review.updated event. Fired when the reviewer edits their
@@ -16223,7 +16317,7 @@ export type WebhookPayloadReviewUpdated = {
16223
16317
  timestamp: string;
16224
16318
  };
16225
16319
 
16226
- export type event34 = 'review.updated';
16320
+ export type event35 = 'review.updated';
16227
16321
 
16228
16322
  export type WebhookPayloadSequenceEnrollment = {
16229
16323
  /**
@@ -16256,7 +16350,7 @@ export type WebhookPayloadSequenceEnrollment = {
16256
16350
  exitReason?: 'completed' | 'replied' | 'manual' | 'failed' | 'unsubscribed';
16257
16351
  };
16258
16352
 
16259
- export type event35 = 'sequence.enrolled' | 'sequence.exited';
16353
+ export type event36 = 'sequence.enrolled' | 'sequence.exited';
16260
16354
 
16261
16355
  /**
16262
16356
  * sequence.exited only. completed: the last step was sent; replied: the contact replied and the sequence exits on reply; manual: unenrolled through the API; failed: the step kept failing to send; unsubscribed: the contact opted out.
@@ -16277,7 +16371,7 @@ export type WebhookPayloadSupportRun = {
16277
16371
  run: SupportRun;
16278
16372
  };
16279
16373
 
16280
- export type event36 = 'support.run.completed' | 'support.run.failed';
16374
+ export type event37 = 'support.run.completed' | 'support.run.failed';
16281
16375
 
16282
16376
  /**
16283
16377
  * Webhook payload for test deliveries
@@ -16298,7 +16392,7 @@ export type WebhookPayloadTest = {
16298
16392
  timestamp: string;
16299
16393
  };
16300
16394
 
16301
- export type event37 = 'webhook.test';
16395
+ export type event38 = 'webhook.test';
16302
16396
 
16303
16397
  /**
16304
16398
  * Webhook payload for `whatsapp.account.alert_received`, forwarded from Meta's
@@ -16350,7 +16444,7 @@ export type WebhookPayloadWhatsAppAccountAlertReceived = {
16350
16444
  timestamp: string;
16351
16445
  };
16352
16446
 
16353
- export type event38 = 'whatsapp.account.alert_received';
16447
+ export type event39 = 'whatsapp.account.alert_received';
16354
16448
 
16355
16449
  export type platform18 = 'whatsapp';
16356
16450
 
@@ -16406,12 +16500,12 @@ export type WebhookPayloadWhatsAppAccountNameStatusUpdated = {
16406
16500
  timestamp: string;
16407
16501
  };
16408
16502
 
16409
- export type event39 = 'whatsapp.account.name_status_updated';
16503
+ export type event40 = 'whatsapp.account.name_status_updated';
16410
16504
 
16411
16505
  /**
16412
16506
  * Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
16413
16507
  */
16414
- export type status40 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
16508
+ export type status41 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
16415
16509
 
16416
16510
  /**
16417
16511
  * Webhook payload for `whatsapp.account.quality_updated`. Fired when a connected
@@ -16464,7 +16558,7 @@ export type WebhookPayloadWhatsAppAccountQualityUpdated = {
16464
16558
  timestamp: string;
16465
16559
  };
16466
16560
 
16467
- export type event40 = 'whatsapp.account.quality_updated';
16561
+ export type event41 = 'whatsapp.account.quality_updated';
16468
16562
 
16469
16563
  /**
16470
16564
  * The Meta webhook field that reported the change.
@@ -16540,12 +16634,12 @@ export type WebhookPayloadWhatsAppAccountStatusUpdated = {
16540
16634
  timestamp: string;
16541
16635
  };
16542
16636
 
16543
- export type event41 = 'whatsapp.account.status_updated';
16637
+ export type event42 = 'whatsapp.account.status_updated';
16544
16638
 
16545
16639
  /**
16546
16640
  * `active` only on a reinstatement (DISABLED_UPDATE with ban state REINSTATE).
16547
16641
  */
16548
- export type status41 = 'restricted' | 'active';
16642
+ export type status42 = 'restricted' | 'active';
16549
16643
 
16550
16644
  /**
16551
16645
  * Webhook payload for the `whatsapp.contact.identity_changed` event. Fired when
@@ -16597,7 +16691,7 @@ export type WebhookPayloadWhatsAppContactIdentityChanged = {
16597
16691
  timestamp: string;
16598
16692
  };
16599
16693
 
16600
- export type event42 = 'whatsapp.contact.identity_changed';
16694
+ export type event43 = 'whatsapp.contact.identity_changed';
16601
16695
 
16602
16696
  /**
16603
16697
  * Which Meta signal reported the change. `user_changed_number`: new phone number. `user_changed_user_id` and `user_id_update`: new BSUID.
@@ -16671,7 +16765,7 @@ export type WebhookPayloadWhatsAppTemplateCategoryUpdated = {
16671
16765
  timestamp: string;
16672
16766
  };
16673
16767
 
16674
- export type event43 = 'whatsapp.template.category_updated';
16768
+ export type event44 = 'whatsapp.template.category_updated';
16675
16769
 
16676
16770
  /**
16677
16771
  * `scheduled` is Meta's 24h advance notice of an upcoming
@@ -16753,7 +16847,7 @@ export type WebhookPayloadWhatsAppTemplateStatusUpdated = {
16753
16847
  timestamp: string;
16754
16848
  };
16755
16849
 
16756
- export type event44 = 'whatsapp.template.status_updated';
16850
+ export type event45 = 'whatsapp.template.status_updated';
16757
16851
 
16758
16852
  /**
16759
16853
  * New status. Forwarded verbatim from Meta's `event` field.
@@ -16761,7 +16855,7 @@ export type event44 = 'whatsapp.template.status_updated';
16761
16855
  * request before the template is actually removed.
16762
16856
  *
16763
16857
  */
16764
- export type status42 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
16858
+ export type status43 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
16765
16859
 
16766
16860
  export type WebhookPayloadWorkflowRun = {
16767
16861
  /**
@@ -16820,12 +16914,12 @@ export type WebhookPayloadWorkflowRun = {
16820
16914
  error?: string;
16821
16915
  };
16822
16916
 
16823
- export type event45 = 'workflow.run.started' | 'workflow.run.completed' | 'workflow.run.failed';
16917
+ export type event46 = 'workflow.run.started' | 'workflow.run.completed' | 'workflow.run.failed';
16824
16918
 
16825
16919
  /**
16826
16920
  * running on workflow.run.started; completed or exited (ended on purpose before the last node, e.g. a handoff) on workflow.run.completed; failed on workflow.run.failed.
16827
16921
  */
16828
- export type status43 = 'running' | 'waiting' | 'completed' | 'exited' | 'failed';
16922
+ export type status44 = 'running' | 'waiting' | 'completed' | 'exited' | 'failed';
16829
16923
 
16830
16924
  /**
16831
16925
  * The profiles this event belongs to, each with the externalId you set on it (null when none is set). Present on every event tied to a profile and absent on events that belong to none. Events spanning several profiles (a post published to accounts of different profiles) list each once. Use it to route the event to your tenant without storing Zernio profile ids.
@@ -17223,7 +17317,7 @@ export type WorkflowExecutionEvent = {
17223
17317
 
17224
17318
  export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
17225
17319
 
17226
- export type status44 = 'success' | 'failed' | 'pending';
17320
+ export type status45 = 'success' | 'failed' | 'pending';
17227
17321
 
17228
17322
  /**
17229
17323
  * A node in a workflow graph. `config` shape depends on `type`.
@@ -28563,7 +28657,7 @@ export type CreateWebhookSettingsData = {
28563
28657
  /**
28564
28658
  * Events to subscribe to (at least one required)
28565
28659
  */
28566
- events: Array<('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' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.played' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'ad.video.processed' | '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.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'api.changelog.published' | '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' | 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted' | 'commerce.order.created' | 'commerce.order.updated' | 'commerce.order.refunded' | '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')>;
28660
+ events: Array<('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' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.played' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'ad.review.approved' | 'ad.review.rejected' | 'ad.video.processed' | '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.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'api.changelog.published' | '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' | 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted' | 'commerce.order.created' | 'commerce.order.updated' | 'commerce.order.refunded' | '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')>;
28567
28661
  /**
28568
28662
  * Enable or disable webhook delivery. Defaults to `true` when omitted.
28569
28663
  */
@@ -28629,7 +28723,7 @@ export type UpdateWebhookSettingsData = {
28629
28723
  /**
28630
28724
  * Events to subscribe to. Must contain at least one event if provided.
28631
28725
  */
28632
- events?: Array<('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' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.played' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'ad.video.processed' | '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.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'api.changelog.published' | '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' | 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted' | 'commerce.order.created' | 'commerce.order.updated' | 'commerce.order.refunded' | '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')>;
28726
+ events?: Array<('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' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.played' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'ad.review.approved' | 'ad.review.rejected' | 'ad.video.processed' | '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.automatic_event' | 'whatsapp.number.activated' | 'whatsapp.number.declined' | 'whatsapp.number.action_required' | 'whatsapp.number.verification_required' | 'whatsapp.number.suspended' | 'whatsapp.number.reactivated' | 'whatsapp.number.released' | 'whatsapp.number.kyc_submitted' | 'phone_number.stock_available' | 'verification.approved' | 'verification.failed' | 'api.changelog.published' | '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' | 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted' | 'commerce.order.created' | 'commerce.order.updated' | 'commerce.order.refunded' | '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')>;
28633
28727
  /**
28634
28728
  * Enable or disable webhook delivery
28635
28729
  */
@@ -28799,7 +28893,7 @@ export type TestWebhookData = {
28799
28893
  /**
28800
28894
  * Send a sample payload of this event instead of `webhook.test`. The sample is marked with `test: true`.
28801
28895
  */
28802
- 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' | 'commerce.order.created' | 'commerce.order.updated' | 'commerce.order.refunded' | 'api.changelog.published';
28896
+ 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.review.approved' | 'ad.review.rejected' | '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' | 'commerce.order.created' | 'commerce.order.updated' | 'commerce.order.refunded' | 'api.changelog.published';
28803
28897
  };
28804
28898
  };
28805
28899