@getlatedev/node 0.2.876 → 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 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 or the TikTok message type. 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.
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
- * and for inbound interactive taps `interactiveType` / `interactiveId`.
23444
- * It can also carry `source` (`whatsapp_business_app` /
23445
- * `coexistence_history` on a WhatsApp Coexistence number, `bulk-api` on
23446
- * a POST /v1/whatsapp/bulk send), which is where the message reached us
23447
- * from rather than who produced it: read `sentVia` for that.
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?: {
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 or the TikTok message type. 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.
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
- * and for inbound interactive taps `interactiveType` / `interactiveId`.
23444
- * It can also carry `source` (`whatsapp_business_app` /
23445
- * `coexistence_history` on a WhatsApp Coexistence number, `bulk-api` on
23446
- * a POST /v1/whatsapp/bulk send), which is where the message reached us
23447
- * from rather than who produced it: read `sentVia` for that.
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?: {
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.876",
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.876",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.876",
3
+ "version": "0.2.877",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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 or the TikTok message type. 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.
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
- * and for inbound interactive taps `interactiveType` / `interactiveId`.
22905
- * It can also carry `source` (`whatsapp_business_app` /
22906
- * `coexistence_history` on a WhatsApp Coexistence number, `bulk-api` on
22907
- * a POST /v1/whatsapp/bulk send), which is where the message reached us
22908
- * from rather than who produced it: read `sentVia` for that.
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?: {