@getlatedev/node 0.2.1376 → 0.2.1378

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
@@ -13608,6 +13608,10 @@ type OAuthApp = {
13608
13608
  */
13609
13609
  fields: Array<(string)>;
13610
13610
  } | null;
13611
+ /**
13612
+ * TikTok only: set this as the webhook callback URL in your TikTok developer app. TikTok uses it to report when a video finishes publishing; Zernio also checks the publish status itself, so posting works without it. Null on other platforms.
13613
+ */
13614
+ sharedWebhookUrl?: (string) | null;
13611
13615
  createdAt: string;
13612
13616
  };
13613
13617
  /**
@@ -57935,9 +57939,31 @@ type EstimateAdReachData = {
57935
57939
  */
57936
57940
  adAccountId: string;
57937
57941
  /**
57938
- * The targeting spec to estimate. Same shape used by POST /v1/ads/create.
57942
+ * The targeting spec to estimate. Same shape used by POST /v1/ads/create. Required unless `rawTargeting` is sent; with `rawTargeting` it can be omitted or minimal.
57939
57943
  */
57940
- spec: (TargetingSpec);
57944
+ spec?: (TargetingSpec);
57945
+ /**
57946
+ * Meta only. A Meta-native targeting spec (snake_case: `geo_locations`, `age_min`,
57947
+ * `flexible_spec`, `excluded_custom_audiences`, `user_os`, ...), the same field
57948
+ * `POST /v1/ads/create` accepts, so the estimate covers the exact audience the ad
57949
+ * set will use. For layered targeting, send `flexible_spec` here: entries AND
57950
+ * together, ids inside one entry OR.
57951
+ *
57952
+ * It uses the same merge rules as `POST /v1/ads/create`: rawTargeting is the BASE
57953
+ * layer and `spec`, converted to Meta's wire shape, is merged on top key by key,
57954
+ * with `spec` winning on collision. The merge goes one level deep inside
57955
+ * `geo_locations` and `excluded_geo_locations` (spec sub-keys win, raw-only
57956
+ * sub-keys such as `location_types` survive). Array values (`flexible_spec`, ...)
57957
+ * are replaced as a whole key when `spec` builds them, never element-merged, so
57958
+ * `spec.interests` or `spec.behaviors` replace a raw `flexible_spec`. The result is
57959
+ * sent to Meta `delivery_estimate` as `targeting_spec`.
57960
+ *
57961
+ * Sending it for an account on another platform returns 400 naming `rawTargeting`.
57962
+ *
57963
+ */
57964
+ rawTargeting?: {
57965
+ [key: string]: unknown;
57966
+ };
57941
57967
  /**
57942
57968
  * Optional. The optimization goal the estimate should assume (platform's
57943
57969
  * own vocabulary, e.g. Meta `REACH`, `LINK_CLICKS`, `OFFSITE_CONVERSIONS`).
package/dist/index.d.ts CHANGED
@@ -13608,6 +13608,10 @@ type OAuthApp = {
13608
13608
  */
13609
13609
  fields: Array<(string)>;
13610
13610
  } | null;
13611
+ /**
13612
+ * TikTok only: set this as the webhook callback URL in your TikTok developer app. TikTok uses it to report when a video finishes publishing; Zernio also checks the publish status itself, so posting works without it. Null on other platforms.
13613
+ */
13614
+ sharedWebhookUrl?: (string) | null;
13611
13615
  createdAt: string;
13612
13616
  };
13613
13617
  /**
@@ -57935,9 +57939,31 @@ type EstimateAdReachData = {
57935
57939
  */
57936
57940
  adAccountId: string;
57937
57941
  /**
57938
- * The targeting spec to estimate. Same shape used by POST /v1/ads/create.
57942
+ * The targeting spec to estimate. Same shape used by POST /v1/ads/create. Required unless `rawTargeting` is sent; with `rawTargeting` it can be omitted or minimal.
57939
57943
  */
57940
- spec: (TargetingSpec);
57944
+ spec?: (TargetingSpec);
57945
+ /**
57946
+ * Meta only. A Meta-native targeting spec (snake_case: `geo_locations`, `age_min`,
57947
+ * `flexible_spec`, `excluded_custom_audiences`, `user_os`, ...), the same field
57948
+ * `POST /v1/ads/create` accepts, so the estimate covers the exact audience the ad
57949
+ * set will use. For layered targeting, send `flexible_spec` here: entries AND
57950
+ * together, ids inside one entry OR.
57951
+ *
57952
+ * It uses the same merge rules as `POST /v1/ads/create`: rawTargeting is the BASE
57953
+ * layer and `spec`, converted to Meta's wire shape, is merged on top key by key,
57954
+ * with `spec` winning on collision. The merge goes one level deep inside
57955
+ * `geo_locations` and `excluded_geo_locations` (spec sub-keys win, raw-only
57956
+ * sub-keys such as `location_types` survive). Array values (`flexible_spec`, ...)
57957
+ * are replaced as a whole key when `spec` builds them, never element-merged, so
57958
+ * `spec.interests` or `spec.behaviors` replace a raw `flexible_spec`. The result is
57959
+ * sent to Meta `delivery_estimate` as `targeting_spec`.
57960
+ *
57961
+ * Sending it for an account on another platform returns 400 naming `rawTargeting`.
57962
+ *
57963
+ */
57964
+ rawTargeting?: {
57965
+ [key: string]: unknown;
57966
+ };
57941
57967
  /**
57942
57968
  * Optional. The optimization goal the estimate should assume (platform's
57943
57969
  * own vocabulary, e.g. Meta `REACH`, `LINK_CLICKS`, `OFFSITE_CONVERSIONS`).
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.1376",
39
+ version: "0.2.1378",
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.1376",
8
+ version: "0.2.1378",
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.1376",
3
+ "version": "0.2.1378",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -11869,6 +11869,10 @@ export type OAuthApp = {
11869
11869
  */
11870
11870
  fields: Array<(string)>;
11871
11871
  } | null;
11872
+ /**
11873
+ * TikTok only: set this as the webhook callback URL in your TikTok developer app. TikTok uses it to report when a video finishes publishing; Zernio also checks the publish status itself, so posting works without it. Null on other platforms.
11874
+ */
11875
+ sharedWebhookUrl?: (string) | null;
11872
11876
  createdAt: string;
11873
11877
  };
11874
11878
 
@@ -59162,9 +59166,31 @@ export type EstimateAdReachData = {
59162
59166
  */
59163
59167
  adAccountId: string;
59164
59168
  /**
59165
- * The targeting spec to estimate. Same shape used by POST /v1/ads/create.
59169
+ * The targeting spec to estimate. Same shape used by POST /v1/ads/create. Required unless `rawTargeting` is sent; with `rawTargeting` it can be omitted or minimal.
59166
59170
  */
59167
- spec: (TargetingSpec);
59171
+ spec?: (TargetingSpec);
59172
+ /**
59173
+ * Meta only. A Meta-native targeting spec (snake_case: `geo_locations`, `age_min`,
59174
+ * `flexible_spec`, `excluded_custom_audiences`, `user_os`, ...), the same field
59175
+ * `POST /v1/ads/create` accepts, so the estimate covers the exact audience the ad
59176
+ * set will use. For layered targeting, send `flexible_spec` here: entries AND
59177
+ * together, ids inside one entry OR.
59178
+ *
59179
+ * It uses the same merge rules as `POST /v1/ads/create`: rawTargeting is the BASE
59180
+ * layer and `spec`, converted to Meta's wire shape, is merged on top key by key,
59181
+ * with `spec` winning on collision. The merge goes one level deep inside
59182
+ * `geo_locations` and `excluded_geo_locations` (spec sub-keys win, raw-only
59183
+ * sub-keys such as `location_types` survive). Array values (`flexible_spec`, ...)
59184
+ * are replaced as a whole key when `spec` builds them, never element-merged, so
59185
+ * `spec.interests` or `spec.behaviors` replace a raw `flexible_spec`. The result is
59186
+ * sent to Meta `delivery_estimate` as `targeting_spec`.
59187
+ *
59188
+ * Sending it for an account on another platform returns 400 naming `rawTargeting`.
59189
+ *
59190
+ */
59191
+ rawTargeting?: {
59192
+ [key: string]: unknown;
59193
+ };
59168
59194
  /**
59169
59195
  * Optional. The optimization goal the estimate should assume (platform's
59170
59196
  * own vocabulary, e.g. Meta `REACH`, `LINK_CLICKS`, `OFFSITE_CONVERSIONS`).