@zernio/node 0.2.668 → 0.2.670

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
@@ -6711,11 +6711,11 @@ type TargetingSpec = {
6711
6711
  */
6712
6712
  jobFunctions?: Array<(string)>;
6713
6713
  /**
6714
- * Platform audience IDs to include.
6714
+ * Platform audience IDs to include. Not supported on any platform (no builder maps it): rejected with a 400 on ad create, boost, and reach estimate.
6715
6715
  */
6716
6716
  audienceInclude?: Array<(string)>;
6717
6717
  /**
6718
- * Platform audience IDs to exclude.
6718
+ * Platform audience IDs to exclude. Not supported on any platform (no builder maps it): rejected with a 400 on ad create, boost, and reach estimate.
6719
6719
  */
6720
6720
  audienceExclude?: Array<(string)>;
6721
6721
  };
package/dist/index.d.ts CHANGED
@@ -6711,11 +6711,11 @@ type TargetingSpec = {
6711
6711
  */
6712
6712
  jobFunctions?: Array<(string)>;
6713
6713
  /**
6714
- * Platform audience IDs to include.
6714
+ * Platform audience IDs to include. Not supported on any platform (no builder maps it): rejected with a 400 on ad create, boost, and reach estimate.
6715
6715
  */
6716
6716
  audienceInclude?: Array<(string)>;
6717
6717
  /**
6718
- * Platform audience IDs to exclude.
6718
+ * Platform audience IDs to exclude. Not supported on any platform (no builder maps it): rejected with a 400 on ad create, boost, and reach estimate.
6719
6719
  */
6720
6720
  audienceExclude?: Array<(string)>;
6721
6721
  };
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.668",
39
+ version: "0.2.670",
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.668",
8
+ version: "0.2.670",
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.668",
3
+ "version": "0.2.670",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -13,6 +13,10 @@ export const client = createClient(createConfig());
13
13
  *
14
14
  * Returns counts and limits for all 15 supported platform variants.
15
15
  *
16
+ * X (Twitter) returns two rows and this endpoint cannot tell you which one applies to you: it takes only `text`, so it never resolves an account. `twitter` (280) is the free tier limit. `twitterPremium` (25000) applies only when the target X account has a paid X subscription, and publishing enforces 280 instead for any post carrying a poll (this endpoint has no poll input, so the `twitterPremium` row always shows 25000). A free account trusting the `twitterPremium` row can pass validation here and still fail at publish time, where the account's real limit is enforced.
17
+ *
18
+ * To validate against the per-account limit, use `POST /v1/tools/validate/post` instead: it accepts an `accountId` per platform entry, resolves X Premium status, and checks the text against the limit publishing enforces, including the poll cap. A missing, foreign, or invalid `accountId` falls back to the conservative 280.
19
+ *
16
20
  */
17
21
  export const validatePostLength = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ValidatePostLengthData, ThrowOnError>) => {
18
22
  return (options?.client ?? client).post<ValidatePostLengthResponse, ValidatePostLengthError, ThrowOnError>({
@@ -5576,11 +5576,11 @@ export type TargetingSpec = {
5576
5576
  */
5577
5577
  jobFunctions?: Array<(string)>;
5578
5578
  /**
5579
- * Platform audience IDs to include.
5579
+ * Platform audience IDs to include. Not supported on any platform (no builder maps it): rejected with a 400 on ad create, boost, and reach estimate.
5580
5580
  */
5581
5581
  audienceInclude?: Array<(string)>;
5582
5582
  /**
5583
- * Platform audience IDs to exclude.
5583
+ * Platform audience IDs to exclude. Not supported on any platform (no builder maps it): rejected with a 400 on ad create, boost, and reach estimate.
5584
5584
  */
5585
5585
  audienceExclude?: Array<(string)>;
5586
5586
  };