@zernio/node 0.2.952 → 0.2.953

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: "@zernio/node",
39
- version: "0.2.952",
39
+ version: "0.2.953",
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: "@zernio/node",
8
- version: "0.2.952",
8
+ version: "0.2.953",
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": "@zernio/node",
3
- "version": "0.2.952",
3
+ "version": "0.2.953",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9605,7 +9605,7 @@ export type Webhook = {
9605
9605
  /**
9606
9606
  * Events subscribed to
9607
9607
  */
9608
- 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' | '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.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | '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' | 'sms.registration.action_required' | 'sms.registration.status_updated')>;
9608
+ 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.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | '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' | 'sms.registration.action_required' | 'sms.registration.status_updated')>;
9609
9609
  /**
9610
9610
  * Whether webhook delivery is enabled
9611
9611
  */
@@ -9638,6 +9638,28 @@ export type Webhook = {
9638
9638
  accountIds?: Array<(string)>;
9639
9639
  };
9640
9640
 
9641
+ export type WebhookAdsSyncAccount = {
9642
+ /**
9643
+ * The ads connection's account ID (same as used in /v1/accounts/{accountId})
9644
+ */
9645
+ accountId: string;
9646
+ profileId: string;
9647
+ /**
9648
+ * The ads connection platform, e.g. metaads, googleads, tiktokads, linkedinads
9649
+ */
9650
+ platform: string;
9651
+ username: string;
9652
+ displayName?: (string) | null;
9653
+ };
9654
+
9655
+ export type WebhookAdsSyncAdAccount = {
9656
+ /**
9657
+ * The platform ad account ID, e.g. act_1489036928764209 on Meta
9658
+ */
9659
+ platformAdAccountId: string;
9660
+ name: (string) | null;
9661
+ };
9662
+
9641
9663
  /**
9642
9664
  * A single webhook delivery attempt recorded by Zernio (30-day retention).
9643
9665
  */
@@ -9835,6 +9857,85 @@ export type status22 = 'success' | 'failure';
9835
9857
  */
9836
9858
  export type errorCategory2 = 'token_invalid' | 'permission_denied' | 'no_ad_accounts' | 'rate_limited' | 'discovery_failed' | 'unknown';
9837
9859
 
9860
+ /**
9861
+ * Webhook payload for `account.ads.sync_failed` events. Fired once per ad account
9862
+ * when its ads stop syncing: no successful sync for 24 hours, or every live ad in it
9863
+ * at the retry cap. It does not fire again for the same ad account until
9864
+ * `account.ads.sync_recovered`. Metrics for the ad account are stale meanwhile.
9865
+ *
9866
+ */
9867
+ export type WebhookPayloadAccountAdsSyncFailed = {
9868
+ /**
9869
+ * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery.
9870
+ */
9871
+ id: string;
9872
+ event: 'account.ads.sync_failed';
9873
+ account: WebhookAdsSyncAccount;
9874
+ adAccount: WebhookAdsSyncAdAccount;
9875
+ sync: {
9876
+ lastSuccessfulSyncAt: string;
9877
+ /**
9878
+ * Consecutive failed sync attempts on the ad account's ads.
9879
+ */
9880
+ failureCount: number;
9881
+ /**
9882
+ * ad_account_not_listed = the platform no longer returns the ad account to this
9883
+ * connection (access removed, or a platform-side change); sync_error = the platform
9884
+ * returned an error, see `error`; stale = no sync succeeded and no error was
9885
+ * recorded. New values may be added.
9886
+ *
9887
+ */
9888
+ errorCategory: 'ad_account_not_listed' | 'sync_error' | 'stale';
9889
+ /**
9890
+ * Human-readable detail, for display and debugging. Branch on errorCategory.
9891
+ */
9892
+ error: string;
9893
+ };
9894
+ /**
9895
+ * UTC time at which Zernio generated this event. Retries and redeliveries keep the original value.
9896
+ */
9897
+ timestamp: string;
9898
+ };
9899
+
9900
+ export type event2 = 'account.ads.sync_failed';
9901
+
9902
+ /**
9903
+ * ad_account_not_listed = the platform no longer returns the ad account to this
9904
+ * connection (access removed, or a platform-side change); sync_error = the platform
9905
+ * returned an error, see `error`; stale = no sync succeeded and no error was
9906
+ * recorded. New values may be added.
9907
+ *
9908
+ */
9909
+ export type errorCategory3 = 'ad_account_not_listed' | 'sync_error' | 'stale';
9910
+
9911
+ /**
9912
+ * Webhook payload for `account.ads.sync_recovered` events. Fired once when an ad account
9913
+ * previously reported by `account.ads.sync_failed` syncs successfully again.
9914
+ *
9915
+ */
9916
+ export type WebhookPayloadAccountAdsSyncRecovered = {
9917
+ /**
9918
+ * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery.
9919
+ */
9920
+ id: string;
9921
+ event: 'account.ads.sync_recovered';
9922
+ account: WebhookAdsSyncAccount;
9923
+ adAccount: WebhookAdsSyncAdAccount;
9924
+ sync: {
9925
+ lastSuccessfulSyncAt: string;
9926
+ /**
9927
+ * The last successful sync before the failure started.
9928
+ */
9929
+ failingSince: string;
9930
+ };
9931
+ /**
9932
+ * UTC time at which Zernio generated this event. Retries and redeliveries keep the original value.
9933
+ */
9934
+ timestamp: string;
9935
+ };
9936
+
9937
+ export type event3 = 'account.ads.sync_recovered';
9938
+
9838
9939
  /**
9839
9940
  * Webhook payload for account connected events
9840
9941
  */
@@ -9863,7 +9964,7 @@ export type WebhookPayloadAccountConnected = {
9863
9964
  timestamp: string;
9864
9965
  };
9865
9966
 
9866
- export type event2 = 'account.connected';
9967
+ export type event4 = 'account.connected';
9867
9968
 
9868
9969
  /**
9869
9970
  * Webhook payload for account disconnected events
@@ -9901,7 +10002,7 @@ export type WebhookPayloadAccountDisconnected = {
9901
10002
  timestamp: string;
9902
10003
  };
9903
10004
 
9904
- export type event3 = 'account.disconnected';
10005
+ export type event5 = 'account.disconnected';
9905
10006
 
9906
10007
  /**
9907
10008
  * Whether the disconnection was intentional (user action) or unintentional (token expired/revoked)
@@ -10022,7 +10123,7 @@ export type WebhookPayloadAdStatusChanged = {
10022
10123
  timestamp: string;
10023
10124
  };
10024
10125
 
10025
- export type event4 = 'ad.status_changed';
10126
+ export type event6 = 'ad.status_changed';
10026
10127
 
10027
10128
  /**
10028
10129
  * Hierarchy level the status applies to. Mirrors Meta's `level`. Creative-level events are not forwarded.
@@ -10100,7 +10201,7 @@ export type WebhookPayloadAnalyticsSynced = {
10100
10201
  timestamp: string;
10101
10202
  };
10102
10203
 
10103
- export type event5 = 'analytics.synced';
10204
+ export type event7 = 'analytics.synced';
10104
10205
 
10105
10206
  /**
10106
10207
  * Webhook payload for the `call.ended` event. Fires on call hangup
@@ -10170,7 +10271,7 @@ export type WebhookPayloadCallEnded = {
10170
10271
  timestamp: string;
10171
10272
  };
10172
10273
 
10173
- export type event6 = 'call.ended';
10274
+ export type event8 = 'call.ended';
10174
10275
 
10175
10276
  /**
10176
10277
  * Webhook payload for the `call.failed` event. Fired when a call
@@ -10204,7 +10305,7 @@ export type WebhookPayloadCallFailed = {
10204
10305
  timestamp: string;
10205
10306
  };
10206
10307
 
10207
- export type event7 = 'call.failed';
10308
+ export type event9 = 'call.failed';
10208
10309
 
10209
10310
  /**
10210
10311
  * Webhook payload for the `call.permission_request` event. Fires
@@ -10241,7 +10342,7 @@ export type WebhookPayloadCallPermissionRequest = {
10241
10342
  timestamp: string;
10242
10343
  };
10243
10344
 
10244
- export type event8 = 'call.permission_request';
10345
+ export type event10 = 'call.permission_request';
10245
10346
 
10246
10347
  export type response = 'accept' | 'reject';
10247
10348
 
@@ -10295,7 +10396,7 @@ export type WebhookPayloadCallReceived = {
10295
10396
  timestamp: string;
10296
10397
  };
10297
10398
 
10298
- export type event9 = 'call.received';
10399
+ export type event11 = 'call.received';
10299
10400
 
10300
10401
  /**
10301
10402
  * 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.
@@ -10451,7 +10552,7 @@ export type WebhookPayloadComment = {
10451
10552
  timestamp: string;
10452
10553
  };
10453
10554
 
10454
- export type event10 = 'comment.received';
10555
+ export type event12 = 'comment.received';
10455
10556
 
10456
10557
  export type platform12 = 'instagram' | 'facebook' | 'threads' | 'youtube' | 'linkedin' | 'bluesky' | 'reddit' | 'tiktok';
10457
10558
 
@@ -10489,7 +10590,7 @@ export type WebhookPayloadConversationControlChanged = {
10489
10590
  timestamp: string;
10490
10591
  };
10491
10592
 
10492
- export type event11 = 'conversation.control_changed';
10593
+ export type event13 = 'conversation.control_changed';
10493
10594
 
10494
10595
  /**
10495
10596
  * Who answers now. ai_agent: Meta Business Agent; app: you; other: another partner app on the number.
@@ -10526,7 +10627,7 @@ export type WebhookPayloadConversationStarted = {
10526
10627
  timestamp: string;
10527
10628
  };
10528
10629
 
10529
- export type event12 = 'conversation.started';
10630
+ export type event14 = 'conversation.started';
10530
10631
 
10531
10632
  /**
10532
10633
  * Webhook payload for post.external.created / post.external.updated /
@@ -10558,7 +10659,7 @@ export type WebhookPayloadExternalPost = {
10558
10659
  timestamp: string;
10559
10660
  };
10560
10661
 
10561
- export type event13 = 'post.external.created' | 'post.external.updated' | 'post.external.deleted';
10662
+ export type event15 = 'post.external.created' | 'post.external.updated' | 'post.external.deleted';
10562
10663
 
10563
10664
  /**
10564
10665
  * Webhook payload for lead.received events (Meta Lead Gen / Instant Forms).
@@ -10629,7 +10730,7 @@ export type WebhookPayloadLead = {
10629
10730
  timestamp: string;
10630
10731
  };
10631
10732
 
10632
- export type event14 = 'lead.received';
10733
+ export type event16 = 'lead.received';
10633
10734
 
10634
10735
  export type platform13 = 'facebook';
10635
10736
 
@@ -11167,7 +11268,7 @@ export type WebhookPayloadMessage = {
11167
11268
  timestamp: string;
11168
11269
  };
11169
11270
 
11170
- export type event15 = 'message.received';
11271
+ export type event17 = 'message.received';
11171
11272
 
11172
11273
  /**
11173
11274
  * Which Zernio surface produced the message. Always present and
@@ -11228,7 +11329,7 @@ export type WebhookPayloadMessageDeleted = {
11228
11329
  timestamp: string;
11229
11330
  };
11230
11331
 
11231
- export type event16 = 'message.deleted';
11332
+ export type event18 = 'message.deleted';
11232
11333
 
11233
11334
  /**
11234
11335
  * Shared payload for message.delivered, message.read, and
@@ -11288,7 +11389,7 @@ export type WebhookPayloadMessageDeliveryStatus = {
11288
11389
  timestamp: string;
11289
11390
  };
11290
11391
 
11291
- export type event17 = 'message.delivered' | 'message.read' | 'message.failed';
11392
+ export type event19 = 'message.delivered' | 'message.read' | 'message.failed';
11292
11393
 
11293
11394
  /**
11294
11395
  * Webhook payload for message.edited events. Fires when the sender
@@ -11326,7 +11427,7 @@ export type WebhookPayloadMessageEdited = {
11326
11427
  timestamp: string;
11327
11428
  };
11328
11429
 
11329
- export type event18 = 'message.edited';
11430
+ export type event20 = 'message.edited';
11330
11431
 
11331
11432
  /**
11332
11433
  * Webhook payload for message sent events (fired when a message is sent via the API, or from the WhatsApp Business app on Coexistence numbers)
@@ -11542,7 +11643,7 @@ export type WebhookPayloadMessageSent = {
11542
11643
  timestamp: string;
11543
11644
  };
11544
11645
 
11545
- export type event19 = 'message.sent';
11646
+ export type event21 = 'message.sent';
11546
11647
 
11547
11648
  /**
11548
11649
  * Every platform whose outgoing messages Zernio observes. sms is absent on purpose: its carrier receipts update delivery status and never raise message.sent.
@@ -11596,7 +11697,7 @@ export type WebhookPayloadPhoneNumberStockAvailable = {
11596
11697
  timestamp: string;
11597
11698
  };
11598
11699
 
11599
- export type event20 = 'phone_number.stock_available';
11700
+ export type event22 = 'phone_number.stock_available';
11600
11701
 
11601
11702
  /**
11602
11703
  * Webhook payload for post events
@@ -11646,7 +11747,7 @@ export type WebhookPayloadPost = {
11646
11747
  timestamp: string;
11647
11748
  };
11648
11749
 
11649
- export type event21 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled';
11750
+ export type event23 = 'post.scheduled' | 'post.published' | 'post.failed' | 'post.partial' | 'post.cancelled' | 'post.recycled';
11650
11751
 
11651
11752
  /**
11652
11753
  * Webhook payload for the per-platform terminal events
@@ -11765,7 +11866,7 @@ export type WebhookPayloadPostPlatform = {
11765
11866
  timestamp: string;
11766
11867
  };
11767
11868
 
11768
- export type event22 = 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved';
11869
+ export type event24 = 'post.platform.published' | 'post.platform.failed' | 'post.platform.deleted' | 'post.tiktok.url_resolved';
11769
11870
 
11770
11871
  /**
11771
11872
  * Terminal status this event fires on. Matches the event suffix.
@@ -11825,7 +11926,7 @@ export type WebhookPayloadReaction = {
11825
11926
  timestamp: string;
11826
11927
  };
11827
11928
 
11828
- export type event23 = 'reaction.received';
11929
+ export type event25 = 'reaction.received';
11829
11930
 
11830
11931
  export type action = 'added' | 'removed';
11831
11932
 
@@ -11899,7 +12000,7 @@ export type WebhookPayloadReferral = {
11899
12000
  timestamp: string;
11900
12001
  };
11901
12002
 
11902
- export type event24 = 'referral.received';
12003
+ export type event26 = 'referral.received';
11903
12004
 
11904
12005
  /**
11905
12006
  * Webhook payload for the review.new event (new review posted on a connected account).
@@ -11926,7 +12027,7 @@ export type WebhookPayloadReviewNew = {
11926
12027
  timestamp: string;
11927
12028
  };
11928
12029
 
11929
- export type event25 = 'review.new';
12030
+ export type event27 = 'review.new';
11930
12031
 
11931
12032
  /**
11932
12033
  * Webhook payload for the review.updated event. Fired when the reviewer edits their
@@ -11959,7 +12060,7 @@ export type WebhookPayloadReviewUpdated = {
11959
12060
  timestamp: string;
11960
12061
  };
11961
12062
 
11962
- export type event26 = 'review.updated';
12063
+ export type event28 = 'review.updated';
11963
12064
 
11964
12065
  /**
11965
12066
  * Webhook payload for test deliveries
@@ -11980,7 +12081,7 @@ export type WebhookPayloadTest = {
11980
12081
  timestamp: string;
11981
12082
  };
11982
12083
 
11983
- export type event27 = 'webhook.test';
12084
+ export type event29 = 'webhook.test';
11984
12085
 
11985
12086
  /**
11986
12087
  * Webhook payload for the `whatsapp.account.name_status_updated` event.
@@ -12029,7 +12130,7 @@ export type WebhookPayloadWhatsAppAccountNameStatusUpdated = {
12029
12130
  timestamp: string;
12030
12131
  };
12031
12132
 
12032
- export type event28 = 'whatsapp.account.name_status_updated';
12133
+ export type event30 = 'whatsapp.account.name_status_updated';
12033
12134
 
12034
12135
  export type platform15 = 'whatsapp';
12035
12136
 
@@ -12100,7 +12201,7 @@ export type WebhookPayloadWhatsAppTemplateCategoryUpdated = {
12100
12201
  timestamp: string;
12101
12202
  };
12102
12203
 
12103
- export type event29 = 'whatsapp.template.category_updated';
12204
+ export type event31 = 'whatsapp.template.category_updated';
12104
12205
 
12105
12206
  /**
12106
12207
  * `scheduled` is Meta's 24h advance notice of an upcoming
@@ -12177,7 +12278,7 @@ export type WebhookPayloadWhatsAppTemplateStatusUpdated = {
12177
12278
  timestamp: string;
12178
12279
  };
12179
12280
 
12180
- export type event30 = 'whatsapp.template.status_updated';
12281
+ export type event32 = 'whatsapp.template.status_updated';
12181
12282
 
12182
12283
  /**
12183
12284
  * New status. Forwarded verbatim from Meta's `event` field.
@@ -22732,7 +22833,7 @@ export type CreateWebhookSettingsData = {
22732
22833
  /**
22733
22834
  * Events to subscribe to (at least one required)
22734
22835
  */
22735
- 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' | '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.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | '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' | 'sms.registration.action_required' | 'sms.registration.status_updated')>;
22836
+ 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.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | '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' | 'sms.registration.action_required' | 'sms.registration.status_updated')>;
22736
22837
  /**
22737
22838
  * Enable or disable webhook delivery. Defaults to `true` when omitted.
22738
22839
  */
@@ -22800,7 +22901,7 @@ export type UpdateWebhookSettingsData = {
22800
22901
  /**
22801
22902
  * Events to subscribe to. Must contain at least one event if provided.
22802
22903
  */
22803
- 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' | '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.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | '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' | 'sms.registration.action_required' | 'sms.registration.status_updated')>;
22904
+ 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.failed' | 'reaction.received' | 'referral.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.status_updated' | 'whatsapp.template.category_updated' | 'whatsapp.account.name_status_updated' | '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' | 'sms.registration.action_required' | 'sms.registration.status_updated')>;
22804
22905
  /**
22805
22906
  * Enable or disable webhook delivery
22806
22907
  */