@getlatedev/node 0.2.1430 → 0.2.1433

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: "@getlatedev/node",
39
- version: "0.2.1430",
39
+ version: "0.2.1433",
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.1430",
8
+ version: "0.2.1433",
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.1430",
3
+ "version": "0.2.1433",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -524,6 +524,8 @@ export const getYouTubeDemographics = <ThrowOnError extends boolean = false>(opt
524
524
  * Each day includes post count, platform distribution, and summed metrics (impressions, reach, likes, comments, shares, saves, clicks, views).
525
525
  * Defaults to the last 180 days.
526
526
  *
527
+ * `totals` sums the whole range for the applied filters (pass `accountId` for one account). With attribution "publish" they are the lifetime metrics of posts published in the range, with "received" the engagement that arrived in the range.
528
+ *
527
529
  */
528
530
  export const getDailyMetrics = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<GetDailyMetricsData, ThrowOnError>) => {
529
531
  return (options?.client ?? client).get<GetDailyMetricsResponse, GetDailyMetricsError, ThrowOnError>({
@@ -4668,6 +4668,35 @@ 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
+ * The media on a comment or reply, one per comment (the first item when the platform returns several).
4673
+ * `type` is the platform's own media kind:
4674
+ *
4675
+ * - Facebook: sticker, animated_image_share, photo, image_share, share or video_inline.
4676
+ * - TikTok: image.
4677
+ * - X: photo, video or animated_gif. A video `url` is an mp4 and `imageUrl` its preview.
4678
+ * - Threads: IMAGE, VIDEO or GIF. Album replies carry no attachment.
4679
+ * - Bluesky: image, video or external (link cards, GIFs arrive this way). A video `url` is an HLS playlist (.m3u8).
4680
+ *
4681
+ * Facebook and Threads URLs are expiring Meta CDN links, so fetch promptly.
4682
+ * Instagram, YouTube, LinkedIn and Reddit comments carry no media.
4683
+ *
4684
+ */
4685
+ export type CommentAttachment = {
4686
+ /**
4687
+ * The platform's own media kind, see the schema description for each platform's values.
4688
+ */
4689
+ type: string;
4690
+ /**
4691
+ * Rendered image or preview URL.
4692
+ */
4693
+ imageUrl?: string;
4694
+ /**
4695
+ * Source or playable URL. Facebook GIFs carry an l.facebook.com redirect, X videos an mp4, Bluesky videos an HLS playlist.
4696
+ */
4697
+ url?: string;
4698
+ };
4699
+
4671
4700
  /**
4672
4701
  * Actions taken on the matched comment itself (comment trigger only; ignored on the
4673
4702
  * story-reply and DM doors). They never block or fail the DM: when one cannot run,
@@ -18335,25 +18364,12 @@ export type WebhookPayloadComment = {
18335
18364
  isDarkPost?: boolean;
18336
18365
  };
18337
18366
  /**
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.
18367
+ * Facebook only. Present on graphic-only comments (sticker, GIF, photo) that carry no text:
18368
+ * the webhook only includes it when the comment has no text. The REST comments API returns it
18369
+ * whenever Facebook returns one, text or not.
18341
18370
  *
18342
18371
  */
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
- };
18372
+ attachment?: (CommentAttachment);
18357
18373
  };
18358
18374
  post: {
18359
18375
  /**
@@ -23225,6 +23241,27 @@ export type GetDailyMetricsResponse = ({
23225
23241
  clicks?: number;
23226
23242
  views?: number;
23227
23243
  }>;
23244
+ /**
23245
+ * Sums of the whole range for the applied filters.
23246
+ */
23247
+ totals?: {
23248
+ postCount?: number;
23249
+ impressions?: number;
23250
+ /**
23251
+ * Sum of per-post reach, not unique accounts.
23252
+ */
23253
+ reach?: number;
23254
+ likes?: number;
23255
+ comments?: number;
23256
+ shares?: number;
23257
+ saves?: number;
23258
+ clicks?: number;
23259
+ views?: number;
23260
+ /**
23261
+ * Likes, comments, shares and saves (interactions).
23262
+ */
23263
+ engagement?: number;
23264
+ };
23228
23265
  });
23229
23266
 
23230
23267
  export type GetDailyMetricsError = (ErrorResponse | {
@@ -39008,6 +39045,10 @@ export type GetInboxPostCommentsResponse = ({
39008
39045
  * Whether the current user has liked this comment
39009
39046
  */
39010
39047
  isLiked?: boolean;
39048
+ /**
39049
+ * The comment's media, whenever the platform returns one (replies included). Supported on Facebook, TikTok, X, Threads and Bluesky; absent when the comment has no media and on every other platform. See CommentAttachment for each platform's `type` values.
39050
+ */
39051
+ attachment?: (CommentAttachment);
39011
39052
  /**
39012
39053
  * Bluesky like URI for unliking
39013
39054
  */