@zernio/node 0.2.682 → 0.2.683

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
@@ -8606,8 +8606,9 @@ type WebhookPayloadMessage = {
8606
8606
  /**
8607
8607
  * platformMessageId of the message this one is a quote-reply to.
8608
8608
  * WhatsApp (`context.id`), Instagram and Facebook Messenger
8609
- * (`reply_to.mid`). Outgoing quote-replies carry the same field on
8610
- * `message.sent`; see WebhookPayloadMessageSent.metadata.
8609
+ * (`reply_to.mid`). On outgoing messages the same field appears on
8610
+ * `message.sent`, but only on some surfaces: see
8611
+ * WebhookPayloadMessageSent.metadata.quotedMessageId.
8611
8612
  *
8612
8613
  */
8613
8614
  quotedMessageId?: string;
@@ -9155,13 +9156,27 @@ type WebhookPayloadMessageSent = {
9155
9156
  */
9156
9157
  metadata?: {
9157
9158
  /**
9158
- * platformMessageId of the message this send is a quote-reply to.
9159
- * Set when the reply was sent through Zernio with `replyTo` on the
9160
- * inbox send API (WhatsApp and Telegram), and when the operator
9161
- * replied from the native WhatsApp Business, Instagram or Messenger
9162
- * app. WhatsApp API sends carry it on the event fired from the
9163
- * delivery status, so it arrives on the same `message.sent` as any
9164
- * other WhatsApp send.
9159
+ * `platformMessageId` of the message this send is a quote-reply to.
9160
+ *
9161
+ * Present when the reply was sent through Zernio with `replyTo` on
9162
+ * the inbox send API (WhatsApp and Telegram). A WhatsApp API send
9163
+ * fires its `message.sent` off the delivery status, and the quote
9164
+ * reference is forwarded from the stored send there, so it arrives
9165
+ * on the same `message.sent` as any other WhatsApp send.
9166
+ *
9167
+ * Not delivered on Instagram echoes. Zernio forwards
9168
+ * `reply_to.mid` whenever Meta puts it on an echo, but on
9169
+ * Instagram Meta does not send it, so a reply the operator quoted
9170
+ * in the Instagram app arrives with no `quotedMessageId`.
9171
+ * Facebook Messenger rides a separate subscription
9172
+ * (`message_echoes`) and has not been measured, so treat it as
9173
+ * unverified rather than supported.
9174
+ *
9175
+ * Absent on WhatsApp Coexistence echoes. Meta omits the quote
9176
+ * context from `smb_message_echoes`, so a reply the operator sent
9177
+ * from the WhatsApp Business app arrives with no `quotedMessageId`
9178
+ * even though WhatsApp shows it as a quote-reply. Do not read the
9179
+ * absence of this field as "not a reply".
9165
9180
  *
9166
9181
  */
9167
9182
  quotedMessageId?: string;
@@ -19446,6 +19461,16 @@ type GetInboxConversationMessagesResponse = ({
19446
19461
  */
19447
19462
  sortOrderApplied?: 'asc' | 'desc';
19448
19463
  messages?: Array<{
19464
+ /**
19465
+ * The platform's own message id: the `wamid` on WhatsApp, the
19466
+ * `mid` on Instagram and Facebook Messenger. This is what
19467
+ * `metadata.quotedMessageId` points at, the value to pass as
19468
+ * `replyTo` on the platforms that support quote-replies, and the
19469
+ * `{messageId}` segment of the attachment-resolve URL. Webhooks
19470
+ * deliver the same value as `message.platformMessageId`; this
19471
+ * response has no field by that name.
19472
+ *
19473
+ */
19449
19474
  id?: string;
19450
19475
  conversationId?: string;
19451
19476
  accountId?: string;
@@ -19541,7 +19566,8 @@ type GetInboxConversationMessagesResponse = ({
19541
19566
  }>;
19542
19567
  /**
19543
19568
  * Platform-specific extras. Free-form, but commonly includes:
19544
- * `quotedMessageId` (platformMessageId this message replies to),
19569
+ * `quotedMessageId` (the `id` of the message this one replies to,
19570
+ * delivered as `message.platformMessageId` on webhooks),
19545
19571
  * `waInteractive` (a compact descriptor of WhatsApp interactive
19546
19572
  * content sent: buttons / list / cta_url / flow / location_request),
19547
19573
  * and for inbound interactive taps `interactiveType` / `interactiveId`.
@@ -20096,7 +20122,7 @@ type SendInboxMessageData = {
20096
20122
  */
20097
20123
  messageTag?: 'CONFIRMED_EVENT_UPDATE' | 'POST_PURCHASE_UPDATE' | 'ACCOUNT_UPDATE' | 'HUMAN_AGENT';
20098
20124
  /**
20099
- * Platform message ID to quote-reply to. For WhatsApp, pass the wamid; for Telegram, the Telegram message ID (both available in message.platformMessageId from webhooks or the list-messages endpoint). On Slack it threads the reply (thread_ts) instead of quoting. Silently ignored on platforms without send-side reply support, including Instagram and Facebook Messenger (Meta's Send API rejects reply_to on Instagram and does not expose it on Messenger).
20125
+ * Platform message ID to quote-reply to. For WhatsApp, pass the wamid; for Telegram, the Telegram message ID (delivered as message.platformMessageId on webhooks, and as `id` on each entry of the list-messages endpoint). On Slack it threads the reply (thread_ts) instead of quoting. Silently ignored on platforms without send-side reply support, including Instagram and Facebook Messenger (Meta's Send API rejects reply_to on Instagram and does not expose it on Messenger).
20100
20126
  */
20101
20127
  replyTo?: string;
20102
20128
  /**
package/dist/index.d.ts CHANGED
@@ -8606,8 +8606,9 @@ type WebhookPayloadMessage = {
8606
8606
  /**
8607
8607
  * platformMessageId of the message this one is a quote-reply to.
8608
8608
  * WhatsApp (`context.id`), Instagram and Facebook Messenger
8609
- * (`reply_to.mid`). Outgoing quote-replies carry the same field on
8610
- * `message.sent`; see WebhookPayloadMessageSent.metadata.
8609
+ * (`reply_to.mid`). On outgoing messages the same field appears on
8610
+ * `message.sent`, but only on some surfaces: see
8611
+ * WebhookPayloadMessageSent.metadata.quotedMessageId.
8611
8612
  *
8612
8613
  */
8613
8614
  quotedMessageId?: string;
@@ -9155,13 +9156,27 @@ type WebhookPayloadMessageSent = {
9155
9156
  */
9156
9157
  metadata?: {
9157
9158
  /**
9158
- * platformMessageId of the message this send is a quote-reply to.
9159
- * Set when the reply was sent through Zernio with `replyTo` on the
9160
- * inbox send API (WhatsApp and Telegram), and when the operator
9161
- * replied from the native WhatsApp Business, Instagram or Messenger
9162
- * app. WhatsApp API sends carry it on the event fired from the
9163
- * delivery status, so it arrives on the same `message.sent` as any
9164
- * other WhatsApp send.
9159
+ * `platformMessageId` of the message this send is a quote-reply to.
9160
+ *
9161
+ * Present when the reply was sent through Zernio with `replyTo` on
9162
+ * the inbox send API (WhatsApp and Telegram). A WhatsApp API send
9163
+ * fires its `message.sent` off the delivery status, and the quote
9164
+ * reference is forwarded from the stored send there, so it arrives
9165
+ * on the same `message.sent` as any other WhatsApp send.
9166
+ *
9167
+ * Not delivered on Instagram echoes. Zernio forwards
9168
+ * `reply_to.mid` whenever Meta puts it on an echo, but on
9169
+ * Instagram Meta does not send it, so a reply the operator quoted
9170
+ * in the Instagram app arrives with no `quotedMessageId`.
9171
+ * Facebook Messenger rides a separate subscription
9172
+ * (`message_echoes`) and has not been measured, so treat it as
9173
+ * unverified rather than supported.
9174
+ *
9175
+ * Absent on WhatsApp Coexistence echoes. Meta omits the quote
9176
+ * context from `smb_message_echoes`, so a reply the operator sent
9177
+ * from the WhatsApp Business app arrives with no `quotedMessageId`
9178
+ * even though WhatsApp shows it as a quote-reply. Do not read the
9179
+ * absence of this field as "not a reply".
9165
9180
  *
9166
9181
  */
9167
9182
  quotedMessageId?: string;
@@ -19446,6 +19461,16 @@ type GetInboxConversationMessagesResponse = ({
19446
19461
  */
19447
19462
  sortOrderApplied?: 'asc' | 'desc';
19448
19463
  messages?: Array<{
19464
+ /**
19465
+ * The platform's own message id: the `wamid` on WhatsApp, the
19466
+ * `mid` on Instagram and Facebook Messenger. This is what
19467
+ * `metadata.quotedMessageId` points at, the value to pass as
19468
+ * `replyTo` on the platforms that support quote-replies, and the
19469
+ * `{messageId}` segment of the attachment-resolve URL. Webhooks
19470
+ * deliver the same value as `message.platformMessageId`; this
19471
+ * response has no field by that name.
19472
+ *
19473
+ */
19449
19474
  id?: string;
19450
19475
  conversationId?: string;
19451
19476
  accountId?: string;
@@ -19541,7 +19566,8 @@ type GetInboxConversationMessagesResponse = ({
19541
19566
  }>;
19542
19567
  /**
19543
19568
  * Platform-specific extras. Free-form, but commonly includes:
19544
- * `quotedMessageId` (platformMessageId this message replies to),
19569
+ * `quotedMessageId` (the `id` of the message this one replies to,
19570
+ * delivered as `message.platformMessageId` on webhooks),
19545
19571
  * `waInteractive` (a compact descriptor of WhatsApp interactive
19546
19572
  * content sent: buttons / list / cta_url / flow / location_request),
19547
19573
  * and for inbound interactive taps `interactiveType` / `interactiveId`.
@@ -20096,7 +20122,7 @@ type SendInboxMessageData = {
20096
20122
  */
20097
20123
  messageTag?: 'CONFIRMED_EVENT_UPDATE' | 'POST_PURCHASE_UPDATE' | 'ACCOUNT_UPDATE' | 'HUMAN_AGENT';
20098
20124
  /**
20099
- * Platform message ID to quote-reply to. For WhatsApp, pass the wamid; for Telegram, the Telegram message ID (both available in message.platformMessageId from webhooks or the list-messages endpoint). On Slack it threads the reply (thread_ts) instead of quoting. Silently ignored on platforms without send-side reply support, including Instagram and Facebook Messenger (Meta's Send API rejects reply_to on Instagram and does not expose it on Messenger).
20125
+ * Platform message ID to quote-reply to. For WhatsApp, pass the wamid; for Telegram, the Telegram message ID (delivered as message.platformMessageId on webhooks, and as `id` on each entry of the list-messages endpoint). On Slack it threads the reply (thread_ts) instead of quoting. Silently ignored on platforms without send-side reply support, including Instagram and Facebook Messenger (Meta's Send API rejects reply_to on Instagram and does not expose it on Messenger).
20100
20126
  */
20101
20127
  replyTo?: string;
20102
20128
  /**
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.682",
39
+ version: "0.2.683",
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.682",
8
+ version: "0.2.683",
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.682",
3
+ "version": "0.2.683",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -7545,8 +7545,9 @@ export type WebhookPayloadMessage = {
7545
7545
  /**
7546
7546
  * platformMessageId of the message this one is a quote-reply to.
7547
7547
  * WhatsApp (`context.id`), Instagram and Facebook Messenger
7548
- * (`reply_to.mid`). Outgoing quote-replies carry the same field on
7549
- * `message.sent`; see WebhookPayloadMessageSent.metadata.
7548
+ * (`reply_to.mid`). On outgoing messages the same field appears on
7549
+ * `message.sent`, but only on some surfaces: see
7550
+ * WebhookPayloadMessageSent.metadata.quotedMessageId.
7550
7551
  *
7551
7552
  */
7552
7553
  quotedMessageId?: string;
@@ -8105,13 +8106,27 @@ export type WebhookPayloadMessageSent = {
8105
8106
  */
8106
8107
  metadata?: {
8107
8108
  /**
8108
- * platformMessageId of the message this send is a quote-reply to.
8109
- * Set when the reply was sent through Zernio with `replyTo` on the
8110
- * inbox send API (WhatsApp and Telegram), and when the operator
8111
- * replied from the native WhatsApp Business, Instagram or Messenger
8112
- * app. WhatsApp API sends carry it on the event fired from the
8113
- * delivery status, so it arrives on the same `message.sent` as any
8114
- * other WhatsApp send.
8109
+ * `platformMessageId` of the message this send is a quote-reply to.
8110
+ *
8111
+ * Present when the reply was sent through Zernio with `replyTo` on
8112
+ * the inbox send API (WhatsApp and Telegram). A WhatsApp API send
8113
+ * fires its `message.sent` off the delivery status, and the quote
8114
+ * reference is forwarded from the stored send there, so it arrives
8115
+ * on the same `message.sent` as any other WhatsApp send.
8116
+ *
8117
+ * Not delivered on Instagram echoes. Zernio forwards
8118
+ * `reply_to.mid` whenever Meta puts it on an echo, but on
8119
+ * Instagram Meta does not send it, so a reply the operator quoted
8120
+ * in the Instagram app arrives with no `quotedMessageId`.
8121
+ * Facebook Messenger rides a separate subscription
8122
+ * (`message_echoes`) and has not been measured, so treat it as
8123
+ * unverified rather than supported.
8124
+ *
8125
+ * Absent on WhatsApp Coexistence echoes. Meta omits the quote
8126
+ * context from `smb_message_echoes`, so a reply the operator sent
8127
+ * from the WhatsApp Business app arrives with no `quotedMessageId`
8128
+ * even though WhatsApp shows it as a quote-reply. Do not read the
8129
+ * absence of this field as "not a reply".
8115
8130
  *
8116
8131
  */
8117
8132
  quotedMessageId?: string;
@@ -19097,6 +19112,16 @@ export type GetInboxConversationMessagesResponse = ({
19097
19112
  */
19098
19113
  sortOrderApplied?: 'asc' | 'desc';
19099
19114
  messages?: Array<{
19115
+ /**
19116
+ * The platform's own message id: the `wamid` on WhatsApp, the
19117
+ * `mid` on Instagram and Facebook Messenger. This is what
19118
+ * `metadata.quotedMessageId` points at, the value to pass as
19119
+ * `replyTo` on the platforms that support quote-replies, and the
19120
+ * `{messageId}` segment of the attachment-resolve URL. Webhooks
19121
+ * deliver the same value as `message.platformMessageId`; this
19122
+ * response has no field by that name.
19123
+ *
19124
+ */
19100
19125
  id?: string;
19101
19126
  conversationId?: string;
19102
19127
  accountId?: string;
@@ -19192,7 +19217,8 @@ export type GetInboxConversationMessagesResponse = ({
19192
19217
  }>;
19193
19218
  /**
19194
19219
  * Platform-specific extras. Free-form, but commonly includes:
19195
- * `quotedMessageId` (platformMessageId this message replies to),
19220
+ * `quotedMessageId` (the `id` of the message this one replies to,
19221
+ * delivered as `message.platformMessageId` on webhooks),
19196
19222
  * `waInteractive` (a compact descriptor of WhatsApp interactive
19197
19223
  * content sent: buttons / list / cta_url / flow / location_request),
19198
19224
  * and for inbound interactive taps `interactiveType` / `interactiveId`.
@@ -19749,7 +19775,7 @@ export type SendInboxMessageData = {
19749
19775
  */
19750
19776
  messageTag?: 'CONFIRMED_EVENT_UPDATE' | 'POST_PURCHASE_UPDATE' | 'ACCOUNT_UPDATE' | 'HUMAN_AGENT';
19751
19777
  /**
19752
- * Platform message ID to quote-reply to. For WhatsApp, pass the wamid; for Telegram, the Telegram message ID (both available in message.platformMessageId from webhooks or the list-messages endpoint). On Slack it threads the reply (thread_ts) instead of quoting. Silently ignored on platforms without send-side reply support, including Instagram and Facebook Messenger (Meta's Send API rejects reply_to on Instagram and does not expose it on Messenger).
19778
+ * Platform message ID to quote-reply to. For WhatsApp, pass the wamid; for Telegram, the Telegram message ID (delivered as message.platformMessageId on webhooks, and as `id` on each entry of the list-messages endpoint). On Slack it threads the reply (thread_ts) instead of quoting. Silently ignored on platforms without send-side reply support, including Instagram and Facebook Messenger (Meta's Send API rejects reply_to on Instagram and does not expose it on Messenger).
19753
19779
  */
19754
19780
  replyTo?: string;
19755
19781
  /**