@getlatedev/node 0.2.1299 → 0.2.1300

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.1299",
39
+ version: "0.2.1300",
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.1299",
8
+ version: "0.2.1300",
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.1299",
3
+ "version": "0.2.1300",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -13553,7 +13553,7 @@ export type Webhook = {
13553
13553
  /**
13554
13554
  * Events subscribed to
13555
13555
  */
13556
- 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.delivery_issue' | 'campaign.budget.depleted' | 'ad_account.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')>;
13556
+ 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.delivery_issue' | 'campaign.budget.depleted' | 'ad_account.status_changed' | 'ad.video.processed' | 'ad_rule.triggered' | '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')>;
13557
13557
  /**
13558
13558
  * Whether webhook delivery is enabled
13559
13559
  */
@@ -14197,6 +14197,121 @@ export type event8 = 'ad.review.approved' | 'ad.review.rejected';
14197
14197
 
14198
14198
  export type status39 = 'approved' | 'rejected';
14199
14199
 
14200
+ /**
14201
+ * Webhook payload for the `ad_rule.triggered` event. Ad rules are in closed beta:
14202
+ * the event only fires for accounts in the ad rules pilot.
14203
+ *
14204
+ * Fires when a scheduled ad rule run finds campaigns or ad sets that meet every
14205
+ * condition of the rule. Each object is announced at most once per rule cooldown,
14206
+ * so `objects` lists only the objects the run acted on, never the ones still in
14207
+ * cooldown. A run where every matching object is still in cooldown sends nothing.
14208
+ *
14209
+ */
14210
+ export type WebhookPayloadAdRuleTriggered = {
14211
+ /**
14212
+ * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery.
14213
+ */
14214
+ id: string;
14215
+ profiles?: WebhookProfiles;
14216
+ /**
14217
+ * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
14218
+ */
14219
+ test?: boolean;
14220
+ event: 'ad_rule.triggered';
14221
+ account: WebhookAdsAccount;
14222
+ rule: {
14223
+ /**
14224
+ * Zernio ad rule ID.
14225
+ */
14226
+ id: string;
14227
+ name: string;
14228
+ /**
14229
+ * Whether the rule evaluates campaigns or ad sets.
14230
+ */
14231
+ level: 'campaign' | 'adset';
14232
+ /**
14233
+ * Platform-native ad account ID the rule watches.
14234
+ */
14235
+ platformAdAccountId: string;
14236
+ };
14237
+ run: {
14238
+ /**
14239
+ * ID of the rule run that triggered.
14240
+ */
14241
+ id: string;
14242
+ /**
14243
+ * Scheduled time of the run (UTC).
14244
+ */
14245
+ ranAt: string;
14246
+ /**
14247
+ * The ad account's calendar date (YYYY-MM-DD) the condition windows were resolved against, so `today` and `last_7d` mean the account's days, not UTC days.
14248
+ */
14249
+ today: string;
14250
+ /**
14251
+ * IANA timezone used for `today`, for example `Europe/Madrid`.
14252
+ */
14253
+ timezone: string;
14254
+ /**
14255
+ * True when the ad account has no known timezone and UTC was assumed.
14256
+ */
14257
+ timezoneAssumed: boolean;
14258
+ /**
14259
+ * ISO 4217 currency of the ad account, which money metrics (`spend`, `cpc`, `cpm`, `cpa`) and condition values are in. Null when unknown.
14260
+ */
14261
+ currency: (string) | null;
14262
+ };
14263
+ /**
14264
+ * The campaigns or ad sets this run acted on, at the rule's `level`. Objects still in cooldown are left out.
14265
+ */
14266
+ objects: Array<{
14267
+ /**
14268
+ * Platform-native ID of the campaign or ad set.
14269
+ */
14270
+ platformId: string;
14271
+ /**
14272
+ * Name on the platform. Falls back to `platformId` when the platform reports none.
14273
+ */
14274
+ name: string;
14275
+ /**
14276
+ * Platform-native ID of the campaign the object belongs to (on a campaign-level rule, the campaign's own ID). Null when unknown.
14277
+ */
14278
+ platformCampaignId: (string) | null;
14279
+ /**
14280
+ * Every condition of the rule, with the value the object reached.
14281
+ */
14282
+ conditions: Array<{
14283
+ /**
14284
+ * `spend`, `impressions`, `clicks`, `conversions`, `ctr`, `cpc`, `cpm`, `cpa` or `roas`. New values may be added.
14285
+ */
14286
+ metric: string;
14287
+ /**
14288
+ * `today`, `yesterday`, `last_3d`, `last_7d`, `last_14d` or `last_30d`, in the account's calendar (see `run.today`). New values may be added.
14289
+ */
14290
+ window: string;
14291
+ op: '>' | '>=' | '<' | '<=';
14292
+ /**
14293
+ * The threshold set on the rule.
14294
+ */
14295
+ value: number;
14296
+ /**
14297
+ * The object's value for the metric over the window. Null when it cannot be computed, for example a cost per action with no actions.
14298
+ */
14299
+ actual: (number) | null;
14300
+ }>;
14301
+ }>;
14302
+ /**
14303
+ * UTC time at which Zernio generated this event.
14304
+ */
14305
+ timestamp: string;
14306
+ };
14307
+
14308
+ export type event9 = 'ad_rule.triggered';
14309
+
14310
+ /**
14311
+ * Whether the rule evaluates campaigns or ad sets.
14312
+ */
14313
+ export type level3 = 'campaign' | 'adset';
14314
+
14200
14315
  /**
14201
14316
  * Webhook payload for the `ad.status_changed` event. Currently emitted
14202
14317
  * only for Meta (`metaads`).
@@ -14322,12 +14437,12 @@ export type WebhookPayloadAdStatusChanged = {
14322
14437
  timestamp: string;
14323
14438
  };
14324
14439
 
14325
- export type event9 = 'ad.status_changed';
14440
+ export type event10 = 'ad.status_changed';
14326
14441
 
14327
14442
  /**
14328
14443
  * Hierarchy level the status applies to. Mirrors Meta's `level`. Creative-level events are not forwarded.
14329
14444
  */
14330
- export type level3 = 'CAMPAIGN' | 'AD_SET' | 'AD';
14445
+ export type level4 = 'CAMPAIGN' | 'AD_SET' | 'AD';
14331
14446
 
14332
14447
  /**
14333
14448
  * Webhook payload for the `ad.video.processed` event. Fires once per
@@ -14393,7 +14508,7 @@ export type WebhookPayloadAdVideoProcessed = {
14393
14508
  timestamp: string;
14394
14509
  };
14395
14510
 
14396
- export type event10 = 'ad.video.processed';
14511
+ export type event11 = 'ad.video.processed';
14397
14512
 
14398
14513
  /**
14399
14514
  * `ready`: usable as `video.id` on the create endpoints. `error`: Meta could not process it; upload again.
@@ -14476,7 +14591,7 @@ export type WebhookPayloadAnalyticsSynced = {
14476
14591
  timestamp: string;
14477
14592
  };
14478
14593
 
14479
- export type event11 = 'analytics.synced';
14594
+ export type event12 = 'analytics.synced';
14480
14595
 
14481
14596
  export type WebhookPayloadApiChangelogPublished = {
14482
14597
  /**
@@ -14495,7 +14610,7 @@ export type WebhookPayloadApiChangelogPublished = {
14495
14610
  timestamp: string;
14496
14611
  };
14497
14612
 
14498
- export type event12 = 'api.changelog.published';
14613
+ export type event13 = 'api.changelog.published';
14499
14614
 
14500
14615
  /**
14501
14616
  * Webhook payload for the `call.ended` event. Fires on call hangup
@@ -14570,7 +14685,7 @@ export type WebhookPayloadCallEnded = {
14570
14685
  timestamp: string;
14571
14686
  };
14572
14687
 
14573
- export type event13 = 'call.ended';
14688
+ export type event14 = 'call.ended';
14574
14689
 
14575
14690
  /**
14576
14691
  * Webhook payload for the `call.failed` event. Fired when a call
@@ -14609,7 +14724,7 @@ export type WebhookPayloadCallFailed = {
14609
14724
  timestamp: string;
14610
14725
  };
14611
14726
 
14612
- export type event14 = 'call.failed';
14727
+ export type event15 = 'call.failed';
14613
14728
 
14614
14729
  /**
14615
14730
  * Webhook payload for the `call.permission_request` event. Fires
@@ -14651,7 +14766,7 @@ export type WebhookPayloadCallPermissionRequest = {
14651
14766
  timestamp: string;
14652
14767
  };
14653
14768
 
14654
- export type event15 = 'call.permission_request';
14769
+ export type event16 = 'call.permission_request';
14655
14770
 
14656
14771
  export type response = 'accept' | 'reject';
14657
14772
 
@@ -14710,7 +14825,7 @@ export type WebhookPayloadCallReceived = {
14710
14825
  timestamp: string;
14711
14826
  };
14712
14827
 
14713
- export type event16 = 'call.received';
14828
+ export type event17 = 'call.received';
14714
14829
 
14715
14830
  /**
14716
14831
  * Webhook payload for the `campaign.budget.depleted` event. Fires when a campaign
@@ -14761,12 +14876,12 @@ export type WebhookPayloadCampaignBudgetDepleted = {
14761
14876
  timestamp: string;
14762
14877
  };
14763
14878
 
14764
- export type event17 = 'campaign.budget.depleted';
14879
+ export type event18 = 'campaign.budget.depleted';
14765
14880
 
14766
14881
  /**
14767
14882
  * Always `CAMPAIGN`.
14768
14883
  */
14769
- export type level4 = 'CAMPAIGN';
14884
+ export type level5 = 'CAMPAIGN';
14770
14885
 
14771
14886
  /**
14772
14887
  * 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.
@@ -14943,7 +15058,7 @@ export type WebhookPayloadComment = {
14943
15058
  timestamp: string;
14944
15059
  };
14945
15060
 
14946
- export type event18 = 'comment.received';
15061
+ export type event19 = 'comment.received';
14947
15062
 
14948
15063
  export type platform15 = 'instagram' | 'facebook' | 'threads' | 'youtube' | 'linkedin' | 'bluesky' | 'reddit' | 'tiktok';
14949
15064
 
@@ -14989,7 +15104,7 @@ export type WebhookPayloadCommerceOrder = {
14989
15104
  };
14990
15105
  };
14991
15106
 
14992
- export type event19 = 'commerce.order.created' | 'commerce.order.updated' | 'commerce.order.refunded';
15107
+ export type event20 = 'commerce.order.created' | 'commerce.order.updated' | 'commerce.order.refunded';
14993
15108
 
14994
15109
  export type type17 = 'order';
14995
15110
 
@@ -15032,7 +15147,7 @@ export type WebhookPayloadCommerceProduct = {
15032
15147
  };
15033
15148
  };
15034
15149
 
15035
- export type event20 = 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted';
15150
+ export type event21 = 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted';
15036
15151
 
15037
15152
  export type type18 = 'product';
15038
15153
 
@@ -15072,7 +15187,7 @@ export type WebhookPayloadContactFieldChanged = {
15072
15187
  source: 'api' | 'workflow' | 'automation';
15073
15188
  };
15074
15189
 
15075
- export type event21 = 'contact.field_changed';
15190
+ export type event22 = 'contact.field_changed';
15076
15191
 
15077
15192
  /**
15078
15193
  * Who wrote the field: the API or dashboard, a workflow set_field node, or an automation.
@@ -15104,7 +15219,7 @@ export type WebhookPayloadContactTag = {
15104
15219
  source: 'api' | 'workflow' | 'automation';
15105
15220
  };
15106
15221
 
15107
- export type event22 = 'contact.tag_added' | 'contact.tag_removed';
15222
+ export type event23 = 'contact.tag_added' | 'contact.tag_removed';
15108
15223
 
15109
15224
  /**
15110
15225
  * Who answers a conversation changed under Meta's handover protocol. WhatsApp: Meta
@@ -15150,7 +15265,7 @@ export type WebhookPayloadConversationControlChanged = {
15150
15265
  timestamp: string;
15151
15266
  };
15152
15267
 
15153
- export type event23 = 'conversation.control_changed';
15268
+ export type event24 = 'conversation.control_changed';
15154
15269
 
15155
15270
  /**
15156
15271
  * 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).
@@ -15209,7 +15324,7 @@ export type WebhookPayloadConversationStarted = {
15209
15324
  timestamp: string;
15210
15325
  };
15211
15326
 
15212
- export type event24 = 'conversation.started';
15327
+ export type event25 = 'conversation.started';
15213
15328
 
15214
15329
  /**
15215
15330
  * Webhook payload for post.external.created / post.external.updated /
@@ -15246,7 +15361,7 @@ export type WebhookPayloadExternalPost = {
15246
15361
  timestamp: string;
15247
15362
  };
15248
15363
 
15249
- export type event25 = 'post.external.created' | 'post.external.updated' | 'post.external.deleted';
15364
+ export type event26 = 'post.external.created' | 'post.external.updated' | 'post.external.deleted';
15250
15365
 
15251
15366
  /**
15252
15367
  * Webhook payload for lead.received events (Meta Lead Gen / Instant Forms).
@@ -15322,7 +15437,7 @@ export type WebhookPayloadLead = {
15322
15437
  timestamp: string;
15323
15438
  };
15324
15439
 
15325
- export type event26 = 'lead.received';
15440
+ export type event27 = 'lead.received';
15326
15441
 
15327
15442
  export type platform16 = 'facebook';
15328
15443
 
@@ -15925,7 +16040,7 @@ export type WebhookPayloadMessage = {
15925
16040
  timestamp: string;
15926
16041
  };
15927
16042
 
15928
- export type event27 = 'message.received';
16043
+ export type event28 = 'message.received';
15929
16044
 
15930
16045
  /**
15931
16046
  * Which Zernio surface produced the message. Always present and
@@ -15991,7 +16106,7 @@ export type WebhookPayloadMessageDeleted = {
15991
16106
  timestamp: string;
15992
16107
  };
15993
16108
 
15994
- export type event28 = 'message.deleted';
16109
+ export type event29 = 'message.deleted';
15995
16110
 
15996
16111
  /**
15997
16112
  * Shared payload for message.delivered, message.read, message.played and
@@ -16059,7 +16174,7 @@ export type WebhookPayloadMessageDeliveryStatus = {
16059
16174
  timestamp: string;
16060
16175
  };
16061
16176
 
16062
- export type event29 = 'message.delivered' | 'message.read' | 'message.played' | 'message.failed';
16177
+ export type event30 = 'message.delivered' | 'message.read' | 'message.played' | 'message.failed';
16063
16178
 
16064
16179
  /**
16065
16180
  * Webhook payload for message.edited events. Fires when the sender
@@ -16102,7 +16217,7 @@ export type WebhookPayloadMessageEdited = {
16102
16217
  timestamp: string;
16103
16218
  };
16104
16219
 
16105
- export type event30 = 'message.edited';
16220
+ export type event31 = 'message.edited';
16106
16221
 
16107
16222
  /**
16108
16223
  * Webhook payload for message sent events (fired when a message is sent via the API, or from the WhatsApp Business app on Coexistence numbers)
@@ -16348,7 +16463,7 @@ export type WebhookPayloadMessageSent = {
16348
16463
  timestamp: string;
16349
16464
  };
16350
16465
 
16351
- export type event31 = 'message.sent';
16466
+ export type event32 = 'message.sent';
16352
16467
 
16353
16468
  /**
16354
16469
  * Every platform whose outgoing messages Zernio observes. sms is absent on purpose: its carrier receipts update delivery status and never raise message.sent.
@@ -16406,7 +16521,7 @@ export type WebhookPayloadPhoneNumberStockAvailable = {
16406
16521
  timestamp: string;
16407
16522
  };
16408
16523
 
16409
- export type event32 = 'phone_number.stock_available';
16524
+ export type event33 = 'phone_number.stock_available';
16410
16525
 
16411
16526
  /**
16412
16527
  * Webhook payload for post events
@@ -16461,7 +16576,7 @@ export type WebhookPayloadPost = {
16461
16576
  timestamp: string;
16462
16577
  };
16463
16578
 
16464
- export type event33 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled';
16579
+ export type event34 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled';
16465
16580
 
16466
16581
  /**
16467
16582
  * Webhook payload for the per-platform terminal events
@@ -16585,7 +16700,7 @@ export type WebhookPayloadPostPlatform = {
16585
16700
  timestamp: string;
16586
16701
  };
16587
16702
 
16588
- export type event34 = 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved';
16703
+ export type event35 = 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved';
16589
16704
 
16590
16705
  /**
16591
16706
  * Terminal status this event fires on. Matches the event suffix.
@@ -16650,7 +16765,7 @@ export type WebhookPayloadReaction = {
16650
16765
  timestamp: string;
16651
16766
  };
16652
16767
 
16653
- export type event35 = 'reaction.received';
16768
+ export type event36 = 'reaction.received';
16654
16769
 
16655
16770
  export type action = 'added' | 'removed';
16656
16771
 
@@ -16729,7 +16844,7 @@ export type WebhookPayloadReferral = {
16729
16844
  timestamp: string;
16730
16845
  };
16731
16846
 
16732
- export type event36 = 'referral.received';
16847
+ export type event37 = 'referral.received';
16733
16848
 
16734
16849
  /**
16735
16850
  * Webhook payload for the review.new event (new review posted on a connected account).
@@ -16761,7 +16876,7 @@ export type WebhookPayloadReviewNew = {
16761
16876
  timestamp: string;
16762
16877
  };
16763
16878
 
16764
- export type event37 = 'review.new';
16879
+ export type event38 = 'review.new';
16765
16880
 
16766
16881
  /**
16767
16882
  * Webhook payload for the review.updated event. Fired when the reviewer edits their
@@ -16799,7 +16914,7 @@ export type WebhookPayloadReviewUpdated = {
16799
16914
  timestamp: string;
16800
16915
  };
16801
16916
 
16802
- export type event38 = 'review.updated';
16917
+ export type event39 = 'review.updated';
16803
16918
 
16804
16919
  export type WebhookPayloadSequenceEnrollment = {
16805
16920
  /**
@@ -16832,7 +16947,7 @@ export type WebhookPayloadSequenceEnrollment = {
16832
16947
  exitReason?: 'completed' | 'replied' | 'manual' | 'failed' | 'unsubscribed';
16833
16948
  };
16834
16949
 
16835
- export type event39 = 'sequence.enrolled' | 'sequence.exited';
16950
+ export type event40 = 'sequence.enrolled' | 'sequence.exited';
16836
16951
 
16837
16952
  /**
16838
16953
  * 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.
@@ -16853,7 +16968,7 @@ export type WebhookPayloadSupportRun = {
16853
16968
  run: SupportRun;
16854
16969
  };
16855
16970
 
16856
- export type event40 = 'support.run.completed' | 'support.run.failed';
16971
+ export type event41 = 'support.run.completed' | 'support.run.failed';
16857
16972
 
16858
16973
  /**
16859
16974
  * Webhook payload for test deliveries
@@ -16874,7 +16989,7 @@ export type WebhookPayloadTest = {
16874
16989
  timestamp: string;
16875
16990
  };
16876
16991
 
16877
- export type event41 = 'webhook.test';
16992
+ export type event42 = 'webhook.test';
16878
16993
 
16879
16994
  /**
16880
16995
  * Webhook payload for `whatsapp.account.alert_received`, forwarded from Meta's
@@ -16926,7 +17041,7 @@ export type WebhookPayloadWhatsAppAccountAlertReceived = {
16926
17041
  timestamp: string;
16927
17042
  };
16928
17043
 
16929
- export type event42 = 'whatsapp.account.alert_received';
17044
+ export type event43 = 'whatsapp.account.alert_received';
16930
17045
 
16931
17046
  export type platform18 = 'whatsapp';
16932
17047
 
@@ -16982,7 +17097,7 @@ export type WebhookPayloadWhatsAppAccountNameStatusUpdated = {
16982
17097
  timestamp: string;
16983
17098
  };
16984
17099
 
16985
- export type event43 = 'whatsapp.account.name_status_updated';
17100
+ export type event44 = 'whatsapp.account.name_status_updated';
16986
17101
 
16987
17102
  /**
16988
17103
  * Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
@@ -17040,7 +17155,7 @@ export type WebhookPayloadWhatsAppAccountQualityUpdated = {
17040
17155
  timestamp: string;
17041
17156
  };
17042
17157
 
17043
- export type event44 = 'whatsapp.account.quality_updated';
17158
+ export type event45 = 'whatsapp.account.quality_updated';
17044
17159
 
17045
17160
  /**
17046
17161
  * The Meta webhook field that reported the change.
@@ -17116,7 +17231,7 @@ export type WebhookPayloadWhatsAppAccountStatusUpdated = {
17116
17231
  timestamp: string;
17117
17232
  };
17118
17233
 
17119
- export type event45 = 'whatsapp.account.status_updated';
17234
+ export type event46 = 'whatsapp.account.status_updated';
17120
17235
 
17121
17236
  /**
17122
17237
  * `active` only on a reinstatement (DISABLED_UPDATE with ban state REINSTATE).
@@ -17173,7 +17288,7 @@ export type WebhookPayloadWhatsAppContactIdentityChanged = {
17173
17288
  timestamp: string;
17174
17289
  };
17175
17290
 
17176
- export type event46 = 'whatsapp.contact.identity_changed';
17291
+ export type event47 = 'whatsapp.contact.identity_changed';
17177
17292
 
17178
17293
  /**
17179
17294
  * Which Meta signal reported the change. `user_changed_number`: new phone number. `user_changed_user_id` and `user_id_update`: new BSUID.
@@ -17247,7 +17362,7 @@ export type WebhookPayloadWhatsAppTemplateCategoryUpdated = {
17247
17362
  timestamp: string;
17248
17363
  };
17249
17364
 
17250
- export type event47 = 'whatsapp.template.category_updated';
17365
+ export type event48 = 'whatsapp.template.category_updated';
17251
17366
 
17252
17367
  /**
17253
17368
  * `scheduled` is Meta's 24h advance notice of an upcoming
@@ -17329,7 +17444,7 @@ export type WebhookPayloadWhatsAppTemplateStatusUpdated = {
17329
17444
  timestamp: string;
17330
17445
  };
17331
17446
 
17332
- export type event48 = 'whatsapp.template.status_updated';
17447
+ export type event49 = 'whatsapp.template.status_updated';
17333
17448
 
17334
17449
  /**
17335
17450
  * New status. Forwarded verbatim from Meta's `event` field.
@@ -17396,7 +17511,7 @@ export type WebhookPayloadWorkflowRun = {
17396
17511
  error?: string;
17397
17512
  };
17398
17513
 
17399
- export type event49 = 'workflow.run.started' | 'workflow.run.completed' | 'workflow.run.failed';
17514
+ export type event50 = 'workflow.run.started' | 'workflow.run.completed' | 'workflow.run.failed';
17400
17515
 
17401
17516
  /**
17402
17517
  * 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.
@@ -29174,7 +29289,7 @@ export type CreateWebhookSettingsData = {
29174
29289
  /**
29175
29290
  * Events to subscribe to (at least one required)
29176
29291
  */
29177
- 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.delivery_issue' | 'campaign.budget.depleted' | 'ad_account.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')>;
29292
+ 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.delivery_issue' | 'campaign.budget.depleted' | 'ad_account.status_changed' | 'ad.video.processed' | 'ad_rule.triggered' | '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')>;
29178
29293
  /**
29179
29294
  * Enable or disable webhook delivery. Defaults to `true` when omitted.
29180
29295
  */
@@ -29240,7 +29355,7 @@ export type UpdateWebhookSettingsData = {
29240
29355
  /**
29241
29356
  * Events to subscribe to. Must contain at least one event if provided.
29242
29357
  */
29243
- 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.delivery_issue' | 'campaign.budget.depleted' | 'ad_account.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')>;
29358
+ 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.delivery_issue' | 'campaign.budget.depleted' | 'ad_account.status_changed' | 'ad.video.processed' | 'ad_rule.triggered' | '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')>;
29244
29359
  /**
29245
29360
  * Enable or disable webhook delivery
29246
29361
  */
@@ -29410,7 +29525,7 @@ export type TestWebhookData = {
29410
29525
  /**
29411
29526
  * Send a sample payload of this event instead of `webhook.test`. The sample is marked with `test: true`.
29412
29527
  */
29413
- 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.delivery_issue' | 'campaign.budget.depleted' | 'ad_account.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';
29528
+ 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.delivery_issue' | 'campaign.budget.depleted' | 'ad_account.status_changed' | 'ad.video.processed' | 'ad_rule.triggered' | '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';
29414
29529
  };
29415
29530
  };
29416
29531