@getlatedev/node 0.2.1098 → 0.2.1100
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 +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +1 -1
- package/src/generated/types.gen.ts +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -12139,7 +12139,7 @@ type TikTokPlatformData = {
|
|
|
12139
12139
|
*/
|
|
12140
12140
|
musicSoundInfo?: {
|
|
12141
12141
|
/**
|
|
12142
|
-
* The id
|
|
12142
|
+
* The clip.id of a track from GET /v1/accounts/{accountId}/tiktok/commercial-music (its id publishes too, but viewers may see the sound as unavailable in their country; observed from Germany). TikTok fails the publish with a generic 51065 when given the commercial music id instead.
|
|
12143
12143
|
*/
|
|
12144
12144
|
musicSoundId: string;
|
|
12145
12145
|
/**
|
|
@@ -19993,7 +19993,7 @@ type ListTikTokCommercialMusicData = {
|
|
|
19993
19993
|
type ListTikTokCommercialMusicResponse = ({
|
|
19994
19994
|
tracks?: Array<{
|
|
19995
19995
|
/**
|
|
19996
|
-
* The id
|
|
19996
|
+
* The full track's song clip id. Accepted as musicSoundId, but prefer clip.id: posts published with this id have shown viewers a sound page saying the song is not available in their country (observed from Germany). TikTok rejects the commercial music id itself at publish time.
|
|
19997
19997
|
*/
|
|
19998
19998
|
id?: string;
|
|
19999
19999
|
/**
|
|
@@ -20014,7 +20014,7 @@ type ListTikTokCommercialMusicResponse = ({
|
|
|
20014
20014
|
*/
|
|
20015
20015
|
rank?: number;
|
|
20016
20016
|
/**
|
|
20017
|
-
* The trending excerpt of the track, when TikTok provides one.
|
|
20017
|
+
* The trending excerpt of the track, when TikTok provides one. Send clip.id as musicSoundId: it publishes and its sound page opens for viewers, unlike the full-track id (observed from Germany, 2026-10-06).
|
|
20018
20018
|
*/
|
|
20019
20019
|
clip?: {
|
|
20020
20020
|
id?: string;
|
|
@@ -44818,7 +44818,7 @@ type BoostPostData = {
|
|
|
44818
44818
|
*/
|
|
44819
44819
|
adSetStatus?: 'ACTIVE' | 'PAUSED';
|
|
44820
44820
|
/**
|
|
44821
|
-
* Sets the switch of the new ad alone, also when attaching to an existing ad set with `adSetId` (Meta, TikTok Smart+), and overrides `status` for it. Same precedence as `adSetStatus`. Omitted, it follows `status`.
|
|
44821
|
+
* Sets the switch of the new ad alone, also when attaching to an existing ad set with `adSetId` (Meta, TikTok Smart+), and overrides `status` for it. Same precedence as `adSetStatus`. Omitted, it follows `status`. LinkedIn: a creative held off is created DRAFT, because LinkedIn refuses PAUSED on a creative until its review is APPROVED. A DRAFT creative is not submitted for review and cannot serve; it reads `paused`, and resuming the ad (PUT /v1/ads/{adId}/status `active`) switches it ACTIVE, which starts the review.
|
|
44822
44822
|
*
|
|
44823
44823
|
* X returns a 400: a promoted post has no switch of its own, so hold the line item with `adSetStatus`.
|
|
44824
44824
|
*
|
|
@@ -45174,7 +45174,7 @@ type CreateStandaloneAdData = {
|
|
|
45174
45174
|
*/
|
|
45175
45175
|
budgetType?: 'daily' | 'lifetime';
|
|
45176
45176
|
/**
|
|
45177
|
-
* Publish state of the created entities, on every platform. Omitted or ACTIVE publishes live (default, back-compat); PAUSED pauses only the TOP-MOST object this call creates and switches everything below it on, so one resume of that object brings the new tree live and nothing that already existed is touched: a new campaign is held paused with its ad set and ad on; with `existingCampaignId` the new ad set is held paused with its ad on; with `adSetId` the new ad itself is paused. `campaignStatus: ACTIVE` with `status: PAUSED` moves the pause down to the new ad set. `campaignStatus`, `adSetStatus` and `adStatus` set one level each and always win for that level; `status: PAUSED` adds a hold of its own only when none of them is PAUSED. To create every object paused, send all three as PAUSED. LinkedIn: a held campaign group is PAUSED with its campaign and creative ACTIVE; a new campaign in an existing group stays DRAFT. X has no per-ad switch, so its lowest level is the line item. Google Performance Max and Demand Gen accept PAUSED only (the campaign is created paused).
|
|
45177
|
+
* Publish state of the created entities, on every platform. Omitted or ACTIVE publishes live (default, back-compat); PAUSED pauses only the TOP-MOST object this call creates and switches everything below it on, so one resume of that object brings the new tree live and nothing that already existed is touched: a new campaign is held paused with its ad set and ad on; with `existingCampaignId` the new ad set is held paused with its ad on; with `adSetId` the new ad itself is paused. `campaignStatus: ACTIVE` with `status: PAUSED` moves the pause down to the new ad set. `campaignStatus`, `adSetStatus` and `adStatus` set one level each and always win for that level; `status: PAUSED` adds a hold of its own only when none of them is PAUSED. To create every object paused, send all three as PAUSED. LinkedIn: a held campaign group is PAUSED with its campaign and creative ACTIVE; a new campaign in an existing group stays DRAFT; a held creative (with `adSetId`) is created DRAFT, as LinkedIn refuses PAUSED until its review is APPROVED. X has no per-ad switch, so its lowest level is the line item. Google Performance Max and Demand Gen accept PAUSED only (the campaign is created paused).
|
|
45178
45178
|
*/
|
|
45179
45179
|
status?: 'ACTIVE' | 'PAUSED';
|
|
45180
45180
|
/**
|
|
@@ -45191,7 +45191,7 @@ type CreateStandaloneAdData = {
|
|
|
45191
45191
|
*/
|
|
45192
45192
|
adSetStatus?: 'ACTIVE' | 'PAUSED';
|
|
45193
45193
|
/**
|
|
45194
|
-
* Sets the switch of the new ad alone, also when attaching to an existing ad set with `adSetId`, and overrides `status` for it. Same precedence as `adSetStatus`. Omitted, it follows `status`.
|
|
45194
|
+
* Sets the switch of the new ad alone, also when attaching to an existing ad set with `adSetId`, and overrides `status` for it. Same precedence as `adSetStatus`. Omitted, it follows `status`. LinkedIn: a creative held off is created DRAFT, because LinkedIn refuses PAUSED on a creative until its review is APPROVED. A DRAFT creative is not submitted for review and cannot serve; it reads `paused`, and resuming the ad (PUT /v1/ads/{adId}/status `active`) switches it ACTIVE, which starts the review.
|
|
45195
45195
|
*
|
|
45196
45196
|
* X returns a 400: a promoted post has no switch of its own, so hold the line item with `adSetStatus`. `PAUSED` with `buyingType: RESERVED` returns a 400 (Meta creates the first Reach and Frequency ad ACTIVE). Performance Max and Demand Gen accept PAUSED only.
|
|
45197
45197
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -12139,7 +12139,7 @@ type TikTokPlatformData = {
|
|
|
12139
12139
|
*/
|
|
12140
12140
|
musicSoundInfo?: {
|
|
12141
12141
|
/**
|
|
12142
|
-
* The id
|
|
12142
|
+
* The clip.id of a track from GET /v1/accounts/{accountId}/tiktok/commercial-music (its id publishes too, but viewers may see the sound as unavailable in their country; observed from Germany). TikTok fails the publish with a generic 51065 when given the commercial music id instead.
|
|
12143
12143
|
*/
|
|
12144
12144
|
musicSoundId: string;
|
|
12145
12145
|
/**
|
|
@@ -19993,7 +19993,7 @@ type ListTikTokCommercialMusicData = {
|
|
|
19993
19993
|
type ListTikTokCommercialMusicResponse = ({
|
|
19994
19994
|
tracks?: Array<{
|
|
19995
19995
|
/**
|
|
19996
|
-
* The id
|
|
19996
|
+
* The full track's song clip id. Accepted as musicSoundId, but prefer clip.id: posts published with this id have shown viewers a sound page saying the song is not available in their country (observed from Germany). TikTok rejects the commercial music id itself at publish time.
|
|
19997
19997
|
*/
|
|
19998
19998
|
id?: string;
|
|
19999
19999
|
/**
|
|
@@ -20014,7 +20014,7 @@ type ListTikTokCommercialMusicResponse = ({
|
|
|
20014
20014
|
*/
|
|
20015
20015
|
rank?: number;
|
|
20016
20016
|
/**
|
|
20017
|
-
* The trending excerpt of the track, when TikTok provides one.
|
|
20017
|
+
* The trending excerpt of the track, when TikTok provides one. Send clip.id as musicSoundId: it publishes and its sound page opens for viewers, unlike the full-track id (observed from Germany, 2026-10-06).
|
|
20018
20018
|
*/
|
|
20019
20019
|
clip?: {
|
|
20020
20020
|
id?: string;
|
|
@@ -44818,7 +44818,7 @@ type BoostPostData = {
|
|
|
44818
44818
|
*/
|
|
44819
44819
|
adSetStatus?: 'ACTIVE' | 'PAUSED';
|
|
44820
44820
|
/**
|
|
44821
|
-
* Sets the switch of the new ad alone, also when attaching to an existing ad set with `adSetId` (Meta, TikTok Smart+), and overrides `status` for it. Same precedence as `adSetStatus`. Omitted, it follows `status`.
|
|
44821
|
+
* Sets the switch of the new ad alone, also when attaching to an existing ad set with `adSetId` (Meta, TikTok Smart+), and overrides `status` for it. Same precedence as `adSetStatus`. Omitted, it follows `status`. LinkedIn: a creative held off is created DRAFT, because LinkedIn refuses PAUSED on a creative until its review is APPROVED. A DRAFT creative is not submitted for review and cannot serve; it reads `paused`, and resuming the ad (PUT /v1/ads/{adId}/status `active`) switches it ACTIVE, which starts the review.
|
|
44822
44822
|
*
|
|
44823
44823
|
* X returns a 400: a promoted post has no switch of its own, so hold the line item with `adSetStatus`.
|
|
44824
44824
|
*
|
|
@@ -45174,7 +45174,7 @@ type CreateStandaloneAdData = {
|
|
|
45174
45174
|
*/
|
|
45175
45175
|
budgetType?: 'daily' | 'lifetime';
|
|
45176
45176
|
/**
|
|
45177
|
-
* Publish state of the created entities, on every platform. Omitted or ACTIVE publishes live (default, back-compat); PAUSED pauses only the TOP-MOST object this call creates and switches everything below it on, so one resume of that object brings the new tree live and nothing that already existed is touched: a new campaign is held paused with its ad set and ad on; with `existingCampaignId` the new ad set is held paused with its ad on; with `adSetId` the new ad itself is paused. `campaignStatus: ACTIVE` with `status: PAUSED` moves the pause down to the new ad set. `campaignStatus`, `adSetStatus` and `adStatus` set one level each and always win for that level; `status: PAUSED` adds a hold of its own only when none of them is PAUSED. To create every object paused, send all three as PAUSED. LinkedIn: a held campaign group is PAUSED with its campaign and creative ACTIVE; a new campaign in an existing group stays DRAFT. X has no per-ad switch, so its lowest level is the line item. Google Performance Max and Demand Gen accept PAUSED only (the campaign is created paused).
|
|
45177
|
+
* Publish state of the created entities, on every platform. Omitted or ACTIVE publishes live (default, back-compat); PAUSED pauses only the TOP-MOST object this call creates and switches everything below it on, so one resume of that object brings the new tree live and nothing that already existed is touched: a new campaign is held paused with its ad set and ad on; with `existingCampaignId` the new ad set is held paused with its ad on; with `adSetId` the new ad itself is paused. `campaignStatus: ACTIVE` with `status: PAUSED` moves the pause down to the new ad set. `campaignStatus`, `adSetStatus` and `adStatus` set one level each and always win for that level; `status: PAUSED` adds a hold of its own only when none of them is PAUSED. To create every object paused, send all three as PAUSED. LinkedIn: a held campaign group is PAUSED with its campaign and creative ACTIVE; a new campaign in an existing group stays DRAFT; a held creative (with `adSetId`) is created DRAFT, as LinkedIn refuses PAUSED until its review is APPROVED. X has no per-ad switch, so its lowest level is the line item. Google Performance Max and Demand Gen accept PAUSED only (the campaign is created paused).
|
|
45178
45178
|
*/
|
|
45179
45179
|
status?: 'ACTIVE' | 'PAUSED';
|
|
45180
45180
|
/**
|
|
@@ -45191,7 +45191,7 @@ type CreateStandaloneAdData = {
|
|
|
45191
45191
|
*/
|
|
45192
45192
|
adSetStatus?: 'ACTIVE' | 'PAUSED';
|
|
45193
45193
|
/**
|
|
45194
|
-
* Sets the switch of the new ad alone, also when attaching to an existing ad set with `adSetId`, and overrides `status` for it. Same precedence as `adSetStatus`. Omitted, it follows `status`.
|
|
45194
|
+
* Sets the switch of the new ad alone, also when attaching to an existing ad set with `adSetId`, and overrides `status` for it. Same precedence as `adSetStatus`. Omitted, it follows `status`. LinkedIn: a creative held off is created DRAFT, because LinkedIn refuses PAUSED on a creative until its review is APPROVED. A DRAFT creative is not submitted for review and cannot serve; it reads `paused`, and resuming the ad (PUT /v1/ads/{adId}/status `active`) switches it ACTIVE, which starts the review.
|
|
45195
45195
|
*
|
|
45196
45196
|
* X returns a 400: a promoted post has no switch of its own, so hold the line item with `adSetStatus`. `PAUSED` with `buyingType: RESERVED` returns a 400 (Meta creates the first Reach and Frequency ad ACTIVE). Performance Max and Demand Gen accept PAUSED only.
|
|
45197
45197
|
*
|
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.1100",
|
|
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.1100",
|
|
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
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -1501,7 +1501,7 @@ export const getInstagramFollowStatus = <ThrowOnError extends boolean = false>(o
|
|
|
1501
1501
|
|
|
1502
1502
|
/**
|
|
1503
1503
|
* List trending commercial music
|
|
1504
|
-
* Returns the 100 currently trending tracks of TikTok's Commercial Music Library for a TikTok account connected through the TikTok for Business app.
|
|
1504
|
+
* Returns the 100 currently trending tracks of TikTok's Commercial Music Library for a TikTok account connected through the TikTok for Business app. Send a track's clip.id as tiktokSettings.musicSoundInfo.musicSoundId when creating a post; fall back to id only when the track has no clip. Both publish, but with the full-track id TikTok has shown viewers "This song is not available in your country" on the sound page (observed from Germany, 2026-10-06), while the clip id gave a working sound page for the same track. The list is not paged; countryCode selects the country chart.
|
|
1505
1505
|
*/
|
|
1506
1506
|
export const listTikTokCommercialMusic = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListTikTokCommercialMusicData, ThrowOnError>) => {
|
|
1507
1507
|
return (options?.client ?? client).get<ListTikTokCommercialMusicResponse, ListTikTokCommercialMusicError, ThrowOnError>({
|
|
@@ -10613,7 +10613,7 @@ export type TikTokPlatformData = {
|
|
|
10613
10613
|
*/
|
|
10614
10614
|
musicSoundInfo?: {
|
|
10615
10615
|
/**
|
|
10616
|
-
* The id
|
|
10616
|
+
* The clip.id of a track from GET /v1/accounts/{accountId}/tiktok/commercial-music (its id publishes too, but viewers may see the sound as unavailable in their country; observed from Germany). TikTok fails the publish with a generic 51065 when given the commercial music id instead.
|
|
10617
10617
|
*/
|
|
10618
10618
|
musicSoundId: string;
|
|
10619
10619
|
/**
|
|
@@ -18894,7 +18894,7 @@ export type ListTikTokCommercialMusicData = {
|
|
|
18894
18894
|
export type ListTikTokCommercialMusicResponse = ({
|
|
18895
18895
|
tracks?: Array<{
|
|
18896
18896
|
/**
|
|
18897
|
-
* The id
|
|
18897
|
+
* The full track's song clip id. Accepted as musicSoundId, but prefer clip.id: posts published with this id have shown viewers a sound page saying the song is not available in their country (observed from Germany). TikTok rejects the commercial music id itself at publish time.
|
|
18898
18898
|
*/
|
|
18899
18899
|
id?: string;
|
|
18900
18900
|
/**
|
|
@@ -18915,7 +18915,7 @@ export type ListTikTokCommercialMusicResponse = ({
|
|
|
18915
18915
|
*/
|
|
18916
18916
|
rank?: number;
|
|
18917
18917
|
/**
|
|
18918
|
-
* The trending excerpt of the track, when TikTok provides one.
|
|
18918
|
+
* The trending excerpt of the track, when TikTok provides one. Send clip.id as musicSoundId: it publishes and its sound page opens for viewers, unlike the full-track id (observed from Germany, 2026-10-06).
|
|
18919
18919
|
*/
|
|
18920
18920
|
clip?: {
|
|
18921
18921
|
id?: string;
|
|
@@ -45537,7 +45537,7 @@ export type BoostPostData = {
|
|
|
45537
45537
|
*/
|
|
45538
45538
|
adSetStatus?: 'ACTIVE' | 'PAUSED';
|
|
45539
45539
|
/**
|
|
45540
|
-
* Sets the switch of the new ad alone, also when attaching to an existing ad set with `adSetId` (Meta, TikTok Smart+), and overrides `status` for it. Same precedence as `adSetStatus`. Omitted, it follows `status`.
|
|
45540
|
+
* Sets the switch of the new ad alone, also when attaching to an existing ad set with `adSetId` (Meta, TikTok Smart+), and overrides `status` for it. Same precedence as `adSetStatus`. Omitted, it follows `status`. LinkedIn: a creative held off is created DRAFT, because LinkedIn refuses PAUSED on a creative until its review is APPROVED. A DRAFT creative is not submitted for review and cannot serve; it reads `paused`, and resuming the ad (PUT /v1/ads/{adId}/status `active`) switches it ACTIVE, which starts the review.
|
|
45541
45541
|
*
|
|
45542
45542
|
* X returns a 400: a promoted post has no switch of its own, so hold the line item with `adSetStatus`.
|
|
45543
45543
|
*
|
|
@@ -45917,7 +45917,7 @@ export type CreateStandaloneAdData = {
|
|
|
45917
45917
|
*/
|
|
45918
45918
|
budgetType?: 'daily' | 'lifetime';
|
|
45919
45919
|
/**
|
|
45920
|
-
* Publish state of the created entities, on every platform. Omitted or ACTIVE publishes live (default, back-compat); PAUSED pauses only the TOP-MOST object this call creates and switches everything below it on, so one resume of that object brings the new tree live and nothing that already existed is touched: a new campaign is held paused with its ad set and ad on; with `existingCampaignId` the new ad set is held paused with its ad on; with `adSetId` the new ad itself is paused. `campaignStatus: ACTIVE` with `status: PAUSED` moves the pause down to the new ad set. `campaignStatus`, `adSetStatus` and `adStatus` set one level each and always win for that level; `status: PAUSED` adds a hold of its own only when none of them is PAUSED. To create every object paused, send all three as PAUSED. LinkedIn: a held campaign group is PAUSED with its campaign and creative ACTIVE; a new campaign in an existing group stays DRAFT. X has no per-ad switch, so its lowest level is the line item. Google Performance Max and Demand Gen accept PAUSED only (the campaign is created paused).
|
|
45920
|
+
* Publish state of the created entities, on every platform. Omitted or ACTIVE publishes live (default, back-compat); PAUSED pauses only the TOP-MOST object this call creates and switches everything below it on, so one resume of that object brings the new tree live and nothing that already existed is touched: a new campaign is held paused with its ad set and ad on; with `existingCampaignId` the new ad set is held paused with its ad on; with `adSetId` the new ad itself is paused. `campaignStatus: ACTIVE` with `status: PAUSED` moves the pause down to the new ad set. `campaignStatus`, `adSetStatus` and `adStatus` set one level each and always win for that level; `status: PAUSED` adds a hold of its own only when none of them is PAUSED. To create every object paused, send all three as PAUSED. LinkedIn: a held campaign group is PAUSED with its campaign and creative ACTIVE; a new campaign in an existing group stays DRAFT; a held creative (with `adSetId`) is created DRAFT, as LinkedIn refuses PAUSED until its review is APPROVED. X has no per-ad switch, so its lowest level is the line item. Google Performance Max and Demand Gen accept PAUSED only (the campaign is created paused).
|
|
45921
45921
|
*/
|
|
45922
45922
|
status?: 'ACTIVE' | 'PAUSED';
|
|
45923
45923
|
/**
|
|
@@ -45934,7 +45934,7 @@ export type CreateStandaloneAdData = {
|
|
|
45934
45934
|
*/
|
|
45935
45935
|
adSetStatus?: 'ACTIVE' | 'PAUSED';
|
|
45936
45936
|
/**
|
|
45937
|
-
* Sets the switch of the new ad alone, also when attaching to an existing ad set with `adSetId`, and overrides `status` for it. Same precedence as `adSetStatus`. Omitted, it follows `status`.
|
|
45937
|
+
* Sets the switch of the new ad alone, also when attaching to an existing ad set with `adSetId`, and overrides `status` for it. Same precedence as `adSetStatus`. Omitted, it follows `status`. LinkedIn: a creative held off is created DRAFT, because LinkedIn refuses PAUSED on a creative until its review is APPROVED. A DRAFT creative is not submitted for review and cannot serve; it reads `paused`, and resuming the ad (PUT /v1/ads/{adId}/status `active`) switches it ACTIVE, which starts the review.
|
|
45938
45938
|
*
|
|
45939
45939
|
* X returns a 400: a promoted post has no switch of its own, so hold the line item with `adSetStatus`. `PAUSED` with `buyingType: RESERVED` returns a 400 (Meta creates the first Reach and Frequency ad ACTIVE). Performance Max and Demand Gen accept PAUSED only.
|
|
45940
45940
|
*
|