@zernio/node 0.2.1833 → 0.2.1834

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.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.1833",
39
+ version: "0.2.1834",
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.1833",
8
+ version: "0.2.1834",
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.1833",
3
+ "version": "0.2.1834",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -30009,12 +30009,44 @@ export type WebhookPayloadMessageSent = {
30009
30009
  conversation: InboxWebhookConversation;
30010
30010
  account: InboxWebhookAccount;
30011
30011
  /**
30012
- * Platform-specific context for the sent message: a quote-reply reference, a WhatsApp location pin, WhatsApp contact cards, 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.
30012
+ * 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.
30013
30013
  *
30014
30014
  * 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.
30015
30015
  *
30016
30016
  */
30017
30017
  metadata?: {
30018
+ /**
30019
+ * WhatsApp template sends only. Name of the approved template that was sent.
30020
+ */
30021
+ templateName?: string;
30022
+ /**
30023
+ * WhatsApp template sends only. Language code of the approved template that was sent.
30024
+ */
30025
+ templateLanguage?: string;
30026
+ /**
30027
+ * WhatsApp template sends only. The header as the recipient saw it: a text header filled with the values actually sent, a media header with its format and the link the send gave, or a location header with only its format.
30028
+ *
30029
+ * Absent when the template has no header, and on bulk, broadcast and automation sends, which carry only `templateName` and `templateLanguage`. The message text is the body only.
30030
+ *
30031
+ */
30032
+ templateHeader?: {
30033
+ /**
30034
+ * Header format.
30035
+ */
30036
+ format: 'text' | 'image' | 'video' | 'document' | 'location';
30037
+ /**
30038
+ * Text headers only. The header text with its variables filled in.
30039
+ */
30040
+ text?: string;
30041
+ /**
30042
+ * Image, video and document headers only. The link the send carried. Absent when the media was sent by id or the link is on Meta's CDN (an expiring URL, such as the approval sample).
30043
+ */
30044
+ mediaUrl?: string;
30045
+ };
30046
+ /**
30047
+ * WhatsApp template sends only. Footer text of the template. Absent when the template has no footer, and on bulk, broadcast and automation sends.
30048
+ */
30049
+ templateFooter?: string;
30018
30050
  /**
30019
30051
  * 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.
30020
30052
  *
@@ -30135,6 +30167,11 @@ export type platform26 = 'instagram' | 'facebook' | 'telegram' | 'whatsapp' | 't
30135
30167
  */
30136
30168
  export type source10 = 'whatsapp_business_app' | 'cloud_api' | 'meta_business_agent';
30137
30169
 
30170
+ /**
30171
+ * Header format.
30172
+ */
30173
+ export type format4 = 'text' | 'image' | 'video' | 'document' | 'location';
30174
+
30138
30175
  export type WebhookPayloadNotificationSent = {
30139
30176
  /**
30140
30177
  * Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
@@ -31692,7 +31729,7 @@ export type WhatsAppHeaderComponent = {
31692
31729
  };
31693
31730
  };
31694
31731
 
31695
- export type format4 = 'text' | 'image' | 'video' | 'gif' | 'document' | 'location';
31732
+ export type format5 = 'text' | 'image' | 'video' | 'gif' | 'document' | 'location';
31696
31733
 
31697
31734
  export type WhatsAppLimitedTimeOfferComponent = {
31698
31735
  type: 'limited_time_offer';
@@ -53970,6 +54007,7 @@ export type GetInboxConversationMessagesResponse = ({
53970
54007
  * - `quotedMessageId`: the `id` of the message this one replies to (delivered as `message.platformMessageId` on webhooks).
53971
54008
  * - `waInteractive`: a compact descriptor of WhatsApp interactive content sent (buttons / list / cta_url / flow / location_request).
53972
54009
  * - `metaInteractive`: outgoing Instagram/Facebook buttons, quickReplies and template, as sent.
54010
+ * - `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.
53973
54011
  * - `interactiveType` / `interactiveId`: for inbound interactive taps.
53974
54012
  * - `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.
53975
54013
  * - `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.