@getlatedev/node 0.2.875 → 0.2.877
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 +16 -8
- package/dist/index.d.ts +16 -8
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +16 -8
package/dist/index.d.mts
CHANGED
|
@@ -11854,9 +11854,15 @@ type WebhookPayloadMessageSent = {
|
|
|
11854
11854
|
conversation: InboxWebhookConversation;
|
|
11855
11855
|
account: InboxWebhookAccount;
|
|
11856
11856
|
/**
|
|
11857
|
-
* Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards
|
|
11857
|
+
* Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template. The key is present only when the send carried some context, and absent otherwise: it is never null and never an empty object. Read it to tell a location or contact-card message from a text one without a GET on the message.
|
|
11858
11858
|
*/
|
|
11859
11859
|
metadata?: {
|
|
11860
|
+
/**
|
|
11861
|
+
* Instagram/Facebook only. The buttons, quickReplies and/or template this outgoing message carried, as sent (tracked urls included when link tracking wrapped a button). Absent when the send carried none.
|
|
11862
|
+
*/
|
|
11863
|
+
metaInteractive?: {
|
|
11864
|
+
[key: string]: unknown;
|
|
11865
|
+
};
|
|
11860
11866
|
/**
|
|
11861
11867
|
* WhatsApp only. The location pin this message carries, in the same
|
|
11862
11868
|
* shape the inbox send API accepts. Present on API sends that passed
|
|
@@ -23440,11 +23446,13 @@ type GetInboxConversationMessagesResponse = ({
|
|
|
23440
23446
|
* delivered as `message.platformMessageId` on webhooks),
|
|
23441
23447
|
* `waInteractive` (a compact descriptor of WhatsApp interactive
|
|
23442
23448
|
* content sent: buttons / list / cta_url / flow / location_request),
|
|
23443
|
-
*
|
|
23444
|
-
*
|
|
23445
|
-
* `
|
|
23446
|
-
*
|
|
23447
|
-
*
|
|
23449
|
+
* `metaInteractive` (outgoing Instagram/Facebook buttons, quickReplies
|
|
23450
|
+
* and template, as sent), and for inbound interactive taps
|
|
23451
|
+
* `interactiveType` / `interactiveId`. It can also carry `source`
|
|
23452
|
+
* (`whatsapp_business_app` / `coexistence_history` on a WhatsApp
|
|
23453
|
+
* Coexistence number, `bulk-api` on a POST /v1/whatsapp/bulk send),
|
|
23454
|
+
* which is where the message reached us from rather than who produced
|
|
23455
|
+
* it: read `sentVia` for that.
|
|
23448
23456
|
*
|
|
23449
23457
|
*/
|
|
23450
23458
|
metadata?: {
|
|
@@ -28761,7 +28769,7 @@ type PurchasePhoneNumberError = (unknown | {
|
|
|
28761
28769
|
error?: string;
|
|
28762
28770
|
} | {
|
|
28763
28771
|
error?: string;
|
|
28764
|
-
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE' | 'COUNTRY_OUT_OF_STOCK';
|
|
28772
|
+
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE' | 'COUNTRY_OUT_OF_STOCK' | 'NO_WHATSAPP_ELIGIBLE_NUMBER';
|
|
28765
28773
|
} | {
|
|
28766
28774
|
error?: string;
|
|
28767
28775
|
code?: 'CARRIER_UNAVAILABLE';
|
|
@@ -29152,7 +29160,7 @@ type PurchaseWhatsAppPhoneNumberError = (unknown | {
|
|
|
29152
29160
|
error?: string;
|
|
29153
29161
|
} | {
|
|
29154
29162
|
error?: string;
|
|
29155
|
-
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE' | 'COUNTRY_OUT_OF_STOCK';
|
|
29163
|
+
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE' | 'COUNTRY_OUT_OF_STOCK' | 'NO_WHATSAPP_ELIGIBLE_NUMBER';
|
|
29156
29164
|
} | {
|
|
29157
29165
|
error?: string;
|
|
29158
29166
|
code?: 'CARRIER_UNAVAILABLE';
|
package/dist/index.d.ts
CHANGED
|
@@ -11854,9 +11854,15 @@ type WebhookPayloadMessageSent = {
|
|
|
11854
11854
|
conversation: InboxWebhookConversation;
|
|
11855
11855
|
account: InboxWebhookAccount;
|
|
11856
11856
|
/**
|
|
11857
|
-
* Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards
|
|
11857
|
+
* Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template. The key is present only when the send carried some context, and absent otherwise: it is never null and never an empty object. Read it to tell a location or contact-card message from a text one without a GET on the message.
|
|
11858
11858
|
*/
|
|
11859
11859
|
metadata?: {
|
|
11860
|
+
/**
|
|
11861
|
+
* Instagram/Facebook only. The buttons, quickReplies and/or template this outgoing message carried, as sent (tracked urls included when link tracking wrapped a button). Absent when the send carried none.
|
|
11862
|
+
*/
|
|
11863
|
+
metaInteractive?: {
|
|
11864
|
+
[key: string]: unknown;
|
|
11865
|
+
};
|
|
11860
11866
|
/**
|
|
11861
11867
|
* WhatsApp only. The location pin this message carries, in the same
|
|
11862
11868
|
* shape the inbox send API accepts. Present on API sends that passed
|
|
@@ -23440,11 +23446,13 @@ type GetInboxConversationMessagesResponse = ({
|
|
|
23440
23446
|
* delivered as `message.platformMessageId` on webhooks),
|
|
23441
23447
|
* `waInteractive` (a compact descriptor of WhatsApp interactive
|
|
23442
23448
|
* content sent: buttons / list / cta_url / flow / location_request),
|
|
23443
|
-
*
|
|
23444
|
-
*
|
|
23445
|
-
* `
|
|
23446
|
-
*
|
|
23447
|
-
*
|
|
23449
|
+
* `metaInteractive` (outgoing Instagram/Facebook buttons, quickReplies
|
|
23450
|
+
* and template, as sent), and for inbound interactive taps
|
|
23451
|
+
* `interactiveType` / `interactiveId`. It can also carry `source`
|
|
23452
|
+
* (`whatsapp_business_app` / `coexistence_history` on a WhatsApp
|
|
23453
|
+
* Coexistence number, `bulk-api` on a POST /v1/whatsapp/bulk send),
|
|
23454
|
+
* which is where the message reached us from rather than who produced
|
|
23455
|
+
* it: read `sentVia` for that.
|
|
23448
23456
|
*
|
|
23449
23457
|
*/
|
|
23450
23458
|
metadata?: {
|
|
@@ -28761,7 +28769,7 @@ type PurchasePhoneNumberError = (unknown | {
|
|
|
28761
28769
|
error?: string;
|
|
28762
28770
|
} | {
|
|
28763
28771
|
error?: string;
|
|
28764
|
-
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE' | 'COUNTRY_OUT_OF_STOCK';
|
|
28772
|
+
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE' | 'COUNTRY_OUT_OF_STOCK' | 'NO_WHATSAPP_ELIGIBLE_NUMBER';
|
|
28765
28773
|
} | {
|
|
28766
28774
|
error?: string;
|
|
28767
28775
|
code?: 'CARRIER_UNAVAILABLE';
|
|
@@ -29152,7 +29160,7 @@ type PurchaseWhatsAppPhoneNumberError = (unknown | {
|
|
|
29152
29160
|
error?: string;
|
|
29153
29161
|
} | {
|
|
29154
29162
|
error?: string;
|
|
29155
|
-
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE' | 'COUNTRY_OUT_OF_STOCK';
|
|
29163
|
+
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE' | 'COUNTRY_OUT_OF_STOCK' | 'NO_WHATSAPP_ELIGIBLE_NUMBER';
|
|
29156
29164
|
} | {
|
|
29157
29165
|
error?: string;
|
|
29158
29166
|
code?: 'CARRIER_UNAVAILABLE';
|
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.877",
|
|
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: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.877",
|
|
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
|
@@ -10572,9 +10572,15 @@ export type WebhookPayloadMessageSent = {
|
|
|
10572
10572
|
conversation: InboxWebhookConversation;
|
|
10573
10573
|
account: InboxWebhookAccount;
|
|
10574
10574
|
/**
|
|
10575
|
-
* Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards
|
|
10575
|
+
* Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template. The key is present only when the send carried some context, and absent otherwise: it is never null and never an empty object. Read it to tell a location or contact-card message from a text one without a GET on the message.
|
|
10576
10576
|
*/
|
|
10577
10577
|
metadata?: {
|
|
10578
|
+
/**
|
|
10579
|
+
* Instagram/Facebook only. The buttons, quickReplies and/or template this outgoing message carried, as sent (tracked urls included when link tracking wrapped a button). Absent when the send carried none.
|
|
10580
|
+
*/
|
|
10581
|
+
metaInteractive?: {
|
|
10582
|
+
[key: string]: unknown;
|
|
10583
|
+
};
|
|
10578
10584
|
/**
|
|
10579
10585
|
* WhatsApp only. The location pin this message carries, in the same
|
|
10580
10586
|
* shape the inbox send API accepts. Present on API sends that passed
|
|
@@ -22901,11 +22907,13 @@ export type GetInboxConversationMessagesResponse = ({
|
|
|
22901
22907
|
* delivered as `message.platformMessageId` on webhooks),
|
|
22902
22908
|
* `waInteractive` (a compact descriptor of WhatsApp interactive
|
|
22903
22909
|
* content sent: buttons / list / cta_url / flow / location_request),
|
|
22904
|
-
*
|
|
22905
|
-
*
|
|
22906
|
-
* `
|
|
22907
|
-
*
|
|
22908
|
-
*
|
|
22910
|
+
* `metaInteractive` (outgoing Instagram/Facebook buttons, quickReplies
|
|
22911
|
+
* and template, as sent), and for inbound interactive taps
|
|
22912
|
+
* `interactiveType` / `interactiveId`. It can also carry `source`
|
|
22913
|
+
* (`whatsapp_business_app` / `coexistence_history` on a WhatsApp
|
|
22914
|
+
* Coexistence number, `bulk-api` on a POST /v1/whatsapp/bulk send),
|
|
22915
|
+
* which is where the message reached us from rather than who produced
|
|
22916
|
+
* it: read `sentVia` for that.
|
|
22909
22917
|
*
|
|
22910
22918
|
*/
|
|
22911
22919
|
metadata?: {
|
|
@@ -28643,7 +28651,7 @@ export type PurchasePhoneNumberError = (unknown | {
|
|
|
28643
28651
|
error?: string;
|
|
28644
28652
|
} | {
|
|
28645
28653
|
error?: string;
|
|
28646
|
-
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE' | 'COUNTRY_OUT_OF_STOCK';
|
|
28654
|
+
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE' | 'COUNTRY_OUT_OF_STOCK' | 'NO_WHATSAPP_ELIGIBLE_NUMBER';
|
|
28647
28655
|
} | {
|
|
28648
28656
|
error?: string;
|
|
28649
28657
|
code?: 'CARRIER_UNAVAILABLE';
|
|
@@ -29048,7 +29056,7 @@ export type PurchaseWhatsAppPhoneNumberError = (unknown | {
|
|
|
29048
29056
|
error?: string;
|
|
29049
29057
|
} | {
|
|
29050
29058
|
error?: string;
|
|
29051
|
-
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE' | 'COUNTRY_OUT_OF_STOCK';
|
|
29059
|
+
code?: 'PURCHASE_VELOCITY' | 'AREA_CODE_UNAVAILABLE' | 'PHONE_NUMBER_UNAVAILABLE' | 'COUNTRY_OUT_OF_STOCK' | 'NO_WHATSAPP_ELIGIBLE_NUMBER';
|
|
29052
29060
|
} | {
|
|
29053
29061
|
error?: string;
|
|
29054
29062
|
code?: 'CARRIER_UNAVAILABLE';
|