@zernio/node 0.2.772 → 0.2.774

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
@@ -8296,6 +8296,10 @@ type TargetingSpec = {
8296
8296
  */
8297
8297
  excludedLocations?: {
8298
8298
  countries?: Array<(string)>;
8299
+ /**
8300
+ * Meta only. Continents and trade blocs to exclude (`excluded_geo_locations.country_groups`).
8301
+ */
8302
+ countryGroups?: Array<('africa' | 'asia' | 'europe' | 'north_america' | 'south_america' | 'oceania' | 'central_america' | 'caribbean' | 'eea' | 'euro_area' | 'nafta' | 'mercosur' | 'afta' | 'apec' | 'gcc' | 'cisfta' | 'emerging_markets' | 'itunes_app_store' | 'android_free_store' | 'android_paid_store')>;
8299
8303
  regions?: Array<{
8300
8304
  key: string;
8301
8305
  name?: string;
@@ -31707,6 +31711,17 @@ type GetCommentAutomationResponse = ({
31707
31711
  * DM error message if status is failed
31708
31712
  */
31709
31713
  error?: string;
31714
+ /**
31715
+ * Platform error codes of the failed DM (Meta `code` and `error_subcode`), when the platform sent them. Absent on successful rows and on rows written before this field existed.
31716
+ */
31717
+ platformError?: {
31718
+ code?: number;
31719
+ subcode?: number;
31720
+ };
31721
+ /**
31722
+ * True when the failed send spent the comment's single Instagram private reply (subcode 1545133 or 2534023), the same rule as `details.privateReplyConsumed` on the private-reply endpoint. Absent on direct DMs, on Facebook, and on rows written before this field existed.
31723
+ */
31724
+ privateReplyConsumed?: boolean;
31710
31725
  /**
31711
31726
  * Outcome of the optional public reply on the triggering comment. 'skipped' if no commentReply was configured or if the DM failed (the public reply is not attempted in that case).
31712
31727
  */
@@ -31888,6 +31903,17 @@ type ListCommentAutomationLogsResponse = ({
31888
31903
  * DM error message if status is failed
31889
31904
  */
31890
31905
  error?: string;
31906
+ /**
31907
+ * Platform error codes of the failed DM (Meta `code` and `error_subcode`), when the platform sent them. Absent on successful rows and on rows written before this field existed.
31908
+ */
31909
+ platformError?: {
31910
+ code?: number;
31911
+ subcode?: number;
31912
+ };
31913
+ /**
31914
+ * True when the failed send spent the comment's single Instagram private reply (subcode 1545133 or 2534023), the same rule as `details.privateReplyConsumed` on the private-reply endpoint. Absent on direct DMs, on Facebook, and on rows written before this field existed.
31915
+ */
31916
+ privateReplyConsumed?: boolean;
31891
31917
  /**
31892
31918
  * Outcome of the optional public reply on the triggering comment. 'skipped' if no commentReply was configured or if the DM failed (the public reply is not attempted in that case).
31893
31919
  */
@@ -37263,6 +37289,14 @@ type CreateStandaloneAdData = {
37263
37289
  * ISO 3166-1 alpha-2 country codes (e.g. ['NL']). Defaults to ['US'] when no other geo targeting (flat or nested `targeting`) is provided. (LinkedIn and OpenAI Ads currently honour country-level targeting only; any other targeting field returns 400 for OpenAI Ads.)
37264
37290
  */
37265
37291
  countries?: Array<(string)>;
37292
+ /**
37293
+ * Meta only. Continents and trade blocs (`geo_locations.country_groups`),
37294
+ * for targeting a whole region without listing its countries. Combines with
37295
+ * `countries` rather than replacing it. Discoverable via
37296
+ * `GET /v1/ads/targeting/search?dimension=geo&geoType=country_group`.
37297
+ *
37298
+ */
37299
+ countryGroups?: Array<('africa' | 'asia' | 'europe' | 'north_america' | 'south_america' | 'oceania' | 'central_america' | 'caribbean' | 'eea' | 'euro_area' | 'nafta' | 'mercosur' | 'afta' | 'apec' | 'gcc' | 'cisfta' | 'emerging_markets' | 'itunes_app_store' | 'android_free_store' | 'android_paid_store')>;
37266
37300
  /**
37267
37301
  * City-level geo targeting (Meta and TikTok). Each city is targeted by the platform's opaque `key` (the city ID) which can be looked up via `GET /v1/ads/targeting/search?dimension=geo&q=<name>&countryCode=<ISO>`. Optional `radius` + `distance_unit` (Meta only) extend the targeting beyond the city limits (e.g. radius 25 km around the city center). Both must be set together, or both omitted (Meta defaults to ~16 km when omitted).
37268
37302
  *
package/dist/index.d.ts CHANGED
@@ -8296,6 +8296,10 @@ type TargetingSpec = {
8296
8296
  */
8297
8297
  excludedLocations?: {
8298
8298
  countries?: Array<(string)>;
8299
+ /**
8300
+ * Meta only. Continents and trade blocs to exclude (`excluded_geo_locations.country_groups`).
8301
+ */
8302
+ countryGroups?: Array<('africa' | 'asia' | 'europe' | 'north_america' | 'south_america' | 'oceania' | 'central_america' | 'caribbean' | 'eea' | 'euro_area' | 'nafta' | 'mercosur' | 'afta' | 'apec' | 'gcc' | 'cisfta' | 'emerging_markets' | 'itunes_app_store' | 'android_free_store' | 'android_paid_store')>;
8299
8303
  regions?: Array<{
8300
8304
  key: string;
8301
8305
  name?: string;
@@ -31707,6 +31711,17 @@ type GetCommentAutomationResponse = ({
31707
31711
  * DM error message if status is failed
31708
31712
  */
31709
31713
  error?: string;
31714
+ /**
31715
+ * Platform error codes of the failed DM (Meta `code` and `error_subcode`), when the platform sent them. Absent on successful rows and on rows written before this field existed.
31716
+ */
31717
+ platformError?: {
31718
+ code?: number;
31719
+ subcode?: number;
31720
+ };
31721
+ /**
31722
+ * True when the failed send spent the comment's single Instagram private reply (subcode 1545133 or 2534023), the same rule as `details.privateReplyConsumed` on the private-reply endpoint. Absent on direct DMs, on Facebook, and on rows written before this field existed.
31723
+ */
31724
+ privateReplyConsumed?: boolean;
31710
31725
  /**
31711
31726
  * Outcome of the optional public reply on the triggering comment. 'skipped' if no commentReply was configured or if the DM failed (the public reply is not attempted in that case).
31712
31727
  */
@@ -31888,6 +31903,17 @@ type ListCommentAutomationLogsResponse = ({
31888
31903
  * DM error message if status is failed
31889
31904
  */
31890
31905
  error?: string;
31906
+ /**
31907
+ * Platform error codes of the failed DM (Meta `code` and `error_subcode`), when the platform sent them. Absent on successful rows and on rows written before this field existed.
31908
+ */
31909
+ platformError?: {
31910
+ code?: number;
31911
+ subcode?: number;
31912
+ };
31913
+ /**
31914
+ * True when the failed send spent the comment's single Instagram private reply (subcode 1545133 or 2534023), the same rule as `details.privateReplyConsumed` on the private-reply endpoint. Absent on direct DMs, on Facebook, and on rows written before this field existed.
31915
+ */
31916
+ privateReplyConsumed?: boolean;
31891
31917
  /**
31892
31918
  * Outcome of the optional public reply on the triggering comment. 'skipped' if no commentReply was configured or if the DM failed (the public reply is not attempted in that case).
31893
31919
  */
@@ -37263,6 +37289,14 @@ type CreateStandaloneAdData = {
37263
37289
  * ISO 3166-1 alpha-2 country codes (e.g. ['NL']). Defaults to ['US'] when no other geo targeting (flat or nested `targeting`) is provided. (LinkedIn and OpenAI Ads currently honour country-level targeting only; any other targeting field returns 400 for OpenAI Ads.)
37264
37290
  */
37265
37291
  countries?: Array<(string)>;
37292
+ /**
37293
+ * Meta only. Continents and trade blocs (`geo_locations.country_groups`),
37294
+ * for targeting a whole region without listing its countries. Combines with
37295
+ * `countries` rather than replacing it. Discoverable via
37296
+ * `GET /v1/ads/targeting/search?dimension=geo&geoType=country_group`.
37297
+ *
37298
+ */
37299
+ countryGroups?: Array<('africa' | 'asia' | 'europe' | 'north_america' | 'south_america' | 'oceania' | 'central_america' | 'caribbean' | 'eea' | 'euro_area' | 'nafta' | 'mercosur' | 'afta' | 'apec' | 'gcc' | 'cisfta' | 'emerging_markets' | 'itunes_app_store' | 'android_free_store' | 'android_paid_store')>;
37266
37300
  /**
37267
37301
  * City-level geo targeting (Meta and TikTok). Each city is targeted by the platform's opaque `key` (the city ID) which can be looked up via `GET /v1/ads/targeting/search?dimension=geo&q=<name>&countryCode=<ISO>`. Optional `radius` + `distance_unit` (Meta only) extend the targeting beyond the city limits (e.g. radius 25 km around the city center). Both must be set together, or both omitted (Meta defaults to ~16 km when omitted).
37268
37302
  *
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.772",
39
+ version: "0.2.774",
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.772",
8
+ version: "0.2.774",
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": "@zernio/node",
3
- "version": "0.2.772",
3
+ "version": "0.2.774",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -6984,6 +6984,10 @@ export type TargetingSpec = {
6984
6984
  */
6985
6985
  excludedLocations?: {
6986
6986
  countries?: Array<(string)>;
6987
+ /**
6988
+ * Meta only. Continents and trade blocs to exclude (`excluded_geo_locations.country_groups`).
6989
+ */
6990
+ countryGroups?: Array<('africa' | 'asia' | 'europe' | 'north_america' | 'south_america' | 'oceania' | 'central_america' | 'caribbean' | 'eea' | 'euro_area' | 'nafta' | 'mercosur' | 'afta' | 'apec' | 'gcc' | 'cisfta' | 'emerging_markets' | 'itunes_app_store' | 'android_free_store' | 'android_paid_store')>;
6987
6991
  regions?: Array<{
6988
6992
  key: string;
6989
6993
  name?: string;
@@ -31970,6 +31974,17 @@ export type GetCommentAutomationResponse = ({
31970
31974
  * DM error message if status is failed
31971
31975
  */
31972
31976
  error?: string;
31977
+ /**
31978
+ * Platform error codes of the failed DM (Meta `code` and `error_subcode`), when the platform sent them. Absent on successful rows and on rows written before this field existed.
31979
+ */
31980
+ platformError?: {
31981
+ code?: number;
31982
+ subcode?: number;
31983
+ };
31984
+ /**
31985
+ * True when the failed send spent the comment's single Instagram private reply (subcode 1545133 or 2534023), the same rule as `details.privateReplyConsumed` on the private-reply endpoint. Absent on direct DMs, on Facebook, and on rows written before this field existed.
31986
+ */
31987
+ privateReplyConsumed?: boolean;
31973
31988
  /**
31974
31989
  * Outcome of the optional public reply on the triggering comment. 'skipped' if no commentReply was configured or if the DM failed (the public reply is not attempted in that case).
31975
31990
  */
@@ -32160,6 +32175,17 @@ export type ListCommentAutomationLogsResponse = ({
32160
32175
  * DM error message if status is failed
32161
32176
  */
32162
32177
  error?: string;
32178
+ /**
32179
+ * Platform error codes of the failed DM (Meta `code` and `error_subcode`), when the platform sent them. Absent on successful rows and on rows written before this field existed.
32180
+ */
32181
+ platformError?: {
32182
+ code?: number;
32183
+ subcode?: number;
32184
+ };
32185
+ /**
32186
+ * True when the failed send spent the comment's single Instagram private reply (subcode 1545133 or 2534023), the same rule as `details.privateReplyConsumed` on the private-reply endpoint. Absent on direct DMs, on Facebook, and on rows written before this field existed.
32187
+ */
32188
+ privateReplyConsumed?: boolean;
32163
32189
  /**
32164
32190
  * Outcome of the optional public reply on the triggering comment. 'skipped' if no commentReply was configured or if the DM failed (the public reply is not attempted in that case).
32165
32191
  */
@@ -37879,6 +37905,14 @@ export type CreateStandaloneAdData = {
37879
37905
  * ISO 3166-1 alpha-2 country codes (e.g. ['NL']). Defaults to ['US'] when no other geo targeting (flat or nested `targeting`) is provided. (LinkedIn and OpenAI Ads currently honour country-level targeting only; any other targeting field returns 400 for OpenAI Ads.)
37880
37906
  */
37881
37907
  countries?: Array<(string)>;
37908
+ /**
37909
+ * Meta only. Continents and trade blocs (`geo_locations.country_groups`),
37910
+ * for targeting a whole region without listing its countries. Combines with
37911
+ * `countries` rather than replacing it. Discoverable via
37912
+ * `GET /v1/ads/targeting/search?dimension=geo&geoType=country_group`.
37913
+ *
37914
+ */
37915
+ countryGroups?: Array<('africa' | 'asia' | 'europe' | 'north_america' | 'south_america' | 'oceania' | 'central_america' | 'caribbean' | 'eea' | 'euro_area' | 'nafta' | 'mercosur' | 'afta' | 'apec' | 'gcc' | 'cisfta' | 'emerging_markets' | 'itunes_app_store' | 'android_free_store' | 'android_paid_store')>;
37882
37916
  /**
37883
37917
  * City-level geo targeting (Meta and TikTok). Each city is targeted by the platform's opaque `key` (the city ID) which can be looked up via `GET /v1/ads/targeting/search?dimension=geo&q=<name>&countryCode=<ISO>`. Optional `radius` + `distance_unit` (Meta only) extend the targeting beyond the city limits (e.g. radius 25 km around the city center). Both must be set together, or both omitted (Meta defaults to ~16 km when omitted).
37884
37918
  *