@zernio/node 0.2.707 → 0.2.708

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
@@ -19474,7 +19474,7 @@ type CreateInboxConversationResponse = ({
19474
19474
  });
19475
19475
  type CreateInboxConversationError = ({
19476
19476
  error?: string;
19477
- code?: 'PLATFORM_NOT_SUPPORTED';
19477
+ code?: 'PLATFORM_NOT_SUPPORTED' | 'PLATFORM_LIMITATION' | 'TEMPLATE_REQUIRED' | 'INVALID_TEMPLATE_PARAMS' | 'INVALID_TEMPLATE_BUTTON_PARAM' | 'DIRECT_SEND_NOT_ELIGIBLE' | 'DIRECT_SEND_LIMITED' | 'DIRECT_SEND_BLOCKED';
19478
19478
  } | {
19479
19479
  error?: string;
19480
19480
  } | unknown | {
@@ -20572,9 +20572,9 @@ type SendInboxMessageResponse = ({
20572
20572
  type SendInboxMessageError = ({
20573
20573
  error?: string;
20574
20574
  /**
20575
- * Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to.
20575
+ * Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to; DIRECT_SEND_NOT_ELIGIBLE and DIRECT_SEND_BLOCKED mean the WhatsApp Business Account needs Meta to grant or restore Direct Send access; DIRECT_SEND_LIMITED is temporary, Meta lifts it on its own.
20576
20576
  */
20577
- code?: 'PLATFORM_LIMITATION' | 'MISSING_PARTICIPANT';
20577
+ code?: 'PLATFORM_LIMITATION' | 'MISSING_PARTICIPANT' | 'DIRECT_SEND_NOT_ELIGIBLE' | 'DIRECT_SEND_LIMITED' | 'DIRECT_SEND_BLOCKED';
20578
20578
  /**
20579
20579
  * Instagram/Facebook only. Meta's own diagnostic fields for the rejected send, passed through verbatim so you can tell failure classes apart and quote them to Meta. Absent when the failure did not come from Meta.
20580
20580
  */
package/dist/index.d.ts CHANGED
@@ -19474,7 +19474,7 @@ type CreateInboxConversationResponse = ({
19474
19474
  });
19475
19475
  type CreateInboxConversationError = ({
19476
19476
  error?: string;
19477
- code?: 'PLATFORM_NOT_SUPPORTED';
19477
+ code?: 'PLATFORM_NOT_SUPPORTED' | 'PLATFORM_LIMITATION' | 'TEMPLATE_REQUIRED' | 'INVALID_TEMPLATE_PARAMS' | 'INVALID_TEMPLATE_BUTTON_PARAM' | 'DIRECT_SEND_NOT_ELIGIBLE' | 'DIRECT_SEND_LIMITED' | 'DIRECT_SEND_BLOCKED';
19478
19478
  } | {
19479
19479
  error?: string;
19480
19480
  } | unknown | {
@@ -20572,9 +20572,9 @@ type SendInboxMessageResponse = ({
20572
20572
  type SendInboxMessageError = ({
20573
20573
  error?: string;
20574
20574
  /**
20575
- * Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to.
20575
+ * Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to; DIRECT_SEND_NOT_ELIGIBLE and DIRECT_SEND_BLOCKED mean the WhatsApp Business Account needs Meta to grant or restore Direct Send access; DIRECT_SEND_LIMITED is temporary, Meta lifts it on its own.
20576
20576
  */
20577
- code?: 'PLATFORM_LIMITATION' | 'MISSING_PARTICIPANT';
20577
+ code?: 'PLATFORM_LIMITATION' | 'MISSING_PARTICIPANT' | 'DIRECT_SEND_NOT_ELIGIBLE' | 'DIRECT_SEND_LIMITED' | 'DIRECT_SEND_BLOCKED';
20578
20578
  /**
20579
20579
  * Instagram/Facebook only. Meta's own diagnostic fields for the rejected send, passed through verbatim so you can tell failure classes apart and quote them to Meta. Absent when the failure did not come from Meta.
20580
20580
  */
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.707",
39
+ version: "0.2.708",
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.707",
8
+ version: "0.2.708",
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.707",
3
+ "version": "0.2.708",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -19119,7 +19119,7 @@ export type CreateInboxConversationResponse = ({
19119
19119
 
19120
19120
  export type CreateInboxConversationError = ({
19121
19121
  error?: string;
19122
- code?: 'PLATFORM_NOT_SUPPORTED';
19122
+ code?: 'PLATFORM_NOT_SUPPORTED' | 'PLATFORM_LIMITATION' | 'TEMPLATE_REQUIRED' | 'INVALID_TEMPLATE_PARAMS' | 'INVALID_TEMPLATE_BUTTON_PARAM' | 'DIRECT_SEND_NOT_ELIGIBLE' | 'DIRECT_SEND_LIMITED' | 'DIRECT_SEND_BLOCKED';
19123
19123
  } | {
19124
19124
  error?: string;
19125
19125
  } | unknown | {
@@ -20232,9 +20232,9 @@ export type SendInboxMessageResponse = ({
20232
20232
  export type SendInboxMessageError = ({
20233
20233
  error?: string;
20234
20234
  /**
20235
- * Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to.
20235
+ * Stable machine-readable reason. PLATFORM_LIMITATION covers a capability the platform does not offer (e.g. Bluesky and Reddit DMs reject media); MISSING_PARTICIPANT means the stored conversation has no recipient to send to; DIRECT_SEND_NOT_ELIGIBLE and DIRECT_SEND_BLOCKED mean the WhatsApp Business Account needs Meta to grant or restore Direct Send access; DIRECT_SEND_LIMITED is temporary, Meta lifts it on its own.
20236
20236
  */
20237
- code?: 'PLATFORM_LIMITATION' | 'MISSING_PARTICIPANT';
20237
+ code?: 'PLATFORM_LIMITATION' | 'MISSING_PARTICIPANT' | 'DIRECT_SEND_NOT_ELIGIBLE' | 'DIRECT_SEND_LIMITED' | 'DIRECT_SEND_BLOCKED';
20238
20238
  /**
20239
20239
  * Instagram/Facebook only. Meta's own diagnostic fields for the rejected send, passed through verbatim so you can tell failure classes apart and quote them to Meta. Absent when the failure did not come from Meta.
20240
20240
  */