@zernio/node 0.2.1838 → 0.2.1839

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 CHANGED
@@ -31453,7 +31453,7 @@ type WebhookPayloadMessageSent = {
31453
31453
  conversation: InboxWebhookConversation;
31454
31454
  account: InboxWebhookAccount;
31455
31455
  /**
31456
- * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, WhatsApp template name, language, header and footer, Meta's reason a WhatsApp Business app echo has no renderable body, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template.
31456
+ * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, WhatsApp template name, language, header, footer and buttons, Meta's reason a WhatsApp Business app echo has no renderable body, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template.
31457
31457
  *
31458
31458
  * The key is present only when the send carried some context: 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.
31459
31459
  *
@@ -31491,6 +31491,30 @@ type WebhookPayloadMessageSent = {
31491
31491
  * WhatsApp template sends only. Footer text of the template. Absent when the template has no footer, and on bulk, broadcast and automation sends.
31492
31492
  */
31493
31493
  templateFooter?: string;
31494
+ /**
31495
+ * WhatsApp template sends only. The approved buttons as the recipient saw them, with a dynamic URL filled with the value the send gave. Never carries a coupon code, OTP or flow value.
31496
+ *
31497
+ * Absent when the template has no top-level buttons (carousel card buttons are not included), and on bulk, broadcast and automation sends.
31498
+ *
31499
+ */
31500
+ templateButtons?: Array<{
31501
+ /**
31502
+ * Lowercased button type, such as quick_reply, url, phone_number, copy_code, otp or flow. Meta adds types over time.
31503
+ */
31504
+ type: string;
31505
+ /**
31506
+ * Button label.
31507
+ */
31508
+ text?: string;
31509
+ /**
31510
+ * URL buttons only. The button URL, with its variable filled in when the send gave a value.
31511
+ */
31512
+ url?: string;
31513
+ /**
31514
+ * Phone number buttons only. The number the button dials.
31515
+ */
31516
+ phoneNumber?: string;
31517
+ }>;
31494
31518
  /**
31495
31519
  * WhatsApp only. Meta's own reason this message has no renderable body. Present on Coexistence echoes of a message sent from the WhatsApp Business app that Meta could not render (for example an album, code 131051: message type currently not supported). Absent otherwise.
31496
31520
  *
@@ -53959,7 +53983,7 @@ type GetInboxConversationMessagesResponse = ({
53959
53983
  * - `quotedMessageId`: the `id` of the message this one replies to (delivered as `message.platformMessageId` on webhooks).
53960
53984
  * - `waInteractive`: a compact descriptor of WhatsApp interactive content sent (buttons / list / cta_url / flow / location_request).
53961
53985
  * - `metaInteractive`: outgoing Instagram/Facebook buttons, quickReplies and template, as sent.
53962
- * - `templateName` / `templateLanguage` / `templateHeader` / `templateFooter`: on a WhatsApp template send, the template identity plus its rendered header (`{ format, text?, mediaUrl? }`) and footer; `text` is the body only.
53986
+ * - `templateName` / `templateLanguage` / `templateHeader` / `templateFooter` / `templateButtons`: on a WhatsApp template send, the template identity plus its rendered header (`{ format, text?, mediaUrl? }`), footer and buttons (`[{ type, text?, url?, phoneNumber? }]`); `text` is the body only.
53963
53987
  * - `interactiveType` / `interactiveId`: for inbound interactive taps.
53964
53988
  * - `source`: where the message reached us from, not who produced it (read `sentVia` for that). `whatsapp_business_app` / `coexistence_history` on a WhatsApp Coexistence number, `bulk-api` on a POST /v1/whatsapp/bulk send.
53965
53989
  * - `deliveryChannel`: on an outgoing iMessage, the channel of the latest delivery status (`imessage`, `sms`, `rcs` or `whatsapp`). A message delivered on `imessage` turns `failed` when the provider then reports its `sms` fallback failed.
package/dist/index.d.ts CHANGED
@@ -31453,7 +31453,7 @@ type WebhookPayloadMessageSent = {
31453
31453
  conversation: InboxWebhookConversation;
31454
31454
  account: InboxWebhookAccount;
31455
31455
  /**
31456
- * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, WhatsApp template name, language, header and footer, Meta's reason a WhatsApp Business app echo has no renderable body, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template.
31456
+ * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, WhatsApp template name, language, header, footer and buttons, Meta's reason a WhatsApp Business app echo has no renderable body, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template.
31457
31457
  *
31458
31458
  * The key is present only when the send carried some context: 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.
31459
31459
  *
@@ -31491,6 +31491,30 @@ type WebhookPayloadMessageSent = {
31491
31491
  * WhatsApp template sends only. Footer text of the template. Absent when the template has no footer, and on bulk, broadcast and automation sends.
31492
31492
  */
31493
31493
  templateFooter?: string;
31494
+ /**
31495
+ * WhatsApp template sends only. The approved buttons as the recipient saw them, with a dynamic URL filled with the value the send gave. Never carries a coupon code, OTP or flow value.
31496
+ *
31497
+ * Absent when the template has no top-level buttons (carousel card buttons are not included), and on bulk, broadcast and automation sends.
31498
+ *
31499
+ */
31500
+ templateButtons?: Array<{
31501
+ /**
31502
+ * Lowercased button type, such as quick_reply, url, phone_number, copy_code, otp or flow. Meta adds types over time.
31503
+ */
31504
+ type: string;
31505
+ /**
31506
+ * Button label.
31507
+ */
31508
+ text?: string;
31509
+ /**
31510
+ * URL buttons only. The button URL, with its variable filled in when the send gave a value.
31511
+ */
31512
+ url?: string;
31513
+ /**
31514
+ * Phone number buttons only. The number the button dials.
31515
+ */
31516
+ phoneNumber?: string;
31517
+ }>;
31494
31518
  /**
31495
31519
  * WhatsApp only. Meta's own reason this message has no renderable body. Present on Coexistence echoes of a message sent from the WhatsApp Business app that Meta could not render (for example an album, code 131051: message type currently not supported). Absent otherwise.
31496
31520
  *
@@ -53959,7 +53983,7 @@ type GetInboxConversationMessagesResponse = ({
53959
53983
  * - `quotedMessageId`: the `id` of the message this one replies to (delivered as `message.platformMessageId` on webhooks).
53960
53984
  * - `waInteractive`: a compact descriptor of WhatsApp interactive content sent (buttons / list / cta_url / flow / location_request).
53961
53985
  * - `metaInteractive`: outgoing Instagram/Facebook buttons, quickReplies and template, as sent.
53962
- * - `templateName` / `templateLanguage` / `templateHeader` / `templateFooter`: on a WhatsApp template send, the template identity plus its rendered header (`{ format, text?, mediaUrl? }`) and footer; `text` is the body only.
53986
+ * - `templateName` / `templateLanguage` / `templateHeader` / `templateFooter` / `templateButtons`: on a WhatsApp template send, the template identity plus its rendered header (`{ format, text?, mediaUrl? }`), footer and buttons (`[{ type, text?, url?, phoneNumber? }]`); `text` is the body only.
53963
53987
  * - `interactiveType` / `interactiveId`: for inbound interactive taps.
53964
53988
  * - `source`: where the message reached us from, not who produced it (read `sentVia` for that). `whatsapp_business_app` / `coexistence_history` on a WhatsApp Coexistence number, `bulk-api` on a POST /v1/whatsapp/bulk send.
53965
53989
  * - `deliveryChannel`: on an outgoing iMessage, the channel of the latest delivery status (`imessage`, `sms`, `rcs` or `whatsapp`). A message delivered on `imessage` turns `failed` when the provider then reports its `sms` fallback failed.
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.1838",
39
+ version: "0.2.1839",
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.1838",
8
+ version: "0.2.1839",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.1838",
3
+ "version": "0.2.1839",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -30082,7 +30082,7 @@ export type WebhookPayloadMessageSent = {
30082
30082
  conversation: InboxWebhookConversation;
30083
30083
  account: InboxWebhookAccount;
30084
30084
  /**
30085
- * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, WhatsApp template name, language, header and footer, Meta's reason a WhatsApp Business app echo has no renderable body, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template.
30085
+ * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, WhatsApp template name, language, header, footer and buttons, Meta's reason a WhatsApp Business app echo has no renderable body, the TikTok message type, or outgoing Instagram/Facebook buttons, quick replies and template.
30086
30086
  *
30087
30087
  * The key is present only when the send carried some context: 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.
30088
30088
  *
@@ -30120,6 +30120,30 @@ export type WebhookPayloadMessageSent = {
30120
30120
  * WhatsApp template sends only. Footer text of the template. Absent when the template has no footer, and on bulk, broadcast and automation sends.
30121
30121
  */
30122
30122
  templateFooter?: string;
30123
+ /**
30124
+ * WhatsApp template sends only. The approved buttons as the recipient saw them, with a dynamic URL filled with the value the send gave. Never carries a coupon code, OTP or flow value.
30125
+ *
30126
+ * Absent when the template has no top-level buttons (carousel card buttons are not included), and on bulk, broadcast and automation sends.
30127
+ *
30128
+ */
30129
+ templateButtons?: Array<{
30130
+ /**
30131
+ * Lowercased button type, such as quick_reply, url, phone_number, copy_code, otp or flow. Meta adds types over time.
30132
+ */
30133
+ type: string;
30134
+ /**
30135
+ * Button label.
30136
+ */
30137
+ text?: string;
30138
+ /**
30139
+ * URL buttons only. The button URL, with its variable filled in when the send gave a value.
30140
+ */
30141
+ url?: string;
30142
+ /**
30143
+ * Phone number buttons only. The number the button dials.
30144
+ */
30145
+ phoneNumber?: string;
30146
+ }>;
30123
30147
  /**
30124
30148
  * WhatsApp only. Meta's own reason this message has no renderable body. Present on Coexistence echoes of a message sent from the WhatsApp Business app that Meta could not render (for example an album, code 131051: message type currently not supported). Absent otherwise.
30125
30149
  *
@@ -54080,7 +54104,7 @@ export type GetInboxConversationMessagesResponse = ({
54080
54104
  * - `quotedMessageId`: the `id` of the message this one replies to (delivered as `message.platformMessageId` on webhooks).
54081
54105
  * - `waInteractive`: a compact descriptor of WhatsApp interactive content sent (buttons / list / cta_url / flow / location_request).
54082
54106
  * - `metaInteractive`: outgoing Instagram/Facebook buttons, quickReplies and template, as sent.
54083
- * - `templateName` / `templateLanguage` / `templateHeader` / `templateFooter`: on a WhatsApp template send, the template identity plus its rendered header (`{ format, text?, mediaUrl? }`) and footer; `text` is the body only.
54107
+ * - `templateName` / `templateLanguage` / `templateHeader` / `templateFooter` / `templateButtons`: on a WhatsApp template send, the template identity plus its rendered header (`{ format, text?, mediaUrl? }`), footer and buttons (`[{ type, text?, url?, phoneNumber? }]`); `text` is the body only.
54084
54108
  * - `interactiveType` / `interactiveId`: for inbound interactive taps.
54085
54109
  * - `source`: where the message reached us from, not who produced it (read `sentVia` for that). `whatsapp_business_app` / `coexistence_history` on a WhatsApp Coexistence number, `bulk-api` on a POST /v1/whatsapp/bulk send.
54086
54110
  * - `deliveryChannel`: on an outgoing iMessage, the channel of the latest delivery status (`imessage`, `sms`, `rcs` or `whatsapp`). A message delivered on `imessage` turns `failed` when the provider then reports its `sms` fallback failed.