@getlatedev/node 0.2.243 → 0.2.244

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
@@ -14847,6 +14847,16 @@ type PurchaseWhatsAppPhoneNumberData = {
14847
14847
  *
14848
14848
  */
14849
14849
  country?: string;
14850
+ /**
14851
+ * Optional idempotency key. Send the same value when retrying a purchase: if a number was already bought under this key, the API returns { status: "already_purchased", numberId, phoneNumber } instead of provisioning a second number. Generate a fresh key for each genuinely new purchase.
14852
+ *
14853
+ */
14854
+ purchaseIntentId?: string;
14855
+ /**
14856
+ * Any second purchase within 10 minutes of a previous one is rejected with 409 code PURCHASE_VELOCITY as duplicate protection. Pass true to confirm the additional purchase is intentional (e.g. bulk provisioning).
14857
+ *
14858
+ */
14859
+ allowMultiple?: boolean;
14850
14860
  };
14851
14861
  };
14852
14862
  type PurchaseWhatsAppPhoneNumberResponse = (({
@@ -14863,6 +14873,10 @@ type PurchaseWhatsAppPhoneNumberResponse = (({
14863
14873
  metaPreverifiedId?: string;
14864
14874
  metaVerificationStatus?: string;
14865
14875
  };
14876
+ } | {
14877
+ status?: 'already_purchased';
14878
+ numberId?: string;
14879
+ phoneNumber?: string;
14866
14880
  }) | {
14867
14881
  status?: 'kyc_required';
14868
14882
  country?: string;
@@ -14870,6 +14884,9 @@ type PurchaseWhatsAppPhoneNumberResponse = (({
14870
14884
  });
14871
14885
  type PurchaseWhatsAppPhoneNumberError = (unknown | {
14872
14886
  error?: string;
14887
+ } | {
14888
+ error?: string;
14889
+ code?: 'PURCHASE_VELOCITY';
14873
14890
  });
14874
14891
  type ListWhatsAppNumberCountriesResponse = ({
14875
14892
  countries?: Array<{
package/dist/index.d.ts CHANGED
@@ -14847,6 +14847,16 @@ type PurchaseWhatsAppPhoneNumberData = {
14847
14847
  *
14848
14848
  */
14849
14849
  country?: string;
14850
+ /**
14851
+ * Optional idempotency key. Send the same value when retrying a purchase: if a number was already bought under this key, the API returns { status: "already_purchased", numberId, phoneNumber } instead of provisioning a second number. Generate a fresh key for each genuinely new purchase.
14852
+ *
14853
+ */
14854
+ purchaseIntentId?: string;
14855
+ /**
14856
+ * Any second purchase within 10 minutes of a previous one is rejected with 409 code PURCHASE_VELOCITY as duplicate protection. Pass true to confirm the additional purchase is intentional (e.g. bulk provisioning).
14857
+ *
14858
+ */
14859
+ allowMultiple?: boolean;
14850
14860
  };
14851
14861
  };
14852
14862
  type PurchaseWhatsAppPhoneNumberResponse = (({
@@ -14863,6 +14873,10 @@ type PurchaseWhatsAppPhoneNumberResponse = (({
14863
14873
  metaPreverifiedId?: string;
14864
14874
  metaVerificationStatus?: string;
14865
14875
  };
14876
+ } | {
14877
+ status?: 'already_purchased';
14878
+ numberId?: string;
14879
+ phoneNumber?: string;
14866
14880
  }) | {
14867
14881
  status?: 'kyc_required';
14868
14882
  country?: string;
@@ -14870,6 +14884,9 @@ type PurchaseWhatsAppPhoneNumberResponse = (({
14870
14884
  });
14871
14885
  type PurchaseWhatsAppPhoneNumberError = (unknown | {
14872
14886
  error?: string;
14887
+ } | {
14888
+ error?: string;
14889
+ code?: 'PURCHASE_VELOCITY';
14873
14890
  });
14874
14891
  type ListWhatsAppNumberCountriesResponse = ({
14875
14892
  countries?: Array<{
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: "@getlatedev/node",
39
- version: "0.2.243",
39
+ version: "0.2.244",
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: "@getlatedev/node",
8
- version: "0.2.243",
8
+ version: "0.2.244",
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": "@getlatedev/node",
3
- "version": "0.2.243",
3
+ "version": "0.2.244",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -15005,6 +15005,16 @@ export type PurchaseWhatsAppPhoneNumberData = {
15005
15005
  *
15006
15006
  */
15007
15007
  country?: string;
15008
+ /**
15009
+ * Optional idempotency key. Send the same value when retrying a purchase: if a number was already bought under this key, the API returns { status: "already_purchased", numberId, phoneNumber } instead of provisioning a second number. Generate a fresh key for each genuinely new purchase.
15010
+ *
15011
+ */
15012
+ purchaseIntentId?: string;
15013
+ /**
15014
+ * Any second purchase within 10 minutes of a previous one is rejected with 409 code PURCHASE_VELOCITY as duplicate protection. Pass true to confirm the additional purchase is intentional (e.g. bulk provisioning).
15015
+ *
15016
+ */
15017
+ allowMultiple?: boolean;
15008
15018
  };
15009
15019
  };
15010
15020
 
@@ -15022,6 +15032,10 @@ export type PurchaseWhatsAppPhoneNumberResponse = (({
15022
15032
  metaPreverifiedId?: string;
15023
15033
  metaVerificationStatus?: string;
15024
15034
  };
15035
+ } | {
15036
+ status?: 'already_purchased';
15037
+ numberId?: string;
15038
+ phoneNumber?: string;
15025
15039
  }) | {
15026
15040
  status?: 'kyc_required';
15027
15041
  country?: string;
@@ -15030,6 +15044,9 @@ export type PurchaseWhatsAppPhoneNumberResponse = (({
15030
15044
 
15031
15045
  export type PurchaseWhatsAppPhoneNumberError = (unknown | {
15032
15046
  error?: string;
15047
+ } | {
15048
+ error?: string;
15049
+ code?: 'PURCHASE_VELOCITY';
15033
15050
  });
15034
15051
 
15035
15052
  export type ListWhatsAppNumberCountriesResponse = ({