@getlatedev/node 0.2.1130 → 0.2.1132
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 +40 -9
- package/dist/index.d.ts +40 -9
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/types.gen.ts +40 -9
package/dist/index.d.mts
CHANGED
|
@@ -2693,8 +2693,11 @@ type AdDailyMetrics = AdMetrics & {
|
|
|
2693
2693
|
* Populated for Meta and, since 2026-08, TikTok (`reactions` = paid
|
|
2694
2694
|
* likes, `comments`, `shares`; TikTok's `follow` count lives in
|
|
2695
2695
|
* `actions.follow`, not here). Other platforms leave these at 0.
|
|
2696
|
-
* TikTok history note:
|
|
2697
|
-
*
|
|
2696
|
+
* TikTok history note: these splits were added in 2026-08 and only
|
|
2697
|
+
* the last 7 days are re-fetched on each sync (a stopped ad keeps
|
|
2698
|
+
* syncing until its last delivery day is 7 days old), so days
|
|
2699
|
+
* stored before the rollout keep 0s here. Spend, impressions,
|
|
2700
|
+
* clicks and conversions are not affected.
|
|
2698
2701
|
*
|
|
2699
2702
|
*/
|
|
2700
2703
|
type AdEngagementCounts = {
|
|
@@ -22044,7 +22047,17 @@ type ConfigureTikTokAdsBrandIdentityResponse = ({
|
|
|
22044
22047
|
});
|
|
22045
22048
|
type ConfigureTikTokAdsBrandIdentityError = (unknown | ErrorResponse);
|
|
22046
22049
|
type ListFacebookPagesData = {
|
|
22050
|
+
headers?: {
|
|
22051
|
+
/**
|
|
22052
|
+
* The OAuth user token, in place of the tempToken query parameter. Prefer it: a query string is written to request logs along the way.
|
|
22053
|
+
*/
|
|
22054
|
+
'X-Temp-Token'?: string;
|
|
22055
|
+
};
|
|
22047
22056
|
query?: {
|
|
22057
|
+
/**
|
|
22058
|
+
* Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
|
|
22059
|
+
*/
|
|
22060
|
+
connectFlow?: string;
|
|
22048
22061
|
/**
|
|
22049
22062
|
* Profile ID from your classic connection flow. Required with tempToken.
|
|
22050
22063
|
*/
|
|
@@ -22054,7 +22067,7 @@ type ListFacebookPagesData = {
|
|
|
22054
22067
|
*/
|
|
22055
22068
|
selectionToken?: string;
|
|
22056
22069
|
/**
|
|
22057
|
-
* Temporary Facebook access token from the classic OAuth callback. Required with profileId.
|
|
22070
|
+
* Temporary Facebook access token from the classic OAuth callback. Required with profileId unless sent in the X-Temp-Token header.
|
|
22058
22071
|
*/
|
|
22059
22072
|
tempToken?: string;
|
|
22060
22073
|
};
|
|
@@ -22109,9 +22122,13 @@ type SelectFacebookPageData = {
|
|
|
22109
22122
|
*/
|
|
22110
22123
|
pageIds?: Array<(string)>;
|
|
22111
22124
|
/**
|
|
22112
|
-
* Temporary Facebook access token from OAuth.
|
|
22125
|
+
* Temporary Facebook access token from OAuth. Required unless sent in the X-Temp-Token header.
|
|
22113
22126
|
*/
|
|
22114
|
-
tempToken
|
|
22127
|
+
tempToken?: string;
|
|
22128
|
+
/**
|
|
22129
|
+
* Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
|
|
22130
|
+
*/
|
|
22131
|
+
connectFlow?: string;
|
|
22115
22132
|
/**
|
|
22116
22133
|
* Decoded user profile object from the OAuth callback.
|
|
22117
22134
|
*/
|
|
@@ -22177,15 +22194,25 @@ type SelectFacebookPageResponse = ({
|
|
|
22177
22194
|
});
|
|
22178
22195
|
type SelectFacebookPageError = (unknown | ErrorResponse);
|
|
22179
22196
|
type ListInstagramPagesData = {
|
|
22197
|
+
headers?: {
|
|
22198
|
+
/**
|
|
22199
|
+
* The OAuth user token, in place of the tempToken query parameter. Prefer it: a query string is written to request logs along the way.
|
|
22200
|
+
*/
|
|
22201
|
+
'X-Temp-Token'?: string;
|
|
22202
|
+
};
|
|
22180
22203
|
query: {
|
|
22204
|
+
/**
|
|
22205
|
+
* Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
|
|
22206
|
+
*/
|
|
22207
|
+
connectFlow?: string;
|
|
22181
22208
|
/**
|
|
22182
22209
|
* Profile ID from your connection flow
|
|
22183
22210
|
*/
|
|
22184
22211
|
profileId: string;
|
|
22185
22212
|
/**
|
|
22186
|
-
* Long-lived Facebook user access token from the OAuth callback redirect
|
|
22213
|
+
* Long-lived Facebook user access token from the OAuth callback redirect. Required unless sent in the X-Temp-Token header.
|
|
22187
22214
|
*/
|
|
22188
|
-
tempToken
|
|
22215
|
+
tempToken?: string;
|
|
22189
22216
|
};
|
|
22190
22217
|
};
|
|
22191
22218
|
type ListInstagramPagesResponse = ({
|
|
@@ -22231,9 +22258,13 @@ type SelectInstagramAccountData = {
|
|
|
22231
22258
|
*/
|
|
22232
22259
|
pageIds?: Array<(string)>;
|
|
22233
22260
|
/**
|
|
22234
|
-
* Long-lived Facebook user access token from the OAuth callback redirect
|
|
22261
|
+
* Long-lived Facebook user access token from the OAuth callback redirect. Required unless sent in the X-Temp-Token header.
|
|
22235
22262
|
*/
|
|
22236
|
-
tempToken
|
|
22263
|
+
tempToken?: string;
|
|
22264
|
+
/**
|
|
22265
|
+
* Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
|
|
22266
|
+
*/
|
|
22267
|
+
connectFlow?: string;
|
|
22237
22268
|
/**
|
|
22238
22269
|
* Optional custom redirect URL to return to after selection
|
|
22239
22270
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -2693,8 +2693,11 @@ type AdDailyMetrics = AdMetrics & {
|
|
|
2693
2693
|
* Populated for Meta and, since 2026-08, TikTok (`reactions` = paid
|
|
2694
2694
|
* likes, `comments`, `shares`; TikTok's `follow` count lives in
|
|
2695
2695
|
* `actions.follow`, not here). Other platforms leave these at 0.
|
|
2696
|
-
* TikTok history note:
|
|
2697
|
-
*
|
|
2696
|
+
* TikTok history note: these splits were added in 2026-08 and only
|
|
2697
|
+
* the last 7 days are re-fetched on each sync (a stopped ad keeps
|
|
2698
|
+
* syncing until its last delivery day is 7 days old), so days
|
|
2699
|
+
* stored before the rollout keep 0s here. Spend, impressions,
|
|
2700
|
+
* clicks and conversions are not affected.
|
|
2698
2701
|
*
|
|
2699
2702
|
*/
|
|
2700
2703
|
type AdEngagementCounts = {
|
|
@@ -22044,7 +22047,17 @@ type ConfigureTikTokAdsBrandIdentityResponse = ({
|
|
|
22044
22047
|
});
|
|
22045
22048
|
type ConfigureTikTokAdsBrandIdentityError = (unknown | ErrorResponse);
|
|
22046
22049
|
type ListFacebookPagesData = {
|
|
22050
|
+
headers?: {
|
|
22051
|
+
/**
|
|
22052
|
+
* The OAuth user token, in place of the tempToken query parameter. Prefer it: a query string is written to request logs along the way.
|
|
22053
|
+
*/
|
|
22054
|
+
'X-Temp-Token'?: string;
|
|
22055
|
+
};
|
|
22047
22056
|
query?: {
|
|
22057
|
+
/**
|
|
22058
|
+
* Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
|
|
22059
|
+
*/
|
|
22060
|
+
connectFlow?: string;
|
|
22048
22061
|
/**
|
|
22049
22062
|
* Profile ID from your classic connection flow. Required with tempToken.
|
|
22050
22063
|
*/
|
|
@@ -22054,7 +22067,7 @@ type ListFacebookPagesData = {
|
|
|
22054
22067
|
*/
|
|
22055
22068
|
selectionToken?: string;
|
|
22056
22069
|
/**
|
|
22057
|
-
* Temporary Facebook access token from the classic OAuth callback. Required with profileId.
|
|
22070
|
+
* Temporary Facebook access token from the classic OAuth callback. Required with profileId unless sent in the X-Temp-Token header.
|
|
22058
22071
|
*/
|
|
22059
22072
|
tempToken?: string;
|
|
22060
22073
|
};
|
|
@@ -22109,9 +22122,13 @@ type SelectFacebookPageData = {
|
|
|
22109
22122
|
*/
|
|
22110
22123
|
pageIds?: Array<(string)>;
|
|
22111
22124
|
/**
|
|
22112
|
-
* Temporary Facebook access token from OAuth.
|
|
22125
|
+
* Temporary Facebook access token from OAuth. Required unless sent in the X-Temp-Token header.
|
|
22113
22126
|
*/
|
|
22114
|
-
tempToken
|
|
22127
|
+
tempToken?: string;
|
|
22128
|
+
/**
|
|
22129
|
+
* Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
|
|
22130
|
+
*/
|
|
22131
|
+
connectFlow?: string;
|
|
22115
22132
|
/**
|
|
22116
22133
|
* Decoded user profile object from the OAuth callback.
|
|
22117
22134
|
*/
|
|
@@ -22177,15 +22194,25 @@ type SelectFacebookPageResponse = ({
|
|
|
22177
22194
|
});
|
|
22178
22195
|
type SelectFacebookPageError = (unknown | ErrorResponse);
|
|
22179
22196
|
type ListInstagramPagesData = {
|
|
22197
|
+
headers?: {
|
|
22198
|
+
/**
|
|
22199
|
+
* The OAuth user token, in place of the tempToken query parameter. Prefer it: a query string is written to request logs along the way.
|
|
22200
|
+
*/
|
|
22201
|
+
'X-Temp-Token'?: string;
|
|
22202
|
+
};
|
|
22180
22203
|
query: {
|
|
22204
|
+
/**
|
|
22205
|
+
* Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
|
|
22206
|
+
*/
|
|
22207
|
+
connectFlow?: string;
|
|
22181
22208
|
/**
|
|
22182
22209
|
* Profile ID from your connection flow
|
|
22183
22210
|
*/
|
|
22184
22211
|
profileId: string;
|
|
22185
22212
|
/**
|
|
22186
|
-
* Long-lived Facebook user access token from the OAuth callback redirect
|
|
22213
|
+
* Long-lived Facebook user access token from the OAuth callback redirect. Required unless sent in the X-Temp-Token header.
|
|
22187
22214
|
*/
|
|
22188
|
-
tempToken
|
|
22215
|
+
tempToken?: string;
|
|
22189
22216
|
};
|
|
22190
22217
|
};
|
|
22191
22218
|
type ListInstagramPagesResponse = ({
|
|
@@ -22231,9 +22258,13 @@ type SelectInstagramAccountData = {
|
|
|
22231
22258
|
*/
|
|
22232
22259
|
pageIds?: Array<(string)>;
|
|
22233
22260
|
/**
|
|
22234
|
-
* Long-lived Facebook user access token from the OAuth callback redirect
|
|
22261
|
+
* Long-lived Facebook user access token from the OAuth callback redirect. Required unless sent in the X-Temp-Token header.
|
|
22235
22262
|
*/
|
|
22236
|
-
tempToken
|
|
22263
|
+
tempToken?: string;
|
|
22264
|
+
/**
|
|
22265
|
+
* Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
|
|
22266
|
+
*/
|
|
22267
|
+
connectFlow?: string;
|
|
22237
22268
|
/**
|
|
22238
22269
|
* Optional custom redirect URL to return to after selection
|
|
22239
22270
|
*/
|
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.1132",
|
|
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.1132",
|
|
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
|
@@ -713,8 +713,11 @@ export type AdDailyMetrics = AdMetrics & {
|
|
|
713
713
|
* Populated for Meta and, since 2026-08, TikTok (`reactions` = paid
|
|
714
714
|
* likes, `comments`, `shares`; TikTok's `follow` count lives in
|
|
715
715
|
* `actions.follow`, not here). Other platforms leave these at 0.
|
|
716
|
-
* TikTok history note:
|
|
717
|
-
*
|
|
716
|
+
* TikTok history note: these splits were added in 2026-08 and only
|
|
717
|
+
* the last 7 days are re-fetched on each sync (a stopped ad keeps
|
|
718
|
+
* syncing until its last delivery day is 7 days old), so days
|
|
719
|
+
* stored before the rollout keep 0s here. Spend, impressions,
|
|
720
|
+
* clicks and conversions are not affected.
|
|
718
721
|
*
|
|
719
722
|
*/
|
|
720
723
|
export type AdEngagementCounts = {
|
|
@@ -21020,7 +21023,17 @@ export type ConfigureTikTokAdsBrandIdentityResponse = ({
|
|
|
21020
21023
|
export type ConfigureTikTokAdsBrandIdentityError = (unknown | ErrorResponse);
|
|
21021
21024
|
|
|
21022
21025
|
export type ListFacebookPagesData = {
|
|
21026
|
+
headers?: {
|
|
21027
|
+
/**
|
|
21028
|
+
* The OAuth user token, in place of the tempToken query parameter. Prefer it: a query string is written to request logs along the way.
|
|
21029
|
+
*/
|
|
21030
|
+
'X-Temp-Token'?: string;
|
|
21031
|
+
};
|
|
21023
21032
|
query?: {
|
|
21033
|
+
/**
|
|
21034
|
+
* Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
|
|
21035
|
+
*/
|
|
21036
|
+
connectFlow?: string;
|
|
21024
21037
|
/**
|
|
21025
21038
|
* Profile ID from your classic connection flow. Required with tempToken.
|
|
21026
21039
|
*/
|
|
@@ -21030,7 +21043,7 @@ export type ListFacebookPagesData = {
|
|
|
21030
21043
|
*/
|
|
21031
21044
|
selectionToken?: string;
|
|
21032
21045
|
/**
|
|
21033
|
-
* Temporary Facebook access token from the classic OAuth callback. Required with profileId.
|
|
21046
|
+
* Temporary Facebook access token from the classic OAuth callback. Required with profileId unless sent in the X-Temp-Token header.
|
|
21034
21047
|
*/
|
|
21035
21048
|
tempToken?: string;
|
|
21036
21049
|
};
|
|
@@ -21088,9 +21101,13 @@ export type SelectFacebookPageData = {
|
|
|
21088
21101
|
*/
|
|
21089
21102
|
pageIds?: Array<(string)>;
|
|
21090
21103
|
/**
|
|
21091
|
-
* Temporary Facebook access token from OAuth.
|
|
21104
|
+
* Temporary Facebook access token from OAuth. Required unless sent in the X-Temp-Token header.
|
|
21092
21105
|
*/
|
|
21093
|
-
tempToken
|
|
21106
|
+
tempToken?: string;
|
|
21107
|
+
/**
|
|
21108
|
+
* Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
|
|
21109
|
+
*/
|
|
21110
|
+
connectFlow?: string;
|
|
21094
21111
|
/**
|
|
21095
21112
|
* Decoded user profile object from the OAuth callback.
|
|
21096
21113
|
*/
|
|
@@ -21159,15 +21176,25 @@ export type SelectFacebookPageResponse = ({
|
|
|
21159
21176
|
export type SelectFacebookPageError = (unknown | ErrorResponse);
|
|
21160
21177
|
|
|
21161
21178
|
export type ListInstagramPagesData = {
|
|
21179
|
+
headers?: {
|
|
21180
|
+
/**
|
|
21181
|
+
* The OAuth user token, in place of the tempToken query parameter. Prefer it: a query string is written to request logs along the way.
|
|
21182
|
+
*/
|
|
21183
|
+
'X-Temp-Token'?: string;
|
|
21184
|
+
};
|
|
21162
21185
|
query: {
|
|
21186
|
+
/**
|
|
21187
|
+
* Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
|
|
21188
|
+
*/
|
|
21189
|
+
connectFlow?: string;
|
|
21163
21190
|
/**
|
|
21164
21191
|
* Profile ID from your connection flow
|
|
21165
21192
|
*/
|
|
21166
21193
|
profileId: string;
|
|
21167
21194
|
/**
|
|
21168
|
-
* Long-lived Facebook user access token from the OAuth callback redirect
|
|
21195
|
+
* Long-lived Facebook user access token from the OAuth callback redirect. Required unless sent in the X-Temp-Token header.
|
|
21169
21196
|
*/
|
|
21170
|
-
tempToken
|
|
21197
|
+
tempToken?: string;
|
|
21171
21198
|
};
|
|
21172
21199
|
};
|
|
21173
21200
|
|
|
@@ -21216,9 +21243,13 @@ export type SelectInstagramAccountData = {
|
|
|
21216
21243
|
*/
|
|
21217
21244
|
pageIds?: Array<(string)>;
|
|
21218
21245
|
/**
|
|
21219
|
-
* Long-lived Facebook user access token from the OAuth callback redirect
|
|
21246
|
+
* Long-lived Facebook user access token from the OAuth callback redirect. Required unless sent in the X-Temp-Token header.
|
|
21220
21247
|
*/
|
|
21221
|
-
tempToken
|
|
21248
|
+
tempToken?: string;
|
|
21249
|
+
/**
|
|
21250
|
+
* Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
|
|
21251
|
+
*/
|
|
21252
|
+
connectFlow?: string;
|
|
21222
21253
|
/**
|
|
21223
21254
|
* Optional custom redirect URL to return to after selection
|
|
21224
21255
|
*/
|