@zernio/node 0.2.696 → 0.2.698
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 +14 -5
- package/dist/index.d.ts +14 -5
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +8 -0
- package/src/generated/types.gen.ts +14 -5
package/dist/index.d.mts
CHANGED
|
@@ -19500,7 +19500,7 @@ type SearchInboxConversationsError = (unknown | {
|
|
|
19500
19500
|
type GetInboxConversationData = {
|
|
19501
19501
|
path: {
|
|
19502
19502
|
/**
|
|
19503
|
-
*
|
|
19503
|
+
* Opaque conversation identifier, accepted verbatim from the list endpoint or from the conversationId on inbox webhooks. Format not to be assumed.
|
|
19504
19504
|
*/
|
|
19505
19505
|
conversationId: string;
|
|
19506
19506
|
};
|
|
@@ -19644,7 +19644,7 @@ type UpdateInboxConversationData = {
|
|
|
19644
19644
|
};
|
|
19645
19645
|
path: {
|
|
19646
19646
|
/**
|
|
19647
|
-
*
|
|
19647
|
+
* Opaque conversation identifier, accepted verbatim from the list endpoint or from the conversationId on inbox webhooks. Format not to be assumed.
|
|
19648
19648
|
*/
|
|
19649
19649
|
conversationId: string;
|
|
19650
19650
|
};
|
|
@@ -19665,7 +19665,7 @@ type UpdateInboxConversationError = ({
|
|
|
19665
19665
|
type GetInboxConversationMessagesData = {
|
|
19666
19666
|
path: {
|
|
19667
19667
|
/**
|
|
19668
|
-
*
|
|
19668
|
+
* Opaque conversation identifier, accepted verbatim from the list endpoint or from the conversationId on inbox webhooks. Format not to be assumed.
|
|
19669
19669
|
*/
|
|
19670
19670
|
conversationId: string;
|
|
19671
19671
|
};
|
|
@@ -24255,7 +24255,7 @@ type ListPhoneNumbersResponse = ({
|
|
|
24255
24255
|
*/
|
|
24256
24256
|
telnyxOrderId?: (string) | null;
|
|
24257
24257
|
/**
|
|
24258
|
-
*
|
|
24258
|
+
* What this number bills each month, in cents. Stamped when the number was bought, so an existing number keeps its price when the rate card changes.
|
|
24259
24259
|
*/
|
|
24260
24260
|
monthlyCents?: number;
|
|
24261
24261
|
/**
|
|
@@ -24483,6 +24483,9 @@ type ListPhoneNumberCountriesResponse = ({
|
|
|
24483
24483
|
*/
|
|
24484
24484
|
code?: string;
|
|
24485
24485
|
tier?: 1 | 2 | 3 | 4;
|
|
24486
|
+
/**
|
|
24487
|
+
* Price a NEW number in this country costs per month, in cents, for the default (first) type. 1.5x the carrier's monthly cost, rounded up to a whole dollar, minimum $3.
|
|
24488
|
+
*/
|
|
24486
24489
|
monthlyCents?: number;
|
|
24487
24490
|
needsKyc?: boolean;
|
|
24488
24491
|
/**
|
|
@@ -24513,6 +24516,9 @@ type ListPhoneNumberCountriesResponse = ({
|
|
|
24513
24516
|
numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
|
|
24514
24517
|
tier?: 1 | 2 | 3 | 4;
|
|
24515
24518
|
needsKyc?: boolean;
|
|
24519
|
+
/**
|
|
24520
|
+
* Price a NEW number of this type costs per month, in cents.
|
|
24521
|
+
*/
|
|
24516
24522
|
monthlyCents?: number;
|
|
24517
24523
|
/**
|
|
24518
24524
|
* Always false for toll_free (WhatsApp does not reliably register toll-free numbers).
|
|
@@ -24657,7 +24663,7 @@ type GetWhatsAppPhoneNumbersResponse = ({
|
|
|
24657
24663
|
*/
|
|
24658
24664
|
telnyxOrderId?: (string) | null;
|
|
24659
24665
|
/**
|
|
24660
|
-
*
|
|
24666
|
+
* What this number bills each month, in cents. Stamped when the number was bought, so an existing number keeps its price when the rate card changes.
|
|
24661
24667
|
*/
|
|
24662
24668
|
monthlyCents?: number;
|
|
24663
24669
|
/**
|
|
@@ -24792,6 +24798,9 @@ type ListWhatsAppNumberCountriesResponse = ({
|
|
|
24792
24798
|
*/
|
|
24793
24799
|
code?: string;
|
|
24794
24800
|
tier?: 1 | 2 | 3 | 4;
|
|
24801
|
+
/**
|
|
24802
|
+
* Price a NEW number in this country costs per month, in cents, for the default (first) type. 1.5x the carrier's monthly cost, rounded up to a whole dollar, minimum $3.
|
|
24803
|
+
*/
|
|
24795
24804
|
monthlyCents?: number;
|
|
24796
24805
|
needsKyc?: boolean;
|
|
24797
24806
|
outboundCallingAvailable?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -19500,7 +19500,7 @@ type SearchInboxConversationsError = (unknown | {
|
|
|
19500
19500
|
type GetInboxConversationData = {
|
|
19501
19501
|
path: {
|
|
19502
19502
|
/**
|
|
19503
|
-
*
|
|
19503
|
+
* Opaque conversation identifier, accepted verbatim from the list endpoint or from the conversationId on inbox webhooks. Format not to be assumed.
|
|
19504
19504
|
*/
|
|
19505
19505
|
conversationId: string;
|
|
19506
19506
|
};
|
|
@@ -19644,7 +19644,7 @@ type UpdateInboxConversationData = {
|
|
|
19644
19644
|
};
|
|
19645
19645
|
path: {
|
|
19646
19646
|
/**
|
|
19647
|
-
*
|
|
19647
|
+
* Opaque conversation identifier, accepted verbatim from the list endpoint or from the conversationId on inbox webhooks. Format not to be assumed.
|
|
19648
19648
|
*/
|
|
19649
19649
|
conversationId: string;
|
|
19650
19650
|
};
|
|
@@ -19665,7 +19665,7 @@ type UpdateInboxConversationError = ({
|
|
|
19665
19665
|
type GetInboxConversationMessagesData = {
|
|
19666
19666
|
path: {
|
|
19667
19667
|
/**
|
|
19668
|
-
*
|
|
19668
|
+
* Opaque conversation identifier, accepted verbatim from the list endpoint or from the conversationId on inbox webhooks. Format not to be assumed.
|
|
19669
19669
|
*/
|
|
19670
19670
|
conversationId: string;
|
|
19671
19671
|
};
|
|
@@ -24255,7 +24255,7 @@ type ListPhoneNumbersResponse = ({
|
|
|
24255
24255
|
*/
|
|
24256
24256
|
telnyxOrderId?: (string) | null;
|
|
24257
24257
|
/**
|
|
24258
|
-
*
|
|
24258
|
+
* What this number bills each month, in cents. Stamped when the number was bought, so an existing number keeps its price when the rate card changes.
|
|
24259
24259
|
*/
|
|
24260
24260
|
monthlyCents?: number;
|
|
24261
24261
|
/**
|
|
@@ -24483,6 +24483,9 @@ type ListPhoneNumberCountriesResponse = ({
|
|
|
24483
24483
|
*/
|
|
24484
24484
|
code?: string;
|
|
24485
24485
|
tier?: 1 | 2 | 3 | 4;
|
|
24486
|
+
/**
|
|
24487
|
+
* Price a NEW number in this country costs per month, in cents, for the default (first) type. 1.5x the carrier's monthly cost, rounded up to a whole dollar, minimum $3.
|
|
24488
|
+
*/
|
|
24486
24489
|
monthlyCents?: number;
|
|
24487
24490
|
needsKyc?: boolean;
|
|
24488
24491
|
/**
|
|
@@ -24513,6 +24516,9 @@ type ListPhoneNumberCountriesResponse = ({
|
|
|
24513
24516
|
numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
|
|
24514
24517
|
tier?: 1 | 2 | 3 | 4;
|
|
24515
24518
|
needsKyc?: boolean;
|
|
24519
|
+
/**
|
|
24520
|
+
* Price a NEW number of this type costs per month, in cents.
|
|
24521
|
+
*/
|
|
24516
24522
|
monthlyCents?: number;
|
|
24517
24523
|
/**
|
|
24518
24524
|
* Always false for toll_free (WhatsApp does not reliably register toll-free numbers).
|
|
@@ -24657,7 +24663,7 @@ type GetWhatsAppPhoneNumbersResponse = ({
|
|
|
24657
24663
|
*/
|
|
24658
24664
|
telnyxOrderId?: (string) | null;
|
|
24659
24665
|
/**
|
|
24660
|
-
*
|
|
24666
|
+
* What this number bills each month, in cents. Stamped when the number was bought, so an existing number keeps its price when the rate card changes.
|
|
24661
24667
|
*/
|
|
24662
24668
|
monthlyCents?: number;
|
|
24663
24669
|
/**
|
|
@@ -24792,6 +24798,9 @@ type ListWhatsAppNumberCountriesResponse = ({
|
|
|
24792
24798
|
*/
|
|
24793
24799
|
code?: string;
|
|
24794
24800
|
tier?: 1 | 2 | 3 | 4;
|
|
24801
|
+
/**
|
|
24802
|
+
* Price a NEW number in this country costs per month, in cents, for the default (first) type. 1.5x the carrier's monthly cost, rounded up to a whole dollar, minimum $3.
|
|
24803
|
+
*/
|
|
24795
24804
|
monthlyCents?: number;
|
|
24796
24805
|
needsKyc?: boolean;
|
|
24797
24806
|
outboundCallingAvailable?: boolean;
|
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.698",
|
|
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.698",
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -5587,6 +5587,10 @@ export const releasePhoneNumber = <ThrowOnError extends boolean = false>(options
|
|
|
5587
5587
|
* no checkout redirect). No payment method on file returns `402 PAYMENT_REQUIRED`;
|
|
5588
5588
|
* a regulated country returns `202` with `status: "kyc_required"` and a `kycUrl`.
|
|
5589
5589
|
*
|
|
5590
|
+
* The monthly price is the one `GET /v1/phone-numbers/countries` quotes for that
|
|
5591
|
+
* country and `numberType` at the time of purchase, and it is stamped on the number:
|
|
5592
|
+
* later rate-card changes never move a number you already own.
|
|
5593
|
+
*
|
|
5590
5594
|
* Requires usage-based billing (the Usage plan). The maximum number of phone numbers
|
|
5591
5595
|
* is determined by the user's plan.
|
|
5592
5596
|
*
|
|
@@ -5681,6 +5685,10 @@ export const getWhatsAppPhoneNumbers = <ThrowOnError extends boolean = false>(op
|
|
|
5681
5685
|
* no checkout redirect). No payment method on file returns `402 PAYMENT_REQUIRED`;
|
|
5682
5686
|
* a regulated country returns `202` with `status: "kyc_required"` and a `kycUrl`.
|
|
5683
5687
|
*
|
|
5688
|
+
* The monthly price is the one `GET /v1/phone-numbers/countries` quotes for that
|
|
5689
|
+
* country and `numberType` at the time of purchase, and it is stamped on the number:
|
|
5690
|
+
* later rate-card changes never move a number you already own.
|
|
5691
|
+
*
|
|
5684
5692
|
* Requires usage-based billing (the Usage plan). The maximum number of phone numbers
|
|
5685
5693
|
* is determined by the user's plan.
|
|
5686
5694
|
*
|
|
@@ -19148,7 +19148,7 @@ export type SearchInboxConversationsError = (unknown | {
|
|
|
19148
19148
|
export type GetInboxConversationData = {
|
|
19149
19149
|
path: {
|
|
19150
19150
|
/**
|
|
19151
|
-
*
|
|
19151
|
+
* Opaque conversation identifier, accepted verbatim from the list endpoint or from the conversationId on inbox webhooks. Format not to be assumed.
|
|
19152
19152
|
*/
|
|
19153
19153
|
conversationId: string;
|
|
19154
19154
|
};
|
|
@@ -19295,7 +19295,7 @@ export type UpdateInboxConversationData = {
|
|
|
19295
19295
|
};
|
|
19296
19296
|
path: {
|
|
19297
19297
|
/**
|
|
19298
|
-
*
|
|
19298
|
+
* Opaque conversation identifier, accepted verbatim from the list endpoint or from the conversationId on inbox webhooks. Format not to be assumed.
|
|
19299
19299
|
*/
|
|
19300
19300
|
conversationId: string;
|
|
19301
19301
|
};
|
|
@@ -19319,7 +19319,7 @@ export type UpdateInboxConversationError = ({
|
|
|
19319
19319
|
export type GetInboxConversationMessagesData = {
|
|
19320
19320
|
path: {
|
|
19321
19321
|
/**
|
|
19322
|
-
*
|
|
19322
|
+
* Opaque conversation identifier, accepted verbatim from the list endpoint or from the conversationId on inbox webhooks. Format not to be assumed.
|
|
19323
19323
|
*/
|
|
19324
19324
|
conversationId: string;
|
|
19325
19325
|
};
|
|
@@ -24247,7 +24247,7 @@ export type ListPhoneNumbersResponse = ({
|
|
|
24247
24247
|
*/
|
|
24248
24248
|
telnyxOrderId?: (string) | null;
|
|
24249
24249
|
/**
|
|
24250
|
-
*
|
|
24250
|
+
* What this number bills each month, in cents. Stamped when the number was bought, so an existing number keeps its price when the rate card changes.
|
|
24251
24251
|
*/
|
|
24252
24252
|
monthlyCents?: number;
|
|
24253
24253
|
/**
|
|
@@ -24486,6 +24486,9 @@ export type ListPhoneNumberCountriesResponse = ({
|
|
|
24486
24486
|
*/
|
|
24487
24487
|
code?: string;
|
|
24488
24488
|
tier?: 1 | 2 | 3 | 4;
|
|
24489
|
+
/**
|
|
24490
|
+
* Price a NEW number in this country costs per month, in cents, for the default (first) type. 1.5x the carrier's monthly cost, rounded up to a whole dollar, minimum $3.
|
|
24491
|
+
*/
|
|
24489
24492
|
monthlyCents?: number;
|
|
24490
24493
|
needsKyc?: boolean;
|
|
24491
24494
|
/**
|
|
@@ -24516,6 +24519,9 @@ export type ListPhoneNumberCountriesResponse = ({
|
|
|
24516
24519
|
numberType?: 'local' | 'mobile' | 'national' | 'toll_free';
|
|
24517
24520
|
tier?: 1 | 2 | 3 | 4;
|
|
24518
24521
|
needsKyc?: boolean;
|
|
24522
|
+
/**
|
|
24523
|
+
* Price a NEW number of this type costs per month, in cents.
|
|
24524
|
+
*/
|
|
24519
24525
|
monthlyCents?: number;
|
|
24520
24526
|
/**
|
|
24521
24527
|
* Always false for toll_free (WhatsApp does not reliably register toll-free numbers).
|
|
@@ -24669,7 +24675,7 @@ export type GetWhatsAppPhoneNumbersResponse = ({
|
|
|
24669
24675
|
*/
|
|
24670
24676
|
telnyxOrderId?: (string) | null;
|
|
24671
24677
|
/**
|
|
24672
|
-
*
|
|
24678
|
+
* What this number bills each month, in cents. Stamped when the number was bought, so an existing number keeps its price when the rate card changes.
|
|
24673
24679
|
*/
|
|
24674
24680
|
monthlyCents?: number;
|
|
24675
24681
|
/**
|
|
@@ -24809,6 +24815,9 @@ export type ListWhatsAppNumberCountriesResponse = ({
|
|
|
24809
24815
|
*/
|
|
24810
24816
|
code?: string;
|
|
24811
24817
|
tier?: 1 | 2 | 3 | 4;
|
|
24818
|
+
/**
|
|
24819
|
+
* Price a NEW number in this country costs per month, in cents, for the default (first) type. 1.5x the carrier's monthly cost, rounded up to a whole dollar, minimum $3.
|
|
24820
|
+
*/
|
|
24812
24821
|
monthlyCents?: number;
|
|
24813
24822
|
needsKyc?: boolean;
|
|
24814
24823
|
outboundCallingAvailable?: boolean;
|