@getlatedev/node 0.2.1666 → 0.2.1668

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.
@@ -20741,7 +20741,7 @@ export type Webhook = {
20741
20741
  /**
20742
20742
  * Events subscribed to
20743
20743
  */
20744
- 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.permissions_changed' | 'account.ads.initial_sync_completed' | 'account.ads.sync_failed' | 'account.ads.sync_recovered' | 'analytics.synced' | 'post.tracking_completed' | 'post.authenticity_changed' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'call.transcript_segment' | 'call.recording_ready' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.played' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'mention.received' | 'review.new' | 'review.updated' | 'review.deleted' | 'review.restored' | 'lead.received' | 'conversion.received' | 'ad.status_changed' | 'ad.created' | 'ad.updated' | 'campaign.created' | 'campaign.updated' | 'ad_set.created' | 'ad_set.updated' | 'ad.review.approved' | 'ad.review.rejected' | 'ad.delivery_issue' | 'campaign.budget.depleted' | 'ad_account.status_changed' | 'campaign.status_changed' | 'ad.video.processed' | 'ad_rule.triggered' | 'automation.check.completed' | 'automation.action.applied' | 'automation.action.failed' | 'automation.action.unknown' | 'automation.alert.opened' | 'automation.alert.escalated' | 'automation.alert.resolved' | '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' | 'campaign_submission.received' | 'campaign_submission.flagged' | 'campaign_submission.pending_review' | 'campaign_submission.approved' | 'campaign_submission.rejected' | 'creator_campaign.budget_exhausted' | 'creator_campaign.closed' | 'campaign_payout.payable' | 'campaign_payout.settled' | 'campaign_payout.failed' | 'campaign_participant.joined' | 'campaign_participant.suspended' | 'campaign_participant.removed' | 'account.rate_limited' | 'calendar.event.created' | 'calendar.event.updated' | 'calendar.event.deleted' | 'email.sent' | 'email.opened' | 'email.link_clicked' | 'email.thread_replied' | 'email.send_failed' | 'email.bounced' | 'email.updated' | 'email.deleted' | 'file.created' | 'file.updated' | 'file.deleted' | 'file.picked' | 'contact.updated' | 'contact.deleted' | 'balance.low' | 'balance.empty' | 'balance.charged' | 'campaign_participant.pending' | 'campaign_participant.approved' | 'campaign_participant.denied' | 'campaign_draft.submitted' | 'campaign_draft.approved' | 'campaign_draft.revision_requested' | 'campaign_draft.rejected' | 'campaign_sample.requested' | 'campaign_sample.approved' | 'campaign_sample.shipped' | 'campaign_sample.declined' | 'notification.sent')>;
20744
+ 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.permissions_changed' | 'account.ads.initial_sync_completed' | 'account.ads.sync_failed' | 'account.ads.sync_recovered' | 'analytics.synced' | 'post.tracking_completed' | 'post.authenticity_changed' | 'message.received' | 'conversation.started' | 'conversation.control_changed' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'call.transcript_segment' | 'call.recording_ready' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.played' | 'message.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'mention.received' | 'review.new' | 'review.updated' | 'review.deleted' | 'review.restored' | 'lead.received' | 'conversion.received' | 'ad.status_changed' | 'ad.created' | 'ad.updated' | 'campaign.created' | 'campaign.updated' | 'ad_set.created' | 'ad_set.updated' | 'ad.review.approved' | 'ad.review.rejected' | 'ad.delivery_issue' | 'campaign.budget.depleted' | 'ad_account.status_changed' | 'campaign.status_changed' | 'ad.video.processed' | 'ad_rule.triggered' | 'automation.check.completed' | 'automation.action.applied' | 'automation.action.failed' | 'automation.action.unknown' | 'automation.alert.opened' | 'automation.alert.escalated' | 'automation.alert.resolved' | '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' | 'campaign_submission.received' | 'campaign_submission.flagged' | 'campaign_submission.pending_review' | 'campaign_submission.approved' | 'campaign_submission.rejected' | 'creator_campaign.budget_exhausted' | 'creator_campaign.closed' | 'campaign_payout.payable' | 'campaign_payout.settled' | 'campaign_payout.failed' | 'campaign_participant.joined' | 'campaign_participant.suspended' | 'campaign_participant.removed' | 'account.rate_limited' | 'account.privacy_request' | 'calendar.event.created' | 'calendar.event.updated' | 'calendar.event.deleted' | 'email.sent' | 'email.opened' | 'email.link_clicked' | 'email.thread_replied' | 'email.send_failed' | 'email.bounced' | 'email.updated' | 'email.deleted' | 'file.created' | 'file.updated' | 'file.deleted' | 'file.picked' | 'contact.updated' | 'contact.deleted' | 'balance.low' | 'balance.empty' | 'balance.charged' | 'campaign_participant.pending' | 'campaign_participant.approved' | 'campaign_participant.denied' | 'campaign_draft.submitted' | 'campaign_draft.approved' | 'campaign_draft.revision_requested' | 'campaign_draft.rejected' | 'campaign_sample.requested' | 'campaign_sample.approved' | 'campaign_sample.shipped' | 'campaign_sample.declined' | 'notification.sent')>;
20745
20745
  /**
20746
20746
  * Whether webhook delivery is enabled
20747
20747
  */
@@ -21232,9 +21232,9 @@ export type WebhookPayloadAccountDisconnected = {
21232
21232
  */
21233
21233
  reason: string;
21234
21234
  /**
21235
- * IMAP mailboxes only: why polling stopped, or replaced when a Google or Microsoft account took over the mailbox.
21235
+ * IMAP mailboxes: why polling stopped, or replaced when a Google or Microsoft account took over the mailbox. Shopify stores: app_uninstalled when the merchant uninstalled the Zernio app.
21236
21236
  */
21237
- reasonCode?: 'auth_failed' | 'imap_disabled' | 'tls_error' | 'unreachable' | 'replaced';
21237
+ reasonCode?: 'auth_failed' | 'imap_disabled' | 'tls_error' | 'unreachable' | 'replaced' | 'app_uninstalled';
21238
21238
  /**
21239
21239
  * IMAP mailboxes only: a hosted link, valid seven days, that reconnects the same account in place. Send it to the user.
21240
21240
  */
@@ -21256,9 +21256,9 @@ export type event5 = 'account.disconnected';
21256
21256
  export type disconnectionType = 'intentional' | 'unintentional';
21257
21257
 
21258
21258
  /**
21259
- * IMAP mailboxes only: why polling stopped, or replaced when a Google or Microsoft account took over the mailbox.
21259
+ * IMAP mailboxes: why polling stopped, or replaced when a Google or Microsoft account took over the mailbox. Shopify stores: app_uninstalled when the merchant uninstalled the Zernio app.
21260
21260
  */
21261
- export type reasonCode = 'auth_failed' | 'imap_disabled' | 'tls_error' | 'unreachable' | 'replaced';
21261
+ export type reasonCode = 'auth_failed' | 'imap_disabled' | 'tls_error' | 'unreachable' | 'replaced' | 'app_uninstalled';
21262
21262
 
21263
21263
  /**
21264
21264
  * Webhook payload for account.permissions_changed events: an account connected with `scopes` or through your own OAuth app hit a missing permission and stays connected for its other areas.
@@ -21298,6 +21298,66 @@ export type WebhookPayloadAccountPermissionsChanged = {
21298
21298
 
21299
21299
  export type event6 = 'account.permissions_changed';
21300
21300
 
21301
+ /**
21302
+ * Webhook payload for account.privacy_request: a Shopify merchant asked to export or erase a customer's data, or the shop's data 48 hours after an uninstall.
21303
+ */
21304
+ export type WebhookPayloadAccountPrivacyRequest = {
21305
+ id: string;
21306
+ profiles?: WebhookProfiles;
21307
+ /**
21308
+ * Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
21309
+ */
21310
+ test?: boolean;
21311
+ event: 'account.privacy_request';
21312
+ account: {
21313
+ accountId: string;
21314
+ profileId: string;
21315
+ platform: string;
21316
+ username: string;
21317
+ displayName?: (string) | null;
21318
+ };
21319
+ privacyRequest: {
21320
+ /**
21321
+ * customer_data_request: the merchant asked for the data you hold about `customer`. Send it to the merchant.
21322
+ *
21323
+ * customer_redact: erase the data you hold about `customer` and the orders in `orderIds`.
21324
+ *
21325
+ * shop_redact: erase the data you hold about the whole shop. Sent 48 hours after the merchant uninstalled the app.
21326
+ */
21327
+ type: 'customer_data_request' | 'customer_redact' | 'shop_redact';
21328
+ shopDomain: string;
21329
+ shopId: (string) | null;
21330
+ /**
21331
+ * Who the request is about. Null for shop_redact.
21332
+ */
21333
+ customer: {
21334
+ id?: (string) | null;
21335
+ email?: (string) | null;
21336
+ phone?: (string) | null;
21337
+ } | null;
21338
+ /**
21339
+ * The Shopify order ids the request covers. Empty for shop_redact.
21340
+ */
21341
+ orderIds: Array<(string)>;
21342
+ /**
21343
+ * Shopify's id for a customer_data_request.
21344
+ */
21345
+ dataRequestId: (string) | null;
21346
+ };
21347
+ timestamp: string;
21348
+ };
21349
+
21350
+ export type event7 = 'account.privacy_request';
21351
+
21352
+ /**
21353
+ * customer_data_request: the merchant asked for the data you hold about `customer`. Send it to the merchant.
21354
+ *
21355
+ * customer_redact: erase the data you hold about `customer` and the orders in `orderIds`.
21356
+ *
21357
+ * shop_redact: erase the data you hold about the whole shop. Sent 48 hours after the merchant uninstalled the app.
21358
+ */
21359
+ export type type32 = 'customer_data_request' | 'customer_redact' | 'shop_redact';
21360
+
21301
21361
  /**
21302
21362
  * Webhook payload for account.rate_limited: a mailbox entered a sending cooldown.
21303
21363
  */
@@ -21322,7 +21382,7 @@ export type WebhookPayloadAccountRateLimited = {
21322
21382
  timestamp: string;
21323
21383
  };
21324
21384
 
21325
- export type event7 = 'account.rate_limited';
21385
+ export type event8 = 'account.rate_limited';
21326
21386
 
21327
21387
  export type reason = 'recipient_burst' | 'provider_rejection' | 'bounces' | 'daily_cap';
21328
21388
 
@@ -21367,7 +21427,7 @@ export type WebhookPayloadAdAccountStatusChanged = {
21367
21427
  timestamp: string;
21368
21428
  };
21369
21429
 
21370
- export type event8 = 'ad_account.status_changed';
21430
+ export type event9 = 'ad_account.status_changed';
21371
21431
 
21372
21432
  export type previous = 'active' | 'restricted' | 'disabled' | 'closed';
21373
21433
 
@@ -21436,7 +21496,7 @@ export type WebhookPayloadAdCreated = {
21436
21496
  timestamp: string;
21437
21497
  };
21438
21498
 
21439
- export type event9 = 'ad.created';
21499
+ export type event10 = 'ad.created';
21440
21500
 
21441
21501
  /**
21442
21502
  * Always `AD`.
@@ -21509,7 +21569,7 @@ export type WebhookPayloadAdDeliveryIssue = {
21509
21569
  timestamp: string;
21510
21570
  };
21511
21571
 
21512
- export type event10 = 'ad.delivery_issue';
21572
+ export type event11 = 'ad.delivery_issue';
21513
21573
 
21514
21574
  /**
21515
21575
  * Webhook payload for the `ad.review.approved` and `ad.review.rejected` events. Emitted for every ad network Zernio syncs (Meta, Google, TikTok, LinkedIn, Pinterest, X, Reddit and the rest).
@@ -21578,7 +21638,7 @@ export type WebhookPayloadAdReview = {
21578
21638
  timestamp: string;
21579
21639
  };
21580
21640
 
21581
- export type event11 = 'ad.review.approved' | 'ad.review.rejected';
21641
+ export type event12 = 'ad.review.approved' | 'ad.review.rejected';
21582
21642
 
21583
21643
  export type status64 = 'approved' | 'rejected';
21584
21644
 
@@ -21752,7 +21812,7 @@ export type WebhookPayloadAdRuleTriggered = {
21752
21812
  timestamp: string;
21753
21813
  };
21754
21814
 
21755
- export type event12 = 'ad_rule.triggered';
21815
+ export type event13 = 'ad_rule.triggered';
21756
21816
 
21757
21817
  /**
21758
21818
  * Whether the rule evaluates campaigns, ad sets or ads.
@@ -21811,7 +21871,7 @@ export type WebhookPayloadAdSetCreated = {
21811
21871
  timestamp: string;
21812
21872
  };
21813
21873
 
21814
- export type event13 = 'ad_set.created';
21874
+ export type event14 = 'ad_set.created';
21815
21875
 
21816
21876
  /**
21817
21877
  * Always `AD_SET`.
@@ -21878,7 +21938,7 @@ export type WebhookPayloadAdSetUpdated = {
21878
21938
  timestamp: string;
21879
21939
  };
21880
21940
 
21881
- export type event14 = 'ad_set.updated';
21941
+ export type event15 = 'ad_set.updated';
21882
21942
 
21883
21943
  /**
21884
21944
  * Webhook payload for the `ad.status_changed` event. Currently emitted
@@ -22005,7 +22065,7 @@ export type WebhookPayloadAdStatusChanged = {
22005
22065
  timestamp: string;
22006
22066
  };
22007
22067
 
22008
- export type event15 = 'ad.status_changed';
22068
+ export type event16 = 'ad.status_changed';
22009
22069
 
22010
22070
  /**
22011
22071
  * Hierarchy level the status applies to. Mirrors Meta's `level`. Creative-level events are not forwarded.
@@ -22085,7 +22145,7 @@ export type WebhookPayloadAdUpdated = {
22085
22145
  timestamp: string;
22086
22146
  };
22087
22147
 
22088
- export type event16 = 'ad.updated';
22148
+ export type event17 = 'ad.updated';
22089
22149
 
22090
22150
  /**
22091
22151
  * Webhook payload for the `ad.video.processed` event. Fires once per
@@ -22151,7 +22211,7 @@ export type WebhookPayloadAdVideoProcessed = {
22151
22211
  timestamp: string;
22152
22212
  };
22153
22213
 
22154
- export type event17 = 'ad.video.processed';
22214
+ export type event18 = 'ad.video.processed';
22155
22215
 
22156
22216
  /**
22157
22217
  * `ready`: usable as `video.id` on the create endpoints. `error`: Meta could not process it; upload again.
@@ -22219,7 +22279,7 @@ export type WebhookPayloadAnalyticsSynced = {
22219
22279
  timestamp: string;
22220
22280
  };
22221
22281
 
22222
- export type event18 = 'analytics.synced';
22282
+ export type event19 = 'analytics.synced';
22223
22283
 
22224
22284
  export type WebhookPayloadApiChangelogPublished = {
22225
22285
  /**
@@ -22238,7 +22298,7 @@ export type WebhookPayloadApiChangelogPublished = {
22238
22298
  timestamp: string;
22239
22299
  };
22240
22300
 
22241
- export type event19 = 'api.changelog.published';
22301
+ export type event20 = 'api.changelog.published';
22242
22302
 
22243
22303
  /**
22244
22304
  * Webhook payload for `automation.action.applied`, `automation.action.failed` and `automation.action.unknown`: one change an automation made or tried.
@@ -22295,7 +22355,7 @@ export type WebhookPayloadAutomationAction = {
22295
22355
  timestamp: string;
22296
22356
  };
22297
22357
 
22298
- export type event20 = 'automation.action.applied' | 'automation.action.failed' | 'automation.action.unknown';
22358
+ export type event21 = 'automation.action.applied' | 'automation.action.failed' | 'automation.action.unknown';
22299
22359
 
22300
22360
  export type status66 = 'applied' | 'skipped' | 'failed' | 'unknown';
22301
22361
 
@@ -22342,7 +22402,7 @@ export type WebhookPayloadAutomationAlert = {
22342
22402
  timestamp: string;
22343
22403
  };
22344
22404
 
22345
- export type event21 = 'automation.alert.opened' | 'automation.alert.escalated' | 'automation.alert.resolved';
22405
+ export type event22 = 'automation.alert.opened' | 'automation.alert.escalated' | 'automation.alert.resolved';
22346
22406
 
22347
22407
  export type severity2 = 'warning' | 'critical';
22348
22408
 
@@ -22396,7 +22456,7 @@ export type WebhookPayloadAutomationCheckCompleted = {
22396
22456
  timestamp: string;
22397
22457
  };
22398
22458
 
22399
- export type event22 = 'automation.check.completed';
22459
+ export type event23 = 'automation.check.completed';
22400
22460
 
22401
22461
  export type WebhookPayloadBalanceCharged = {
22402
22462
  /**
@@ -22450,7 +22510,7 @@ export type WebhookPayloadBalanceCharged = {
22450
22510
  timestamp: string;
22451
22511
  };
22452
22512
 
22453
- export type event23 = 'balance.charged';
22513
+ export type event24 = 'balance.charged';
22454
22514
 
22455
22515
  /**
22456
22516
  * `manual`: someone added funds in Billing or through the API. `auto_top_up`: the auto top-up rule charged the card.
@@ -22489,7 +22549,7 @@ export type WebhookPayloadBalanceEmpty = {
22489
22549
  timestamp: string;
22490
22550
  };
22491
22551
 
22492
- export type event24 = 'balance.empty';
22552
+ export type event25 = 'balance.empty';
22493
22553
 
22494
22554
  /**
22495
22555
  * The 402 code pay-per-use calls get until the balance is funded. `usage_limit_reached` when the auto top-up monthly limit is what keeps it at $0.
@@ -22526,7 +22586,7 @@ export type WebhookPayloadBalanceLow = {
22526
22586
  timestamp: string;
22527
22587
  };
22528
22588
 
22529
- export type event25 = 'balance.low';
22589
+ export type event26 = 'balance.low';
22530
22590
 
22531
22591
  /**
22532
22592
  * Webhook payload for calendar.event.created, calendar.event.updated and calendar.event.deleted. Carries the provider event id and the change only; read the event with `GET /v1/calendar/events/{id}` (deleted ids answer 404).
@@ -22561,7 +22621,7 @@ export type WebhookPayloadCalendarEvent = {
22561
22621
  timestamp: string;
22562
22622
  };
22563
22623
 
22564
- export type event26 = 'calendar.event.created' | 'calendar.event.updated' | 'calendar.event.deleted';
22624
+ export type event27 = 'calendar.event.created' | 'calendar.event.updated' | 'calendar.event.deleted';
22565
22625
 
22566
22626
  export type changeType = 'created' | 'updated' | 'deleted';
22567
22627
 
@@ -22644,7 +22704,7 @@ export type WebhookPayloadCallEnded = {
22644
22704
  timestamp: string;
22645
22705
  };
22646
22706
 
22647
- export type event27 = 'call.ended';
22707
+ export type event28 = 'call.ended';
22648
22708
 
22649
22709
  /**
22650
22710
  * Webhook payload for the `call.failed` event. Fired when a call
@@ -22683,7 +22743,7 @@ export type WebhookPayloadCallFailed = {
22683
22743
  timestamp: string;
22684
22744
  };
22685
22745
 
22686
- export type event28 = 'call.failed';
22746
+ export type event29 = 'call.failed';
22687
22747
 
22688
22748
  /**
22689
22749
  * Webhook payload for the `call.permission_request` event. Fires
@@ -22725,7 +22785,7 @@ export type WebhookPayloadCallPermissionRequest = {
22725
22785
  timestamp: string;
22726
22786
  };
22727
22787
 
22728
- export type event29 = 'call.permission_request';
22788
+ export type event30 = 'call.permission_request';
22729
22789
 
22730
22790
  export type response = 'accept' | 'reject';
22731
22791
 
@@ -22784,7 +22844,7 @@ export type WebhookPayloadCallReceived = {
22784
22844
  timestamp: string;
22785
22845
  };
22786
22846
 
22787
- export type event30 = 'call.received';
22847
+ export type event31 = 'call.received';
22788
22848
 
22789
22849
  /**
22790
22850
  * Webhook payload for the `call.recording_ready` event. Fires when the
@@ -22848,7 +22908,7 @@ export type WebhookPayloadCallRecordingReady = {
22848
22908
  timestamp: string;
22849
22909
  };
22850
22910
 
22851
- export type event31 = 'call.recording_ready';
22911
+ export type event32 = 'call.recording_ready';
22852
22912
 
22853
22913
  /**
22854
22914
  * Webhook payload for the `call.transcript_segment` event. Fires once
@@ -22915,7 +22975,7 @@ export type WebhookPayloadCallTranscriptSegment = {
22915
22975
  timestamp: string;
22916
22976
  };
22917
22977
 
22918
- export type event32 = 'call.transcript_segment';
22978
+ export type event33 = 'call.transcript_segment';
22919
22979
 
22920
22980
  /**
22921
22981
  * Webhook payload for the `campaign.budget.depleted` event. Fires when a campaign
@@ -22966,7 +23026,7 @@ export type WebhookPayloadCampaignBudgetDepleted = {
22966
23026
  timestamp: string;
22967
23027
  };
22968
23028
 
22969
- export type event33 = 'campaign.budget.depleted';
23029
+ export type event34 = 'campaign.budget.depleted';
22970
23030
 
22971
23031
  /**
22972
23032
  * Always `CAMPAIGN`.
@@ -23018,7 +23078,7 @@ export type WebhookPayloadCampaignCreated = {
23018
23078
  timestamp: string;
23019
23079
  };
23020
23080
 
23021
- export type event34 = 'campaign.created';
23081
+ export type event35 = 'campaign.created';
23022
23082
 
23023
23083
  /**
23024
23084
  * Webhook payload for `campaign_draft.submitted`, `campaign_draft.approved`,
@@ -23075,7 +23135,7 @@ export type WebhookPayloadCampaignDraft = {
23075
23135
  timestamp: string;
23076
23136
  };
23077
23137
 
23078
- export type event35 = 'campaign_draft.submitted' | 'campaign_draft.approved' | 'campaign_draft.revision_requested' | 'campaign_draft.rejected';
23138
+ export type event36 = 'campaign_draft.submitted' | 'campaign_draft.approved' | 'campaign_draft.revision_requested' | 'campaign_draft.rejected';
23079
23139
 
23080
23140
  /**
23081
23141
  * Webhook payload for `campaign_participant.joined`, `campaign_participant.pending`,
@@ -23114,7 +23174,7 @@ export type WebhookPayloadCampaignParticipant = {
23114
23174
  timestamp: string;
23115
23175
  };
23116
23176
 
23117
- export type event36 = 'campaign_participant.joined' | 'campaign_participant.pending' | 'campaign_participant.approved' | 'campaign_participant.denied' | 'campaign_participant.suspended' | 'campaign_participant.removed';
23177
+ export type event37 = 'campaign_participant.joined' | 'campaign_participant.pending' | 'campaign_participant.approved' | 'campaign_participant.denied' | 'campaign_participant.suspended' | 'campaign_participant.removed';
23118
23178
 
23119
23179
  /**
23120
23180
  * Webhook payload for `campaign_payout.payable` and `campaign_payout.settled`.
@@ -23203,7 +23263,7 @@ export type WebhookPayloadCampaignPayout = {
23203
23263
  timestamp: string;
23204
23264
  };
23205
23265
 
23206
- export type event37 = 'campaign_payout.payable' | 'campaign_payout.settled' | 'campaign_payout.failed';
23266
+ export type event38 = 'campaign_payout.payable' | 'campaign_payout.settled' | 'campaign_payout.failed';
23207
23267
 
23208
23268
  /**
23209
23269
  * returned: Stripe refused the transfer. stale: it could not be confirmed with Stripe within 24 hours. reversed: Stripe reversed it after it was sent; the settlement is undone.
@@ -23261,7 +23321,7 @@ export type WebhookPayloadCampaignSample = {
23261
23321
  timestamp: string;
23262
23322
  };
23263
23323
 
23264
- export type event38 = 'campaign_sample.requested' | 'campaign_sample.approved' | 'campaign_sample.shipped' | 'campaign_sample.declined';
23324
+ export type event39 = 'campaign_sample.requested' | 'campaign_sample.approved' | 'campaign_sample.shipped' | 'campaign_sample.declined';
23265
23325
 
23266
23326
  /**
23267
23327
  * Webhook payload for the `campaign.status_changed` event. Fires when the ads sync sees a campaign Zernio already tracked change its platform status or, on Google, its status reasons.
@@ -23321,7 +23381,7 @@ export type WebhookPayloadCampaignStatusChanged = {
23321
23381
  timestamp: string;
23322
23382
  };
23323
23383
 
23324
- export type event39 = 'campaign.status_changed';
23384
+ export type event40 = 'campaign.status_changed';
23325
23385
 
23326
23386
  /**
23327
23387
  * Webhook payload for campaign submission events:
@@ -23384,7 +23444,7 @@ export type WebhookPayloadCampaignSubmission = {
23384
23444
  timestamp: string;
23385
23445
  };
23386
23446
 
23387
- export type event40 = 'campaign_submission.received' | 'campaign_submission.flagged' | 'campaign_submission.pending_review' | 'campaign_submission.approved' | 'campaign_submission.rejected';
23447
+ export type event41 = 'campaign_submission.received' | 'campaign_submission.flagged' | 'campaign_submission.pending_review' | 'campaign_submission.approved' | 'campaign_submission.rejected';
23388
23448
 
23389
23449
  /**
23390
23450
  * Webhook payload for the `campaign.updated` event. Fires when a campaign is edited through Zernio (API, MCP or dashboard), after the platform and Zernio both accepted the edit, once per user who can see the campaign. It also fires when the sync detects an edit made outside Zernio.
@@ -23441,7 +23501,7 @@ export type WebhookPayloadCampaignUpdated = {
23441
23501
  timestamp: string;
23442
23502
  };
23443
23503
 
23444
- export type event41 = 'campaign.updated';
23504
+ export type event42 = 'campaign.updated';
23445
23505
 
23446
23506
  /**
23447
23507
  * 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.
@@ -23608,7 +23668,7 @@ export type WebhookPayloadComment = {
23608
23668
  timestamp: string;
23609
23669
  };
23610
23670
 
23611
- export type event42 = 'comment.received';
23671
+ export type event43 = 'comment.received';
23612
23672
 
23613
23673
  export type platform20 = 'instagram' | 'facebook' | 'threads' | 'youtube' | 'linkedin' | 'bluesky' | 'reddit' | 'tiktok';
23614
23674
 
@@ -23655,9 +23715,9 @@ export type WebhookPayloadCommerceOrder = {
23655
23715
  };
23656
23716
  };
23657
23717
 
23658
- export type event43 = 'commerce.order.created' | 'commerce.order.updated' | 'commerce.order.refunded';
23718
+ export type event44 = 'commerce.order.created' | 'commerce.order.updated' | 'commerce.order.refunded';
23659
23719
 
23660
- export type type32 = 'order';
23720
+ export type type33 = 'order';
23661
23721
 
23662
23722
  export type WebhookPayloadCommerceProduct = {
23663
23723
  /**
@@ -23698,9 +23758,9 @@ export type WebhookPayloadCommerceProduct = {
23698
23758
  };
23699
23759
  };
23700
23760
 
23701
- export type event44 = 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted';
23761
+ export type event45 = 'commerce.product.created' | 'commerce.product.updated' | 'commerce.product.deleted';
23702
23762
 
23703
- export type type33 = 'product';
23763
+ export type type34 = 'product';
23704
23764
 
23705
23765
  /**
23706
23766
  * Webhook payload for contact.updated and contact.deleted, fired after a provider contacts sync (Google Contacts, Outlook) changed a contact. contact.updated also fires after a WhatsApp coexistence address-book change (WhatsApp never fires contact.deleted). Read the contact with `GET /v1/contacts/{id}`.
@@ -23727,7 +23787,7 @@ export type WebhookPayloadContact = {
23727
23787
  timestamp: string;
23728
23788
  };
23729
23789
 
23730
- export type event45 = 'contact.updated' | 'contact.deleted';
23790
+ export type event46 = 'contact.updated' | 'contact.deleted';
23731
23791
 
23732
23792
  export type changeType2 = 'updated' | 'deleted';
23733
23793
 
@@ -23767,7 +23827,7 @@ export type WebhookPayloadContactFieldChanged = {
23767
23827
  source: 'api' | 'workflow' | 'automation';
23768
23828
  };
23769
23829
 
23770
- export type event46 = 'contact.field_changed';
23830
+ export type event47 = 'contact.field_changed';
23771
23831
 
23772
23832
  /**
23773
23833
  * Who wrote the field: the API or dashboard, a workflow set_field node, or an automation.
@@ -23799,7 +23859,7 @@ export type WebhookPayloadContactTag = {
23799
23859
  source: 'api' | 'workflow' | 'automation';
23800
23860
  };
23801
23861
 
23802
- export type event47 = 'contact.tag_added' | 'contact.tag_removed';
23862
+ export type event48 = 'contact.tag_added' | 'contact.tag_removed';
23803
23863
 
23804
23864
  /**
23805
23865
  * Who answers a conversation changed. WhatsApp: Meta Business Agent took it over,
@@ -23845,7 +23905,7 @@ export type WebhookPayloadConversationControlChanged = {
23845
23905
  timestamp: string;
23846
23906
  };
23847
23907
 
23848
- export type event48 = 'conversation.control_changed';
23908
+ export type event49 = 'conversation.control_changed';
23849
23909
 
23850
23910
  /**
23851
23911
  * 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).
@@ -23894,7 +23954,7 @@ export type WebhookPayloadConversationStarted = {
23894
23954
  timestamp: string;
23895
23955
  };
23896
23956
 
23897
- export type event49 = 'conversation.started';
23957
+ export type event50 = 'conversation.started';
23898
23958
 
23899
23959
  /**
23900
23960
  * Webhook payload for conversion.received events.
@@ -23964,7 +24024,7 @@ export type WebhookPayloadConversion = {
23964
24024
  timestamp: string;
23965
24025
  };
23966
24026
 
23967
- export type event50 = 'conversion.received';
24027
+ export type event51 = 'conversion.received';
23968
24028
 
23969
24029
  /**
23970
24030
  * Webhook payload for `creator_campaign.budget_exhausted` and `creator_campaign.closed`.
@@ -24003,7 +24063,7 @@ export type WebhookPayloadCreatorCampaign = {
24003
24063
  timestamp: string;
24004
24064
  };
24005
24065
 
24006
- export type event51 = 'creator_campaign.budget_exhausted' | 'creator_campaign.closed';
24066
+ export type event52 = 'creator_campaign.budget_exhausted' | 'creator_campaign.closed';
24007
24067
 
24008
24068
  /**
24009
24069
  * Webhook payload for email.bounced. One event per failed recipient of the bounce.
@@ -24096,12 +24156,12 @@ export type WebhookPayloadEmailBounced = {
24096
24156
  timestamp: string;
24097
24157
  };
24098
24158
 
24099
- export type event52 = 'email.bounced';
24159
+ export type event53 = 'email.bounced';
24100
24160
 
24101
24161
  /**
24102
24162
  * `hard`: 5.x.x, the address does not take mail. `soft`: 4.x.x, a temporary refusal the sending server gave up on. `undetermined`: the report gave no status.
24103
24163
  */
24104
- export type type34 = 'hard' | 'soft' | 'undetermined';
24164
+ export type type35 = 'hard' | 'soft' | 'undetermined';
24105
24165
 
24106
24166
  export type category2 = 'user_unknown' | 'mailbox_full' | 'domain_not_found' | 'policy_blocked' | 'spam_blocked' | 'blocklisted' | 'message_too_large' | 'content_rejected' | 'auth_failure' | 'rate_limited' | 'other';
24107
24167
 
@@ -24140,7 +24200,7 @@ export type WebhookPayloadEmailDeleted = {
24140
24200
  timestamp: string;
24141
24201
  };
24142
24202
 
24143
- export type event53 = 'email.deleted';
24203
+ export type event54 = 'email.deleted';
24144
24204
 
24145
24205
  /**
24146
24206
  * Webhook payload for email.link_clicked.
@@ -24179,7 +24239,7 @@ export type WebhookPayloadEmailLinkClicked = {
24179
24239
  timestamp: string;
24180
24240
  };
24181
24241
 
24182
- export type event54 = 'email.link_clicked';
24242
+ export type event55 = 'email.link_clicked';
24183
24243
 
24184
24244
  /**
24185
24245
  * Webhook payload for email.opened.
@@ -24211,7 +24271,7 @@ export type WebhookPayloadEmailOpened = {
24211
24271
  timestamp: string;
24212
24272
  };
24213
24273
 
24214
- export type event55 = 'email.opened';
24274
+ export type event56 = 'email.opened';
24215
24275
 
24216
24276
  /**
24217
24277
  * Webhook payload for email.send_failed. Read the send with `GET /v1/email/messages/scheduled/{scheduleId}`.
@@ -24245,7 +24305,7 @@ export type WebhookPayloadEmailSendFailed = {
24245
24305
  timestamp: string;
24246
24306
  };
24247
24307
 
24248
- export type event56 = 'email.send_failed';
24308
+ export type event57 = 'email.send_failed';
24249
24309
 
24250
24310
  /**
24251
24311
  * Webhook payload for email.sent.
@@ -24296,7 +24356,7 @@ export type WebhookPayloadEmailSent = {
24296
24356
  timestamp: string;
24297
24357
  };
24298
24358
 
24299
- export type event57 = 'email.sent';
24359
+ export type event58 = 'email.sent';
24300
24360
 
24301
24361
  export type source8 = 'send' | 'reply' | 'forward' | 'draft' | 'scheduled';
24302
24362
 
@@ -24341,7 +24401,7 @@ export type WebhookPayloadEmailThreadReplied = {
24341
24401
  timestamp: string;
24342
24402
  };
24343
24403
 
24344
- export type event58 = 'email.thread_replied';
24404
+ export type event59 = 'email.thread_replied';
24345
24405
 
24346
24406
  /**
24347
24407
  * Webhook payload for email.updated. Gmail sends `changes`; Outlook sends the message as it is now and `changes: null`.
@@ -24394,7 +24454,7 @@ export type WebhookPayloadEmailUpdated = {
24394
24454
  timestamp: string;
24395
24455
  };
24396
24456
 
24397
- export type event59 = 'email.updated';
24457
+ export type event60 = 'email.updated';
24398
24458
 
24399
24459
  /**
24400
24460
  * Webhook payload for post.external.created / post.external.updated /
@@ -24431,7 +24491,7 @@ export type WebhookPayloadExternalPost = {
24431
24491
  timestamp: string;
24432
24492
  };
24433
24493
 
24434
- export type event60 = 'post.external.created' | 'post.external.updated' | 'post.external.deleted';
24494
+ export type event61 = 'post.external.created' | 'post.external.updated' | 'post.external.deleted';
24435
24495
 
24436
24496
  /**
24437
24497
  * Webhook payload for file.created, file.updated and file.deleted. Carries the provider file id and the change only; read the file with `GET /v1/files/{id}`.
@@ -24458,7 +24518,7 @@ export type WebhookPayloadFile = {
24458
24518
  timestamp: string;
24459
24519
  };
24460
24520
 
24461
- export type event61 = 'file.created' | 'file.updated' | 'file.deleted';
24521
+ export type event62 = 'file.created' | 'file.updated' | 'file.deleted';
24462
24522
 
24463
24523
  /**
24464
24524
  * Webhook payload for file.picked: the user picked files on a hosted picker page (`POST /v1/files/picker-sessions`), so the app may now open them. Every id was checked against Drive before the event fired.
@@ -24493,7 +24553,7 @@ export type WebhookPayloadFilePicked = {
24493
24553
  timestamp: string;
24494
24554
  };
24495
24555
 
24496
- export type event62 = 'file.picked';
24556
+ export type event63 = 'file.picked';
24497
24557
 
24498
24558
  /**
24499
24559
  * Webhook payload for lead.received events (Meta Lead Gen / Instant Forms).
@@ -24577,7 +24637,7 @@ export type WebhookPayloadLead = {
24577
24637
  timestamp: string;
24578
24638
  };
24579
24639
 
24580
- export type event63 = 'lead.received';
24640
+ export type event64 = 'lead.received';
24581
24641
 
24582
24642
  /**
24583
24643
  * Webhook payload for mention received events (Instagram, Facebook, LinkedIn).
@@ -24642,14 +24702,14 @@ export type WebhookPayloadMention = {
24642
24702
  timestamp: string;
24643
24703
  };
24644
24704
 
24645
- export type event64 = 'mention.received';
24705
+ export type event65 = 'mention.received';
24646
24706
 
24647
24707
  export type platform21 = 'instagram' | 'facebook' | 'linkedin';
24648
24708
 
24649
24709
  /**
24650
24710
  * Null on LinkedIn.
24651
24711
  */
24652
- export type type35 = 'caption' | 'post' | 'comment';
24712
+ export type type36 = 'caption' | 'post' | 'comment';
24653
24713
 
24654
24714
  /**
24655
24715
  * Webhook payload for message received events
@@ -25232,7 +25292,7 @@ export type WebhookPayloadMessage = {
25232
25292
  timestamp: string;
25233
25293
  };
25234
25294
 
25235
- export type event65 = 'message.received';
25295
+ export type event66 = 'message.received';
25236
25296
 
25237
25297
  /**
25238
25298
  * Which Zernio surface produced the message. Always present and
@@ -25291,7 +25351,7 @@ export type WebhookPayloadMessageDeleted = {
25291
25351
  timestamp: string;
25292
25352
  };
25293
25353
 
25294
- export type event66 = 'message.deleted';
25354
+ export type event67 = 'message.deleted';
25295
25355
 
25296
25356
  /**
25297
25357
  * Shared payload for message.delivered, message.read, message.played and message.failed events. Fires when the platform reports a new delivery state for an outgoing message.
@@ -25355,7 +25415,7 @@ export type WebhookPayloadMessageDeliveryStatus = {
25355
25415
  timestamp: string;
25356
25416
  };
25357
25417
 
25358
- export type event67 = 'message.delivered' | 'message.read' | 'message.played' | 'message.failed';
25418
+ export type event68 = 'message.delivered' | 'message.read' | 'message.played' | 'message.failed';
25359
25419
 
25360
25420
  /**
25361
25421
  * Webhook payload for message.edited events. Fires when the sender
@@ -25398,7 +25458,7 @@ export type WebhookPayloadMessageEdited = {
25398
25458
  timestamp: string;
25399
25459
  };
25400
25460
 
25401
- export type event68 = 'message.edited';
25461
+ export type event69 = 'message.edited';
25402
25462
 
25403
25463
  /**
25404
25464
  * Webhook payload for message sent events (fired when a message is sent via the API, or from the WhatsApp Business app on Coexistence numbers)
@@ -25644,7 +25704,7 @@ export type WebhookPayloadMessageSent = {
25644
25704
  timestamp: string;
25645
25705
  };
25646
25706
 
25647
- export type event69 = 'message.sent';
25707
+ export type event70 = 'message.sent';
25648
25708
 
25649
25709
  /**
25650
25710
  * Every platform whose outgoing messages Zernio observes. sms is absent on purpose: its carrier receipts update delivery status and never raise message.sent.
@@ -25756,14 +25816,14 @@ export type WebhookPayloadNotificationSent = {
25756
25816
  timestamp: string;
25757
25817
  };
25758
25818
 
25759
- export type event70 = 'notification.sent';
25819
+ export type event71 = 'notification.sent';
25760
25820
 
25761
25821
  /**
25762
25822
  * The email notification preference this notification belongs to. securityAlerts has no preference: it is always sent.
25763
25823
  */
25764
25824
  export type category3 = 'postFailures' | 'accountIssues' | 'securityAlerts';
25765
25825
 
25766
- export type type36 = 'post_failed' | 'account_disconnected' | 'api_key_handed_over';
25826
+ export type type37 = 'post_failed' | 'account_disconnected' | 'api_key_handed_over';
25767
25827
 
25768
25828
  /**
25769
25829
  * Webhook payload for phone_number.stock_available events
@@ -25811,7 +25871,7 @@ export type WebhookPayloadPhoneNumberStockAvailable = {
25811
25871
  timestamp: string;
25812
25872
  };
25813
25873
 
25814
- export type event71 = 'phone_number.stock_available';
25874
+ export type event72 = 'phone_number.stock_available';
25815
25875
 
25816
25876
  /**
25817
25877
  * Webhook payload for post events
@@ -25873,7 +25933,7 @@ export type WebhookPayloadPost = {
25873
25933
  timestamp: string;
25874
25934
  };
25875
25935
 
25876
- export type event72 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled';
25936
+ export type event73 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled';
25877
25937
 
25878
25938
  /**
25879
25939
  * Webhook payload for `post.authenticity_changed`. Fired when a tracked post's
@@ -25937,7 +25997,7 @@ export type WebhookPayloadPostAuthenticityChanged = {
25937
25997
  timestamp: string;
25938
25998
  };
25939
25999
 
25940
- export type event73 = 'post.authenticity_changed';
26000
+ export type event74 = 'post.authenticity_changed';
25941
26001
 
25942
26002
  /**
25943
26003
  * Webhook payload for these per-platform events:
@@ -26053,7 +26113,7 @@ export type WebhookPayloadPostPlatform = {
26053
26113
  timestamp: string;
26054
26114
  };
26055
26115
 
26056
- export type event74 = 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved';
26116
+ export type event75 = 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved';
26057
26117
 
26058
26118
  /**
26059
26119
  * Terminal status this event fires on. Matches the event suffix.
@@ -26126,7 +26186,7 @@ export type WebhookPayloadPostTrackingCompleted = {
26126
26186
  timestamp: string;
26127
26187
  };
26128
26188
 
26129
- export type event75 = 'post.tracking_completed';
26189
+ export type event76 = 'post.tracking_completed';
26130
26190
 
26131
26191
  export type completionReason2 = 'final_read' | 'unreachable' | 'post_deleted';
26132
26192
 
@@ -26188,7 +26248,7 @@ export type WebhookPayloadReaction = {
26188
26248
  timestamp: string;
26189
26249
  };
26190
26250
 
26191
- export type event76 = 'reaction.received';
26251
+ export type event77 = 'reaction.received';
26192
26252
 
26193
26253
  export type action = 'added' | 'removed';
26194
26254
 
@@ -26267,7 +26327,7 @@ export type WebhookPayloadReferral = {
26267
26327
  timestamp: string;
26268
26328
  };
26269
26329
 
26270
- export type event77 = 'referral.received';
26330
+ export type event78 = 'referral.received';
26271
26331
 
26272
26332
  /**
26273
26333
  * Webhook payload for the review.deleted event.
@@ -26325,7 +26385,7 @@ export type WebhookPayloadReviewDeleted = {
26325
26385
  timestamp: string;
26326
26386
  };
26327
26387
 
26328
- export type event78 = 'review.deleted';
26388
+ export type event79 = 'review.deleted';
26329
26389
 
26330
26390
  /**
26331
26391
  * Webhook payload for the review.new event (new review posted on a connected account).
@@ -26357,7 +26417,7 @@ export type WebhookPayloadReviewNew = {
26357
26417
  timestamp: string;
26358
26418
  };
26359
26419
 
26360
- export type event79 = 'review.new';
26420
+ export type event80 = 'review.new';
26361
26421
 
26362
26422
  /**
26363
26423
  * Webhook payload for the review.restored event. Same shape as review.new.
@@ -26392,7 +26452,7 @@ export type WebhookPayloadReviewRestored = {
26392
26452
  timestamp: string;
26393
26453
  };
26394
26454
 
26395
- export type event80 = 'review.restored';
26455
+ export type event81 = 'review.restored';
26396
26456
 
26397
26457
  /**
26398
26458
  * Webhook payload for the review.updated event. Same shape as review.new.
@@ -26440,7 +26500,7 @@ export type WebhookPayloadReviewUpdated = {
26440
26500
  timestamp: string;
26441
26501
  };
26442
26502
 
26443
- export type event81 = 'review.updated';
26503
+ export type event82 = 'review.updated';
26444
26504
 
26445
26505
  export type WebhookPayloadSequenceEnrollment = {
26446
26506
  /**
@@ -26473,7 +26533,7 @@ export type WebhookPayloadSequenceEnrollment = {
26473
26533
  exitReason?: 'completed' | 'replied' | 'manual' | 'failed' | 'unsubscribed';
26474
26534
  };
26475
26535
 
26476
- export type event82 = 'sequence.enrolled' | 'sequence.exited';
26536
+ export type event83 = 'sequence.enrolled' | 'sequence.exited';
26477
26537
 
26478
26538
  /**
26479
26539
  * 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.
@@ -26494,7 +26554,7 @@ export type WebhookPayloadSupportRun = {
26494
26554
  run: SupportRun;
26495
26555
  };
26496
26556
 
26497
- export type event83 = 'support.run.completed' | 'support.run.failed';
26557
+ export type event84 = 'support.run.completed' | 'support.run.failed';
26498
26558
 
26499
26559
  /**
26500
26560
  * Webhook payload for test deliveries
@@ -26515,7 +26575,7 @@ export type WebhookPayloadTest = {
26515
26575
  timestamp: string;
26516
26576
  };
26517
26577
 
26518
- export type event84 = 'webhook.test';
26578
+ export type event85 = 'webhook.test';
26519
26579
 
26520
26580
  /**
26521
26581
  * Webhook payload for `whatsapp.account.alert_received`, forwarded from Meta's
@@ -26567,7 +26627,7 @@ export type WebhookPayloadWhatsAppAccountAlertReceived = {
26567
26627
  timestamp: string;
26568
26628
  };
26569
26629
 
26570
- export type event85 = 'whatsapp.account.alert_received';
26630
+ export type event86 = 'whatsapp.account.alert_received';
26571
26631
 
26572
26632
  export type platform23 = 'whatsapp';
26573
26633
 
@@ -26619,7 +26679,7 @@ export type WebhookPayloadWhatsAppAccountNameStatusUpdated = {
26619
26679
  timestamp: string;
26620
26680
  };
26621
26681
 
26622
- export type event86 = 'whatsapp.account.name_status_updated';
26682
+ export type event87 = 'whatsapp.account.name_status_updated';
26623
26683
 
26624
26684
  /**
26625
26685
  * Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
@@ -26677,7 +26737,7 @@ export type WebhookPayloadWhatsAppAccountQualityUpdated = {
26677
26737
  timestamp: string;
26678
26738
  };
26679
26739
 
26680
- export type event87 = 'whatsapp.account.quality_updated';
26740
+ export type event88 = 'whatsapp.account.quality_updated';
26681
26741
 
26682
26742
  /**
26683
26743
  * The Meta webhook field that reported the change.
@@ -26753,7 +26813,7 @@ export type WebhookPayloadWhatsAppAccountStatusUpdated = {
26753
26813
  timestamp: string;
26754
26814
  };
26755
26815
 
26756
- export type event88 = 'whatsapp.account.status_updated';
26816
+ export type event89 = 'whatsapp.account.status_updated';
26757
26817
 
26758
26818
  /**
26759
26819
  * `active` only on a reinstatement (DISABLED_UPDATE with ban state REINSTATE).
@@ -26810,7 +26870,7 @@ export type WebhookPayloadWhatsAppContactIdentityChanged = {
26810
26870
  timestamp: string;
26811
26871
  };
26812
26872
 
26813
- export type event89 = 'whatsapp.contact.identity_changed';
26873
+ export type event90 = 'whatsapp.contact.identity_changed';
26814
26874
 
26815
26875
  /**
26816
26876
  * Which Meta signal reported the change. `user_changed_number`: new phone number. `user_changed_user_id` and `user_id_update`: new BSUID.
@@ -26884,7 +26944,7 @@ export type WebhookPayloadWhatsAppTemplateCategoryUpdated = {
26884
26944
  timestamp: string;
26885
26945
  };
26886
26946
 
26887
- export type event90 = 'whatsapp.template.category_updated';
26947
+ export type event91 = 'whatsapp.template.category_updated';
26888
26948
 
26889
26949
  /**
26890
26950
  * `scheduled` is Meta's 24h advance notice of an upcoming
@@ -26966,7 +27026,7 @@ export type WebhookPayloadWhatsAppTemplateStatusUpdated = {
26966
27026
  timestamp: string;
26967
27027
  };
26968
27028
 
26969
- export type event91 = 'whatsapp.template.status_updated';
27029
+ export type event92 = 'whatsapp.template.status_updated';
26970
27030
 
26971
27031
  /**
26972
27032
  * New status. Forwarded verbatim from Meta's `event` field.
@@ -27033,7 +27093,7 @@ export type WebhookPayloadWorkflowRun = {
27033
27093
  error?: string;
27034
27094
  };
27035
27095
 
27036
- export type event92 = 'workflow.run.started' | 'workflow.run.completed' | 'workflow.run.failed';
27096
+ export type event93 = 'workflow.run.started' | 'workflow.run.completed' | 'workflow.run.failed';
27037
27097
 
27038
27098
  /**
27039
27099
  * 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.
@@ -27314,7 +27374,7 @@ export type WhatsAppTemplateButton = {
27314
27374
  navigate_screen?: string;
27315
27375
  };
27316
27376
 
27317
- export type type37 = 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
27377
+ export type type38 = 'quick_reply' | 'url' | 'phone_number' | 'otp' | 'copy_code' | 'flow' | 'mpm' | 'catalog';
27318
27378
 
27319
27379
  /**
27320
27380
  * Required when type is otp
@@ -27356,7 +27416,7 @@ export type WhatsAppTemplateLookupError = {
27356
27416
  };
27357
27417
  };
27358
27418
 
27359
- export type type38 = 'platform_error';
27419
+ export type type39 = 'platform_error';
27360
27420
 
27361
27421
  export type code4 = 'platform_api_error';
27362
27422
 
@@ -27584,7 +27644,7 @@ export type WorkflowNode = {
27584
27644
  * integrations (webhook, hubspot_upsert_contact, ai, handoff, start_call).
27585
27645
  *
27586
27646
  */
27587
- export type type39 = 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
27647
+ export type type40 = 'trigger' | 'send_message' | 'wait_for_reply' | 'condition' | 'set_variable' | 'delay' | 'webhook' | 'hubspot_upsert_contact' | 'ai' | 'handoff' | 'start_call' | 'a_b_split' | 'set_field' | 'enroll_sequence' | 'add_tag' | 'remove_tag' | 'end';
27588
27648
 
27589
27649
  /**
27590
27650
  * A single X API operation with its per-call price and the Zernio platform methods that trigger it.
@@ -27720,7 +27780,7 @@ export type XArticleBlock = {
27720
27780
  entity_ranges?: Array<XArticleEntityRange>;
27721
27781
  };
27722
27782
 
27723
- export type type40 = 'unstyled' | 'header-one' | 'header-two' | 'header-three' | 'unordered-list-item' | 'ordered-list-item' | 'blockquote' | 'atomic';
27783
+ export type type41 = 'unstyled' | 'header-one' | 'header-two' | 'header-three' | 'unordered-list-item' | 'ordered-list-item' | 'blockquote' | 'atomic';
27724
27784
 
27725
27785
  /**
27726
27786
  * X's snake_case content-state shape. Standard DraftJS camelCase fields such as entityMap, inlineStyleRanges, and entityRanges are rejected.
@@ -27799,7 +27859,7 @@ export type XArticleEntity = {
27799
27859
 
27800
27860
  export type mutability = 'immutable' | 'mutable' | 'segmented';
27801
27861
 
27802
- export type type41 = 'divider' | 'latex';
27862
+ export type type42 = 'divider' | 'latex';
27803
27863
 
27804
27864
  /**
27805
27865
  * The referenced entity must exist, and offset plus length must not exceed the containing block's text length.
@@ -33971,6 +34031,18 @@ export type GetAccountHealthResponse = ({
33971
34031
  * Google and Microsoft only: state of the provider change-notification subscriptions behind `message.received` and `calendar.event.*`. `pending` means a granted area has no live subscription yet (retried every 6 hours), `failed` that renewals keep failing (reconnect the account).
33972
34032
  */
33973
34033
  push?: 'active' | 'pending' | 'failed' | 'not_applicable';
34034
+ /**
34035
+ * Microsoft only: present while the login has no Exchange Online mailbox (no Exchange license, inactive, soft-deleted or on-premises). Mail and calendar requests then answer 412 `mailbox_not_available`; files are not affected. Absent when the mailbox works. `status` is also `warning`, with the reason in `issues`.
34036
+ */
34037
+ mailbox?: {
34038
+ status?: 'unavailable';
34039
+ reason?: 'no_mailbox';
34040
+ message?: string;
34041
+ /**
34042
+ * When Microsoft last answered that the login has no mailbox.
34043
+ */
34044
+ detectedAt?: string;
34045
+ };
33974
34046
  /**
33975
34047
  * Microsoft only: how mail sent from the user's own mail client reaches `message.sent`. `poll` while Microsoft will not give Zernio a working Sent Items subscription for this mailbox (read every 5 minutes), `push` otherwise.
33976
34048
  */
@@ -34926,6 +34998,7 @@ export type GetConnectUrlData = {
34926
34998
  * - A LinkedIn connect through an app saves the member's own profile: organization pages, and mention lookups, stay on Zernio's app.
34927
34999
  * - The connect requests the app's `scopeAreas`. `scopes` may narrow them but not add an area the app does not enable (400).
34928
35000
  * - If the user does not grant every requested area, the account still connects and the redirect carries `missing_permissions=<areas>` (the headless POST returns `missingPermissions`).
35001
+ * - A Microsoft login that connected with `email` or `calendar` but has no Exchange Online mailbox still connects (files work), and the redirect carries `mailboxNotice=mailbox_not_available`. Mail and calendar requests then answer 412 `mailbox_not_available`.
34929
35002
  * - If the platform refuses a permission your app is not approved for, the redirect carries `error=oauth_app_scope_not_allowed`.
34930
35003
  *
34931
35004
  * The account remembers the app, and token refresh, publishing and inbox run on it. Reconnecting through another app, or without one, moves the account to that app.
@@ -42975,7 +43048,7 @@ export type TestWebhookData = {
42975
43048
  /**
42976
43049
  * Send a sample payload of this event instead of `webhook.test`. The sample is marked with `test: true`.
42977
43050
  */
42978
- 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.permissions_changed' | 'account.ads.initial_sync_completed' | 'account.ads.sync_failed' | 'account.ads.sync_recovered' | 'account.rate_limited' | 'calendar.event.created' | 'calendar.event.updated' | 'calendar.event.deleted' | 'email.sent' | 'email.opened' | 'email.link_clicked' | 'email.thread_replied' | 'email.send_failed' | 'email.bounced' | 'email.updated' | 'email.deleted' | 'file.created' | 'file.updated' | 'file.deleted' | 'file.picked' | 'contact.updated' | 'contact.deleted' | 'analytics.synced' | 'post.tracking_completed' | 'post.authenticity_changed' | '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' | 'campaign_submission.received' | 'campaign_submission.flagged' | 'campaign_submission.pending_review' | 'campaign_submission.approved' | 'campaign_submission.rejected' | 'creator_campaign.budget_exhausted' | 'creator_campaign.closed' | 'campaign_payout.payable' | 'campaign_payout.settled' | 'campaign_payout.failed' | 'campaign_participant.joined' | 'campaign_participant.pending' | 'campaign_participant.approved' | 'campaign_participant.denied' | 'campaign_participant.suspended' | 'campaign_participant.removed' | 'campaign_draft.submitted' | 'campaign_draft.approved' | 'campaign_draft.revision_requested' | 'campaign_draft.rejected' | 'campaign_sample.requested' | 'campaign_sample.approved' | 'campaign_sample.shipped' | 'campaign_sample.declined' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'call.transcript_segment' | 'call.recording_ready' | 'comment.received' | 'mention.received' | 'review.new' | 'review.updated' | 'review.deleted' | 'review.restored' | 'ad.status_changed' | 'ad.created' | 'ad.updated' | 'campaign.created' | 'campaign.updated' | 'ad_set.created' | 'ad_set.updated' | 'ad.review.approved' | 'ad.review.rejected' | 'ad.delivery_issue' | 'campaign.budget.depleted' | 'ad_account.status_changed' | 'campaign.status_changed' | 'ad.video.processed' | 'ad_rule.triggered' | 'automation.check.completed' | 'automation.action.applied' | 'automation.action.failed' | 'automation.action.unknown' | 'automation.alert.opened' | 'automation.alert.escalated' | 'automation.alert.resolved' | 'lead.received' | 'conversion.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' | 'balance.low' | 'balance.empty' | 'balance.charged' | 'notification.sent' | 'api.changelog.published';
43051
+ 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.permissions_changed' | 'account.ads.initial_sync_completed' | 'account.ads.sync_failed' | 'account.ads.sync_recovered' | 'account.rate_limited' | 'account.privacy_request' | 'calendar.event.created' | 'calendar.event.updated' | 'calendar.event.deleted' | 'email.sent' | 'email.opened' | 'email.link_clicked' | 'email.thread_replied' | 'email.send_failed' | 'email.bounced' | 'email.updated' | 'email.deleted' | 'file.created' | 'file.updated' | 'file.deleted' | 'file.picked' | 'contact.updated' | 'contact.deleted' | 'analytics.synced' | 'post.tracking_completed' | 'post.authenticity_changed' | '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' | 'campaign_submission.received' | 'campaign_submission.flagged' | 'campaign_submission.pending_review' | 'campaign_submission.approved' | 'campaign_submission.rejected' | 'creator_campaign.budget_exhausted' | 'creator_campaign.closed' | 'campaign_payout.payable' | 'campaign_payout.settled' | 'campaign_payout.failed' | 'campaign_participant.joined' | 'campaign_participant.pending' | 'campaign_participant.approved' | 'campaign_participant.denied' | 'campaign_participant.suspended' | 'campaign_participant.removed' | 'campaign_draft.submitted' | 'campaign_draft.approved' | 'campaign_draft.revision_requested' | 'campaign_draft.rejected' | 'campaign_sample.requested' | 'campaign_sample.approved' | 'campaign_sample.shipped' | 'campaign_sample.declined' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'call.transcript_segment' | 'call.recording_ready' | 'comment.received' | 'mention.received' | 'review.new' | 'review.updated' | 'review.deleted' | 'review.restored' | 'ad.status_changed' | 'ad.created' | 'ad.updated' | 'campaign.created' | 'campaign.updated' | 'ad_set.created' | 'ad_set.updated' | 'ad.review.approved' | 'ad.review.rejected' | 'ad.delivery_issue' | 'campaign.budget.depleted' | 'ad_account.status_changed' | 'campaign.status_changed' | 'ad.video.processed' | 'ad_rule.triggered' | 'automation.check.completed' | 'automation.action.applied' | 'automation.action.failed' | 'automation.action.unknown' | 'automation.alert.opened' | 'automation.alert.escalated' | 'automation.alert.resolved' | 'lead.received' | 'conversion.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' | 'balance.low' | 'balance.empty' | 'balance.charged' | 'notification.sent' | 'api.changelog.published';
42979
43052
  };
42980
43053
  };
42981
43054