@zernio/node 0.2.1830 → 0.2.1832

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
@@ -3187,7 +3187,7 @@ type Ad = {
3187
3187
  */
3188
3188
  pageId?: (string) | null;
3189
3189
  /**
3190
- * Meta `effective_instagram_media_id`, the Instagram media ID of the boosted post the ad's engagement lives on. Pass to GET /v1/ads?effectiveInstagramMediaId= to map a Business-Manager-visible IG post back to this ad.
3190
+ * Meta `effective_instagram_media_id`, the Instagram media the ad's engagement lives on. For a boosted reel it can differ from the reel you boosted: Meta's promoted rendition, not a duplicate. Pass to GET /v1/ads?effectiveInstagramMediaId= to map a Business-Manager-visible IG post back to this ad.
3191
3191
  */
3192
3192
  effectiveInstagramMediaId?: (string) | null;
3193
3193
  /**
@@ -31382,12 +31382,34 @@ type WebhookPayloadMessageSent = {
31382
31382
  conversation: InboxWebhookConversation;
31383
31383
  account: InboxWebhookAccount;
31384
31384
  /**
31385
- * 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.
31385
+ * 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.
31386
31386
  *
31387
31387
  * 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.
31388
31388
  *
31389
31389
  */
31390
31390
  metadata?: {
31391
+ /**
31392
+ * 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.
31393
+ *
31394
+ */
31395
+ unsupported?: {
31396
+ /**
31397
+ * Meta's numeric error code (e.g. 131051).
31398
+ */
31399
+ code?: number;
31400
+ /**
31401
+ * Meta's short error title.
31402
+ */
31403
+ title?: string;
31404
+ /**
31405
+ * Meta's human-readable error detail string.
31406
+ */
31407
+ details?: string;
31408
+ /**
31409
+ * Meta's name for the content WhatsApp could not deliver, e.g. unknown or album. Absent when Meta sends none.
31410
+ */
31411
+ type?: string;
31412
+ };
31391
31413
  /**
31392
31414
  * 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.
31393
31415
  */
@@ -65987,7 +66009,7 @@ type ListAdsData = {
65987
66009
  */
65988
66010
  campaignId?: string;
65989
66011
  /**
65990
- * Instagram media ID of the boosted post (Meta `effective_instagram_media_id`). Use to map a Business-Manager-visible IG post back to the Zernio ad.
66012
+ * Instagram media ID of the boosted post (Meta `effective_instagram_media_id`). Use to map a Business-Manager-visible IG post back to the Zernio ad. For a boosted reel it can differ from the media ID you boosted (`platformPostId`), so filter by the ID shown on the ad, not the original reel ID.
65991
66013
  */
65992
66014
  effectiveInstagramMediaId?: string;
65993
66015
  /**
package/dist/index.d.ts CHANGED
@@ -3187,7 +3187,7 @@ type Ad = {
3187
3187
  */
3188
3188
  pageId?: (string) | null;
3189
3189
  /**
3190
- * Meta `effective_instagram_media_id`, the Instagram media ID of the boosted post the ad's engagement lives on. Pass to GET /v1/ads?effectiveInstagramMediaId= to map a Business-Manager-visible IG post back to this ad.
3190
+ * Meta `effective_instagram_media_id`, the Instagram media the ad's engagement lives on. For a boosted reel it can differ from the reel you boosted: Meta's promoted rendition, not a duplicate. Pass to GET /v1/ads?effectiveInstagramMediaId= to map a Business-Manager-visible IG post back to this ad.
3191
3191
  */
3192
3192
  effectiveInstagramMediaId?: (string) | null;
3193
3193
  /**
@@ -31382,12 +31382,34 @@ type WebhookPayloadMessageSent = {
31382
31382
  conversation: InboxWebhookConversation;
31383
31383
  account: InboxWebhookAccount;
31384
31384
  /**
31385
- * 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.
31385
+ * 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.
31386
31386
  *
31387
31387
  * 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.
31388
31388
  *
31389
31389
  */
31390
31390
  metadata?: {
31391
+ /**
31392
+ * 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.
31393
+ *
31394
+ */
31395
+ unsupported?: {
31396
+ /**
31397
+ * Meta's numeric error code (e.g. 131051).
31398
+ */
31399
+ code?: number;
31400
+ /**
31401
+ * Meta's short error title.
31402
+ */
31403
+ title?: string;
31404
+ /**
31405
+ * Meta's human-readable error detail string.
31406
+ */
31407
+ details?: string;
31408
+ /**
31409
+ * Meta's name for the content WhatsApp could not deliver, e.g. unknown or album. Absent when Meta sends none.
31410
+ */
31411
+ type?: string;
31412
+ };
31391
31413
  /**
31392
31414
  * 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.
31393
31415
  */
@@ -65987,7 +66009,7 @@ type ListAdsData = {
65987
66009
  */
65988
66010
  campaignId?: string;
65989
66011
  /**
65990
- * Instagram media ID of the boosted post (Meta `effective_instagram_media_id`). Use to map a Business-Manager-visible IG post back to the Zernio ad.
66012
+ * Instagram media ID of the boosted post (Meta `effective_instagram_media_id`). Use to map a Business-Manager-visible IG post back to the Zernio ad. For a boosted reel it can differ from the media ID you boosted (`platformPostId`), so filter by the ID shown on the ad, not the original reel ID.
65991
66013
  */
65992
66014
  effectiveInstagramMediaId?: string;
65993
66015
  /**
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.1830",
39
+ version: "0.2.1832",
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.1830",
8
+ version: "0.2.1832",
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.1830",
3
+ "version": "0.2.1832",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -554,7 +554,7 @@ export type Ad = {
554
554
  */
555
555
  pageId?: (string) | null;
556
556
  /**
557
- * Meta `effective_instagram_media_id`, the Instagram media ID of the boosted post the ad's engagement lives on. Pass to GET /v1/ads?effectiveInstagramMediaId= to map a Business-Manager-visible IG post back to this ad.
557
+ * Meta `effective_instagram_media_id`, the Instagram media the ad's engagement lives on. For a boosted reel it can differ from the reel you boosted: Meta's promoted rendition, not a duplicate. Pass to GET /v1/ads?effectiveInstagramMediaId= to map a Business-Manager-visible IG post back to this ad.
558
558
  */
559
559
  effectiveInstagramMediaId?: (string) | null;
560
560
  /**
@@ -30009,12 +30009,34 @@ 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, 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, 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 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
+ *
30021
+ */
30022
+ unsupported?: {
30023
+ /**
30024
+ * Meta's numeric error code (e.g. 131051).
30025
+ */
30026
+ code?: number;
30027
+ /**
30028
+ * Meta's short error title.
30029
+ */
30030
+ title?: string;
30031
+ /**
30032
+ * Meta's human-readable error detail string.
30033
+ */
30034
+ details?: string;
30035
+ /**
30036
+ * Meta's name for the content WhatsApp could not deliver, e.g. unknown or album. Absent when Meta sends none.
30037
+ */
30038
+ type?: string;
30039
+ };
30018
30040
  /**
30019
30041
  * 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.
30020
30042
  */
@@ -67133,7 +67155,7 @@ export type ListAdsData = {
67133
67155
  */
67134
67156
  campaignId?: string;
67135
67157
  /**
67136
- * Instagram media ID of the boosted post (Meta `effective_instagram_media_id`). Use to map a Business-Manager-visible IG post back to the Zernio ad.
67158
+ * Instagram media ID of the boosted post (Meta `effective_instagram_media_id`). Use to map a Business-Manager-visible IG post back to the Zernio ad. For a boosted reel it can differ from the media ID you boosted (`platformPostId`), so filter by the ID shown on the ad, not the original reel ID.
67137
67159
  */
67138
67160
  effectiveInstagramMediaId?: string;
67139
67161
  /**