@getlatedev/node 0.2.336 → 0.2.337
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +16 -10
- package/src/generated/types.gen.ts +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -16386,7 +16386,7 @@ type ListWhatsAppCallsError = ({
|
|
|
16386
16386
|
});
|
|
16387
16387
|
type GetWhatsAppCallData = {
|
|
16388
16388
|
path: {
|
|
16389
|
-
|
|
16389
|
+
id: string;
|
|
16390
16390
|
};
|
|
16391
16391
|
query: {
|
|
16392
16392
|
accountId: string;
|
|
@@ -16402,7 +16402,7 @@ type GetWhatsAppCallError = ({
|
|
|
16402
16402
|
} | unknown);
|
|
16403
16403
|
type GetWhatsAppCallRecordingData = {
|
|
16404
16404
|
path: {
|
|
16405
|
-
|
|
16405
|
+
id: string;
|
|
16406
16406
|
};
|
|
16407
16407
|
query: {
|
|
16408
16408
|
accountId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -16386,7 +16386,7 @@ type ListWhatsAppCallsError = ({
|
|
|
16386
16386
|
});
|
|
16387
16387
|
type GetWhatsAppCallData = {
|
|
16388
16388
|
path: {
|
|
16389
|
-
|
|
16389
|
+
id: string;
|
|
16390
16390
|
};
|
|
16391
16391
|
query: {
|
|
16392
16392
|
accountId: string;
|
|
@@ -16402,7 +16402,7 @@ type GetWhatsAppCallError = ({
|
|
|
16402
16402
|
} | unknown);
|
|
16403
16403
|
type GetWhatsAppCallRecordingData = {
|
|
16404
16404
|
path: {
|
|
16405
|
-
|
|
16405
|
+
id: string;
|
|
16406
16406
|
};
|
|
16407
16407
|
query: {
|
|
16408
16408
|
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.
|
|
39
|
+
version: "0.2.337",
|
|
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/{
|
|
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/{
|
|
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.
|
|
8
|
+
version: "0.2.337",
|
|
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/{
|
|
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/{
|
|
1755
|
+
url: "/v1/whatsapp/calls/{id}/recording"
|
|
1756
1756
|
});
|
|
1757
1757
|
};
|
|
1758
1758
|
var getWhatsAppCallEstimate = (options) => {
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -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/{
|
|
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/{
|
|
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
|
-
*
|
|
4286
|
-
*
|
|
4287
|
-
*
|
|
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
|
|
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
|
-
*
|
|
4377
|
-
*
|
|
4378
|
-
*
|
|
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
|
|
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>) => {
|
|
@@ -16474,7 +16474,7 @@ export type ListWhatsAppCallsError = ({
|
|
|
16474
16474
|
|
|
16475
16475
|
export type GetWhatsAppCallData = {
|
|
16476
16476
|
path: {
|
|
16477
|
-
|
|
16477
|
+
id: string;
|
|
16478
16478
|
};
|
|
16479
16479
|
query: {
|
|
16480
16480
|
accountId: string;
|
|
@@ -16493,7 +16493,7 @@ export type GetWhatsAppCallError = ({
|
|
|
16493
16493
|
|
|
16494
16494
|
export type GetWhatsAppCallRecordingData = {
|
|
16495
16495
|
path: {
|
|
16496
|
-
|
|
16496
|
+
id: string;
|
|
16497
16497
|
};
|
|
16498
16498
|
query: {
|
|
16499
16499
|
accountId: string;
|