@getlatedev/node 0.2.1145 → 0.2.1147

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.1145",
39
+ version: "0.2.1147",
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.1147",
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.1147",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -16444,7 +16444,7 @@ export const downloadTikTokVideo = <ThrowOnError extends boolean = false>(option
16444
16444
 
16445
16445
  /**
16446
16446
  * List API changelog entries
16447
- * The API changelog, newest first. No API key needed; one address may make 120 requests a minute. Each entry is what the `api.changelog.published` webhook delivered: the announcement in `message`, and in `changes` the deterministic diff of the OpenAPI spec (operations and schemas added, removed and modified) for automation to act on. Page with `before` set to the previous page's `nextCursor`.
16447
+ * The API changelog, newest first. No API key needed; one address may make 120 requests a minute. Each entry is what the `api.changelog.published` webhook delivered: the announcement in `message`, its `impact` on existing integrations, and in `changes` the deterministic diff of the OpenAPI spec (operations and schemas added, removed and modified) for automation to act on. Page with `before` set to the previous page's `nextCursor`.
16448
16448
  *
16449
16449
  */
16450
16450
  export const listChangelog = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListChangelogData, ThrowOnError>) => {
@@ -1976,7 +1976,14 @@ export type ApiChangelogEntry = {
1976
1976
  * Stable entry id; the same entry is never published twice.
1977
1977
  */
1978
1978
  id: string;
1979
+ /**
1980
+ * When `impact` is set, `breaking_change` means exactly `impact: action_required`.
1981
+ */
1979
1982
  type: 'new_feature' | 'breaking_change' | 'improvement' | 'deprecation' | 'minor';
1983
+ /**
1984
+ * What an integrator has to do, computed from the OpenAPI diff rather than from the prose. `action_required`: an existing call or parser can break (an operation, parameter or field removed, a field newly required, a type narrowed, an enum value removed, or authentication changed). `additive`: only new or looser things, existing integrations keep working. `none`: descriptions or examples only. Null on entries published before October 2026.
1985
+ */
1986
+ impact: ('none' | 'additive' | 'action_required') | null;
1980
1987
  /**
1981
1988
  * Platform and area slugs the entry is about: a platform (`instagram`, `facebook`, `threads`, `tiktok`, `x`, `linkedin`, `youtube`, `pinterest`, `reddit`, `bluesky`, `telegram`, `snapchat`, `whatsapp`, `discord`, `slack`, `google-business`, `imessage`), an ads platform (`meta-ads`, `google-ads`, `tiktok-ads`, `linkedin-ads`, `pinterest-ads`, `x-ads`) or an area (`ads`, `publishing`, `inbox`, `telephony`, `commerce`, `analytics`, `webhooks`, `general`). Filter with the `platform` query parameter.
1982
1989
  */
@@ -2014,12 +2021,28 @@ export type ApiChangelogEntry = {
2014
2021
  };
2015
2022
  };
2016
2023
 
2024
+ /**
2025
+ * When `impact` is set, `breaking_change` means exactly `impact: action_required`.
2026
+ */
2017
2027
  export type type2 = 'new_feature' | 'breaking_change' | 'improvement' | 'deprecation' | 'minor';
2018
2028
 
2029
+ /**
2030
+ * What an integrator has to do, computed from the OpenAPI diff rather than from the prose. `action_required`: an existing call or parser can break (an operation, parameter or field removed, a field newly required, a type narrowed, an enum value removed, or authentication changed). `additive`: only new or looser things, existing integrations keep working. `none`: descriptions or examples only. Null on entries published before October 2026.
2031
+ */
2032
+ export type impact = 'none' | 'additive' | 'action_required';
2033
+
2019
2034
  export type ApiChangelogOperationRef = {
2020
2035
  method: string;
2021
2036
  path: string;
2022
2037
  operationId?: string;
2038
+ /**
2039
+ * OpenAPI tags of the operation.
2040
+ */
2041
+ tags?: Array<(string)>;
2042
+ /**
2043
+ * The operation's `x-platforms` list, verbatim.
2044
+ */
2045
+ xPlatforms?: Array<(string)>;
2023
2046
  };
2024
2047
 
2025
2048
  export type ApiKey = {
@@ -29496,62 +29519,100 @@ export type GetInboxPostCommentsResponse = ({
29496
29519
  rootCid?: (string) | null;
29497
29520
  }>;
29498
29521
  /**
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).
29522
+ * (Reddit, Facebook and Instagram) Metadata for the target post, returned alongside the comments
29523
+ * so integrators can render a preview of the post being commented on without an additional request.
29524
+ *
29525
+ * Facebook and Instagram return the Meta shape: the post thumbnail, text and permalink, for any post
29526
+ * the account can read, including the hidden dark posts Meta publishes for each variant of an ad
29527
+ * (dynamic creative, placement asset customization, Advantage+). Facebook posts need the Facebook
29528
+ * Page connection and Instagram media the Instagram connection. `thumbnailUrl` and `mediaUrl` are
29529
+ * Meta CDN URLs that expire: store a copy if you render them later. On Instagram, `productType`
29530
+ * tells an ad (`AD`) from organic media (`FEED`, `REELS`, `STORY`).
29531
+ *
29532
+ * Absent on other platforms, when the post cannot be read with the connection's token, and on Reddit
29533
+ * when the upstream response is missing the post listing (deleted post, malformed response).
29503
29534
  *
29504
29535
  */
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;
29536
+ post?: ({
29537
+ /**
29538
+ * Reddit post base36 id (e.g. "1tjtj26")
29539
+ */
29540
+ id?: string;
29541
+ /**
29542
+ * Fullname with type prefix (e.g. "t3_1tjtj26")
29543
+ */
29544
+ fullname?: string;
29545
+ title?: string;
29546
+ /**
29547
+ * Body text for self-posts (empty for link posts)
29548
+ */
29549
+ selftext?: string;
29550
+ /**
29551
+ * Reddit username, without the u/ prefix
29552
+ */
29553
+ author?: string;
29554
+ /**
29555
+ * Subreddit name, without the r/ prefix
29556
+ */
29557
+ subreddit?: string;
29558
+ /**
29559
+ * Absolute URL to the post on reddit.com
29560
+ */
29561
+ permalink?: string;
29562
+ /**
29563
+ * For link posts, the external URL; for self-posts, the Reddit permalink
29564
+ */
29565
+ url?: string;
29566
+ /**
29567
+ * Net upvotes (upvotes minus downvotes)
29568
+ */
29569
+ score?: number;
29570
+ numComments?: number;
29571
+ /**
29572
+ * Unix timestamp in seconds
29573
+ */
29574
+ createdUtc?: number;
29575
+ over18?: boolean;
29576
+ stickied?: boolean;
29577
+ /**
29578
+ * Link flair text if any
29579
+ */
29580
+ flairText?: (string) | null;
29581
+ /**
29582
+ * True if the post is a Reddit gallery (multiple images)
29583
+ */
29584
+ isGallery?: boolean;
29585
+ } | {
29586
+ /**
29587
+ * Facebook post id ({pageId}_{postId}) or Instagram media id
29588
+ */
29589
+ id: string;
29590
+ permalink: (string) | null;
29591
+ /**
29592
+ * Facebook post message or Instagram caption
29593
+ */
29594
+ text: (string) | null;
29595
+ /**
29596
+ * Facebook `full_picture` (or the first attachment image); Instagram `thumbnail_url` for videos, `media_url` for images. Expiring Meta CDN URL.
29597
+ */
29598
+ thumbnailUrl: (string) | null;
29599
+ /**
29600
+ * Instagram `media_url` (the video file for videos). Always null on Facebook. Expiring Meta CDN URL.
29601
+ */
29602
+ mediaUrl: (string) | null;
29603
+ /**
29604
+ * Instagram `media_type` (IMAGE, VIDEO, CAROUSEL_ALBUM) or the Facebook attachment type (photo, video_inline, link, ...)
29605
+ */
29606
+ mediaType: (string) | null;
29607
+ /**
29608
+ * Instagram `media_product_type`: AD, FEED, REELS or STORY. Always null on Facebook.
29609
+ */
29610
+ productType: (string) | null;
29611
+ /**
29612
+ * Creation time as Meta returns it (e.g. 2026-05-27T17:15:51+0000)
29613
+ */
29614
+ createdAt: (string) | null;
29615
+ } | null);
29555
29616
  /**
29556
29617
  * (Facebook and Instagram only) Present when `commentId` was passed: the requested
29557
29618
  * comment itself, in the same shape as an entry in comments[]. comments[] then holds
@@ -55973,6 +56034,10 @@ export type ListChangelogData = {
55973
56034
  * Only entries published strictly before this instant. Pass the previous page's `nextCursor`.
55974
56035
  */
55975
56036
  before?: string;
56037
+ /**
56038
+ * Only entries with this impact. `action_required` lists the changes an integration may need to act on.
56039
+ */
56040
+ impact?: 'none' | 'additive' | 'action_required';
55976
56041
  limit?: number;
55977
56042
  /**
55978
56043
  * Only entries tagged with this platform or area slug (see `platforms` on the entry). One slug per request.