@getlatedev/node 0.2.1416 → 0.2.1418

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
@@ -10372,6 +10372,10 @@ type FacebookPlatformData = {
10372
10372
  * Optional first comment to post immediately after publishing (feed posts and reels, not stories). Skipped when facebookSettings.draft is true.
10373
10373
  */
10374
10374
  firstComment?: string;
10375
+ /**
10376
+ * When true, Facebook shows its AI-disclosure label on the post. Forwarded as is_ai_generated on Reels (contentType=reel) and video Stories (contentType=story with a video). Meta documents no such parameter for feed posts, feed videos or photo Stories, so the flag is accepted with a warning and no label there.
10377
+ */
10378
+ isAiGenerated?: boolean;
10375
10379
  /**
10376
10380
  * Target Facebook Page ID for multi-page posting. If omitted, uses the default page. Use GET /v1/accounts/{id}/facebook-page to list pages.
10377
10381
  */
@@ -28110,6 +28114,9 @@ type GetAccountHealthResponse = ({
28110
28114
  granted?: boolean;
28111
28115
  required?: boolean;
28112
28116
  }>;
28117
+ /**
28118
+ * Whether the granted OAuth scopes allow posting. Scopes only: for WhatsApp, whether Meta lets the number send is `platformConnection.phoneStatus` and the overall `status`.
28119
+ */
28113
28120
  canPost?: boolean;
28114
28121
  canFetchAnalytics?: boolean;
28115
28122
  missingRequired?: Array<(string)>;
@@ -28127,7 +28134,7 @@ type GetAccountHealthResponse = ({
28127
28134
  */
28128
28135
  ownerUserId?: string;
28129
28136
  /**
28130
- * 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.
28137
+ * 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.
28131
28138
  */
28132
28139
  disconnectReason?: (string) | null;
28133
28140
  /**
@@ -28135,7 +28142,7 @@ type GetAccountHealthResponse = ({
28135
28142
  */
28136
28143
  disconnectionType?: ('intentional' | 'unintentional') | null;
28137
28144
  /**
28138
- * 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.
28145
+ * 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.
28139
28146
  */
28140
28147
  unhealthySince?: (string) | null;
28141
28148
  /**
@@ -28187,7 +28194,7 @@ type GetAccountHealthResponse = ({
28187
28194
  */
28188
28195
  checkedAt?: string;
28189
28196
  /**
28190
- * Meta's own `status` field from the phone-number node (for example CONNECTED), when the object was readable
28197
+ * 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).
28191
28198
  */
28192
28199
  phoneStatus?: (string) | null;
28193
28200
  /**
package/dist/index.d.ts CHANGED
@@ -10372,6 +10372,10 @@ type FacebookPlatformData = {
10372
10372
  * Optional first comment to post immediately after publishing (feed posts and reels, not stories). Skipped when facebookSettings.draft is true.
10373
10373
  */
10374
10374
  firstComment?: string;
10375
+ /**
10376
+ * When true, Facebook shows its AI-disclosure label on the post. Forwarded as is_ai_generated on Reels (contentType=reel) and video Stories (contentType=story with a video). Meta documents no such parameter for feed posts, feed videos or photo Stories, so the flag is accepted with a warning and no label there.
10377
+ */
10378
+ isAiGenerated?: boolean;
10375
10379
  /**
10376
10380
  * Target Facebook Page ID for multi-page posting. If omitted, uses the default page. Use GET /v1/accounts/{id}/facebook-page to list pages.
10377
10381
  */
@@ -28110,6 +28114,9 @@ type GetAccountHealthResponse = ({
28110
28114
  granted?: boolean;
28111
28115
  required?: boolean;
28112
28116
  }>;
28117
+ /**
28118
+ * Whether the granted OAuth scopes allow posting. Scopes only: for WhatsApp, whether Meta lets the number send is `platformConnection.phoneStatus` and the overall `status`.
28119
+ */
28113
28120
  canPost?: boolean;
28114
28121
  canFetchAnalytics?: boolean;
28115
28122
  missingRequired?: Array<(string)>;
@@ -28127,7 +28134,7 @@ type GetAccountHealthResponse = ({
28127
28134
  */
28128
28135
  ownerUserId?: string;
28129
28136
  /**
28130
- * 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.
28137
+ * 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.
28131
28138
  */
28132
28139
  disconnectReason?: (string) | null;
28133
28140
  /**
@@ -28135,7 +28142,7 @@ type GetAccountHealthResponse = ({
28135
28142
  */
28136
28143
  disconnectionType?: ('intentional' | 'unintentional') | null;
28137
28144
  /**
28138
- * 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.
28145
+ * 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.
28139
28146
  */
28140
28147
  unhealthySince?: (string) | null;
28141
28148
  /**
@@ -28187,7 +28194,7 @@ type GetAccountHealthResponse = ({
28187
28194
  */
28188
28195
  checkedAt?: string;
28189
28196
  /**
28190
- * Meta's own `status` field from the phone-number node (for example CONNECTED), when the object was readable
28197
+ * 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).
28191
28198
  */
28192
28199
  phoneStatus?: (string) | null;
28193
28200
  /**
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.1416",
39
+ version: "0.2.1418",
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.1416",
8
+ version: "0.2.1418",
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.1416",
3
+ "version": "0.2.1418",
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
  *
@@ -8447,6 +8447,10 @@ export type FacebookPlatformData = {
8447
8447
  * Optional first comment to post immediately after publishing (feed posts and reels, not stories). Skipped when facebookSettings.draft is true.
8448
8448
  */
8449
8449
  firstComment?: string;
8450
+ /**
8451
+ * When true, Facebook shows its AI-disclosure label on the post. Forwarded as is_ai_generated on Reels (contentType=reel) and video Stories (contentType=story with a video). Meta documents no such parameter for feed posts, feed videos or photo Stories, so the flag is accepted with a warning and no label there.
8452
+ */
8453
+ isAiGenerated?: boolean;
8450
8454
  /**
8451
8455
  * Target Facebook Page ID for multi-page posting. If omitted, uses the default page. Use GET /v1/accounts/{id}/facebook-page to list pages.
8452
8456
  */
@@ -27118,6 +27122,9 @@ export type GetAccountHealthResponse = ({
27118
27122
  granted?: boolean;
27119
27123
  required?: boolean;
27120
27124
  }>;
27125
+ /**
27126
+ * Whether the granted OAuth scopes allow posting. Scopes only: for WhatsApp, whether Meta lets the number send is `platformConnection.phoneStatus` and the overall `status`.
27127
+ */
27121
27128
  canPost?: boolean;
27122
27129
  canFetchAnalytics?: boolean;
27123
27130
  missingRequired?: Array<(string)>;
@@ -27135,7 +27142,7 @@ export type GetAccountHealthResponse = ({
27135
27142
  */
27136
27143
  ownerUserId?: string;
27137
27144
  /**
27138
- * 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.
27145
+ * 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.
27139
27146
  */
27140
27147
  disconnectReason?: (string) | null;
27141
27148
  /**
@@ -27143,7 +27150,7 @@ export type GetAccountHealthResponse = ({
27143
27150
  */
27144
27151
  disconnectionType?: ('intentional' | 'unintentional') | null;
27145
27152
  /**
27146
- * 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.
27153
+ * 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.
27147
27154
  */
27148
27155
  unhealthySince?: (string) | null;
27149
27156
  /**
@@ -27195,7 +27202,7 @@ export type GetAccountHealthResponse = ({
27195
27202
  */
27196
27203
  checkedAt?: string;
27197
27204
  /**
27198
- * Meta's own `status` field from the phone-number node (for example CONNECTED), when the object was readable
27205
+ * 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).
27199
27206
  */
27200
27207
  phoneStatus?: (string) | null;
27201
27208
  /**