@getlatedev/node 0.2.372 → 0.2.373
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 -3
- package/dist/index.d.ts +14 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +14 -3
package/dist/index.d.mts
CHANGED
|
@@ -14662,10 +14662,21 @@ type SendInboxMessageData = {
|
|
|
14662
14662
|
}>;
|
|
14663
14663
|
/**
|
|
14664
14664
|
* Action buttons. Mutually exclusive with quickReplies. Max 3 items.
|
|
14665
|
+
*
|
|
14666
|
+
* WhatsApp: buttons always render as interactive reply buttons.
|
|
14667
|
+
* Only `title` and `payload` are used — `type`, `url`, and `phone`
|
|
14668
|
+
* are ignored (WhatsApp has no URL/phone button in this field; use
|
|
14669
|
+
* the `interactive` field with `type: cta_url` for a link button).
|
|
14670
|
+
* `payload` becomes the button reply ID delivered on the
|
|
14671
|
+
* `message.received` webhook when the user taps. To send a simple
|
|
14672
|
+
* reply-button message, provide `title` + `payload` and set
|
|
14673
|
+
* `type: postback`, e.g.
|
|
14674
|
+
* `{ "type": "postback", "title": "Yes", "payload": "yes" }`.
|
|
14675
|
+
*
|
|
14665
14676
|
*/
|
|
14666
14677
|
buttons?: Array<{
|
|
14667
14678
|
/**
|
|
14668
|
-
* Button type. phone is Facebook only.
|
|
14679
|
+
* Button type. phone is Facebook only. Ignored on WhatsApp (buttons always render as reply buttons).
|
|
14669
14680
|
*/
|
|
14670
14681
|
type: 'url' | 'postback' | 'phone';
|
|
14671
14682
|
/**
|
|
@@ -14673,11 +14684,11 @@ type SendInboxMessageData = {
|
|
|
14673
14684
|
*/
|
|
14674
14685
|
title: string;
|
|
14675
14686
|
/**
|
|
14676
|
-
* URL for url-type buttons
|
|
14687
|
+
* URL for url-type buttons (Facebook/Instagram only)
|
|
14677
14688
|
*/
|
|
14678
14689
|
url?: string;
|
|
14679
14690
|
/**
|
|
14680
|
-
* Payload for postback-type buttons
|
|
14691
|
+
* Payload for postback-type buttons. On WhatsApp, this is the reply ID returned on the message.received webhook when the button is tapped.
|
|
14681
14692
|
*/
|
|
14682
14693
|
payload?: string;
|
|
14683
14694
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -14662,10 +14662,21 @@ type SendInboxMessageData = {
|
|
|
14662
14662
|
}>;
|
|
14663
14663
|
/**
|
|
14664
14664
|
* Action buttons. Mutually exclusive with quickReplies. Max 3 items.
|
|
14665
|
+
*
|
|
14666
|
+
* WhatsApp: buttons always render as interactive reply buttons.
|
|
14667
|
+
* Only `title` and `payload` are used — `type`, `url`, and `phone`
|
|
14668
|
+
* are ignored (WhatsApp has no URL/phone button in this field; use
|
|
14669
|
+
* the `interactive` field with `type: cta_url` for a link button).
|
|
14670
|
+
* `payload` becomes the button reply ID delivered on the
|
|
14671
|
+
* `message.received` webhook when the user taps. To send a simple
|
|
14672
|
+
* reply-button message, provide `title` + `payload` and set
|
|
14673
|
+
* `type: postback`, e.g.
|
|
14674
|
+
* `{ "type": "postback", "title": "Yes", "payload": "yes" }`.
|
|
14675
|
+
*
|
|
14665
14676
|
*/
|
|
14666
14677
|
buttons?: Array<{
|
|
14667
14678
|
/**
|
|
14668
|
-
* Button type. phone is Facebook only.
|
|
14679
|
+
* Button type. phone is Facebook only. Ignored on WhatsApp (buttons always render as reply buttons).
|
|
14669
14680
|
*/
|
|
14670
14681
|
type: 'url' | 'postback' | 'phone';
|
|
14671
14682
|
/**
|
|
@@ -14673,11 +14684,11 @@ type SendInboxMessageData = {
|
|
|
14673
14684
|
*/
|
|
14674
14685
|
title: string;
|
|
14675
14686
|
/**
|
|
14676
|
-
* URL for url-type buttons
|
|
14687
|
+
* URL for url-type buttons (Facebook/Instagram only)
|
|
14677
14688
|
*/
|
|
14678
14689
|
url?: string;
|
|
14679
14690
|
/**
|
|
14680
|
-
* Payload for postback-type buttons
|
|
14691
|
+
* Payload for postback-type buttons. On WhatsApp, this is the reply ID returned on the message.received webhook when the button is tapped.
|
|
14681
14692
|
*/
|
|
14682
14693
|
payload?: string;
|
|
14683
14694
|
/**
|
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.373",
|
|
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.373",
|
|
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
|
@@ -14594,10 +14594,21 @@ export type SendInboxMessageData = {
|
|
|
14594
14594
|
}>;
|
|
14595
14595
|
/**
|
|
14596
14596
|
* Action buttons. Mutually exclusive with quickReplies. Max 3 items.
|
|
14597
|
+
*
|
|
14598
|
+
* WhatsApp: buttons always render as interactive reply buttons.
|
|
14599
|
+
* Only `title` and `payload` are used — `type`, `url`, and `phone`
|
|
14600
|
+
* are ignored (WhatsApp has no URL/phone button in this field; use
|
|
14601
|
+
* the `interactive` field with `type: cta_url` for a link button).
|
|
14602
|
+
* `payload` becomes the button reply ID delivered on the
|
|
14603
|
+
* `message.received` webhook when the user taps. To send a simple
|
|
14604
|
+
* reply-button message, provide `title` + `payload` and set
|
|
14605
|
+
* `type: postback`, e.g.
|
|
14606
|
+
* `{ "type": "postback", "title": "Yes", "payload": "yes" }`.
|
|
14607
|
+
*
|
|
14597
14608
|
*/
|
|
14598
14609
|
buttons?: Array<{
|
|
14599
14610
|
/**
|
|
14600
|
-
* Button type. phone is Facebook only.
|
|
14611
|
+
* Button type. phone is Facebook only. Ignored on WhatsApp (buttons always render as reply buttons).
|
|
14601
14612
|
*/
|
|
14602
14613
|
type: 'url' | 'postback' | 'phone';
|
|
14603
14614
|
/**
|
|
@@ -14605,11 +14616,11 @@ export type SendInboxMessageData = {
|
|
|
14605
14616
|
*/
|
|
14606
14617
|
title: string;
|
|
14607
14618
|
/**
|
|
14608
|
-
* URL for url-type buttons
|
|
14619
|
+
* URL for url-type buttons (Facebook/Instagram only)
|
|
14609
14620
|
*/
|
|
14610
14621
|
url?: string;
|
|
14611
14622
|
/**
|
|
14612
|
-
* Payload for postback-type buttons
|
|
14623
|
+
* Payload for postback-type buttons. On WhatsApp, this is the reply ID returned on the message.received webhook when the button is tapped.
|
|
14613
14624
|
*/
|
|
14614
14625
|
payload?: string;
|
|
14615
14626
|
/**
|