@zernio/node 0.2.653 → 0.2.655

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
@@ -6562,7 +6562,7 @@ type TargetingSpec = {
6562
6562
  name?: string;
6563
6563
  }>;
6564
6564
  /**
6565
- * Point-radius (lat/lng) targeting (Meta custom_locations / Google proximity). Honoured only where the capability map allows radius (Meta).
6565
+ * Point-radius (lat/lng) targeting (Meta custom_locations / Google proximity). Honoured on Meta and Google; ignored on platforms without radius support.
6566
6566
  */
6567
6567
  customLocations?: Array<{
6568
6568
  latitude: number;
package/dist/index.d.ts CHANGED
@@ -6562,7 +6562,7 @@ type TargetingSpec = {
6562
6562
  name?: string;
6563
6563
  }>;
6564
6564
  /**
6565
- * Point-radius (lat/lng) targeting (Meta custom_locations / Google proximity). Honoured only where the capability map allows radius (Meta).
6565
+ * Point-radius (lat/lng) targeting (Meta custom_locations / Google proximity). Honoured on Meta and Google; ignored on platforms without radius support.
6566
6566
  */
6567
6567
  customLocations?: Array<{
6568
6568
  latitude: number;
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.653",
39
+ version: "0.2.655",
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.653",
8
+ version: "0.2.655",
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.653",
3
+ "version": "0.2.655",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -3825,12 +3825,29 @@ export const unhideInboxComment = <ThrowOnError extends boolean = false>(options
3825
3825
  /**
3826
3826
  * Like comment
3827
3827
  * Like or upvote a comment on a post. Supported platforms: Facebook, Twitter/X,
3828
- * Bluesky, Reddit, LinkedIn. For Bluesky, the cid (content identifier) is required
3829
- * in the request body. For LinkedIn, pass the composite comment URN returned by the
3830
- * comments endpoints as commentId; an optional reactionType picks the reaction
3828
+ * Bluesky, Reddit, LinkedIn, and Instagram in limited release (see below). For
3829
+ * Bluesky, the cid (content identifier) is
3830
+ * required in the request body. For LinkedIn, pass the composite comment URN returned
3831
+ * by the comments endpoints as commentId; an optional reactionType picks the reaction
3831
3832
  * (defaults to LIKE), and accounts connected before the social-feed scopes were
3832
3833
  * requested get a 403 with code `linkedin_reconnect_required`.
3833
3834
  *
3835
+ * Instagram is in LIMITED RELEASE and not generally available: the call needs
3836
+ * `instagram_manage_engagement`, which Meta has so far granted this app only under
3837
+ * Standard Access, so it works for app admins, developers and testers of our Meta app
3838
+ * and returns a 403 with code `PLATFORM_BETA_RESTRICTED` for every other account.
3839
+ * That restriction lifts when Meta App Review grants Advanced Access; the constraints
3840
+ * below apply once it does.
3841
+ *
3842
+ * Instagram covers comments and replies on feed posts, reels and carousels. Only an
3843
+ * account connected through Facebook Login can be granted
3844
+ * `instagram_manage_engagement`: an Instagram Login connection returns a 400 with
3845
+ * code `instagram_likes_require_facebook_login`, and an account whose token predates
3846
+ * the permission returns a 403 with code `reconnect_required`. Content from private
3847
+ * accounts cannot be liked. Instagram also enforces a burst limit of 50 like or
3848
+ * unlike calls per 5 seconds per Instagram account, and exceeding it locks that
3849
+ * account out of the like API for an hour, so pace bulk loops.
3850
+ *
3834
3851
  */
3835
3852
  export const likeInboxComment = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<LikeInboxCommentData, ThrowOnError>) => {
3836
3853
  return (options?.client ?? client).post<LikeInboxCommentResponse, LikeInboxCommentError, ThrowOnError>({
@@ -3842,7 +3859,9 @@ export const likeInboxComment = <ThrowOnError extends boolean = false>(options:
3842
3859
  /**
3843
3860
  * Unlike comment
3844
3861
  * Remove a like from a comment. Supported platforms: Facebook, Twitter/X, Bluesky,
3845
- * Reddit, LinkedIn. For Bluesky, the likeUri query parameter is required.
3862
+ * Reddit, LinkedIn, and Instagram in limited release. For Bluesky, the likeUri query
3863
+ * parameter is required. Instagram has the same limited release, Facebook Login,
3864
+ * `instagram_manage_engagement` and burst-limit constraints as liking.
3846
3865
  *
3847
3866
  */
3848
3867
  export const unlikeInboxComment = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UnlikeInboxCommentData, ThrowOnError>) => {
@@ -3855,7 +3874,8 @@ export const unlikeInboxComment = <ThrowOnError extends boolean = false>(options
3855
3874
  /**
3856
3875
  * Like post
3857
3876
  * Like (or react to) a post as a connected account. Supported platforms: LinkedIn,
3858
- * Twitter/X, Facebook, YouTube, Bluesky. Instagram, Threads, TikTok and Pinterest
3877
+ * Twitter/X, Facebook, YouTube, Bluesky, and Instagram in limited release (see below).
3878
+ * Threads, TikTok and Pinterest
3859
3879
  * expose no like endpoint in their APIs and return 400. Reddit returns 400 too,
3860
3880
  * pointing at `POST /v1/accounts/{accountId}/reddit-vote`, which covers upvote,
3861
3881
  * downvote and clear on both posts and comments.
@@ -3872,6 +3892,22 @@ export const unlikeInboxComment = <ThrowOnError extends boolean = false>(options
3872
3892
  * get a 403 with code `linkedin_reconnect_required` until the user reconnects the
3873
3893
  * account. YouTube spends 50 quota units per call.
3874
3894
  *
3895
+ * Instagram is in LIMITED RELEASE and not generally available: the call needs
3896
+ * `instagram_manage_engagement`, which Meta has so far granted this app only under
3897
+ * Standard Access, so it works for app admins, developers and testers of our Meta app
3898
+ * and returns a 403 with code `PLATFORM_BETA_RESTRICTED` for every other account.
3899
+ * That restriction lifts when Meta App Review grants Advanced Access; the constraints
3900
+ * below apply once it does.
3901
+ *
3902
+ * Instagram covers feed images, reels and carousels (stories and private-account
3903
+ * media are not likeable). Only an account connected through Facebook Login can be
3904
+ * granted `instagram_manage_engagement`: an Instagram Login
3905
+ * connection returns a 400 with code `instagram_likes_require_facebook_login`, and an
3906
+ * account whose token predates the permission returns a 403 with code
3907
+ * `reconnect_required`. Instagram also enforces a burst limit of 50 like or unlike
3908
+ * calls per 5 seconds per Instagram account, and exceeding it locks that account out
3909
+ * of the like API for an hour, so pace bulk loops.
3910
+ *
3875
3911
  */
3876
3912
  export const likePost = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<LikePostData, ThrowOnError>) => {
3877
3913
  return (options?.client ?? client).post<LikePostResponse, LikePostError, ThrowOnError>({
@@ -3883,7 +3919,9 @@ export const likePost = <ThrowOnError extends boolean = false>(options: OptionsL
3883
3919
  /**
3884
3920
  * Unlike post
3885
3921
  * Remove this account's like from a post. Supported platforms: LinkedIn, Twitter/X,
3886
- * Facebook, YouTube, Bluesky. On YouTube this clears the rating. For Bluesky,
3922
+ * Facebook, YouTube, Bluesky, and Instagram in limited release. On YouTube this clears
3923
+ * the rating. Instagram has the same limited release, Facebook Login,
3924
+ * `instagram_manage_engagement` and burst-limit constraints as liking. For Bluesky,
3887
3925
  * `likeUri` (returned when the post was liked) is required. Reddit uses
3888
3926
  * `POST /v1/accounts/{accountId}/reddit-vote` with `direction: 0`.
3889
3927
  *
@@ -8751,6 +8789,17 @@ export const searchAdInterests = <ThrowOnError extends boolean = false>(options:
8751
8789
  * `urn:li:geo:*` URN usable as a `regions[].key` on `POST /v1/ads/create`,
8752
8790
  * `POST /v1/ads/boost` and `POST /v1/ads/targeting/reach-estimate`.
8753
8791
  *
8792
+ * Google geo searches resolve against Google's geoTargetConstants and return
8793
+ * every matching level in one list; `geoType` is not applied (Google's
8794
+ * `target_type` is an open taxonomy that does not map one-to-one onto the
8795
+ * `geoType` enum), so filter client-side on the returned `type` (`country`,
8796
+ * `region`, `city`, `zip`, `metro`, or the lowercased Google target type for
8797
+ * rarer levels). `countryCode` scopes the search to one country. Each id is
8798
+ * Google's numeric criterion id, usable as a `regions`/`cities`/`zips`/`metros`
8799
+ * `key` on `POST /v1/ads/create`. Google city radius is not supported (pass a
8800
+ * `customLocations` lat/lng pin for a radius); country targeting also accepts
8801
+ * plain ISO codes via `countries` with no search call.
8802
+ *
8754
8803
  * Pinterest resolves against three whole-catalog endpoints (interests, locations,
8755
8804
  * regions) with no server-side query or pagination, so matching, ranking and the
8756
8805
  * `limit` cutoff all happen in Zernio; the catalog is independent of any ad account
@@ -5437,7 +5437,7 @@ export type TargetingSpec = {
5437
5437
  name?: string;
5438
5438
  }>;
5439
5439
  /**
5440
- * Point-radius (lat/lng) targeting (Meta custom_locations / Google proximity). Honoured only where the capability map allows radius (Meta).
5440
+ * Point-radius (lat/lng) targeting (Meta custom_locations / Google proximity). Honoured on Meta and Google; ignored on platforms without radius support.
5441
5441
  */
5442
5442
  customLocations?: Array<{
5443
5443
  latitude: number;