@getlatedev/node 0.2.1145 → 0.2.1146

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
@@ -30020,13 +30020,21 @@ type GetInboxPostCommentsResponse = ({
30020
30020
  rootCid?: (string) | null;
30021
30021
  }>;
30022
30022
  /**
30023
- * (Reddit only) Metadata for the target post, returned alongside the comments in Reddit's
30024
- * single round-trip. Lets integrators render a preview of the post the user is commenting on
30025
- * without an additional request. Absent for non-Reddit platforms and when the upstream
30026
- * response is missing the post listing (deleted post, malformed response).
30023
+ * (Reddit, Facebook and Instagram) Metadata for the target post, returned alongside the comments
30024
+ * so integrators can render a preview of the post being commented on without an additional request.
30025
+ *
30026
+ * Facebook and Instagram return the Meta shape: the post thumbnail, text and permalink, for any post
30027
+ * the account can read, including the hidden dark posts Meta publishes for each variant of an ad
30028
+ * (dynamic creative, placement asset customization, Advantage+). Facebook posts need the Facebook
30029
+ * Page connection and Instagram media the Instagram connection. `thumbnailUrl` and `mediaUrl` are
30030
+ * Meta CDN URLs that expire: store a copy if you render them later. On Instagram, `productType`
30031
+ * tells an ad (`AD`) from organic media (`FEED`, `REELS`, `STORY`).
30032
+ *
30033
+ * Absent on other platforms, when the post cannot be read with the connection's token, and on Reddit
30034
+ * when the upstream response is missing the post listing (deleted post, malformed response).
30027
30035
  *
30028
30036
  */
30029
- post?: {
30037
+ post?: ({
30030
30038
  /**
30031
30039
  * Reddit post base36 id (e.g. "1tjtj26")
30032
30040
  */
@@ -30075,7 +30083,37 @@ type GetInboxPostCommentsResponse = ({
30075
30083
  * True if the post is a Reddit gallery (multiple images)
30076
30084
  */
30077
30085
  isGallery?: boolean;
30078
- } | null;
30086
+ } | {
30087
+ /**
30088
+ * Facebook post id ({pageId}_{postId}) or Instagram media id
30089
+ */
30090
+ id: string;
30091
+ permalink: (string) | null;
30092
+ /**
30093
+ * Facebook post message or Instagram caption
30094
+ */
30095
+ text: (string) | null;
30096
+ /**
30097
+ * Facebook `full_picture` (or the first attachment image); Instagram `thumbnail_url` for videos, `media_url` for images. Expiring Meta CDN URL.
30098
+ */
30099
+ thumbnailUrl: (string) | null;
30100
+ /**
30101
+ * Instagram `media_url` (the video file for videos). Always null on Facebook. Expiring Meta CDN URL.
30102
+ */
30103
+ mediaUrl: (string) | null;
30104
+ /**
30105
+ * Instagram `media_type` (IMAGE, VIDEO, CAROUSEL_ALBUM) or the Facebook attachment type (photo, video_inline, link, ...)
30106
+ */
30107
+ mediaType: (string) | null;
30108
+ /**
30109
+ * Instagram `media_product_type`: AD, FEED, REELS or STORY. Always null on Facebook.
30110
+ */
30111
+ productType: (string) | null;
30112
+ /**
30113
+ * Creation time as Meta returns it (e.g. 2026-05-27T17:15:51+0000)
30114
+ */
30115
+ createdAt: (string) | null;
30116
+ } | null);
30079
30117
  /**
30080
30118
  * (Facebook and Instagram only) Present when `commentId` was passed: the requested
30081
30119
  * comment itself, in the same shape as an entry in comments[]. comments[] then holds
package/dist/index.d.ts CHANGED
@@ -30020,13 +30020,21 @@ type GetInboxPostCommentsResponse = ({
30020
30020
  rootCid?: (string) | null;
30021
30021
  }>;
30022
30022
  /**
30023
- * (Reddit only) Metadata for the target post, returned alongside the comments in Reddit's
30024
- * single round-trip. Lets integrators render a preview of the post the user is commenting on
30025
- * without an additional request. Absent for non-Reddit platforms and when the upstream
30026
- * response is missing the post listing (deleted post, malformed response).
30023
+ * (Reddit, Facebook and Instagram) Metadata for the target post, returned alongside the comments
30024
+ * so integrators can render a preview of the post being commented on without an additional request.
30025
+ *
30026
+ * Facebook and Instagram return the Meta shape: the post thumbnail, text and permalink, for any post
30027
+ * the account can read, including the hidden dark posts Meta publishes for each variant of an ad
30028
+ * (dynamic creative, placement asset customization, Advantage+). Facebook posts need the Facebook
30029
+ * Page connection and Instagram media the Instagram connection. `thumbnailUrl` and `mediaUrl` are
30030
+ * Meta CDN URLs that expire: store a copy if you render them later. On Instagram, `productType`
30031
+ * tells an ad (`AD`) from organic media (`FEED`, `REELS`, `STORY`).
30032
+ *
30033
+ * Absent on other platforms, when the post cannot be read with the connection's token, and on Reddit
30034
+ * when the upstream response is missing the post listing (deleted post, malformed response).
30027
30035
  *
30028
30036
  */
30029
- post?: {
30037
+ post?: ({
30030
30038
  /**
30031
30039
  * Reddit post base36 id (e.g. "1tjtj26")
30032
30040
  */
@@ -30075,7 +30083,37 @@ type GetInboxPostCommentsResponse = ({
30075
30083
  * True if the post is a Reddit gallery (multiple images)
30076
30084
  */
30077
30085
  isGallery?: boolean;
30078
- } | null;
30086
+ } | {
30087
+ /**
30088
+ * Facebook post id ({pageId}_{postId}) or Instagram media id
30089
+ */
30090
+ id: string;
30091
+ permalink: (string) | null;
30092
+ /**
30093
+ * Facebook post message or Instagram caption
30094
+ */
30095
+ text: (string) | null;
30096
+ /**
30097
+ * Facebook `full_picture` (or the first attachment image); Instagram `thumbnail_url` for videos, `media_url` for images. Expiring Meta CDN URL.
30098
+ */
30099
+ thumbnailUrl: (string) | null;
30100
+ /**
30101
+ * Instagram `media_url` (the video file for videos). Always null on Facebook. Expiring Meta CDN URL.
30102
+ */
30103
+ mediaUrl: (string) | null;
30104
+ /**
30105
+ * Instagram `media_type` (IMAGE, VIDEO, CAROUSEL_ALBUM) or the Facebook attachment type (photo, video_inline, link, ...)
30106
+ */
30107
+ mediaType: (string) | null;
30108
+ /**
30109
+ * Instagram `media_product_type`: AD, FEED, REELS or STORY. Always null on Facebook.
30110
+ */
30111
+ productType: (string) | null;
30112
+ /**
30113
+ * Creation time as Meta returns it (e.g. 2026-05-27T17:15:51+0000)
30114
+ */
30115
+ createdAt: (string) | null;
30116
+ } | null);
30079
30117
  /**
30080
30118
  * (Facebook and Instagram only) Present when `commentId` was passed: the requested
30081
30119
  * comment itself, in the same shape as an entry in comments[]. comments[] then holds
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: "@getlatedev/node",
39
- version: "0.2.1145",
39
+ version: "0.2.1146",
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: "@getlatedev/node",
8
- version: "0.2.1145",
8
+ version: "0.2.1146",
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": "@getlatedev/node",
3
- "version": "0.2.1145",
3
+ "version": "0.2.1146",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -29496,62 +29496,100 @@ export type GetInboxPostCommentsResponse = ({
29496
29496
  rootCid?: (string) | null;
29497
29497
  }>;
29498
29498
  /**
29499
- * (Reddit only) Metadata for the target post, returned alongside the comments in Reddit's
29500
- * single round-trip. Lets integrators render a preview of the post the user is commenting on
29501
- * without an additional request. Absent for non-Reddit platforms and when the upstream
29502
- * response is missing the post listing (deleted post, malformed response).
29499
+ * (Reddit, Facebook and Instagram) Metadata for the target post, returned alongside the comments
29500
+ * so integrators can render a preview of the post being commented on without an additional request.
29501
+ *
29502
+ * Facebook and Instagram return the Meta shape: the post thumbnail, text and permalink, for any post
29503
+ * the account can read, including the hidden dark posts Meta publishes for each variant of an ad
29504
+ * (dynamic creative, placement asset customization, Advantage+). Facebook posts need the Facebook
29505
+ * Page connection and Instagram media the Instagram connection. `thumbnailUrl` and `mediaUrl` are
29506
+ * Meta CDN URLs that expire: store a copy if you render them later. On Instagram, `productType`
29507
+ * tells an ad (`AD`) from organic media (`FEED`, `REELS`, `STORY`).
29508
+ *
29509
+ * Absent on other platforms, when the post cannot be read with the connection's token, and on Reddit
29510
+ * when the upstream response is missing the post listing (deleted post, malformed response).
29503
29511
  *
29504
29512
  */
29505
- post?: {
29506
- /**
29507
- * Reddit post base36 id (e.g. "1tjtj26")
29508
- */
29509
- id?: string;
29510
- /**
29511
- * Fullname with type prefix (e.g. "t3_1tjtj26")
29512
- */
29513
- fullname?: string;
29514
- title?: string;
29515
- /**
29516
- * Body text for self-posts (empty for link posts)
29517
- */
29518
- selftext?: string;
29519
- /**
29520
- * Reddit username, without the u/ prefix
29521
- */
29522
- author?: string;
29523
- /**
29524
- * Subreddit name, without the r/ prefix
29525
- */
29526
- subreddit?: string;
29527
- /**
29528
- * Absolute URL to the post on reddit.com
29529
- */
29530
- permalink?: string;
29531
- /**
29532
- * For link posts, the external URL; for self-posts, the Reddit permalink
29533
- */
29534
- url?: string;
29535
- /**
29536
- * Net upvotes (upvotes minus downvotes)
29537
- */
29538
- score?: number;
29539
- numComments?: number;
29540
- /**
29541
- * Unix timestamp in seconds
29542
- */
29543
- createdUtc?: number;
29544
- over18?: boolean;
29545
- stickied?: boolean;
29546
- /**
29547
- * Link flair text if any
29548
- */
29549
- flairText?: (string) | null;
29550
- /**
29551
- * True if the post is a Reddit gallery (multiple images)
29552
- */
29553
- isGallery?: boolean;
29554
- } | null;
29513
+ post?: ({
29514
+ /**
29515
+ * Reddit post base36 id (e.g. "1tjtj26")
29516
+ */
29517
+ id?: string;
29518
+ /**
29519
+ * Fullname with type prefix (e.g. "t3_1tjtj26")
29520
+ */
29521
+ fullname?: string;
29522
+ title?: string;
29523
+ /**
29524
+ * Body text for self-posts (empty for link posts)
29525
+ */
29526
+ selftext?: string;
29527
+ /**
29528
+ * Reddit username, without the u/ prefix
29529
+ */
29530
+ author?: string;
29531
+ /**
29532
+ * Subreddit name, without the r/ prefix
29533
+ */
29534
+ subreddit?: string;
29535
+ /**
29536
+ * Absolute URL to the post on reddit.com
29537
+ */
29538
+ permalink?: string;
29539
+ /**
29540
+ * For link posts, the external URL; for self-posts, the Reddit permalink
29541
+ */
29542
+ url?: string;
29543
+ /**
29544
+ * Net upvotes (upvotes minus downvotes)
29545
+ */
29546
+ score?: number;
29547
+ numComments?: number;
29548
+ /**
29549
+ * Unix timestamp in seconds
29550
+ */
29551
+ createdUtc?: number;
29552
+ over18?: boolean;
29553
+ stickied?: boolean;
29554
+ /**
29555
+ * Link flair text if any
29556
+ */
29557
+ flairText?: (string) | null;
29558
+ /**
29559
+ * True if the post is a Reddit gallery (multiple images)
29560
+ */
29561
+ isGallery?: boolean;
29562
+ } | {
29563
+ /**
29564
+ * Facebook post id ({pageId}_{postId}) or Instagram media id
29565
+ */
29566
+ id: string;
29567
+ permalink: (string) | null;
29568
+ /**
29569
+ * Facebook post message or Instagram caption
29570
+ */
29571
+ text: (string) | null;
29572
+ /**
29573
+ * Facebook `full_picture` (or the first attachment image); Instagram `thumbnail_url` for videos, `media_url` for images. Expiring Meta CDN URL.
29574
+ */
29575
+ thumbnailUrl: (string) | null;
29576
+ /**
29577
+ * Instagram `media_url` (the video file for videos). Always null on Facebook. Expiring Meta CDN URL.
29578
+ */
29579
+ mediaUrl: (string) | null;
29580
+ /**
29581
+ * Instagram `media_type` (IMAGE, VIDEO, CAROUSEL_ALBUM) or the Facebook attachment type (photo, video_inline, link, ...)
29582
+ */
29583
+ mediaType: (string) | null;
29584
+ /**
29585
+ * Instagram `media_product_type`: AD, FEED, REELS or STORY. Always null on Facebook.
29586
+ */
29587
+ productType: (string) | null;
29588
+ /**
29589
+ * Creation time as Meta returns it (e.g. 2026-05-27T17:15:51+0000)
29590
+ */
29591
+ createdAt: (string) | null;
29592
+ } | null);
29555
29593
  /**
29556
29594
  * (Facebook and Instagram only) Present when `commentId` was passed: the requested
29557
29595
  * comment itself, in the same shape as an entry in comments[]. comments[] then holds