@zernio/node 0.2.1026 → 0.2.1028
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +194 -17
- package/dist/index.d.ts +194 -17
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +202 -17
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.
|
|
39
|
+
version: "0.2.1028",
|
|
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.
|
|
8
|
+
version: "0.2.1028",
|
|
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
|
@@ -11237,7 +11237,7 @@ export type Webhook = {
|
|
|
11237
11237
|
/**
|
|
11238
11238
|
* Events subscribed to
|
|
11239
11239
|
*/
|
|
11240
|
-
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.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' | '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')>;
|
|
11240
|
+
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.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' | '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')>;
|
|
11241
11241
|
/**
|
|
11242
11242
|
* Whether webhook delivery is enabled
|
|
11243
11243
|
*/
|
|
@@ -13764,6 +13764,55 @@ export type WebhookPayloadTest = {
|
|
|
13764
13764
|
|
|
13765
13765
|
export type event30 = 'webhook.test';
|
|
13766
13766
|
|
|
13767
|
+
/**
|
|
13768
|
+
* Webhook payload for `whatsapp.account.alert_received`, forwarded from Meta's
|
|
13769
|
+
* `account_alerts` webhook. Alerts about a specific number go to that number's
|
|
13770
|
+
* account; business-level alerts go to every connected number on the WABA.
|
|
13771
|
+
*
|
|
13772
|
+
*/
|
|
13773
|
+
export type WebhookPayloadWhatsAppAccountAlertReceived = {
|
|
13774
|
+
/**
|
|
13775
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
13776
|
+
*/
|
|
13777
|
+
id: string;
|
|
13778
|
+
event: 'whatsapp.account.alert_received';
|
|
13779
|
+
account: {
|
|
13780
|
+
accountId: string;
|
|
13781
|
+
profileId: string;
|
|
13782
|
+
platform: 'whatsapp';
|
|
13783
|
+
username: string;
|
|
13784
|
+
displayName?: (string) | null;
|
|
13785
|
+
};
|
|
13786
|
+
alert: {
|
|
13787
|
+
/**
|
|
13788
|
+
* BUSINESS, PHONE_NUMBER or CURRENT_STATUS_ID.
|
|
13789
|
+
*/
|
|
13790
|
+
entityType: (string) | null;
|
|
13791
|
+
entityId: (string) | null;
|
|
13792
|
+
/**
|
|
13793
|
+
* CRITICAL, WARNING or INFORMATIONAL.
|
|
13794
|
+
*/
|
|
13795
|
+
severity: (string) | null;
|
|
13796
|
+
/**
|
|
13797
|
+
* ACTIVE or NONE.
|
|
13798
|
+
*/
|
|
13799
|
+
status: (string) | null;
|
|
13800
|
+
/**
|
|
13801
|
+
* For example INCREASED_CAPABILITIES_ELIGIBILITY_DEFERRED, INCREASED_CAPABILITIES_ELIGIBILITY_FAILED, INCREASED_CAPABILITIES_ELIGIBILITY_NEED_MORE_INFO, OBA_APPROVED, OBA_REJECTED, PROFILE_PICTURE_LOST.
|
|
13802
|
+
*/
|
|
13803
|
+
type: (string) | null;
|
|
13804
|
+
description: (string) | null;
|
|
13805
|
+
};
|
|
13806
|
+
/**
|
|
13807
|
+
* UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
|
|
13808
|
+
*/
|
|
13809
|
+
timestamp: string;
|
|
13810
|
+
};
|
|
13811
|
+
|
|
13812
|
+
export type event31 = 'whatsapp.account.alert_received';
|
|
13813
|
+
|
|
13814
|
+
export type platform16 = 'whatsapp';
|
|
13815
|
+
|
|
13767
13816
|
/**
|
|
13768
13817
|
* Webhook payload for the `whatsapp.account.name_status_updated` event.
|
|
13769
13818
|
* Fired when Meta finishes reviewing a WhatsApp display-name change on a
|
|
@@ -13811,15 +13860,137 @@ export type WebhookPayloadWhatsAppAccountNameStatusUpdated = {
|
|
|
13811
13860
|
timestamp: string;
|
|
13812
13861
|
};
|
|
13813
13862
|
|
|
13814
|
-
export type
|
|
13815
|
-
|
|
13816
|
-
export type platform16 = 'whatsapp';
|
|
13863
|
+
export type event32 = 'whatsapp.account.name_status_updated';
|
|
13817
13864
|
|
|
13818
13865
|
/**
|
|
13819
13866
|
* Normalized from Meta's `decision` (REJECTED -> DECLINED, DEFERRED -> PENDING_REVIEW; the review is still open on DEFERRED, not a rejection).
|
|
13820
13867
|
*/
|
|
13821
13868
|
export type status33 = 'APPROVED' | 'DECLINED' | 'PENDING_REVIEW';
|
|
13822
13869
|
|
|
13870
|
+
/**
|
|
13871
|
+
* Webhook payload for `whatsapp.account.quality_updated`. Fired when a connected
|
|
13872
|
+
* number's quality rating or messaging limit tier differs from the value Zernio held.
|
|
13873
|
+
* Tier changes that Meta applies to the whole portfolio fire once per connected number.
|
|
13874
|
+
*
|
|
13875
|
+
*/
|
|
13876
|
+
export type WebhookPayloadWhatsAppAccountQualityUpdated = {
|
|
13877
|
+
/**
|
|
13878
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
13879
|
+
*/
|
|
13880
|
+
id: string;
|
|
13881
|
+
event: 'whatsapp.account.quality_updated';
|
|
13882
|
+
account: {
|
|
13883
|
+
accountId: string;
|
|
13884
|
+
profileId: string;
|
|
13885
|
+
platform: 'whatsapp';
|
|
13886
|
+
username: string;
|
|
13887
|
+
displayName?: (string) | null;
|
|
13888
|
+
};
|
|
13889
|
+
quality: {
|
|
13890
|
+
/**
|
|
13891
|
+
* The Meta webhook field that reported the change.
|
|
13892
|
+
*/
|
|
13893
|
+
source: 'phone_number_quality_update' | 'business_capability_update';
|
|
13894
|
+
/**
|
|
13895
|
+
* Meta's `event` on phone_number_quality_update (for example FLAGGED, UNFLAGGED, UPGRADE, DOWNGRADE, ONBOARDING, THROUGHPUT_UPGRADE). Null on business_capability_update.
|
|
13896
|
+
*/
|
|
13897
|
+
metaEvent: (string) | null;
|
|
13898
|
+
/**
|
|
13899
|
+
* Current quality rating (GREEN, YELLOW, RED, UNKNOWN), read live from Meta on FLAGGED/UNFLAGGED.
|
|
13900
|
+
*/
|
|
13901
|
+
qualityRating: (string) | null;
|
|
13902
|
+
previousQualityRating: (string) | null;
|
|
13903
|
+
/**
|
|
13904
|
+
* Current messaging limit tier, for example TIER_250, TIER_2K, TIER_10K, TIER_100K, TIER_UNLIMITED.
|
|
13905
|
+
*/
|
|
13906
|
+
messagingLimitTier: (string) | null;
|
|
13907
|
+
previousMessagingLimitTier: (string) | null;
|
|
13908
|
+
displayPhoneNumber: (string) | null;
|
|
13909
|
+
};
|
|
13910
|
+
/**
|
|
13911
|
+
* UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
|
|
13912
|
+
*/
|
|
13913
|
+
timestamp: string;
|
|
13914
|
+
};
|
|
13915
|
+
|
|
13916
|
+
export type event33 = 'whatsapp.account.quality_updated';
|
|
13917
|
+
|
|
13918
|
+
/**
|
|
13919
|
+
* The Meta webhook field that reported the change.
|
|
13920
|
+
*/
|
|
13921
|
+
export type source4 = 'phone_number_quality_update' | 'business_capability_update';
|
|
13922
|
+
|
|
13923
|
+
/**
|
|
13924
|
+
* Webhook payload for `whatsapp.account.status_updated`. Fired when Meta restricts,
|
|
13925
|
+
* flags a violation on, disables, deletes or reinstates the WhatsApp Business Account.
|
|
13926
|
+
* The same status is also exposed on the account as `platformStatus`.
|
|
13927
|
+
*
|
|
13928
|
+
*/
|
|
13929
|
+
export type WebhookPayloadWhatsAppAccountStatusUpdated = {
|
|
13930
|
+
/**
|
|
13931
|
+
* Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
|
|
13932
|
+
*/
|
|
13933
|
+
id: string;
|
|
13934
|
+
event: 'whatsapp.account.status_updated';
|
|
13935
|
+
account: {
|
|
13936
|
+
accountId: string;
|
|
13937
|
+
profileId: string;
|
|
13938
|
+
platform: 'whatsapp';
|
|
13939
|
+
username: string;
|
|
13940
|
+
displayName?: (string) | null;
|
|
13941
|
+
};
|
|
13942
|
+
status: {
|
|
13943
|
+
/**
|
|
13944
|
+
* `active` only on a reinstatement (DISABLED_UPDATE with ban state REINSTATE).
|
|
13945
|
+
*/
|
|
13946
|
+
status: 'restricted' | 'active';
|
|
13947
|
+
/**
|
|
13948
|
+
* Meta `account_update` event: ACCOUNT_RESTRICTION, ACCOUNT_VIOLATION, ACCOUNT_DELETED or DISABLED_UPDATE.
|
|
13949
|
+
*/
|
|
13950
|
+
metaEvent: string;
|
|
13951
|
+
/**
|
|
13952
|
+
* Human-readable summary. Null on reinstatement.
|
|
13953
|
+
*/
|
|
13954
|
+
reason: (string) | null;
|
|
13955
|
+
/**
|
|
13956
|
+
* ACCOUNT_VIOLATION only, for example SCAM, ADULT.
|
|
13957
|
+
*/
|
|
13958
|
+
violationType: (string) | null;
|
|
13959
|
+
/**
|
|
13960
|
+
* ACCOUNT_RESTRICTION only. Empty otherwise.
|
|
13961
|
+
*/
|
|
13962
|
+
restrictions: Array<{
|
|
13963
|
+
/**
|
|
13964
|
+
* For example RESTRICTED_BIZ_INITIATED_MESSAGING, RESTRICTED_CUSTOMER_INITIATED_MESSAGING, RESTRICTED_ADD_PHONE_NUMBER_ACTION.
|
|
13965
|
+
*/
|
|
13966
|
+
type: string;
|
|
13967
|
+
/**
|
|
13968
|
+
* When the restriction lifts, as Meta sent it (for example 2026-10-30T13:38:04+0000).
|
|
13969
|
+
*/
|
|
13970
|
+
expiresAt: (string) | null;
|
|
13971
|
+
}>;
|
|
13972
|
+
/**
|
|
13973
|
+
* DISABLED_UPDATE only (for example DISABLE, REINSTATE).
|
|
13974
|
+
*/
|
|
13975
|
+
banState: (string) | null;
|
|
13976
|
+
/**
|
|
13977
|
+
* DISABLED_UPDATE only, as Meta sent it (for example "September 23, 2026").
|
|
13978
|
+
*/
|
|
13979
|
+
banDate: (string) | null;
|
|
13980
|
+
};
|
|
13981
|
+
/**
|
|
13982
|
+
* UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
|
|
13983
|
+
*/
|
|
13984
|
+
timestamp: string;
|
|
13985
|
+
};
|
|
13986
|
+
|
|
13987
|
+
export type event34 = 'whatsapp.account.status_updated';
|
|
13988
|
+
|
|
13989
|
+
/**
|
|
13990
|
+
* `active` only on a reinstatement (DISABLED_UPDATE with ban state REINSTATE).
|
|
13991
|
+
*/
|
|
13992
|
+
export type status34 = 'restricted' | 'active';
|
|
13993
|
+
|
|
13823
13994
|
/**
|
|
13824
13995
|
* Webhook payload for the `whatsapp.contact.identity_changed` event. Fired when
|
|
13825
13996
|
* Meta reports that a WhatsApp user is now known by a different identifier: a
|
|
@@ -13865,7 +14036,7 @@ export type WebhookPayloadWhatsAppContactIdentityChanged = {
|
|
|
13865
14036
|
timestamp: string;
|
|
13866
14037
|
};
|
|
13867
14038
|
|
|
13868
|
-
export type
|
|
14039
|
+
export type event35 = 'whatsapp.contact.identity_changed';
|
|
13869
14040
|
|
|
13870
14041
|
/**
|
|
13871
14042
|
* Which Meta signal reported the change. `user_changed_number`: new phone number. `user_changed_user_id` and `user_id_update`: new BSUID.
|
|
@@ -13934,7 +14105,7 @@ export type WebhookPayloadWhatsAppTemplateCategoryUpdated = {
|
|
|
13934
14105
|
timestamp: string;
|
|
13935
14106
|
};
|
|
13936
14107
|
|
|
13937
|
-
export type
|
|
14108
|
+
export type event36 = 'whatsapp.template.category_updated';
|
|
13938
14109
|
|
|
13939
14110
|
/**
|
|
13940
14111
|
* `scheduled` is Meta's 24h advance notice of an upcoming
|
|
@@ -14011,7 +14182,7 @@ export type WebhookPayloadWhatsAppTemplateStatusUpdated = {
|
|
|
14011
14182
|
timestamp: string;
|
|
14012
14183
|
};
|
|
14013
14184
|
|
|
14014
|
-
export type
|
|
14185
|
+
export type event37 = 'whatsapp.template.status_updated';
|
|
14015
14186
|
|
|
14016
14187
|
/**
|
|
14017
14188
|
* New status. Forwarded verbatim from Meta's `event` field.
|
|
@@ -14019,7 +14190,7 @@ export type event34 = 'whatsapp.template.status_updated';
|
|
|
14019
14190
|
* request before the template is actually removed.
|
|
14020
14191
|
*
|
|
14021
14192
|
*/
|
|
14022
|
-
export type
|
|
14193
|
+
export type status35 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
14023
14194
|
|
|
14024
14195
|
/**
|
|
14025
14196
|
* WhatsApp only. Meta's `conversation` object from the status webhook (the billing
|
|
@@ -14390,7 +14561,7 @@ export type WorkflowExecutionEvent = {
|
|
|
14390
14561
|
|
|
14391
14562
|
export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
14392
14563
|
|
|
14393
|
-
export type
|
|
14564
|
+
export type status36 = 'success' | 'failed' | 'pending';
|
|
14394
14565
|
|
|
14395
14566
|
/**
|
|
14396
14567
|
* A node in a workflow graph. `config` shape depends on `type`.
|
|
@@ -17894,11 +18065,18 @@ export type GetAllAccountsHealthResponse = ({
|
|
|
17894
18065
|
needsReconnect?: boolean;
|
|
17895
18066
|
issues?: Array<(string)>;
|
|
17896
18067
|
/**
|
|
17897
|
-
* Observed from Meta's own
|
|
18068
|
+
* Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction.
|
|
17898
18069
|
*/
|
|
17899
18070
|
messagingRestriction?: {
|
|
17900
|
-
|
|
17901
|
-
|
|
18071
|
+
/**
|
|
18072
|
+
* WhatsApp Cloud API error code. Null on Facebook and Instagram.
|
|
18073
|
+
*/
|
|
18074
|
+
code?: (number) | null;
|
|
18075
|
+
/**
|
|
18076
|
+
* Meta error subcode (Facebook and Instagram). Null on WhatsApp.
|
|
18077
|
+
*/
|
|
18078
|
+
subcode?: (number) | null;
|
|
18079
|
+
message?: (string) | null;
|
|
17902
18080
|
firstSeenAt?: string;
|
|
17903
18081
|
lastSeenAt?: string;
|
|
17904
18082
|
} | null;
|
|
@@ -18051,11 +18229,18 @@ export type GetAccountHealthResponse = ({
|
|
|
18051
18229
|
*/
|
|
18052
18230
|
recommendations?: Array<(string)>;
|
|
18053
18231
|
/**
|
|
18054
|
-
* Observed from Meta's own
|
|
18232
|
+
* Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction.
|
|
18055
18233
|
*/
|
|
18056
18234
|
messagingRestriction?: {
|
|
18057
|
-
|
|
18058
|
-
|
|
18235
|
+
/**
|
|
18236
|
+
* WhatsApp Cloud API error code. Null on Facebook and Instagram.
|
|
18237
|
+
*/
|
|
18238
|
+
code?: (number) | null;
|
|
18239
|
+
/**
|
|
18240
|
+
* Meta error subcode (Facebook and Instagram). Null on WhatsApp.
|
|
18241
|
+
*/
|
|
18242
|
+
subcode?: (number) | null;
|
|
18243
|
+
message?: (string) | null;
|
|
18059
18244
|
firstSeenAt?: string;
|
|
18060
18245
|
lastSeenAt?: string;
|
|
18061
18246
|
} | null;
|
|
@@ -24767,7 +24952,7 @@ export type CreateWebhookSettingsData = {
|
|
|
24767
24952
|
/**
|
|
24768
24953
|
* Events to subscribe to (at least one required)
|
|
24769
24954
|
*/
|
|
24770
|
-
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.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' | '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')>;
|
|
24955
|
+
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.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' | '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')>;
|
|
24771
24956
|
/**
|
|
24772
24957
|
* Enable or disable webhook delivery. Defaults to `true` when omitted.
|
|
24773
24958
|
*/
|
|
@@ -24835,7 +25020,7 @@ export type UpdateWebhookSettingsData = {
|
|
|
24835
25020
|
/**
|
|
24836
25021
|
* Events to subscribe to. Must contain at least one event if provided.
|
|
24837
25022
|
*/
|
|
24838
|
-
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.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' | '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')>;
|
|
25023
|
+
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.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' | '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')>;
|
|
24839
25024
|
/**
|
|
24840
25025
|
* Enable or disable webhook delivery
|
|
24841
25026
|
*/
|