@zernio/node 0.2.691 → 0.2.693
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 +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +1 -1
- package/src/generated/types.gen.ts +23 -1
package/dist/index.d.mts
CHANGED
|
@@ -32704,9 +32704,31 @@ type CreateStandaloneAdData = {
|
|
|
32704
32704
|
*/
|
|
32705
32705
|
body?: string;
|
|
32706
32706
|
/**
|
|
32707
|
-
* Meta only (facebook/instagram). Link description — the secondary text shown below the headline (Meta's link_data.description; on video creatives mapped to video_data.link_description). When omitted, Meta auto-pulls the destination URL's OpenGraph description. Applies on legacy, attach, and placementAssets shapes; for multi-creative use creatives[].description (this field is the shared fallback). For multi-text variations use
|
|
32707
|
+
* Meta only (facebook/instagram). Link description — the secondary text shown below the headline (Meta's link_data.description; on video creatives mapped to video_data.link_description). When omitted, Meta auto-pulls the destination URL's OpenGraph description. Applies on legacy, attach, and placementAssets shapes; for multi-creative use creatives[].description (this field is the shared fallback). For multi-text variations use `descriptions` (array) instead.
|
|
32708
32708
|
*/
|
|
32709
32709
|
description?: string;
|
|
32710
|
+
/**
|
|
32711
|
+
* Meta only. Multiple Text Options (Advantage+ Flexible Format): supply 1-5 primary-text
|
|
32712
|
+
* variations and Meta optimises delivery across them, WITHOUT enabling full Dynamic Creative
|
|
32713
|
+
* (`dynamicCreative`). Uses `optimization_type: DEGREES_OF_FREEDOM` on the asset feed, so
|
|
32714
|
+
* multiple ads per ad set are allowed (unlike `dynamicCreative` which is limited to one).
|
|
32715
|
+
* Requires `imageUrl` or `video`, `linkUrl`, and `callToAction`. When set, the top-level
|
|
32716
|
+
* `body` field is used as the `object_story_spec.link_data.message` (the preview text) and
|
|
32717
|
+
* `headlines` must also be present. Mutually exclusive with `dynamicCreative`,
|
|
32718
|
+
* `placementAssets`, `carouselCards`, and `creatives[]`.
|
|
32719
|
+
*
|
|
32720
|
+
*/
|
|
32721
|
+
bodies?: Array<(string)>;
|
|
32722
|
+
/**
|
|
32723
|
+
* Meta only. Headline variations for Multiple Text Options. Must be sent alongside `bodies`.
|
|
32724
|
+
* The top-level `headline` field is used as the `object_story_spec.link_data.name`.
|
|
32725
|
+
*
|
|
32726
|
+
*/
|
|
32727
|
+
headlines?: Array<(string)>;
|
|
32728
|
+
/**
|
|
32729
|
+
* Meta only. Optional description variations for Multiple Text Options. Sent alongside `bodies` and `headlines`.
|
|
32730
|
+
*/
|
|
32731
|
+
descriptions?: Array<(string)>;
|
|
32710
32732
|
/**
|
|
32711
32733
|
* Required on legacy + attach shapes for Meta. Honoured on TikTok (passes through to the Spark Ad creative's `call_to_action`) and on LinkedIn (the CTA button on the ad; defaults to LEARN_MORE when `linkUrl` is set). LinkedIn accepts: LEARN_MORE, SIGN_UP, DOWNLOAD, SUBSCRIBE, REGISTER, JOIN, ATTEND, REQUEST_DEMO, VIEW_QUOTE, APPLY, SEE_MORE, SHOP_NOW, BUY_NOW. Ignored by Google, Pinterest, and X/Twitter.
|
|
32712
32734
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -32704,9 +32704,31 @@ type CreateStandaloneAdData = {
|
|
|
32704
32704
|
*/
|
|
32705
32705
|
body?: string;
|
|
32706
32706
|
/**
|
|
32707
|
-
* Meta only (facebook/instagram). Link description — the secondary text shown below the headline (Meta's link_data.description; on video creatives mapped to video_data.link_description). When omitted, Meta auto-pulls the destination URL's OpenGraph description. Applies on legacy, attach, and placementAssets shapes; for multi-creative use creatives[].description (this field is the shared fallback). For multi-text variations use
|
|
32707
|
+
* Meta only (facebook/instagram). Link description — the secondary text shown below the headline (Meta's link_data.description; on video creatives mapped to video_data.link_description). When omitted, Meta auto-pulls the destination URL's OpenGraph description. Applies on legacy, attach, and placementAssets shapes; for multi-creative use creatives[].description (this field is the shared fallback). For multi-text variations use `descriptions` (array) instead.
|
|
32708
32708
|
*/
|
|
32709
32709
|
description?: string;
|
|
32710
|
+
/**
|
|
32711
|
+
* Meta only. Multiple Text Options (Advantage+ Flexible Format): supply 1-5 primary-text
|
|
32712
|
+
* variations and Meta optimises delivery across them, WITHOUT enabling full Dynamic Creative
|
|
32713
|
+
* (`dynamicCreative`). Uses `optimization_type: DEGREES_OF_FREEDOM` on the asset feed, so
|
|
32714
|
+
* multiple ads per ad set are allowed (unlike `dynamicCreative` which is limited to one).
|
|
32715
|
+
* Requires `imageUrl` or `video`, `linkUrl`, and `callToAction`. When set, the top-level
|
|
32716
|
+
* `body` field is used as the `object_story_spec.link_data.message` (the preview text) and
|
|
32717
|
+
* `headlines` must also be present. Mutually exclusive with `dynamicCreative`,
|
|
32718
|
+
* `placementAssets`, `carouselCards`, and `creatives[]`.
|
|
32719
|
+
*
|
|
32720
|
+
*/
|
|
32721
|
+
bodies?: Array<(string)>;
|
|
32722
|
+
/**
|
|
32723
|
+
* Meta only. Headline variations for Multiple Text Options. Must be sent alongside `bodies`.
|
|
32724
|
+
* The top-level `headline` field is used as the `object_story_spec.link_data.name`.
|
|
32725
|
+
*
|
|
32726
|
+
*/
|
|
32727
|
+
headlines?: Array<(string)>;
|
|
32728
|
+
/**
|
|
32729
|
+
* Meta only. Optional description variations for Multiple Text Options. Sent alongside `bodies` and `headlines`.
|
|
32730
|
+
*/
|
|
32731
|
+
descriptions?: Array<(string)>;
|
|
32710
32732
|
/**
|
|
32711
32733
|
* Required on legacy + attach shapes for Meta. Honoured on TikTok (passes through to the Spark Ad creative's `call_to_action`) and on LinkedIn (the CTA button on the ad; defaults to LEARN_MORE when `linkUrl` is set). LinkedIn accepts: LEARN_MORE, SIGN_UP, DOWNLOAD, SUBSCRIBE, REGISTER, JOIN, ATTEND, REQUEST_DEMO, VIEW_QUOTE, APPLY, SEE_MORE, SHOP_NOW, BUY_NOW. Ignored by Google, Pinterest, and X/Twitter.
|
|
32712
32734
|
*/
|
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.693",
|
|
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.693",
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -915,7 +915,7 @@ export const createPost = <ThrowOnError extends boolean = false>(options: Option
|
|
|
915
915
|
*
|
|
916
916
|
* LinkedIn personal profiles: LinkedIn has no listing API for personal profiles, so a `url` is REQUIRED and imports that single post. Pass any LinkedIn post URL (`linkedin.com/posts/…`, `linkedin.com/feed/update/urn:li:activity:…`) or a `urn:li:share:…` / `urn:li:ugcPost:…` URN. Works for posts published outside Zernio and before the account was connected, any age; the post must be authored by the connected member. Imported posts return full analytics (impressions, reach, reactions, comments, reshares, saves) and keep refreshing on the background analytics cycle, but carry no content/media (LinkedIn does not expose them for personal profiles).
|
|
917
917
|
*
|
|
918
|
-
* `url` accepts any format the platform uses (e.g. `instagram.com/p/…`, `instagram.com/reel/…`, `youtu.be/…`, `youtube.com/shorts/…`, `tiktok.com/@user/video/…`,
|
|
918
|
+
* `url` accepts any format the platform uses (e.g. `instagram.com/p/…`, `instagram.com/reel/…`, `youtu.be/…`, `youtube.com/shorts/…`, `tiktok.com/@user/video/…`, `vm.tiktok.com` short links, `pinterest.com/pin/…` on any regional domain, and `pin.it` short links). Pass `postId` (the platform media/video/pin id) as an alternative locator.
|
|
919
919
|
*
|
|
920
920
|
* Note: post-level analytics (reach, impressions) still carry the platform's own delay (e.g. ~24h on Instagram). This endpoint confirms the post exists and returns its metadata plus basic engagement (likes, comments), not delayed insights.
|
|
921
921
|
*
|
|
@@ -33309,9 +33309,31 @@ export type CreateStandaloneAdData = {
|
|
|
33309
33309
|
*/
|
|
33310
33310
|
body?: string;
|
|
33311
33311
|
/**
|
|
33312
|
-
* Meta only (facebook/instagram). Link description — the secondary text shown below the headline (Meta's link_data.description; on video creatives mapped to video_data.link_description). When omitted, Meta auto-pulls the destination URL's OpenGraph description. Applies on legacy, attach, and placementAssets shapes; for multi-creative use creatives[].description (this field is the shared fallback). For multi-text variations use
|
|
33312
|
+
* Meta only (facebook/instagram). Link description — the secondary text shown below the headline (Meta's link_data.description; on video creatives mapped to video_data.link_description). When omitted, Meta auto-pulls the destination URL's OpenGraph description. Applies on legacy, attach, and placementAssets shapes; for multi-creative use creatives[].description (this field is the shared fallback). For multi-text variations use `descriptions` (array) instead.
|
|
33313
33313
|
*/
|
|
33314
33314
|
description?: string;
|
|
33315
|
+
/**
|
|
33316
|
+
* Meta only. Multiple Text Options (Advantage+ Flexible Format): supply 1-5 primary-text
|
|
33317
|
+
* variations and Meta optimises delivery across them, WITHOUT enabling full Dynamic Creative
|
|
33318
|
+
* (`dynamicCreative`). Uses `optimization_type: DEGREES_OF_FREEDOM` on the asset feed, so
|
|
33319
|
+
* multiple ads per ad set are allowed (unlike `dynamicCreative` which is limited to one).
|
|
33320
|
+
* Requires `imageUrl` or `video`, `linkUrl`, and `callToAction`. When set, the top-level
|
|
33321
|
+
* `body` field is used as the `object_story_spec.link_data.message` (the preview text) and
|
|
33322
|
+
* `headlines` must also be present. Mutually exclusive with `dynamicCreative`,
|
|
33323
|
+
* `placementAssets`, `carouselCards`, and `creatives[]`.
|
|
33324
|
+
*
|
|
33325
|
+
*/
|
|
33326
|
+
bodies?: Array<(string)>;
|
|
33327
|
+
/**
|
|
33328
|
+
* Meta only. Headline variations for Multiple Text Options. Must be sent alongside `bodies`.
|
|
33329
|
+
* The top-level `headline` field is used as the `object_story_spec.link_data.name`.
|
|
33330
|
+
*
|
|
33331
|
+
*/
|
|
33332
|
+
headlines?: Array<(string)>;
|
|
33333
|
+
/**
|
|
33334
|
+
* Meta only. Optional description variations for Multiple Text Options. Sent alongside `bodies` and `headlines`.
|
|
33335
|
+
*/
|
|
33336
|
+
descriptions?: Array<(string)>;
|
|
33315
33337
|
/**
|
|
33316
33338
|
* Required on legacy + attach shapes for Meta. Honoured on TikTok (passes through to the Spark Ad creative's `call_to_action`) and on LinkedIn (the CTA button on the ad; defaults to LEARN_MORE when `linkUrl` is set). LinkedIn accepts: LEARN_MORE, SIGN_UP, DOWNLOAD, SUBSCRIBE, REGISTER, JOIN, ATTEND, REQUEST_DEMO, VIEW_QUOTE, APPLY, SEE_MORE, SHOP_NOW, BUY_NOW. Ignored by Google, Pinterest, and X/Twitter.
|
|
33317
33339
|
*/
|