@getlatedev/node 0.2.1391 → 0.2.1393

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
@@ -27530,6 +27530,22 @@ type GetAllAccountsHealthResponse = ({
27530
27530
  */
27531
27531
  needsReconnect?: boolean;
27532
27532
  issues?: Array<(string)>;
27533
+ /**
27534
+ * User id of the profile owner, not necessarily the team member who connected the account.
27535
+ */
27536
+ ownerUserId?: string;
27537
+ /**
27538
+ * Why the connection is broken or its token refresh is failing, from the most recent current cause. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when no cause is stored.
27539
+ */
27540
+ disconnectReason?: (string) | null;
27541
+ /**
27542
+ * intentional: deliberately disconnected by the user or by Zernio (for example a plan downgrade), not a token failure. unintentional: token expired or revoked, or an auth failure. Null when disconnectReason is null.
27543
+ */
27544
+ disconnectionType?: ('intentional' | 'unintentional') | null;
27545
+ /**
27546
+ * When the earliest current stored cause was recorded (the start of the outage); for an intentional disconnect, when it was disconnected. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when the time is unknown.
27547
+ */
27548
+ unhealthySince?: (string) | null;
27533
27549
  /**
27534
27550
  * Absent on platforms without analytics sync. failing: several consecutive sync attempts failed. stalled: a sync was requested over 6 hours ago and never completed. never_synced: no sync has completed yet. Failing and stalled raise the account status to at least warning.
27535
27551
  */
@@ -27712,6 +27728,22 @@ type GetAccountHealthResponse = ({
27712
27728
  * Actionable recommendations to fix issues
27713
27729
  */
27714
27730
  recommendations?: Array<(string)>;
27731
+ /**
27732
+ * User id of the profile owner, not necessarily the team member who connected the account.
27733
+ */
27734
+ ownerUserId?: string;
27735
+ /**
27736
+ * Why the connection is broken or its token refresh is failing, from the most recent current cause. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when no cause is stored.
27737
+ */
27738
+ disconnectReason?: (string) | null;
27739
+ /**
27740
+ * intentional: deliberately disconnected by the user or by Zernio (for example a plan downgrade), not a token failure. unintentional: token expired or revoked, or an auth failure. Null when disconnectReason is null.
27741
+ */
27742
+ disconnectionType?: ('intentional' | 'unintentional') | null;
27743
+ /**
27744
+ * When the earliest current stored cause was recorded (the start of the outage); for an intentional disconnect, when it was disconnected. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when the time is unknown.
27745
+ */
27746
+ unhealthySince?: (string) | null;
27715
27747
  /**
27716
27748
  * Absent on platforms without analytics sync. failing: several consecutive sync attempts failed. stalled: a sync was requested over 6 hours ago and never completed. never_synced: no sync has completed yet. Failing and stalled raise the account status to at least warning.
27717
27749
  */
@@ -27779,9 +27811,9 @@ type GetAccountHealthResponse = ({
27779
27811
  message?: string;
27780
27812
  } | null;
27781
27813
  /**
27782
- * From the phone number's Meta health_status.
27814
+ * From the phone number's Meta health_status, overridden to `false` when subscribing the number's WhatsApp Business Account to Zernio's webhooks failed at connect.
27783
27815
  *
27784
- * - `false`: Meta says Zernio is not subscribed to the message webhook for this number, so inbound messages are not delivered, though the number is CONNECTED and can still send.
27816
+ * - `false`: Meta says Zernio is not subscribed to the message webhook for this number, or the subscribe failed when the number was connected, so inbound messages are not delivered, though the number is CONNECTED and can still send.
27785
27817
  * - `false`, fix: re-subscribe (reconnect the number). If it stays `false`, the number is routed to a different WhatsApp Business Account (typically after linking it to a Facebook Page).
27786
27818
  * - `true`: Meta reports no such problem.
27787
27819
  * - `null`: Meta did not report it (read failed or no health_status); not evidence either way.
package/dist/index.d.ts CHANGED
@@ -27530,6 +27530,22 @@ type GetAllAccountsHealthResponse = ({
27530
27530
  */
27531
27531
  needsReconnect?: boolean;
27532
27532
  issues?: Array<(string)>;
27533
+ /**
27534
+ * User id of the profile owner, not necessarily the team member who connected the account.
27535
+ */
27536
+ ownerUserId?: string;
27537
+ /**
27538
+ * Why the connection is broken or its token refresh is failing, from the most recent current cause. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when no cause is stored.
27539
+ */
27540
+ disconnectReason?: (string) | null;
27541
+ /**
27542
+ * intentional: deliberately disconnected by the user or by Zernio (for example a plan downgrade), not a token failure. unintentional: token expired or revoked, or an auth failure. Null when disconnectReason is null.
27543
+ */
27544
+ disconnectionType?: ('intentional' | 'unintentional') | null;
27545
+ /**
27546
+ * When the earliest current stored cause was recorded (the start of the outage); for an intentional disconnect, when it was disconnected. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when the time is unknown.
27547
+ */
27548
+ unhealthySince?: (string) | null;
27533
27549
  /**
27534
27550
  * Absent on platforms without analytics sync. failing: several consecutive sync attempts failed. stalled: a sync was requested over 6 hours ago and never completed. never_synced: no sync has completed yet. Failing and stalled raise the account status to at least warning.
27535
27551
  */
@@ -27712,6 +27728,22 @@ type GetAccountHealthResponse = ({
27712
27728
  * Actionable recommendations to fix issues
27713
27729
  */
27714
27730
  recommendations?: Array<(string)>;
27731
+ /**
27732
+ * User id of the profile owner, not necessarily the team member who connected the account.
27733
+ */
27734
+ ownerUserId?: string;
27735
+ /**
27736
+ * Why the connection is broken or its token refresh is failing, from the most recent current cause. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when no cause is stored.
27737
+ */
27738
+ disconnectReason?: (string) | null;
27739
+ /**
27740
+ * intentional: deliberately disconnected by the user or by Zernio (for example a plan downgrade), not a token failure. unintentional: token expired or revoked, or an auth failure. Null when disconnectReason is null.
27741
+ */
27742
+ disconnectionType?: ('intentional' | 'unintentional') | null;
27743
+ /**
27744
+ * When the earliest current stored cause was recorded (the start of the outage); for an intentional disconnect, when it was disconnected. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when the time is unknown.
27745
+ */
27746
+ unhealthySince?: (string) | null;
27715
27747
  /**
27716
27748
  * Absent on platforms without analytics sync. failing: several consecutive sync attempts failed. stalled: a sync was requested over 6 hours ago and never completed. never_synced: no sync has completed yet. Failing and stalled raise the account status to at least warning.
27717
27749
  */
@@ -27779,9 +27811,9 @@ type GetAccountHealthResponse = ({
27779
27811
  message?: string;
27780
27812
  } | null;
27781
27813
  /**
27782
- * From the phone number's Meta health_status.
27814
+ * From the phone number's Meta health_status, overridden to `false` when subscribing the number's WhatsApp Business Account to Zernio's webhooks failed at connect.
27783
27815
  *
27784
- * - `false`: Meta says Zernio is not subscribed to the message webhook for this number, so inbound messages are not delivered, though the number is CONNECTED and can still send.
27816
+ * - `false`: Meta says Zernio is not subscribed to the message webhook for this number, or the subscribe failed when the number was connected, so inbound messages are not delivered, though the number is CONNECTED and can still send.
27785
27817
  * - `false`, fix: re-subscribe (reconnect the number). If it stays `false`, the number is routed to a different WhatsApp Business Account (typically after linking it to a Facebook Page).
27786
27818
  * - `true`: Meta reports no such problem.
27787
27819
  * - `null`: Meta did not report it (read failed or no health_status); not evidence either way.
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.1391",
39
+ version: "0.2.1393",
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.1391",
8
+ version: "0.2.1393",
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.1391",
3
+ "version": "0.2.1393",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -2288,7 +2288,7 @@ export const verifyWhatsAppNumber = <ThrowOnError extends boolean = false>(optio
2288
2288
  * The OAuth token can be perfectly valid while Meta refuses to serve the phone-number object (for example after a phone-side coexistence disconnect). So `tokenStatus` alone is not a liveness signal for WhatsApp.
2289
2289
  *
2290
2290
  * - When the Meta link is dead, `platformConnection.status` is `disconnected` and the overall `status` is `error`.
2291
- * - When Meta reports that the number's inbound message webhook does not reach Zernio, `platformConnection.inboundWebhookSubscribed` is `false`, an entry is added to `issues`, and the overall `status` is at least `warning`.
2291
+ * - When Meta reports that the number's inbound message webhook does not reach Zernio, or subscribing the number's WhatsApp Business Account to Zernio's webhooks failed at connect, `platformConnection.inboundWebhookSubscribed` is `false`, an entry is added to `issues`, and the overall `status` is at least `warning`.
2292
2292
  *
2293
2293
  * ### Standalone ads connections (`googleads`, `redditads`)
2294
2294
  *
@@ -26526,6 +26526,22 @@ export type GetAllAccountsHealthResponse = ({
26526
26526
  */
26527
26527
  needsReconnect?: boolean;
26528
26528
  issues?: Array<(string)>;
26529
+ /**
26530
+ * User id of the profile owner, not necessarily the team member who connected the account.
26531
+ */
26532
+ ownerUserId?: string;
26533
+ /**
26534
+ * Why the connection is broken or its token refresh is failing, from the most recent current cause. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when no cause is stored.
26535
+ */
26536
+ disconnectReason?: (string) | null;
26537
+ /**
26538
+ * intentional: deliberately disconnected by the user or by Zernio (for example a plan downgrade), not a token failure. unintentional: token expired or revoked, or an auth failure. Null when disconnectReason is null.
26539
+ */
26540
+ disconnectionType?: ('intentional' | 'unintentional') | null;
26541
+ /**
26542
+ * When the earliest current stored cause was recorded (the start of the outage); for an intentional disconnect, when it was disconnected. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when the time is unknown.
26543
+ */
26544
+ unhealthySince?: (string) | null;
26529
26545
  /**
26530
26546
  * Absent on platforms without analytics sync. failing: several consecutive sync attempts failed. stalled: a sync was requested over 6 hours ago and never completed. never_synced: no sync has completed yet. Failing and stalled raise the account status to at least warning.
26531
26547
  */
@@ -26720,6 +26736,22 @@ export type GetAccountHealthResponse = ({
26720
26736
  * Actionable recommendations to fix issues
26721
26737
  */
26722
26738
  recommendations?: Array<(string)>;
26739
+ /**
26740
+ * User id of the profile owner, not necessarily the team member who connected the account.
26741
+ */
26742
+ ownerUserId?: string;
26743
+ /**
26744
+ * Why the connection is broken or its token refresh is failing, from the most recent current cause. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when no cause is stored.
26745
+ */
26746
+ disconnectReason?: (string) | null;
26747
+ /**
26748
+ * intentional: deliberately disconnected by the user or by Zernio (for example a plan downgrade), not a token failure. unintentional: token expired or revoked, or an auth failure. Null when disconnectReason is null.
26749
+ */
26750
+ disconnectionType?: ('intentional' | 'unintentional') | null;
26751
+ /**
26752
+ * When the earliest current stored cause was recorded (the start of the outage); for an intentional disconnect, when it was disconnected. Null when the connection is healthy, including when the account is unhealthy for another reason (analytics, messaging restriction, missing analytics scopes), or when the time is unknown.
26753
+ */
26754
+ unhealthySince?: (string) | null;
26723
26755
  /**
26724
26756
  * Absent on platforms without analytics sync. failing: several consecutive sync attempts failed. stalled: a sync was requested over 6 hours ago and never completed. never_synced: no sync has completed yet. Failing and stalled raise the account status to at least warning.
26725
26757
  */
@@ -26787,9 +26819,9 @@ export type GetAccountHealthResponse = ({
26787
26819
  message?: string;
26788
26820
  } | null;
26789
26821
  /**
26790
- * From the phone number's Meta health_status.
26822
+ * From the phone number's Meta health_status, overridden to `false` when subscribing the number's WhatsApp Business Account to Zernio's webhooks failed at connect.
26791
26823
  *
26792
- * - `false`: Meta says Zernio is not subscribed to the message webhook for this number, so inbound messages are not delivered, though the number is CONNECTED and can still send.
26824
+ * - `false`: Meta says Zernio is not subscribed to the message webhook for this number, or the subscribe failed when the number was connected, so inbound messages are not delivered, though the number is CONNECTED and can still send.
26793
26825
  * - `false`, fix: re-subscribe (reconnect the number). If it stays `false`, the number is routed to a different WhatsApp Business Account (typically after linking it to a Facebook Page).
26794
26826
  * - `true`: Meta reports no such problem.
26795
26827
  * - `null`: Meta did not report it (read failed or no health_status); not evidence either way.