@getlatedev/node 0.2.1777 → 0.2.1779
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 +22 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +6 -2
- package/src/generated/types.gen.ts +22 -0
package/dist/index.d.mts
CHANGED
|
@@ -40078,6 +40078,28 @@ type GetAccountHealthResponse = ({
|
|
|
40078
40078
|
*/
|
|
40079
40079
|
pausedUntil?: (string) | null;
|
|
40080
40080
|
} | null;
|
|
40081
|
+
/**
|
|
40082
|
+
* WhatsApp accounts only. The outcome of the latest chat history request Zernio sent Meta for a coexistence number, read from the account (not a live probe). Null when no request ran for the current connection, and on numbers that are not in coexistence.
|
|
40083
|
+
*/
|
|
40084
|
+
coexistenceHistorySync?: {
|
|
40085
|
+
/**
|
|
40086
|
+
* - `requested`: Meta accepted the request and has not sent history yet, which can take a while.
|
|
40087
|
+
* - `imported`: Meta sent chat history to this account, including history a reconnect kept.
|
|
40088
|
+
* - `declined`: the business chose not to share its chat history in Meta's window.
|
|
40089
|
+
* - `already_synced`: Meta refused the request because an earlier connection already used the number's one history share. The description above says how to get a new import.
|
|
40090
|
+
* - `refused`: Meta refused it for another reason.
|
|
40091
|
+
*
|
|
40092
|
+
*/
|
|
40093
|
+
status?: 'requested' | 'imported' | 'declined' | 'already_synced' | 'refused';
|
|
40094
|
+
/**
|
|
40095
|
+
* The id of the last history request Meta accepted, kept across reconnects. Quote it in a Meta support case.
|
|
40096
|
+
*/
|
|
40097
|
+
requestId?: (string) | null;
|
|
40098
|
+
/**
|
|
40099
|
+
* When Meta refused the latest request. Null when it was accepted.
|
|
40100
|
+
*/
|
|
40101
|
+
refusedAt?: (string) | null;
|
|
40102
|
+
} | null;
|
|
40081
40103
|
/**
|
|
40082
40104
|
* WhatsApp accounts only. Live probe of the Meta link behind the channel, performed at request time (the same read as GET /v1/whatsapp/number-info).
|
|
40083
40105
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -40078,6 +40078,28 @@ type GetAccountHealthResponse = ({
|
|
|
40078
40078
|
*/
|
|
40079
40079
|
pausedUntil?: (string) | null;
|
|
40080
40080
|
} | null;
|
|
40081
|
+
/**
|
|
40082
|
+
* WhatsApp accounts only. The outcome of the latest chat history request Zernio sent Meta for a coexistence number, read from the account (not a live probe). Null when no request ran for the current connection, and on numbers that are not in coexistence.
|
|
40083
|
+
*/
|
|
40084
|
+
coexistenceHistorySync?: {
|
|
40085
|
+
/**
|
|
40086
|
+
* - `requested`: Meta accepted the request and has not sent history yet, which can take a while.
|
|
40087
|
+
* - `imported`: Meta sent chat history to this account, including history a reconnect kept.
|
|
40088
|
+
* - `declined`: the business chose not to share its chat history in Meta's window.
|
|
40089
|
+
* - `already_synced`: Meta refused the request because an earlier connection already used the number's one history share. The description above says how to get a new import.
|
|
40090
|
+
* - `refused`: Meta refused it for another reason.
|
|
40091
|
+
*
|
|
40092
|
+
*/
|
|
40093
|
+
status?: 'requested' | 'imported' | 'declined' | 'already_synced' | 'refused';
|
|
40094
|
+
/**
|
|
40095
|
+
* The id of the last history request Meta accepted, kept across reconnects. Quote it in a Meta support case.
|
|
40096
|
+
*/
|
|
40097
|
+
requestId?: (string) | null;
|
|
40098
|
+
/**
|
|
40099
|
+
* When Meta refused the latest request. Null when it was accepted.
|
|
40100
|
+
*/
|
|
40101
|
+
refusedAt?: (string) | null;
|
|
40102
|
+
} | null;
|
|
40081
40103
|
/**
|
|
40082
40104
|
* WhatsApp accounts only. Live probe of the Meta link behind the channel, performed at request time (the same read as GET /v1/whatsapp/number-info).
|
|
40083
40105
|
*/
|
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.1779",
|
|
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.1779",
|
|
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
|
@@ -3058,6 +3058,9 @@ export const verifyWhatsAppNumber = <ThrowOnError extends boolean = false>(optio
|
|
|
3058
3058
|
* - 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.
|
|
3059
3059
|
* - When Meta reports `platformConnection.canSendMessage` as `BLOCKED` (for example a payment-method error on the WhatsApp Business Account), an entry is added to `issues` with Meta's own reason, the recommendation is Meta's suggested fix, and the overall `status` is at least `warning`. `LIMITED` does not change `status`. Reconnecting does not lift it.
|
|
3060
3060
|
* - When sends to one country keep failing with error 130497 (3 failures within 7 days, none delivered there since), an entry naming the country is added to `issues` and `status` is at least `warning`. The recommendation says how Meta lifts it. A delivered send there clears it.
|
|
3061
|
+
* - `coexistenceHistorySync` reports the latest chat history request of a coexistence number. Meta shares a number's chat history only once until the number is disconnected inside the WhatsApp Business app.
|
|
3062
|
+
* - When Meta refused because an earlier connection already used it (Meta error 135000, or 4 after rapid reconnects) and this account holds no imported history, `coexistenceHistorySync.status` is `already_synced` and an entry is added to `issues`. It never changes the overall `status`.
|
|
3063
|
+
* - The recommendation then gives the steps that get a new import: disconnect inside the WhatsApp Business app (Settings > Account > Business Platform), then connect the number again. Removing the account in Zernio and connecting it again does not.
|
|
3061
3064
|
*
|
|
3062
3065
|
* ### LINE
|
|
3063
3066
|
*
|
|
@@ -17182,8 +17185,9 @@ export const getCampaignAnalytics = <ThrowOnError extends boolean = false>(optio
|
|
|
17182
17185
|
* Render pre-create ad previews
|
|
17183
17186
|
* Shows how a Meta creative will look in each placement before you create the ad, as embeddable previews.
|
|
17184
17187
|
*
|
|
17185
|
-
* Renders how a creative would look per placement BEFORE any ad exists
|
|
17186
|
-
*
|
|
17188
|
+
* Renders how a creative would look per placement BEFORE any ad exists. Provide exactly one
|
|
17189
|
+
* creative source: `creativeSpec` renders via Meta's `/generatepreviews`, `existingCreativeId`
|
|
17190
|
+
* via Meta's `/{creative_id}/previews`.
|
|
17187
17191
|
* Each preview is an HTML `<iframe>` snippet embeddable directly. Unknown `formats` values
|
|
17188
17192
|
* return Meta's 400 verbatim.
|
|
17189
17193
|
*
|
|
@@ -39256,6 +39256,28 @@ export type GetAccountHealthResponse = ({
|
|
|
39256
39256
|
*/
|
|
39257
39257
|
pausedUntil?: (string) | null;
|
|
39258
39258
|
} | null;
|
|
39259
|
+
/**
|
|
39260
|
+
* WhatsApp accounts only. The outcome of the latest chat history request Zernio sent Meta for a coexistence number, read from the account (not a live probe). Null when no request ran for the current connection, and on numbers that are not in coexistence.
|
|
39261
|
+
*/
|
|
39262
|
+
coexistenceHistorySync?: {
|
|
39263
|
+
/**
|
|
39264
|
+
* - `requested`: Meta accepted the request and has not sent history yet, which can take a while.
|
|
39265
|
+
* - `imported`: Meta sent chat history to this account, including history a reconnect kept.
|
|
39266
|
+
* - `declined`: the business chose not to share its chat history in Meta's window.
|
|
39267
|
+
* - `already_synced`: Meta refused the request because an earlier connection already used the number's one history share. The description above says how to get a new import.
|
|
39268
|
+
* - `refused`: Meta refused it for another reason.
|
|
39269
|
+
*
|
|
39270
|
+
*/
|
|
39271
|
+
status?: 'requested' | 'imported' | 'declined' | 'already_synced' | 'refused';
|
|
39272
|
+
/**
|
|
39273
|
+
* The id of the last history request Meta accepted, kept across reconnects. Quote it in a Meta support case.
|
|
39274
|
+
*/
|
|
39275
|
+
requestId?: (string) | null;
|
|
39276
|
+
/**
|
|
39277
|
+
* When Meta refused the latest request. Null when it was accepted.
|
|
39278
|
+
*/
|
|
39279
|
+
refusedAt?: (string) | null;
|
|
39280
|
+
} | null;
|
|
39259
39281
|
/**
|
|
39260
39282
|
* WhatsApp accounts only. Live probe of the Meta link behind the channel, performed at request time (the same read as GET /v1/whatsapp/number-info).
|
|
39261
39283
|
*/
|