@zernio/node 0.2.1025 → 0.2.1027
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 +240 -10
- package/dist/index.d.ts +240 -10
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +252 -10
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.1027",
|
|
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.1027",
|
|
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.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,189 @@ 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
|
+
|
|
13994
|
+
/**
|
|
13995
|
+
* Webhook payload for the `whatsapp.contact.identity_changed` event. Fired when
|
|
13996
|
+
* Meta reports that a WhatsApp user is now known by a different identifier: a
|
|
13997
|
+
* `system` message of type `user_changed_number`, `user_changed_user_id` or
|
|
13998
|
+
* `user_identity_changed`, or a `user_id_update` webhook (BSUID regenerated).
|
|
13999
|
+
* Zernio re-keys the inbox conversation and contact channel before firing.
|
|
14000
|
+
*
|
|
14001
|
+
*/
|
|
14002
|
+
export type WebhookPayloadWhatsAppContactIdentityChanged = {
|
|
14003
|
+
/**
|
|
14004
|
+
* 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.
|
|
14005
|
+
*/
|
|
14006
|
+
id: string;
|
|
14007
|
+
event: 'whatsapp.contact.identity_changed';
|
|
14008
|
+
account: {
|
|
14009
|
+
accountId: string;
|
|
14010
|
+
profileId: string;
|
|
14011
|
+
platform: 'whatsapp';
|
|
14012
|
+
username: string;
|
|
14013
|
+
displayName?: (string) | null;
|
|
14014
|
+
};
|
|
14015
|
+
/**
|
|
14016
|
+
* Which Meta signal reported the change. `user_changed_number`: new phone number. `user_changed_user_id` and `user_id_update`: new BSUID.
|
|
14017
|
+
*/
|
|
14018
|
+
reason: 'user_changed_number' | 'user_changed_user_id' | 'user_identity_changed' | 'user_id_update';
|
|
14019
|
+
previous: WhatsAppContactIdentity;
|
|
14020
|
+
current: WhatsAppContactIdentity;
|
|
14021
|
+
/**
|
|
14022
|
+
* Zernio contact id matched on the new identity, null when none exists yet.
|
|
14023
|
+
*/
|
|
14024
|
+
contactId: (string) | null;
|
|
14025
|
+
/**
|
|
14026
|
+
* Zernio inbox conversation that was re-keyed, null when there was none.
|
|
14027
|
+
*/
|
|
14028
|
+
conversationId: (string) | null;
|
|
14029
|
+
/**
|
|
14030
|
+
* When Meta reported the change.
|
|
14031
|
+
*/
|
|
14032
|
+
changedAt: string;
|
|
14033
|
+
/**
|
|
14034
|
+
* 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.
|
|
14035
|
+
*/
|
|
14036
|
+
timestamp: string;
|
|
14037
|
+
};
|
|
14038
|
+
|
|
14039
|
+
export type event35 = 'whatsapp.contact.identity_changed';
|
|
14040
|
+
|
|
14041
|
+
/**
|
|
14042
|
+
* Which Meta signal reported the change. `user_changed_number`: new phone number. `user_changed_user_id` and `user_id_update`: new BSUID.
|
|
14043
|
+
*/
|
|
14044
|
+
export type reason = 'user_changed_number' | 'user_changed_user_id' | 'user_identity_changed' | 'user_id_update';
|
|
14045
|
+
|
|
13823
14046
|
/**
|
|
13824
14047
|
* Webhook payload for the `whatsapp.template.category_updated` event.
|
|
13825
14048
|
* Fired when Meta reclassifies a template's category attached to a
|
|
@@ -13882,7 +14105,7 @@ export type WebhookPayloadWhatsAppTemplateCategoryUpdated = {
|
|
|
13882
14105
|
timestamp: string;
|
|
13883
14106
|
};
|
|
13884
14107
|
|
|
13885
|
-
export type
|
|
14108
|
+
export type event36 = 'whatsapp.template.category_updated';
|
|
13886
14109
|
|
|
13887
14110
|
/**
|
|
13888
14111
|
* `scheduled` is Meta's 24h advance notice of an upcoming
|
|
@@ -13959,7 +14182,7 @@ export type WebhookPayloadWhatsAppTemplateStatusUpdated = {
|
|
|
13959
14182
|
timestamp: string;
|
|
13960
14183
|
};
|
|
13961
14184
|
|
|
13962
|
-
export type
|
|
14185
|
+
export type event37 = 'whatsapp.template.status_updated';
|
|
13963
14186
|
|
|
13964
14187
|
/**
|
|
13965
14188
|
* New status. Forwarded verbatim from Meta's `event` field.
|
|
@@ -13967,7 +14190,7 @@ export type event33 = 'whatsapp.template.status_updated';
|
|
|
13967
14190
|
* request before the template is actually removed.
|
|
13968
14191
|
*
|
|
13969
14192
|
*/
|
|
13970
|
-
export type
|
|
14193
|
+
export type status35 = 'APPROVED' | 'REJECTED' | 'PENDING' | 'PAUSED' | 'DISABLED' | 'IN_APPEAL' | 'PENDING_DELETION';
|
|
13971
14194
|
|
|
13972
14195
|
/**
|
|
13973
14196
|
* WhatsApp only. Meta's `conversation` object from the status webhook (the billing
|
|
@@ -14037,6 +14260,25 @@ export type WhatsAppCommerceSettings = {
|
|
|
14037
14260
|
isCatalogVisible?: boolean;
|
|
14038
14261
|
};
|
|
14039
14262
|
|
|
14263
|
+
export type WhatsAppContactIdentity = {
|
|
14264
|
+
/**
|
|
14265
|
+
* The user's WhatsApp phone number (wa_id), null when Meta did not send it (a username adopter who hides it).
|
|
14266
|
+
*/
|
|
14267
|
+
phoneNumber: (string) | null;
|
|
14268
|
+
/**
|
|
14269
|
+
* Meta business-scoped user id (BSUID), for example `US.13491208655302741918`.
|
|
14270
|
+
*/
|
|
14271
|
+
businessScopedUserId: (string) | null;
|
|
14272
|
+
/**
|
|
14273
|
+
* Parent BSUID, shared across the businesses of one portfolio when Meta sends it.
|
|
14274
|
+
*/
|
|
14275
|
+
parentBusinessScopedUserId: (string) | null;
|
|
14276
|
+
/**
|
|
14277
|
+
* The user's WhatsApp username, when Meta sent one with the change. Null on `previous`.
|
|
14278
|
+
*/
|
|
14279
|
+
whatsappUsername: (string) | null;
|
|
14280
|
+
};
|
|
14281
|
+
|
|
14040
14282
|
export type WhatsAppFooterComponent = {
|
|
14041
14283
|
type: 'footer';
|
|
14042
14284
|
/**
|
|
@@ -14319,7 +14561,7 @@ export type WorkflowExecutionEvent = {
|
|
|
14319
14561
|
|
|
14320
14562
|
export type action2 = 'execution_started' | 'execution_completed' | 'execution_exited' | 'execution_paused' | 'execution_resumed' | 'node_started' | 'node_completed' | 'node_failed' | 'node_skipped';
|
|
14321
14563
|
|
|
14322
|
-
export type
|
|
14564
|
+
export type status36 = 'success' | 'failed' | 'pending';
|
|
14323
14565
|
|
|
14324
14566
|
/**
|
|
14325
14567
|
* A node in a workflow graph. `config` shape depends on `type`.
|
|
@@ -24696,7 +24938,7 @@ export type CreateWebhookSettingsData = {
|
|
|
24696
24938
|
/**
|
|
24697
24939
|
* Events to subscribe to (at least one required)
|
|
24698
24940
|
*/
|
|
24699
|
-
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' | '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')>;
|
|
24941
|
+
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')>;
|
|
24700
24942
|
/**
|
|
24701
24943
|
* Enable or disable webhook delivery. Defaults to `true` when omitted.
|
|
24702
24944
|
*/
|
|
@@ -24764,7 +25006,7 @@ export type UpdateWebhookSettingsData = {
|
|
|
24764
25006
|
/**
|
|
24765
25007
|
* Events to subscribe to. Must contain at least one event if provided.
|
|
24766
25008
|
*/
|
|
24767
|
-
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' | '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')>;
|
|
25009
|
+
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')>;
|
|
24768
25010
|
/**
|
|
24769
25011
|
* Enable or disable webhook delivery
|
|
24770
25012
|
*/
|