@zernio/node 0.2.1431 → 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.d.mts CHANGED
@@ -6743,22 +6743,30 @@ type CampaignSubmissionFlag = {
6743
6743
  };
6744
6744
  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';
6745
6745
  /**
6746
- * Facebook only. The media on a comment (sticker, GIF, photo, shared link or video). One attachment per
6747
- * comment, a single object. URLs are expiring Meta CDN links (oe= expiry), so fetch promptly. Instagram
6748
- * comments carry no media.
6746
+ * The media on a comment or reply, one per comment (the first item when the platform returns several).
6747
+ * `type` is the platform's own media kind:
6748
+ *
6749
+ * - Facebook: sticker, animated_image_share, photo, image_share, share or video_inline.
6750
+ * - TikTok: image.
6751
+ * - X: photo, video or animated_gif. A video `url` is an mp4 and `imageUrl` its preview.
6752
+ * - Threads: IMAGE, VIDEO or GIF. Album replies carry no attachment.
6753
+ * - Bluesky: image, video or external (link cards, GIFs arrive this way). A video `url` is an HLS playlist (.m3u8).
6754
+ *
6755
+ * Facebook and Threads URLs are expiring Meta CDN links, so fetch promptly.
6756
+ * Instagram, YouTube, LinkedIn and Reddit comments carry no media.
6749
6757
  *
6750
6758
  */
6751
6759
  type CommentAttachment = {
6752
6760
  /**
6753
- * Attachment type as Facebook reports it, for example sticker, animated_image_share, photo, image_share, share or video_inline.
6761
+ * The platform's own media kind, see the schema description for each platform's values.
6754
6762
  */
6755
6763
  type: string;
6756
6764
  /**
6757
- * Rendered image/preview URL (from attachment.media.image.src).
6765
+ * Rendered image or preview URL.
6758
6766
  */
6759
6767
  imageUrl?: string;
6760
6768
  /**
6761
- * Source URL (from attachment.url). For GIFs this is an l.facebook.com redirect.
6769
+ * Source or playable URL. Facebook GIFs carry an l.facebook.com redirect, X videos an mp4, Bluesky videos an HLS playlist.
6762
6770
  */
6763
6771
  url?: string;
6764
6772
  };
@@ -24497,6 +24505,27 @@ type GetDailyMetricsResponse = ({
24497
24505
  clicks?: number;
24498
24506
  views?: number;
24499
24507
  }>;
24508
+ /**
24509
+ * Sums of the whole range for the applied filters.
24510
+ */
24511
+ totals?: {
24512
+ postCount?: number;
24513
+ impressions?: number;
24514
+ /**
24515
+ * Sum of per-post reach, not unique accounts.
24516
+ */
24517
+ reach?: number;
24518
+ likes?: number;
24519
+ comments?: number;
24520
+ shares?: number;
24521
+ saves?: number;
24522
+ clicks?: number;
24523
+ views?: number;
24524
+ /**
24525
+ * Likes, comments, shares and saves (interactions).
24526
+ */
24527
+ engagement?: number;
24528
+ };
24500
24529
  });
24501
24530
  type GetDailyMetricsError = (ErrorResponse | {
24502
24531
  error?: string;
@@ -39241,7 +39270,7 @@ type GetInboxPostCommentsResponse = ({
39241
39270
  */
39242
39271
  isLiked?: boolean;
39243
39272
  /**
39244
- * 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.
39273
+ * 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.
39245
39274
  */
39246
39275
  attachment?: (CommentAttachment);
39247
39276
  /**
package/dist/index.d.ts CHANGED
@@ -6743,22 +6743,30 @@ type CampaignSubmissionFlag = {
6743
6743
  };
6744
6744
  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';
6745
6745
  /**
6746
- * Facebook only. The media on a comment (sticker, GIF, photo, shared link or video). One attachment per
6747
- * comment, a single object. URLs are expiring Meta CDN links (oe= expiry), so fetch promptly. Instagram
6748
- * comments carry no media.
6746
+ * The media on a comment or reply, one per comment (the first item when the platform returns several).
6747
+ * `type` is the platform's own media kind:
6748
+ *
6749
+ * - Facebook: sticker, animated_image_share, photo, image_share, share or video_inline.
6750
+ * - TikTok: image.
6751
+ * - X: photo, video or animated_gif. A video `url` is an mp4 and `imageUrl` its preview.
6752
+ * - Threads: IMAGE, VIDEO or GIF. Album replies carry no attachment.
6753
+ * - Bluesky: image, video or external (link cards, GIFs arrive this way). A video `url` is an HLS playlist (.m3u8).
6754
+ *
6755
+ * Facebook and Threads URLs are expiring Meta CDN links, so fetch promptly.
6756
+ * Instagram, YouTube, LinkedIn and Reddit comments carry no media.
6749
6757
  *
6750
6758
  */
6751
6759
  type CommentAttachment = {
6752
6760
  /**
6753
- * Attachment type as Facebook reports it, for example sticker, animated_image_share, photo, image_share, share or video_inline.
6761
+ * The platform's own media kind, see the schema description for each platform's values.
6754
6762
  */
6755
6763
  type: string;
6756
6764
  /**
6757
- * Rendered image/preview URL (from attachment.media.image.src).
6765
+ * Rendered image or preview URL.
6758
6766
  */
6759
6767
  imageUrl?: string;
6760
6768
  /**
6761
- * Source URL (from attachment.url). For GIFs this is an l.facebook.com redirect.
6769
+ * Source or playable URL. Facebook GIFs carry an l.facebook.com redirect, X videos an mp4, Bluesky videos an HLS playlist.
6762
6770
  */
6763
6771
  url?: string;
6764
6772
  };
@@ -24497,6 +24505,27 @@ type GetDailyMetricsResponse = ({
24497
24505
  clicks?: number;
24498
24506
  views?: number;
24499
24507
  }>;
24508
+ /**
24509
+ * Sums of the whole range for the applied filters.
24510
+ */
24511
+ totals?: {
24512
+ postCount?: number;
24513
+ impressions?: number;
24514
+ /**
24515
+ * Sum of per-post reach, not unique accounts.
24516
+ */
24517
+ reach?: number;
24518
+ likes?: number;
24519
+ comments?: number;
24520
+ shares?: number;
24521
+ saves?: number;
24522
+ clicks?: number;
24523
+ views?: number;
24524
+ /**
24525
+ * Likes, comments, shares and saves (interactions).
24526
+ */
24527
+ engagement?: number;
24528
+ };
24500
24529
  });
24501
24530
  type GetDailyMetricsError = (ErrorResponse | {
24502
24531
  error?: string;
@@ -39241,7 +39270,7 @@ type GetInboxPostCommentsResponse = ({
39241
39270
  */
39242
39271
  isLiked?: boolean;
39243
39272
  /**
39244
- * 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.
39273
+ * 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.
39245
39274
  */
39246
39275
  attachment?: (CommentAttachment);
39247
39276
  /**
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.1431",
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: "@zernio/node",
8
- version: "0.2.1431",
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": "@zernio/node",
3
- "version": "0.2.1431",
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>({
@@ -4669,22 +4669,30 @@ export type CampaignSubmissionFlag = {
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
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.
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.
4675
4683
  *
4676
4684
  */
4677
4685
  export type CommentAttachment = {
4678
4686
  /**
4679
- * Attachment type as Facebook reports it, for example sticker, animated_image_share, photo, image_share, share or video_inline.
4687
+ * The platform's own media kind, see the schema description for each platform's values.
4680
4688
  */
4681
4689
  type: string;
4682
4690
  /**
4683
- * Rendered image/preview URL (from attachment.media.image.src).
4691
+ * Rendered image or preview URL.
4684
4692
  */
4685
4693
  imageUrl?: string;
4686
4694
  /**
4687
- * Source URL (from attachment.url). For GIFs this is an l.facebook.com redirect.
4695
+ * Source or playable URL. Facebook GIFs carry an l.facebook.com redirect, X videos an mp4, Bluesky videos an HLS playlist.
4688
4696
  */
4689
4697
  url?: string;
4690
4698
  };
@@ -23233,6 +23241,27 @@ export type GetDailyMetricsResponse = ({
23233
23241
  clicks?: number;
23234
23242
  views?: number;
23235
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
+ };
23236
23265
  });
23237
23266
 
23238
23267
  export type GetDailyMetricsError = (ErrorResponse | {
@@ -39017,7 +39046,7 @@ export type GetInboxPostCommentsResponse = ({
39017
39046
  */
39018
39047
  isLiked?: boolean;
39019
39048
  /**
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.
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.
39021
39050
  */
39022
39051
  attachment?: (CommentAttachment);
39023
39052
  /**