@zernio/node 0.2.690 → 0.2.691
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 +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +16 -0
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.
|
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.
|
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.691",
|
|
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.691",
|
|
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
|
/**
|