@zernio/node 0.2.509 → 0.2.511

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
@@ -7341,9 +7341,17 @@ type WebhookPayloadMessage = {
7341
7341
  conversation: InboxWebhookConversation;
7342
7342
  account: InboxWebhookAccount;
7343
7343
  /**
7344
- * Interactive message metadata (present when message is a quick reply tap, postback button tap, or inline keyboard callback)
7344
+ * Platform-specific message context (present when the message is a quick reply tap, postback button tap, inline keyboard callback, or a quote-reply to an earlier message)
7345
7345
  */
7346
7346
  metadata?: {
7347
+ /**
7348
+ * platformMessageId of the message this one is a quote-reply to.
7349
+ * WhatsApp (`context.id`), Instagram and Facebook Messenger
7350
+ * (`reply_to.mid`). On `message.sent` echoes (operator replied
7351
+ * from the native app) this is the only metadata field populated.
7352
+ *
7353
+ */
7354
+ quotedMessageId?: string;
7347
7355
  /**
7348
7356
  * Payload from a quick reply tap (Facebook/Instagram Messenger).
7349
7357
  */
@@ -17069,7 +17077,7 @@ type SendInboxMessageData = {
17069
17077
  */
17070
17078
  messageTag?: 'CONFIRMED_EVENT_UPDATE' | 'POST_PURCHASE_UPDATE' | 'ACCOUNT_UPDATE' | 'HUMAN_AGENT';
17071
17079
  /**
17072
- * Platform message ID to quote-reply to. For WhatsApp, pass the wamid (available in message.platformMessageId from webhooks). For Telegram, pass the Telegram message ID.
17080
+ * Platform message ID to quote-reply to. For WhatsApp, pass the wamid; for Telegram, the Telegram message ID; for Instagram, the Meta mid (all 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 reply support, including Facebook Messenger (Meta's Messenger Send API has no reply_to).
17073
17081
  */
17074
17082
  replyTo?: string;
17075
17083
  /**
@@ -28457,7 +28465,9 @@ type CreateStandaloneAdData = {
28457
28465
  * with "The language asset feed includes an unsupported targeting field"
28458
28466
  * (subcode 1885985).
28459
28467
  *
28460
- * Media DOES inherit and is uploaded once when shared. Note that Meta enforces
28468
+ * Media DOES inherit and is uploaded once when shared, and `linkUrl` inherits
28469
+ * too: each locale may name its own landing page and unlisted locales fall back
28470
+ * to the ad's top-level `linkUrl`. Note that Meta enforces
28461
28471
  * Dynamic Creative image dimensions on language feeds, so an `imageUrl` that
28462
28472
  * works on a normal ad may be rejected with "The following images have invalid
28463
28473
  * dimensions for Dynamic Creative" (subcode 1885558). Video is not affected.
@@ -28483,6 +28493,10 @@ type CreateStandaloneAdData = {
28483
28493
  * Link description for this language. REQUIRED, and must differ from every other locale and from the ad's top-level description.
28484
28494
  */
28485
28495
  description: string;
28496
+ /**
28497
+ * Destination URL for this language. Inherits the ad's top-level `linkUrl` when omitted, and requires it to be present (400 otherwise): the top-level URL is the destination for every locale you did not override. Unlike text, identical URLs across locales are fine (they share one asset).
28498
+ */
28499
+ linkUrl?: string;
28486
28500
  /**
28487
28501
  * Image for this language. Inherits the ad's `imageUrl` when omitted. The feed is all-image OR all-video.
28488
28502
  */
package/dist/index.d.ts CHANGED
@@ -7341,9 +7341,17 @@ type WebhookPayloadMessage = {
7341
7341
  conversation: InboxWebhookConversation;
7342
7342
  account: InboxWebhookAccount;
7343
7343
  /**
7344
- * Interactive message metadata (present when message is a quick reply tap, postback button tap, or inline keyboard callback)
7344
+ * Platform-specific message context (present when the message is a quick reply tap, postback button tap, inline keyboard callback, or a quote-reply to an earlier message)
7345
7345
  */
7346
7346
  metadata?: {
7347
+ /**
7348
+ * platformMessageId of the message this one is a quote-reply to.
7349
+ * WhatsApp (`context.id`), Instagram and Facebook Messenger
7350
+ * (`reply_to.mid`). On `message.sent` echoes (operator replied
7351
+ * from the native app) this is the only metadata field populated.
7352
+ *
7353
+ */
7354
+ quotedMessageId?: string;
7347
7355
  /**
7348
7356
  * Payload from a quick reply tap (Facebook/Instagram Messenger).
7349
7357
  */
@@ -17069,7 +17077,7 @@ type SendInboxMessageData = {
17069
17077
  */
17070
17078
  messageTag?: 'CONFIRMED_EVENT_UPDATE' | 'POST_PURCHASE_UPDATE' | 'ACCOUNT_UPDATE' | 'HUMAN_AGENT';
17071
17079
  /**
17072
- * Platform message ID to quote-reply to. For WhatsApp, pass the wamid (available in message.platformMessageId from webhooks). For Telegram, pass the Telegram message ID.
17080
+ * Platform message ID to quote-reply to. For WhatsApp, pass the wamid; for Telegram, the Telegram message ID; for Instagram, the Meta mid (all 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 reply support, including Facebook Messenger (Meta's Messenger Send API has no reply_to).
17073
17081
  */
17074
17082
  replyTo?: string;
17075
17083
  /**
@@ -28457,7 +28465,9 @@ type CreateStandaloneAdData = {
28457
28465
  * with "The language asset feed includes an unsupported targeting field"
28458
28466
  * (subcode 1885985).
28459
28467
  *
28460
- * Media DOES inherit and is uploaded once when shared. Note that Meta enforces
28468
+ * Media DOES inherit and is uploaded once when shared, and `linkUrl` inherits
28469
+ * too: each locale may name its own landing page and unlisted locales fall back
28470
+ * to the ad's top-level `linkUrl`. Note that Meta enforces
28461
28471
  * Dynamic Creative image dimensions on language feeds, so an `imageUrl` that
28462
28472
  * works on a normal ad may be rejected with "The following images have invalid
28463
28473
  * dimensions for Dynamic Creative" (subcode 1885558). Video is not affected.
@@ -28483,6 +28493,10 @@ type CreateStandaloneAdData = {
28483
28493
  * Link description for this language. REQUIRED, and must differ from every other locale and from the ad's top-level description.
28484
28494
  */
28485
28495
  description: string;
28496
+ /**
28497
+ * Destination URL for this language. Inherits the ad's top-level `linkUrl` when omitted, and requires it to be present (400 otherwise): the top-level URL is the destination for every locale you did not override. Unlike text, identical URLs across locales are fine (they share one asset).
28498
+ */
28499
+ linkUrl?: string;
28486
28500
  /**
28487
28501
  * Image for this language. Inherits the ad's `imageUrl` when omitted. The feed is all-image OR all-video.
28488
28502
  */
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.509",
39
+ version: "0.2.511",
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.509",
8
+ version: "0.2.511",
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.509",
3
+ "version": "0.2.511",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -6367,9 +6367,17 @@ export type WebhookPayloadMessage = {
6367
6367
  conversation: InboxWebhookConversation;
6368
6368
  account: InboxWebhookAccount;
6369
6369
  /**
6370
- * Interactive message metadata (present when message is a quick reply tap, postback button tap, or inline keyboard callback)
6370
+ * Platform-specific message context (present when the message is a quick reply tap, postback button tap, inline keyboard callback, or a quote-reply to an earlier message)
6371
6371
  */
6372
6372
  metadata?: {
6373
+ /**
6374
+ * platformMessageId of the message this one is a quote-reply to.
6375
+ * WhatsApp (`context.id`), Instagram and Facebook Messenger
6376
+ * (`reply_to.mid`). On `message.sent` echoes (operator replied
6377
+ * from the native app) this is the only metadata field populated.
6378
+ *
6379
+ */
6380
+ quotedMessageId?: string;
6373
6381
  /**
6374
6382
  * Payload from a quick reply tap (Facebook/Instagram Messenger).
6375
6383
  */
@@ -16734,7 +16742,7 @@ export type SendInboxMessageData = {
16734
16742
  */
16735
16743
  messageTag?: 'CONFIRMED_EVENT_UPDATE' | 'POST_PURCHASE_UPDATE' | 'ACCOUNT_UPDATE' | 'HUMAN_AGENT';
16736
16744
  /**
16737
- * Platform message ID to quote-reply to. For WhatsApp, pass the wamid (available in message.platformMessageId from webhooks). For Telegram, pass the Telegram message ID.
16745
+ * Platform message ID to quote-reply to. For WhatsApp, pass the wamid; for Telegram, the Telegram message ID; for Instagram, the Meta mid (all 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 reply support, including Facebook Messenger (Meta's Messenger Send API has no reply_to).
16738
16746
  */
16739
16747
  replyTo?: string;
16740
16748
  /**
@@ -28995,7 +29003,9 @@ export type CreateStandaloneAdData = {
28995
29003
  * with "The language asset feed includes an unsupported targeting field"
28996
29004
  * (subcode 1885985).
28997
29005
  *
28998
- * Media DOES inherit and is uploaded once when shared. Note that Meta enforces
29006
+ * Media DOES inherit and is uploaded once when shared, and `linkUrl` inherits
29007
+ * too: each locale may name its own landing page and unlisted locales fall back
29008
+ * to the ad's top-level `linkUrl`. Note that Meta enforces
28999
29009
  * Dynamic Creative image dimensions on language feeds, so an `imageUrl` that
29000
29010
  * works on a normal ad may be rejected with "The following images have invalid
29001
29011
  * dimensions for Dynamic Creative" (subcode 1885558). Video is not affected.
@@ -29021,6 +29031,10 @@ export type CreateStandaloneAdData = {
29021
29031
  * Link description for this language. REQUIRED, and must differ from every other locale and from the ad's top-level description.
29022
29032
  */
29023
29033
  description: string;
29034
+ /**
29035
+ * Destination URL for this language. Inherits the ad's top-level `linkUrl` when omitted, and requires it to be present (400 otherwise): the top-level URL is the destination for every locale you did not override. Unlike text, identical URLs across locales are fine (they share one asset).
29036
+ */
29037
+ linkUrl?: string;
29024
29038
  /**
29025
29039
  * Image for this language. Inherits the ad's `imageUrl` when omitted. The feed is all-image OR all-video.
29026
29040
  */