@getlatedev/node 0.2.336 → 0.2.338

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
@@ -4683,6 +4683,32 @@ type UsageMetering = {
4683
4683
  */
4684
4684
  source?: 'cycle' | 'window';
4685
4685
  };
4686
+ /**
4687
+ * Estimated tax on the window's net `totals.total`, computed with
4688
+ * Stripe Tax against the billing address (the same engine the real
4689
+ * invoice uses; invoices apply exclusive tax, so the card is charged
4690
+ * total + tax). Null when the account has no billing address on
4691
+ * file, the total is zero or negative, or the estimate failed.
4692
+ *
4693
+ */
4694
+ tax?: {
4695
+ /**
4696
+ * Estimated tax in USD
4697
+ */
4698
+ taxUsd?: number;
4699
+ /**
4700
+ * Combined rate percentage
4701
+ */
4702
+ ratePercent?: (number) | null;
4703
+ /**
4704
+ * Human jurisdiction label
4705
+ */
4706
+ jurisdictionLabel?: (string) | null;
4707
+ /**
4708
+ * True for EU/UK B2B reverse charge (0 tax added by design).
4709
+ */
4710
+ reverseCharge?: boolean;
4711
+ } | null;
4686
4712
  };
4687
4713
  type granularity = 'day' | 'month' | 'total';
4688
4714
  /**
@@ -16386,7 +16412,7 @@ type ListWhatsAppCallsError = ({
16386
16412
  });
16387
16413
  type GetWhatsAppCallData = {
16388
16414
  path: {
16389
- callId: string;
16415
+ id: string;
16390
16416
  };
16391
16417
  query: {
16392
16418
  accountId: string;
@@ -16402,7 +16428,7 @@ type GetWhatsAppCallError = ({
16402
16428
  } | unknown);
16403
16429
  type GetWhatsAppCallRecordingData = {
16404
16430
  path: {
16405
- callId: string;
16431
+ id: string;
16406
16432
  };
16407
16433
  query: {
16408
16434
  accountId: string;
package/dist/index.d.ts CHANGED
@@ -4683,6 +4683,32 @@ type UsageMetering = {
4683
4683
  */
4684
4684
  source?: 'cycle' | 'window';
4685
4685
  };
4686
+ /**
4687
+ * Estimated tax on the window's net `totals.total`, computed with
4688
+ * Stripe Tax against the billing address (the same engine the real
4689
+ * invoice uses; invoices apply exclusive tax, so the card is charged
4690
+ * total + tax). Null when the account has no billing address on
4691
+ * file, the total is zero or negative, or the estimate failed.
4692
+ *
4693
+ */
4694
+ tax?: {
4695
+ /**
4696
+ * Estimated tax in USD
4697
+ */
4698
+ taxUsd?: number;
4699
+ /**
4700
+ * Combined rate percentage
4701
+ */
4702
+ ratePercent?: (number) | null;
4703
+ /**
4704
+ * Human jurisdiction label
4705
+ */
4706
+ jurisdictionLabel?: (string) | null;
4707
+ /**
4708
+ * True for EU/UK B2B reverse charge (0 tax added by design).
4709
+ */
4710
+ reverseCharge?: boolean;
4711
+ } | null;
4686
4712
  };
4687
4713
  type granularity = 'day' | 'month' | 'total';
4688
4714
  /**
@@ -16386,7 +16412,7 @@ type ListWhatsAppCallsError = ({
16386
16412
  });
16387
16413
  type GetWhatsAppCallData = {
16388
16414
  path: {
16389
- callId: string;
16415
+ id: string;
16390
16416
  };
16391
16417
  query: {
16392
16418
  accountId: string;
@@ -16402,7 +16428,7 @@ type GetWhatsAppCallError = ({
16402
16428
  } | unknown);
16403
16429
  type GetWhatsAppCallRecordingData = {
16404
16430
  path: {
16405
- callId: string;
16431
+ id: string;
16406
16432
  };
16407
16433
  query: {
16408
16434
  accountId: 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.336",
39
+ version: "0.2.338",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
@@ -1777,13 +1777,13 @@ var listWhatsAppCalls = (options) => {
1777
1777
  var getWhatsAppCall = (options) => {
1778
1778
  return (options?.client ?? client).get({
1779
1779
  ...options,
1780
- url: "/v1/whatsapp/calls/{callId}"
1780
+ url: "/v1/whatsapp/calls/{id}"
1781
1781
  });
1782
1782
  };
1783
1783
  var getWhatsAppCallRecording = (options) => {
1784
1784
  return (options?.client ?? client).get({
1785
1785
  ...options,
1786
- url: "/v1/whatsapp/calls/{callId}/recording"
1786
+ url: "/v1/whatsapp/calls/{id}/recording"
1787
1787
  });
1788
1788
  };
1789
1789
  var getWhatsAppCallEstimate = (options) => {
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.336",
8
+ version: "0.2.338",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
@@ -1746,13 +1746,13 @@ var listWhatsAppCalls = (options) => {
1746
1746
  var getWhatsAppCall = (options) => {
1747
1747
  return (options?.client ?? client).get({
1748
1748
  ...options,
1749
- url: "/v1/whatsapp/calls/{callId}"
1749
+ url: "/v1/whatsapp/calls/{id}"
1750
1750
  });
1751
1751
  };
1752
1752
  var getWhatsAppCallRecording = (options) => {
1753
1753
  return (options?.client ?? client).get({
1754
1754
  ...options,
1755
- url: "/v1/whatsapp/calls/{callId}/recording"
1755
+ url: "/v1/whatsapp/calls/{id}/recording"
1756
1756
  });
1757
1757
  };
1758
1758
  var getWhatsAppCallEstimate = (options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.336",
3
+ "version": "0.2.338",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -3567,7 +3567,7 @@ export const listWhatsAppCalls = <ThrowOnError extends boolean = false>(options:
3567
3567
  export const getWhatsAppCall = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetWhatsAppCallData, ThrowOnError>) => {
3568
3568
  return (options?.client ?? client).get<GetWhatsAppCallResponse, GetWhatsAppCallError, ThrowOnError>({
3569
3569
  ...options,
3570
- url: '/v1/whatsapp/calls/{callId}'
3570
+ url: '/v1/whatsapp/calls/{id}'
3571
3571
  });
3572
3572
  };
3573
3573
 
@@ -3584,7 +3584,7 @@ export const getWhatsAppCall = <ThrowOnError extends boolean = false>(options: O
3584
3584
  export const getWhatsAppCallRecording = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetWhatsAppCallRecordingData, ThrowOnError>) => {
3585
3585
  return (options?.client ?? client).get<GetWhatsAppCallRecordingResponse, GetWhatsAppCallRecordingError, ThrowOnError>({
3586
3586
  ...options,
3587
- url: '/v1/whatsapp/calls/{callId}/recording'
3587
+ url: '/v1/whatsapp/calls/{id}/recording'
3588
3588
  });
3589
3589
  };
3590
3590
 
@@ -4282,11 +4282,14 @@ export const releasePhoneNumber = <ThrowOnError extends boolean = false>(options
4282
4282
 
4283
4283
  /**
4284
4284
  * Purchase phone number
4285
- * Initiate purchasing a phone number. Payment-first flow: the user does not pick
4286
- * a specific number. The system either creates a Stripe Checkout Session (first number)
4287
- * or increments the existing subscription quantity and provisions inline (subsequent numbers).
4285
+ * Payment-first: you do not pick a specific number, the system provisions one and
4286
+ * auto-assigns it. With usage-based billing active and a payment method on file, the
4287
+ * number provisions inline and bills per month on your usage-based invoice (there is
4288
+ * no checkout redirect). No payment method on file returns `402 PAYMENT_REQUIRED`;
4289
+ * a regulated country returns `202` with `status: "kyc_required"` and a `kycUrl`.
4288
4290
  *
4289
- * Requires a paid plan. The maximum number of phone numbers is determined by the user's plan.
4291
+ * Requires usage-based billing (the Usage plan). The maximum number of phone numbers
4292
+ * is determined by the user's plan.
4290
4293
  *
4291
4294
  */
4292
4295
  export const purchasePhoneNumber = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PurchasePhoneNumberData, ThrowOnError>) => {
@@ -4373,11 +4376,14 @@ export const getWhatsAppPhoneNumbers = <ThrowOnError extends boolean = false>(op
4373
4376
  * Deprecated alias of `/v1/phone-numbers/purchase`; same contract. New
4374
4377
  * integrations should use that path.
4375
4378
  *
4376
- * Initiate purchasing a WhatsApp phone number. Payment-first flow: the user does not pick
4377
- * a specific number. The system either creates a Stripe Checkout Session (first number)
4378
- * or increments the existing subscription quantity and provisions inline (subsequent numbers).
4379
+ * Payment-first: you do not pick a specific number, the system provisions one and
4380
+ * auto-assigns it. With usage-based billing active and a payment method on file, the
4381
+ * number provisions inline and bills per month on your usage-based invoice (there is
4382
+ * no checkout redirect). No payment method on file returns `402 PAYMENT_REQUIRED`;
4383
+ * a regulated country returns `202` with `status: "kyc_required"` and a `kycUrl`.
4379
4384
  *
4380
- * Requires a paid plan. The maximum number of phone numbers is determined by the user's plan.
4385
+ * Requires usage-based billing (the Usage plan). The maximum number of phone numbers
4386
+ * is determined by the user's plan.
4381
4387
  *
4382
4388
  */
4383
4389
  export const purchaseWhatsAppPhoneNumber = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<PurchaseWhatsAppPhoneNumberData, ThrowOnError>) => {
@@ -3980,6 +3980,32 @@ export type UsageMetering = {
3980
3980
  */
3981
3981
  source?: 'cycle' | 'window';
3982
3982
  };
3983
+ /**
3984
+ * Estimated tax on the window's net `totals.total`, computed with
3985
+ * Stripe Tax against the billing address (the same engine the real
3986
+ * invoice uses; invoices apply exclusive tax, so the card is charged
3987
+ * total + tax). Null when the account has no billing address on
3988
+ * file, the total is zero or negative, or the estimate failed.
3989
+ *
3990
+ */
3991
+ tax?: {
3992
+ /**
3993
+ * Estimated tax in USD
3994
+ */
3995
+ taxUsd?: number;
3996
+ /**
3997
+ * Combined rate percentage
3998
+ */
3999
+ ratePercent?: (number) | null;
4000
+ /**
4001
+ * Human jurisdiction label
4002
+ */
4003
+ jurisdictionLabel?: (string) | null;
4004
+ /**
4005
+ * True for EU/UK B2B reverse charge (0 tax added by design).
4006
+ */
4007
+ reverseCharge?: boolean;
4008
+ } | null;
3983
4009
  };
3984
4010
 
3985
4011
  export type granularity = 'day' | 'month' | 'total';
@@ -16474,7 +16500,7 @@ export type ListWhatsAppCallsError = ({
16474
16500
 
16475
16501
  export type GetWhatsAppCallData = {
16476
16502
  path: {
16477
- callId: string;
16503
+ id: string;
16478
16504
  };
16479
16505
  query: {
16480
16506
  accountId: string;
@@ -16493,7 +16519,7 @@ export type GetWhatsAppCallError = ({
16493
16519
 
16494
16520
  export type GetWhatsAppCallRecordingData = {
16495
16521
  path: {
16496
- callId: string;
16522
+ id: string;
16497
16523
  };
16498
16524
  query: {
16499
16525
  accountId: string;