@getlatedev/node 0.2.1454 → 0.2.1456

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
@@ -9357,7 +9357,7 @@ type CtwaAdRequestBody = {
9357
9357
  */
9358
9358
  gender?: 'all' | 'male' | 'female';
9359
9359
  /**
9360
- * Audience languages (Meta `locales`). A bare ISO 639-1 code targets all regional variants ("en" = all English), a region-qualified code a specific one ("en_GB", "pt_BR"); unknown codes are rejected.
9360
+ * Audience languages (Meta `locales`). A bare ISO 639-1 code targets all regional variants ("en" = all English), a region-qualified code a specific one ("en_GB", "pt_BR"). Meta numeric locale ids (e.g. "24" for English UK) are also accepted. Unknown values are rejected. Same format as `targeting.languages` on POST /v1/ads/boost.
9361
9361
  */
9362
9362
  languages?: Array<(string)>;
9363
9363
  /**
@@ -16848,7 +16848,9 @@ type TargetingSpec = {
16848
16848
  /**
16849
16849
  * Language codes restricting the audience by language. Applied on Meta, Google, TikTok, LinkedIn, X, Pinterest and Reddit; rejected with 400 on OpenAI. A code the platform cannot target returns 400 listing the ones it can.
16850
16850
  *
16851
- * On Meta: ISO 639-1 codes (e.g. ['en']). A bare code targets all regional variants ("en" = all English); use a region-qualified code ("en_GB", "pt_BR") for a specific one. Unknown codes are rejected.
16851
+ * On Meta: ISO 639-1 codes (e.g. ['en']). A bare code targets all regional variants ("en" = all English); use a region-qualified code ("en_GB", "pt_BR") for a specific one. Meta numeric locale ids (e.g. "24" for English UK) are also accepted. Unknown values are rejected.
16852
+ *
16853
+ * POST /v1/ads/create and POST /v1/ads/boost take the same format.
16852
16854
  */
16853
16855
  languages?: Array<(string)>;
16854
16856
  /**
@@ -19973,12 +19975,12 @@ type WebhookPayloadComment = {
19973
19975
  *
19974
19976
  * **Facebook**: populated from a Graph API lookup of the parent post. Present when the post is an ad dark post (isDarkPost true, whatever its promotionStatus) or an organic post that is or was boosted (promotionStatus "active", "extendable" or "finished").
19975
19977
  *
19976
- * Meta does not link a dark post back to its ad, so on Facebook id is set only when exactly one ad on the Page, created before the dark post, carries the same copy as the post. title is never set on Facebook.
19978
+ * Meta does not link a dark post to its ad, so on Facebook id is set only when a Meta Ads account is connected and exactly one of its ads has the same text as the post. title is never set on Facebook.
19977
19979
  *
19978
19980
  */
19979
19981
  ad?: {
19980
19982
  /**
19981
- * Meta ad ID. Instagram: from the webhook. Facebook: only on a dark post matched to a single ad by its copy.
19983
+ * Meta ad ID. Instagram: from the webhook. Facebook: only when a connected Meta Ads account has one ad with the same text.
19982
19984
  */
19983
19985
  id?: string;
19984
19986
  /**
@@ -57498,7 +57500,10 @@ type BoostPostData = {
57498
57500
  */
57499
57501
  gender?: 'all' | 'male' | 'female';
57500
57502
  /**
57501
- * Meta locale ids (numeric), passed through as given. Reddit: language codes (e.g. `en`).
57503
+ * Language codes, the same format as `languages` on POST /v1/ads/create.
57504
+ *
57505
+ * - Meta: ISO 639-1 codes. A bare code targets all regional variants ("en" = all English); use a region-qualified code for a specific one ("en_GB", "pt_BR"). Meta numeric locale ids (e.g. "24" for English UK) are also accepted. Unknown values are rejected.
57506
+ * - Reddit: ISO 639-1 codes (e.g. `en`).
57502
57507
  */
57503
57508
  languages?: Array<(string)>;
57504
57509
  /**
@@ -58884,7 +58889,7 @@ type CreateStandaloneAdData = {
58884
58889
  * Language codes, e.g. ["en","es"].
58885
58890
  *
58886
58891
  * - Google: campaign language targeting (language_constant) using Google's language codes (ISO 639-1, plus variants such as `zh_CN`). Unknown codes return 400.
58887
- * - Meta: a bare code targets all regional variants ("en" = all English); use a region-qualified code for a specific one ("en_GB", "pt_BR", "zh_TW"). Unknown codes are rejected.
58892
+ * - Meta: a bare code targets all regional variants ("en" = all English); use a region-qualified code for a specific one ("en_GB", "pt_BR", "zh_TW"). Meta numeric locale ids (e.g. "24" for English UK) are also accepted. Unknown values are rejected. POST /v1/ads/boost takes the same format in `targeting.languages`.
58888
58893
  * - Other ad platforms use their own language-code systems.
58889
58894
  */
58890
58895
  languages?: Array<(string)>;
package/dist/index.d.ts CHANGED
@@ -9357,7 +9357,7 @@ type CtwaAdRequestBody = {
9357
9357
  */
9358
9358
  gender?: 'all' | 'male' | 'female';
9359
9359
  /**
9360
- * Audience languages (Meta `locales`). A bare ISO 639-1 code targets all regional variants ("en" = all English), a region-qualified code a specific one ("en_GB", "pt_BR"); unknown codes are rejected.
9360
+ * Audience languages (Meta `locales`). A bare ISO 639-1 code targets all regional variants ("en" = all English), a region-qualified code a specific one ("en_GB", "pt_BR"). Meta numeric locale ids (e.g. "24" for English UK) are also accepted. Unknown values are rejected. Same format as `targeting.languages` on POST /v1/ads/boost.
9361
9361
  */
9362
9362
  languages?: Array<(string)>;
9363
9363
  /**
@@ -16848,7 +16848,9 @@ type TargetingSpec = {
16848
16848
  /**
16849
16849
  * Language codes restricting the audience by language. Applied on Meta, Google, TikTok, LinkedIn, X, Pinterest and Reddit; rejected with 400 on OpenAI. A code the platform cannot target returns 400 listing the ones it can.
16850
16850
  *
16851
- * On Meta: ISO 639-1 codes (e.g. ['en']). A bare code targets all regional variants ("en" = all English); use a region-qualified code ("en_GB", "pt_BR") for a specific one. Unknown codes are rejected.
16851
+ * On Meta: ISO 639-1 codes (e.g. ['en']). A bare code targets all regional variants ("en" = all English); use a region-qualified code ("en_GB", "pt_BR") for a specific one. Meta numeric locale ids (e.g. "24" for English UK) are also accepted. Unknown values are rejected.
16852
+ *
16853
+ * POST /v1/ads/create and POST /v1/ads/boost take the same format.
16852
16854
  */
16853
16855
  languages?: Array<(string)>;
16854
16856
  /**
@@ -19973,12 +19975,12 @@ type WebhookPayloadComment = {
19973
19975
  *
19974
19976
  * **Facebook**: populated from a Graph API lookup of the parent post. Present when the post is an ad dark post (isDarkPost true, whatever its promotionStatus) or an organic post that is or was boosted (promotionStatus "active", "extendable" or "finished").
19975
19977
  *
19976
- * Meta does not link a dark post back to its ad, so on Facebook id is set only when exactly one ad on the Page, created before the dark post, carries the same copy as the post. title is never set on Facebook.
19978
+ * Meta does not link a dark post to its ad, so on Facebook id is set only when a Meta Ads account is connected and exactly one of its ads has the same text as the post. title is never set on Facebook.
19977
19979
  *
19978
19980
  */
19979
19981
  ad?: {
19980
19982
  /**
19981
- * Meta ad ID. Instagram: from the webhook. Facebook: only on a dark post matched to a single ad by its copy.
19983
+ * Meta ad ID. Instagram: from the webhook. Facebook: only when a connected Meta Ads account has one ad with the same text.
19982
19984
  */
19983
19985
  id?: string;
19984
19986
  /**
@@ -57498,7 +57500,10 @@ type BoostPostData = {
57498
57500
  */
57499
57501
  gender?: 'all' | 'male' | 'female';
57500
57502
  /**
57501
- * Meta locale ids (numeric), passed through as given. Reddit: language codes (e.g. `en`).
57503
+ * Language codes, the same format as `languages` on POST /v1/ads/create.
57504
+ *
57505
+ * - Meta: ISO 639-1 codes. A bare code targets all regional variants ("en" = all English); use a region-qualified code for a specific one ("en_GB", "pt_BR"). Meta numeric locale ids (e.g. "24" for English UK) are also accepted. Unknown values are rejected.
57506
+ * - Reddit: ISO 639-1 codes (e.g. `en`).
57502
57507
  */
57503
57508
  languages?: Array<(string)>;
57504
57509
  /**
@@ -58884,7 +58889,7 @@ type CreateStandaloneAdData = {
58884
58889
  * Language codes, e.g. ["en","es"].
58885
58890
  *
58886
58891
  * - Google: campaign language targeting (language_constant) using Google's language codes (ISO 639-1, plus variants such as `zh_CN`). Unknown codes return 400.
58887
- * - Meta: a bare code targets all regional variants ("en" = all English); use a region-qualified code for a specific one ("en_GB", "pt_BR", "zh_TW"). Unknown codes are rejected.
58892
+ * - Meta: a bare code targets all regional variants ("en" = all English); use a region-qualified code for a specific one ("en_GB", "pt_BR", "zh_TW"). Meta numeric locale ids (e.g. "24" for English UK) are also accepted. Unknown values are rejected. POST /v1/ads/boost takes the same format in `targeting.languages`.
58888
58893
  * - Other ad platforms use their own language-code systems.
58889
58894
  */
58890
58895
  languages?: Array<(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: "@getlatedev/node",
39
- version: "0.2.1454",
39
+ version: "0.2.1456",
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.1454",
8
+ version: "0.2.1456",
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.1454",
3
+ "version": "0.2.1456",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -11896,7 +11896,10 @@ export const listCommentAutomations = <ThrowOnError extends boolean = false>(opt
11896
11896
  *
11897
11897
  * The DM fields are rejected with a 400 naming the field: `dmMessage`, `dmMessageVariations`, `buttons`, `template`, `quickReplies`, `alsoMatchInDms`, `audience`, `followGate`, `dmDelaySeconds`, `commentReplyDelaySeconds`.
11898
11898
  *
11899
- * TikTok comments (TikTok business accounts only) and Threads comments arrive by webhook, so the reply follows within seconds; Threads keeps the comment poll as a fallback. LinkedIn and YouTube are read by the comment poll, so a reply follows the comment by up to the poll interval (10 minutes on posts from the last 24 hours, longer on older posts).
11899
+ * How fast the reply follows the comment:
11900
+ *
11901
+ * - TikTok (business accounts only) and Threads: within seconds, since their comments arrive by webhook. Threads keeps the comment poll as a fallback.
11902
+ * - LinkedIn and YouTube: up to the comment poll interval, 10 minutes on posts from the last 24 hours and longer on older posts.
11900
11903
  *
11901
11904
  * `repeatPolicy` applies there too: with the default `once`, a person gets one public reply per automation, and their later comments get none.
11902
11905
  *
@@ -7385,7 +7385,7 @@ export type CtwaAdRequestBody = {
7385
7385
  */
7386
7386
  gender?: 'all' | 'male' | 'female';
7387
7387
  /**
7388
- * Audience languages (Meta `locales`). A bare ISO 639-1 code targets all regional variants ("en" = all English), a region-qualified code a specific one ("en_GB", "pt_BR"); unknown codes are rejected.
7388
+ * Audience languages (Meta `locales`). A bare ISO 639-1 code targets all regional variants ("en" = all English), a region-qualified code a specific one ("en_GB", "pt_BR"). Meta numeric locale ids (e.g. "24" for English UK) are also accepted. Unknown values are rejected. Same format as `targeting.languages` on POST /v1/ads/boost.
7389
7389
  */
7390
7390
  languages?: Array<(string)>;
7391
7391
  /**
@@ -15228,7 +15228,9 @@ export type TargetingSpec = {
15228
15228
  /**
15229
15229
  * Language codes restricting the audience by language. Applied on Meta, Google, TikTok, LinkedIn, X, Pinterest and Reddit; rejected with 400 on OpenAI. A code the platform cannot target returns 400 listing the ones it can.
15230
15230
  *
15231
- * On Meta: ISO 639-1 codes (e.g. ['en']). A bare code targets all regional variants ("en" = all English); use a region-qualified code ("en_GB", "pt_BR") for a specific one. Unknown codes are rejected.
15231
+ * On Meta: ISO 639-1 codes (e.g. ['en']). A bare code targets all regional variants ("en" = all English); use a region-qualified code ("en_GB", "pt_BR") for a specific one. Meta numeric locale ids (e.g. "24" for English UK) are also accepted. Unknown values are rejected.
15232
+ *
15233
+ * POST /v1/ads/create and POST /v1/ads/boost take the same format.
15232
15234
  */
15233
15235
  languages?: Array<(string)>;
15234
15236
  /**
@@ -18491,12 +18493,12 @@ export type WebhookPayloadComment = {
18491
18493
  *
18492
18494
  * **Facebook**: populated from a Graph API lookup of the parent post. Present when the post is an ad dark post (isDarkPost true, whatever its promotionStatus) or an organic post that is or was boosted (promotionStatus "active", "extendable" or "finished").
18493
18495
  *
18494
- * Meta does not link a dark post back to its ad, so on Facebook id is set only when exactly one ad on the Page, created before the dark post, carries the same copy as the post. title is never set on Facebook.
18496
+ * Meta does not link a dark post to its ad, so on Facebook id is set only when a Meta Ads account is connected and exactly one of its ads has the same text as the post. title is never set on Facebook.
18495
18497
  *
18496
18498
  */
18497
18499
  ad?: {
18498
18500
  /**
18499
- * Meta ad ID. Instagram: from the webhook. Facebook: only on a dark post matched to a single ad by its copy.
18501
+ * Meta ad ID. Instagram: from the webhook. Facebook: only when a connected Meta Ads account has one ad with the same text.
18500
18502
  */
18501
18503
  id?: string;
18502
18504
  /**
@@ -58670,7 +58672,10 @@ export type BoostPostData = {
58670
58672
  */
58671
58673
  gender?: 'all' | 'male' | 'female';
58672
58674
  /**
58673
- * Meta locale ids (numeric), passed through as given. Reddit: language codes (e.g. `en`).
58675
+ * Language codes, the same format as `languages` on POST /v1/ads/create.
58676
+ *
58677
+ * - Meta: ISO 639-1 codes. A bare code targets all regional variants ("en" = all English); use a region-qualified code for a specific one ("en_GB", "pt_BR"). Meta numeric locale ids (e.g. "24" for English UK) are also accepted. Unknown values are rejected.
58678
+ * - Reddit: ISO 639-1 codes (e.g. `en`).
58674
58679
  */
58675
58680
  languages?: Array<(string)>;
58676
58681
  /**
@@ -60080,7 +60085,7 @@ export type CreateStandaloneAdData = {
60080
60085
  * Language codes, e.g. ["en","es"].
60081
60086
  *
60082
60087
  * - Google: campaign language targeting (language_constant) using Google's language codes (ISO 639-1, plus variants such as `zh_CN`). Unknown codes return 400.
60083
- * - Meta: a bare code targets all regional variants ("en" = all English); use a region-qualified code for a specific one ("en_GB", "pt_BR", "zh_TW"). Unknown codes are rejected.
60088
+ * - Meta: a bare code targets all regional variants ("en" = all English); use a region-qualified code for a specific one ("en_GB", "pt_BR", "zh_TW"). Meta numeric locale ids (e.g. "24" for English UK) are also accepted. Unknown values are rejected. POST /v1/ads/boost takes the same format in `targeting.languages`.
60084
60089
  * - Other ad platforms use their own language-code systems.
60085
60090
  */
60086
60091
  languages?: Array<(string)>;