@getlatedev/node 0.2.1093 → 0.2.1095
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 +53 -3
- package/dist/index.d.ts +53 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +53 -2
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.1095",
|
|
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.1095",
|
|
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
|
@@ -4006,6 +4006,8 @@ export type actionSource = 'web' | 'app' | 'offline' | 'crm' | 'phone_call' | 's
|
|
|
4006
4006
|
* - Single-creative: `headline`, `body`, and one of `imageUrl` / `video`,
|
|
4007
4007
|
* OR `platformPostId` / `objectStoryId` to reuse an organic post.
|
|
4008
4008
|
* On POST /v1/ads/messaging, `placementAssets` can replace `imageUrl` / `video`.
|
|
4009
|
+
* - Carousel (messaging and CTWA): `body` and `carouselCards` (2-10 image
|
|
4010
|
+
* cards) instead of `imageUrl` / `video`, top level or per `creatives[]` entry.
|
|
4009
4011
|
* - Multi-creative: a non-empty `creatives[]` array. Top-level
|
|
4010
4012
|
* creative fields must NOT be set on this shape.
|
|
4011
4013
|
*
|
|
@@ -4166,6 +4168,21 @@ export type CtwaAdRequestBody = {
|
|
|
4166
4168
|
payload: string;
|
|
4167
4169
|
}>;
|
|
4168
4170
|
};
|
|
4171
|
+
/**
|
|
4172
|
+
* Messaging and CTWA only (a 400 on POST /v1/ads/call). A hand-built carousel
|
|
4173
|
+
* of 2-10 image cards, sent to Meta as `link_data.child_attachments`; every
|
|
4174
|
+
* card (and the carousel itself) carries the destination's messaging call to
|
|
4175
|
+
* action (WHATSAPP_MESSAGE, MESSAGE_PAGE or INSTAGRAM_MESSAGE), so a tap on any
|
|
4176
|
+
* card opens the conversation. Replaces `imageUrl` / `video` (sending either is
|
|
4177
|
+
* a 400). `body` is required as the primary text; `headline` is optional and
|
|
4178
|
+
* only names the creative (each card has its own `headline`); a top-level
|
|
4179
|
+
* `description` is a 400 (set it per card). `welcomeMessage`,
|
|
4180
|
+
* `whatsappPhoneNumber` and `destinations` apply as on a single-image ad. Also a
|
|
4181
|
+
* 400 with `placementAssets`, `platformPostId`, `existingPostId` or
|
|
4182
|
+
* `objectStoryId`. Single-creative shape; for `creatives[]` set it per entry.
|
|
4183
|
+
*
|
|
4184
|
+
*/
|
|
4185
|
+
carouselCards?: Array<MessagingCarouselCard>;
|
|
4169
4186
|
/**
|
|
4170
4187
|
* Multi-creative shape: N CTWA ads under one campaign + one
|
|
4171
4188
|
* ad set, sharing budget and targeting. Mutually exclusive
|
|
@@ -4242,6 +4259,10 @@ export type CtwaAdRequestBody = {
|
|
|
4242
4259
|
*/
|
|
4243
4260
|
prefillText: string;
|
|
4244
4261
|
};
|
|
4262
|
+
/**
|
|
4263
|
+
* A 2-10 card carousel for this entry instead of `imageUrl` / `video`; `body` is required. Same rules as the top-level `carouselCards`. Carousel and single-media entries can be mixed on one ad set.
|
|
4264
|
+
*/
|
|
4265
|
+
carouselCards?: Array<MessagingCarouselCard>;
|
|
4245
4266
|
}>;
|
|
4246
4267
|
/**
|
|
4247
4268
|
* Attach the creatives to this EXISTING messaging ad set instead of
|
|
@@ -7878,6 +7899,32 @@ export type MediaUploadResponse = {
|
|
|
7878
7899
|
files?: Array<UploadedFile>;
|
|
7879
7900
|
};
|
|
7880
7901
|
|
|
7902
|
+
/**
|
|
7903
|
+
* One card of a messaging ad carousel (Meta link_data.child_attachments). Every card opens the same conversation, so a card has no link of its own.
|
|
7904
|
+
*/
|
|
7905
|
+
export type MessagingCarouselCard = {
|
|
7906
|
+
/**
|
|
7907
|
+
* Card image. Uploaded to the ad account and sent as the card image_hash (by URL on validateOnly).
|
|
7908
|
+
*/
|
|
7909
|
+
imageUrl: string;
|
|
7910
|
+
/**
|
|
7911
|
+
* Card title (Meta name).
|
|
7912
|
+
*/
|
|
7913
|
+
headline?: string;
|
|
7914
|
+
/**
|
|
7915
|
+
* Card description, under the title.
|
|
7916
|
+
*/
|
|
7917
|
+
description?: string;
|
|
7918
|
+
/**
|
|
7919
|
+
* Optional. Must equal the destination's messaging call to action (WHATSAPP_MESSAGE for whatsapp, MESSAGE_PAGE for messenger, INSTAGRAM_MESSAGE for instagram_direct; with `destinations` the first one listed). Any other value is a 400 naming the card, because Meta refuses a carousel whose cards do not all open the destination.
|
|
7920
|
+
*/
|
|
7921
|
+
callToAction?: string;
|
|
7922
|
+
/**
|
|
7923
|
+
* Not accepted: a 400. The card tap opens the conversation, not a website.
|
|
7924
|
+
*/
|
|
7925
|
+
linkUrl?: string;
|
|
7926
|
+
};
|
|
7927
|
+
|
|
7881
7928
|
/**
|
|
7882
7929
|
* Meta (facebook/instagram) options for platformSpecificData on POST /v1/ads/boost and /v1/ads/create. Unknown keys are rejected, not dropped.
|
|
7883
7930
|
*/
|
|
@@ -12430,7 +12477,7 @@ export type WebhookPayloadComment = {
|
|
|
12430
12477
|
parentCommentId: (string) | null;
|
|
12431
12478
|
/**
|
|
12432
12479
|
* Ad context. Present only when the comment was made on paid content.
|
|
12433
|
-
* Instagram: populated from the webhook payload's value.media.ad_id and value.media.
|
|
12480
|
+
* Instagram: populated from the webhook payload's value.media.ad_id, value.media.ad_title and value.media.original_media_id, each only when Meta includes it.
|
|
12434
12481
|
* Facebook: populated via a Graph API lookup of the parent post's promotion_status.
|
|
12435
12482
|
* Absent for comments on organic posts that are not currently promoted.
|
|
12436
12483
|
*
|
|
@@ -12444,6 +12491,10 @@ export type WebhookPayloadComment = {
|
|
|
12444
12491
|
* Ad creative title (Instagram only).
|
|
12445
12492
|
*/
|
|
12446
12493
|
title?: string;
|
|
12494
|
+
/**
|
|
12495
|
+
* Original media ID that Meta reports for the ad (Instagram only).
|
|
12496
|
+
*/
|
|
12497
|
+
originalMediaId?: string;
|
|
12447
12498
|
/**
|
|
12448
12499
|
* Facebook promotion status returned by Graph API. Common values:
|
|
12449
12500
|
* "active" (organic post currently boosted), "ineligible" (dark
|
|
@@ -49966,7 +50017,7 @@ export type CreateMessagingAdData = {
|
|
|
49966
50017
|
*/
|
|
49967
50018
|
placementAssets?: (MetaPlacementAssets);
|
|
49968
50019
|
/**
|
|
49969
|
-
* Dry-runs the ad on Meta with execution_options validate_only as ONE inline campaign + ad set + creative + ad (or creative + ad on the existing ad set with `adSetId`). Nothing is uploaded or created and nothing is stored; media is checked by URL. Supports one creative with `imageUrl`, image `placementAssets`, an existing `video.id`, or an existing post. Several creatives, a new `video.url` and video `placementAssets` need uploads first and return 400. Success returns 200 with per-node results; a Meta rejection returns the Meta error.
|
|
50020
|
+
* Dry-runs the ad on Meta with execution_options validate_only as ONE inline campaign + ad set + creative + ad (or creative + ad on the existing ad set with `adSetId`). Nothing is uploaded or created and nothing is stored; media is checked by URL. Supports one creative with `imageUrl`, image `placementAssets`, `carouselCards`, an existing `video.id`, or an existing post. Several creatives, a new `video.url` and video `placementAssets` need uploads first and return 400. Success returns 200 with per-node results; a Meta rejection returns the Meta error.
|
|
49970
50021
|
*/
|
|
49971
50022
|
validateOnly?: boolean;
|
|
49972
50023
|
});
|