@zernio/node 0.2.1490 → 0.2.1492
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 +16 -7
- package/dist/index.d.ts +16 -7
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +16 -7
package/dist/index.d.mts
CHANGED
|
@@ -14450,7 +14450,7 @@ type MetaPagePartner = {
|
|
|
14450
14450
|
* A block is all-image OR all-video, never mixed (Meta's asset_feed_spec carries one ad format). Exactly one catch-all default is required.
|
|
14451
14451
|
*
|
|
14452
14452
|
* - Image mode: `defaultImageUrl` + `rules[].imageUrl`.
|
|
14453
|
-
* - Video mode: `defaultVideoUrl` + `rules[].videoUrl`, with optional `thumbnailUrl`/`defaultThumbnailUrl` posters (Meta auto-generates them when omitted).
|
|
14453
|
+
* - Video mode: `defaultVideoUrl` or `defaultVideoId` + `rules[].videoUrl` or `rules[].videoId`, with optional `thumbnailUrl`/`defaultThumbnailUrl` posters (Meta auto-generates them when omitted). An id reuses a video already on the ad account and wins over a URL in the same slot; the two can mix across slots.
|
|
14454
14454
|
*
|
|
14455
14455
|
* Meta controls text rendering by placement and format. Validation accepts these fields but does not prove every field appears in delivery. Preview the ad, and put copy that must always be visible into the image or video itself.
|
|
14456
14456
|
*
|
|
@@ -14461,9 +14461,13 @@ type MetaPlacementAssets = {
|
|
|
14461
14461
|
*/
|
|
14462
14462
|
defaultImageUrl?: string;
|
|
14463
14463
|
/**
|
|
14464
|
-
* Video mode. Catch-all video for any placement no rule matches.
|
|
14464
|
+
* Video mode. Catch-all video for any placement no rule matches. Video mode requires this or `defaultVideoId`.
|
|
14465
14465
|
*/
|
|
14466
14466
|
defaultVideoUrl?: string;
|
|
14467
|
+
/**
|
|
14468
|
+
* Video mode. ID of a video already on the ad account, used as the catch-all instead of uploading `defaultVideoUrl`. Wins over `defaultVideoUrl`. A video still processing after 30 seconds returns 409.
|
|
14469
|
+
*/
|
|
14470
|
+
defaultVideoId?: string;
|
|
14467
14471
|
/**
|
|
14468
14472
|
* Video mode (optional). Poster image for the default video; Meta auto-generates one when omitted.
|
|
14469
14473
|
*/
|
|
@@ -14477,9 +14481,13 @@ type MetaPlacementAssets = {
|
|
|
14477
14481
|
*/
|
|
14478
14482
|
imageUrl?: string;
|
|
14479
14483
|
/**
|
|
14480
|
-
* Video mode. The video to deliver for this rule's placements.
|
|
14484
|
+
* Video mode. The video to deliver for this rule's placements. Each rule needs this or `videoId`.
|
|
14481
14485
|
*/
|
|
14482
14486
|
videoUrl?: string;
|
|
14487
|
+
/**
|
|
14488
|
+
* Video mode. ID of a video already on the ad account, used for this rule instead of uploading `videoUrl`. Wins over `videoUrl`. A video still processing after 30 seconds returns 409.
|
|
14489
|
+
*/
|
|
14490
|
+
videoId?: string;
|
|
14483
14491
|
/**
|
|
14484
14492
|
* Video mode (optional). Poster image for this rule's video; auto-generated when omitted.
|
|
14485
14493
|
*/
|
|
@@ -20800,6 +20808,7 @@ type WebhookPayloadCommerceOrder = {
|
|
|
20800
20808
|
* UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
|
|
20801
20809
|
*/
|
|
20802
20810
|
timestamp?: string;
|
|
20811
|
+
profiles?: WebhookProfiles;
|
|
20803
20812
|
store?: {
|
|
20804
20813
|
/**
|
|
20805
20814
|
* Zernio SocialAccount id of the store.
|
|
@@ -59331,8 +59340,8 @@ type CreateStandaloneAdData = {
|
|
|
59331
59340
|
*
|
|
59332
59341
|
* Before the dry run, Meta validateOnly runs the account status and payment checks of GET /v1/ads/accounts/health: an ad account that is not ready answers its blocker `code` (`ad_account_unusable`, `ad_account_payment_required`) with `details.hint` and `details.fix`, and Meta is not called.
|
|
59333
59342
|
*
|
|
59334
|
-
* - Supported: a single image or existing video.id (each also with bodies[] / headlines[] Multiple Text Options), all-image placementAssets with per-rule copy and text pools, or existingCreativeId.
|
|
59335
|
-
* - Return 400: dynamicCreative, translations, carouselCards, placement videos, new video uploads, creatives[], adSetId, RESERVED buying.
|
|
59343
|
+
* - Supported: a single image or existing video.id (each also with bodies[] / headlines[] Multiple Text Options), all-image placementAssets with per-rule copy and text pools, placementAssets with an existing video id in every slot and no thumbnails, or existingCreativeId.
|
|
59344
|
+
* - Return 400: dynamicCreative, translations, carouselCards, placement videos by URL or with thumbnails, new video uploads, creatives[], adSetId, RESERVED buying.
|
|
59336
59345
|
* - Placement validation uses existing Instagram identities only. Existing campaign or creative nodes are marked skipped.
|
|
59337
59346
|
* - When Meta cannot dry-run the nested tree, the campaign and creative are validated alone and the adSet and ad nodes return unverified with the reason. This covers code 2, and two errors Meta returns but then creates normally (below).
|
|
59338
59347
|
* - Code 1 (unknown error) on an OFFSITE_CONVERSIONS ad set nested in a new campaign (some website-conversion ad sets).
|
|
@@ -60168,12 +60177,12 @@ type CreateStandaloneAdData = {
|
|
|
60168
60177
|
*
|
|
60169
60178
|
* Meta controls text rendering by placement and format. Validation accepts these fields but does not prove that every field appears in delivery. Preview the ad, and put copy that must always be visible into the image or video itself.
|
|
60170
60179
|
*
|
|
60171
|
-
* `validateOnly: true` supports all-image placementAssets without uploading or creating anything. Video
|
|
60180
|
+
* `validateOnly: true` supports all-image placementAssets, and video placementAssets with a video id in every slot and no thumbnails, without uploading or creating anything. Video URLs and thumbnails need an upload, so they return 400.
|
|
60172
60181
|
*
|
|
60173
60182
|
* **Media.** A block is all-image OR all-video, never mixed (Meta's asset_feed_spec carries one ad format). Exactly one catch-all default is required.
|
|
60174
60183
|
*
|
|
60175
60184
|
* - Image mode: `defaultImageUrl` + `rules[].imageUrl`.
|
|
60176
|
-
* - Video mode: `defaultVideoUrl` + `rules[].videoUrl`, with optional `thumbnailUrl`/`defaultThumbnailUrl` posters (Meta auto-generates them when omitted).
|
|
60185
|
+
* - Video mode: `defaultVideoUrl` or `defaultVideoId` + `rules[].videoUrl` or `rules[].videoId`, with optional `thumbnailUrl`/`defaultThumbnailUrl` posters (Meta auto-generates them when omitted). An id reuses a video already on the ad account and wins over a URL in the same slot; the two can mix across slots.
|
|
60177
60186
|
*
|
|
60178
60187
|
*/
|
|
60179
60188
|
placementAssets?: (MetaPlacementAssets);
|
package/dist/index.d.ts
CHANGED
|
@@ -14450,7 +14450,7 @@ type MetaPagePartner = {
|
|
|
14450
14450
|
* A block is all-image OR all-video, never mixed (Meta's asset_feed_spec carries one ad format). Exactly one catch-all default is required.
|
|
14451
14451
|
*
|
|
14452
14452
|
* - Image mode: `defaultImageUrl` + `rules[].imageUrl`.
|
|
14453
|
-
* - Video mode: `defaultVideoUrl` + `rules[].videoUrl`, with optional `thumbnailUrl`/`defaultThumbnailUrl` posters (Meta auto-generates them when omitted).
|
|
14453
|
+
* - Video mode: `defaultVideoUrl` or `defaultVideoId` + `rules[].videoUrl` or `rules[].videoId`, with optional `thumbnailUrl`/`defaultThumbnailUrl` posters (Meta auto-generates them when omitted). An id reuses a video already on the ad account and wins over a URL in the same slot; the two can mix across slots.
|
|
14454
14454
|
*
|
|
14455
14455
|
* Meta controls text rendering by placement and format. Validation accepts these fields but does not prove every field appears in delivery. Preview the ad, and put copy that must always be visible into the image or video itself.
|
|
14456
14456
|
*
|
|
@@ -14461,9 +14461,13 @@ type MetaPlacementAssets = {
|
|
|
14461
14461
|
*/
|
|
14462
14462
|
defaultImageUrl?: string;
|
|
14463
14463
|
/**
|
|
14464
|
-
* Video mode. Catch-all video for any placement no rule matches.
|
|
14464
|
+
* Video mode. Catch-all video for any placement no rule matches. Video mode requires this or `defaultVideoId`.
|
|
14465
14465
|
*/
|
|
14466
14466
|
defaultVideoUrl?: string;
|
|
14467
|
+
/**
|
|
14468
|
+
* Video mode. ID of a video already on the ad account, used as the catch-all instead of uploading `defaultVideoUrl`. Wins over `defaultVideoUrl`. A video still processing after 30 seconds returns 409.
|
|
14469
|
+
*/
|
|
14470
|
+
defaultVideoId?: string;
|
|
14467
14471
|
/**
|
|
14468
14472
|
* Video mode (optional). Poster image for the default video; Meta auto-generates one when omitted.
|
|
14469
14473
|
*/
|
|
@@ -14477,9 +14481,13 @@ type MetaPlacementAssets = {
|
|
|
14477
14481
|
*/
|
|
14478
14482
|
imageUrl?: string;
|
|
14479
14483
|
/**
|
|
14480
|
-
* Video mode. The video to deliver for this rule's placements.
|
|
14484
|
+
* Video mode. The video to deliver for this rule's placements. Each rule needs this or `videoId`.
|
|
14481
14485
|
*/
|
|
14482
14486
|
videoUrl?: string;
|
|
14487
|
+
/**
|
|
14488
|
+
* Video mode. ID of a video already on the ad account, used for this rule instead of uploading `videoUrl`. Wins over `videoUrl`. A video still processing after 30 seconds returns 409.
|
|
14489
|
+
*/
|
|
14490
|
+
videoId?: string;
|
|
14483
14491
|
/**
|
|
14484
14492
|
* Video mode (optional). Poster image for this rule's video; auto-generated when omitted.
|
|
14485
14493
|
*/
|
|
@@ -20800,6 +20808,7 @@ type WebhookPayloadCommerceOrder = {
|
|
|
20800
20808
|
* UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
|
|
20801
20809
|
*/
|
|
20802
20810
|
timestamp?: string;
|
|
20811
|
+
profiles?: WebhookProfiles;
|
|
20803
20812
|
store?: {
|
|
20804
20813
|
/**
|
|
20805
20814
|
* Zernio SocialAccount id of the store.
|
|
@@ -59331,8 +59340,8 @@ type CreateStandaloneAdData = {
|
|
|
59331
59340
|
*
|
|
59332
59341
|
* Before the dry run, Meta validateOnly runs the account status and payment checks of GET /v1/ads/accounts/health: an ad account that is not ready answers its blocker `code` (`ad_account_unusable`, `ad_account_payment_required`) with `details.hint` and `details.fix`, and Meta is not called.
|
|
59333
59342
|
*
|
|
59334
|
-
* - Supported: a single image or existing video.id (each also with bodies[] / headlines[] Multiple Text Options), all-image placementAssets with per-rule copy and text pools, or existingCreativeId.
|
|
59335
|
-
* - Return 400: dynamicCreative, translations, carouselCards, placement videos, new video uploads, creatives[], adSetId, RESERVED buying.
|
|
59343
|
+
* - Supported: a single image or existing video.id (each also with bodies[] / headlines[] Multiple Text Options), all-image placementAssets with per-rule copy and text pools, placementAssets with an existing video id in every slot and no thumbnails, or existingCreativeId.
|
|
59344
|
+
* - Return 400: dynamicCreative, translations, carouselCards, placement videos by URL or with thumbnails, new video uploads, creatives[], adSetId, RESERVED buying.
|
|
59336
59345
|
* - Placement validation uses existing Instagram identities only. Existing campaign or creative nodes are marked skipped.
|
|
59337
59346
|
* - When Meta cannot dry-run the nested tree, the campaign and creative are validated alone and the adSet and ad nodes return unverified with the reason. This covers code 2, and two errors Meta returns but then creates normally (below).
|
|
59338
59347
|
* - Code 1 (unknown error) on an OFFSITE_CONVERSIONS ad set nested in a new campaign (some website-conversion ad sets).
|
|
@@ -60168,12 +60177,12 @@ type CreateStandaloneAdData = {
|
|
|
60168
60177
|
*
|
|
60169
60178
|
* Meta controls text rendering by placement and format. Validation accepts these fields but does not prove that every field appears in delivery. Preview the ad, and put copy that must always be visible into the image or video itself.
|
|
60170
60179
|
*
|
|
60171
|
-
* `validateOnly: true` supports all-image placementAssets without uploading or creating anything. Video
|
|
60180
|
+
* `validateOnly: true` supports all-image placementAssets, and video placementAssets with a video id in every slot and no thumbnails, without uploading or creating anything. Video URLs and thumbnails need an upload, so they return 400.
|
|
60172
60181
|
*
|
|
60173
60182
|
* **Media.** A block is all-image OR all-video, never mixed (Meta's asset_feed_spec carries one ad format). Exactly one catch-all default is required.
|
|
60174
60183
|
*
|
|
60175
60184
|
* - Image mode: `defaultImageUrl` + `rules[].imageUrl`.
|
|
60176
|
-
* - Video mode: `defaultVideoUrl` + `rules[].videoUrl`, with optional `thumbnailUrl`/`defaultThumbnailUrl` posters (Meta auto-generates them when omitted).
|
|
60185
|
+
* - Video mode: `defaultVideoUrl` or `defaultVideoId` + `rules[].videoUrl` or `rules[].videoId`, with optional `thumbnailUrl`/`defaultThumbnailUrl` posters (Meta auto-generates them when omitted). An id reuses a video already on the ad account and wins over a URL in the same slot; the two can mix across slots.
|
|
60177
60186
|
*
|
|
60178
60187
|
*/
|
|
60179
60188
|
placementAssets?: (MetaPlacementAssets);
|
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.
|
|
39
|
+
version: "0.2.1492",
|
|
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.
|
|
8
|
+
version: "0.2.1492",
|
|
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
|
@@ -12688,7 +12688,7 @@ export type MetaPagePartner = {
|
|
|
12688
12688
|
* A block is all-image OR all-video, never mixed (Meta's asset_feed_spec carries one ad format). Exactly one catch-all default is required.
|
|
12689
12689
|
*
|
|
12690
12690
|
* - Image mode: `defaultImageUrl` + `rules[].imageUrl`.
|
|
12691
|
-
* - Video mode: `defaultVideoUrl` + `rules[].videoUrl`, with optional `thumbnailUrl`/`defaultThumbnailUrl` posters (Meta auto-generates them when omitted).
|
|
12691
|
+
* - Video mode: `defaultVideoUrl` or `defaultVideoId` + `rules[].videoUrl` or `rules[].videoId`, with optional `thumbnailUrl`/`defaultThumbnailUrl` posters (Meta auto-generates them when omitted). An id reuses a video already on the ad account and wins over a URL in the same slot; the two can mix across slots.
|
|
12692
12692
|
*
|
|
12693
12693
|
* Meta controls text rendering by placement and format. Validation accepts these fields but does not prove every field appears in delivery. Preview the ad, and put copy that must always be visible into the image or video itself.
|
|
12694
12694
|
*
|
|
@@ -12699,9 +12699,13 @@ export type MetaPlacementAssets = {
|
|
|
12699
12699
|
*/
|
|
12700
12700
|
defaultImageUrl?: string;
|
|
12701
12701
|
/**
|
|
12702
|
-
* Video mode. Catch-all video for any placement no rule matches.
|
|
12702
|
+
* Video mode. Catch-all video for any placement no rule matches. Video mode requires this or `defaultVideoId`.
|
|
12703
12703
|
*/
|
|
12704
12704
|
defaultVideoUrl?: string;
|
|
12705
|
+
/**
|
|
12706
|
+
* Video mode. ID of a video already on the ad account, used as the catch-all instead of uploading `defaultVideoUrl`. Wins over `defaultVideoUrl`. A video still processing after 30 seconds returns 409.
|
|
12707
|
+
*/
|
|
12708
|
+
defaultVideoId?: string;
|
|
12705
12709
|
/**
|
|
12706
12710
|
* Video mode (optional). Poster image for the default video; Meta auto-generates one when omitted.
|
|
12707
12711
|
*/
|
|
@@ -12715,9 +12719,13 @@ export type MetaPlacementAssets = {
|
|
|
12715
12719
|
*/
|
|
12716
12720
|
imageUrl?: string;
|
|
12717
12721
|
/**
|
|
12718
|
-
* Video mode. The video to deliver for this rule's placements.
|
|
12722
|
+
* Video mode. The video to deliver for this rule's placements. Each rule needs this or `videoId`.
|
|
12719
12723
|
*/
|
|
12720
12724
|
videoUrl?: string;
|
|
12725
|
+
/**
|
|
12726
|
+
* Video mode. ID of a video already on the ad account, used for this rule instead of uploading `videoUrl`. Wins over `videoUrl`. A video still processing after 30 seconds returns 409.
|
|
12727
|
+
*/
|
|
12728
|
+
videoId?: string;
|
|
12721
12729
|
/**
|
|
12722
12730
|
* Video mode (optional). Poster image for this rule's video; auto-generated when omitted.
|
|
12723
12731
|
*/
|
|
@@ -19335,6 +19343,7 @@ export type WebhookPayloadCommerceOrder = {
|
|
|
19335
19343
|
* UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.
|
|
19336
19344
|
*/
|
|
19337
19345
|
timestamp?: string;
|
|
19346
|
+
profiles?: WebhookProfiles;
|
|
19338
19347
|
store?: {
|
|
19339
19348
|
/**
|
|
19340
19349
|
* Zernio SocialAccount id of the store.
|
|
@@ -60553,8 +60562,8 @@ export type CreateStandaloneAdData = {
|
|
|
60553
60562
|
*
|
|
60554
60563
|
* Before the dry run, Meta validateOnly runs the account status and payment checks of GET /v1/ads/accounts/health: an ad account that is not ready answers its blocker `code` (`ad_account_unusable`, `ad_account_payment_required`) with `details.hint` and `details.fix`, and Meta is not called.
|
|
60555
60564
|
*
|
|
60556
|
-
* - Supported: a single image or existing video.id (each also with bodies[] / headlines[] Multiple Text Options), all-image placementAssets with per-rule copy and text pools, or existingCreativeId.
|
|
60557
|
-
* - Return 400: dynamicCreative, translations, carouselCards, placement videos, new video uploads, creatives[], adSetId, RESERVED buying.
|
|
60565
|
+
* - Supported: a single image or existing video.id (each also with bodies[] / headlines[] Multiple Text Options), all-image placementAssets with per-rule copy and text pools, placementAssets with an existing video id in every slot and no thumbnails, or existingCreativeId.
|
|
60566
|
+
* - Return 400: dynamicCreative, translations, carouselCards, placement videos by URL or with thumbnails, new video uploads, creatives[], adSetId, RESERVED buying.
|
|
60558
60567
|
* - Placement validation uses existing Instagram identities only. Existing campaign or creative nodes are marked skipped.
|
|
60559
60568
|
* - When Meta cannot dry-run the nested tree, the campaign and creative are validated alone and the adSet and ad nodes return unverified with the reason. This covers code 2, and two errors Meta returns but then creates normally (below).
|
|
60560
60569
|
* - Code 1 (unknown error) on an OFFSITE_CONVERSIONS ad set nested in a new campaign (some website-conversion ad sets).
|
|
@@ -61390,12 +61399,12 @@ export type CreateStandaloneAdData = {
|
|
|
61390
61399
|
*
|
|
61391
61400
|
* Meta controls text rendering by placement and format. Validation accepts these fields but does not prove that every field appears in delivery. Preview the ad, and put copy that must always be visible into the image or video itself.
|
|
61392
61401
|
*
|
|
61393
|
-
* `validateOnly: true` supports all-image placementAssets without uploading or creating anything. Video
|
|
61402
|
+
* `validateOnly: true` supports all-image placementAssets, and video placementAssets with a video id in every slot and no thumbnails, without uploading or creating anything. Video URLs and thumbnails need an upload, so they return 400.
|
|
61394
61403
|
*
|
|
61395
61404
|
* **Media.** A block is all-image OR all-video, never mixed (Meta's asset_feed_spec carries one ad format). Exactly one catch-all default is required.
|
|
61396
61405
|
*
|
|
61397
61406
|
* - Image mode: `defaultImageUrl` + `rules[].imageUrl`.
|
|
61398
|
-
* - Video mode: `defaultVideoUrl` + `rules[].videoUrl`, with optional `thumbnailUrl`/`defaultThumbnailUrl` posters (Meta auto-generates them when omitted).
|
|
61407
|
+
* - Video mode: `defaultVideoUrl` or `defaultVideoId` + `rules[].videoUrl` or `rules[].videoId`, with optional `thumbnailUrl`/`defaultThumbnailUrl` posters (Meta auto-generates them when omitted). An id reuses a video already on the ad account and wins over a URL in the same slot; the two can mix across slots.
|
|
61399
61408
|
*
|
|
61400
61409
|
*/
|
|
61401
61410
|
placementAssets?: (MetaPlacementAssets);
|