@zernio/node 0.2.667 → 0.2.669

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
@@ -30136,6 +30136,10 @@ type AttachCampaignAssetsData = {
30136
30136
  * Zernio Google Ads SocialAccount id — resolves the customer id + refresh token.
30137
30137
  */
30138
30138
  accountId: string;
30139
+ /**
30140
+ * Numeric Google Ads customer id. Required when the connection has multiple Google Ads accounts; optional (and inferred) when it has only one.
30141
+ */
30142
+ customerId?: string;
30139
30143
  /**
30140
30144
  * See POST /v1/ads/create sitelinks — same shape.
30141
30145
  */
package/dist/index.d.ts CHANGED
@@ -30136,6 +30136,10 @@ type AttachCampaignAssetsData = {
30136
30136
  * Zernio Google Ads SocialAccount id — resolves the customer id + refresh token.
30137
30137
  */
30138
30138
  accountId: string;
30139
+ /**
30140
+ * Numeric Google Ads customer id. Required when the connection has multiple Google Ads accounts; optional (and inferred) when it has only one.
30141
+ */
30142
+ customerId?: string;
30139
30143
  /**
30140
30144
  * See POST /v1/ads/create sitelinks — same shape.
30141
30145
  */
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.667",
39
+ version: "0.2.669",
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.667",
8
+ version: "0.2.669",
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.667",
3
+ "version": "0.2.669",
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>({
@@ -30610,6 +30610,10 @@ export type AttachCampaignAssetsData = {
30610
30610
  * Zernio Google Ads SocialAccount id — resolves the customer id + refresh token.
30611
30611
  */
30612
30612
  accountId: string;
30613
+ /**
30614
+ * Numeric Google Ads customer id. Required when the connection has multiple Google Ads accounts; optional (and inferred) when it has only one.
30615
+ */
30616
+ customerId?: string;
30613
30617
  /**
30614
30618
  * See POST /v1/ads/create sitelinks — same shape.
30615
30619
  */