@zernio/node 0.2.690 → 0.2.692
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 +39 -1
- package/dist/index.d.ts +39 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +39 -1
package/dist/index.d.mts
CHANGED
|
@@ -5321,6 +5321,22 @@ type InstagramPlatformData = {
|
|
|
5321
5321
|
* When true, the post is labeled by Instagram as containing AI-generated media. Per Meta, this self-disclosure label is for AI-generated media, not AI-written captions. Applies to feed posts, Reels, Stories, and carousels.
|
|
5322
5322
|
*/
|
|
5323
5323
|
isAiGenerated?: boolean;
|
|
5324
|
+
/**
|
|
5325
|
+
* When true, Instagram shows the "Paid partnership" label on the post. Applies to feed posts, Reels, and carousels; not supported on Stories (400). Requires an Instagram account connected via Facebook Login; classic Instagram Login accounts get a 400 (instagram_paid_partnership_requires_facebook_login). Implied when brandedContentSponsors is set.
|
|
5326
|
+
*/
|
|
5327
|
+
isPaidPartnership?: boolean;
|
|
5328
|
+
/**
|
|
5329
|
+
* Up to 2 brands to tag as sponsors, each an Instagram username (leading @ optional) or a numeric Instagram user ID. Usernames are resolved at publish time via the Business Discovery API on the publishing account; a sponsor that cannot be resolved (private, personal, or nonexistent account) fails the post with a user error naming it. Sponsors must be professional (Business or Creator) accounts. A brand that has pre-approved the creator shows as "Paid partnership with @brand" immediately; otherwise the plain label shows and the brand receives an approval request. Sets isPaidPartnership. Same login and content-type rules as isPaidPartnership.
|
|
5330
|
+
*/
|
|
5331
|
+
brandedContentSponsors?: Array<(string)>;
|
|
5332
|
+
/**
|
|
5333
|
+
* When false, comments are turned off on the post right after it is published (Meta exposes this as comment_enabled on the media object). Applies to feed posts, Reels, and carousels; ignored for Stories, which have no comments. Works with both Instagram connection methods. Best-effort: if the toggle fails after a successful publish, the post still succeeds and stays live with comments on.
|
|
5334
|
+
*/
|
|
5335
|
+
commentsEnabled?: boolean;
|
|
5336
|
+
/**
|
|
5337
|
+
* Tags the post with a location. The ID of a Facebook Page that has location data (digits only); it is sent to Instagram as location_id. Applies to feed posts, Reels, and the carousel as a whole; Stories and individual carousel slides are unsupported (a Story with locationId is rejected with a 400). A Page without location data or that does not exist fails the post with a user error at publish time.
|
|
5338
|
+
*/
|
|
5339
|
+
locationId?: string;
|
|
5324
5340
|
};
|
|
5325
5341
|
/**
|
|
5326
5342
|
* Set to 'story' to publish as a Story. Default posts become Reels or feed depending on media.
|
|
@@ -32688,9 +32704,31 @@ type CreateStandaloneAdData = {
|
|
|
32688
32704
|
*/
|
|
32689
32705
|
body?: string;
|
|
32690
32706
|
/**
|
|
32691
|
-
* 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.
|
|
32692
32708
|
*/
|
|
32693
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)>;
|
|
32694
32732
|
/**
|
|
32695
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.
|
|
32696
32734
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -5321,6 +5321,22 @@ type InstagramPlatformData = {
|
|
|
5321
5321
|
* When true, the post is labeled by Instagram as containing AI-generated media. Per Meta, this self-disclosure label is for AI-generated media, not AI-written captions. Applies to feed posts, Reels, Stories, and carousels.
|
|
5322
5322
|
*/
|
|
5323
5323
|
isAiGenerated?: boolean;
|
|
5324
|
+
/**
|
|
5325
|
+
* When true, Instagram shows the "Paid partnership" label on the post. Applies to feed posts, Reels, and carousels; not supported on Stories (400). Requires an Instagram account connected via Facebook Login; classic Instagram Login accounts get a 400 (instagram_paid_partnership_requires_facebook_login). Implied when brandedContentSponsors is set.
|
|
5326
|
+
*/
|
|
5327
|
+
isPaidPartnership?: boolean;
|
|
5328
|
+
/**
|
|
5329
|
+
* Up to 2 brands to tag as sponsors, each an Instagram username (leading @ optional) or a numeric Instagram user ID. Usernames are resolved at publish time via the Business Discovery API on the publishing account; a sponsor that cannot be resolved (private, personal, or nonexistent account) fails the post with a user error naming it. Sponsors must be professional (Business or Creator) accounts. A brand that has pre-approved the creator shows as "Paid partnership with @brand" immediately; otherwise the plain label shows and the brand receives an approval request. Sets isPaidPartnership. Same login and content-type rules as isPaidPartnership.
|
|
5330
|
+
*/
|
|
5331
|
+
brandedContentSponsors?: Array<(string)>;
|
|
5332
|
+
/**
|
|
5333
|
+
* When false, comments are turned off on the post right after it is published (Meta exposes this as comment_enabled on the media object). Applies to feed posts, Reels, and carousels; ignored for Stories, which have no comments. Works with both Instagram connection methods. Best-effort: if the toggle fails after a successful publish, the post still succeeds and stays live with comments on.
|
|
5334
|
+
*/
|
|
5335
|
+
commentsEnabled?: boolean;
|
|
5336
|
+
/**
|
|
5337
|
+
* Tags the post with a location. The ID of a Facebook Page that has location data (digits only); it is sent to Instagram as location_id. Applies to feed posts, Reels, and the carousel as a whole; Stories and individual carousel slides are unsupported (a Story with locationId is rejected with a 400). A Page without location data or that does not exist fails the post with a user error at publish time.
|
|
5338
|
+
*/
|
|
5339
|
+
locationId?: string;
|
|
5324
5340
|
};
|
|
5325
5341
|
/**
|
|
5326
5342
|
* Set to 'story' to publish as a Story. Default posts become Reels or feed depending on media.
|
|
@@ -32688,9 +32704,31 @@ type CreateStandaloneAdData = {
|
|
|
32688
32704
|
*/
|
|
32689
32705
|
body?: string;
|
|
32690
32706
|
/**
|
|
32691
|
-
* 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.
|
|
32692
32708
|
*/
|
|
32693
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)>;
|
|
32694
32732
|
/**
|
|
32695
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.
|
|
32696
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.692",
|
|
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.692",
|
|
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
|
@@ -4117,6 +4117,22 @@ export type InstagramPlatformData = {
|
|
|
4117
4117
|
* When true, the post is labeled by Instagram as containing AI-generated media. Per Meta, this self-disclosure label is for AI-generated media, not AI-written captions. Applies to feed posts, Reels, Stories, and carousels.
|
|
4118
4118
|
*/
|
|
4119
4119
|
isAiGenerated?: boolean;
|
|
4120
|
+
/**
|
|
4121
|
+
* When true, Instagram shows the "Paid partnership" label on the post. Applies to feed posts, Reels, and carousels; not supported on Stories (400). Requires an Instagram account connected via Facebook Login; classic Instagram Login accounts get a 400 (instagram_paid_partnership_requires_facebook_login). Implied when brandedContentSponsors is set.
|
|
4122
|
+
*/
|
|
4123
|
+
isPaidPartnership?: boolean;
|
|
4124
|
+
/**
|
|
4125
|
+
* Up to 2 brands to tag as sponsors, each an Instagram username (leading @ optional) or a numeric Instagram user ID. Usernames are resolved at publish time via the Business Discovery API on the publishing account; a sponsor that cannot be resolved (private, personal, or nonexistent account) fails the post with a user error naming it. Sponsors must be professional (Business or Creator) accounts. A brand that has pre-approved the creator shows as "Paid partnership with @brand" immediately; otherwise the plain label shows and the brand receives an approval request. Sets isPaidPartnership. Same login and content-type rules as isPaidPartnership.
|
|
4126
|
+
*/
|
|
4127
|
+
brandedContentSponsors?: Array<(string)>;
|
|
4128
|
+
/**
|
|
4129
|
+
* When false, comments are turned off on the post right after it is published (Meta exposes this as comment_enabled on the media object). Applies to feed posts, Reels, and carousels; ignored for Stories, which have no comments. Works with both Instagram connection methods. Best-effort: if the toggle fails after a successful publish, the post still succeeds and stays live with comments on.
|
|
4130
|
+
*/
|
|
4131
|
+
commentsEnabled?: boolean;
|
|
4132
|
+
/**
|
|
4133
|
+
* Tags the post with a location. The ID of a Facebook Page that has location data (digits only); it is sent to Instagram as location_id. Applies to feed posts, Reels, and the carousel as a whole; Stories and individual carousel slides are unsupported (a Story with locationId is rejected with a 400). A Page without location data or that does not exist fails the post with a user error at publish time.
|
|
4134
|
+
*/
|
|
4135
|
+
locationId?: string;
|
|
4120
4136
|
};
|
|
4121
4137
|
|
|
4122
4138
|
/**
|
|
@@ -33293,9 +33309,31 @@ export type CreateStandaloneAdData = {
|
|
|
33293
33309
|
*/
|
|
33294
33310
|
body?: string;
|
|
33295
33311
|
/**
|
|
33296
|
-
* 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.
|
|
33297
33313
|
*/
|
|
33298
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)>;
|
|
33299
33337
|
/**
|
|
33300
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.
|
|
33301
33339
|
*/
|