@zernio/node 0.2.190 → 0.2.192
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 +50 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +50 -0
package/dist/index.d.mts
CHANGED
|
@@ -4257,9 +4257,19 @@ type WebhookPayloadCallEnded = {
|
|
|
4257
4257
|
recordingUrl?: string;
|
|
4258
4258
|
recordingExpiresAt?: string;
|
|
4259
4259
|
billing?: {
|
|
4260
|
+
/**
|
|
4261
|
+
* Meta per-minute charge. Billed by Meta DIRECTLY to your WhatsApp Business Account payment method (your separate Meta invoice). Zernio does NOT charge this. Display only.
|
|
4262
|
+
*/
|
|
4260
4263
|
metaCostUSD?: number;
|
|
4261
4264
|
telnyxCostUSD?: number;
|
|
4262
4265
|
recordingCostUSD?: number;
|
|
4266
|
+
/**
|
|
4267
|
+
* The amount Zernio bills you = Telnyx leg + recording. Excludes Meta (billed by Meta directly).
|
|
4268
|
+
*/
|
|
4269
|
+
billableCostUSD?: number;
|
|
4270
|
+
/**
|
|
4271
|
+
* Full economic cost incl. the Meta portion you pay directly (Meta + Telnyx + recording). Display only, not the Zernio-billed amount.
|
|
4272
|
+
*/
|
|
4263
4273
|
totalCostUSD?: number;
|
|
4264
4274
|
};
|
|
4265
4275
|
};
|
|
@@ -12996,9 +13006,19 @@ type ListWhatsAppCallsResponse = ({
|
|
|
12996
13006
|
endReason?: 'hangup' | 'no_answer' | 'rejected' | 'error';
|
|
12997
13007
|
recordingUrl?: string;
|
|
12998
13008
|
billing?: {
|
|
13009
|
+
/**
|
|
13010
|
+
* Meta per-minute charge, billed by Meta directly to your WABA. Display only; not billed by Zernio.
|
|
13011
|
+
*/
|
|
12999
13012
|
metaCostUSD?: number;
|
|
13000
13013
|
telnyxCostUSD?: number;
|
|
13001
13014
|
recordingCostUSD?: number;
|
|
13015
|
+
/**
|
|
13016
|
+
* Amount Zernio bills you = Telnyx leg + recording (excludes Meta).
|
|
13017
|
+
*/
|
|
13018
|
+
billableCostUSD?: number;
|
|
13019
|
+
/**
|
|
13020
|
+
* Full cost incl. the Meta portion you pay directly. Display only.
|
|
13021
|
+
*/
|
|
13002
13022
|
totalCostUSD?: number;
|
|
13003
13023
|
currency?: string;
|
|
13004
13024
|
};
|
|
@@ -13036,9 +13056,19 @@ type GetWhatsAppCallEstimateResponse = ({
|
|
|
13036
13056
|
perMinuteUsd?: number;
|
|
13037
13057
|
breakdown?: {
|
|
13038
13058
|
metaMinutes?: number;
|
|
13059
|
+
/**
|
|
13060
|
+
* Estimated Meta per-minute charge, billed by Meta directly to your WABA. Display only; not billed by Zernio.
|
|
13061
|
+
*/
|
|
13039
13062
|
metaCostUSD?: number;
|
|
13040
13063
|
telnyxCostUSD?: number;
|
|
13041
13064
|
recordingCostUSD?: number;
|
|
13065
|
+
/**
|
|
13066
|
+
* Estimated amount Zernio bills you = Telnyx leg + recording (excludes Meta).
|
|
13067
|
+
*/
|
|
13068
|
+
billableCostUSD?: number;
|
|
13069
|
+
/**
|
|
13070
|
+
* Estimated full cost incl. the Meta portion you pay directly. Display only.
|
|
13071
|
+
*/
|
|
13042
13072
|
totalCostUSD?: number;
|
|
13043
13073
|
};
|
|
13044
13074
|
});
|
|
@@ -14340,6 +14370,22 @@ type GetContactResponse = ({
|
|
|
14340
14370
|
tags?: Array<(string)>;
|
|
14341
14371
|
isSubscribed?: boolean;
|
|
14342
14372
|
isBlocked?: boolean;
|
|
14373
|
+
/**
|
|
14374
|
+
* Messages sent to the contact, derived live from message history across all linked conversations.
|
|
14375
|
+
*/
|
|
14376
|
+
messagesSentCount?: number;
|
|
14377
|
+
/**
|
|
14378
|
+
* Messages received from the contact, derived live from message history across all linked conversations.
|
|
14379
|
+
*/
|
|
14380
|
+
messagesReceivedCount?: number;
|
|
14381
|
+
/**
|
|
14382
|
+
* Timestamp of the most recent outgoing message, or null if none.
|
|
14383
|
+
*/
|
|
14384
|
+
lastMessageSentAt?: (string) | null;
|
|
14385
|
+
/**
|
|
14386
|
+
* Timestamp of the most recent incoming message, or null if none.
|
|
14387
|
+
*/
|
|
14388
|
+
lastMessageReceivedAt?: (string) | null;
|
|
14343
14389
|
customFields?: {
|
|
14344
14390
|
[key: string]: unknown;
|
|
14345
14391
|
};
|
|
@@ -14356,6 +14402,10 @@ type GetContactResponse = ({
|
|
|
14356
14402
|
displayIdentifier?: string;
|
|
14357
14403
|
isSubscribed?: boolean;
|
|
14358
14404
|
conversationId?: string;
|
|
14405
|
+
/**
|
|
14406
|
+
* Most recent message (either direction) in this channel's conversation, or null if none.
|
|
14407
|
+
*/
|
|
14408
|
+
lastActiveAt?: (string) | null;
|
|
14359
14409
|
createdAt?: string;
|
|
14360
14410
|
}>;
|
|
14361
14411
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -4257,9 +4257,19 @@ type WebhookPayloadCallEnded = {
|
|
|
4257
4257
|
recordingUrl?: string;
|
|
4258
4258
|
recordingExpiresAt?: string;
|
|
4259
4259
|
billing?: {
|
|
4260
|
+
/**
|
|
4261
|
+
* Meta per-minute charge. Billed by Meta DIRECTLY to your WhatsApp Business Account payment method (your separate Meta invoice). Zernio does NOT charge this. Display only.
|
|
4262
|
+
*/
|
|
4260
4263
|
metaCostUSD?: number;
|
|
4261
4264
|
telnyxCostUSD?: number;
|
|
4262
4265
|
recordingCostUSD?: number;
|
|
4266
|
+
/**
|
|
4267
|
+
* The amount Zernio bills you = Telnyx leg + recording. Excludes Meta (billed by Meta directly).
|
|
4268
|
+
*/
|
|
4269
|
+
billableCostUSD?: number;
|
|
4270
|
+
/**
|
|
4271
|
+
* Full economic cost incl. the Meta portion you pay directly (Meta + Telnyx + recording). Display only, not the Zernio-billed amount.
|
|
4272
|
+
*/
|
|
4263
4273
|
totalCostUSD?: number;
|
|
4264
4274
|
};
|
|
4265
4275
|
};
|
|
@@ -12996,9 +13006,19 @@ type ListWhatsAppCallsResponse = ({
|
|
|
12996
13006
|
endReason?: 'hangup' | 'no_answer' | 'rejected' | 'error';
|
|
12997
13007
|
recordingUrl?: string;
|
|
12998
13008
|
billing?: {
|
|
13009
|
+
/**
|
|
13010
|
+
* Meta per-minute charge, billed by Meta directly to your WABA. Display only; not billed by Zernio.
|
|
13011
|
+
*/
|
|
12999
13012
|
metaCostUSD?: number;
|
|
13000
13013
|
telnyxCostUSD?: number;
|
|
13001
13014
|
recordingCostUSD?: number;
|
|
13015
|
+
/**
|
|
13016
|
+
* Amount Zernio bills you = Telnyx leg + recording (excludes Meta).
|
|
13017
|
+
*/
|
|
13018
|
+
billableCostUSD?: number;
|
|
13019
|
+
/**
|
|
13020
|
+
* Full cost incl. the Meta portion you pay directly. Display only.
|
|
13021
|
+
*/
|
|
13002
13022
|
totalCostUSD?: number;
|
|
13003
13023
|
currency?: string;
|
|
13004
13024
|
};
|
|
@@ -13036,9 +13056,19 @@ type GetWhatsAppCallEstimateResponse = ({
|
|
|
13036
13056
|
perMinuteUsd?: number;
|
|
13037
13057
|
breakdown?: {
|
|
13038
13058
|
metaMinutes?: number;
|
|
13059
|
+
/**
|
|
13060
|
+
* Estimated Meta per-minute charge, billed by Meta directly to your WABA. Display only; not billed by Zernio.
|
|
13061
|
+
*/
|
|
13039
13062
|
metaCostUSD?: number;
|
|
13040
13063
|
telnyxCostUSD?: number;
|
|
13041
13064
|
recordingCostUSD?: number;
|
|
13065
|
+
/**
|
|
13066
|
+
* Estimated amount Zernio bills you = Telnyx leg + recording (excludes Meta).
|
|
13067
|
+
*/
|
|
13068
|
+
billableCostUSD?: number;
|
|
13069
|
+
/**
|
|
13070
|
+
* Estimated full cost incl. the Meta portion you pay directly. Display only.
|
|
13071
|
+
*/
|
|
13042
13072
|
totalCostUSD?: number;
|
|
13043
13073
|
};
|
|
13044
13074
|
});
|
|
@@ -14340,6 +14370,22 @@ type GetContactResponse = ({
|
|
|
14340
14370
|
tags?: Array<(string)>;
|
|
14341
14371
|
isSubscribed?: boolean;
|
|
14342
14372
|
isBlocked?: boolean;
|
|
14373
|
+
/**
|
|
14374
|
+
* Messages sent to the contact, derived live from message history across all linked conversations.
|
|
14375
|
+
*/
|
|
14376
|
+
messagesSentCount?: number;
|
|
14377
|
+
/**
|
|
14378
|
+
* Messages received from the contact, derived live from message history across all linked conversations.
|
|
14379
|
+
*/
|
|
14380
|
+
messagesReceivedCount?: number;
|
|
14381
|
+
/**
|
|
14382
|
+
* Timestamp of the most recent outgoing message, or null if none.
|
|
14383
|
+
*/
|
|
14384
|
+
lastMessageSentAt?: (string) | null;
|
|
14385
|
+
/**
|
|
14386
|
+
* Timestamp of the most recent incoming message, or null if none.
|
|
14387
|
+
*/
|
|
14388
|
+
lastMessageReceivedAt?: (string) | null;
|
|
14343
14389
|
customFields?: {
|
|
14344
14390
|
[key: string]: unknown;
|
|
14345
14391
|
};
|
|
@@ -14356,6 +14402,10 @@ type GetContactResponse = ({
|
|
|
14356
14402
|
displayIdentifier?: string;
|
|
14357
14403
|
isSubscribed?: boolean;
|
|
14358
14404
|
conversationId?: string;
|
|
14405
|
+
/**
|
|
14406
|
+
* Most recent message (either direction) in this channel's conversation, or null if none.
|
|
14407
|
+
*/
|
|
14408
|
+
lastActiveAt?: (string) | null;
|
|
14359
14409
|
createdAt?: string;
|
|
14360
14410
|
}>;
|
|
14361
14411
|
});
|
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.192",
|
|
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.192",
|
|
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
|
@@ -3710,9 +3710,19 @@ export type WebhookPayloadCallEnded = {
|
|
|
3710
3710
|
recordingUrl?: string;
|
|
3711
3711
|
recordingExpiresAt?: string;
|
|
3712
3712
|
billing?: {
|
|
3713
|
+
/**
|
|
3714
|
+
* Meta per-minute charge. Billed by Meta DIRECTLY to your WhatsApp Business Account payment method (your separate Meta invoice). Zernio does NOT charge this. Display only.
|
|
3715
|
+
*/
|
|
3713
3716
|
metaCostUSD?: number;
|
|
3714
3717
|
telnyxCostUSD?: number;
|
|
3715
3718
|
recordingCostUSD?: number;
|
|
3719
|
+
/**
|
|
3720
|
+
* The amount Zernio bills you = Telnyx leg + recording. Excludes Meta (billed by Meta directly).
|
|
3721
|
+
*/
|
|
3722
|
+
billableCostUSD?: number;
|
|
3723
|
+
/**
|
|
3724
|
+
* Full economic cost incl. the Meta portion you pay directly (Meta + Telnyx + recording). Display only, not the Zernio-billed amount.
|
|
3725
|
+
*/
|
|
3716
3726
|
totalCostUSD?: number;
|
|
3717
3727
|
};
|
|
3718
3728
|
};
|
|
@@ -13080,9 +13090,19 @@ export type ListWhatsAppCallsResponse = ({
|
|
|
13080
13090
|
endReason?: 'hangup' | 'no_answer' | 'rejected' | 'error';
|
|
13081
13091
|
recordingUrl?: string;
|
|
13082
13092
|
billing?: {
|
|
13093
|
+
/**
|
|
13094
|
+
* Meta per-minute charge, billed by Meta directly to your WABA. Display only; not billed by Zernio.
|
|
13095
|
+
*/
|
|
13083
13096
|
metaCostUSD?: number;
|
|
13084
13097
|
telnyxCostUSD?: number;
|
|
13085
13098
|
recordingCostUSD?: number;
|
|
13099
|
+
/**
|
|
13100
|
+
* Amount Zernio bills you = Telnyx leg + recording (excludes Meta).
|
|
13101
|
+
*/
|
|
13102
|
+
billableCostUSD?: number;
|
|
13103
|
+
/**
|
|
13104
|
+
* Full cost incl. the Meta portion you pay directly. Display only.
|
|
13105
|
+
*/
|
|
13086
13106
|
totalCostUSD?: number;
|
|
13087
13107
|
currency?: string;
|
|
13088
13108
|
};
|
|
@@ -13126,9 +13146,19 @@ export type GetWhatsAppCallEstimateResponse = ({
|
|
|
13126
13146
|
perMinuteUsd?: number;
|
|
13127
13147
|
breakdown?: {
|
|
13128
13148
|
metaMinutes?: number;
|
|
13149
|
+
/**
|
|
13150
|
+
* Estimated Meta per-minute charge, billed by Meta directly to your WABA. Display only; not billed by Zernio.
|
|
13151
|
+
*/
|
|
13129
13152
|
metaCostUSD?: number;
|
|
13130
13153
|
telnyxCostUSD?: number;
|
|
13131
13154
|
recordingCostUSD?: number;
|
|
13155
|
+
/**
|
|
13156
|
+
* Estimated amount Zernio bills you = Telnyx leg + recording (excludes Meta).
|
|
13157
|
+
*/
|
|
13158
|
+
billableCostUSD?: number;
|
|
13159
|
+
/**
|
|
13160
|
+
* Estimated full cost incl. the Meta portion you pay directly. Display only.
|
|
13161
|
+
*/
|
|
13132
13162
|
totalCostUSD?: number;
|
|
13133
13163
|
};
|
|
13134
13164
|
});
|
|
@@ -14558,6 +14588,22 @@ export type GetContactResponse = ({
|
|
|
14558
14588
|
tags?: Array<(string)>;
|
|
14559
14589
|
isSubscribed?: boolean;
|
|
14560
14590
|
isBlocked?: boolean;
|
|
14591
|
+
/**
|
|
14592
|
+
* Messages sent to the contact, derived live from message history across all linked conversations.
|
|
14593
|
+
*/
|
|
14594
|
+
messagesSentCount?: number;
|
|
14595
|
+
/**
|
|
14596
|
+
* Messages received from the contact, derived live from message history across all linked conversations.
|
|
14597
|
+
*/
|
|
14598
|
+
messagesReceivedCount?: number;
|
|
14599
|
+
/**
|
|
14600
|
+
* Timestamp of the most recent outgoing message, or null if none.
|
|
14601
|
+
*/
|
|
14602
|
+
lastMessageSentAt?: (string) | null;
|
|
14603
|
+
/**
|
|
14604
|
+
* Timestamp of the most recent incoming message, or null if none.
|
|
14605
|
+
*/
|
|
14606
|
+
lastMessageReceivedAt?: (string) | null;
|
|
14561
14607
|
customFields?: {
|
|
14562
14608
|
[key: string]: unknown;
|
|
14563
14609
|
};
|
|
@@ -14574,6 +14620,10 @@ export type GetContactResponse = ({
|
|
|
14574
14620
|
displayIdentifier?: string;
|
|
14575
14621
|
isSubscribed?: boolean;
|
|
14576
14622
|
conversationId?: string;
|
|
14623
|
+
/**
|
|
14624
|
+
* Most recent message (either direction) in this channel's conversation, or null if none.
|
|
14625
|
+
*/
|
|
14626
|
+
lastActiveAt?: (string) | null;
|
|
14577
14627
|
createdAt?: string;
|
|
14578
14628
|
}>;
|
|
14579
14629
|
});
|