@zernio/node 0.2.584 → 0.2.586

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
@@ -1556,6 +1556,10 @@ type Ad = {
1556
1556
  * Public Facebook watch URL for VIDEO-type ads (https://www.facebook.com/watch/?v={videoId}). Null for non-video ads.
1557
1557
  */
1558
1558
  videoUrl?: (string) | null;
1559
+ /**
1560
+ * Meta ad creative id backing this ad. Reusable via existingCreativeId on POST /v1/ads/create.
1561
+ */
1562
+ creativeId?: (string) | null;
1559
1563
  /**
1560
1564
  * Meta creative object_type (e.g. SHARE, VIDEO, PRIVACY_CHECK_FAIL, POST_DELETED). Use this to render state-aware previews — when Meta moderation strips image/video fields, only thumbnailUrl at 64x64 is available.
1561
1565
  */
@@ -25698,7 +25702,7 @@ type ListBroadcastRecipientsError = (unknown | {
25698
25702
  type AddBroadcastRecipientsData = {
25699
25703
  body: {
25700
25704
  /**
25701
- * Specific contact IDs to add
25705
+ * Specific contact IDs to add. Zernio contact ids (24-character hex), as returned by the list-contacts endpoint. A platform identifier such as a WhatsApp wa_id is rejected with 400; use phones for raw numbers.
25702
25706
  */
25703
25707
  contactIds?: Array<(string)>;
25704
25708
  /**
@@ -30078,6 +30082,10 @@ type CreateStandaloneAdData = {
30078
30082
  * Meta and TikTok. Publish state of the created entities. Omitted or ACTIVE publishes live (default, back-compat); PAUSED creates them paused so you can review before they spend. On Meta the pause is held on the campaign this call creates, leaving the ad set and ad switched on, so a single PUT /v1/ads/campaigns/{campaignId}/status with `active` brings the whole thing live. It is held at every level instead when the pause cannot rely on the campaign: `existingCampaignId` (that campaign may be running and is never touched) or `campaignStatus: ACTIVE`. On TikTok the whole campaign > ad group > ad hierarchy stays paused.
30079
30083
  */
30080
30084
  status?: 'ACTIVE' | 'PAUSED';
30085
+ /**
30086
+ * Meta only. Overrides `status` for the campaign level alone, so you can create a live campaign whose ad set and ad stay paused, or the reverse. Omitted, it follows `status`.
30087
+ */
30088
+ campaignStatus?: 'ACTIVE' | 'PAUSED';
30081
30089
  /**
30082
30090
  * Meta only. Where the budget lives, which selects the Meta budget model:
30083
30091
  * - `adset` (default): ABO (Ad-set Budget Optimization). The budget is set on the
package/dist/index.d.ts CHANGED
@@ -1556,6 +1556,10 @@ type Ad = {
1556
1556
  * Public Facebook watch URL for VIDEO-type ads (https://www.facebook.com/watch/?v={videoId}). Null for non-video ads.
1557
1557
  */
1558
1558
  videoUrl?: (string) | null;
1559
+ /**
1560
+ * Meta ad creative id backing this ad. Reusable via existingCreativeId on POST /v1/ads/create.
1561
+ */
1562
+ creativeId?: (string) | null;
1559
1563
  /**
1560
1564
  * Meta creative object_type (e.g. SHARE, VIDEO, PRIVACY_CHECK_FAIL, POST_DELETED). Use this to render state-aware previews — when Meta moderation strips image/video fields, only thumbnailUrl at 64x64 is available.
1561
1565
  */
@@ -25698,7 +25702,7 @@ type ListBroadcastRecipientsError = (unknown | {
25698
25702
  type AddBroadcastRecipientsData = {
25699
25703
  body: {
25700
25704
  /**
25701
- * Specific contact IDs to add
25705
+ * Specific contact IDs to add. Zernio contact ids (24-character hex), as returned by the list-contacts endpoint. A platform identifier such as a WhatsApp wa_id is rejected with 400; use phones for raw numbers.
25702
25706
  */
25703
25707
  contactIds?: Array<(string)>;
25704
25708
  /**
@@ -30078,6 +30082,10 @@ type CreateStandaloneAdData = {
30078
30082
  * Meta and TikTok. Publish state of the created entities. Omitted or ACTIVE publishes live (default, back-compat); PAUSED creates them paused so you can review before they spend. On Meta the pause is held on the campaign this call creates, leaving the ad set and ad switched on, so a single PUT /v1/ads/campaigns/{campaignId}/status with `active` brings the whole thing live. It is held at every level instead when the pause cannot rely on the campaign: `existingCampaignId` (that campaign may be running and is never touched) or `campaignStatus: ACTIVE`. On TikTok the whole campaign > ad group > ad hierarchy stays paused.
30079
30083
  */
30080
30084
  status?: 'ACTIVE' | 'PAUSED';
30085
+ /**
30086
+ * Meta only. Overrides `status` for the campaign level alone, so you can create a live campaign whose ad set and ad stay paused, or the reverse. Omitted, it follows `status`.
30087
+ */
30088
+ campaignStatus?: 'ACTIVE' | 'PAUSED';
30081
30089
  /**
30082
30090
  * Meta only. Where the budget lives, which selects the Meta budget model:
30083
30091
  * - `adset` (default): ABO (Ad-set Budget Optimization). The budget is set on the
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.584",
39
+ version: "0.2.586",
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.584",
8
+ version: "0.2.586",
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.584",
3
+ "version": "0.2.586",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -271,6 +271,10 @@ export type Ad = {
271
271
  * Public Facebook watch URL for VIDEO-type ads (https://www.facebook.com/watch/?v={videoId}). Null for non-video ads.
272
272
  */
273
273
  videoUrl?: (string) | null;
274
+ /**
275
+ * Meta ad creative id backing this ad. Reusable via existingCreativeId on POST /v1/ads/create.
276
+ */
277
+ creativeId?: (string) | null;
274
278
  /**
275
279
  * Meta creative object_type (e.g. SHARE, VIDEO, PRIVACY_CHECK_FAIL, POST_DELETED). Use this to render state-aware previews — when Meta moderation strips image/video fields, only thumbnailUrl at 64x64 is available.
276
280
  */
@@ -25956,7 +25960,7 @@ export type ListBroadcastRecipientsError = (unknown | {
25956
25960
  export type AddBroadcastRecipientsData = {
25957
25961
  body: {
25958
25962
  /**
25959
- * Specific contact IDs to add
25963
+ * Specific contact IDs to add. Zernio contact ids (24-character hex), as returned by the list-contacts endpoint. A platform identifier such as a WhatsApp wa_id is rejected with 400; use phones for raw numbers.
25960
25964
  */
25961
25965
  contactIds?: Array<(string)>;
25962
25966
  /**
@@ -30615,6 +30619,10 @@ export type CreateStandaloneAdData = {
30615
30619
  * Meta and TikTok. Publish state of the created entities. Omitted or ACTIVE publishes live (default, back-compat); PAUSED creates them paused so you can review before they spend. On Meta the pause is held on the campaign this call creates, leaving the ad set and ad switched on, so a single PUT /v1/ads/campaigns/{campaignId}/status with `active` brings the whole thing live. It is held at every level instead when the pause cannot rely on the campaign: `existingCampaignId` (that campaign may be running and is never touched) or `campaignStatus: ACTIVE`. On TikTok the whole campaign > ad group > ad hierarchy stays paused.
30616
30620
  */
30617
30621
  status?: 'ACTIVE' | 'PAUSED';
30622
+ /**
30623
+ * Meta only. Overrides `status` for the campaign level alone, so you can create a live campaign whose ad set and ad stay paused, or the reverse. Omitted, it follows `status`.
30624
+ */
30625
+ campaignStatus?: 'ACTIVE' | 'PAUSED';
30618
30626
  /**
30619
30627
  * Meta only. Where the budget lives, which selects the Meta budget model:
30620
30628
  * - `adset` (default): ABO (Ad-set Budget Optimization). The budget is set on the