@getlatedev/node 0.2.1129 → 0.2.1131

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
@@ -2933,7 +2933,7 @@ type AdMetrics = {
2933
2933
  cpm?: number;
2934
2934
  engagement?: number;
2935
2935
  /**
2936
- * Count of conversion events over the requested date range. FRACTIONAL: attribution splits one conversion across touchpoints and Google additionally reports modeled conversions, so values like 0.347 are normal. Meta: events matching the campaign's promoted_object.custom_event_type (PURCHASE, LEAD, etc.). Google: the account's tracked conversions. X and LinkedIn: their reported website/lead conversions (added 2026-07). 0 for non-conversion campaigns or when no events have fired.
2936
+ * Count of conversion events over the requested date range. FRACTIONAL: attribution splits one conversion across touchpoints and Google additionally reports modeled conversions, so values like 0.347 are normal. Meta: the ad set's Ads Manager Results, derived per ad set: the optimization goal's result (LEAD_GENERATION and QUALITY_LEAD = leads, CONVERSATIONS = messaging conversations started, APP_INSTALLS = installs, LANDING_PAGE_VIEWS = landing page views, LINK_CLICKS = link clicks, THRUPLAY = ThruPlays; REACH, IMPRESSIONS, POST_ENGAGEMENT and PAGE_LIKES report 0), otherwise the promoted_object event (custom_conversion_id when set, else custom_event_type, else PURCHASE). Google: the account's tracked conversions. X and LinkedIn: their reported website/lead conversions (added 2026-07). 0 for non-conversion campaigns or when no events have fired.
2937
2937
  */
2938
2938
  conversions?: number;
2939
2939
  /**
@@ -2957,7 +2957,7 @@ type AdMetrics = {
2957
2957
  [key: string]: (number);
2958
2958
  };
2959
2959
  /**
2960
- * Convenience sum of purchase-type action values, picked from `actionValues` via the same priority list as `conversions` so both fields describe the same events. In ad-account native currency. 0 when the campaign has no purchase event configured. Meta-only.
2960
+ * Convenience sum of purchase-type action values, picked from `actionValues` for the ad set promoted_object event (custom conversion, custom_event_type, else PURCHASE). It matches `conversions` for conversion-optimized ad sets; when the optimization goal reports a different result (LINK_CLICKS, LANDING_PAGE_VIEWS, ...) it stays on the promoted event so ROAS keeps its purchase basis. In ad-account native currency. 0 when the campaign has no purchase event configured. Meta-only.
2961
2961
  */
2962
2962
  purchaseValue?: number;
2963
2963
  /**
@@ -3277,7 +3277,7 @@ type AdsTimelineResponse = {
3277
3277
  */
3278
3278
  cpm?: number;
3279
3279
  /**
3280
- * Sum of conversion events over the range. Fractional values are normal (attribution splitting + Google modeled conversions). Meta: events matching the campaign optimization goal. Google: tracked conversions. X / LinkedIn: reported website/lead conversions (added 2026-07).
3280
+ * Sum of conversion events over the range. Fractional values are normal (attribution splitting + Google modeled conversions). Meta: the ad set Ads Manager Results (see AdMetrics.conversions). Google: tracked conversions. X / LinkedIn: reported website/lead conversions (added 2026-07).
3281
3281
  */
3282
3282
  conversions?: number;
3283
3283
  /**
@@ -22044,7 +22044,17 @@ type ConfigureTikTokAdsBrandIdentityResponse = ({
22044
22044
  });
22045
22045
  type ConfigureTikTokAdsBrandIdentityError = (unknown | ErrorResponse);
22046
22046
  type ListFacebookPagesData = {
22047
+ headers?: {
22048
+ /**
22049
+ * The OAuth user token, in place of the tempToken query parameter. Prefer it: a query string is written to request logs along the way.
22050
+ */
22051
+ 'X-Temp-Token'?: string;
22052
+ };
22047
22053
  query?: {
22054
+ /**
22055
+ * Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
22056
+ */
22057
+ connectFlow?: string;
22048
22058
  /**
22049
22059
  * Profile ID from your classic connection flow. Required with tempToken.
22050
22060
  */
@@ -22054,7 +22064,7 @@ type ListFacebookPagesData = {
22054
22064
  */
22055
22065
  selectionToken?: string;
22056
22066
  /**
22057
- * Temporary Facebook access token from the classic OAuth callback. Required with profileId.
22067
+ * Temporary Facebook access token from the classic OAuth callback. Required with profileId unless sent in the X-Temp-Token header.
22058
22068
  */
22059
22069
  tempToken?: string;
22060
22070
  };
@@ -22109,9 +22119,13 @@ type SelectFacebookPageData = {
22109
22119
  */
22110
22120
  pageIds?: Array<(string)>;
22111
22121
  /**
22112
- * Temporary Facebook access token from OAuth.
22122
+ * Temporary Facebook access token from OAuth. Required unless sent in the X-Temp-Token header.
22113
22123
  */
22114
- tempToken: string;
22124
+ tempToken?: string;
22125
+ /**
22126
+ * Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
22127
+ */
22128
+ connectFlow?: string;
22115
22129
  /**
22116
22130
  * Decoded user profile object from the OAuth callback.
22117
22131
  */
@@ -22177,15 +22191,25 @@ type SelectFacebookPageResponse = ({
22177
22191
  });
22178
22192
  type SelectFacebookPageError = (unknown | ErrorResponse);
22179
22193
  type ListInstagramPagesData = {
22194
+ headers?: {
22195
+ /**
22196
+ * The OAuth user token, in place of the tempToken query parameter. Prefer it: a query string is written to request logs along the way.
22197
+ */
22198
+ 'X-Temp-Token'?: string;
22199
+ };
22180
22200
  query: {
22201
+ /**
22202
+ * Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
22203
+ */
22204
+ connectFlow?: string;
22181
22205
  /**
22182
22206
  * Profile ID from your connection flow
22183
22207
  */
22184
22208
  profileId: string;
22185
22209
  /**
22186
- * Long-lived Facebook user access token from the OAuth callback redirect
22210
+ * Long-lived Facebook user access token from the OAuth callback redirect. Required unless sent in the X-Temp-Token header.
22187
22211
  */
22188
- tempToken: string;
22212
+ tempToken?: string;
22189
22213
  };
22190
22214
  };
22191
22215
  type ListInstagramPagesResponse = ({
@@ -22231,9 +22255,13 @@ type SelectInstagramAccountData = {
22231
22255
  */
22232
22256
  pageIds?: Array<(string)>;
22233
22257
  /**
22234
- * Long-lived Facebook user access token from the OAuth callback redirect
22258
+ * Long-lived Facebook user access token from the OAuth callback redirect. Required unless sent in the X-Temp-Token header.
22235
22259
  */
22236
- tempToken: string;
22260
+ tempToken?: string;
22261
+ /**
22262
+ * Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
22263
+ */
22264
+ connectFlow?: string;
22237
22265
  /**
22238
22266
  * Optional custom redirect URL to return to after selection
22239
22267
  */
package/dist/index.d.ts CHANGED
@@ -2933,7 +2933,7 @@ type AdMetrics = {
2933
2933
  cpm?: number;
2934
2934
  engagement?: number;
2935
2935
  /**
2936
- * Count of conversion events over the requested date range. FRACTIONAL: attribution splits one conversion across touchpoints and Google additionally reports modeled conversions, so values like 0.347 are normal. Meta: events matching the campaign's promoted_object.custom_event_type (PURCHASE, LEAD, etc.). Google: the account's tracked conversions. X and LinkedIn: their reported website/lead conversions (added 2026-07). 0 for non-conversion campaigns or when no events have fired.
2936
+ * Count of conversion events over the requested date range. FRACTIONAL: attribution splits one conversion across touchpoints and Google additionally reports modeled conversions, so values like 0.347 are normal. Meta: the ad set's Ads Manager Results, derived per ad set: the optimization goal's result (LEAD_GENERATION and QUALITY_LEAD = leads, CONVERSATIONS = messaging conversations started, APP_INSTALLS = installs, LANDING_PAGE_VIEWS = landing page views, LINK_CLICKS = link clicks, THRUPLAY = ThruPlays; REACH, IMPRESSIONS, POST_ENGAGEMENT and PAGE_LIKES report 0), otherwise the promoted_object event (custom_conversion_id when set, else custom_event_type, else PURCHASE). Google: the account's tracked conversions. X and LinkedIn: their reported website/lead conversions (added 2026-07). 0 for non-conversion campaigns or when no events have fired.
2937
2937
  */
2938
2938
  conversions?: number;
2939
2939
  /**
@@ -2957,7 +2957,7 @@ type AdMetrics = {
2957
2957
  [key: string]: (number);
2958
2958
  };
2959
2959
  /**
2960
- * Convenience sum of purchase-type action values, picked from `actionValues` via the same priority list as `conversions` so both fields describe the same events. In ad-account native currency. 0 when the campaign has no purchase event configured. Meta-only.
2960
+ * Convenience sum of purchase-type action values, picked from `actionValues` for the ad set promoted_object event (custom conversion, custom_event_type, else PURCHASE). It matches `conversions` for conversion-optimized ad sets; when the optimization goal reports a different result (LINK_CLICKS, LANDING_PAGE_VIEWS, ...) it stays on the promoted event so ROAS keeps its purchase basis. In ad-account native currency. 0 when the campaign has no purchase event configured. Meta-only.
2961
2961
  */
2962
2962
  purchaseValue?: number;
2963
2963
  /**
@@ -3277,7 +3277,7 @@ type AdsTimelineResponse = {
3277
3277
  */
3278
3278
  cpm?: number;
3279
3279
  /**
3280
- * Sum of conversion events over the range. Fractional values are normal (attribution splitting + Google modeled conversions). Meta: events matching the campaign optimization goal. Google: tracked conversions. X / LinkedIn: reported website/lead conversions (added 2026-07).
3280
+ * Sum of conversion events over the range. Fractional values are normal (attribution splitting + Google modeled conversions). Meta: the ad set Ads Manager Results (see AdMetrics.conversions). Google: tracked conversions. X / LinkedIn: reported website/lead conversions (added 2026-07).
3281
3281
  */
3282
3282
  conversions?: number;
3283
3283
  /**
@@ -22044,7 +22044,17 @@ type ConfigureTikTokAdsBrandIdentityResponse = ({
22044
22044
  });
22045
22045
  type ConfigureTikTokAdsBrandIdentityError = (unknown | ErrorResponse);
22046
22046
  type ListFacebookPagesData = {
22047
+ headers?: {
22048
+ /**
22049
+ * The OAuth user token, in place of the tempToken query parameter. Prefer it: a query string is written to request logs along the way.
22050
+ */
22051
+ 'X-Temp-Token'?: string;
22052
+ };
22047
22053
  query?: {
22054
+ /**
22055
+ * Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
22056
+ */
22057
+ connectFlow?: string;
22048
22058
  /**
22049
22059
  * Profile ID from your classic connection flow. Required with tempToken.
22050
22060
  */
@@ -22054,7 +22064,7 @@ type ListFacebookPagesData = {
22054
22064
  */
22055
22065
  selectionToken?: string;
22056
22066
  /**
22057
- * Temporary Facebook access token from the classic OAuth callback. Required with profileId.
22067
+ * Temporary Facebook access token from the classic OAuth callback. Required with profileId unless sent in the X-Temp-Token header.
22058
22068
  */
22059
22069
  tempToken?: string;
22060
22070
  };
@@ -22109,9 +22119,13 @@ type SelectFacebookPageData = {
22109
22119
  */
22110
22120
  pageIds?: Array<(string)>;
22111
22121
  /**
22112
- * Temporary Facebook access token from OAuth.
22122
+ * Temporary Facebook access token from OAuth. Required unless sent in the X-Temp-Token header.
22113
22123
  */
22114
- tempToken: string;
22124
+ tempToken?: string;
22125
+ /**
22126
+ * Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
22127
+ */
22128
+ connectFlow?: string;
22115
22129
  /**
22116
22130
  * Decoded user profile object from the OAuth callback.
22117
22131
  */
@@ -22177,15 +22191,25 @@ type SelectFacebookPageResponse = ({
22177
22191
  });
22178
22192
  type SelectFacebookPageError = (unknown | ErrorResponse);
22179
22193
  type ListInstagramPagesData = {
22194
+ headers?: {
22195
+ /**
22196
+ * The OAuth user token, in place of the tempToken query parameter. Prefer it: a query string is written to request logs along the way.
22197
+ */
22198
+ 'X-Temp-Token'?: string;
22199
+ };
22180
22200
  query: {
22201
+ /**
22202
+ * Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
22203
+ */
22204
+ connectFlow?: string;
22181
22205
  /**
22182
22206
  * Profile ID from your connection flow
22183
22207
  */
22184
22208
  profileId: string;
22185
22209
  /**
22186
- * Long-lived Facebook user access token from the OAuth callback redirect
22210
+ * Long-lived Facebook user access token from the OAuth callback redirect. Required unless sent in the X-Temp-Token header.
22187
22211
  */
22188
- tempToken: string;
22212
+ tempToken?: string;
22189
22213
  };
22190
22214
  };
22191
22215
  type ListInstagramPagesResponse = ({
@@ -22231,9 +22255,13 @@ type SelectInstagramAccountData = {
22231
22255
  */
22232
22256
  pageIds?: Array<(string)>;
22233
22257
  /**
22234
- * Long-lived Facebook user access token from the OAuth callback redirect
22258
+ * Long-lived Facebook user access token from the OAuth callback redirect. Required unless sent in the X-Temp-Token header.
22235
22259
  */
22236
- tempToken: string;
22260
+ tempToken?: string;
22261
+ /**
22262
+ * Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
22263
+ */
22264
+ connectFlow?: string;
22237
22265
  /**
22238
22266
  * Optional custom redirect URL to return to after selection
22239
22267
  */
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.1129",
39
+ version: "0.2.1131",
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.1129",
8
+ version: "0.2.1131",
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": "@getlatedev/node",
3
- "version": "0.2.1129",
3
+ "version": "0.2.1131",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -962,7 +962,7 @@ export type AdMetrics = {
962
962
  cpm?: number;
963
963
  engagement?: number;
964
964
  /**
965
- * Count of conversion events over the requested date range. FRACTIONAL: attribution splits one conversion across touchpoints and Google additionally reports modeled conversions, so values like 0.347 are normal. Meta: events matching the campaign's promoted_object.custom_event_type (PURCHASE, LEAD, etc.). Google: the account's tracked conversions. X and LinkedIn: their reported website/lead conversions (added 2026-07). 0 for non-conversion campaigns or when no events have fired.
965
+ * Count of conversion events over the requested date range. FRACTIONAL: attribution splits one conversion across touchpoints and Google additionally reports modeled conversions, so values like 0.347 are normal. Meta: the ad set's Ads Manager Results, derived per ad set: the optimization goal's result (LEAD_GENERATION and QUALITY_LEAD = leads, CONVERSATIONS = messaging conversations started, APP_INSTALLS = installs, LANDING_PAGE_VIEWS = landing page views, LINK_CLICKS = link clicks, THRUPLAY = ThruPlays; REACH, IMPRESSIONS, POST_ENGAGEMENT and PAGE_LIKES report 0), otherwise the promoted_object event (custom_conversion_id when set, else custom_event_type, else PURCHASE). Google: the account's tracked conversions. X and LinkedIn: their reported website/lead conversions (added 2026-07). 0 for non-conversion campaigns or when no events have fired.
966
966
  */
967
967
  conversions?: number;
968
968
  /**
@@ -986,7 +986,7 @@ export type AdMetrics = {
986
986
  [key: string]: (number);
987
987
  };
988
988
  /**
989
- * Convenience sum of purchase-type action values, picked from `actionValues` via the same priority list as `conversions` so both fields describe the same events. In ad-account native currency. 0 when the campaign has no purchase event configured. Meta-only.
989
+ * Convenience sum of purchase-type action values, picked from `actionValues` for the ad set promoted_object event (custom conversion, custom_event_type, else PURCHASE). It matches `conversions` for conversion-optimized ad sets; when the optimization goal reports a different result (LINK_CLICKS, LANDING_PAGE_VIEWS, ...) it stays on the promoted event so ROAS keeps its purchase basis. In ad-account native currency. 0 when the campaign has no purchase event configured. Meta-only.
990
990
  */
991
991
  purchaseValue?: number;
992
992
  /**
@@ -1318,7 +1318,7 @@ export type AdsTimelineResponse = {
1318
1318
  */
1319
1319
  cpm?: number;
1320
1320
  /**
1321
- * Sum of conversion events over the range. Fractional values are normal (attribution splitting + Google modeled conversions). Meta: events matching the campaign optimization goal. Google: tracked conversions. X / LinkedIn: reported website/lead conversions (added 2026-07).
1321
+ * Sum of conversion events over the range. Fractional values are normal (attribution splitting + Google modeled conversions). Meta: the ad set Ads Manager Results (see AdMetrics.conversions). Google: tracked conversions. X / LinkedIn: reported website/lead conversions (added 2026-07).
1322
1322
  */
1323
1323
  conversions?: number;
1324
1324
  /**
@@ -21020,7 +21020,17 @@ export type ConfigureTikTokAdsBrandIdentityResponse = ({
21020
21020
  export type ConfigureTikTokAdsBrandIdentityError = (unknown | ErrorResponse);
21021
21021
 
21022
21022
  export type ListFacebookPagesData = {
21023
+ headers?: {
21024
+ /**
21025
+ * The OAuth user token, in place of the tempToken query parameter. Prefer it: a query string is written to request logs along the way.
21026
+ */
21027
+ 'X-Temp-Token'?: string;
21028
+ };
21023
21029
  query?: {
21030
+ /**
21031
+ * Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
21032
+ */
21033
+ connectFlow?: string;
21024
21034
  /**
21025
21035
  * Profile ID from your classic connection flow. Required with tempToken.
21026
21036
  */
@@ -21030,7 +21040,7 @@ export type ListFacebookPagesData = {
21030
21040
  */
21031
21041
  selectionToken?: string;
21032
21042
  /**
21033
- * Temporary Facebook access token from the classic OAuth callback. Required with profileId.
21043
+ * Temporary Facebook access token from the classic OAuth callback. Required with profileId unless sent in the X-Temp-Token header.
21034
21044
  */
21035
21045
  tempToken?: string;
21036
21046
  };
@@ -21088,9 +21098,13 @@ export type SelectFacebookPageData = {
21088
21098
  */
21089
21099
  pageIds?: Array<(string)>;
21090
21100
  /**
21091
- * Temporary Facebook access token from OAuth.
21101
+ * Temporary Facebook access token from OAuth. Required unless sent in the X-Temp-Token header.
21092
21102
  */
21093
- tempToken: string;
21103
+ tempToken?: string;
21104
+ /**
21105
+ * Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
21106
+ */
21107
+ connectFlow?: string;
21094
21108
  /**
21095
21109
  * Decoded user profile object from the OAuth callback.
21096
21110
  */
@@ -21159,15 +21173,25 @@ export type SelectFacebookPageResponse = ({
21159
21173
  export type SelectFacebookPageError = (unknown | ErrorResponse);
21160
21174
 
21161
21175
  export type ListInstagramPagesData = {
21176
+ headers?: {
21177
+ /**
21178
+ * The OAuth user token, in place of the tempToken query parameter. Prefer it: a query string is written to request logs along the way.
21179
+ */
21180
+ 'X-Temp-Token'?: string;
21181
+ };
21162
21182
  query: {
21183
+ /**
21184
+ * Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
21185
+ */
21186
+ connectFlow?: string;
21163
21187
  /**
21164
21188
  * Profile ID from your connection flow
21165
21189
  */
21166
21190
  profileId: string;
21167
21191
  /**
21168
- * Long-lived Facebook user access token from the OAuth callback redirect
21192
+ * Long-lived Facebook user access token from the OAuth callback redirect. Required unless sent in the X-Temp-Token header.
21169
21193
  */
21170
- tempToken: string;
21194
+ tempToken?: string;
21171
21195
  };
21172
21196
  };
21173
21197
 
@@ -21216,9 +21240,13 @@ export type SelectInstagramAccountData = {
21216
21240
  */
21217
21241
  pageIds?: Array<(string)>;
21218
21242
  /**
21219
- * Long-lived Facebook user access token from the OAuth callback redirect
21243
+ * Long-lived Facebook user access token from the OAuth callback redirect. Required unless sent in the X-Temp-Token header.
21220
21244
  */
21221
- tempToken: string;
21245
+ tempToken?: string;
21246
+ /**
21247
+ * Set by the Zernio-hosted picker, whose user token stays in an httpOnly cookie. Integrators send tempToken instead.
21248
+ */
21249
+ connectFlow?: string;
21222
21250
  /**
21223
21251
  * Optional custom redirect URL to return to after selection
21224
21252
  */