@zernio/node 0.2.1430 → 0.2.1431

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.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.1430",
39
+ version: "0.2.1431",
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.1430",
8
+ version: "0.2.1431",
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.1430",
3
+ "version": "0.2.1431",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -4668,6 +4668,27 @@ export type CampaignSubmissionFlag = {
4668
4668
 
4669
4669
  export type code = 'duplicate_media' | 'duplicate_post' | 'view_spike' | 'linked_accounts' | 'cross_operator' | 'unreachable' | 'post_deleted' | 'account_restricted' | 'low_authenticity' | 'x_read_cap' | 'paid_views' | 'organic_unverified';
4670
4670
 
4671
+ /**
4672
+ * Facebook only. The media on a comment (sticker, GIF, photo, shared link or video). One attachment per
4673
+ * comment, a single object. URLs are expiring Meta CDN links (oe= expiry), so fetch promptly. Instagram
4674
+ * comments carry no media.
4675
+ *
4676
+ */
4677
+ export type CommentAttachment = {
4678
+ /**
4679
+ * Attachment type as Facebook reports it, for example sticker, animated_image_share, photo, image_share, share or video_inline.
4680
+ */
4681
+ type: string;
4682
+ /**
4683
+ * Rendered image/preview URL (from attachment.media.image.src).
4684
+ */
4685
+ imageUrl?: string;
4686
+ /**
4687
+ * Source URL (from attachment.url). For GIFs this is an l.facebook.com redirect.
4688
+ */
4689
+ url?: string;
4690
+ };
4691
+
4671
4692
  /**
4672
4693
  * Actions taken on the matched comment itself (comment trigger only; ignored on the
4673
4694
  * story-reply and DM doors). They never block or fail the DM: when one cannot run,
@@ -18335,25 +18356,12 @@ export type WebhookPayloadComment = {
18335
18356
  isDarkPost?: boolean;
18336
18357
  };
18337
18358
  /**
18338
- * Facebook only. Present on graphic-only comments (sticker, GIF, photo) that
18339
- * carry no text. URLs are ephemeral and may expire for Meta platforms (oe= expiry),
18340
- * so fetch promptly. Instagram comments do not support attachments.
18359
+ * Facebook only. Present on graphic-only comments (sticker, GIF, photo) that carry no text:
18360
+ * the webhook only includes it when the comment has no text. The REST comments API returns it
18361
+ * whenever Facebook returns one, text or not.
18341
18362
  *
18342
18363
  */
18343
- attachment?: {
18344
- /**
18345
- * Attachment type: sticker, animated_image_share, or photo.
18346
- */
18347
- type: string;
18348
- /**
18349
- * Rendered image/preview URL (from attachment.media.image.src).
18350
- */
18351
- imageUrl?: string;
18352
- /**
18353
- * Source URL (from attachment.url). For GIFs this is an l.facebook.com redirect.
18354
- */
18355
- url?: string;
18356
- };
18364
+ attachment?: (CommentAttachment);
18357
18365
  };
18358
18366
  post: {
18359
18367
  /**
@@ -39008,6 +39016,10 @@ export type GetInboxPostCommentsResponse = ({
39008
39016
  * Whether the current user has liked this comment
39009
39017
  */
39010
39018
  isLiked?: boolean;
39019
+ /**
39020
+ * Facebook only. The comment's sticker, GIF, photo, share or video, whenever Facebook returns one (replies included). Absent when the comment has no media and on every other platform.
39021
+ */
39022
+ attachment?: (CommentAttachment);
39011
39023
  /**
39012
39024
  * Bluesky like URI for unliking
39013
39025
  */