@getlatedev/node 0.2.1731 → 0.2.1732
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 +54 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +3 -0
- package/src/generated/types.gen.ts +54 -0
package/dist/index.d.mts
CHANGED
|
@@ -11218,6 +11218,52 @@ type ConversionAction = {
|
|
|
11218
11218
|
};
|
|
11219
11219
|
type ConversionAuditAnswer = {
|
|
11220
11220
|
report: ConversionAuditReport;
|
|
11221
|
+
/**
|
|
11222
|
+
* Each ad network with its final setup and leak, computed exactly as the public report page shows them, best setup first.
|
|
11223
|
+
*/
|
|
11224
|
+
networks: Array<{
|
|
11225
|
+
/**
|
|
11226
|
+
* Stable platform key (meta, google, tiktok, ...), as in `report.platforms`.
|
|
11227
|
+
*/
|
|
11228
|
+
key: string;
|
|
11229
|
+
/**
|
|
11230
|
+
* Short network name (Meta, Google, TikTok, ...).
|
|
11231
|
+
*/
|
|
11232
|
+
name: string;
|
|
11233
|
+
/**
|
|
11234
|
+
* How the network gets its conversions: `verified`, `likely` or `possible` server path, `not-visible` (browser pixel, no server path visible), `not-firing` (installed, sent nothing), `configured` (tag manager only, never seen firing, not at risk) or `missing`.
|
|
11235
|
+
*/
|
|
11236
|
+
setup: 'verified' | 'likely' | 'possible' | 'not-visible' | 'not-firing' | 'configured' | 'missing';
|
|
11237
|
+
/**
|
|
11238
|
+
* Share of this network's conversions at risk, 0-100 (0 once a server path is verified). Null when the network has no working browser pixel to measure.
|
|
11239
|
+
*/
|
|
11240
|
+
leakPct: (number) | null;
|
|
11241
|
+
/**
|
|
11242
|
+
* `zernio-tag` when the pixel comes from the Zernio site tag's settings (it loads the pixel after consent) rather than from the page itself, on a scan that read the page source only.
|
|
11243
|
+
*/
|
|
11244
|
+
loadedBy: ('zernio-tag') | null;
|
|
11245
|
+
}>;
|
|
11246
|
+
/**
|
|
11247
|
+
* The few fixes that matter most, in the order the public report page lists them.
|
|
11248
|
+
*/
|
|
11249
|
+
topFixes: Array<{
|
|
11250
|
+
/**
|
|
11251
|
+
* The action to take.
|
|
11252
|
+
*/
|
|
11253
|
+
title: string;
|
|
11254
|
+
/**
|
|
11255
|
+
* Why it matters on this site.
|
|
11256
|
+
*/
|
|
11257
|
+
why: string;
|
|
11258
|
+
/**
|
|
11259
|
+
* Points the score gains when this fix alone lands, or null when the scan can't tell.
|
|
11260
|
+
*/
|
|
11261
|
+
points: (number) | null;
|
|
11262
|
+
/**
|
|
11263
|
+
* True when what's at stake is data sent without consent rather than lost signal.
|
|
11264
|
+
*/
|
|
11265
|
+
compliance: boolean;
|
|
11266
|
+
}>;
|
|
11221
11267
|
/**
|
|
11222
11268
|
* A prompt to paste into a coding agent. It lists the report's findings, then connecting Zernio, sending conversions server-side and verifying them.
|
|
11223
11269
|
*/
|
|
@@ -11340,6 +11386,10 @@ type ConversionAuditReport = {
|
|
|
11340
11386
|
* The only server path seen is the Zernio site tag relay; `serverSideVerified` says whether its delivery to this platform is proven.
|
|
11341
11387
|
*/
|
|
11342
11388
|
relayedBy?: 'zernio-tag';
|
|
11389
|
+
/**
|
|
11390
|
+
* On a scan that read the page source only: the pixel comes from the Zernio site tag's settings, which load it after consent, not from the page. Its ids are not reported.
|
|
11391
|
+
*/
|
|
11392
|
+
loadedBy?: 'zernio-tag';
|
|
11343
11393
|
/**
|
|
11344
11394
|
* The Zernio site tag on the page belongs to an account whose destination for this platform accepted the site's events in the last 7 days.
|
|
11345
11395
|
*/
|
|
@@ -11447,6 +11497,10 @@ type ConversionAuditReport = {
|
|
|
11447
11497
|
evidence: string;
|
|
11448
11498
|
}>;
|
|
11449
11499
|
note: string;
|
|
11500
|
+
/**
|
|
11501
|
+
* The server-side path that collects on the site's own domain, when the scan saw one.
|
|
11502
|
+
*/
|
|
11503
|
+
firstPartyCollection?: string;
|
|
11450
11504
|
};
|
|
11451
11505
|
consent?: {
|
|
11452
11506
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -11218,6 +11218,52 @@ type ConversionAction = {
|
|
|
11218
11218
|
};
|
|
11219
11219
|
type ConversionAuditAnswer = {
|
|
11220
11220
|
report: ConversionAuditReport;
|
|
11221
|
+
/**
|
|
11222
|
+
* Each ad network with its final setup and leak, computed exactly as the public report page shows them, best setup first.
|
|
11223
|
+
*/
|
|
11224
|
+
networks: Array<{
|
|
11225
|
+
/**
|
|
11226
|
+
* Stable platform key (meta, google, tiktok, ...), as in `report.platforms`.
|
|
11227
|
+
*/
|
|
11228
|
+
key: string;
|
|
11229
|
+
/**
|
|
11230
|
+
* Short network name (Meta, Google, TikTok, ...).
|
|
11231
|
+
*/
|
|
11232
|
+
name: string;
|
|
11233
|
+
/**
|
|
11234
|
+
* How the network gets its conversions: `verified`, `likely` or `possible` server path, `not-visible` (browser pixel, no server path visible), `not-firing` (installed, sent nothing), `configured` (tag manager only, never seen firing, not at risk) or `missing`.
|
|
11235
|
+
*/
|
|
11236
|
+
setup: 'verified' | 'likely' | 'possible' | 'not-visible' | 'not-firing' | 'configured' | 'missing';
|
|
11237
|
+
/**
|
|
11238
|
+
* Share of this network's conversions at risk, 0-100 (0 once a server path is verified). Null when the network has no working browser pixel to measure.
|
|
11239
|
+
*/
|
|
11240
|
+
leakPct: (number) | null;
|
|
11241
|
+
/**
|
|
11242
|
+
* `zernio-tag` when the pixel comes from the Zernio site tag's settings (it loads the pixel after consent) rather than from the page itself, on a scan that read the page source only.
|
|
11243
|
+
*/
|
|
11244
|
+
loadedBy: ('zernio-tag') | null;
|
|
11245
|
+
}>;
|
|
11246
|
+
/**
|
|
11247
|
+
* The few fixes that matter most, in the order the public report page lists them.
|
|
11248
|
+
*/
|
|
11249
|
+
topFixes: Array<{
|
|
11250
|
+
/**
|
|
11251
|
+
* The action to take.
|
|
11252
|
+
*/
|
|
11253
|
+
title: string;
|
|
11254
|
+
/**
|
|
11255
|
+
* Why it matters on this site.
|
|
11256
|
+
*/
|
|
11257
|
+
why: string;
|
|
11258
|
+
/**
|
|
11259
|
+
* Points the score gains when this fix alone lands, or null when the scan can't tell.
|
|
11260
|
+
*/
|
|
11261
|
+
points: (number) | null;
|
|
11262
|
+
/**
|
|
11263
|
+
* True when what's at stake is data sent without consent rather than lost signal.
|
|
11264
|
+
*/
|
|
11265
|
+
compliance: boolean;
|
|
11266
|
+
}>;
|
|
11221
11267
|
/**
|
|
11222
11268
|
* A prompt to paste into a coding agent. It lists the report's findings, then connecting Zernio, sending conversions server-side and verifying them.
|
|
11223
11269
|
*/
|
|
@@ -11340,6 +11386,10 @@ type ConversionAuditReport = {
|
|
|
11340
11386
|
* The only server path seen is the Zernio site tag relay; `serverSideVerified` says whether its delivery to this platform is proven.
|
|
11341
11387
|
*/
|
|
11342
11388
|
relayedBy?: 'zernio-tag';
|
|
11389
|
+
/**
|
|
11390
|
+
* On a scan that read the page source only: the pixel comes from the Zernio site tag's settings, which load it after consent, not from the page. Its ids are not reported.
|
|
11391
|
+
*/
|
|
11392
|
+
loadedBy?: 'zernio-tag';
|
|
11343
11393
|
/**
|
|
11344
11394
|
* The Zernio site tag on the page belongs to an account whose destination for this platform accepted the site's events in the last 7 days.
|
|
11345
11395
|
*/
|
|
@@ -11447,6 +11497,10 @@ type ConversionAuditReport = {
|
|
|
11447
11497
|
evidence: string;
|
|
11448
11498
|
}>;
|
|
11449
11499
|
note: string;
|
|
11500
|
+
/**
|
|
11501
|
+
* The server-side path that collects on the site's own domain, when the scan saw one.
|
|
11502
|
+
*/
|
|
11503
|
+
firstPartyCollection?: string;
|
|
11450
11504
|
};
|
|
11451
11505
|
consent?: {
|
|
11452
11506
|
/**
|
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.1732",
|
|
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.1732",
|
|
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
|
@@ -25477,6 +25477,9 @@ export const prepareMedia = <ThrowOnError extends boolean = false>(options: Opti
|
|
|
25477
25477
|
* - `report.visibility: "limited"` means some pixels load through a tag manager or a store platform, so only part of the setup is visible from outside. It does not mean the tracking failed or is missing.
|
|
25478
25478
|
* - `status: "warn"` (browser-only) is the leak: the platform is tracked in the browser but not server-side.
|
|
25479
25479
|
* - `status: "good"` (server-side) means conversions reach the platform server-side, which recovers most of that signal.
|
|
25480
|
+
* - `networks` and `topFixes` are the per-network setup, leak and ordered fixes exactly as the public report page
|
|
25481
|
+
* computes them; read them instead of deriving your own from `report`.
|
|
25482
|
+
*
|
|
25480
25483
|
* - `fixPrompt` is the same fix prompt the Conversion Leak Report page shows: this scan's findings, then the steps to send conversions server-side with `POST /v1/events` and to verify them.
|
|
25481
25484
|
* - To fix the leak with Zernio, follow https://docs.zernio.com/products/server-side-tracking/fix-with-agent: a tracking site, its tag, a forwarding rule per network to the pixel the page runs, then a rescan. A network turns `good` once the site's events reached that pixel in the last 7 days.
|
|
25482
25485
|
* - `publicReport` links the host's public page on is-bleeding.com. A homepage scan that could read the site's pixels becomes that page's snapshot, the same as a scan on is-bleeding.com. Any other scan links the stored snapshot, taken at `scannedAt`, or returns null when the host has none.
|
|
@@ -8976,6 +8976,52 @@ export type ConversionAction = {
|
|
|
8976
8976
|
|
|
8977
8977
|
export type ConversionAuditAnswer = {
|
|
8978
8978
|
report: ConversionAuditReport;
|
|
8979
|
+
/**
|
|
8980
|
+
* Each ad network with its final setup and leak, computed exactly as the public report page shows them, best setup first.
|
|
8981
|
+
*/
|
|
8982
|
+
networks: Array<{
|
|
8983
|
+
/**
|
|
8984
|
+
* Stable platform key (meta, google, tiktok, ...), as in `report.platforms`.
|
|
8985
|
+
*/
|
|
8986
|
+
key: string;
|
|
8987
|
+
/**
|
|
8988
|
+
* Short network name (Meta, Google, TikTok, ...).
|
|
8989
|
+
*/
|
|
8990
|
+
name: string;
|
|
8991
|
+
/**
|
|
8992
|
+
* How the network gets its conversions: `verified`, `likely` or `possible` server path, `not-visible` (browser pixel, no server path visible), `not-firing` (installed, sent nothing), `configured` (tag manager only, never seen firing, not at risk) or `missing`.
|
|
8993
|
+
*/
|
|
8994
|
+
setup: 'verified' | 'likely' | 'possible' | 'not-visible' | 'not-firing' | 'configured' | 'missing';
|
|
8995
|
+
/**
|
|
8996
|
+
* Share of this network's conversions at risk, 0-100 (0 once a server path is verified). Null when the network has no working browser pixel to measure.
|
|
8997
|
+
*/
|
|
8998
|
+
leakPct: (number) | null;
|
|
8999
|
+
/**
|
|
9000
|
+
* `zernio-tag` when the pixel comes from the Zernio site tag's settings (it loads the pixel after consent) rather than from the page itself, on a scan that read the page source only.
|
|
9001
|
+
*/
|
|
9002
|
+
loadedBy: ('zernio-tag') | null;
|
|
9003
|
+
}>;
|
|
9004
|
+
/**
|
|
9005
|
+
* The few fixes that matter most, in the order the public report page lists them.
|
|
9006
|
+
*/
|
|
9007
|
+
topFixes: Array<{
|
|
9008
|
+
/**
|
|
9009
|
+
* The action to take.
|
|
9010
|
+
*/
|
|
9011
|
+
title: string;
|
|
9012
|
+
/**
|
|
9013
|
+
* Why it matters on this site.
|
|
9014
|
+
*/
|
|
9015
|
+
why: string;
|
|
9016
|
+
/**
|
|
9017
|
+
* Points the score gains when this fix alone lands, or null when the scan can't tell.
|
|
9018
|
+
*/
|
|
9019
|
+
points: (number) | null;
|
|
9020
|
+
/**
|
|
9021
|
+
* True when what's at stake is data sent without consent rather than lost signal.
|
|
9022
|
+
*/
|
|
9023
|
+
compliance: boolean;
|
|
9024
|
+
}>;
|
|
8979
9025
|
/**
|
|
8980
9026
|
* A prompt to paste into a coding agent. It lists the report's findings, then connecting Zernio, sending conversions server-side and verifying them.
|
|
8981
9027
|
*/
|
|
@@ -9101,6 +9147,10 @@ export type ConversionAuditReport = {
|
|
|
9101
9147
|
* The only server path seen is the Zernio site tag relay; `serverSideVerified` says whether its delivery to this platform is proven.
|
|
9102
9148
|
*/
|
|
9103
9149
|
relayedBy?: 'zernio-tag';
|
|
9150
|
+
/**
|
|
9151
|
+
* On a scan that read the page source only: the pixel comes from the Zernio site tag's settings, which load it after consent, not from the page. Its ids are not reported.
|
|
9152
|
+
*/
|
|
9153
|
+
loadedBy?: 'zernio-tag';
|
|
9104
9154
|
/**
|
|
9105
9155
|
* The Zernio site tag on the page belongs to an account whose destination for this platform accepted the site's events in the last 7 days.
|
|
9106
9156
|
*/
|
|
@@ -9208,6 +9258,10 @@ export type ConversionAuditReport = {
|
|
|
9208
9258
|
evidence: string;
|
|
9209
9259
|
}>;
|
|
9210
9260
|
note: string;
|
|
9261
|
+
/**
|
|
9262
|
+
* The server-side path that collects on the site's own domain, when the scan saw one.
|
|
9263
|
+
*/
|
|
9264
|
+
firstPartyCollection?: string;
|
|
9211
9265
|
};
|
|
9212
9266
|
consent?: {
|
|
9213
9267
|
/**
|