@zernio/node 0.2.1037 → 0.2.1039
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 +12 -4
- package/dist/index.d.ts +12 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +5 -2
- package/src/generated/types.gen.ts +12 -4
package/dist/index.d.mts
CHANGED
|
@@ -11618,7 +11618,7 @@ type TargetingSpec = {
|
|
|
11618
11618
|
name?: string;
|
|
11619
11619
|
}>;
|
|
11620
11620
|
/**
|
|
11621
|
-
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior (Meta and
|
|
11621
|
+
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior (Meta, TikTok and LinkedIn). On TikTok they target people who interacted with videos (watched to the end, liked, commented or shared, last 15 days) or creators (followed or viewed the profile) in the picked categories, and the ad group uses the TikTok placement only.
|
|
11622
11622
|
*/
|
|
11623
11623
|
behaviors?: Array<{
|
|
11624
11624
|
id: string;
|
|
@@ -19220,7 +19220,7 @@ type GetAllAccountsHealthResponse = ({
|
|
|
19220
19220
|
needsReconnect?: boolean;
|
|
19221
19221
|
issues?: Array<(string)>;
|
|
19222
19222
|
/**
|
|
19223
|
-
* Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction.
|
|
19223
|
+
* Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction. After subcode 1893063 (Meta refusing the Page's messages), comment automation DMs are held and one is retried at `pausedUntil`: 30 minutes, doubling per refused retry up to 4 hours; held DMs stay pending and are sent once Meta accepts again, within the 7-day private-reply window.
|
|
19224
19224
|
*/
|
|
19225
19225
|
messagingRestriction?: {
|
|
19226
19226
|
/**
|
|
@@ -19234,6 +19234,10 @@ type GetAllAccountsHealthResponse = ({
|
|
|
19234
19234
|
message?: (string) | null;
|
|
19235
19235
|
firstSeenAt?: string;
|
|
19236
19236
|
lastSeenAt?: string;
|
|
19237
|
+
/**
|
|
19238
|
+
* When held automation DMs are next retried. Null when nothing is held.
|
|
19239
|
+
*/
|
|
19240
|
+
pausedUntil?: (string) | null;
|
|
19237
19241
|
} | null;
|
|
19238
19242
|
}>;
|
|
19239
19243
|
});
|
|
@@ -19372,7 +19376,7 @@ type GetAccountHealthResponse = ({
|
|
|
19372
19376
|
*/
|
|
19373
19377
|
recommendations?: Array<(string)>;
|
|
19374
19378
|
/**
|
|
19375
|
-
* Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction.
|
|
19379
|
+
* Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction. After subcode 1893063 (Meta refusing the Page's messages), comment automation DMs are held and one is retried at `pausedUntil`: 30 minutes, doubling per refused retry up to 4 hours; held DMs stay pending and are sent once Meta accepts again, within the 7-day private-reply window.
|
|
19376
19380
|
*/
|
|
19377
19381
|
messagingRestriction?: {
|
|
19378
19382
|
/**
|
|
@@ -19386,6 +19390,10 @@ type GetAccountHealthResponse = ({
|
|
|
19386
19390
|
message?: (string) | null;
|
|
19387
19391
|
firstSeenAt?: string;
|
|
19388
19392
|
lastSeenAt?: string;
|
|
19393
|
+
/**
|
|
19394
|
+
* When held automation DMs are next retried. Null when nothing is held.
|
|
19395
|
+
*/
|
|
19396
|
+
pausedUntil?: (string) | null;
|
|
19389
19397
|
} | null;
|
|
19390
19398
|
/**
|
|
19391
19399
|
* 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).
|
|
@@ -45484,7 +45492,7 @@ type CreateStandaloneAdData = {
|
|
|
45484
45492
|
address?: string;
|
|
45485
45493
|
}>;
|
|
45486
45494
|
/**
|
|
45487
|
-
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior (Meta and
|
|
45495
|
+
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior (Meta, TikTok and LinkedIn). On TikTok they target people who interacted with videos (watched to the end, liked, commented or shared, last 15 days) or creators (followed or viewed the profile) in the picked categories, and the ad group uses the TikTok placement only. Each must include id.
|
|
45488
45496
|
*/
|
|
45489
45497
|
behaviors?: Array<{
|
|
45490
45498
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -11618,7 +11618,7 @@ type TargetingSpec = {
|
|
|
11618
11618
|
name?: string;
|
|
11619
11619
|
}>;
|
|
11620
11620
|
/**
|
|
11621
|
-
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior (Meta and
|
|
11621
|
+
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior (Meta, TikTok and LinkedIn). On TikTok they target people who interacted with videos (watched to the end, liked, commented or shared, last 15 days) or creators (followed or viewed the profile) in the picked categories, and the ad group uses the TikTok placement only.
|
|
11622
11622
|
*/
|
|
11623
11623
|
behaviors?: Array<{
|
|
11624
11624
|
id: string;
|
|
@@ -19220,7 +19220,7 @@ type GetAllAccountsHealthResponse = ({
|
|
|
19220
19220
|
needsReconnect?: boolean;
|
|
19221
19221
|
issues?: Array<(string)>;
|
|
19222
19222
|
/**
|
|
19223
|
-
* Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction.
|
|
19223
|
+
* Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction. After subcode 1893063 (Meta refusing the Page's messages), comment automation DMs are held and one is retried at `pausedUntil`: 30 minutes, doubling per refused retry up to 4 hours; held DMs stay pending and are sent once Meta accepts again, within the 7-day private-reply window.
|
|
19224
19224
|
*/
|
|
19225
19225
|
messagingRestriction?: {
|
|
19226
19226
|
/**
|
|
@@ -19234,6 +19234,10 @@ type GetAllAccountsHealthResponse = ({
|
|
|
19234
19234
|
message?: (string) | null;
|
|
19235
19235
|
firstSeenAt?: string;
|
|
19236
19236
|
lastSeenAt?: string;
|
|
19237
|
+
/**
|
|
19238
|
+
* When held automation DMs are next retried. Null when nothing is held.
|
|
19239
|
+
*/
|
|
19240
|
+
pausedUntil?: (string) | null;
|
|
19237
19241
|
} | null;
|
|
19238
19242
|
}>;
|
|
19239
19243
|
});
|
|
@@ -19372,7 +19376,7 @@ type GetAccountHealthResponse = ({
|
|
|
19372
19376
|
*/
|
|
19373
19377
|
recommendations?: Array<(string)>;
|
|
19374
19378
|
/**
|
|
19375
|
-
* Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction.
|
|
19379
|
+
* Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction. After subcode 1893063 (Meta refusing the Page's messages), comment automation DMs are held and one is retried at `pausedUntil`: 30 minutes, doubling per refused retry up to 4 hours; held DMs stay pending and are sent once Meta accepts again, within the 7-day private-reply window.
|
|
19376
19380
|
*/
|
|
19377
19381
|
messagingRestriction?: {
|
|
19378
19382
|
/**
|
|
@@ -19386,6 +19390,10 @@ type GetAccountHealthResponse = ({
|
|
|
19386
19390
|
message?: (string) | null;
|
|
19387
19391
|
firstSeenAt?: string;
|
|
19388
19392
|
lastSeenAt?: string;
|
|
19393
|
+
/**
|
|
19394
|
+
* When held automation DMs are next retried. Null when nothing is held.
|
|
19395
|
+
*/
|
|
19396
|
+
pausedUntil?: (string) | null;
|
|
19389
19397
|
} | null;
|
|
19390
19398
|
/**
|
|
19391
19399
|
* 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).
|
|
@@ -45484,7 +45492,7 @@ type CreateStandaloneAdData = {
|
|
|
45484
45492
|
address?: string;
|
|
45485
45493
|
}>;
|
|
45486
45494
|
/**
|
|
45487
|
-
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior (Meta and
|
|
45495
|
+
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior (Meta, TikTok and LinkedIn). On TikTok they target people who interacted with videos (watched to the end, liked, commented or shared, last 15 days) or creators (followed or viewed the profile) in the picked categories, and the ad group uses the TikTok placement only. Each must include id.
|
|
45488
45496
|
*/
|
|
45489
45497
|
behaviors?: Array<{
|
|
45490
45498
|
id: string;
|
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: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1039",
|
|
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: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1039",
|
|
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
|
@@ -12001,11 +12001,14 @@ export const searchAdInterests = <ThrowOnError extends boolean = false>(options:
|
|
|
12001
12001
|
*
|
|
12002
12002
|
* - `geo`: locations, further scoped by `geoType`
|
|
12003
12003
|
* - `interest`
|
|
12004
|
-
* - `behavior`: Meta and
|
|
12004
|
+
* - `behavior`: Meta, TikTok and LinkedIn, matched by name; ids feed `TargetingSpec.behaviors`.
|
|
12005
12005
|
* Meta: its fixed behaviors catalog (e.g. `Small business owners`, `Frequent Travelers`).
|
|
12006
12006
|
* TikTok: video and creator interaction categories (e.g. `Software & Apps`), with ids like
|
|
12007
12007
|
* `video:1913101` or `creator:24001` and `path` starting with `Video interactions` or
|
|
12008
|
-
* `Creator interactions`
|
|
12008
|
+
* `Creator interactions`. LinkedIn: member behaviors (e.g. `Frequent Travelers`,
|
|
12009
|
+
* `Job Seekers`, `Recently Promoted`), ids like `urn:li:memberBehavior:9`. Google has no
|
|
12010
|
+
* separate behavior catalog: its in-market and affinity segments come back from `interest`,
|
|
12011
|
+
* and X removed behavior targeting from its Ads API
|
|
12009
12012
|
* - `income`: the household-income tiers the platform can target (Meta, TikTok, Google).
|
|
12010
12013
|
* The id is the normalized tier (`top_5`, `top_10`, `top_10_25`, `top_25_50`) to pass as
|
|
12011
12014
|
* `TargetingSpec.incomeTier`, never a platform segment id. Meta's tiers are US-only
|
|
@@ -10096,7 +10096,7 @@ export type TargetingSpec = {
|
|
|
10096
10096
|
name?: string;
|
|
10097
10097
|
}>;
|
|
10098
10098
|
/**
|
|
10099
|
-
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior (Meta and
|
|
10099
|
+
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior (Meta, TikTok and LinkedIn). On TikTok they target people who interacted with videos (watched to the end, liked, commented or shared, last 15 days) or creators (followed or viewed the profile) in the picked categories, and the ad group uses the TikTok placement only.
|
|
10100
10100
|
*/
|
|
10101
10101
|
behaviors?: Array<{
|
|
10102
10102
|
id: string;
|
|
@@ -18098,7 +18098,7 @@ export type GetAllAccountsHealthResponse = ({
|
|
|
18098
18098
|
needsReconnect?: boolean;
|
|
18099
18099
|
issues?: Array<(string)>;
|
|
18100
18100
|
/**
|
|
18101
|
-
* Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction.
|
|
18101
|
+
* Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction. After subcode 1893063 (Meta refusing the Page's messages), comment automation DMs are held and one is retried at `pausedUntil`: 30 minutes, doubling per refused retry up to 4 hours; held DMs stay pending and are sent once Meta accepts again, within the 7-day private-reply window.
|
|
18102
18102
|
*/
|
|
18103
18103
|
messagingRestriction?: {
|
|
18104
18104
|
/**
|
|
@@ -18112,6 +18112,10 @@ export type GetAllAccountsHealthResponse = ({
|
|
|
18112
18112
|
message?: (string) | null;
|
|
18113
18113
|
firstSeenAt?: string;
|
|
18114
18114
|
lastSeenAt?: string;
|
|
18115
|
+
/**
|
|
18116
|
+
* When held automation DMs are next retried. Null when nothing is held.
|
|
18117
|
+
*/
|
|
18118
|
+
pausedUntil?: (string) | null;
|
|
18115
18119
|
} | null;
|
|
18116
18120
|
}>;
|
|
18117
18121
|
});
|
|
@@ -18262,7 +18266,7 @@ export type GetAccountHealthResponse = ({
|
|
|
18262
18266
|
*/
|
|
18263
18267
|
recommendations?: Array<(string)>;
|
|
18264
18268
|
/**
|
|
18265
|
-
* Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction.
|
|
18269
|
+
* Observed from Meta's own errors on our own sends, not a live probe. Facebook/Instagram: error subcodes 2534122, 1893063, 2534029, set on the first refused send and cleared when a later send succeeds. WhatsApp: Cloud API error codes 131042 (payment or eligibility issue), 131031 (Business Account locked) and 368 (policy block), set when a send or a delivery status fails with one and cleared when a later message is delivered. It lags reality by one message in each direction. After subcode 1893063 (Meta refusing the Page's messages), comment automation DMs are held and one is retried at `pausedUntil`: 30 minutes, doubling per refused retry up to 4 hours; held DMs stay pending and are sent once Meta accepts again, within the 7-day private-reply window.
|
|
18266
18270
|
*/
|
|
18267
18271
|
messagingRestriction?: {
|
|
18268
18272
|
/**
|
|
@@ -18276,6 +18280,10 @@ export type GetAccountHealthResponse = ({
|
|
|
18276
18280
|
message?: (string) | null;
|
|
18277
18281
|
firstSeenAt?: string;
|
|
18278
18282
|
lastSeenAt?: string;
|
|
18283
|
+
/**
|
|
18284
|
+
* When held automation DMs are next retried. Null when nothing is held.
|
|
18285
|
+
*/
|
|
18286
|
+
pausedUntil?: (string) | null;
|
|
18279
18287
|
} | null;
|
|
18280
18288
|
/**
|
|
18281
18289
|
* 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).
|
|
@@ -46213,7 +46221,7 @@ export type CreateStandaloneAdData = {
|
|
|
46213
46221
|
address?: string;
|
|
46214
46222
|
}>;
|
|
46215
46223
|
/**
|
|
46216
|
-
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior (Meta and
|
|
46224
|
+
* Behaviour entities from /v1/ads/targeting/search?dimension=behavior (Meta, TikTok and LinkedIn). On TikTok they target people who interacted with videos (watched to the end, liked, commented or shared, last 15 days) or creators (followed or viewed the profile) in the picked categories, and the ad group uses the TikTok placement only. Each must include id.
|
|
46217
46225
|
*/
|
|
46218
46226
|
behaviors?: Array<{
|
|
46219
46227
|
id: string;
|