@getlatedev/node 0.2.1108 → 0.2.1110
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 +24 -7
- package/dist/index.d.ts +24 -7
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +5 -0
- package/src/generated/types.gen.ts +24 -6
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -10654,6 +10654,11 @@ export const getAdReview = <ThrowOnError extends boolean = false>(options: Optio
|
|
|
10654
10654
|
* creative (`asset_feed_spec`). Video items include Meta's poster thumbnail and the
|
|
10655
10655
|
* video's Meta id when available.
|
|
10656
10656
|
*
|
|
10657
|
+
* Boosted Instagram posts (creatives with no image of their own) return the original
|
|
10658
|
+
* post's media: the image, the video with its cover as `thumbnailUrl`, or every child of a
|
|
10659
|
+
* carousel post with `index`. When the connection cannot read the Instagram post, the item
|
|
10660
|
+
* is a 1080px rendering of the creative instead.
|
|
10661
|
+
*
|
|
10657
10662
|
* Reads Meta live rather than the stored creative blob because Meta's signed fbcdn
|
|
10658
10663
|
* URLs carry an `oe=<hex>` expiration (image_url ~24 h, video source ~12 d). Treat
|
|
10659
10664
|
* URLs as short-lived: re-fetch this endpoint before serving or downloading assets
|
|
@@ -9040,6 +9040,10 @@ export type PlatformAnalytics = {
|
|
|
9040
9040
|
* Failure detail. On failed entries, why the post failed to publish. On unavailable entries, why analytics cannot be synced (e.g. Google Business Profile, a TikTok upload that never received a video id). On pending entries, the most recent analytics sync error for the account (null while no sync has failed), cleared after the next successful sync.
|
|
9041
9041
|
*/
|
|
9042
9042
|
errorMessage?: (string) | null;
|
|
9043
|
+
/**
|
|
9044
|
+
* Stable machine-readable reason for errorMessage. post_not_found: the post was deleted or is no longer visible to the account. permission_missing: the last analytics sync of the Facebook account failed because the Page no longer grants pages_read_engagement (pending entries only). null: no stable code, read errorMessage. New values may be added.
|
|
9045
|
+
*/
|
|
9046
|
+
errorCode?: ('post_not_found' | 'permission_missing') | null;
|
|
9043
9047
|
};
|
|
9044
9048
|
|
|
9045
9049
|
export type status24 = 'published' | 'failed';
|
|
@@ -9049,6 +9053,11 @@ export type status24 = 'published' | 'failed';
|
|
|
9049
9053
|
*/
|
|
9050
9054
|
export type syncStatus2 = 'synced' | 'pending' | 'unavailable';
|
|
9051
9055
|
|
|
9056
|
+
/**
|
|
9057
|
+
* Stable machine-readable reason for errorMessage. post_not_found: the post was deleted or is no longer visible to the account. permission_missing: the last analytics sync of the Facebook account failed because the Page no longer grants pages_read_engagement (pending entries only). null: no stable code, read errorMessage. New values may be added.
|
|
9058
|
+
*/
|
|
9059
|
+
export type errorCode = 'post_not_found' | 'permission_missing';
|
|
9060
|
+
|
|
9052
9061
|
export type PlatformTarget = {
|
|
9053
9062
|
/**
|
|
9054
9063
|
* Supported values: twitter, threads, instagram, youtube, facebook, linkedin, pinterest, reddit, tiktok, bluesky, googlebusiness, telegram
|
|
@@ -13610,8 +13619,15 @@ export type WebhookPayloadMessage = {
|
|
|
13610
13619
|
isStoryMention?: boolean;
|
|
13611
13620
|
/**
|
|
13612
13621
|
* Click attribution forwarded verbatim from Meta. Populated only on
|
|
13613
|
-
* the
|
|
13614
|
-
* messages of the same conversation.
|
|
13622
|
+
* the first inbound message Meta attaches it to, and absent on the
|
|
13623
|
+
* other messages of the same conversation. That is not always the
|
|
13624
|
+
* first message after the click: on Instagram Click-to-Direct Meta
|
|
13625
|
+
* usually delivers the ad post itself first, as an attachment-only
|
|
13626
|
+
* `share` / `ig_post` message with no referral, and attaches the
|
|
13627
|
+
* referral to the message right after it. The first referral of a
|
|
13628
|
+
* conversation is also stored on the conversation as
|
|
13629
|
+
* `metadata.meta_ad_*` (`GET /v1/inbox/conversations/{conversationId}`),
|
|
13630
|
+
* so read it there instead of matching webhooks. On Instagram and Messenger a
|
|
13615
13631
|
* RETURNING click also attaches it to the first message that
|
|
13616
13632
|
* follows, so read it on every `message.received` for per-click
|
|
13617
13633
|
* attribution; a click that opens an existing thread WITHOUT a
|
|
@@ -27082,10 +27098,12 @@ export type GetInboxConversationResponse = ({
|
|
|
27082
27098
|
* Ad-click attribution for a conversation that started from a Meta ad.
|
|
27083
27099
|
* Absent when the conversation did not originate from an ad click.
|
|
27084
27100
|
*
|
|
27085
|
-
* Captured once,
|
|
27086
|
-
* overwritten. If the same person later clicks a different
|
|
27087
|
-
* original values are kept.
|
|
27088
|
-
* message
|
|
27101
|
+
* Captured once, from the first inbound message Meta attaches the referral
|
|
27102
|
+
* to, and never overwritten. If the same person later clicks a different
|
|
27103
|
+
* ad, the original values are kept. On Instagram Click-to-Direct that is
|
|
27104
|
+
* usually not the first message: Meta first delivers the ad post as an
|
|
27105
|
+
* attachment-only `share` / `ig_post` message with no referral, then
|
|
27106
|
+
* attaches the referral to the next message.
|
|
27089
27107
|
*
|
|
27090
27108
|
* This operation currently returns only the `meta_ad_*` family, which
|
|
27091
27109
|
* covers Instagram Click-to-Direct and Facebook Messenger
|