@getlatedev/node 0.2.1219 → 0.2.1221

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
@@ -48226,10 +48226,16 @@ type CreateStandaloneAdData = {
48226
48226
  pageId?: string;
48227
48227
  /**
48228
48228
  * Meta only. Override the Instagram account the ad is delivered as. Pass an Instagram
48229
- * Business Account ID (e.g. 17841...), mapped to the creative's `instagram_user_id`.
48230
- * When omitted we use the Instagram actor Meta already runs the Page's other ads as,
48231
- * falling back to the Page's page-backed Instagram account. Useful when a Page has more
48232
- * than one eligible IG account.
48229
+ * Business Account ID (e.g. 17841...), mapped to the creative's `instagram_user_id`; it
48230
+ * is sent as-is and never replaced. When omitted we use the Instagram account linked to
48231
+ * the Page; formats that need an Instagram actor without one use the actor the Page's
48232
+ * other ads already run as, then the Page's page-backed Instagram account. If Meta
48233
+ * refuses that default because the ad account has no access to it (200/1815199), the
48234
+ * creative is retried once with an Instagram account the ad account is authorized for;
48235
+ * with none, the request fails with a 422 on `instagramAccountId` (list the usable
48236
+ * accounts with GET /v1/ads/instagram-accounts). A creative replaced later through
48237
+ * /v1/ads/{adId} follows the same rule. Useful when a Page has more than one eligible IG
48238
+ * account.
48233
48239
  *
48234
48240
  */
48235
48241
  instagramAccountId?: string;
package/dist/index.d.ts CHANGED
@@ -48226,10 +48226,16 @@ type CreateStandaloneAdData = {
48226
48226
  pageId?: string;
48227
48227
  /**
48228
48228
  * Meta only. Override the Instagram account the ad is delivered as. Pass an Instagram
48229
- * Business Account ID (e.g. 17841...), mapped to the creative's `instagram_user_id`.
48230
- * When omitted we use the Instagram actor Meta already runs the Page's other ads as,
48231
- * falling back to the Page's page-backed Instagram account. Useful when a Page has more
48232
- * than one eligible IG account.
48229
+ * Business Account ID (e.g. 17841...), mapped to the creative's `instagram_user_id`; it
48230
+ * is sent as-is and never replaced. When omitted we use the Instagram account linked to
48231
+ * the Page; formats that need an Instagram actor without one use the actor the Page's
48232
+ * other ads already run as, then the Page's page-backed Instagram account. If Meta
48233
+ * refuses that default because the ad account has no access to it (200/1815199), the
48234
+ * creative is retried once with an Instagram account the ad account is authorized for;
48235
+ * with none, the request fails with a 422 on `instagramAccountId` (list the usable
48236
+ * accounts with GET /v1/ads/instagram-accounts). A creative replaced later through
48237
+ * /v1/ads/{adId} follows the same rule. Useful when a Page has more than one eligible IG
48238
+ * account.
48233
48239
  *
48234
48240
  */
48235
48241
  instagramAccountId?: 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.1219",
39
+ version: "0.2.1221",
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.1219",
8
+ version: "0.2.1221",
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.1219",
3
+ "version": "0.2.1221",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -6951,6 +6951,8 @@ export const updateWhatsAppDisplayName = <ThrowOnError extends boolean = false>(
6951
6951
  * Get business username
6952
6952
  * Fetch the current WhatsApp Business username and its approval status.
6953
6953
  * Username status can be `approved` (active), `reserved` (pending activation), or `none` (no username set).
6954
+ * If Meta has not granted username management for the WhatsApp Business Account, the API returns the
6955
+ * standard error envelope with code `insufficient_permissions`.
6954
6956
  *
6955
6957
  */
6956
6958
  export const getWhatsappBusinessUsername = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetWhatsappBusinessUsernameData, ThrowOnError>) => {
@@ -6970,8 +6972,9 @@ export const getWhatsappBusinessUsername = <ThrowOnError extends boolean = false
6970
6972
  * If the desired username is currently held by another account, pass `transferAction: "force_transfer"` to
6971
6973
  * request a transfer. On failure the API returns a standard error envelope with one of these codes:
6972
6974
  * `whatsapp_username_unavailable` (already taken and transfer not requested),
6973
- * `whatsapp_username_ineligible` (account not eligible to claim a username), or
6974
- * `whatsapp_username_transfer_required` (username is held elsewhere; retry with `force_transfer`).
6975
+ * `whatsapp_username_ineligible` (account not eligible to claim a username),
6976
+ * `whatsapp_username_transfer_required` (username is held elsewhere; retry with `force_transfer`), or
6977
+ * `insufficient_permissions` (Meta has not granted username management for this WhatsApp Business Account).
6975
6978
  *
6976
6979
  */
6977
6980
  export const setWhatsappBusinessUsername = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<SetWhatsappBusinessUsernameData, ThrowOnError>) => {
@@ -49044,10 +49044,16 @@ export type CreateStandaloneAdData = {
49044
49044
  pageId?: string;
49045
49045
  /**
49046
49046
  * Meta only. Override the Instagram account the ad is delivered as. Pass an Instagram
49047
- * Business Account ID (e.g. 17841...), mapped to the creative's `instagram_user_id`.
49048
- * When omitted we use the Instagram actor Meta already runs the Page's other ads as,
49049
- * falling back to the Page's page-backed Instagram account. Useful when a Page has more
49050
- * than one eligible IG account.
49047
+ * Business Account ID (e.g. 17841...), mapped to the creative's `instagram_user_id`; it
49048
+ * is sent as-is and never replaced. When omitted we use the Instagram account linked to
49049
+ * the Page; formats that need an Instagram actor without one use the actor the Page's
49050
+ * other ads already run as, then the Page's page-backed Instagram account. If Meta
49051
+ * refuses that default because the ad account has no access to it (200/1815199), the
49052
+ * creative is retried once with an Instagram account the ad account is authorized for;
49053
+ * with none, the request fails with a 422 on `instagramAccountId` (list the usable
49054
+ * accounts with GET /v1/ads/instagram-accounts). A creative replaced later through
49055
+ * /v1/ads/{adId} follows the same rule. Useful when a Page has more than one eligible IG
49056
+ * account.
49051
49057
  *
49052
49058
  */
49053
49059
  instagramAccountId?: string;