@zernio/node 0.2.735 → 0.2.736

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
@@ -26379,13 +26379,20 @@ type ListPhoneNumberCountriesResponse = ({
26379
26379
  * Live carrier-stock snapshot (refreshed every 6h + on availability checks): false when NO offered type currently has deliverable inventory, so a purchase would fail. Treat as advisory; the purchase itself re-checks.
26380
26380
  */
26381
26381
  inStock?: boolean;
26382
+ /**
26383
+ * At least one out-of-stock type here can be pre-ordered (see `types[].preOrderable`).
26384
+ */
26385
+ preOrderable?: boolean;
26382
26386
  /**
26383
26387
  * Every number type offered in this country (default first). Capabilities, KYC tier, monthly price, and stock are per type. The country-level fields above mirror the first (default) entry. Pass the chosen `numberType` to POST /v1/phone-numbers/purchase.
26384
26388
  *
26385
26389
  */
26386
26390
  types?: Array<{
26387
26391
  numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
26388
- tier?: 1 | 2 | 3 | 4;
26392
+ /**
26393
+ * Null on a `fulfilment: request` type, whose document tier is only known once its requirements are read.
26394
+ */
26395
+ tier?: (1 | 2 | 3 | 4) | null;
26389
26396
  needsKyc?: boolean;
26390
26397
  /**
26391
26398
  * Price a NEW number of this type costs per month, in cents.
@@ -26398,6 +26405,14 @@ type ListPhoneNumberCountriesResponse = ({
26398
26405
  smsAvailable?: boolean;
26399
26406
  callsAvailable?: boolean;
26400
26407
  inStock?: boolean;
26408
+ /**
26409
+ * `request`: the carrier stocks this type nowhere and only sources it to order, so it is always a pre-order.
26410
+ */
26411
+ fulfilment?: 'instant' | 'request';
26412
+ /**
26413
+ * Out of stock but orderable anyway. Submit KYC as usual (POST /v1/phone-numbers/kyc) and the carrier sources the number after review, usually about 3 weeks and never guaranteed. Only document tiers (3/4) qualify, and nothing is billed until the number is active.
26414
+ */
26415
+ preOrderable?: boolean;
26401
26416
  }>;
26402
26417
  }>;
26403
26418
  });
@@ -26471,6 +26486,10 @@ type CheckPhoneNumberAvailabilityResponse = ({
26471
26486
  * Whether deliverable voice inventory exists right now.
26472
26487
  */
26473
26488
  available?: boolean;
26489
+ /**
26490
+ * Nothing deliverable now, but this pair can be pre-ordered: submit KYC as usual and the carrier sources the number after review (usually about 3 weeks, never guaranteed). Only document tiers (3/4) qualify.
26491
+ */
26492
+ preOrderable?: boolean;
26474
26493
  addressConstraint?: 'geo' | 'country' | 'none';
26475
26494
  /**
26476
26495
  * For `geo` only: the area(s) the registered address must be in.
@@ -26735,6 +26754,10 @@ type CheckWhatsAppNumberAvailabilityResponse = ({
26735
26754
  * Whether deliverable voice inventory exists right now.
26736
26755
  */
26737
26756
  available?: boolean;
26757
+ /**
26758
+ * Nothing deliverable now, but this pair can be pre-ordered: submit KYC as usual and the carrier sources the number after review (usually about 3 weeks, never guaranteed). Only document tiers (3/4) qualify.
26759
+ */
26760
+ preOrderable?: boolean;
26738
26761
  addressConstraint?: 'geo' | 'country' | 'none';
26739
26762
  /**
26740
26763
  * For `geo` only: the area(s) the registered address must be in.
@@ -26916,6 +26939,10 @@ type SubmitPhoneNumberKycData = {
26916
26939
  };
26917
26940
  type SubmitPhoneNumberKycResponse = ({
26918
26941
  status?: 'kyc_submitted' | 'kyc_reused' | 'kyc_already_submitted';
26942
+ /**
26943
+ * True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until the carrier sources it (usually about 3 weeks) and is not billed until active. A pre-order is one number: `quantity` above 1 is rejected with 400.
26944
+ */
26945
+ preOrder?: boolean;
26919
26946
  /**
26920
26947
  * The first/primary number, kept at the top level for backward compatibility. See `numbers` for the full set when `quantity` > 1.
26921
26948
  */
@@ -27676,6 +27703,10 @@ type SubmitWhatsAppNumberKycData = {
27676
27703
  };
27677
27704
  type SubmitWhatsAppNumberKycResponse = ({
27678
27705
  status?: 'kyc_submitted' | 'kyc_reused' | 'kyc_already_submitted';
27706
+ /**
27707
+ * True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until the carrier sources it (usually about 3 weeks) and is not billed until active. A pre-order is one number: `quantity` above 1 is rejected with 400.
27708
+ */
27709
+ preOrder?: boolean;
27679
27710
  /**
27680
27711
  * The first/primary number, kept at the top level for backward compatibility. See `numbers` for the full set when `quantity` > 1.
27681
27712
  */
package/dist/index.d.ts CHANGED
@@ -26379,13 +26379,20 @@ type ListPhoneNumberCountriesResponse = ({
26379
26379
  * Live carrier-stock snapshot (refreshed every 6h + on availability checks): false when NO offered type currently has deliverable inventory, so a purchase would fail. Treat as advisory; the purchase itself re-checks.
26380
26380
  */
26381
26381
  inStock?: boolean;
26382
+ /**
26383
+ * At least one out-of-stock type here can be pre-ordered (see `types[].preOrderable`).
26384
+ */
26385
+ preOrderable?: boolean;
26382
26386
  /**
26383
26387
  * Every number type offered in this country (default first). Capabilities, KYC tier, monthly price, and stock are per type. The country-level fields above mirror the first (default) entry. Pass the chosen `numberType` to POST /v1/phone-numbers/purchase.
26384
26388
  *
26385
26389
  */
26386
26390
  types?: Array<{
26387
26391
  numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
26388
- tier?: 1 | 2 | 3 | 4;
26392
+ /**
26393
+ * Null on a `fulfilment: request` type, whose document tier is only known once its requirements are read.
26394
+ */
26395
+ tier?: (1 | 2 | 3 | 4) | null;
26389
26396
  needsKyc?: boolean;
26390
26397
  /**
26391
26398
  * Price a NEW number of this type costs per month, in cents.
@@ -26398,6 +26405,14 @@ type ListPhoneNumberCountriesResponse = ({
26398
26405
  smsAvailable?: boolean;
26399
26406
  callsAvailable?: boolean;
26400
26407
  inStock?: boolean;
26408
+ /**
26409
+ * `request`: the carrier stocks this type nowhere and only sources it to order, so it is always a pre-order.
26410
+ */
26411
+ fulfilment?: 'instant' | 'request';
26412
+ /**
26413
+ * Out of stock but orderable anyway. Submit KYC as usual (POST /v1/phone-numbers/kyc) and the carrier sources the number after review, usually about 3 weeks and never guaranteed. Only document tiers (3/4) qualify, and nothing is billed until the number is active.
26414
+ */
26415
+ preOrderable?: boolean;
26401
26416
  }>;
26402
26417
  }>;
26403
26418
  });
@@ -26471,6 +26486,10 @@ type CheckPhoneNumberAvailabilityResponse = ({
26471
26486
  * Whether deliverable voice inventory exists right now.
26472
26487
  */
26473
26488
  available?: boolean;
26489
+ /**
26490
+ * Nothing deliverable now, but this pair can be pre-ordered: submit KYC as usual and the carrier sources the number after review (usually about 3 weeks, never guaranteed). Only document tiers (3/4) qualify.
26491
+ */
26492
+ preOrderable?: boolean;
26474
26493
  addressConstraint?: 'geo' | 'country' | 'none';
26475
26494
  /**
26476
26495
  * For `geo` only: the area(s) the registered address must be in.
@@ -26735,6 +26754,10 @@ type CheckWhatsAppNumberAvailabilityResponse = ({
26735
26754
  * Whether deliverable voice inventory exists right now.
26736
26755
  */
26737
26756
  available?: boolean;
26757
+ /**
26758
+ * Nothing deliverable now, but this pair can be pre-ordered: submit KYC as usual and the carrier sources the number after review (usually about 3 weeks, never guaranteed). Only document tiers (3/4) qualify.
26759
+ */
26760
+ preOrderable?: boolean;
26738
26761
  addressConstraint?: 'geo' | 'country' | 'none';
26739
26762
  /**
26740
26763
  * For `geo` only: the area(s) the registered address must be in.
@@ -26916,6 +26939,10 @@ type SubmitPhoneNumberKycData = {
26916
26939
  };
26917
26940
  type SubmitPhoneNumberKycResponse = ({
26918
26941
  status?: 'kyc_submitted' | 'kyc_reused' | 'kyc_already_submitted';
26942
+ /**
26943
+ * True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until the carrier sources it (usually about 3 weeks) and is not billed until active. A pre-order is one number: `quantity` above 1 is rejected with 400.
26944
+ */
26945
+ preOrder?: boolean;
26919
26946
  /**
26920
26947
  * The first/primary number, kept at the top level for backward compatibility. See `numbers` for the full set when `quantity` > 1.
26921
26948
  */
@@ -27676,6 +27703,10 @@ type SubmitWhatsAppNumberKycData = {
27676
27703
  };
27677
27704
  type SubmitWhatsAppNumberKycResponse = ({
27678
27705
  status?: 'kyc_submitted' | 'kyc_reused' | 'kyc_already_submitted';
27706
+ /**
27707
+ * True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until the carrier sources it (usually about 3 weeks) and is not billed until active. A pre-order is one number: `quantity` above 1 is rejected with 400.
27708
+ */
27709
+ preOrder?: boolean;
27679
27710
  /**
27680
27711
  * The first/primary number, kept at the top level for backward compatibility. See `numbers` for the full set when `quantity` > 1.
27681
27712
  */
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.735",
39
+ version: "0.2.736",
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.735",
8
+ version: "0.2.736",
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.735",
3
+ "version": "0.2.736",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -6483,9 +6483,9 @@ export const disableVoiceOnNumber = <ThrowOnError extends boolean = false>(optio
6483
6483
  * it if you miss the stock. Up to 20 watches at once.
6484
6484
  *
6485
6485
  * Countries and types marked `fulfilment: request` by
6486
- * GET /v1/phone-numbers/countries can also be watched. Those are sourced
6487
- * by a carrier request rather than held in stock, so a watch records
6488
- * interest and no date is implied.
6486
+ * GET /v1/phone-numbers/countries can also be watched, but anything with
6487
+ * `preOrderable: true` does not need a watch: submit KYC and the carrier
6488
+ * sources the number to order.
6489
6489
  *
6490
6490
  */
6491
6491
  export const createPhoneNumberStockWatch = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreatePhoneNumberStockWatchData, ThrowOnError>) => {
@@ -26256,13 +26256,20 @@ export type ListPhoneNumberCountriesResponse = ({
26256
26256
  * Live carrier-stock snapshot (refreshed every 6h + on availability checks): false when NO offered type currently has deliverable inventory, so a purchase would fail. Treat as advisory; the purchase itself re-checks.
26257
26257
  */
26258
26258
  inStock?: boolean;
26259
+ /**
26260
+ * At least one out-of-stock type here can be pre-ordered (see `types[].preOrderable`).
26261
+ */
26262
+ preOrderable?: boolean;
26259
26263
  /**
26260
26264
  * Every number type offered in this country (default first). Capabilities, KYC tier, monthly price, and stock are per type. The country-level fields above mirror the first (default) entry. Pass the chosen `numberType` to POST /v1/phone-numbers/purchase.
26261
26265
  *
26262
26266
  */
26263
26267
  types?: Array<{
26264
26268
  numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
26265
- tier?: 1 | 2 | 3 | 4;
26269
+ /**
26270
+ * Null on a `fulfilment: request` type, whose document tier is only known once its requirements are read.
26271
+ */
26272
+ tier?: (1 | 2 | 3 | 4) | null;
26266
26273
  needsKyc?: boolean;
26267
26274
  /**
26268
26275
  * Price a NEW number of this type costs per month, in cents.
@@ -26275,6 +26282,14 @@ export type ListPhoneNumberCountriesResponse = ({
26275
26282
  smsAvailable?: boolean;
26276
26283
  callsAvailable?: boolean;
26277
26284
  inStock?: boolean;
26285
+ /**
26286
+ * `request`: the carrier stocks this type nowhere and only sources it to order, so it is always a pre-order.
26287
+ */
26288
+ fulfilment?: 'instant' | 'request';
26289
+ /**
26290
+ * Out of stock but orderable anyway. Submit KYC as usual (POST /v1/phone-numbers/kyc) and the carrier sources the number after review, usually about 3 weeks and never guaranteed. Only document tiers (3/4) qualify, and nothing is billed until the number is active.
26291
+ */
26292
+ preOrderable?: boolean;
26278
26293
  }>;
26279
26294
  }>;
26280
26295
  });
@@ -26354,6 +26369,10 @@ export type CheckPhoneNumberAvailabilityResponse = ({
26354
26369
  * Whether deliverable voice inventory exists right now.
26355
26370
  */
26356
26371
  available?: boolean;
26372
+ /**
26373
+ * Nothing deliverable now, but this pair can be pre-ordered: submit KYC as usual and the carrier sources the number after review (usually about 3 weeks, never guaranteed). Only document tiers (3/4) qualify.
26374
+ */
26375
+ preOrderable?: boolean;
26357
26376
  addressConstraint?: 'geo' | 'country' | 'none';
26358
26377
  /**
26359
26378
  * For `geo` only: the area(s) the registered address must be in.
@@ -26632,6 +26651,10 @@ export type CheckWhatsAppNumberAvailabilityResponse = ({
26632
26651
  * Whether deliverable voice inventory exists right now.
26633
26652
  */
26634
26653
  available?: boolean;
26654
+ /**
26655
+ * Nothing deliverable now, but this pair can be pre-ordered: submit KYC as usual and the carrier sources the number after review (usually about 3 weeks, never guaranteed). Only document tiers (3/4) qualify.
26656
+ */
26657
+ preOrderable?: boolean;
26635
26658
  addressConstraint?: 'geo' | 'country' | 'none';
26636
26659
  /**
26637
26660
  * For `geo` only: the area(s) the registered address must be in.
@@ -26819,6 +26842,10 @@ export type SubmitPhoneNumberKycData = {
26819
26842
 
26820
26843
  export type SubmitPhoneNumberKycResponse = ({
26821
26844
  status?: 'kyc_submitted' | 'kyc_reused' | 'kyc_already_submitted';
26845
+ /**
26846
+ * True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until the carrier sources it (usually about 3 weeks) and is not billed until active. A pre-order is one number: `quantity` above 1 is rejected with 400.
26847
+ */
26848
+ preOrder?: boolean;
26822
26849
  /**
26823
26850
  * The first/primary number, kept at the top level for backward compatibility. See `numbers` for the full set when `quantity` > 1.
26824
26851
  */
@@ -27632,6 +27659,10 @@ export type SubmitWhatsAppNumberKycData = {
27632
27659
 
27633
27660
  export type SubmitWhatsAppNumberKycResponse = ({
27634
27661
  status?: 'kyc_submitted' | 'kyc_reused' | 'kyc_already_submitted';
27662
+ /**
27663
+ * True when nothing was in stock and this submission placed a pre-order. The number stays `pending_regulatory` until the carrier sources it (usually about 3 weeks) and is not billed until active. A pre-order is one number: `quantity` above 1 is rejected with 400.
27664
+ */
27665
+ preOrder?: boolean;
27635
27666
  /**
27636
27667
  * The first/primary number, kept at the top level for backward compatibility. See `numbers` for the full set when `quantity` > 1.
27637
27668
  */