@getlatedev/node 0.2.1415 → 0.2.1417

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
@@ -14692,7 +14692,17 @@ type PlatformTarget = {
14692
14692
  */
14693
14693
  publishRetries?: number;
14694
14694
  /**
14695
- * Human-readable error message when status is failed. Contains platform-specific error details explaining why the publish failed.
14695
+ * Human-readable reason this target has not published yet, or why it failed.
14696
+ *
14697
+ * - Failed entries: why the publish failed, with the platform's error details.
14698
+ * - Pending entries: why the publish has not gone out yet, for example the last temporary error while Zernio retries the publish automatically, or a posting limit notice.
14699
+ *
14700
+ * A posting limit holds the post with the notice "This post is queued and will publish automatically after <timestamp>".
14701
+ *
14702
+ * The limits are the hourly posting velocity limit and, on a TikTok account connected through the TikTok for Business app, the daily cap of 15 videos and 15 photo posts.
14703
+ *
14704
+ * A held post keeps status pending and its scheduledFor moves to that timestamp. It is not failed.
14705
+ *
14696
14706
  */
14697
14707
  errorMessage?: string;
14698
14708
  /**
@@ -28100,6 +28110,9 @@ type GetAccountHealthResponse = ({
28100
28110
  granted?: boolean;
28101
28111
  required?: boolean;
28102
28112
  }>;
28113
+ /**
28114
+ * Whether the granted OAuth scopes allow posting. Scopes only: for WhatsApp, whether Meta lets the number send is `platformConnection.phoneStatus` and the overall `status`.
28115
+ */
28103
28116
  canPost?: boolean;
28104
28117
  canFetchAnalytics?: boolean;
28105
28118
  missingRequired?: Array<(string)>;
@@ -28117,7 +28130,7 @@ type GetAccountHealthResponse = ({
28117
28130
  */
28118
28131
  ownerUserId?: string;
28119
28132
  /**
28120
- * 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.
28133
+ * 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, Meta phone status), or when no cause is stored.
28121
28134
  */
28122
28135
  disconnectReason?: (string) | null;
28123
28136
  /**
@@ -28125,7 +28138,7 @@ type GetAccountHealthResponse = ({
28125
28138
  */
28126
28139
  disconnectionType?: ('intentional' | 'unintentional') | null;
28127
28140
  /**
28128
- * 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.
28141
+ * 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, Meta phone status), or when unknown.
28129
28142
  */
28130
28143
  unhealthySince?: (string) | null;
28131
28144
  /**
@@ -28177,7 +28190,7 @@ type GetAccountHealthResponse = ({
28177
28190
  */
28178
28191
  checkedAt?: string;
28179
28192
  /**
28180
- * Meta's own `status` field from the phone-number node (for example CONNECTED), when the object was readable
28193
+ * Meta's own `status` field from the phone-number node (for example CONNECTED), when the object was readable. Anything other than CONNECTED adds an issue and raises `status` (BANNED: error, others: warning).
28181
28194
  */
28182
28195
  phoneStatus?: (string) | null;
28183
28196
  /**
package/dist/index.d.ts CHANGED
@@ -14692,7 +14692,17 @@ type PlatformTarget = {
14692
14692
  */
14693
14693
  publishRetries?: number;
14694
14694
  /**
14695
- * Human-readable error message when status is failed. Contains platform-specific error details explaining why the publish failed.
14695
+ * Human-readable reason this target has not published yet, or why it failed.
14696
+ *
14697
+ * - Failed entries: why the publish failed, with the platform's error details.
14698
+ * - Pending entries: why the publish has not gone out yet, for example the last temporary error while Zernio retries the publish automatically, or a posting limit notice.
14699
+ *
14700
+ * A posting limit holds the post with the notice "This post is queued and will publish automatically after <timestamp>".
14701
+ *
14702
+ * The limits are the hourly posting velocity limit and, on a TikTok account connected through the TikTok for Business app, the daily cap of 15 videos and 15 photo posts.
14703
+ *
14704
+ * A held post keeps status pending and its scheduledFor moves to that timestamp. It is not failed.
14705
+ *
14696
14706
  */
14697
14707
  errorMessage?: string;
14698
14708
  /**
@@ -28100,6 +28110,9 @@ type GetAccountHealthResponse = ({
28100
28110
  granted?: boolean;
28101
28111
  required?: boolean;
28102
28112
  }>;
28113
+ /**
28114
+ * Whether the granted OAuth scopes allow posting. Scopes only: for WhatsApp, whether Meta lets the number send is `platformConnection.phoneStatus` and the overall `status`.
28115
+ */
28103
28116
  canPost?: boolean;
28104
28117
  canFetchAnalytics?: boolean;
28105
28118
  missingRequired?: Array<(string)>;
@@ -28117,7 +28130,7 @@ type GetAccountHealthResponse = ({
28117
28130
  */
28118
28131
  ownerUserId?: string;
28119
28132
  /**
28120
- * 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.
28133
+ * 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, Meta phone status), or when no cause is stored.
28121
28134
  */
28122
28135
  disconnectReason?: (string) | null;
28123
28136
  /**
@@ -28125,7 +28138,7 @@ type GetAccountHealthResponse = ({
28125
28138
  */
28126
28139
  disconnectionType?: ('intentional' | 'unintentional') | null;
28127
28140
  /**
28128
- * 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.
28141
+ * 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, Meta phone status), or when unknown.
28129
28142
  */
28130
28143
  unhealthySince?: (string) | null;
28131
28144
  /**
@@ -28177,7 +28190,7 @@ type GetAccountHealthResponse = ({
28177
28190
  */
28178
28191
  checkedAt?: string;
28179
28192
  /**
28180
- * Meta's own `status` field from the phone-number node (for example CONNECTED), when the object was readable
28193
+ * Meta's own `status` field from the phone-number node (for example CONNECTED), when the object was readable. Anything other than CONNECTED adds an issue and raises `status` (BANNED: error, others: warning).
28181
28194
  */
28182
28195
  phoneStatus?: (string) | null;
28183
28196
  /**
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.1415",
39
+ version: "0.2.1417",
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.1415",
8
+ version: "0.2.1417",
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.1415",
3
+ "version": "0.2.1417",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -2359,6 +2359,7 @@ export const verifyWhatsAppNumber = <ThrowOnError extends boolean = false>(optio
2359
2359
  *
2360
2360
  * - When the Meta link is dead, `platformConnection.status` is `disconnected` and the overall `status` is `error`.
2361
2361
  * - 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`.
2362
+ * - When `platformConnection.phoneStatus` is anything other than `CONNECTED`, an entry is added to `issues` and the overall `status` is at least `warning`; `BANNED` makes it `error`. `disconnectReason` stays null, since reconnecting does not lift a Meta status.
2362
2363
  *
2363
2364
  * ### Standalone ads connections (`googleads`, `redditads`)
2364
2365
  *
@@ -12975,7 +12975,17 @@ export type PlatformTarget = {
12975
12975
  */
12976
12976
  publishRetries?: number;
12977
12977
  /**
12978
- * Human-readable error message when status is failed. Contains platform-specific error details explaining why the publish failed.
12978
+ * Human-readable reason this target has not published yet, or why it failed.
12979
+ *
12980
+ * - Failed entries: why the publish failed, with the platform's error details.
12981
+ * - Pending entries: why the publish has not gone out yet, for example the last temporary error while Zernio retries the publish automatically, or a posting limit notice.
12982
+ *
12983
+ * A posting limit holds the post with the notice "This post is queued and will publish automatically after <timestamp>".
12984
+ *
12985
+ * The limits are the hourly posting velocity limit and, on a TikTok account connected through the TikTok for Business app, the daily cap of 15 videos and 15 photo posts.
12986
+ *
12987
+ * A held post keeps status pending and its scheduledFor moves to that timestamp. It is not failed.
12988
+ *
12979
12989
  */
12980
12990
  errorMessage?: string;
12981
12991
  /**
@@ -27108,6 +27118,9 @@ export type GetAccountHealthResponse = ({
27108
27118
  granted?: boolean;
27109
27119
  required?: boolean;
27110
27120
  }>;
27121
+ /**
27122
+ * Whether the granted OAuth scopes allow posting. Scopes only: for WhatsApp, whether Meta lets the number send is `platformConnection.phoneStatus` and the overall `status`.
27123
+ */
27111
27124
  canPost?: boolean;
27112
27125
  canFetchAnalytics?: boolean;
27113
27126
  missingRequired?: Array<(string)>;
@@ -27125,7 +27138,7 @@ export type GetAccountHealthResponse = ({
27125
27138
  */
27126
27139
  ownerUserId?: string;
27127
27140
  /**
27128
- * 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.
27141
+ * 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, Meta phone status), or when no cause is stored.
27129
27142
  */
27130
27143
  disconnectReason?: (string) | null;
27131
27144
  /**
@@ -27133,7 +27146,7 @@ export type GetAccountHealthResponse = ({
27133
27146
  */
27134
27147
  disconnectionType?: ('intentional' | 'unintentional') | null;
27135
27148
  /**
27136
- * 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.
27149
+ * 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, Meta phone status), or when unknown.
27137
27150
  */
27138
27151
  unhealthySince?: (string) | null;
27139
27152
  /**
@@ -27185,7 +27198,7 @@ export type GetAccountHealthResponse = ({
27185
27198
  */
27186
27199
  checkedAt?: string;
27187
27200
  /**
27188
- * Meta's own `status` field from the phone-number node (for example CONNECTED), when the object was readable
27201
+ * Meta's own `status` field from the phone-number node (for example CONNECTED), when the object was readable. Anything other than CONNECTED adds an issue and raises `status` (BANNED: error, others: warning).
27189
27202
  */
27190
27203
  phoneStatus?: (string) | null;
27191
27204
  /**