@getlatedev/node 0.2.236 → 0.2.238
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 +28 -6
- package/dist/index.d.ts +28 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +28 -6
package/dist/index.d.mts
CHANGED
|
@@ -8445,11 +8445,12 @@ type CreateInviteTokenData = {
|
|
|
8445
8445
|
*/
|
|
8446
8446
|
profileIds?: Array<(string)>;
|
|
8447
8447
|
/**
|
|
8448
|
-
* Org role granted to the invitee. Defaults to 'member'.
|
|
8448
|
+
* Org role granted to the invitee. Defaults to 'member'. 'viewer' creates a read-only member who can view everything in their profile scope but cannot perform any content mutation (publish, edit, delete, connect accounts).
|
|
8449
8449
|
*/
|
|
8450
|
-
role?: 'member' | 'billing_admin';
|
|
8450
|
+
role?: 'member' | 'billing_admin' | 'viewer';
|
|
8451
8451
|
/**
|
|
8452
|
-
*
|
|
8452
|
+
* Deprecated. Use role 'viewer' instead. When true, the invite is created with role 'viewer'. Cannot be combined with role 'billing_admin'.
|
|
8453
|
+
* @deprecated
|
|
8453
8454
|
*/
|
|
8454
8455
|
readOnly?: boolean;
|
|
8455
8456
|
};
|
|
@@ -18645,6 +18646,10 @@ type CreateStandaloneAdData = {
|
|
|
18645
18646
|
* Required on legacy + attach shapes. For X/Twitter this is the tweet text (max 280 chars including a ~24-char URL when `linkUrl` is set). On LinkedIn this is the post commentary (the intro text shown above the ad). Max: Google=90, Pinterest=500.
|
|
18646
18647
|
*/
|
|
18647
18648
|
body?: string;
|
|
18649
|
+
/**
|
|
18650
|
+
* Meta only (facebook/instagram). Link description — the secondary text shown below the headline (Meta's link_data.description; on video creatives mapped to video_data.link_description). When omitted, Meta auto-pulls the destination URL's OpenGraph description. Applies on legacy, attach, and placementAssets shapes; for multi-creative use creatives[].description (this field is the shared fallback). For multi-text variations use dynamicCreative.descriptions instead.
|
|
18651
|
+
*/
|
|
18652
|
+
description?: string;
|
|
18648
18653
|
/**
|
|
18649
18654
|
* Required on legacy + attach shapes for Meta. Honoured on TikTok (passes through to the Spark Ad creative's `call_to_action`) and on LinkedIn (the CTA button on the ad; defaults to LEARN_MORE when `linkUrl` is set). LinkedIn accepts: LEARN_MORE, SIGN_UP, DOWNLOAD, SUBSCRIBE, REGISTER, JOIN, ATTEND, REQUEST_DEMO, VIEW_QUOTE, APPLY, SEE_MORE, SHOP_NOW, BUY_NOW. Ignored by Google, Pinterest, and X/Twitter.
|
|
18650
18655
|
*/
|
|
@@ -18654,7 +18659,7 @@ type CreateStandaloneAdData = {
|
|
|
18654
18659
|
*/
|
|
18655
18660
|
linkUrl?: string;
|
|
18656
18661
|
/**
|
|
18657
|
-
* Meta Lead Gen forms only (facebook/instagram). The leadgen_forms ID to attach to the ad's creative — create one via POST /v1/ads/lead-forms. REQUIRED when `goal` is `lead_generation
|
|
18662
|
+
* Meta Lead Gen forms only (facebook/instagram). The leadgen_forms ID to attach to the ad's creative — create one via POST /v1/ads/lead-forms. REQUIRED when `goal` is `lead_generation`, and on every ATTACH (`adSetId`) call that targets a lead ad set (the form attaches per-ad; Meta rejects a formless ad in a lead ad set). Ignored otherwise. The ad set's promoted_object.page_id + LEAD_GENERATION optimization + destination_type ON_AD are derived automatically from the goal. Both `placementAssets` (per-placement creative) and `dynamicCreative` (multi-text / multi-asset pool, e.g. multiple headlines and primary texts) ARE supported on instant-form lead ads — the form is attached for you, and for `dynamicCreative` the ad set is created as a Dynamic Creative ad set automatically (Meta requires that for any multi-text feed; there is no non-DCO multi-text path). Send a single `imageUrls` entry plus your text variations to get Meta's "Multiple Text Options" behavior on a lead ad.
|
|
18658
18663
|
*/
|
|
18659
18664
|
leadGenFormId?: string;
|
|
18660
18665
|
/**
|
|
@@ -18701,6 +18706,10 @@ type CreateStandaloneAdData = {
|
|
|
18701
18706
|
name?: string;
|
|
18702
18707
|
headline: string;
|
|
18703
18708
|
body: string;
|
|
18709
|
+
/**
|
|
18710
|
+
* Link description for this ad (link_data.description; video creatives: video_data.link_description). Falls back to the top-level `description`; when both are omitted Meta scrapes the destination URL's OG description.
|
|
18711
|
+
*/
|
|
18712
|
+
description?: string;
|
|
18704
18713
|
/**
|
|
18705
18714
|
* Image creative. Mutually exclusive with `video`.
|
|
18706
18715
|
*/
|
|
@@ -18724,6 +18733,16 @@ type CreateStandaloneAdData = {
|
|
|
18724
18733
|
* bid, use `PUT /v1/ads/ad-sets/{adSetId}`. Mutually exclusive
|
|
18725
18734
|
* with `creatives[]`.
|
|
18726
18735
|
*
|
|
18736
|
+
* The attached ad takes the full single-creative surface:
|
|
18737
|
+
* `headline`/`body`/`description`/`callToAction` plus either
|
|
18738
|
+
* `imageUrl`/`video` OR `placementAssets` (its own per-placement
|
|
18739
|
+
* Feed/Story assets), and `leadGenFormId` when the target is a
|
|
18740
|
+
* lead ad set (the parent must be ON_AD — true for ad sets
|
|
18741
|
+
* created via goal `lead_generation`; Meta rejects a formless ad
|
|
18742
|
+
* there, so pass the form on EVERY attached ad). This is the way
|
|
18743
|
+
* to build N full ads sharing one ad set: create the first ad
|
|
18744
|
+
* via the normal shape, then attach the rest one call each.
|
|
18745
|
+
*
|
|
18727
18746
|
* Supported on Meta (facebook, instagram) and TikTok. On TikTok
|
|
18728
18747
|
* the `adSetId` is the ad group ID; the new ad inherits the
|
|
18729
18748
|
* ad group's bid + budget + targeting.
|
|
@@ -18948,8 +18967,11 @@ type CreateStandaloneAdData = {
|
|
|
18948
18967
|
* each placement group on a SINGLE ad (e.g. a 9:16 on Stories/Reels and a 4:5 on Feed).
|
|
18949
18968
|
* The same thing Meta Ads Manager produces with "different creative per placement",
|
|
18950
18969
|
* mapped to the creative's `asset_feed_spec` + `asset_customization_rules`. Deterministic
|
|
18951
|
-
* pinning, NOT the auto-optimizing pool of `dynamicCreative` (mutually exclusive
|
|
18952
|
-
*
|
|
18970
|
+
* pinning, NOT the auto-optimizing pool of `dynamicCreative` (mutually exclusive). Works
|
|
18971
|
+
* on the legacy single shape AND the attach shape (`adSetId` + placementAssets adds one
|
|
18972
|
+
* placement-customized ad to an existing ad set — the way to build N per-placement ads
|
|
18973
|
+
* sharing one ad set: create the first normally, attach the rest). Cannot be combined
|
|
18974
|
+
* with `creatives[]`. Shared copy (headline, body, link,
|
|
18953
18975
|
* CTA) comes from the top-level single-creative fields since only the asset varies by
|
|
18954
18976
|
* placement. Each rule's `placements` accepts the same fields as the top-level
|
|
18955
18977
|
* `placements` object; Meta enforces co-selection rules and returns an actionable error.
|
package/dist/index.d.ts
CHANGED
|
@@ -8445,11 +8445,12 @@ type CreateInviteTokenData = {
|
|
|
8445
8445
|
*/
|
|
8446
8446
|
profileIds?: Array<(string)>;
|
|
8447
8447
|
/**
|
|
8448
|
-
* Org role granted to the invitee. Defaults to 'member'.
|
|
8448
|
+
* Org role granted to the invitee. Defaults to 'member'. 'viewer' creates a read-only member who can view everything in their profile scope but cannot perform any content mutation (publish, edit, delete, connect accounts).
|
|
8449
8449
|
*/
|
|
8450
|
-
role?: 'member' | 'billing_admin';
|
|
8450
|
+
role?: 'member' | 'billing_admin' | 'viewer';
|
|
8451
8451
|
/**
|
|
8452
|
-
*
|
|
8452
|
+
* Deprecated. Use role 'viewer' instead. When true, the invite is created with role 'viewer'. Cannot be combined with role 'billing_admin'.
|
|
8453
|
+
* @deprecated
|
|
8453
8454
|
*/
|
|
8454
8455
|
readOnly?: boolean;
|
|
8455
8456
|
};
|
|
@@ -18645,6 +18646,10 @@ type CreateStandaloneAdData = {
|
|
|
18645
18646
|
* Required on legacy + attach shapes. For X/Twitter this is the tweet text (max 280 chars including a ~24-char URL when `linkUrl` is set). On LinkedIn this is the post commentary (the intro text shown above the ad). Max: Google=90, Pinterest=500.
|
|
18646
18647
|
*/
|
|
18647
18648
|
body?: string;
|
|
18649
|
+
/**
|
|
18650
|
+
* Meta only (facebook/instagram). Link description — the secondary text shown below the headline (Meta's link_data.description; on video creatives mapped to video_data.link_description). When omitted, Meta auto-pulls the destination URL's OpenGraph description. Applies on legacy, attach, and placementAssets shapes; for multi-creative use creatives[].description (this field is the shared fallback). For multi-text variations use dynamicCreative.descriptions instead.
|
|
18651
|
+
*/
|
|
18652
|
+
description?: string;
|
|
18648
18653
|
/**
|
|
18649
18654
|
* Required on legacy + attach shapes for Meta. Honoured on TikTok (passes through to the Spark Ad creative's `call_to_action`) and on LinkedIn (the CTA button on the ad; defaults to LEARN_MORE when `linkUrl` is set). LinkedIn accepts: LEARN_MORE, SIGN_UP, DOWNLOAD, SUBSCRIBE, REGISTER, JOIN, ATTEND, REQUEST_DEMO, VIEW_QUOTE, APPLY, SEE_MORE, SHOP_NOW, BUY_NOW. Ignored by Google, Pinterest, and X/Twitter.
|
|
18650
18655
|
*/
|
|
@@ -18654,7 +18659,7 @@ type CreateStandaloneAdData = {
|
|
|
18654
18659
|
*/
|
|
18655
18660
|
linkUrl?: string;
|
|
18656
18661
|
/**
|
|
18657
|
-
* Meta Lead Gen forms only (facebook/instagram). The leadgen_forms ID to attach to the ad's creative — create one via POST /v1/ads/lead-forms. REQUIRED when `goal` is `lead_generation
|
|
18662
|
+
* Meta Lead Gen forms only (facebook/instagram). The leadgen_forms ID to attach to the ad's creative — create one via POST /v1/ads/lead-forms. REQUIRED when `goal` is `lead_generation`, and on every ATTACH (`adSetId`) call that targets a lead ad set (the form attaches per-ad; Meta rejects a formless ad in a lead ad set). Ignored otherwise. The ad set's promoted_object.page_id + LEAD_GENERATION optimization + destination_type ON_AD are derived automatically from the goal. Both `placementAssets` (per-placement creative) and `dynamicCreative` (multi-text / multi-asset pool, e.g. multiple headlines and primary texts) ARE supported on instant-form lead ads — the form is attached for you, and for `dynamicCreative` the ad set is created as a Dynamic Creative ad set automatically (Meta requires that for any multi-text feed; there is no non-DCO multi-text path). Send a single `imageUrls` entry plus your text variations to get Meta's "Multiple Text Options" behavior on a lead ad.
|
|
18658
18663
|
*/
|
|
18659
18664
|
leadGenFormId?: string;
|
|
18660
18665
|
/**
|
|
@@ -18701,6 +18706,10 @@ type CreateStandaloneAdData = {
|
|
|
18701
18706
|
name?: string;
|
|
18702
18707
|
headline: string;
|
|
18703
18708
|
body: string;
|
|
18709
|
+
/**
|
|
18710
|
+
* Link description for this ad (link_data.description; video creatives: video_data.link_description). Falls back to the top-level `description`; when both are omitted Meta scrapes the destination URL's OG description.
|
|
18711
|
+
*/
|
|
18712
|
+
description?: string;
|
|
18704
18713
|
/**
|
|
18705
18714
|
* Image creative. Mutually exclusive with `video`.
|
|
18706
18715
|
*/
|
|
@@ -18724,6 +18733,16 @@ type CreateStandaloneAdData = {
|
|
|
18724
18733
|
* bid, use `PUT /v1/ads/ad-sets/{adSetId}`. Mutually exclusive
|
|
18725
18734
|
* with `creatives[]`.
|
|
18726
18735
|
*
|
|
18736
|
+
* The attached ad takes the full single-creative surface:
|
|
18737
|
+
* `headline`/`body`/`description`/`callToAction` plus either
|
|
18738
|
+
* `imageUrl`/`video` OR `placementAssets` (its own per-placement
|
|
18739
|
+
* Feed/Story assets), and `leadGenFormId` when the target is a
|
|
18740
|
+
* lead ad set (the parent must be ON_AD — true for ad sets
|
|
18741
|
+
* created via goal `lead_generation`; Meta rejects a formless ad
|
|
18742
|
+
* there, so pass the form on EVERY attached ad). This is the way
|
|
18743
|
+
* to build N full ads sharing one ad set: create the first ad
|
|
18744
|
+
* via the normal shape, then attach the rest one call each.
|
|
18745
|
+
*
|
|
18727
18746
|
* Supported on Meta (facebook, instagram) and TikTok. On TikTok
|
|
18728
18747
|
* the `adSetId` is the ad group ID; the new ad inherits the
|
|
18729
18748
|
* ad group's bid + budget + targeting.
|
|
@@ -18948,8 +18967,11 @@ type CreateStandaloneAdData = {
|
|
|
18948
18967
|
* each placement group on a SINGLE ad (e.g. a 9:16 on Stories/Reels and a 4:5 on Feed).
|
|
18949
18968
|
* The same thing Meta Ads Manager produces with "different creative per placement",
|
|
18950
18969
|
* mapped to the creative's `asset_feed_spec` + `asset_customization_rules`. Deterministic
|
|
18951
|
-
* pinning, NOT the auto-optimizing pool of `dynamicCreative` (mutually exclusive
|
|
18952
|
-
*
|
|
18970
|
+
* pinning, NOT the auto-optimizing pool of `dynamicCreative` (mutually exclusive). Works
|
|
18971
|
+
* on the legacy single shape AND the attach shape (`adSetId` + placementAssets adds one
|
|
18972
|
+
* placement-customized ad to an existing ad set — the way to build N per-placement ads
|
|
18973
|
+
* sharing one ad set: create the first normally, attach the rest). Cannot be combined
|
|
18974
|
+
* with `creatives[]`. Shared copy (headline, body, link,
|
|
18953
18975
|
* CTA) comes from the top-level single-creative fields since only the asset varies by
|
|
18954
18976
|
* placement. Each rule's `placements` accepts the same fields as the top-level
|
|
18955
18977
|
* `placements` object; Meta enforces co-selection rules and returns an actionable error.
|
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.
|
|
39
|
+
version: "0.2.238",
|
|
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.
|
|
8
|
+
version: "0.2.238",
|
|
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
|
@@ -8128,11 +8128,12 @@ export type CreateInviteTokenData = {
|
|
|
8128
8128
|
*/
|
|
8129
8129
|
profileIds?: Array<(string)>;
|
|
8130
8130
|
/**
|
|
8131
|
-
* Org role granted to the invitee. Defaults to 'member'.
|
|
8131
|
+
* Org role granted to the invitee. Defaults to 'member'. 'viewer' creates a read-only member who can view everything in their profile scope but cannot perform any content mutation (publish, edit, delete, connect accounts).
|
|
8132
8132
|
*/
|
|
8133
|
-
role?: 'member' | 'billing_admin';
|
|
8133
|
+
role?: 'member' | 'billing_admin' | 'viewer';
|
|
8134
8134
|
/**
|
|
8135
|
-
*
|
|
8135
|
+
* Deprecated. Use role 'viewer' instead. When true, the invite is created with role 'viewer'. Cannot be combined with role 'billing_admin'.
|
|
8136
|
+
* @deprecated
|
|
8136
8137
|
*/
|
|
8137
8138
|
readOnly?: boolean;
|
|
8138
8139
|
};
|
|
@@ -19138,6 +19139,10 @@ export type CreateStandaloneAdData = {
|
|
|
19138
19139
|
* Required on legacy + attach shapes. For X/Twitter this is the tweet text (max 280 chars including a ~24-char URL when `linkUrl` is set). On LinkedIn this is the post commentary (the intro text shown above the ad). Max: Google=90, Pinterest=500.
|
|
19139
19140
|
*/
|
|
19140
19141
|
body?: string;
|
|
19142
|
+
/**
|
|
19143
|
+
* Meta only (facebook/instagram). Link description — the secondary text shown below the headline (Meta's link_data.description; on video creatives mapped to video_data.link_description). When omitted, Meta auto-pulls the destination URL's OpenGraph description. Applies on legacy, attach, and placementAssets shapes; for multi-creative use creatives[].description (this field is the shared fallback). For multi-text variations use dynamicCreative.descriptions instead.
|
|
19144
|
+
*/
|
|
19145
|
+
description?: string;
|
|
19141
19146
|
/**
|
|
19142
19147
|
* Required on legacy + attach shapes for Meta. Honoured on TikTok (passes through to the Spark Ad creative's `call_to_action`) and on LinkedIn (the CTA button on the ad; defaults to LEARN_MORE when `linkUrl` is set). LinkedIn accepts: LEARN_MORE, SIGN_UP, DOWNLOAD, SUBSCRIBE, REGISTER, JOIN, ATTEND, REQUEST_DEMO, VIEW_QUOTE, APPLY, SEE_MORE, SHOP_NOW, BUY_NOW. Ignored by Google, Pinterest, and X/Twitter.
|
|
19143
19148
|
*/
|
|
@@ -19147,7 +19152,7 @@ export type CreateStandaloneAdData = {
|
|
|
19147
19152
|
*/
|
|
19148
19153
|
linkUrl?: string;
|
|
19149
19154
|
/**
|
|
19150
|
-
* Meta Lead Gen forms only (facebook/instagram). The leadgen_forms ID to attach to the ad's creative — create one via POST /v1/ads/lead-forms. REQUIRED when `goal` is `lead_generation
|
|
19155
|
+
* Meta Lead Gen forms only (facebook/instagram). The leadgen_forms ID to attach to the ad's creative — create one via POST /v1/ads/lead-forms. REQUIRED when `goal` is `lead_generation`, and on every ATTACH (`adSetId`) call that targets a lead ad set (the form attaches per-ad; Meta rejects a formless ad in a lead ad set). Ignored otherwise. The ad set's promoted_object.page_id + LEAD_GENERATION optimization + destination_type ON_AD are derived automatically from the goal. Both `placementAssets` (per-placement creative) and `dynamicCreative` (multi-text / multi-asset pool, e.g. multiple headlines and primary texts) ARE supported on instant-form lead ads — the form is attached for you, and for `dynamicCreative` the ad set is created as a Dynamic Creative ad set automatically (Meta requires that for any multi-text feed; there is no non-DCO multi-text path). Send a single `imageUrls` entry plus your text variations to get Meta's "Multiple Text Options" behavior on a lead ad.
|
|
19151
19156
|
*/
|
|
19152
19157
|
leadGenFormId?: string;
|
|
19153
19158
|
/**
|
|
@@ -19194,6 +19199,10 @@ export type CreateStandaloneAdData = {
|
|
|
19194
19199
|
name?: string;
|
|
19195
19200
|
headline: string;
|
|
19196
19201
|
body: string;
|
|
19202
|
+
/**
|
|
19203
|
+
* Link description for this ad (link_data.description; video creatives: video_data.link_description). Falls back to the top-level `description`; when both are omitted Meta scrapes the destination URL's OG description.
|
|
19204
|
+
*/
|
|
19205
|
+
description?: string;
|
|
19197
19206
|
/**
|
|
19198
19207
|
* Image creative. Mutually exclusive with `video`.
|
|
19199
19208
|
*/
|
|
@@ -19217,6 +19226,16 @@ export type CreateStandaloneAdData = {
|
|
|
19217
19226
|
* bid, use `PUT /v1/ads/ad-sets/{adSetId}`. Mutually exclusive
|
|
19218
19227
|
* with `creatives[]`.
|
|
19219
19228
|
*
|
|
19229
|
+
* The attached ad takes the full single-creative surface:
|
|
19230
|
+
* `headline`/`body`/`description`/`callToAction` plus either
|
|
19231
|
+
* `imageUrl`/`video` OR `placementAssets` (its own per-placement
|
|
19232
|
+
* Feed/Story assets), and `leadGenFormId` when the target is a
|
|
19233
|
+
* lead ad set (the parent must be ON_AD — true for ad sets
|
|
19234
|
+
* created via goal `lead_generation`; Meta rejects a formless ad
|
|
19235
|
+
* there, so pass the form on EVERY attached ad). This is the way
|
|
19236
|
+
* to build N full ads sharing one ad set: create the first ad
|
|
19237
|
+
* via the normal shape, then attach the rest one call each.
|
|
19238
|
+
*
|
|
19220
19239
|
* Supported on Meta (facebook, instagram) and TikTok. On TikTok
|
|
19221
19240
|
* the `adSetId` is the ad group ID; the new ad inherits the
|
|
19222
19241
|
* ad group's bid + budget + targeting.
|
|
@@ -19441,8 +19460,11 @@ export type CreateStandaloneAdData = {
|
|
|
19441
19460
|
* each placement group on a SINGLE ad (e.g. a 9:16 on Stories/Reels and a 4:5 on Feed).
|
|
19442
19461
|
* The same thing Meta Ads Manager produces with "different creative per placement",
|
|
19443
19462
|
* mapped to the creative's `asset_feed_spec` + `asset_customization_rules`. Deterministic
|
|
19444
|
-
* pinning, NOT the auto-optimizing pool of `dynamicCreative` (mutually exclusive
|
|
19445
|
-
*
|
|
19463
|
+
* pinning, NOT the auto-optimizing pool of `dynamicCreative` (mutually exclusive). Works
|
|
19464
|
+
* on the legacy single shape AND the attach shape (`adSetId` + placementAssets adds one
|
|
19465
|
+
* placement-customized ad to an existing ad set — the way to build N per-placement ads
|
|
19466
|
+
* sharing one ad set: create the first normally, attach the rest). Cannot be combined
|
|
19467
|
+
* with `creatives[]`. Shared copy (headline, body, link,
|
|
19446
19468
|
* CTA) comes from the top-level single-creative fields since only the asset varies by
|
|
19447
19469
|
* placement. Each rule's `placements` accepts the same fields as the top-level
|
|
19448
19470
|
* `placements` object; Meta enforces co-selection rules and returns an actionable error.
|