@zernio/node 0.2.423 → 0.2.425

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
@@ -8174,6 +8174,10 @@ type ValidatePostData = {
8174
8174
  */
8175
8175
  platforms: Array<{
8176
8176
  platform: 'twitter' | 'instagram' | 'tiktok' | 'youtube' | 'facebook' | 'linkedin' | 'bluesky' | 'threads' | 'reddit' | 'pinterest' | 'telegram' | 'snapchat' | 'googlebusiness' | 'discord';
8177
+ /**
8178
+ * Account to validate against. For twitter, resolves X Premium status to apply the 25000 character limit instead of 280.
8179
+ */
8180
+ accountId?: string;
8177
8181
  customContent?: string;
8178
8182
  platformSpecificData?: {
8179
8183
  [key: string]: unknown;
@@ -19546,7 +19550,7 @@ type CheckPhoneNumberAvailabilityResponse = ({
19546
19550
  */
19547
19551
  areas?: Array<(string)>;
19548
19552
  /**
19549
- * Live inventory grouped by area code, largest stock first. For US and CA this is the full country inventory (every area code with stock, named by state/province); other countries list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
19553
+ * Live inventory grouped by area code. For US and CA this is the full country inventory (every area code with stock, recognizable metros listed first, then alphabetical); other countries are ordered largest stock first; they list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
19550
19554
  *
19551
19555
  */
19552
19556
  areaOptions?: Array<{
@@ -19555,7 +19559,7 @@ type CheckPhoneNumberAvailabilityResponse = ({
19555
19559
  */
19556
19560
  ndc?: string;
19557
19561
  /**
19558
- * Area name: state/province for US/CA (e.g. "Minnesota"), city otherwise (e.g. "Sao Paulo").
19562
+ * Area name: "City, ST" for US/CA (e.g. "Miami, FL"), city otherwise (e.g. "Sao Paulo").
19559
19563
  */
19560
19564
  name?: string;
19561
19565
  /**
@@ -19795,7 +19799,7 @@ type CheckWhatsAppNumberAvailabilityResponse = ({
19795
19799
  */
19796
19800
  areas?: Array<(string)>;
19797
19801
  /**
19798
- * Live inventory grouped by area code, largest stock first. For US and CA this is the full country inventory (every area code with stock, named by state/province); other countries list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
19802
+ * Live inventory grouped by area code. For US and CA this is the full country inventory (every area code with stock, recognizable metros listed first, then alphabetical); other countries are ordered largest stock first; they list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
19799
19803
  *
19800
19804
  */
19801
19805
  areaOptions?: Array<{
@@ -19804,7 +19808,7 @@ type CheckWhatsAppNumberAvailabilityResponse = ({
19804
19808
  */
19805
19809
  ndc?: string;
19806
19810
  /**
19807
- * Area name: state/province for US/CA (e.g. "Minnesota"), city otherwise (e.g. "Sao Paulo").
19811
+ * Area name: "City, ST" for US/CA (e.g. "Miami, FL"), city otherwise (e.g. "Sao Paulo").
19808
19812
  */
19809
19813
  name?: string;
19810
19814
  /**
package/dist/index.d.ts CHANGED
@@ -8174,6 +8174,10 @@ type ValidatePostData = {
8174
8174
  */
8175
8175
  platforms: Array<{
8176
8176
  platform: 'twitter' | 'instagram' | 'tiktok' | 'youtube' | 'facebook' | 'linkedin' | 'bluesky' | 'threads' | 'reddit' | 'pinterest' | 'telegram' | 'snapchat' | 'googlebusiness' | 'discord';
8177
+ /**
8178
+ * Account to validate against. For twitter, resolves X Premium status to apply the 25000 character limit instead of 280.
8179
+ */
8180
+ accountId?: string;
8177
8181
  customContent?: string;
8178
8182
  platformSpecificData?: {
8179
8183
  [key: string]: unknown;
@@ -19546,7 +19550,7 @@ type CheckPhoneNumberAvailabilityResponse = ({
19546
19550
  */
19547
19551
  areas?: Array<(string)>;
19548
19552
  /**
19549
- * Live inventory grouped by area code, largest stock first. For US and CA this is the full country inventory (every area code with stock, named by state/province); other countries list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
19553
+ * Live inventory grouped by area code. For US and CA this is the full country inventory (every area code with stock, recognizable metros listed first, then alphabetical); other countries are ordered largest stock first; they list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
19550
19554
  *
19551
19555
  */
19552
19556
  areaOptions?: Array<{
@@ -19555,7 +19559,7 @@ type CheckPhoneNumberAvailabilityResponse = ({
19555
19559
  */
19556
19560
  ndc?: string;
19557
19561
  /**
19558
- * Area name: state/province for US/CA (e.g. "Minnesota"), city otherwise (e.g. "Sao Paulo").
19562
+ * Area name: "City, ST" for US/CA (e.g. "Miami, FL"), city otherwise (e.g. "Sao Paulo").
19559
19563
  */
19560
19564
  name?: string;
19561
19565
  /**
@@ -19795,7 +19799,7 @@ type CheckWhatsAppNumberAvailabilityResponse = ({
19795
19799
  */
19796
19800
  areas?: Array<(string)>;
19797
19801
  /**
19798
- * Live inventory grouped by area code, largest stock first. For US and CA this is the full country inventory (every area code with stock, named by state/province); other countries list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
19802
+ * Live inventory grouped by area code. For US and CA this is the full country inventory (every area code with stock, recognizable metros listed first, then alphabetical); other countries are ordered largest stock first; they list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
19799
19803
  *
19800
19804
  */
19801
19805
  areaOptions?: Array<{
@@ -19804,7 +19808,7 @@ type CheckWhatsAppNumberAvailabilityResponse = ({
19804
19808
  */
19805
19809
  ndc?: string;
19806
19810
  /**
19807
- * Area name: state/province for US/CA (e.g. "Minnesota"), city otherwise (e.g. "Sao Paulo").
19811
+ * Area name: "City, ST" for US/CA (e.g. "Miami, FL"), city otherwise (e.g. "Sao Paulo").
19808
19812
  */
19809
19813
  name?: string;
19810
19814
  /**
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.423",
39
+ version: "0.2.425",
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.423",
8
+ version: "0.2.425",
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.423",
3
+ "version": "0.2.425",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -25,7 +25,7 @@ export const validatePostLength = <ThrowOnError extends boolean = false>(options
25
25
  * Validate post content
26
26
  * Dry-run the full post validation pipeline without publishing. Catches issues like missing media for Instagram/TikTok/YouTube, hashtag limits, invalid thread formats, Facebook Reel requirements, and character limit violations.
27
27
  *
28
- * Accepts the same body as POST /v1/posts. Does NOT validate accounts, process media, or track usage. This is content-only validation.
28
+ * Accepts the same body as POST /v1/posts. Does NOT validate accounts, process media, or track usage. Account lookups are limit-only: a twitter accountId is resolved, scoped to the caller, only to pick the 280 vs 25000 character limit. Missing, foreign, or invalid ids fall back to 280 and never error.
29
29
  *
30
30
  * Returns errors for failures and warnings for near-limit content (>90% of character limit).
31
31
  *
@@ -7293,6 +7293,10 @@ export type ValidatePostData = {
7293
7293
  */
7294
7294
  platforms: Array<{
7295
7295
  platform: 'twitter' | 'instagram' | 'tiktok' | 'youtube' | 'facebook' | 'linkedin' | 'bluesky' | 'threads' | 'reddit' | 'pinterest' | 'telegram' | 'snapchat' | 'googlebusiness' | 'discord';
7296
+ /**
7297
+ * Account to validate against. For twitter, resolves X Premium status to apply the 25000 character limit instead of 280.
7298
+ */
7299
+ accountId?: string;
7296
7300
  customContent?: string;
7297
7301
  platformSpecificData?: {
7298
7302
  [key: string]: unknown;
@@ -19539,7 +19543,7 @@ export type CheckPhoneNumberAvailabilityResponse = ({
19539
19543
  */
19540
19544
  areas?: Array<(string)>;
19541
19545
  /**
19542
- * Live inventory grouped by area code, largest stock first. For US and CA this is the full country inventory (every area code with stock, named by state/province); other countries list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
19546
+ * Live inventory grouped by area code. For US and CA this is the full country inventory (every area code with stock, recognizable metros listed first, then alphabetical); other countries are ordered largest stock first; they list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
19543
19547
  *
19544
19548
  */
19545
19549
  areaOptions?: Array<{
@@ -19548,7 +19552,7 @@ export type CheckPhoneNumberAvailabilityResponse = ({
19548
19552
  */
19549
19553
  ndc?: string;
19550
19554
  /**
19551
- * Area name: state/province for US/CA (e.g. "Minnesota"), city otherwise (e.g. "Sao Paulo").
19555
+ * Area name: "City, ST" for US/CA (e.g. "Miami, FL"), city otherwise (e.g. "Sao Paulo").
19552
19556
  */
19553
19557
  name?: string;
19554
19558
  /**
@@ -19802,7 +19806,7 @@ export type CheckWhatsAppNumberAvailabilityResponse = ({
19802
19806
  */
19803
19807
  areas?: Array<(string)>;
19804
19808
  /**
19805
- * Live inventory grouped by area code, largest stock first. For US and CA this is the full country inventory (every area code with stock, named by state/province); other countries list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
19809
+ * Live inventory grouped by area code. For US and CA this is the full country inventory (every area code with stock, recognizable metros listed first, then alphabetical); other countries are ordered largest stock first; they list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
19806
19810
  *
19807
19811
  */
19808
19812
  areaOptions?: Array<{
@@ -19811,7 +19815,7 @@ export type CheckWhatsAppNumberAvailabilityResponse = ({
19811
19815
  */
19812
19816
  ndc?: string;
19813
19817
  /**
19814
- * Area name: state/province for US/CA (e.g. "Minnesota"), city otherwise (e.g. "Sao Paulo").
19818
+ * Area name: "City, ST" for US/CA (e.g. "Miami, FL"), city otherwise (e.g. "Sao Paulo").
19815
19819
  */
19816
19820
  name?: string;
19817
19821
  /**