@getlatedev/node 0.2.454 → 0.2.455

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
@@ -19623,7 +19623,8 @@ type ReleasePhoneNumberError = (unknown | {
19623
19623
  type PurchasePhoneNumberData = {
19624
19624
  body: {
19625
19625
  /**
19626
- * Profile to associate the number with
19626
+ * Preferred profile for the number. One number = one profile, so when the requested profile already holds a number the API assigns the next free profile instead (or creates one) and returns the actual assignment in `profileId` on the response.
19627
+ *
19627
19628
  */
19628
19629
  profileId: string;
19629
19630
  /**
@@ -19657,7 +19658,7 @@ type PurchasePhoneNumberData = {
19657
19658
  */
19658
19659
  wantsWhatsapp?: boolean;
19659
19660
  /**
19660
- * 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.
19661
+ * 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, profileId } instead of provisioning a second number. Generate a fresh key for each genuinely new purchase.
19661
19662
  *
19662
19663
  */
19663
19664
  purchaseIntentId?: string;
@@ -19681,11 +19682,19 @@ type PurchasePhoneNumberResponse = (({
19681
19682
  provisionedAt?: string;
19682
19683
  metaPreverifiedId?: string;
19683
19684
  metaVerificationStatus?: string;
19685
+ /**
19686
+ * The profile the number was actually assigned to.
19687
+ */
19688
+ profileId?: string;
19684
19689
  };
19685
19690
  } | {
19686
19691
  status?: 'already_purchased';
19687
19692
  numberId?: string;
19688
19693
  phoneNumber?: string;
19694
+ /**
19695
+ * The profile the number was actually assigned to.
19696
+ */
19697
+ profileId?: string;
19689
19698
  }) | {
19690
19699
  status?: 'kyc_required';
19691
19700
  country?: string;
package/dist/index.d.ts CHANGED
@@ -19623,7 +19623,8 @@ type ReleasePhoneNumberError = (unknown | {
19623
19623
  type PurchasePhoneNumberData = {
19624
19624
  body: {
19625
19625
  /**
19626
- * Profile to associate the number with
19626
+ * Preferred profile for the number. One number = one profile, so when the requested profile already holds a number the API assigns the next free profile instead (or creates one) and returns the actual assignment in `profileId` on the response.
19627
+ *
19627
19628
  */
19628
19629
  profileId: string;
19629
19630
  /**
@@ -19657,7 +19658,7 @@ type PurchasePhoneNumberData = {
19657
19658
  */
19658
19659
  wantsWhatsapp?: boolean;
19659
19660
  /**
19660
- * 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.
19661
+ * 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, profileId } instead of provisioning a second number. Generate a fresh key for each genuinely new purchase.
19661
19662
  *
19662
19663
  */
19663
19664
  purchaseIntentId?: string;
@@ -19681,11 +19682,19 @@ type PurchasePhoneNumberResponse = (({
19681
19682
  provisionedAt?: string;
19682
19683
  metaPreverifiedId?: string;
19683
19684
  metaVerificationStatus?: string;
19685
+ /**
19686
+ * The profile the number was actually assigned to.
19687
+ */
19688
+ profileId?: string;
19684
19689
  };
19685
19690
  } | {
19686
19691
  status?: 'already_purchased';
19687
19692
  numberId?: string;
19688
19693
  phoneNumber?: string;
19694
+ /**
19695
+ * The profile the number was actually assigned to.
19696
+ */
19697
+ profileId?: string;
19689
19698
  }) | {
19690
19699
  status?: 'kyc_required';
19691
19700
  country?: string;
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.454",
39
+ version: "0.2.455",
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.454",
8
+ version: "0.2.455",
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.454",
3
+ "version": "0.2.455",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -19613,7 +19613,8 @@ export type ReleasePhoneNumberError = (unknown | {
19613
19613
  export type PurchasePhoneNumberData = {
19614
19614
  body: {
19615
19615
  /**
19616
- * Profile to associate the number with
19616
+ * Preferred profile for the number. One number = one profile, so when the requested profile already holds a number the API assigns the next free profile instead (or creates one) and returns the actual assignment in `profileId` on the response.
19617
+ *
19617
19618
  */
19618
19619
  profileId: string;
19619
19620
  /**
@@ -19647,7 +19648,7 @@ export type PurchasePhoneNumberData = {
19647
19648
  */
19648
19649
  wantsWhatsapp?: boolean;
19649
19650
  /**
19650
- * 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.
19651
+ * 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, profileId } instead of provisioning a second number. Generate a fresh key for each genuinely new purchase.
19651
19652
  *
19652
19653
  */
19653
19654
  purchaseIntentId?: string;
@@ -19672,11 +19673,19 @@ export type PurchasePhoneNumberResponse = (({
19672
19673
  provisionedAt?: string;
19673
19674
  metaPreverifiedId?: string;
19674
19675
  metaVerificationStatus?: string;
19676
+ /**
19677
+ * The profile the number was actually assigned to.
19678
+ */
19679
+ profileId?: string;
19675
19680
  };
19676
19681
  } | {
19677
19682
  status?: 'already_purchased';
19678
19683
  numberId?: string;
19679
19684
  phoneNumber?: string;
19685
+ /**
19686
+ * The profile the number was actually assigned to.
19687
+ */
19688
+ profileId?: string;
19680
19689
  }) | {
19681
19690
  status?: 'kyc_required';
19682
19691
  country?: string;