@getlatedev/node 0.2.1416 → 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 +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +1 -0
- package/src/generated/types.gen.ts +6 -3
package/dist/index.d.mts
CHANGED
|
@@ -28110,6 +28110,9 @@ type GetAccountHealthResponse = ({
|
|
|
28110
28110
|
granted?: boolean;
|
|
28111
28111
|
required?: boolean;
|
|
28112
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
|
+
*/
|
|
28113
28116
|
canPost?: boolean;
|
|
28114
28117
|
canFetchAnalytics?: boolean;
|
|
28115
28118
|
missingRequired?: Array<(string)>;
|
|
@@ -28127,7 +28130,7 @@ type GetAccountHealthResponse = ({
|
|
|
28127
28130
|
*/
|
|
28128
28131
|
ownerUserId?: string;
|
|
28129
28132
|
/**
|
|
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.
|
|
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.
|
|
28131
28134
|
*/
|
|
28132
28135
|
disconnectReason?: (string) | null;
|
|
28133
28136
|
/**
|
|
@@ -28135,7 +28138,7 @@ type GetAccountHealthResponse = ({
|
|
|
28135
28138
|
*/
|
|
28136
28139
|
disconnectionType?: ('intentional' | 'unintentional') | null;
|
|
28137
28140
|
/**
|
|
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
|
|
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.
|
|
28139
28142
|
*/
|
|
28140
28143
|
unhealthySince?: (string) | null;
|
|
28141
28144
|
/**
|
|
@@ -28187,7 +28190,7 @@ type GetAccountHealthResponse = ({
|
|
|
28187
28190
|
*/
|
|
28188
28191
|
checkedAt?: string;
|
|
28189
28192
|
/**
|
|
28190
|
-
* 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).
|
|
28191
28194
|
*/
|
|
28192
28195
|
phoneStatus?: (string) | null;
|
|
28193
28196
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -28110,6 +28110,9 @@ type GetAccountHealthResponse = ({
|
|
|
28110
28110
|
granted?: boolean;
|
|
28111
28111
|
required?: boolean;
|
|
28112
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
|
+
*/
|
|
28113
28116
|
canPost?: boolean;
|
|
28114
28117
|
canFetchAnalytics?: boolean;
|
|
28115
28118
|
missingRequired?: Array<(string)>;
|
|
@@ -28127,7 +28130,7 @@ type GetAccountHealthResponse = ({
|
|
|
28127
28130
|
*/
|
|
28128
28131
|
ownerUserId?: string;
|
|
28129
28132
|
/**
|
|
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.
|
|
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.
|
|
28131
28134
|
*/
|
|
28132
28135
|
disconnectReason?: (string) | null;
|
|
28133
28136
|
/**
|
|
@@ -28135,7 +28138,7 @@ type GetAccountHealthResponse = ({
|
|
|
28135
28138
|
*/
|
|
28136
28139
|
disconnectionType?: ('intentional' | 'unintentional') | null;
|
|
28137
28140
|
/**
|
|
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
|
|
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.
|
|
28139
28142
|
*/
|
|
28140
28143
|
unhealthySince?: (string) | null;
|
|
28141
28144
|
/**
|
|
@@ -28187,7 +28190,7 @@ type GetAccountHealthResponse = ({
|
|
|
28187
28190
|
*/
|
|
28188
28191
|
checkedAt?: string;
|
|
28189
28192
|
/**
|
|
28190
|
-
* 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).
|
|
28191
28194
|
*/
|
|
28192
28195
|
phoneStatus?: (string) | null;
|
|
28193
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.
|
|
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.
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -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
|
*
|
|
@@ -27118,6 +27118,9 @@ export type GetAccountHealthResponse = ({
|
|
|
27118
27118
|
granted?: boolean;
|
|
27119
27119
|
required?: boolean;
|
|
27120
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
|
+
*/
|
|
27121
27124
|
canPost?: boolean;
|
|
27122
27125
|
canFetchAnalytics?: boolean;
|
|
27123
27126
|
missingRequired?: Array<(string)>;
|
|
@@ -27135,7 +27138,7 @@ export type GetAccountHealthResponse = ({
|
|
|
27135
27138
|
*/
|
|
27136
27139
|
ownerUserId?: string;
|
|
27137
27140
|
/**
|
|
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.
|
|
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.
|
|
27139
27142
|
*/
|
|
27140
27143
|
disconnectReason?: (string) | null;
|
|
27141
27144
|
/**
|
|
@@ -27143,7 +27146,7 @@ export type GetAccountHealthResponse = ({
|
|
|
27143
27146
|
*/
|
|
27144
27147
|
disconnectionType?: ('intentional' | 'unintentional') | null;
|
|
27145
27148
|
/**
|
|
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
|
|
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.
|
|
27147
27150
|
*/
|
|
27148
27151
|
unhealthySince?: (string) | null;
|
|
27149
27152
|
/**
|
|
@@ -27195,7 +27198,7 @@ export type GetAccountHealthResponse = ({
|
|
|
27195
27198
|
*/
|
|
27196
27199
|
checkedAt?: string;
|
|
27197
27200
|
/**
|
|
27198
|
-
* 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).
|
|
27199
27202
|
*/
|
|
27200
27203
|
phoneStatus?: (string) | null;
|
|
27201
27204
|
/**
|