@getlatedev/node 0.2.254 → 0.2.255

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
@@ -5254,6 +5254,14 @@ type WebhookPayloadMessageDeliveryStatus = {
5254
5254
  code?: number;
5255
5255
  title?: string;
5256
5256
  message?: string;
5257
+ /**
5258
+ * Plain-language translation of `code` (e.g. for 131026, that the
5259
+ * recipient has likely opted out of marketing messages while utility
5260
+ * templates are unaffected). Null for unmapped codes; fall back to
5261
+ * title/message.
5262
+ *
5263
+ */
5264
+ explanation?: (string) | null;
5257
5265
  } | null;
5258
5266
  conversation: InboxWebhookConversation;
5259
5267
  account: InboxWebhookAccount;
@@ -17011,6 +17019,10 @@ type ListBroadcastRecipientsResponse = ({
17011
17019
  * Meta WhatsApp error code (e.g. 131049 for antispam, 131021 for invalid phone, 131026 for re-engagement required). Only populated for status=failed.
17012
17020
  */
17013
17021
  errorCode?: (number) | null;
17022
+ /**
17023
+ * Plain-language translation of errorCode (e.g. for 131026, that the recipient has likely opted out of marketing messages). Null for unmapped codes; fall back to error.
17024
+ */
17025
+ errorExplanation?: (string) | null;
17014
17026
  sentAt?: string;
17015
17027
  deliveredAt?: string;
17016
17028
  readAt?: string;
package/dist/index.d.ts CHANGED
@@ -5254,6 +5254,14 @@ type WebhookPayloadMessageDeliveryStatus = {
5254
5254
  code?: number;
5255
5255
  title?: string;
5256
5256
  message?: string;
5257
+ /**
5258
+ * Plain-language translation of `code` (e.g. for 131026, that the
5259
+ * recipient has likely opted out of marketing messages while utility
5260
+ * templates are unaffected). Null for unmapped codes; fall back to
5261
+ * title/message.
5262
+ *
5263
+ */
5264
+ explanation?: (string) | null;
5257
5265
  } | null;
5258
5266
  conversation: InboxWebhookConversation;
5259
5267
  account: InboxWebhookAccount;
@@ -17011,6 +17019,10 @@ type ListBroadcastRecipientsResponse = ({
17011
17019
  * Meta WhatsApp error code (e.g. 131049 for antispam, 131021 for invalid phone, 131026 for re-engagement required). Only populated for status=failed.
17012
17020
  */
17013
17021
  errorCode?: (number) | null;
17022
+ /**
17023
+ * Plain-language translation of errorCode (e.g. for 131026, that the recipient has likely opted out of marketing messages). Null for unmapped codes; fall back to error.
17024
+ */
17025
+ errorExplanation?: (string) | null;
17014
17026
  sentAt?: string;
17015
17027
  deliveredAt?: string;
17016
17028
  readAt?: string;
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.254",
39
+ version: "0.2.255",
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.254",
8
+ version: "0.2.255",
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.254",
3
+ "version": "0.2.255",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -4692,6 +4692,14 @@ export type WebhookPayloadMessageDeliveryStatus = {
4692
4692
  code?: number;
4693
4693
  title?: string;
4694
4694
  message?: string;
4695
+ /**
4696
+ * Plain-language translation of `code` (e.g. for 131026, that the
4697
+ * recipient has likely opted out of marketing messages while utility
4698
+ * templates are unaffected). Null for unmapped codes; fall back to
4699
+ * title/message.
4700
+ *
4701
+ */
4702
+ explanation?: (string) | null;
4695
4703
  } | null;
4696
4704
  conversation: InboxWebhookConversation;
4697
4705
  account: InboxWebhookAccount;
@@ -17357,6 +17365,10 @@ export type ListBroadcastRecipientsResponse = ({
17357
17365
  * Meta WhatsApp error code (e.g. 131049 for antispam, 131021 for invalid phone, 131026 for re-engagement required). Only populated for status=failed.
17358
17366
  */
17359
17367
  errorCode?: (number) | null;
17368
+ /**
17369
+ * Plain-language translation of errorCode (e.g. for 131026, that the recipient has likely opted out of marketing messages). Null for unmapped codes; fall back to error.
17370
+ */
17371
+ errorExplanation?: (string) | null;
17360
17372
  sentAt?: string;
17361
17373
  deliveredAt?: string;
17362
17374
  readAt?: string;