@getlatedev/node 0.2.1190 → 0.2.1192

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
@@ -9375,23 +9375,44 @@ type InstagramBusinessDiscovery = {
9375
9375
  * Most recent media first, up to `limit`.
9376
9376
  */
9377
9377
  media: Array<{
9378
- id?: string;
9379
- caption?: (string) | null;
9378
+ id: string;
9379
+ caption: (string) | null;
9380
9380
  /**
9381
9381
  * IMAGE, VIDEO or CAROUSEL_ALBUM
9382
9382
  */
9383
- mediaType?: (string) | null;
9383
+ mediaType: (string) | null;
9384
9384
  /**
9385
9385
  * FEED or REELS
9386
9386
  */
9387
- mediaProductType?: (string) | null;
9388
- timestamp?: (string) | null;
9389
- permalink?: (string) | null;
9387
+ mediaProductType: (string) | null;
9388
+ timestamp: (string) | null;
9389
+ permalink: (string) | null;
9390
9390
  /**
9391
9391
  * Null when the owner hides like counts
9392
9392
  */
9393
- likeCount?: (number) | null;
9394
- commentsCount?: (number) | null;
9393
+ likeCount: (number) | null;
9394
+ commentsCount: (number) | null;
9395
+ /**
9396
+ * Temporary CDN URL that expires; download the file rather than storing the link. Null on videos whose audio is licensed music, use thumbnailUrl for the cover.
9397
+ */
9398
+ mediaUrl: (string) | null;
9399
+ /**
9400
+ * Video cover frame, VIDEO only. Temporary CDN URL.
9401
+ */
9402
+ thumbnailUrl: (string) | null;
9403
+ /**
9404
+ * Reels only. Null on images and carousels.
9405
+ */
9406
+ viewCount: (number) | null;
9407
+ /**
9408
+ * Carousel slides in order. Null unless mediaType is CAROUSEL_ALBUM.
9409
+ */
9410
+ children: Array<{
9411
+ id: string;
9412
+ mediaType: (string) | null;
9413
+ mediaUrl: (string) | null;
9414
+ thumbnailUrl: (string) | null;
9415
+ }> | null;
9395
9416
  }>;
9396
9417
  };
9397
9418
  type InstagramDemographicsResponse = {
@@ -11232,7 +11253,7 @@ type PostGetResponse = {
11232
11253
  post?: Post;
11233
11254
  };
11234
11255
  /**
11235
- * The platform's own error for this target, so you can see what the platform said (access tokens are redacted). Set when the last attempt failed with an error the platform described (currently Instagram and Facebook), and kept while an automatic retry of that failure is pending or running; cleared when the target publishes or is retried manually. errorMessage stays the human-readable summary; this block is for diagnostics and support tickets. Instagram media processing failures carry no code or subcode, only Meta's status text in message.
11256
+ * The platform's own error for this target, so you can see what the platform said (access tokens are redacted). Set when the last attempt failed with an error the platform described (currently Instagram and Facebook), and kept while an automatic retry of that failure is pending or running; cleared when the target publishes or is retried manually. errorMessage stays the human-readable summary; this block is for diagnostics and support tickets. Instagram media processing failures carry no code or subcode, only Meta's status text in message. On an Instagram publish whose outcome is uncertain (for example errorMessage starting "Instagram did not confirm"), carries the last media_publish error Meta returned, when it returned one; errorMessage stays the verdict, so do not read this block as a confirmed failure.
11236
11257
  */
11237
11258
  type PostPlatformError = {
11238
11259
  /**
package/dist/index.d.ts CHANGED
@@ -9375,23 +9375,44 @@ type InstagramBusinessDiscovery = {
9375
9375
  * Most recent media first, up to `limit`.
9376
9376
  */
9377
9377
  media: Array<{
9378
- id?: string;
9379
- caption?: (string) | null;
9378
+ id: string;
9379
+ caption: (string) | null;
9380
9380
  /**
9381
9381
  * IMAGE, VIDEO or CAROUSEL_ALBUM
9382
9382
  */
9383
- mediaType?: (string) | null;
9383
+ mediaType: (string) | null;
9384
9384
  /**
9385
9385
  * FEED or REELS
9386
9386
  */
9387
- mediaProductType?: (string) | null;
9388
- timestamp?: (string) | null;
9389
- permalink?: (string) | null;
9387
+ mediaProductType: (string) | null;
9388
+ timestamp: (string) | null;
9389
+ permalink: (string) | null;
9390
9390
  /**
9391
9391
  * Null when the owner hides like counts
9392
9392
  */
9393
- likeCount?: (number) | null;
9394
- commentsCount?: (number) | null;
9393
+ likeCount: (number) | null;
9394
+ commentsCount: (number) | null;
9395
+ /**
9396
+ * Temporary CDN URL that expires; download the file rather than storing the link. Null on videos whose audio is licensed music, use thumbnailUrl for the cover.
9397
+ */
9398
+ mediaUrl: (string) | null;
9399
+ /**
9400
+ * Video cover frame, VIDEO only. Temporary CDN URL.
9401
+ */
9402
+ thumbnailUrl: (string) | null;
9403
+ /**
9404
+ * Reels only. Null on images and carousels.
9405
+ */
9406
+ viewCount: (number) | null;
9407
+ /**
9408
+ * Carousel slides in order. Null unless mediaType is CAROUSEL_ALBUM.
9409
+ */
9410
+ children: Array<{
9411
+ id: string;
9412
+ mediaType: (string) | null;
9413
+ mediaUrl: (string) | null;
9414
+ thumbnailUrl: (string) | null;
9415
+ }> | null;
9395
9416
  }>;
9396
9417
  };
9397
9418
  type InstagramDemographicsResponse = {
@@ -11232,7 +11253,7 @@ type PostGetResponse = {
11232
11253
  post?: Post;
11233
11254
  };
11234
11255
  /**
11235
- * The platform's own error for this target, so you can see what the platform said (access tokens are redacted). Set when the last attempt failed with an error the platform described (currently Instagram and Facebook), and kept while an automatic retry of that failure is pending or running; cleared when the target publishes or is retried manually. errorMessage stays the human-readable summary; this block is for diagnostics and support tickets. Instagram media processing failures carry no code or subcode, only Meta's status text in message.
11256
+ * The platform's own error for this target, so you can see what the platform said (access tokens are redacted). Set when the last attempt failed with an error the platform described (currently Instagram and Facebook), and kept while an automatic retry of that failure is pending or running; cleared when the target publishes or is retried manually. errorMessage stays the human-readable summary; this block is for diagnostics and support tickets. Instagram media processing failures carry no code or subcode, only Meta's status text in message. On an Instagram publish whose outcome is uncertain (for example errorMessage starting "Instagram did not confirm"), carries the last media_publish error Meta returned, when it returned one; errorMessage stays the verdict, so do not read this block as a confirmed failure.
11236
11257
  */
11237
11258
  type PostPlatformError = {
11238
11259
  /**
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.1190",
39
+ version: "0.2.1192",
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.1190",
8
+ version: "0.2.1192",
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.1190",
3
+ "version": "0.2.1192",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -2999,6 +2999,8 @@ export const getInstagramAudio = <ThrowOnError extends boolean = false>(options:
2999
2999
  *
3000
3000
  * `likeCount` is null when the owner hides like counts.
3001
3001
  *
3002
+ * Media URLs are temporary, and fields Meta does not return come back as null, never omitted.
3003
+ *
3002
3004
  */
3003
3005
  export const getInstagramBusinessDiscovery = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetInstagramBusinessDiscoveryData, ThrowOnError>) => {
3004
3006
  return (options?.client ?? client).get<GetInstagramBusinessDiscoveryResponse, GetInstagramBusinessDiscoveryError, ThrowOnError>({
@@ -7683,23 +7683,44 @@ export type InstagramBusinessDiscovery = {
7683
7683
  * Most recent media first, up to `limit`.
7684
7684
  */
7685
7685
  media: Array<{
7686
- id?: string;
7687
- caption?: (string) | null;
7686
+ id: string;
7687
+ caption: (string) | null;
7688
7688
  /**
7689
7689
  * IMAGE, VIDEO or CAROUSEL_ALBUM
7690
7690
  */
7691
- mediaType?: (string) | null;
7691
+ mediaType: (string) | null;
7692
7692
  /**
7693
7693
  * FEED or REELS
7694
7694
  */
7695
- mediaProductType?: (string) | null;
7696
- timestamp?: (string) | null;
7697
- permalink?: (string) | null;
7695
+ mediaProductType: (string) | null;
7696
+ timestamp: (string) | null;
7697
+ permalink: (string) | null;
7698
7698
  /**
7699
7699
  * Null when the owner hides like counts
7700
7700
  */
7701
- likeCount?: (number) | null;
7702
- commentsCount?: (number) | null;
7701
+ likeCount: (number) | null;
7702
+ commentsCount: (number) | null;
7703
+ /**
7704
+ * Temporary CDN URL that expires; download the file rather than storing the link. Null on videos whose audio is licensed music, use thumbnailUrl for the cover.
7705
+ */
7706
+ mediaUrl: (string) | null;
7707
+ /**
7708
+ * Video cover frame, VIDEO only. Temporary CDN URL.
7709
+ */
7710
+ thumbnailUrl: (string) | null;
7711
+ /**
7712
+ * Reels only. Null on images and carousels.
7713
+ */
7714
+ viewCount: (number) | null;
7715
+ /**
7716
+ * Carousel slides in order. Null unless mediaType is CAROUSEL_ALBUM.
7717
+ */
7718
+ children: Array<{
7719
+ id: string;
7720
+ mediaType: (string) | null;
7721
+ mediaUrl: (string) | null;
7722
+ thumbnailUrl: (string) | null;
7723
+ }> | null;
7703
7724
  }>;
7704
7725
  };
7705
7726
 
@@ -9624,7 +9645,7 @@ export type PostGetResponse = {
9624
9645
  };
9625
9646
 
9626
9647
  /**
9627
- * The platform's own error for this target, so you can see what the platform said (access tokens are redacted). Set when the last attempt failed with an error the platform described (currently Instagram and Facebook), and kept while an automatic retry of that failure is pending or running; cleared when the target publishes or is retried manually. errorMessage stays the human-readable summary; this block is for diagnostics and support tickets. Instagram media processing failures carry no code or subcode, only Meta's status text in message.
9648
+ * The platform's own error for this target, so you can see what the platform said (access tokens are redacted). Set when the last attempt failed with an error the platform described (currently Instagram and Facebook), and kept while an automatic retry of that failure is pending or running; cleared when the target publishes or is retried manually. errorMessage stays the human-readable summary; this block is for diagnostics and support tickets. Instagram media processing failures carry no code or subcode, only Meta's status text in message. On an Instagram publish whose outcome is uncertain (for example errorMessage starting "Instagram did not confirm"), carries the last media_publish error Meta returned, when it returned one; errorMessage stays the verdict, so do not read this block as a confirmed failure.
9628
9649
  */
9629
9650
  export type PostPlatformError = {
9630
9651
  /**