@getlatedev/node 0.2.1216 → 0.2.1218
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 +20 -4
- package/dist/index.d.ts +20 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +9 -0
- package/src/generated/types.gen.ts +20 -4
package/dist/index.d.mts
CHANGED
|
@@ -12342,6 +12342,22 @@ type SocialAccount = {
|
|
|
12342
12342
|
*
|
|
12343
12343
|
*/
|
|
12344
12344
|
enabled?: boolean;
|
|
12345
|
+
/**
|
|
12346
|
+
* End of the account's publishing cooldown. Compare it with the current time: a value
|
|
12347
|
+
* in the past means the cooldown has ended (the field is cleared on the next successful
|
|
12348
|
+
* publish), null means no cooldown since the last successful publish. A cooldown starts
|
|
12349
|
+
* when a post to the account fails with `errorCategory` `user_abuse` (spam, abuse or
|
|
12350
|
+
* rate-limit errors), or when 10 or more posts to it fail within an hour with
|
|
12351
|
+
* `user_content`, `platform_error`, `platform_rate_limit` or `unknown`. It doubles with
|
|
12352
|
+
* each start inside a 24-hour window that opens at the first one (10, 20, 40, 80 minutes
|
|
12353
|
+
* and so on, capped at 24 hours). On a YouTube account with a recorded successful upload
|
|
12354
|
+
* it instead runs until 24 hours after that upload, or 1 hour when that upload is older
|
|
12355
|
+
* than 24 hours. While it is in the future, POST /v1/posts (drafts excepted) and
|
|
12356
|
+
* POST /v1/posts/{postId}/retry return 429 for this account, and this account's pending
|
|
12357
|
+
* targets on posts scheduled before the cooldown ends are failed when it starts.
|
|
12358
|
+
*
|
|
12359
|
+
*/
|
|
12360
|
+
rateLimitedUntil?: (string) | null;
|
|
12345
12361
|
/**
|
|
12346
12362
|
* Platform-specific metadata. Fields vary by platform. For WhatsApp accounts, includes:
|
|
12347
12363
|
* - qualityRating: Phone number quality rating from Meta (GREEN, YELLOW, RED, or UNKNOWN)
|
|
@@ -49379,9 +49395,9 @@ type SearchAdTargetingData = {
|
|
|
49379
49395
|
*/
|
|
49380
49396
|
countryCode?: string;
|
|
49381
49397
|
/**
|
|
49382
|
-
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities (`behavior` on Meta, TikTok and LinkedIn), `interestKeyword`/`hashtag` resolve TikTok additional interests and hashtags (TikTok only), `income` resolves the normalized income tiers, `language` resolves Google's targetable language_constant table (Google only), `workPosition`/`workEmployer`/`workIndustry` resolve Meta work demographics, `industry`/`jobFunction`/`seniority`/`companySize` resolve LinkedIn B2B facets (LinkedIn only). Defaults to `interest` for backward compatibility with the deprecated /v1/ads/interests alias.
|
|
49398
|
+
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities (`behavior` on Meta, TikTok and LinkedIn), `interestSuggestion` suggests interests related to the names in `q` (Meta only), `interestKeyword`/`hashtag` resolve TikTok additional interests and hashtags (TikTok only), `income` resolves the normalized income tiers, `language` resolves Google's targetable language_constant table (Google only), `workPosition`/`workEmployer`/`workIndustry` resolve Meta work demographics, `industry`/`jobFunction`/`seniority`/`companySize` resolve LinkedIn B2B facets (LinkedIn only). Defaults to `interest` for backward compatibility with the deprecated /v1/ads/interests alias.
|
|
49383
49399
|
*/
|
|
49384
|
-
dimension?: 'geo' | 'interest' | 'interestKeyword' | 'behavior' | 'hashtag' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry' | 'industry' | 'jobFunction' | 'seniority' | 'companySize' | 'community' | 'conversationKeyword';
|
|
49400
|
+
dimension?: 'geo' | 'interest' | 'interestSuggestion' | 'interestKeyword' | 'behavior' | 'hashtag' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry' | 'industry' | 'jobFunction' | 'seniority' | 'companySize' | 'community' | 'conversationKeyword';
|
|
49385
49401
|
/**
|
|
49386
49402
|
* Only used when `dimension=geo`. The kind of location to resolve. `all` searches every type in one relevance-ranked call. Defaults to `city`.
|
|
49387
49403
|
*/
|
|
@@ -49391,7 +49407,7 @@ type SearchAdTargetingData = {
|
|
|
49391
49407
|
*/
|
|
49392
49408
|
limit?: number;
|
|
49393
49409
|
/**
|
|
49394
|
-
* Search query. For geo, the locality name only (no region/country suffix).
|
|
49410
|
+
* Search query. For geo, the locality name only (no region/country suffix). For `interestSuggestion`, the interest names: comma-separated, or a JSON array of strings when a name contains a comma (a `q` starting with `[` is read as JSON).
|
|
49395
49411
|
*/
|
|
49396
49412
|
q: string;
|
|
49397
49413
|
};
|
|
@@ -49407,7 +49423,7 @@ type SearchAdTargetingResponse = ({
|
|
|
49407
49423
|
*/
|
|
49408
49424
|
name: string;
|
|
49409
49425
|
/**
|
|
49410
|
-
* What the result is. Equals the requested dimension (interest, interestKeyword, behavior, hashtag, income, language, workPosition, workEmployer, workIndustry, industry, jobFunction, seniority, companySize, community, conversationKeyword), or the location level for geo (country, region, city, zip, metro, ...).
|
|
49426
|
+
* What the result is. Equals the requested dimension (interest, interestSuggestion, interestKeyword, behavior, hashtag, income, language, workPosition, workEmployer, workIndustry, industry, jobFunction, seniority, companySize, community, conversationKeyword), or the location level for geo (country, region, city, zip, metro, ...).
|
|
49411
49427
|
*/
|
|
49412
49428
|
type: string;
|
|
49413
49429
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -12342,6 +12342,22 @@ type SocialAccount = {
|
|
|
12342
12342
|
*
|
|
12343
12343
|
*/
|
|
12344
12344
|
enabled?: boolean;
|
|
12345
|
+
/**
|
|
12346
|
+
* End of the account's publishing cooldown. Compare it with the current time: a value
|
|
12347
|
+
* in the past means the cooldown has ended (the field is cleared on the next successful
|
|
12348
|
+
* publish), null means no cooldown since the last successful publish. A cooldown starts
|
|
12349
|
+
* when a post to the account fails with `errorCategory` `user_abuse` (spam, abuse or
|
|
12350
|
+
* rate-limit errors), or when 10 or more posts to it fail within an hour with
|
|
12351
|
+
* `user_content`, `platform_error`, `platform_rate_limit` or `unknown`. It doubles with
|
|
12352
|
+
* each start inside a 24-hour window that opens at the first one (10, 20, 40, 80 minutes
|
|
12353
|
+
* and so on, capped at 24 hours). On a YouTube account with a recorded successful upload
|
|
12354
|
+
* it instead runs until 24 hours after that upload, or 1 hour when that upload is older
|
|
12355
|
+
* than 24 hours. While it is in the future, POST /v1/posts (drafts excepted) and
|
|
12356
|
+
* POST /v1/posts/{postId}/retry return 429 for this account, and this account's pending
|
|
12357
|
+
* targets on posts scheduled before the cooldown ends are failed when it starts.
|
|
12358
|
+
*
|
|
12359
|
+
*/
|
|
12360
|
+
rateLimitedUntil?: (string) | null;
|
|
12345
12361
|
/**
|
|
12346
12362
|
* Platform-specific metadata. Fields vary by platform. For WhatsApp accounts, includes:
|
|
12347
12363
|
* - qualityRating: Phone number quality rating from Meta (GREEN, YELLOW, RED, or UNKNOWN)
|
|
@@ -49379,9 +49395,9 @@ type SearchAdTargetingData = {
|
|
|
49379
49395
|
*/
|
|
49380
49396
|
countryCode?: string;
|
|
49381
49397
|
/**
|
|
49382
|
-
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities (`behavior` on Meta, TikTok and LinkedIn), `interestKeyword`/`hashtag` resolve TikTok additional interests and hashtags (TikTok only), `income` resolves the normalized income tiers, `language` resolves Google's targetable language_constant table (Google only), `workPosition`/`workEmployer`/`workIndustry` resolve Meta work demographics, `industry`/`jobFunction`/`seniority`/`companySize` resolve LinkedIn B2B facets (LinkedIn only). Defaults to `interest` for backward compatibility with the deprecated /v1/ads/interests alias.
|
|
49398
|
+
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities (`behavior` on Meta, TikTok and LinkedIn), `interestSuggestion` suggests interests related to the names in `q` (Meta only), `interestKeyword`/`hashtag` resolve TikTok additional interests and hashtags (TikTok only), `income` resolves the normalized income tiers, `language` resolves Google's targetable language_constant table (Google only), `workPosition`/`workEmployer`/`workIndustry` resolve Meta work demographics, `industry`/`jobFunction`/`seniority`/`companySize` resolve LinkedIn B2B facets (LinkedIn only). Defaults to `interest` for backward compatibility with the deprecated /v1/ads/interests alias.
|
|
49383
49399
|
*/
|
|
49384
|
-
dimension?: 'geo' | 'interest' | 'interestKeyword' | 'behavior' | 'hashtag' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry' | 'industry' | 'jobFunction' | 'seniority' | 'companySize' | 'community' | 'conversationKeyword';
|
|
49400
|
+
dimension?: 'geo' | 'interest' | 'interestSuggestion' | 'interestKeyword' | 'behavior' | 'hashtag' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry' | 'industry' | 'jobFunction' | 'seniority' | 'companySize' | 'community' | 'conversationKeyword';
|
|
49385
49401
|
/**
|
|
49386
49402
|
* Only used when `dimension=geo`. The kind of location to resolve. `all` searches every type in one relevance-ranked call. Defaults to `city`.
|
|
49387
49403
|
*/
|
|
@@ -49391,7 +49407,7 @@ type SearchAdTargetingData = {
|
|
|
49391
49407
|
*/
|
|
49392
49408
|
limit?: number;
|
|
49393
49409
|
/**
|
|
49394
|
-
* Search query. For geo, the locality name only (no region/country suffix).
|
|
49410
|
+
* Search query. For geo, the locality name only (no region/country suffix). For `interestSuggestion`, the interest names: comma-separated, or a JSON array of strings when a name contains a comma (a `q` starting with `[` is read as JSON).
|
|
49395
49411
|
*/
|
|
49396
49412
|
q: string;
|
|
49397
49413
|
};
|
|
@@ -49407,7 +49423,7 @@ type SearchAdTargetingResponse = ({
|
|
|
49407
49423
|
*/
|
|
49408
49424
|
name: string;
|
|
49409
49425
|
/**
|
|
49410
|
-
* What the result is. Equals the requested dimension (interest, interestKeyword, behavior, hashtag, income, language, workPosition, workEmployer, workIndustry, industry, jobFunction, seniority, companySize, community, conversationKeyword), or the location level for geo (country, region, city, zip, metro, ...).
|
|
49426
|
+
* What the result is. Equals the requested dimension (interest, interestSuggestion, interestKeyword, behavior, hashtag, income, language, workPosition, workEmployer, workIndustry, industry, jobFunction, seniority, companySize, community, conversationKeyword), or the location level for geo (country, region, city, zip, metro, ...).
|
|
49411
49427
|
*/
|
|
49412
49428
|
type: string;
|
|
49413
49429
|
/**
|
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.1218",
|
|
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.1218",
|
|
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
|
@@ -13166,6 +13166,15 @@ export const searchAdInterests = <ThrowOnError extends boolean = false>(options:
|
|
|
13166
13166
|
*
|
|
13167
13167
|
* - `geo`: locations, further scoped by `geoType`
|
|
13168
13168
|
* - `interest`
|
|
13169
|
+
* - `interestSuggestion`: Meta only. Interests related to the interest names in `q`, from Meta's
|
|
13170
|
+
* interest suggestions. `q` lists interest names, case sensitive, names and not ids: either
|
|
13171
|
+
* comma-separated (`NBA,Michael Jordan`) or, for names that contain a comma, a JSON array of
|
|
13172
|
+
* strings (`["Earth, Wind & Fire","Yoga"]`, URL-encoded). A `q` starting with `[` is always read as
|
|
13173
|
+
* JSON. A `q` with no name or malformed JSON returns 400 naming `q`. Meta also suggests behaviors
|
|
13174
|
+
* and demographics; Zernio keeps only interests (entries whose `path` starts with `Interests`), so
|
|
13175
|
+
* every id goes in `TargetingSpec.interests`, like `interest` results. Zernio asks Meta for three
|
|
13176
|
+
* times `limit` (at most 100) before filtering, so fewer than `limit` results can come back. Meta
|
|
13177
|
+
* weights the first name heavily: a multi-name `q` mostly returns suggestions for the first one
|
|
13169
13178
|
* - `behavior`: Meta, TikTok and LinkedIn, matched by name; ids feed `TargetingSpec.behaviors`.
|
|
13170
13179
|
* Meta: its fixed behaviors catalog (e.g. `Small business owners`, `Frequent Travelers`).
|
|
13171
13180
|
* TikTok: video and creator interaction categories (e.g. `Software & Apps`), with ids like
|
|
@@ -10799,6 +10799,22 @@ export type SocialAccount = {
|
|
|
10799
10799
|
*
|
|
10800
10800
|
*/
|
|
10801
10801
|
enabled?: boolean;
|
|
10802
|
+
/**
|
|
10803
|
+
* End of the account's publishing cooldown. Compare it with the current time: a value
|
|
10804
|
+
* in the past means the cooldown has ended (the field is cleared on the next successful
|
|
10805
|
+
* publish), null means no cooldown since the last successful publish. A cooldown starts
|
|
10806
|
+
* when a post to the account fails with `errorCategory` `user_abuse` (spam, abuse or
|
|
10807
|
+
* rate-limit errors), or when 10 or more posts to it fail within an hour with
|
|
10808
|
+
* `user_content`, `platform_error`, `platform_rate_limit` or `unknown`. It doubles with
|
|
10809
|
+
* each start inside a 24-hour window that opens at the first one (10, 20, 40, 80 minutes
|
|
10810
|
+
* and so on, capped at 24 hours). On a YouTube account with a recorded successful upload
|
|
10811
|
+
* it instead runs until 24 hours after that upload, or 1 hour when that upload is older
|
|
10812
|
+
* than 24 hours. While it is in the future, POST /v1/posts (drafts excepted) and
|
|
10813
|
+
* POST /v1/posts/{postId}/retry return 429 for this account, and this account's pending
|
|
10814
|
+
* targets on posts scheduled before the cooldown ends are failed when it starts.
|
|
10815
|
+
*
|
|
10816
|
+
*/
|
|
10817
|
+
rateLimitedUntil?: (string) | null;
|
|
10802
10818
|
/**
|
|
10803
10819
|
* Platform-specific metadata. Fields vary by platform. For WhatsApp accounts, includes:
|
|
10804
10820
|
* - qualityRating: Phone number quality rating from Meta (GREEN, YELLOW, RED, or UNKNOWN)
|
|
@@ -50245,9 +50261,9 @@ export type SearchAdTargetingData = {
|
|
|
50245
50261
|
*/
|
|
50246
50262
|
countryCode?: string;
|
|
50247
50263
|
/**
|
|
50248
|
-
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities (`behavior` on Meta, TikTok and LinkedIn), `interestKeyword`/`hashtag` resolve TikTok additional interests and hashtags (TikTok only), `income` resolves the normalized income tiers, `language` resolves Google's targetable language_constant table (Google only), `workPosition`/`workEmployer`/`workIndustry` resolve Meta work demographics, `industry`/`jobFunction`/`seniority`/`companySize` resolve LinkedIn B2B facets (LinkedIn only). Defaults to `interest` for backward compatibility with the deprecated /v1/ads/interests alias.
|
|
50264
|
+
* What to search. `geo` resolves locations (scope further with `geoType`), `interest`/`behavior` resolve audience entities (`behavior` on Meta, TikTok and LinkedIn), `interestSuggestion` suggests interests related to the names in `q` (Meta only), `interestKeyword`/`hashtag` resolve TikTok additional interests and hashtags (TikTok only), `income` resolves the normalized income tiers, `language` resolves Google's targetable language_constant table (Google only), `workPosition`/`workEmployer`/`workIndustry` resolve Meta work demographics, `industry`/`jobFunction`/`seniority`/`companySize` resolve LinkedIn B2B facets (LinkedIn only). Defaults to `interest` for backward compatibility with the deprecated /v1/ads/interests alias.
|
|
50249
50265
|
*/
|
|
50250
|
-
dimension?: 'geo' | 'interest' | 'interestKeyword' | 'behavior' | 'hashtag' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry' | 'industry' | 'jobFunction' | 'seniority' | 'companySize' | 'community' | 'conversationKeyword';
|
|
50266
|
+
dimension?: 'geo' | 'interest' | 'interestSuggestion' | 'interestKeyword' | 'behavior' | 'hashtag' | 'income' | 'language' | 'workPosition' | 'workEmployer' | 'workIndustry' | 'industry' | 'jobFunction' | 'seniority' | 'companySize' | 'community' | 'conversationKeyword';
|
|
50251
50267
|
/**
|
|
50252
50268
|
* Only used when `dimension=geo`. The kind of location to resolve. `all` searches every type in one relevance-ranked call. Defaults to `city`.
|
|
50253
50269
|
*/
|
|
@@ -50257,7 +50273,7 @@ export type SearchAdTargetingData = {
|
|
|
50257
50273
|
*/
|
|
50258
50274
|
limit?: number;
|
|
50259
50275
|
/**
|
|
50260
|
-
* Search query. For geo, the locality name only (no region/country suffix).
|
|
50276
|
+
* Search query. For geo, the locality name only (no region/country suffix). For `interestSuggestion`, the interest names: comma-separated, or a JSON array of strings when a name contains a comma (a `q` starting with `[` is read as JSON).
|
|
50261
50277
|
*/
|
|
50262
50278
|
q: string;
|
|
50263
50279
|
};
|
|
@@ -50274,7 +50290,7 @@ export type SearchAdTargetingResponse = ({
|
|
|
50274
50290
|
*/
|
|
50275
50291
|
name: string;
|
|
50276
50292
|
/**
|
|
50277
|
-
* What the result is. Equals the requested dimension (interest, interestKeyword, behavior, hashtag, income, language, workPosition, workEmployer, workIndustry, industry, jobFunction, seniority, companySize, community, conversationKeyword), or the location level for geo (country, region, city, zip, metro, ...).
|
|
50293
|
+
* What the result is. Equals the requested dimension (interest, interestSuggestion, interestKeyword, behavior, hashtag, income, language, workPosition, workEmployer, workIndustry, industry, jobFunction, seniority, companySize, community, conversationKeyword), or the location level for geo (country, region, city, zip, metro, ...).
|
|
50278
50294
|
*/
|
|
50279
50295
|
type: string;
|
|
50280
50296
|
/**
|