@getlatedev/node 0.2.1184 → 0.2.1186

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
@@ -3243,7 +3243,7 @@ type AdPromotedObject = {
3243
3243
  */
3244
3244
  productCatalogId?: string;
3245
3245
  /**
3246
- * Meta product SET ID, for example from GET /v1/ads/catalogs/{catalogId}/product-sets. Creating catalog ads needs only ads_management on the Meta login, not catalog_management. Zernio checks before creation that the set is visible to the token, and a set it cannot see returns a 400 naming promotedObject.productSetId (a catalog ID is caught the same way when the login carries catalog_management, and rejected by Meta otherwise). When the login can also read the set's catalog (catalog_management), a mismatch with productCatalogId returns a 400 naming promotedObject.productCatalogId; otherwise Meta judges the catalog match. With validateOnly and a new campaign, Meta cannot dry-run the set inside the ad set, so the adSet result carries a reason; pass existingCampaignId to dry-run it in full.
3246
+ * Meta product SET ID, for example from GET /v1/ads/catalogs/{catalogId}/product-sets. Creating catalog ads needs only ads_management on the Meta login, not catalog_management. Zernio reads the set before creation and returns a 400 naming promotedObject.productSetId when Meta rejects the ID outright. When Meta answers that the login lacks the permission to read it (common without catalog_management, even for a set a live ad set already uses), Zernio leaves the check to Meta's own create validation, which rejects an unusable set or a catalog ID with the same 400. When the login can also read the set's catalog (catalog_management), a mismatch with productCatalogId returns a 400 naming promotedObject.productCatalogId; otherwise Meta judges the catalog match. With validateOnly and a new campaign, Meta cannot dry-run the set inside the ad set, so the adSet result carries a reason; pass existingCampaignId to dry-run it in full.
3247
3247
  */
3248
3248
  productSetId?: string;
3249
3249
  /**
@@ -32900,7 +32900,7 @@ type LookupSmsNumberResponse = ({
32900
32900
  carrierName?: (string) | null;
32901
32901
  lineType?: 'mobile' | 'landline' | 'voip' | 'toll-free' | 'unknown';
32902
32902
  /**
32903
- * True when the line type can receive SMS (not a landline).
32903
+ * False for landlines, toll-free numbers, ambiguous fixed-or-mobile lines and carriers whose numbers are not SMS-routable. True is a best guess, not a delivery guarantee.
32904
32904
  */
32905
32905
  smsReachable?: boolean;
32906
32906
  });
package/dist/index.d.ts CHANGED
@@ -3243,7 +3243,7 @@ type AdPromotedObject = {
3243
3243
  */
3244
3244
  productCatalogId?: string;
3245
3245
  /**
3246
- * Meta product SET ID, for example from GET /v1/ads/catalogs/{catalogId}/product-sets. Creating catalog ads needs only ads_management on the Meta login, not catalog_management. Zernio checks before creation that the set is visible to the token, and a set it cannot see returns a 400 naming promotedObject.productSetId (a catalog ID is caught the same way when the login carries catalog_management, and rejected by Meta otherwise). When the login can also read the set's catalog (catalog_management), a mismatch with productCatalogId returns a 400 naming promotedObject.productCatalogId; otherwise Meta judges the catalog match. With validateOnly and a new campaign, Meta cannot dry-run the set inside the ad set, so the adSet result carries a reason; pass existingCampaignId to dry-run it in full.
3246
+ * Meta product SET ID, for example from GET /v1/ads/catalogs/{catalogId}/product-sets. Creating catalog ads needs only ads_management on the Meta login, not catalog_management. Zernio reads the set before creation and returns a 400 naming promotedObject.productSetId when Meta rejects the ID outright. When Meta answers that the login lacks the permission to read it (common without catalog_management, even for a set a live ad set already uses), Zernio leaves the check to Meta's own create validation, which rejects an unusable set or a catalog ID with the same 400. When the login can also read the set's catalog (catalog_management), a mismatch with productCatalogId returns a 400 naming promotedObject.productCatalogId; otherwise Meta judges the catalog match. With validateOnly and a new campaign, Meta cannot dry-run the set inside the ad set, so the adSet result carries a reason; pass existingCampaignId to dry-run it in full.
3247
3247
  */
3248
3248
  productSetId?: string;
3249
3249
  /**
@@ -32900,7 +32900,7 @@ type LookupSmsNumberResponse = ({
32900
32900
  carrierName?: (string) | null;
32901
32901
  lineType?: 'mobile' | 'landline' | 'voip' | 'toll-free' | 'unknown';
32902
32902
  /**
32903
- * True when the line type can receive SMS (not a landline).
32903
+ * False for landlines, toll-free numbers, ambiguous fixed-or-mobile lines and carriers whose numbers are not SMS-routable. True is a best guess, not a delivery guarantee.
32904
32904
  */
32905
32905
  smsReachable?: boolean;
32906
32906
  });
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.1184",
39
+ version: "0.2.1186",
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.1184",
8
+ version: "0.2.1186",
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.1184",
3
+ "version": "0.2.1186",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -6213,7 +6213,7 @@ export const getRcsCapabilities = <ThrowOnError extends boolean = false>(options
6213
6213
  /**
6214
6214
  * Look up carrier + line type
6215
6215
  * Carrier name and line type (mobile / landline / voip / toll-free) for a
6216
- * number, plus `smsReachable` (landlines can't receive SMS). Use it to
6216
+ * number, plus `smsReachable`. Use it to
6217
6217
  * validate recipients before sending. Each lookup is billed by the
6218
6218
  * carrier-data provider, so call it explicitly (e.g. pre-validating an
6219
6219
  * opt-in list), not on every send.
@@ -13391,7 +13391,9 @@ export const getLinkedInSupplyForecast = <ThrowOnError extends boolean = false>(
13391
13391
  * List Meta product catalogs
13392
13392
  * Lists the Meta product catalogs a business portfolio owns or has been shared, for catalog and shopping ads.
13393
13393
  *
13394
- * The business comes from `businessId`, else the ad account's owner (`adAccountId`), else the WhatsApp Business Account's owner when `accountId` is a WhatsApp connection, else the only business the Meta login can see. Reads work with scopes customers already granted.
13394
+ * The business comes from `businessId`, else the ad account's owner (`adAccountId`), else the WhatsApp Business Account's owner when `accountId` is a WhatsApp connection, else the only business the Meta login can see.
13395
+ *
13396
+ * Listing catalogs needs catalog_management on the Meta login. The permission is pending Meta App Review and is not requested on connect yet, so most logins get the 403 below (Meta's code 100 "This application has not been approved to use this api"); pass catalogAccountId naming a facebook, instagram or metaads connection whose Meta login already holds it. Creating a catalog_sales ad from a known product set ID does not need it (see promotedObject.productSetId on POST /v1/ads/create).
13395
13397
  *
13396
13398
  */
13397
13399
  export const listAdCatalogs = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListAdCatalogsData, ThrowOnError>) => {
@@ -1265,7 +1265,7 @@ export type AdPromotedObject = {
1265
1265
  */
1266
1266
  productCatalogId?: string;
1267
1267
  /**
1268
- * Meta product SET ID, for example from GET /v1/ads/catalogs/{catalogId}/product-sets. Creating catalog ads needs only ads_management on the Meta login, not catalog_management. Zernio checks before creation that the set is visible to the token, and a set it cannot see returns a 400 naming promotedObject.productSetId (a catalog ID is caught the same way when the login carries catalog_management, and rejected by Meta otherwise). When the login can also read the set's catalog (catalog_management), a mismatch with productCatalogId returns a 400 naming promotedObject.productCatalogId; otherwise Meta judges the catalog match. With validateOnly and a new campaign, Meta cannot dry-run the set inside the ad set, so the adSet result carries a reason; pass existingCampaignId to dry-run it in full.
1268
+ * Meta product SET ID, for example from GET /v1/ads/catalogs/{catalogId}/product-sets. Creating catalog ads needs only ads_management on the Meta login, not catalog_management. Zernio reads the set before creation and returns a 400 naming promotedObject.productSetId when Meta rejects the ID outright. When Meta answers that the login lacks the permission to read it (common without catalog_management, even for a set a live ad set already uses), Zernio leaves the check to Meta's own create validation, which rejects an unusable set or a catalog ID with the same 400. When the login can also read the set's catalog (catalog_management), a mismatch with productCatalogId returns a 400 naming promotedObject.productCatalogId; otherwise Meta judges the catalog match. With validateOnly and a new campaign, Meta cannot dry-run the set inside the ad set, so the adSet result carries a reason; pass existingCampaignId to dry-run it in full.
1269
1269
  */
1270
1270
  productSetId?: string;
1271
1271
  /**
@@ -32649,7 +32649,7 @@ export type LookupSmsNumberResponse = ({
32649
32649
  carrierName?: (string) | null;
32650
32650
  lineType?: 'mobile' | 'landline' | 'voip' | 'toll-free' | 'unknown';
32651
32651
  /**
32652
- * True when the line type can receive SMS (not a landline).
32652
+ * False for landlines, toll-free numbers, ambiguous fixed-or-mobile lines and carriers whose numbers are not SMS-routable. True is a best guess, not a delivery guarantee.
32653
32653
  */
32654
32654
  smsReachable?: boolean;
32655
32655
  });