@getlatedev/node 0.2.568 → 0.2.570
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 +157 -35
- package/dist/index.d.ts +157 -35
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +160 -34
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.570",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.570",
|
|
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
|
@@ -1145,17 +1145,25 @@ export type AnalyticsSinglePostResponse = {
|
|
|
1145
1145
|
mediaItems?: Array<{
|
|
1146
1146
|
type?: 'image' | 'video';
|
|
1147
1147
|
/**
|
|
1148
|
-
* Direct URL to the media
|
|
1148
|
+
* 'Direct URL to the media file. Null when the platform withholds it: check mediaStatus before downloading. Instagram omits the video file for Reels it flags as containing copyrighted material (its docs name audio as the usual cause), so type stays "video" while the file is permanently unreachable.'
|
|
1149
1149
|
*/
|
|
1150
|
-
url?: string;
|
|
1150
|
+
url?: (string) | null;
|
|
1151
1151
|
/**
|
|
1152
|
-
* Thumbnail URL (same as url for images)
|
|
1152
|
+
* Thumbnail URL (same as url for images). Still present when url is null.
|
|
1153
1153
|
*/
|
|
1154
|
-
thumbnail?: string;
|
|
1154
|
+
thumbnail?: (string) | null;
|
|
1155
1155
|
/**
|
|
1156
1156
|
* Accessibility alt text set on the media, when present.
|
|
1157
1157
|
*/
|
|
1158
1158
|
altText?: string;
|
|
1159
|
+
/**
|
|
1160
|
+
* Present only when the media file could not be retrieved. Absent means the file is available at url.
|
|
1161
|
+
*/
|
|
1162
|
+
mediaStatus?: 'unavailable';
|
|
1163
|
+
/**
|
|
1164
|
+
* Why the file is missing. platform_withheld means the platform declined to return it and retrying will not help.
|
|
1165
|
+
*/
|
|
1166
|
+
unavailableReason?: 'platform_withheld';
|
|
1159
1167
|
}>;
|
|
1160
1168
|
};
|
|
1161
1169
|
|
|
@@ -2746,17 +2754,41 @@ export type ErrorResponse = {
|
|
|
2746
2754
|
export type type4 = 'invalid_request_error' | 'authentication_error' | 'permission_error' | 'not_found' | 'rate_limit_error' | 'platform_error' | 'api_error';
|
|
2747
2755
|
|
|
2748
2756
|
/**
|
|
2749
|
-
* A media item on a native (external/synced) post, as carried by post.external.* webhook payloads. Distinct from the richer MediaItem used for Zernio-authored posts: external items are always already-published
|
|
2757
|
+
* A media item on a native (external/synced) post, as carried by post.external.* webhook payloads. Distinct from the richer MediaItem used for Zernio-authored posts: external items are always already-published and limited to image or video. Kept as a separate schema so the generated SDK model does not collide with MediaItem.
|
|
2750
2758
|
*
|
|
2751
2759
|
*/
|
|
2752
2760
|
export type ExternalPostMediaItem = {
|
|
2753
2761
|
type: 'image' | 'video';
|
|
2754
|
-
|
|
2762
|
+
/**
|
|
2763
|
+
* 'Direct URL to the media file. Null when the platform withholds it: check mediaStatus before downloading. Instagram omits the video file for Reels it flags as containing copyrighted material (its docs name audio as the usual cause), so type stays "video" while the file is permanently unreachable.'
|
|
2764
|
+
*/
|
|
2765
|
+
url: (string) | null;
|
|
2766
|
+
/**
|
|
2767
|
+
* Cover image. Still present when url is null.
|
|
2768
|
+
*/
|
|
2755
2769
|
thumbnail?: string;
|
|
2770
|
+
/**
|
|
2771
|
+
* Present only when the media file could not be retrieved. Absent means the file is available at url.
|
|
2772
|
+
*/
|
|
2773
|
+
mediaStatus?: 'unavailable';
|
|
2774
|
+
/**
|
|
2775
|
+
* Why the file is missing. platform_withheld means the platform declined to return it and retrying will not help.
|
|
2776
|
+
*/
|
|
2777
|
+
unavailableReason?: 'platform_withheld';
|
|
2756
2778
|
};
|
|
2757
2779
|
|
|
2758
2780
|
export type type5 = 'image' | 'video';
|
|
2759
2781
|
|
|
2782
|
+
/**
|
|
2783
|
+
* Present only when the media file could not be retrieved. Absent means the file is available at url.
|
|
2784
|
+
*/
|
|
2785
|
+
export type mediaStatus = 'unavailable';
|
|
2786
|
+
|
|
2787
|
+
/**
|
|
2788
|
+
* Why the file is missing. platform_withheld means the platform declined to return it and retrying will not help.
|
|
2789
|
+
*/
|
|
2790
|
+
export type unavailableReason = 'platform_withheld';
|
|
2791
|
+
|
|
2760
2792
|
/**
|
|
2761
2793
|
* A post synced from a platform (published directly on the platform, not
|
|
2762
2794
|
* through Zernio). Returned by GET /v1/posts?source=external and
|
|
@@ -6055,7 +6087,7 @@ export type Webhook = {
|
|
|
6055
6087
|
/**
|
|
6056
6088
|
* Events subscribed to
|
|
6057
6089
|
*/
|
|
6058
|
-
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' | 'message.received' | 'conversation.started' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.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' | 'verification.approved' | 'verification.failed')>;
|
|
6090
|
+
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' | 'message.received' | 'conversation.started' | '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.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' | 'verification.approved' | 'verification.failed')>;
|
|
6059
6091
|
/**
|
|
6060
6092
|
* Whether webhook delivery is enabled
|
|
6061
6093
|
*/
|
|
@@ -7242,17 +7274,27 @@ export type WebhookPayloadMessage = {
|
|
|
7242
7274
|
*/
|
|
7243
7275
|
isStoryMention?: boolean;
|
|
7244
7276
|
/**
|
|
7245
|
-
*
|
|
7277
|
+
* Click attribution forwarded verbatim from Meta. Populated only on
|
|
7246
7278
|
* the FIRST inbound message after the click; absent on subsequent
|
|
7247
|
-
* messages of the same conversation.
|
|
7279
|
+
* messages of the same conversation. On Instagram and Messenger a
|
|
7280
|
+
* RETURNING click also attaches it to the first message that
|
|
7281
|
+
* follows, so read it on every `message.received` for per-click
|
|
7282
|
+
* attribution; a click that opens an existing thread WITHOUT a
|
|
7283
|
+
* message arrives as the separate `referral.received` event.
|
|
7248
7284
|
*
|
|
7249
|
-
* The populated subset identifies the source
|
|
7285
|
+
* The populated subset identifies the source:
|
|
7250
7286
|
* - `ctwa_clid` and `source_*` fields: WhatsApp CTWA
|
|
7251
7287
|
* (Click-to-WhatsApp). Attribution window is 7 days from click.
|
|
7252
7288
|
* Forward to Meta Conversions API for Business Messaging replay.
|
|
7253
7289
|
* - `ad_id` and `ads_context_data`: Facebook Messenger CTM
|
|
7254
7290
|
* (Click-to-Message) or Instagram CTD (Click-to-Direct). Use
|
|
7255
7291
|
* `ad_id` to attribute the conversation to a specific ad.
|
|
7292
|
+
* - `ref` without `ad_id`: an ig.me / m.me link carrying a
|
|
7293
|
+
* `?ref=` parameter (`source` is `SHORTLINK`, `SHORTLINKS` or
|
|
7294
|
+
* `IGME-SOURCE-LINK` depending on surface - treat it as
|
|
7295
|
+
* opaque). Instagram delivers ig.me refs on new threads only
|
|
7296
|
+
* when the account has at least one Ice Breaker configured
|
|
7297
|
+
* (`PUT /v1/accounts/{accountId}/instagram-ice-breakers`).
|
|
7256
7298
|
*
|
|
7257
7299
|
*/
|
|
7258
7300
|
referral?: {
|
|
@@ -7276,23 +7318,31 @@ export type WebhookPayloadMessage = {
|
|
|
7276
7318
|
*/
|
|
7277
7319
|
ad_id?: string;
|
|
7278
7320
|
/**
|
|
7279
|
-
*
|
|
7280
|
-
*
|
|
7321
|
+
* The `ref` parameter passed through from the Meta ad creative
|
|
7322
|
+
* or from an ig.me / m.me link. Instagram / Facebook Messenger
|
|
7323
|
+
* only.
|
|
7281
7324
|
*
|
|
7282
7325
|
*/
|
|
7283
7326
|
ref?: string;
|
|
7284
7327
|
/**
|
|
7285
|
-
* Meta-supplied source identifier (
|
|
7286
|
-
*
|
|
7328
|
+
* Meta-supplied source identifier (`ADS` for ad clicks;
|
|
7329
|
+
* `SHORTLINK`, `SHORTLINKS` or `IGME-SOURCE-LINK` for ref
|
|
7330
|
+
* links). Instagram / Facebook Messenger only.
|
|
7287
7331
|
*
|
|
7288
7332
|
*/
|
|
7289
7333
|
source?: string;
|
|
7290
7334
|
/**
|
|
7291
|
-
* Meta-supplied referral type (e.g. `OPEN_THREAD`).
|
|
7292
|
-
* Messenger
|
|
7335
|
+
* Meta-supplied referral type (e.g. `OPEN_THREAD`). Instagram /
|
|
7336
|
+
* Facebook Messenger only.
|
|
7293
7337
|
*
|
|
7294
7338
|
*/
|
|
7295
7339
|
type?: string;
|
|
7340
|
+
/**
|
|
7341
|
+
* URI of the originating site, when Meta supplies one (m.me
|
|
7342
|
+
* links opened from the web). Facebook Messenger only.
|
|
7343
|
+
*
|
|
7344
|
+
*/
|
|
7345
|
+
referer_uri?: string;
|
|
7296
7346
|
/**
|
|
7297
7347
|
* Snapshot of the ad's public context at click time. Facebook
|
|
7298
7348
|
* Messenger CTM / Instagram CTD only.
|
|
@@ -7749,6 +7799,78 @@ export type event20 = 'reaction.received';
|
|
|
7749
7799
|
|
|
7750
7800
|
export type action = 'added' | 'removed';
|
|
7751
7801
|
|
|
7802
|
+
/**
|
|
7803
|
+
* Webhook payload for referral received events (Instagram, Facebook Messenger)
|
|
7804
|
+
*/
|
|
7805
|
+
export type WebhookPayloadReferral = {
|
|
7806
|
+
/**
|
|
7807
|
+
* Stable webhook event ID
|
|
7808
|
+
*/
|
|
7809
|
+
id: string;
|
|
7810
|
+
event: 'referral.received';
|
|
7811
|
+
/**
|
|
7812
|
+
* Meta's referral object, forwarded verbatim. Same shape as
|
|
7813
|
+
* `metadata.referral` on `message.received`: `ref` + `source` for
|
|
7814
|
+
* ig.me / m.me links, `ad_id` + `ads_context_data` for returning
|
|
7815
|
+
* Messenger ad clicks.
|
|
7816
|
+
*
|
|
7817
|
+
*/
|
|
7818
|
+
referral: {
|
|
7819
|
+
/**
|
|
7820
|
+
* The `ref` parameter of the clicked ig.me / m.me link or ad.
|
|
7821
|
+
*/
|
|
7822
|
+
ref?: string;
|
|
7823
|
+
/**
|
|
7824
|
+
* Meta-supplied source (`SHORTLINK`, `SHORTLINKS`, `IGME-SOURCE-LINK`, `ADS` - treat as opaque).
|
|
7825
|
+
*/
|
|
7826
|
+
source?: string;
|
|
7827
|
+
/**
|
|
7828
|
+
* Meta-supplied referral type (e.g. `OPEN_THREAD`).
|
|
7829
|
+
*/
|
|
7830
|
+
type?: string;
|
|
7831
|
+
/**
|
|
7832
|
+
* URI of the originating site, when Meta supplies one. Facebook Messenger only.
|
|
7833
|
+
*/
|
|
7834
|
+
referer_uri?: string;
|
|
7835
|
+
/**
|
|
7836
|
+
* The Meta ad ID, on returning ad clicks. Facebook Messenger only.
|
|
7837
|
+
*/
|
|
7838
|
+
ad_id?: string;
|
|
7839
|
+
/**
|
|
7840
|
+
* Snapshot of the ad's public context at click time.
|
|
7841
|
+
*/
|
|
7842
|
+
ads_context_data?: {
|
|
7843
|
+
ad_title?: string;
|
|
7844
|
+
photo_url?: string;
|
|
7845
|
+
video_url?: string;
|
|
7846
|
+
post_id?: string;
|
|
7847
|
+
product_id?: string;
|
|
7848
|
+
flow_id?: string;
|
|
7849
|
+
};
|
|
7850
|
+
};
|
|
7851
|
+
/**
|
|
7852
|
+
* Who clicked - the conversation participant.
|
|
7853
|
+
*/
|
|
7854
|
+
sender: {
|
|
7855
|
+
/**
|
|
7856
|
+
* Platform-scoped user ID (IGSID / PSID).
|
|
7857
|
+
*/
|
|
7858
|
+
id: string;
|
|
7859
|
+
/**
|
|
7860
|
+
* Zernio CRM Contact id for this sender, when one exists.
|
|
7861
|
+
*/
|
|
7862
|
+
contactId?: string;
|
|
7863
|
+
};
|
|
7864
|
+
conversation: InboxWebhookConversation;
|
|
7865
|
+
account: InboxWebhookAccount;
|
|
7866
|
+
/**
|
|
7867
|
+
* 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.
|
|
7868
|
+
*/
|
|
7869
|
+
timestamp: string;
|
|
7870
|
+
};
|
|
7871
|
+
|
|
7872
|
+
export type event21 = 'referral.received';
|
|
7873
|
+
|
|
7752
7874
|
/**
|
|
7753
7875
|
* Webhook payload for the review.new event (new review posted on a connected account).
|
|
7754
7876
|
*/
|
|
@@ -7774,7 +7896,7 @@ export type WebhookPayloadReviewNew = {
|
|
|
7774
7896
|
timestamp: string;
|
|
7775
7897
|
};
|
|
7776
7898
|
|
|
7777
|
-
export type
|
|
7899
|
+
export type event22 = 'review.new';
|
|
7778
7900
|
|
|
7779
7901
|
/**
|
|
7780
7902
|
* Webhook payload for the review.updated event. Fired when the reviewer edits
|
|
@@ -7805,7 +7927,7 @@ export type WebhookPayloadReviewUpdated = {
|
|
|
7805
7927
|
timestamp: string;
|
|
7806
7928
|
};
|
|
7807
7929
|
|
|
7808
|
-
export type
|
|
7930
|
+
export type event23 = 'review.updated';
|
|
7809
7931
|
|
|
7810
7932
|
/**
|
|
7811
7933
|
* Webhook payload for test deliveries
|
|
@@ -7826,7 +7948,7 @@ export type WebhookPayloadTest = {
|
|
|
7826
7948
|
timestamp: string;
|
|
7827
7949
|
};
|
|
7828
7950
|
|
|
7829
|
-
export type
|
|
7951
|
+
export type event24 = 'webhook.test';
|
|
7830
7952
|
|
|
7831
7953
|
/**
|
|
7832
7954
|
* Webhook payload for the `whatsapp.template.status_updated` event.
|
|
@@ -7881,7 +8003,7 @@ export type WebhookPayloadWhatsAppTemplateStatusUpdated = {
|
|
|
7881
8003
|
timestamp: string;
|
|
7882
8004
|
};
|
|
7883
8005
|
|
|
7884
|
-
export type
|
|
8006
|
+
export type event25 = 'whatsapp.template.status_updated';
|
|
7885
8007
|
|
|
7886
8008
|
export type platform11 = 'whatsapp';
|
|
7887
8009
|
|
|
@@ -16305,7 +16427,7 @@ export type CreateWebhookSettingsData = {
|
|
|
16305
16427
|
/**
|
|
16306
16428
|
* Events to subscribe to (at least one required)
|
|
16307
16429
|
*/
|
|
16308
|
-
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' | 'message.received' | 'conversation.started' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.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' | 'verification.approved' | 'verification.failed')>;
|
|
16430
|
+
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' | 'message.received' | 'conversation.started' | '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.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' | 'verification.approved' | 'verification.failed')>;
|
|
16309
16431
|
/**
|
|
16310
16432
|
* Enable or disable webhook delivery. Defaults to `true` when omitted.
|
|
16311
16433
|
*/
|
|
@@ -16360,7 +16482,7 @@ export type UpdateWebhookSettingsData = {
|
|
|
16360
16482
|
/**
|
|
16361
16483
|
* Events to subscribe to. Must contain at least one event if provided.
|
|
16362
16484
|
*/
|
|
16363
|
-
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' | 'message.received' | 'conversation.started' | 'call.received' | 'call.ended' | 'call.failed' | 'call.permission_request' | 'message.sent' | 'message.edited' | 'message.deleted' | 'message.delivered' | 'message.read' | 'message.failed' | 'reaction.received' | 'comment.received' | 'review.new' | 'review.updated' | 'lead.received' | 'ad.status_changed' | 'whatsapp.template.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' | 'verification.approved' | 'verification.failed')>;
|
|
16485
|
+
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' | 'message.received' | 'conversation.started' | '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.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' | 'verification.approved' | 'verification.failed')>;
|
|
16364
16486
|
/**
|
|
16365
16487
|
* Enable or disable webhook delivery
|
|
16366
16488
|
*/
|
|
@@ -16742,13 +16864,15 @@ export type ListInboxConversationsResponse = ({
|
|
|
16742
16864
|
fetchedAt?: (string) | null;
|
|
16743
16865
|
} | null;
|
|
16744
16866
|
/**
|
|
16745
|
-
*
|
|
16746
|
-
* Absent when the conversation did not
|
|
16867
|
+
* Click attribution for a conversation that started from a Meta ad or
|
|
16868
|
+
* a ref-tagged ig.me / m.me link. Absent when the conversation did not
|
|
16869
|
+
* originate from an attributable click.
|
|
16747
16870
|
*
|
|
16748
|
-
* Captured from the referral Meta
|
|
16749
|
-
*
|
|
16750
|
-
*
|
|
16751
|
-
*
|
|
16871
|
+
* Captured from the referral Meta delivers for the click. If the same
|
|
16872
|
+
* person later arrives through a different ad or link, the original
|
|
16873
|
+
* values are kept, so the first referral wins; read the fresh referral
|
|
16874
|
+
* per click on the `message.received` / `referral.received` webhooks
|
|
16875
|
+
* instead. One exception on WhatsApp: when Meta omits `ctwa_clid`
|
|
16752
16876
|
* from that referral, a later Meta automatic event can supply it and
|
|
16753
16877
|
* refresh `ctwa_captured_at`, so treat `ctwa_captured_at` as the time
|
|
16754
16878
|
* Zernio stored the value, not the time of the click.
|
|
@@ -16757,9 +16881,11 @@ export type ListInboxConversationsResponse = ({
|
|
|
16757
16881
|
*
|
|
16758
16882
|
* - `ctwa_*` is WhatsApp Click-to-WhatsApp. The ad ID is
|
|
16759
16883
|
* `ctwa_source_id`. There is no `meta_ad_id` on WhatsApp.
|
|
16760
|
-
* - `meta_ad_*` is Instagram Click-to-Direct
|
|
16761
|
-
* Click-to-Message. The ad ID is
|
|
16762
|
-
*
|
|
16884
|
+
* - `meta_ad_*` is Instagram Click-to-Direct, Facebook Messenger
|
|
16885
|
+
* Click-to-Message, and ig.me / m.me ref links. The ad ID is
|
|
16886
|
+
* `meta_ad_id` (ad clicks only; a link capture carries
|
|
16887
|
+
* `meta_ad_ref` without it). `ctwa_clid` never appears on these
|
|
16888
|
+
* platforms.
|
|
16763
16889
|
*
|
|
16764
16890
|
* Every key is optional and only the keys Meta supplied are returned, so
|
|
16765
16891
|
* read defensively. Meta does not send a campaign or ad set ID, so none
|
|
@@ -16799,11 +16925,11 @@ export type ListInboxConversationsResponse = ({
|
|
|
16799
16925
|
*/
|
|
16800
16926
|
ctwa_captured_at?: string;
|
|
16801
16927
|
/**
|
|
16802
|
-
* Instagram and Facebook only. The Meta ad ID the user clicked.
|
|
16928
|
+
* Instagram and Facebook only. The Meta ad ID the user clicked. Present for ad clicks; absent when the capture came from an ig.me / m.me ref link.
|
|
16803
16929
|
*/
|
|
16804
16930
|
meta_ad_id?: string;
|
|
16805
16931
|
/**
|
|
16806
|
-
* Instagram and Facebook only. Meta-supplied source identifier, for
|
|
16932
|
+
* Instagram and Facebook only. Meta-supplied source identifier: ADS for ad clicks; SHORTLINK, SHORTLINKS or IGME-SOURCE-LINK for ref links (treat as opaque).
|
|
16807
16933
|
*/
|
|
16808
16934
|
meta_ad_source?: string;
|
|
16809
16935
|
/**
|
|
@@ -16811,7 +16937,7 @@ export type ListInboxConversationsResponse = ({
|
|
|
16811
16937
|
*/
|
|
16812
16938
|
meta_ad_type?: string;
|
|
16813
16939
|
/**
|
|
16814
|
-
* Instagram and Facebook only. The ref parameter passed through from the ad creative.
|
|
16940
|
+
* Instagram and Facebook only. The ref parameter passed through from the ad creative or the ig.me / m.me link.
|
|
16815
16941
|
*/
|
|
16816
16942
|
meta_ad_ref?: string;
|
|
16817
16943
|
/**
|