@zernio/node 0.2.424 → 0.2.426
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 +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -18514,7 +18514,7 @@ type StartSmsRegistrationResponse = ({
|
|
|
18514
18514
|
*/
|
|
18515
18515
|
awaitingOtp?: boolean;
|
|
18516
18516
|
});
|
|
18517
|
-
type StartSmsRegistrationError = ({
|
|
18517
|
+
type StartSmsRegistrationError = (ErrorResponse | {
|
|
18518
18518
|
error?: string;
|
|
18519
18519
|
} | unknown);
|
|
18520
18520
|
type ListSmsRegistrationsData = {
|
|
@@ -18571,7 +18571,7 @@ type ListSmsRegistrationsResponse = ({
|
|
|
18571
18571
|
};
|
|
18572
18572
|
}>;
|
|
18573
18573
|
});
|
|
18574
|
-
type ListSmsRegistrationsError = ({
|
|
18574
|
+
type ListSmsRegistrationsError = (ErrorResponse | {
|
|
18575
18575
|
error?: string;
|
|
18576
18576
|
});
|
|
18577
18577
|
type DeactivateSmsRegistrationData = {
|
|
@@ -18582,7 +18582,7 @@ type DeactivateSmsRegistrationData = {
|
|
|
18582
18582
|
type DeactivateSmsRegistrationResponse = ({
|
|
18583
18583
|
status?: 'deactivated';
|
|
18584
18584
|
});
|
|
18585
|
-
type DeactivateSmsRegistrationError = ({
|
|
18585
|
+
type DeactivateSmsRegistrationError = (ErrorResponse | {
|
|
18586
18586
|
error?: string;
|
|
18587
18587
|
} | unknown);
|
|
18588
18588
|
type GetSmsRegistrationData = {
|
|
@@ -18614,7 +18614,7 @@ type GetSmsRegistrationResponse = ({
|
|
|
18614
18614
|
sample2?: string;
|
|
18615
18615
|
};
|
|
18616
18616
|
});
|
|
18617
|
-
type GetSmsRegistrationError = ({
|
|
18617
|
+
type GetSmsRegistrationError = (ErrorResponse | {
|
|
18618
18618
|
error?: string;
|
|
18619
18619
|
} | unknown);
|
|
18620
18620
|
type VerifySmsRegistrationOtpData = {
|
|
@@ -18628,7 +18628,7 @@ type VerifySmsRegistrationOtpData = {
|
|
|
18628
18628
|
type VerifySmsRegistrationOtpResponse = ({
|
|
18629
18629
|
verified?: boolean;
|
|
18630
18630
|
});
|
|
18631
|
-
type VerifySmsRegistrationOtpError = ({
|
|
18631
|
+
type VerifySmsRegistrationOtpError = (ErrorResponse | {
|
|
18632
18632
|
error?: string;
|
|
18633
18633
|
} | unknown);
|
|
18634
18634
|
type ResendSmsRegistrationOtpData = {
|
|
@@ -18714,7 +18714,7 @@ type ShareSmsRegistrationResponse = ({
|
|
|
18714
18714
|
url?: string;
|
|
18715
18715
|
expiresAt?: string;
|
|
18716
18716
|
});
|
|
18717
|
-
type ShareSmsRegistrationError = ({
|
|
18717
|
+
type ShareSmsRegistrationError = (ErrorResponse | {
|
|
18718
18718
|
error?: string;
|
|
18719
18719
|
} | unknown);
|
|
18720
18720
|
type GetWhatsAppLibraryTemplateData = {
|
|
@@ -19550,7 +19550,7 @@ type CheckPhoneNumberAvailabilityResponse = ({
|
|
|
19550
19550
|
*/
|
|
19551
19551
|
areas?: Array<(string)>;
|
|
19552
19552
|
/**
|
|
19553
|
-
* Live inventory grouped by area code
|
|
19553
|
+
* Live inventory grouped by area code. For US and CA this is the full country inventory (every area code with stock, recognizable metros listed first, then alphabetical); other countries are ordered largest stock first; they list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
|
|
19554
19554
|
*
|
|
19555
19555
|
*/
|
|
19556
19556
|
areaOptions?: Array<{
|
|
@@ -19559,7 +19559,7 @@ type CheckPhoneNumberAvailabilityResponse = ({
|
|
|
19559
19559
|
*/
|
|
19560
19560
|
ndc?: string;
|
|
19561
19561
|
/**
|
|
19562
|
-
* Area name:
|
|
19562
|
+
* Area name: "City, ST" for US/CA (e.g. "Miami, FL"), city otherwise (e.g. "Sao Paulo").
|
|
19563
19563
|
*/
|
|
19564
19564
|
name?: string;
|
|
19565
19565
|
/**
|
|
@@ -19799,7 +19799,7 @@ type CheckWhatsAppNumberAvailabilityResponse = ({
|
|
|
19799
19799
|
*/
|
|
19800
19800
|
areas?: Array<(string)>;
|
|
19801
19801
|
/**
|
|
19802
|
-
* Live inventory grouped by area code
|
|
19802
|
+
* Live inventory grouped by area code. For US and CA this is the full country inventory (every area code with stock, recognizable metros listed first, then alphabetical); other countries are ordered largest stock first; they list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
|
|
19803
19803
|
*
|
|
19804
19804
|
*/
|
|
19805
19805
|
areaOptions?: Array<{
|
|
@@ -19808,7 +19808,7 @@ type CheckWhatsAppNumberAvailabilityResponse = ({
|
|
|
19808
19808
|
*/
|
|
19809
19809
|
ndc?: string;
|
|
19810
19810
|
/**
|
|
19811
|
-
* Area name:
|
|
19811
|
+
* Area name: "City, ST" for US/CA (e.g. "Miami, FL"), city otherwise (e.g. "Sao Paulo").
|
|
19812
19812
|
*/
|
|
19813
19813
|
name?: string;
|
|
19814
19814
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -18514,7 +18514,7 @@ type StartSmsRegistrationResponse = ({
|
|
|
18514
18514
|
*/
|
|
18515
18515
|
awaitingOtp?: boolean;
|
|
18516
18516
|
});
|
|
18517
|
-
type StartSmsRegistrationError = ({
|
|
18517
|
+
type StartSmsRegistrationError = (ErrorResponse | {
|
|
18518
18518
|
error?: string;
|
|
18519
18519
|
} | unknown);
|
|
18520
18520
|
type ListSmsRegistrationsData = {
|
|
@@ -18571,7 +18571,7 @@ type ListSmsRegistrationsResponse = ({
|
|
|
18571
18571
|
};
|
|
18572
18572
|
}>;
|
|
18573
18573
|
});
|
|
18574
|
-
type ListSmsRegistrationsError = ({
|
|
18574
|
+
type ListSmsRegistrationsError = (ErrorResponse | {
|
|
18575
18575
|
error?: string;
|
|
18576
18576
|
});
|
|
18577
18577
|
type DeactivateSmsRegistrationData = {
|
|
@@ -18582,7 +18582,7 @@ type DeactivateSmsRegistrationData = {
|
|
|
18582
18582
|
type DeactivateSmsRegistrationResponse = ({
|
|
18583
18583
|
status?: 'deactivated';
|
|
18584
18584
|
});
|
|
18585
|
-
type DeactivateSmsRegistrationError = ({
|
|
18585
|
+
type DeactivateSmsRegistrationError = (ErrorResponse | {
|
|
18586
18586
|
error?: string;
|
|
18587
18587
|
} | unknown);
|
|
18588
18588
|
type GetSmsRegistrationData = {
|
|
@@ -18614,7 +18614,7 @@ type GetSmsRegistrationResponse = ({
|
|
|
18614
18614
|
sample2?: string;
|
|
18615
18615
|
};
|
|
18616
18616
|
});
|
|
18617
|
-
type GetSmsRegistrationError = ({
|
|
18617
|
+
type GetSmsRegistrationError = (ErrorResponse | {
|
|
18618
18618
|
error?: string;
|
|
18619
18619
|
} | unknown);
|
|
18620
18620
|
type VerifySmsRegistrationOtpData = {
|
|
@@ -18628,7 +18628,7 @@ type VerifySmsRegistrationOtpData = {
|
|
|
18628
18628
|
type VerifySmsRegistrationOtpResponse = ({
|
|
18629
18629
|
verified?: boolean;
|
|
18630
18630
|
});
|
|
18631
|
-
type VerifySmsRegistrationOtpError = ({
|
|
18631
|
+
type VerifySmsRegistrationOtpError = (ErrorResponse | {
|
|
18632
18632
|
error?: string;
|
|
18633
18633
|
} | unknown);
|
|
18634
18634
|
type ResendSmsRegistrationOtpData = {
|
|
@@ -18714,7 +18714,7 @@ type ShareSmsRegistrationResponse = ({
|
|
|
18714
18714
|
url?: string;
|
|
18715
18715
|
expiresAt?: string;
|
|
18716
18716
|
});
|
|
18717
|
-
type ShareSmsRegistrationError = ({
|
|
18717
|
+
type ShareSmsRegistrationError = (ErrorResponse | {
|
|
18718
18718
|
error?: string;
|
|
18719
18719
|
} | unknown);
|
|
18720
18720
|
type GetWhatsAppLibraryTemplateData = {
|
|
@@ -19550,7 +19550,7 @@ type CheckPhoneNumberAvailabilityResponse = ({
|
|
|
19550
19550
|
*/
|
|
19551
19551
|
areas?: Array<(string)>;
|
|
19552
19552
|
/**
|
|
19553
|
-
* Live inventory grouped by area code
|
|
19553
|
+
* Live inventory grouped by area code. For US and CA this is the full country inventory (every area code with stock, recognizable metros listed first, then alphabetical); other countries are ordered largest stock first; they list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
|
|
19554
19554
|
*
|
|
19555
19555
|
*/
|
|
19556
19556
|
areaOptions?: Array<{
|
|
@@ -19559,7 +19559,7 @@ type CheckPhoneNumberAvailabilityResponse = ({
|
|
|
19559
19559
|
*/
|
|
19560
19560
|
ndc?: string;
|
|
19561
19561
|
/**
|
|
19562
|
-
* Area name:
|
|
19562
|
+
* Area name: "City, ST" for US/CA (e.g. "Miami, FL"), city otherwise (e.g. "Sao Paulo").
|
|
19563
19563
|
*/
|
|
19564
19564
|
name?: string;
|
|
19565
19565
|
/**
|
|
@@ -19799,7 +19799,7 @@ type CheckWhatsAppNumberAvailabilityResponse = ({
|
|
|
19799
19799
|
*/
|
|
19800
19800
|
areas?: Array<(string)>;
|
|
19801
19801
|
/**
|
|
19802
|
-
* Live inventory grouped by area code
|
|
19802
|
+
* Live inventory grouped by area code. For US and CA this is the full country inventory (every area code with stock, recognizable metros listed first, then alphabetical); other countries are ordered largest stock first; they list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
|
|
19803
19803
|
*
|
|
19804
19804
|
*/
|
|
19805
19805
|
areaOptions?: Array<{
|
|
@@ -19808,7 +19808,7 @@ type CheckWhatsAppNumberAvailabilityResponse = ({
|
|
|
19808
19808
|
*/
|
|
19809
19809
|
ndc?: string;
|
|
19810
19810
|
/**
|
|
19811
|
-
* Area name:
|
|
19811
|
+
* Area name: "City, ST" for US/CA (e.g. "Miami, FL"), city otherwise (e.g. "Sao Paulo").
|
|
19812
19812
|
*/
|
|
19813
19813
|
name?: string;
|
|
19814
19814
|
/**
|
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.
|
|
39
|
+
version: "0.2.426",
|
|
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.
|
|
8
|
+
version: "0.2.426",
|
|
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
|
@@ -18410,7 +18410,7 @@ export type StartSmsRegistrationResponse = ({
|
|
|
18410
18410
|
awaitingOtp?: boolean;
|
|
18411
18411
|
});
|
|
18412
18412
|
|
|
18413
|
-
export type StartSmsRegistrationError = ({
|
|
18413
|
+
export type StartSmsRegistrationError = (ErrorResponse | {
|
|
18414
18414
|
error?: string;
|
|
18415
18415
|
} | unknown);
|
|
18416
18416
|
|
|
@@ -18470,7 +18470,7 @@ export type ListSmsRegistrationsResponse = ({
|
|
|
18470
18470
|
}>;
|
|
18471
18471
|
});
|
|
18472
18472
|
|
|
18473
|
-
export type ListSmsRegistrationsError = ({
|
|
18473
|
+
export type ListSmsRegistrationsError = (ErrorResponse | {
|
|
18474
18474
|
error?: string;
|
|
18475
18475
|
});
|
|
18476
18476
|
|
|
@@ -18484,7 +18484,7 @@ export type DeactivateSmsRegistrationResponse = ({
|
|
|
18484
18484
|
status?: 'deactivated';
|
|
18485
18485
|
});
|
|
18486
18486
|
|
|
18487
|
-
export type DeactivateSmsRegistrationError = ({
|
|
18487
|
+
export type DeactivateSmsRegistrationError = (ErrorResponse | {
|
|
18488
18488
|
error?: string;
|
|
18489
18489
|
} | unknown);
|
|
18490
18490
|
|
|
@@ -18519,7 +18519,7 @@ export type GetSmsRegistrationResponse = ({
|
|
|
18519
18519
|
};
|
|
18520
18520
|
});
|
|
18521
18521
|
|
|
18522
|
-
export type GetSmsRegistrationError = ({
|
|
18522
|
+
export type GetSmsRegistrationError = (ErrorResponse | {
|
|
18523
18523
|
error?: string;
|
|
18524
18524
|
} | unknown);
|
|
18525
18525
|
|
|
@@ -18536,7 +18536,7 @@ export type VerifySmsRegistrationOtpResponse = ({
|
|
|
18536
18536
|
verified?: boolean;
|
|
18537
18537
|
});
|
|
18538
18538
|
|
|
18539
|
-
export type VerifySmsRegistrationOtpError = ({
|
|
18539
|
+
export type VerifySmsRegistrationOtpError = (ErrorResponse | {
|
|
18540
18540
|
error?: string;
|
|
18541
18541
|
} | unknown);
|
|
18542
18542
|
|
|
@@ -18637,7 +18637,7 @@ export type ShareSmsRegistrationResponse = ({
|
|
|
18637
18637
|
expiresAt?: string;
|
|
18638
18638
|
});
|
|
18639
18639
|
|
|
18640
|
-
export type ShareSmsRegistrationError = ({
|
|
18640
|
+
export type ShareSmsRegistrationError = (ErrorResponse | {
|
|
18641
18641
|
error?: string;
|
|
18642
18642
|
} | unknown);
|
|
18643
18643
|
|
|
@@ -19543,7 +19543,7 @@ export type CheckPhoneNumberAvailabilityResponse = ({
|
|
|
19543
19543
|
*/
|
|
19544
19544
|
areas?: Array<(string)>;
|
|
19545
19545
|
/**
|
|
19546
|
-
* Live inventory grouped by area code
|
|
19546
|
+
* Live inventory grouped by area code. For US and CA this is the full country inventory (every area code with stock, recognizable metros listed first, then alphabetical); other countries are ordered largest stock first; they list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
|
|
19547
19547
|
*
|
|
19548
19548
|
*/
|
|
19549
19549
|
areaOptions?: Array<{
|
|
@@ -19552,7 +19552,7 @@ export type CheckPhoneNumberAvailabilityResponse = ({
|
|
|
19552
19552
|
*/
|
|
19553
19553
|
ndc?: string;
|
|
19554
19554
|
/**
|
|
19555
|
-
* Area name:
|
|
19555
|
+
* Area name: "City, ST" for US/CA (e.g. "Miami, FL"), city otherwise (e.g. "Sao Paulo").
|
|
19556
19556
|
*/
|
|
19557
19557
|
name?: string;
|
|
19558
19558
|
/**
|
|
@@ -19806,7 +19806,7 @@ export type CheckWhatsAppNumberAvailabilityResponse = ({
|
|
|
19806
19806
|
*/
|
|
19807
19807
|
areas?: Array<(string)>;
|
|
19808
19808
|
/**
|
|
19809
|
-
* Live inventory grouped by area code
|
|
19809
|
+
* Live inventory grouped by area code. For US and CA this is the full country inventory (every area code with stock, recognizable metros listed first, then alphabetical); other countries are ordered largest stock first; they list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
|
|
19810
19810
|
*
|
|
19811
19811
|
*/
|
|
19812
19812
|
areaOptions?: Array<{
|
|
@@ -19815,7 +19815,7 @@ export type CheckWhatsAppNumberAvailabilityResponse = ({
|
|
|
19815
19815
|
*/
|
|
19816
19816
|
ndc?: string;
|
|
19817
19817
|
/**
|
|
19818
|
-
* Area name:
|
|
19818
|
+
* Area name: "City, ST" for US/CA (e.g. "Miami, FL"), city otherwise (e.g. "Sao Paulo").
|
|
19819
19819
|
*/
|
|
19820
19820
|
name?: string;
|
|
19821
19821
|
/**
|