@zernio/node 0.2.418 → 0.2.419

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
@@ -19354,6 +19354,11 @@ type PurchasePhoneNumberData = {
19354
19354
  *
19355
19355
  */
19356
19356
  numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
19357
+ /**
19358
+ * Area code (national destination code, e.g. 11 for Sao Paulo) the number must be in. Hard constraint: when the area has no deliverable inventory the purchase fails with 409 code AREA_CODE_UNAVAILABLE instead of assigning a number from another area, and later replacements stay in this area too. Omit for any area. Get live options from GET /v1/phone-numbers/availability (areaOptions).
19359
+ *
19360
+ */
19361
+ areaCode?: string;
19357
19362
  /**
19358
19363
  * A phone number is the unit; WhatsApp is one optional feature. Pass false to buy a STANDALONE number (Calls/SMS only): provisioning skips the Meta pre-verify/OTP steps and the number activates immediately. Omitted defaults to the WhatsApp provisioning path. WhatsApp can be connected to a standalone number later from the connect flow.
19359
19364
  *
@@ -19412,7 +19417,7 @@ type PurchasePhoneNumberError = (unknown | {
19412
19417
  error?: string;
19413
19418
  } | {
19414
19419
  error?: string;
19415
- code?: 'PURCHASE_VELOCITY';
19420
+ code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE';
19416
19421
  });
19417
19422
  type ListPhoneNumberCountriesResponse = ({
19418
19423
  countries?: Array<{
@@ -19519,6 +19524,10 @@ type CheckPhoneNumberAvailabilityData = {
19519
19524
  * Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type.
19520
19525
  */
19521
19526
  numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
19527
+ /**
19528
+ * Pass true when the buyer wants SMS: availability, areas, and areaOptions then describe the SMS-capable pool (an SMS purchase orders from it), not the wider voice-only pool.
19529
+ */
19530
+ sms?: boolean;
19522
19531
  };
19523
19532
  };
19524
19533
  type CheckPhoneNumberAvailabilityResponse = ({
@@ -19533,6 +19542,24 @@ type CheckPhoneNumberAvailabilityResponse = ({
19533
19542
  * For `geo` only — the area(s) the registered address must be in.
19534
19543
  */
19535
19544
  areas?: Array<(string)>;
19545
+ /**
19546
+ * Live inventory grouped by area code, largest stock first. 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.
19547
+ *
19548
+ */
19549
+ areaOptions?: Array<{
19550
+ /**
19551
+ * Area code (national destination code), e.g. "11".
19552
+ */
19553
+ ndc?: string;
19554
+ /**
19555
+ * Human-readable area name, e.g. "Sao Paulo".
19556
+ */
19557
+ name?: string;
19558
+ /**
19559
+ * Deliverable numbers seen in this area on the latest inventory page.
19560
+ */
19561
+ count?: number;
19562
+ }>;
19536
19563
  });
19537
19564
  type CheckPhoneNumberAvailabilityError = (unknown | {
19538
19565
  error?: string;
@@ -19687,7 +19714,7 @@ type PurchaseWhatsAppPhoneNumberError = (unknown | {
19687
19714
  error?: string;
19688
19715
  } | {
19689
19716
  error?: string;
19690
- code?: 'PURCHASE_VELOCITY';
19717
+ code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE';
19691
19718
  });
19692
19719
  type ListWhatsAppNumberCountriesResponse = ({
19693
19720
  countries?: Array<{
@@ -19746,6 +19773,10 @@ type CheckWhatsAppNumberAvailabilityData = {
19746
19773
  * Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type.
19747
19774
  */
19748
19775
  numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
19776
+ /**
19777
+ * Pass true when the buyer wants SMS: availability, areas, and areaOptions then describe the SMS-capable pool (an SMS purchase orders from it), not the wider voice-only pool.
19778
+ */
19779
+ sms?: boolean;
19749
19780
  };
19750
19781
  };
19751
19782
  type CheckWhatsAppNumberAvailabilityResponse = ({
@@ -19760,6 +19791,24 @@ type CheckWhatsAppNumberAvailabilityResponse = ({
19760
19791
  * For `geo` only — the area(s) the registered address must be in.
19761
19792
  */
19762
19793
  areas?: Array<(string)>;
19794
+ /**
19795
+ * Live inventory grouped by area code, largest stock first. 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.
19796
+ *
19797
+ */
19798
+ areaOptions?: Array<{
19799
+ /**
19800
+ * Area code (national destination code), e.g. "11".
19801
+ */
19802
+ ndc?: string;
19803
+ /**
19804
+ * Human-readable area name, e.g. "Sao Paulo".
19805
+ */
19806
+ name?: string;
19807
+ /**
19808
+ * Deliverable numbers seen in this area on the latest inventory page.
19809
+ */
19810
+ count?: number;
19811
+ }>;
19763
19812
  });
19764
19813
  type CheckWhatsAppNumberAvailabilityError = (unknown | {
19765
19814
  error?: string;
@@ -19863,6 +19912,10 @@ type SubmitPhoneNumberKycData = {
19863
19912
  * Legacy fallback for `reuseOptionId`: the source phone number (GET reusable.options[].fromPhoneNumber). Ambiguous when a number labels two verifications — prefer `reuseOptionId`. Omitted = the approved default. No match = 409.
19864
19913
  */
19865
19914
  reuseFrom?: string;
19915
+ /**
19916
+ * Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here.
19917
+ */
19918
+ areaCode?: string;
19866
19919
  /**
19867
19920
  * End user's legal first name. Required when the country has an action/ID-verification (Onfido) requirement.
19868
19921
  */
@@ -20007,6 +20060,10 @@ type CreatePhoneNumberKycLinkData = {
20007
20060
  * ISO 3166-1 alpha-2 country code (must be a regulated/KYC country).
20008
20061
  */
20009
20062
  country: string;
20063
+ /**
20064
+ * Area code (NDC) the eventual number must be in. Hard constraint carried by the link; the end customer filling the form makes no area choice. Options come from GET /v1/phone-numbers/availability (areaOptions).
20065
+ */
20066
+ areaCode?: string;
20010
20067
  /**
20011
20068
  * Optional white-label of the hosted page the end customer sees.
20012
20069
  */
@@ -20603,6 +20660,10 @@ type SubmitWhatsAppNumberKycData = {
20603
20660
  * Legacy fallback for `reuseOptionId`: the source phone number (GET reusable.options[].fromPhoneNumber). Ambiguous when a number labels two verifications — prefer `reuseOptionId`. Omitted = the approved default. No match = 409.
20604
20661
  */
20605
20662
  reuseFrom?: string;
20663
+ /**
20664
+ * Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here.
20665
+ */
20666
+ areaCode?: string;
20606
20667
  /**
20607
20668
  * End user's legal first name. Required when the country has an action/ID-verification (Onfido) requirement.
20608
20669
  */
@@ -20735,6 +20796,10 @@ type CreateWhatsAppNumberKycLinkData = {
20735
20796
  * ISO 3166-1 alpha-2 country code (must be a regulated/KYC country).
20736
20797
  */
20737
20798
  country: string;
20799
+ /**
20800
+ * Area code (NDC) the eventual number must be in. Hard constraint carried by the link; the end customer filling the form makes no area choice. Options come from GET /v1/phone-numbers/availability (areaOptions).
20801
+ */
20802
+ areaCode?: string;
20738
20803
  /**
20739
20804
  * Optional white-label of the hosted page the end customer sees.
20740
20805
  */
package/dist/index.d.ts CHANGED
@@ -19354,6 +19354,11 @@ type PurchasePhoneNumberData = {
19354
19354
  *
19355
19355
  */
19356
19356
  numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
19357
+ /**
19358
+ * Area code (national destination code, e.g. 11 for Sao Paulo) the number must be in. Hard constraint: when the area has no deliverable inventory the purchase fails with 409 code AREA_CODE_UNAVAILABLE instead of assigning a number from another area, and later replacements stay in this area too. Omit for any area. Get live options from GET /v1/phone-numbers/availability (areaOptions).
19359
+ *
19360
+ */
19361
+ areaCode?: string;
19357
19362
  /**
19358
19363
  * A phone number is the unit; WhatsApp is one optional feature. Pass false to buy a STANDALONE number (Calls/SMS only): provisioning skips the Meta pre-verify/OTP steps and the number activates immediately. Omitted defaults to the WhatsApp provisioning path. WhatsApp can be connected to a standalone number later from the connect flow.
19359
19364
  *
@@ -19412,7 +19417,7 @@ type PurchasePhoneNumberError = (unknown | {
19412
19417
  error?: string;
19413
19418
  } | {
19414
19419
  error?: string;
19415
- code?: 'PURCHASE_VELOCITY';
19420
+ code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE';
19416
19421
  });
19417
19422
  type ListPhoneNumberCountriesResponse = ({
19418
19423
  countries?: Array<{
@@ -19519,6 +19524,10 @@ type CheckPhoneNumberAvailabilityData = {
19519
19524
  * Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type.
19520
19525
  */
19521
19526
  numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
19527
+ /**
19528
+ * Pass true when the buyer wants SMS: availability, areas, and areaOptions then describe the SMS-capable pool (an SMS purchase orders from it), not the wider voice-only pool.
19529
+ */
19530
+ sms?: boolean;
19522
19531
  };
19523
19532
  };
19524
19533
  type CheckPhoneNumberAvailabilityResponse = ({
@@ -19533,6 +19542,24 @@ type CheckPhoneNumberAvailabilityResponse = ({
19533
19542
  * For `geo` only — the area(s) the registered address must be in.
19534
19543
  */
19535
19544
  areas?: Array<(string)>;
19545
+ /**
19546
+ * Live inventory grouped by area code, largest stock first. 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.
19547
+ *
19548
+ */
19549
+ areaOptions?: Array<{
19550
+ /**
19551
+ * Area code (national destination code), e.g. "11".
19552
+ */
19553
+ ndc?: string;
19554
+ /**
19555
+ * Human-readable area name, e.g. "Sao Paulo".
19556
+ */
19557
+ name?: string;
19558
+ /**
19559
+ * Deliverable numbers seen in this area on the latest inventory page.
19560
+ */
19561
+ count?: number;
19562
+ }>;
19536
19563
  });
19537
19564
  type CheckPhoneNumberAvailabilityError = (unknown | {
19538
19565
  error?: string;
@@ -19687,7 +19714,7 @@ type PurchaseWhatsAppPhoneNumberError = (unknown | {
19687
19714
  error?: string;
19688
19715
  } | {
19689
19716
  error?: string;
19690
- code?: 'PURCHASE_VELOCITY';
19717
+ code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE';
19691
19718
  });
19692
19719
  type ListWhatsAppNumberCountriesResponse = ({
19693
19720
  countries?: Array<{
@@ -19746,6 +19773,10 @@ type CheckWhatsAppNumberAvailabilityData = {
19746
19773
  * Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type.
19747
19774
  */
19748
19775
  numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
19776
+ /**
19777
+ * Pass true when the buyer wants SMS: availability, areas, and areaOptions then describe the SMS-capable pool (an SMS purchase orders from it), not the wider voice-only pool.
19778
+ */
19779
+ sms?: boolean;
19749
19780
  };
19750
19781
  };
19751
19782
  type CheckWhatsAppNumberAvailabilityResponse = ({
@@ -19760,6 +19791,24 @@ type CheckWhatsAppNumberAvailabilityResponse = ({
19760
19791
  * For `geo` only — the area(s) the registered address must be in.
19761
19792
  */
19762
19793
  areas?: Array<(string)>;
19794
+ /**
19795
+ * Live inventory grouped by area code, largest stock first. 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.
19796
+ *
19797
+ */
19798
+ areaOptions?: Array<{
19799
+ /**
19800
+ * Area code (national destination code), e.g. "11".
19801
+ */
19802
+ ndc?: string;
19803
+ /**
19804
+ * Human-readable area name, e.g. "Sao Paulo".
19805
+ */
19806
+ name?: string;
19807
+ /**
19808
+ * Deliverable numbers seen in this area on the latest inventory page.
19809
+ */
19810
+ count?: number;
19811
+ }>;
19763
19812
  });
19764
19813
  type CheckWhatsAppNumberAvailabilityError = (unknown | {
19765
19814
  error?: string;
@@ -19863,6 +19912,10 @@ type SubmitPhoneNumberKycData = {
19863
19912
  * Legacy fallback for `reuseOptionId`: the source phone number (GET reusable.options[].fromPhoneNumber). Ambiguous when a number labels two verifications — prefer `reuseOptionId`. Omitted = the approved default. No match = 409.
19864
19913
  */
19865
19914
  reuseFrom?: string;
19915
+ /**
19916
+ * Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here.
19917
+ */
19918
+ areaCode?: string;
19866
19919
  /**
19867
19920
  * End user's legal first name. Required when the country has an action/ID-verification (Onfido) requirement.
19868
19921
  */
@@ -20007,6 +20060,10 @@ type CreatePhoneNumberKycLinkData = {
20007
20060
  * ISO 3166-1 alpha-2 country code (must be a regulated/KYC country).
20008
20061
  */
20009
20062
  country: string;
20063
+ /**
20064
+ * Area code (NDC) the eventual number must be in. Hard constraint carried by the link; the end customer filling the form makes no area choice. Options come from GET /v1/phone-numbers/availability (areaOptions).
20065
+ */
20066
+ areaCode?: string;
20010
20067
  /**
20011
20068
  * Optional white-label of the hosted page the end customer sees.
20012
20069
  */
@@ -20603,6 +20660,10 @@ type SubmitWhatsAppNumberKycData = {
20603
20660
  * Legacy fallback for `reuseOptionId`: the source phone number (GET reusable.options[].fromPhoneNumber). Ambiguous when a number labels two verifications — prefer `reuseOptionId`. Omitted = the approved default. No match = 409.
20604
20661
  */
20605
20662
  reuseFrom?: string;
20663
+ /**
20664
+ * Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here.
20665
+ */
20666
+ areaCode?: string;
20606
20667
  /**
20607
20668
  * End user's legal first name. Required when the country has an action/ID-verification (Onfido) requirement.
20608
20669
  */
@@ -20735,6 +20796,10 @@ type CreateWhatsAppNumberKycLinkData = {
20735
20796
  * ISO 3166-1 alpha-2 country code (must be a regulated/KYC country).
20736
20797
  */
20737
20798
  country: string;
20799
+ /**
20800
+ * Area code (NDC) the eventual number must be in. Hard constraint carried by the link; the end customer filling the form makes no area choice. Options come from GET /v1/phone-numbers/availability (areaOptions).
20801
+ */
20802
+ areaCode?: string;
20738
20803
  /**
20739
20804
  * Optional white-label of the hosted page the end customer sees.
20740
20805
  */
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.418",
39
+ version: "0.2.419",
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.418",
8
+ version: "0.2.419",
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.418",
3
+ "version": "0.2.419",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -19341,6 +19341,11 @@ export type PurchasePhoneNumberData = {
19341
19341
  *
19342
19342
  */
19343
19343
  numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
19344
+ /**
19345
+ * Area code (national destination code, e.g. 11 for Sao Paulo) the number must be in. Hard constraint: when the area has no deliverable inventory the purchase fails with 409 code AREA_CODE_UNAVAILABLE instead of assigning a number from another area, and later replacements stay in this area too. Omit for any area. Get live options from GET /v1/phone-numbers/availability (areaOptions).
19346
+ *
19347
+ */
19348
+ areaCode?: string;
19344
19349
  /**
19345
19350
  * A phone number is the unit; WhatsApp is one optional feature. Pass false to buy a STANDALONE number (Calls/SMS only): provisioning skips the Meta pre-verify/OTP steps and the number activates immediately. Omitted defaults to the WhatsApp provisioning path. WhatsApp can be connected to a standalone number later from the connect flow.
19346
19351
  *
@@ -19401,7 +19406,7 @@ export type PurchasePhoneNumberError = (unknown | {
19401
19406
  error?: string;
19402
19407
  } | {
19403
19408
  error?: string;
19404
- code?: 'PURCHASE_VELOCITY';
19409
+ code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE';
19405
19410
  });
19406
19411
 
19407
19412
  export type ListPhoneNumberCountriesResponse = ({
@@ -19514,6 +19519,10 @@ export type CheckPhoneNumberAvailabilityData = {
19514
19519
  * Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type.
19515
19520
  */
19516
19521
  numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
19522
+ /**
19523
+ * Pass true when the buyer wants SMS: availability, areas, and areaOptions then describe the SMS-capable pool (an SMS purchase orders from it), not the wider voice-only pool.
19524
+ */
19525
+ sms?: boolean;
19517
19526
  };
19518
19527
  };
19519
19528
 
@@ -19529,6 +19538,24 @@ export type CheckPhoneNumberAvailabilityResponse = ({
19529
19538
  * For `geo` only — the area(s) the registered address must be in.
19530
19539
  */
19531
19540
  areas?: Array<(string)>;
19541
+ /**
19542
+ * Live inventory grouped by area code, largest stock first. 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
+ *
19544
+ */
19545
+ areaOptions?: Array<{
19546
+ /**
19547
+ * Area code (national destination code), e.g. "11".
19548
+ */
19549
+ ndc?: string;
19550
+ /**
19551
+ * Human-readable area name, e.g. "Sao Paulo".
19552
+ */
19553
+ name?: string;
19554
+ /**
19555
+ * Deliverable numbers seen in this area on the latest inventory page.
19556
+ */
19557
+ count?: number;
19558
+ }>;
19532
19559
  });
19533
19560
 
19534
19561
  export type CheckPhoneNumberAvailabilityError = (unknown | {
@@ -19690,7 +19717,7 @@ export type PurchaseWhatsAppPhoneNumberError = (unknown | {
19690
19717
  error?: string;
19691
19718
  } | {
19692
19719
  error?: string;
19693
- code?: 'PURCHASE_VELOCITY';
19720
+ code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE';
19694
19721
  });
19695
19722
 
19696
19723
  export type ListWhatsAppNumberCountriesResponse = ({
@@ -19755,6 +19782,10 @@ export type CheckWhatsAppNumberAvailabilityData = {
19755
19782
  * Check a specific offered type (stock and address constraints are per type). Omitted = the country's default type.
19756
19783
  */
19757
19784
  numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
19785
+ /**
19786
+ * Pass true when the buyer wants SMS: availability, areas, and areaOptions then describe the SMS-capable pool (an SMS purchase orders from it), not the wider voice-only pool.
19787
+ */
19788
+ sms?: boolean;
19758
19789
  };
19759
19790
  };
19760
19791
 
@@ -19770,6 +19801,24 @@ export type CheckWhatsAppNumberAvailabilityResponse = ({
19770
19801
  * For `geo` only — the area(s) the registered address must be in.
19771
19802
  */
19772
19803
  areas?: Array<(string)>;
19804
+ /**
19805
+ * Live inventory grouped by area code, largest stock first. 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
+ *
19807
+ */
19808
+ areaOptions?: Array<{
19809
+ /**
19810
+ * Area code (national destination code), e.g. "11".
19811
+ */
19812
+ ndc?: string;
19813
+ /**
19814
+ * Human-readable area name, e.g. "Sao Paulo".
19815
+ */
19816
+ name?: string;
19817
+ /**
19818
+ * Deliverable numbers seen in this area on the latest inventory page.
19819
+ */
19820
+ count?: number;
19821
+ }>;
19773
19822
  });
19774
19823
 
19775
19824
  export type CheckWhatsAppNumberAvailabilityError = (unknown | {
@@ -19878,6 +19927,10 @@ export type SubmitPhoneNumberKycData = {
19878
19927
  * Legacy fallback for `reuseOptionId`: the source phone number (GET reusable.options[].fromPhoneNumber). Ambiguous when a number labels two verifications — prefer `reuseOptionId`. Omitted = the approved default. No match = 409.
19879
19928
  */
19880
19929
  reuseFrom?: string;
19930
+ /**
19931
+ * Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here.
19932
+ */
19933
+ areaCode?: string;
19881
19934
  /**
19882
19935
  * End user's legal first name. Required when the country has an action/ID-verification (Onfido) requirement.
19883
19936
  */
@@ -20034,6 +20087,10 @@ export type CreatePhoneNumberKycLinkData = {
20034
20087
  * ISO 3166-1 alpha-2 country code (must be a regulated/KYC country).
20035
20088
  */
20036
20089
  country: string;
20090
+ /**
20091
+ * Area code (NDC) the eventual number must be in. Hard constraint carried by the link; the end customer filling the form makes no area choice. Options come from GET /v1/phone-numbers/availability (areaOptions).
20092
+ */
20093
+ areaCode?: string;
20037
20094
  /**
20038
20095
  * Optional white-label of the hosted page the end customer sees.
20039
20096
  */
@@ -20671,6 +20728,10 @@ export type SubmitWhatsAppNumberKycData = {
20671
20728
  * Legacy fallback for `reuseOptionId`: the source phone number (GET reusable.options[].fromPhoneNumber). Ambiguous when a number labels two verifications — prefer `reuseOptionId`. Omitted = the approved default. No match = 409.
20672
20729
  */
20673
20730
  reuseFrom?: string;
20731
+ /**
20732
+ * Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here.
20733
+ */
20734
+ areaCode?: string;
20674
20735
  /**
20675
20736
  * End user's legal first name. Required when the country has an action/ID-verification (Onfido) requirement.
20676
20737
  */
@@ -20812,6 +20873,10 @@ export type CreateWhatsAppNumberKycLinkData = {
20812
20873
  * ISO 3166-1 alpha-2 country code (must be a regulated/KYC country).
20813
20874
  */
20814
20875
  country: string;
20876
+ /**
20877
+ * Area code (NDC) the eventual number must be in. Hard constraint carried by the link; the end customer filling the form makes no area choice. Options come from GET /v1/phone-numbers/availability (areaOptions).
20878
+ */
20879
+ areaCode?: string;
20815
20880
  /**
20816
20881
  * Optional white-label of the hosted page the end customer sees.
20817
20882
  */