@getlatedev/node 0.2.255 → 0.2.257

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
@@ -7592,9 +7592,9 @@ type GetMediaPresignedUrlResponse = ({
7592
7592
  */
7593
7593
  key?: string;
7594
7594
  /**
7595
- * Detected file type based on content type
7595
+ * Seconds until the presigned uploadUrl expires (always 3600)
7596
7596
  */
7597
- type?: 'image' | 'video' | 'document';
7597
+ expiresIn?: number;
7598
7598
  });
7599
7599
  type GetMediaPresignedUrlError = ({
7600
7600
  error?: string;
@@ -8723,21 +8723,27 @@ type ConnectAdsData = {
8723
8723
  */
8724
8724
  accountId?: string;
8725
8725
  /**
8726
- * (metaads only) Scope ad sync to a single Meta ad account. Without this
8727
- * param, sync covers every `act_*` the connected token can see. Pass this
8728
- * to limit `sync.totalAds` / `synced` and the resulting ads to one ad
8729
- * account. Format: `act_<digits>` (matches what `/me/adaccounts` returns).
8730
- * Validated against the connected token; unreachable IDs return 400.
8731
- * For multiple accounts use `adAccountIds` instead.
8726
+ * Scope ad sync to a single platform ad account. Without this param,
8727
+ * sync covers every ad account the connected token can see. Supported
8728
+ * on `facebook`/`instagram` (Meta, `act_<digits>`), `linkedin` (bare
8729
+ * numeric sponsored-account id), `googleads` (bare customer id digits)
8730
+ * and `twitter` (X Ads, base36 account id). `tiktok` scopes advertisers
8731
+ * at OAuth and `pinterest` has no ads discovery, so both ignore it.
8732
+ * Meta ids are additionally validated against the connected token;
8733
+ * unreachable IDs return 400. Setting a scope also removes already
8734
+ * synced ads from de-scoped ad accounts. For multiple accounts use
8735
+ * `adAccountIds` instead.
8732
8736
  *
8733
8737
  */
8734
8738
  adAccountId?: string;
8735
8739
  /**
8736
- * (metaads only) Scope ad sync to multiple Meta ad accounts. Repeat the
8737
- * param (`?adAccountIds=act_1&adAccountIds=act_2`) or comma-separate
8738
- * (`?adAccountIds=act_1,act_2`). Validated against the connected token.
8739
- * Persisted server-side; latest call wins. Omitting both `adAccountId`
8740
- * and `adAccountIds` keeps any previously persisted scope unchanged.
8740
+ * Scope ad sync to multiple platform ad accounts (same platform
8741
+ * support and id shapes as `adAccountId`). Repeat the param
8742
+ * (`?adAccountIds=act_1&adAccountIds=act_2`) or comma-separate
8743
+ * (`?adAccountIds=act_1,act_2`). Persisted server-side; latest call
8744
+ * wins, and de-scoped ad accounts have their synced ads removed.
8745
+ * Omitting both `adAccountId` and `adAccountIds` keeps any previously
8746
+ * persisted scope unchanged.
8741
8747
  *
8742
8748
  */
8743
8749
  adAccountIds?: Array<(string)>;
package/dist/index.d.ts CHANGED
@@ -7592,9 +7592,9 @@ type GetMediaPresignedUrlResponse = ({
7592
7592
  */
7593
7593
  key?: string;
7594
7594
  /**
7595
- * Detected file type based on content type
7595
+ * Seconds until the presigned uploadUrl expires (always 3600)
7596
7596
  */
7597
- type?: 'image' | 'video' | 'document';
7597
+ expiresIn?: number;
7598
7598
  });
7599
7599
  type GetMediaPresignedUrlError = ({
7600
7600
  error?: string;
@@ -8723,21 +8723,27 @@ type ConnectAdsData = {
8723
8723
  */
8724
8724
  accountId?: string;
8725
8725
  /**
8726
- * (metaads only) Scope ad sync to a single Meta ad account. Without this
8727
- * param, sync covers every `act_*` the connected token can see. Pass this
8728
- * to limit `sync.totalAds` / `synced` and the resulting ads to one ad
8729
- * account. Format: `act_<digits>` (matches what `/me/adaccounts` returns).
8730
- * Validated against the connected token; unreachable IDs return 400.
8731
- * For multiple accounts use `adAccountIds` instead.
8726
+ * Scope ad sync to a single platform ad account. Without this param,
8727
+ * sync covers every ad account the connected token can see. Supported
8728
+ * on `facebook`/`instagram` (Meta, `act_<digits>`), `linkedin` (bare
8729
+ * numeric sponsored-account id), `googleads` (bare customer id digits)
8730
+ * and `twitter` (X Ads, base36 account id). `tiktok` scopes advertisers
8731
+ * at OAuth and `pinterest` has no ads discovery, so both ignore it.
8732
+ * Meta ids are additionally validated against the connected token;
8733
+ * unreachable IDs return 400. Setting a scope also removes already
8734
+ * synced ads from de-scoped ad accounts. For multiple accounts use
8735
+ * `adAccountIds` instead.
8732
8736
  *
8733
8737
  */
8734
8738
  adAccountId?: string;
8735
8739
  /**
8736
- * (metaads only) Scope ad sync to multiple Meta ad accounts. Repeat the
8737
- * param (`?adAccountIds=act_1&adAccountIds=act_2`) or comma-separate
8738
- * (`?adAccountIds=act_1,act_2`). Validated against the connected token.
8739
- * Persisted server-side; latest call wins. Omitting both `adAccountId`
8740
- * and `adAccountIds` keeps any previously persisted scope unchanged.
8740
+ * Scope ad sync to multiple platform ad accounts (same platform
8741
+ * support and id shapes as `adAccountId`). Repeat the param
8742
+ * (`?adAccountIds=act_1&adAccountIds=act_2`) or comma-separate
8743
+ * (`?adAccountIds=act_1,act_2`). Persisted server-side; latest call
8744
+ * wins, and de-scoped ad accounts have their synced ads removed.
8745
+ * Omitting both `adAccountId` and `adAccountIds` keeps any previously
8746
+ * persisted scope unchanged.
8741
8747
  *
8742
8748
  */
8743
8749
  adAccountIds?: 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.255",
39
+ version: "0.2.257",
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.255",
8
+ version: "0.2.257",
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.255",
3
+ "version": "0.2.257",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -7176,9 +7176,9 @@ export type GetMediaPresignedUrlResponse = ({
7176
7176
  */
7177
7177
  key?: string;
7178
7178
  /**
7179
- * Detected file type based on content type
7179
+ * Seconds until the presigned uploadUrl expires (always 3600)
7180
7180
  */
7181
- type?: 'image' | 'video' | 'document';
7181
+ expiresIn?: number;
7182
7182
  });
7183
7183
 
7184
7184
  export type GetMediaPresignedUrlError = ({
@@ -8411,21 +8411,27 @@ export type ConnectAdsData = {
8411
8411
  */
8412
8412
  accountId?: string;
8413
8413
  /**
8414
- * (metaads only) Scope ad sync to a single Meta ad account. Without this
8415
- * param, sync covers every `act_*` the connected token can see. Pass this
8416
- * to limit `sync.totalAds` / `synced` and the resulting ads to one ad
8417
- * account. Format: `act_<digits>` (matches what `/me/adaccounts` returns).
8418
- * Validated against the connected token; unreachable IDs return 400.
8419
- * For multiple accounts use `adAccountIds` instead.
8414
+ * Scope ad sync to a single platform ad account. Without this param,
8415
+ * sync covers every ad account the connected token can see. Supported
8416
+ * on `facebook`/`instagram` (Meta, `act_<digits>`), `linkedin` (bare
8417
+ * numeric sponsored-account id), `googleads` (bare customer id digits)
8418
+ * and `twitter` (X Ads, base36 account id). `tiktok` scopes advertisers
8419
+ * at OAuth and `pinterest` has no ads discovery, so both ignore it.
8420
+ * Meta ids are additionally validated against the connected token;
8421
+ * unreachable IDs return 400. Setting a scope also removes already
8422
+ * synced ads from de-scoped ad accounts. For multiple accounts use
8423
+ * `adAccountIds` instead.
8420
8424
  *
8421
8425
  */
8422
8426
  adAccountId?: string;
8423
8427
  /**
8424
- * (metaads only) Scope ad sync to multiple Meta ad accounts. Repeat the
8425
- * param (`?adAccountIds=act_1&adAccountIds=act_2`) or comma-separate
8426
- * (`?adAccountIds=act_1,act_2`). Validated against the connected token.
8427
- * Persisted server-side; latest call wins. Omitting both `adAccountId`
8428
- * and `adAccountIds` keeps any previously persisted scope unchanged.
8428
+ * Scope ad sync to multiple platform ad accounts (same platform
8429
+ * support and id shapes as `adAccountId`). Repeat the param
8430
+ * (`?adAccountIds=act_1&adAccountIds=act_2`) or comma-separate
8431
+ * (`?adAccountIds=act_1,act_2`). Persisted server-side; latest call
8432
+ * wins, and de-scoped ad accounts have their synced ads removed.
8433
+ * Omitting both `adAccountId` and `adAccountIds` keeps any previously
8434
+ * persisted scope unchanged.
8429
8435
  *
8430
8436
  */
8431
8437
  adAccountIds?: Array<(string)>;