@zernio/node 0.2.689 → 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 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.
@@ -8793,14 +8809,29 @@ type WebhookPayloadMessage = {
8793
8809
  */
8794
8810
  metadata?: {
8795
8811
  /**
8796
- * platformMessageId of the message this one is a quote-reply to.
8797
- * WhatsApp (`context.id`), Instagram and Facebook Messenger
8798
- * (`reply_to.mid`). On outgoing messages the same field appears on
8799
- * `message.sent`, but only on some surfaces: see
8812
+ * Raw platform envelope id (WhatsApp `context.id`; Instagram and
8813
+ * Facebook Messenger `reply_to.mid`) of the message this one is a
8814
+ * quote-reply to, forwarded verbatim. It may not equal the stored
8815
+ * id of that message (see `quotedMessage.platformMessageId`). On
8816
+ * outgoing messages the same field appears on `message.sent`, but
8817
+ * only on some surfaces: see
8800
8818
  * WebhookPayloadMessageSent.metadata.quotedMessageId.
8801
8819
  *
8802
8820
  */
8803
8821
  quotedMessageId?: string;
8822
+ /**
8823
+ * Zernio's own ids for the message this one quote-replies to. Present only when that message is stored; WhatsApp only today.
8824
+ */
8825
+ quotedMessage?: {
8826
+ /**
8827
+ * Internal id of the stored quoted message.
8828
+ */
8829
+ messageId?: string;
8830
+ /**
8831
+ * The STORED message's platform id (what message.sent and list-messages return). Can differ from quotedMessageId, because Meta renders one message under a different wamid per perspective.
8832
+ */
8833
+ platformMessageId?: string;
8834
+ };
8804
8835
  /**
8805
8836
  * Payload from a quick reply tap (Facebook/Instagram Messenger).
8806
8837
  */
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.
@@ -8793,14 +8809,29 @@ type WebhookPayloadMessage = {
8793
8809
  */
8794
8810
  metadata?: {
8795
8811
  /**
8796
- * platformMessageId of the message this one is a quote-reply to.
8797
- * WhatsApp (`context.id`), Instagram and Facebook Messenger
8798
- * (`reply_to.mid`). On outgoing messages the same field appears on
8799
- * `message.sent`, but only on some surfaces: see
8812
+ * Raw platform envelope id (WhatsApp `context.id`; Instagram and
8813
+ * Facebook Messenger `reply_to.mid`) of the message this one is a
8814
+ * quote-reply to, forwarded verbatim. It may not equal the stored
8815
+ * id of that message (see `quotedMessage.platformMessageId`). On
8816
+ * outgoing messages the same field appears on `message.sent`, but
8817
+ * only on some surfaces: see
8800
8818
  * WebhookPayloadMessageSent.metadata.quotedMessageId.
8801
8819
  *
8802
8820
  */
8803
8821
  quotedMessageId?: string;
8822
+ /**
8823
+ * Zernio's own ids for the message this one quote-replies to. Present only when that message is stored; WhatsApp only today.
8824
+ */
8825
+ quotedMessage?: {
8826
+ /**
8827
+ * Internal id of the stored quoted message.
8828
+ */
8829
+ messageId?: string;
8830
+ /**
8831
+ * The STORED message's platform id (what message.sent and list-messages return). Can differ from quotedMessageId, because Meta renders one message under a different wamid per perspective.
8832
+ */
8833
+ platformMessageId?: string;
8834
+ };
8804
8835
  /**
8805
8836
  * Payload from a quick reply tap (Facebook/Instagram Messenger).
8806
8837
  */
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.689",
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.689",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.689",
3
+ "version": "0.2.691",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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
  /**
@@ -7735,14 +7751,29 @@ export type WebhookPayloadMessage = {
7735
7751
  */
7736
7752
  metadata?: {
7737
7753
  /**
7738
- * platformMessageId of the message this one is a quote-reply to.
7739
- * WhatsApp (`context.id`), Instagram and Facebook Messenger
7740
- * (`reply_to.mid`). On outgoing messages the same field appears on
7741
- * `message.sent`, but only on some surfaces: see
7754
+ * Raw platform envelope id (WhatsApp `context.id`; Instagram and
7755
+ * Facebook Messenger `reply_to.mid`) of the message this one is a
7756
+ * quote-reply to, forwarded verbatim. It may not equal the stored
7757
+ * id of that message (see `quotedMessage.platformMessageId`). On
7758
+ * outgoing messages the same field appears on `message.sent`, but
7759
+ * only on some surfaces: see
7742
7760
  * WebhookPayloadMessageSent.metadata.quotedMessageId.
7743
7761
  *
7744
7762
  */
7745
7763
  quotedMessageId?: string;
7764
+ /**
7765
+ * Zernio's own ids for the message this one quote-replies to. Present only when that message is stored; WhatsApp only today.
7766
+ */
7767
+ quotedMessage?: {
7768
+ /**
7769
+ * Internal id of the stored quoted message.
7770
+ */
7771
+ messageId?: string;
7772
+ /**
7773
+ * The STORED message's platform id (what message.sent and list-messages return). Can differ from quotedMessageId, because Meta renders one message under a different wamid per perspective.
7774
+ */
7775
+ platformMessageId?: string;
7776
+ };
7746
7777
  /**
7747
7778
  * Payload from a quick reply tap (Facebook/Instagram Messenger).
7748
7779
  */