@codefast/tracking 0.6.2 → 0.7.1
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/CHANGELOG.md +10 -0
- package/README.md +1 -1
- package/dist/adapters/tanstack-start.d.ts +11 -7
- package/dist/adapters/tanstack-start.d.ts.map +1 -1
- package/dist/adapters/tanstack-start.js +4 -4
- package/dist/adapters/tanstack-start.js.map +1 -1
- package/dist/client/ad-framework-consent.d.ts +8 -6
- package/dist/client/ad-framework-consent.d.ts.map +1 -1
- package/dist/client/ad-framework-consent.js +3 -3
- package/dist/client/ad-framework-consent.js.map +1 -1
- package/dist/client/browser-cookie.d.ts +1 -1
- package/dist/client/browser-cookie.js +1 -1
- package/dist/client/consent-runtime.d.ts +5 -3
- package/dist/client/consent-runtime.d.ts.map +1 -1
- package/dist/client/consent-runtime.js +1 -1
- package/dist/client/consent-runtime.js.map +1 -1
- package/dist/client/consent-withdrawal.d.ts +4 -2
- package/dist/client/consent-withdrawal.d.ts.map +1 -1
- package/dist/client/consent-withdrawal.js +1 -1
- package/dist/client/consent-withdrawal.js.map +1 -1
- package/dist/client/cookie-anonymous-id.d.ts +7 -3
- package/dist/client/cookie-anonymous-id.d.ts.map +1 -1
- package/dist/client/cookie-anonymous-id.js +1 -1
- package/dist/client/cookie-anonymous-id.js.map +1 -1
- package/dist/client/create-client-tracker.d.ts +7 -1
- package/dist/client/create-client-tracker.d.ts.map +1 -1
- package/dist/client/create-client-tracker.js +2 -0
- package/dist/client/create-client-tracker.js.map +1 -1
- package/dist/client/initial-consent-store.d.ts +6 -4
- package/dist/client/initial-consent-store.d.ts.map +1 -1
- package/dist/client/initial-consent-store.js +1 -1
- package/dist/client/initial-consent-store.js.map +1 -1
- package/dist/client/is-analytics-allowed.d.ts +4 -2
- package/dist/client/is-analytics-allowed.d.ts.map +1 -1
- package/dist/client/is-analytics-allowed.js +1 -1
- package/dist/client/is-analytics-allowed.js.map +1 -1
- package/dist/client/server-persisted-anonymous-id.d.ts +4 -2
- package/dist/client/server-persisted-anonymous-id.d.ts.map +1 -1
- package/dist/client/server-persisted-anonymous-id.js +1 -1
- package/dist/client/server-persisted-anonymous-id.js.map +1 -1
- package/dist/core/consent-config.d.ts +2 -2
- package/dist/core/consent-config.js +1 -1
- package/dist/core/consent-receipt.d.ts +6 -6
- package/dist/core/consent-receipt.js +1 -1
- package/dist/core/consent.d.ts +23 -11
- package/dist/core/consent.d.ts.map +1 -1
- package/dist/core/consent.js +12 -8
- package/dist/core/consent.js.map +1 -1
- package/dist/core/cookie.d.ts +2 -2
- package/dist/core/cookie.js +2 -2
- package/dist/core/event-catalog.d.ts +1 -1
- package/dist/core/event-catalog.js +1 -1
- package/dist/destinations/ad-consent.d.ts +2 -2
- package/dist/destinations/ad-consent.js +1 -1
- package/dist/destinations/google-analytics.d.ts +16 -8
- package/dist/destinations/google-analytics.d.ts.map +1 -1
- package/dist/destinations/google-analytics.js +4 -4
- package/dist/destinations/google-analytics.js.map +1 -1
- package/dist/destinations/google-consent.d.ts +9 -7
- package/dist/destinations/google-consent.d.ts.map +1 -1
- package/dist/destinations/google-consent.js +5 -5
- package/dist/destinations/google-consent.js.map +1 -1
- package/dist/destinations/meta.d.ts +7 -5
- package/dist/destinations/meta.d.ts.map +1 -1
- package/dist/destinations/meta.js +2 -2
- package/dist/destinations/meta.js.map +1 -1
- package/dist/destinations/microsoft-uet.d.ts +7 -5
- package/dist/destinations/microsoft-uet.d.ts.map +1 -1
- package/dist/destinations/microsoft-uet.js +2 -2
- package/dist/destinations/microsoft-uet.js.map +1 -1
- package/dist/destinations/shared.d.ts +7 -3
- package/dist/destinations/shared.d.ts.map +1 -1
- package/dist/destinations/shared.js +3 -1
- package/dist/destinations/shared.js.map +1 -1
- package/dist/destinations/tiktok.d.ts +7 -5
- package/dist/destinations/tiktok.d.ts.map +1 -1
- package/dist/destinations/tiktok.js +2 -2
- package/dist/destinations/tiktok.js.map +1 -1
- package/dist/destinations/vercel-analytics.d.ts +3 -1
- package/dist/destinations/vercel-analytics.d.ts.map +1 -1
- package/dist/destinations/vercel-analytics.js.map +1 -1
- package/dist/react/consent-banner.d.ts +28 -0
- package/dist/react/consent-banner.d.ts.map +1 -1
- package/dist/react/consent-banner.js +11 -7
- package/dist/react/consent-banner.js.map +1 -1
- package/dist/react/gtag-consent-bootstrap.d.ts +4 -2
- package/dist/react/gtag-consent-bootstrap.d.ts.map +1 -1
- package/dist/react/gtag-consent-bootstrap.js +1 -1
- package/dist/react/gtag-consent-bootstrap.js.map +1 -1
- package/dist/react/use-consent.d.ts +4 -0
- package/dist/react/use-consent.d.ts.map +1 -1
- package/dist/react/use-consent.js.map +1 -1
- package/dist/react/use-google-consent-sync.d.ts +4 -2
- package/dist/react/use-google-consent-sync.d.ts.map +1 -1
- package/dist/react/use-google-consent-sync.js +1 -1
- package/dist/react/use-google-consent-sync.js.map +1 -1
- package/dist/react/use-initial-consent.d.ts +1 -1
- package/dist/react/use-initial-consent.js +1 -1
- package/dist/server/anonymous-id-cookie.d.ts +7 -5
- package/dist/server/anonymous-id-cookie.d.ts.map +1 -1
- package/dist/server/anonymous-id-cookie.js +4 -4
- package/dist/server/anonymous-id-cookie.js.map +1 -1
- package/dist/server/consent-receipt-store.d.ts +4 -4
- package/dist/server/consent-receipt-store.js +2 -2
- package/dist/server/consent-receipt.d.ts +4 -4
- package/dist/server/consent-receipt.js +3 -3
- package/dist/server/initial-consent.d.ts +4 -2
- package/dist/server/initial-consent.d.ts.map +1 -1
- package/dist/server/initial-consent.js +1 -1
- package/dist/server/initial-consent.js.map +1 -1
- package/dist/server/measurement-protocol.d.ts +9 -7
- package/dist/server/measurement-protocol.d.ts.map +1 -1
- package/dist/server/measurement-protocol.js +3 -3
- package/dist/server/measurement-protocol.js.map +1 -1
- package/dist/server/region.d.ts +2 -2
- package/dist/server/region.js +2 -2
- package/dist/server/user-deletion.d.ts +9 -5
- package/dist/server/user-deletion.d.ts.map +1 -1
- package/dist/server/user-deletion.js +2 -2
- package/dist/server/user-deletion.js.map +1 -1
- package/dist/tooling/import-protection.d.ts +1 -1
- package/dist/tooling/import-protection.js +1 -1
- package/package.json +7 -7
- package/src/adapters/tanstack-start.ts +11 -7
- package/src/client/ad-framework-consent.ts +8 -6
- package/src/client/browser-cookie.ts +1 -1
- package/src/client/consent-runtime.ts +5 -3
- package/src/client/consent-withdrawal.ts +4 -2
- package/src/client/cookie-anonymous-id.ts +7 -3
- package/src/client/create-client-tracker.ts +7 -1
- package/src/client/initial-consent-store.ts +6 -4
- package/src/client/is-analytics-allowed.ts +4 -2
- package/src/client/server-persisted-anonymous-id.ts +4 -2
- package/src/core/consent-config.ts +2 -2
- package/src/core/consent-receipt.ts +6 -6
- package/src/core/consent.ts +23 -11
- package/src/core/cookie.ts +2 -2
- package/src/core/event-catalog.ts +1 -1
- package/src/destinations/ad-consent.ts +2 -2
- package/src/destinations/google-analytics.ts +16 -8
- package/src/destinations/google-consent.ts +9 -7
- package/src/destinations/meta.ts +7 -5
- package/src/destinations/microsoft-uet.ts +7 -5
- package/src/destinations/shared.ts +10 -4
- package/src/destinations/tiktok.ts +7 -5
- package/src/destinations/vercel-analytics.ts +3 -1
- package/src/react/consent-banner.tsx +34 -8
- package/src/react/gtag-consent-bootstrap.tsx +4 -2
- package/src/react/use-consent.ts +4 -0
- package/src/react/use-google-consent-sync.ts +4 -2
- package/src/react/use-initial-consent.ts +1 -1
- package/src/server/anonymous-id-cookie.ts +7 -5
- package/src/server/consent-receipt-store.ts +4 -4
- package/src/server/consent-receipt.ts +4 -4
- package/src/server/initial-consent.ts +4 -2
- package/src/server/measurement-protocol.ts +9 -7
- package/src/server/region.ts +2 -2
- package/src/server/user-deletion.ts +9 -5
- package/src/tooling/import-protection.ts +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ConsentDecision, ConsentMode, ConsentStorage } from "#/core/consent";
|
|
2
2
|
import type { ConsentConfig } from "#/core/consent-config";
|
|
3
3
|
/**
|
|
4
|
+
* Options for `useConsent`.
|
|
5
|
+
*
|
|
4
6
|
* @since 0.5.0-canary.4
|
|
5
7
|
*/
|
|
6
8
|
export interface UseConsentOptions {
|
|
@@ -13,6 +15,8 @@ export interface UseConsentOptions {
|
|
|
13
15
|
storage: ConsentStorage;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
18
|
+
* The live consent state and decision actions returned by `useConsent`.
|
|
19
|
+
*
|
|
16
20
|
* @since 0.5.0-canary.4
|
|
17
21
|
*/
|
|
18
22
|
export interface UseConsentResult {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-consent.d.ts","sourceRoot":"","sources":["../../src/react/use-consent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D
|
|
1
|
+
{"version":3,"file":"use-consent.d.ts","sourceRoot":"","sources":["../../src/react/use-consent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEnF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,2GAA2G;IAC3G,MAAM,EAAE,aAAa,CAAC;IACtB,6BAA6B,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACpD,IAAI,EAAE,WAAW,CAAC;IAClB,UAAU,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,eAAe,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAC/D,iHAAiH;IACjH,OAAO,EAAE,cAAc,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,sGAAsG;IACtG,QAAQ,EAAE,eAAe,GAAG,SAAS,CAAC;IACtC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oGAAoG;IACpG,gBAAgB,EAAE,eAAe,CAAC;IAClC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,iFAAiF;IACjF,kBAAkB,EAAE,OAAO,CAAC;IAC5B,sGAAsG;IACtG,cAAc,EAAE,OAAO,CAAC;IACxB,6EAA6E;IAC7E,YAAY,EAAE,CAAC,QAAQ,EAAE,eAAe,KAAK,IAAI,CAAC;CACnD;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,gBAAgB,CAsEvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-consent.js","sourceRoot":"","sources":["../../src/react/use-consent.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAG3E,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"use-consent.js","sourceRoot":"","sources":["../../src/react/use-consent.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAG3E,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAsCtH;;;;;;;;GAQG;AACH,MAAM,UAAU,UAAU,CAAC,OAA0B;IACnD,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAC9C,MAAM,EAAE,aAAa,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAC9D,MAAM,6BAA6B,GAAG,OAAO,CAAC,6BAA6B,IAAI,KAAK,CAAC;IAErF,uFAA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C,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,EAAE;QAChC,YAAY,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAC3D,CAAC,EAAE,CAAC,mBAAmB,EAAE,YAAY,CAAC,CAAC,CAAC;IAExC,MAAM,gBAAgB,GACpB,QAAQ,IAAI,qBAAqB,CAAC,EAAE,6BAA6B,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC,CAAC;IAElG,OAAO,OAAO,CACZ,GAAG,EAAE,CAAC,CAAC;QACL,QAAQ;QACR,OAAO;QACP,gBAAgB;QAChB,QAAQ;QACR,kBAAkB,EAAE,gBAAgB,CAAC,SAAS;QAC9C,cAAc,EAAE,IAAI,KAAK,QAAQ,IAAI,QAAQ,KAAK,SAAS;QAC3D,YAAY;KACb,CAAC,EACF,CAAC,QAAQ,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,CAAC,CACpE,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { UseConsentResult } from "#/react/use-consent";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Options for `useGoogleConsentSync`.
|
|
4
|
+
*
|
|
5
|
+
* @since 0.5.0-canary.6
|
|
4
6
|
*/
|
|
5
7
|
export interface UseGoogleConsentSyncOptions {
|
|
6
8
|
/**
|
|
@@ -14,7 +16,7 @@ export interface UseGoogleConsentSyncOptions {
|
|
|
14
16
|
* decision exists (including cross-tab / privacy-page saves), and optionally loads gtag
|
|
15
17
|
* when analytics is effective. Mount once on a page-wide surface (e.g. the footer gate).
|
|
16
18
|
*
|
|
17
|
-
* @since
|
|
19
|
+
* @since 0.5.0-canary.6
|
|
18
20
|
*/
|
|
19
21
|
export declare function useGoogleConsentSync(consent: UseConsentResult, options?: UseGoogleConsentSyncOptions): void;
|
|
20
22
|
//# sourceMappingURL=use-google-consent-sync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-google-consent-sync.d.ts","sourceRoot":"","sources":["../../src/react/use-google-consent-sync.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D
|
|
1
|
+
{"version":3,"file":"use-google-consent-sync.d.ts","sourceRoot":"","sources":["../../src/react/use-google-consent-sync.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;CAC3C;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,GAAE,2BAAgC,GAAG,IAAI,CAY/G"}
|
|
@@ -6,7 +6,7 @@ import { updateGoogleConsent } from "#/destinations/google-analytics";
|
|
|
6
6
|
* decision exists (including cross-tab / privacy-page saves), and optionally loads gtag
|
|
7
7
|
* when analytics is effective. Mount once on a page-wide surface (e.g. the footer gate).
|
|
8
8
|
*
|
|
9
|
-
* @since
|
|
9
|
+
* @since 0.5.0-canary.6
|
|
10
10
|
*/
|
|
11
11
|
export function useGoogleConsentSync(consent, options = {}) {
|
|
12
12
|
const { loadGtagScript } = options;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-google-consent-sync.js","sourceRoot":"","sources":["../../src/react/use-google-consent-sync.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"use-google-consent-sync.js","sourceRoot":"","sources":["../../src/react/use-google-consent-sync.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAgBtE;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAyB,EAAE,OAAO,GAAgC,EAAE;IACvG,MAAM,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC;IAEnC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,OAAO,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;YACnC,mBAAmB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACxC,CAAC;QAED,IAAI,OAAO,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC;YACvC,cAAc,EAAE,EAAE,CAAC;QACrB,CAAC;IACH,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,gBAAgB,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC"}
|
|
@@ -5,7 +5,7 @@ import type { InitialConsentSnapshot, InitialConsentStore } from "#/client/initi
|
|
|
5
5
|
* answers. SSR and the first client render read the strictest snapshot, so hydration can
|
|
6
6
|
* never mismatch on region.
|
|
7
7
|
*
|
|
8
|
-
* @since
|
|
8
|
+
* @since 0.5.0-canary.6
|
|
9
9
|
*/
|
|
10
10
|
export declare function useInitialConsent(store: InitialConsentStore): InitialConsentSnapshot;
|
|
11
11
|
//# sourceMappingURL=use-initial-consent.d.ts.map
|
|
@@ -6,7 +6,7 @@ import { useEffect, useSyncExternalStore } from "react";
|
|
|
6
6
|
* answers. SSR and the first client render read the strictest snapshot, so hydration can
|
|
7
7
|
* never mismatch on region.
|
|
8
8
|
*
|
|
9
|
-
* @since
|
|
9
|
+
* @since 0.5.0-canary.6
|
|
10
10
|
*/
|
|
11
11
|
export function useInitialConsent(store) {
|
|
12
12
|
// Post-hydration safety net — idempotent with an earlier, pre-hydration kick.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @throws Error when `cookieName` is not a valid token.
|
|
5
5
|
*
|
|
6
|
-
* @since
|
|
6
|
+
* @since 0.5.0-canary.6
|
|
7
7
|
*/
|
|
8
8
|
export declare function assertValidAnonymousIdCookieName(cookieName: string): void;
|
|
9
9
|
/**
|
|
@@ -11,11 +11,13 @@ export declare function assertValidAnonymousIdCookieName(cookieName: string): vo
|
|
|
11
11
|
* writes its input into a `Set-Cookie`, so only an exactly-UUID-shaped value may pass —
|
|
12
12
|
* anything else is a header-injection attempt or corruption, never a valid id.
|
|
13
13
|
*
|
|
14
|
-
* @since
|
|
14
|
+
* @since 0.5.0-canary.6
|
|
15
15
|
*/
|
|
16
16
|
export declare function isValidAnonymousId(value: string): boolean;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Options for persisting a client-minted anonymous id via a server `Set-Cookie`.
|
|
19
|
+
*
|
|
20
|
+
* @since 0.5.0-canary.6
|
|
19
21
|
*/
|
|
20
22
|
export interface AnonymousIdCookieOptions {
|
|
21
23
|
/** Cookie name — must match what the client tracker reads. */
|
|
@@ -39,7 +41,7 @@ export interface AnonymousIdCookieOptions {
|
|
|
39
41
|
*
|
|
40
42
|
* @throws Error when `id` is not UUID-shaped or `cookieName` is not a valid token.
|
|
41
43
|
*
|
|
42
|
-
* @since
|
|
44
|
+
* @since 0.5.0-canary.6
|
|
43
45
|
*/
|
|
44
46
|
export declare function resolveAnonymousIdCookie(options: AnonymousIdCookieOptions): {
|
|
45
47
|
maxAge: number;
|
|
@@ -56,7 +58,7 @@ export declare function resolveAnonymousIdCookie(options: AnonymousIdCookieOptio
|
|
|
56
58
|
*
|
|
57
59
|
* @throws Error when `cookieName` is not a valid token.
|
|
58
60
|
*
|
|
59
|
-
* @since
|
|
61
|
+
* @since 0.5.0-canary.6
|
|
60
62
|
*/
|
|
61
63
|
export declare function resolveClearAnonymousIdCookie(cookieName: string): {
|
|
62
64
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anonymous-id-cookie.d.ts","sourceRoot":"","sources":["../../src/server/anonymous-id-cookie.ts"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAIzE;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED
|
|
1
|
+
{"version":3,"file":"anonymous-id-cookie.d.ts","sourceRoot":"","sources":["../../src/server/anonymous-id-cookie.ts"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAIzE;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAC;IACnB,iFAAiF;IACjF,EAAE,EAAE,MAAM,CAAC;IACX,qEAAqE;IACrE,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,wBAAwB,GAAG;IAC3E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC;IAChB,MAAM,EAAE,IAAI,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAeA;AAED;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAAC,UAAU,EAAE,MAAM,GAAG;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC;IAChB,MAAM,EAAE,IAAI,CAAC;CACd,CAIA"}
|
|
@@ -8,7 +8,7 @@ const COOKIE_NAME_PATTERN = /^[\w-]+$/;
|
|
|
8
8
|
*
|
|
9
9
|
* @throws Error when `cookieName` is not a valid token.
|
|
10
10
|
*
|
|
11
|
-
* @since
|
|
11
|
+
* @since 0.5.0-canary.6
|
|
12
12
|
*/
|
|
13
13
|
export function assertValidAnonymousIdCookieName(cookieName) {
|
|
14
14
|
if (!COOKIE_NAME_PATTERN.test(cookieName)) {
|
|
@@ -20,7 +20,7 @@ export function assertValidAnonymousIdCookieName(cookieName) {
|
|
|
20
20
|
* writes its input into a `Set-Cookie`, so only an exactly-UUID-shaped value may pass —
|
|
21
21
|
* anything else is a header-injection attempt or corruption, never a valid id.
|
|
22
22
|
*
|
|
23
|
-
* @since
|
|
23
|
+
* @since 0.5.0-canary.6
|
|
24
24
|
*/
|
|
25
25
|
export function isValidAnonymousId(value) {
|
|
26
26
|
return UUID_PATTERN.test(value);
|
|
@@ -39,7 +39,7 @@ export function isValidAnonymousId(value) {
|
|
|
39
39
|
*
|
|
40
40
|
* @throws Error when `id` is not UUID-shaped or `cookieName` is not a valid token.
|
|
41
41
|
*
|
|
42
|
-
* @since
|
|
42
|
+
* @since 0.5.0-canary.6
|
|
43
43
|
*/
|
|
44
44
|
export function resolveAnonymousIdCookie(options) {
|
|
45
45
|
assertValidAnonymousIdCookieName(options.cookieName);
|
|
@@ -62,7 +62,7 @@ export function resolveAnonymousIdCookie(options) {
|
|
|
62
62
|
*
|
|
63
63
|
* @throws Error when `cookieName` is not a valid token.
|
|
64
64
|
*
|
|
65
|
-
* @since
|
|
65
|
+
* @since 0.5.0-canary.6
|
|
66
66
|
*/
|
|
67
67
|
export function resolveClearAnonymousIdCookie(cookieName) {
|
|
68
68
|
assertValidAnonymousIdCookieName(cookieName);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anonymous-id-cookie.js","sourceRoot":"","sources":["../../src/server/anonymous-id-cookie.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MA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,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC;QACpC,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;IACxE,CAAC;IAED,OAAO;QACL,MAAM,EAAE,OAAO,CAAC,aAAa,IAAI,mBAAmB;QACpD,IAAI,EAAE,OAAO,CAAC,UAAU;QACxB,IAAI,EAAE,GAAG;QACT,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,OAAO,CAAC,EAAE;KAClB,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,6BAA6B,CAAC,UAAkB;IAM9D,gCAAgC,CAAC,UAAU,CAAC,CAAC;IAE7C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AACxE,CAAC"}
|
|
@@ -5,7 +5,7 @@ import type { ConsentReceipt } from "#/core/consent-receipt";
|
|
|
5
5
|
* and an update/withdrawal is a new receipt referencing the prior one (spec-consent-receipts §3).
|
|
6
6
|
* May be async so a real backend can await its write.
|
|
7
7
|
*
|
|
8
|
-
* @since
|
|
8
|
+
* @since 0.5.0-canary.6
|
|
9
9
|
*/
|
|
10
10
|
export interface ReceiptStore {
|
|
11
11
|
append: (receipt: ConsentReceipt) => Promise<void> | void;
|
|
@@ -21,7 +21,7 @@ export interface ReceiptStore {
|
|
|
21
21
|
* Append is idempotent-by-id: re-appending the same `receiptId` is ignored, preserving the
|
|
22
22
|
* append-only guarantee even if a client retries.
|
|
23
23
|
*
|
|
24
|
-
* @since
|
|
24
|
+
* @since 0.5.0-canary.6
|
|
25
25
|
*/
|
|
26
26
|
export declare function createInMemoryReceiptStore(): ReceiptStore;
|
|
27
27
|
/**
|
|
@@ -29,7 +29,7 @@ export declare function createInMemoryReceiptStore(): ReceiptStore;
|
|
|
29
29
|
* Keeping it this small lets an integrator back receipts with any store (Vercel KV, Postgres,
|
|
30
30
|
* an append-only log) by implementing two methods rather than the full {@link ReceiptStore}.
|
|
31
31
|
*
|
|
32
|
-
* @since
|
|
32
|
+
* @since 0.5.0-canary.6
|
|
33
33
|
*/
|
|
34
34
|
export interface ReceiptStoreBackend {
|
|
35
35
|
get: (receiptId: string) => Promise<ConsentReceipt | undefined>;
|
|
@@ -48,7 +48,7 @@ export interface ReceiptStoreBackend {
|
|
|
48
48
|
* client (no database dependency is baked in). Pair it with a real backend in production,
|
|
49
49
|
* where {@link createInMemoryReceiptStore} is not a lawful store on its own.
|
|
50
50
|
*
|
|
51
|
-
* @since
|
|
51
|
+
* @since 0.5.0-canary.6
|
|
52
52
|
*/
|
|
53
53
|
export declare function createDurableReceiptStore(options: {
|
|
54
54
|
backend: ReceiptStoreBackend;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Append is idempotent-by-id: re-appending the same `receiptId` is ignored, preserving the
|
|
9
9
|
* append-only guarantee even if a client retries.
|
|
10
10
|
*
|
|
11
|
-
* @since
|
|
11
|
+
* @since 0.5.0-canary.6
|
|
12
12
|
*/
|
|
13
13
|
export function createInMemoryReceiptStore() {
|
|
14
14
|
const receipts = new Map();
|
|
@@ -29,7 +29,7 @@ export function createInMemoryReceiptStore() {
|
|
|
29
29
|
* client (no database dependency is baked in). Pair it with a real backend in production,
|
|
30
30
|
* where {@link createInMemoryReceiptStore} is not a lawful store on its own.
|
|
31
31
|
*
|
|
32
|
-
* @since
|
|
32
|
+
* @since 0.5.0-canary.6
|
|
33
33
|
*/
|
|
34
34
|
export function createDurableReceiptStore(options) {
|
|
35
35
|
return {
|
|
@@ -3,7 +3,7 @@ import type { ConsentReceipt, ConsentReceiptInput } from "#/core/consent-receipt
|
|
|
3
3
|
* The receipt information-structure version this builder emits (ISO/IEC TS 27560-shaped).
|
|
4
4
|
* Bump when the receipt field set changes; stored receipts carry it so a reader can migrate.
|
|
5
5
|
*
|
|
6
|
-
* @since
|
|
6
|
+
* @since 0.5.0-canary.6
|
|
7
7
|
*/
|
|
8
8
|
export declare const RECEIPT_SCHEMA_VERSION = "1.0.0";
|
|
9
9
|
/**
|
|
@@ -13,7 +13,7 @@ export declare const RECEIPT_SCHEMA_VERSION = "1.0.0";
|
|
|
13
13
|
* a controller may widen it under counsel, but the builder never returns a full address.
|
|
14
14
|
* Returns `undefined` for a missing or malformed input rather than storing a bad value.
|
|
15
15
|
*
|
|
16
|
-
* @since
|
|
16
|
+
* @since 0.5.0-canary.6
|
|
17
17
|
*/
|
|
18
18
|
export declare function coarsenIp(ip: string | null | undefined): string | undefined;
|
|
19
19
|
/**
|
|
@@ -22,7 +22,7 @@ export declare function coarsenIp(ip: string | null | undefined): string | undef
|
|
|
22
22
|
* function to stamp an `integrityKey`, letting a client prove its state matches the stored
|
|
23
23
|
* original (spec-consent-receipts §5). Omit it and receipts carry no integrity key.
|
|
24
24
|
*
|
|
25
|
-
* @since
|
|
25
|
+
* @since 0.5.0-canary.6
|
|
26
26
|
*/
|
|
27
27
|
export interface BuildConsentReceiptOptions {
|
|
28
28
|
input: ConsentReceiptInput;
|
|
@@ -35,7 +35,7 @@ export interface BuildConsentReceiptOptions {
|
|
|
35
35
|
* (`receiptId`, `timestamp`, coarsened IP, optional `integrityKey`). Pure except for the
|
|
36
36
|
* id/clock it stamps — pass those in via a seam if a deterministic build is needed.
|
|
37
37
|
*
|
|
38
|
-
* @since
|
|
38
|
+
* @since 0.5.0-canary.6
|
|
39
39
|
*/
|
|
40
40
|
export declare function buildConsentReceipt(options: BuildConsentReceiptOptions): ConsentReceipt;
|
|
41
41
|
//# sourceMappingURL=consent-receipt.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The receipt information-structure version this builder emits (ISO/IEC TS 27560-shaped).
|
|
3
3
|
* Bump when the receipt field set changes; stored receipts carry it so a reader can migrate.
|
|
4
4
|
*
|
|
5
|
-
* @since
|
|
5
|
+
* @since 0.5.0-canary.6
|
|
6
6
|
*/
|
|
7
7
|
export const RECEIPT_SCHEMA_VERSION = "1.0.0";
|
|
8
8
|
const IPV4_PATTERN = /^(\d{1,3}\.){3}\d{1,3}$/;
|
|
@@ -13,7 +13,7 @@ const IPV4_PATTERN = /^(\d{1,3}\.){3}\d{1,3}$/;
|
|
|
13
13
|
* a controller may widen it under counsel, but the builder never returns a full address.
|
|
14
14
|
* Returns `undefined` for a missing or malformed input rather than storing a bad value.
|
|
15
15
|
*
|
|
16
|
-
* @since
|
|
16
|
+
* @since 0.5.0-canary.6
|
|
17
17
|
*/
|
|
18
18
|
export function coarsenIp(ip) {
|
|
19
19
|
if (!ip) {
|
|
@@ -44,7 +44,7 @@ export function coarsenIp(ip) {
|
|
|
44
44
|
* (`receiptId`, `timestamp`, coarsened IP, optional `integrityKey`). Pure except for the
|
|
45
45
|
* id/clock it stamps — pass those in via a seam if a deterministic build is needed.
|
|
46
46
|
*
|
|
47
|
-
* @since
|
|
47
|
+
* @since 0.5.0-canary.6
|
|
48
48
|
*/
|
|
49
49
|
export function buildConsentReceipt(options) {
|
|
50
50
|
const base = {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ConsentCategory, InitialConsent } from "#/core/consent";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Options for `resolveInitialConsent`.
|
|
4
|
+
*
|
|
5
|
+
* @since 0.5.0-canary.6
|
|
4
6
|
*/
|
|
5
7
|
export interface InitialConsentOptions {
|
|
6
8
|
/** ISO 3166-1 alpha-2 from the geo header; missing → the strictest opt-in default. */
|
|
@@ -20,7 +22,7 @@ export interface InitialConsentOptions {
|
|
|
20
22
|
* {@link STRICTEST_INITIAL_CONSENT} instead of `"other"`'s opt-out. Conflating the two
|
|
21
23
|
* would grant analytics by default to every visitor, EU included, on a geo-less host.
|
|
22
24
|
*
|
|
23
|
-
* @since
|
|
25
|
+
* @since 0.5.0-canary.6
|
|
24
26
|
*/
|
|
25
27
|
export declare function resolveInitialConsent(options: InitialConsentOptions): InitialConsent;
|
|
26
28
|
//# sourceMappingURL=initial-consent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initial-consent.d.ts","sourceRoot":"","sources":["../../src/server/initial-consent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAItE
|
|
1
|
+
{"version":3,"file":"initial-consent.d.ts","sourceRoot":"","sources":["../../src/server/initial-consent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAItE;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,sFAAsF;IACtF,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,8DAA8D;IAC9D,6BAA6B,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACpD,+FAA+F;IAC/F,mBAAmB,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;CACrD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,qBAAqB,GAAG,cAAc,CAiBpF"}
|
|
@@ -10,7 +10,7 @@ import { resolveRegionFromCountryCode } from "#/server/region";
|
|
|
10
10
|
* {@link STRICTEST_INITIAL_CONSENT} instead of `"other"`'s opt-out. Conflating the two
|
|
11
11
|
* would grant analytics by default to every visitor, EU included, on a geo-less host.
|
|
12
12
|
*
|
|
13
|
-
* @since
|
|
13
|
+
* @since 0.5.0-canary.6
|
|
14
14
|
*/
|
|
15
15
|
export function resolveInitialConsent(options) {
|
|
16
16
|
if (!options.countryCode) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initial-consent.js","sourceRoot":"","sources":["../../src/server/initial-consent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AACtG,OAAO,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"initial-consent.js","sourceRoot":"","sources":["../../src/server/initial-consent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AACtG,OAAO,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AAgB/D;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,qBAAqB,CAAC,OAA8B;IAClE,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;QACzB,OAAO,yBAAyB,CAAC;IACnC,CAAC;IAED,MAAM,MAAM,GAAG,4BAA4B,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACjE,MAAM,IAAI,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAExC,OAAO;QACL,cAAc,EAAE,qBAAqB,CAAC;YACpC,6BAA6B,EAAE,OAAO,CAAC,6BAA6B,IAAI,KAAK;YAC7E,IAAI;YACJ,mBAAmB,EAAE,OAAO,CAAC,mBAAmB;SACjD,CAAC;QACF,IAAI;QACJ,MAAM;KACP,CAAC;AACJ,CAAC"}
|
|
@@ -2,7 +2,7 @@ import type { ConsentDecision } from "#/core/consent";
|
|
|
2
2
|
/**
|
|
3
3
|
* A GA4 event for the Measurement Protocol. `params` are flat scalars — GA4 rejects nested values and booleans.
|
|
4
4
|
*
|
|
5
|
-
* @since
|
|
5
|
+
* @since 0.5.0-canary.6
|
|
6
6
|
*/
|
|
7
7
|
export interface MeasurementProtocolEvent {
|
|
8
8
|
name: string;
|
|
@@ -11,7 +11,7 @@ export interface MeasurementProtocolEvent {
|
|
|
11
11
|
/**
|
|
12
12
|
* The GA4 MP `consent` object — the two ad-consent signals the payload accepts.
|
|
13
13
|
*
|
|
14
|
-
* @since
|
|
14
|
+
* @since 0.5.0-canary.6
|
|
15
15
|
*/
|
|
16
16
|
export interface MeasurementProtocolConsent {
|
|
17
17
|
ad_personalization: "DENIED" | "GRANTED";
|
|
@@ -20,7 +20,7 @@ export interface MeasurementProtocolConsent {
|
|
|
20
20
|
/**
|
|
21
21
|
* Maps the package `ConsentDecision` to GA4 MP consent signals — `ads` drives both ad fields.
|
|
22
22
|
*
|
|
23
|
-
* @since
|
|
23
|
+
* @since 0.5.0-canary.6
|
|
24
24
|
*/
|
|
25
25
|
export declare function toMeasurementProtocolConsent(decision: ConsentDecision): MeasurementProtocolConsent;
|
|
26
26
|
/**
|
|
@@ -30,20 +30,22 @@ export declare function toMeasurementProtocolConsent(decision: ConsentDecision):
|
|
|
30
30
|
* Measurement Protocol reference, so anything that doesn't parse returns `undefined` rather
|
|
31
31
|
* than sending a malformed id.
|
|
32
32
|
*
|
|
33
|
-
* @since
|
|
33
|
+
* @since 0.5.0-canary.6
|
|
34
34
|
*/
|
|
35
35
|
export declare function extractGaClientId(gaCookieValue: string | undefined): string | undefined;
|
|
36
36
|
/**
|
|
37
37
|
* The one network primitive the sender needs — injected so the package ships no HTTP client.
|
|
38
38
|
*
|
|
39
|
-
* @since
|
|
39
|
+
* @since 0.5.0-canary.6
|
|
40
40
|
*/
|
|
41
41
|
export type MeasurementProtocolTransport = (request: {
|
|
42
42
|
body: string;
|
|
43
43
|
url: string;
|
|
44
44
|
}) => Promise<void>;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Options for `sendMeasurementProtocolEvents`.
|
|
47
|
+
*
|
|
48
|
+
* @since 0.5.0-canary.6
|
|
47
49
|
*/
|
|
48
50
|
export interface SendMeasurementProtocolEventsOptions {
|
|
49
51
|
/** GA4 **API Secret** — read server-side from config, never a client-exposed var. */
|
|
@@ -63,7 +65,7 @@ export interface SendMeasurementProtocolEventsOptions {
|
|
|
63
65
|
*
|
|
64
66
|
* @see https://developers.google.com/analytics/devguides/collection/protocol/ga4/sending-events
|
|
65
67
|
*
|
|
66
|
-
* @since
|
|
68
|
+
* @since 0.5.0-canary.6
|
|
67
69
|
*/
|
|
68
70
|
export declare function sendMeasurementProtocolEvents(options: SendMeasurementProtocolEventsOptions): Promise<void>;
|
|
69
71
|
//# sourceMappingURL=measurement-protocol.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"measurement-protocol.d.ts","sourceRoot":"","sources":["../../src/server/measurement-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAAC;CACtD;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,kBAAkB,EAAE,QAAQ,GAAG,SAAS,CAAC;IACzC,YAAY,EAAE,QAAQ,GAAG,SAAS,CAAC;CACpC;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,eAAe,GAAG,0BAA0B,CAIlG;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAYvF;AAED;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAkBrG
|
|
1
|
+
{"version":3,"file":"measurement-protocol.d.ts","sourceRoot":"","sources":["../../src/server/measurement-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,CAAC;CACtD;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,kBAAkB,EAAE,QAAQ,GAAG,SAAS,CAAC;IACzC,YAAY,EAAE,QAAQ,GAAG,SAAS,CAAC;CACpC;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,eAAe,GAAG,0BAA0B,CAIlG;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAYvF;AAED;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAkBrG;;;;GAIG;AACH,MAAM,WAAW,oCAAoC;IACnD,qFAAqF;IACrF,SAAS,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,0BAA0B,GAAG,SAAS,CAAC;IACjD,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,MAAM,EAAE,aAAa,CAAC,wBAAwB,CAAC,CAAC;IAChD,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;CACtD;AAED;;;;;;;;GAQG;AACH,wBAAsB,6BAA6B,CAAC,OAAO,EAAE,oCAAoC,GAAG,OAAO,CAAC,IAAI,CAAC,CAUhH"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Maps the package `ConsentDecision` to GA4 MP consent signals — `ads` drives both ad fields.
|
|
3
3
|
*
|
|
4
|
-
* @since
|
|
4
|
+
* @since 0.5.0-canary.6
|
|
5
5
|
*/
|
|
6
6
|
export function toMeasurementProtocolConsent(decision) {
|
|
7
7
|
const state = decision.ads ? "GRANTED" : "DENIED";
|
|
@@ -14,7 +14,7 @@ export function toMeasurementProtocolConsent(decision) {
|
|
|
14
14
|
* Measurement Protocol reference, so anything that doesn't parse returns `undefined` rather
|
|
15
15
|
* than sending a malformed id.
|
|
16
16
|
*
|
|
17
|
-
* @since
|
|
17
|
+
* @since 0.5.0-canary.6
|
|
18
18
|
*/
|
|
19
19
|
export function extractGaClientId(gaCookieValue) {
|
|
20
20
|
if (!gaCookieValue) {
|
|
@@ -46,7 +46,7 @@ async function defaultTransport(request) {
|
|
|
46
46
|
*
|
|
47
47
|
* @see https://developers.google.com/analytics/devguides/collection/protocol/ga4/sending-events
|
|
48
48
|
*
|
|
49
|
-
* @since
|
|
49
|
+
* @since 0.5.0-canary.6
|
|
50
50
|
*/
|
|
51
51
|
export async function sendMeasurementProtocolEvents(options) {
|
|
52
52
|
const origin = options.endpointOrigin ?? DEFAULT_ENDPOINT_ORIGIN;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"measurement-protocol.js","sourceRoot":"","sources":["../../src/server/measurement-protocol.ts"],"names":[],"mappings":"AAsBA;;;;GAIG;AACH,MAAM,UAAU,4BAA4B,CAAC,QAAyB;IACpE,MAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC;IAElD,OAAO,EAAE,kBAAkB,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;AAC5D,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,iBAAiB,CAAC,aAAiC;IACjE,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,QAAQ,GAAG,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAE1C,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,KAAK,KAAK,EAAE,CAAC;QACjD,OAAO,SAAS,CAAC;I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/D,CAAC"}
|
package/dist/server/region.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ConsentRegion } from "#/core/consent";
|
|
|
2
2
|
/**
|
|
3
3
|
* EU member states — GDPR opt-in via `resolveConsentMode("eu")`.
|
|
4
4
|
*
|
|
5
|
-
* @since
|
|
5
|
+
* @since 0.5.0-canary.6
|
|
6
6
|
*/
|
|
7
7
|
export declare const EU_COUNTRY_CODES: ReadonlySet<string>;
|
|
8
8
|
/**
|
|
@@ -12,7 +12,7 @@ export declare const EU_COUNTRY_CODES: ReadonlySet<string>;
|
|
|
12
12
|
* Restricted edge runtimes that cannot import this package should duplicate these codes
|
|
13
13
|
* and keep a sync test against this export.
|
|
14
14
|
*
|
|
15
|
-
* @since
|
|
15
|
+
* @since 0.5.0-canary.6
|
|
16
16
|
*/
|
|
17
17
|
export declare const OPT_IN_EQUIVALENT_COUNTRY_CODES: ReadonlySet<string>;
|
|
18
18
|
/**
|
package/dist/server/region.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* EU member states — GDPR opt-in via `resolveConsentMode("eu")`.
|
|
3
3
|
*
|
|
4
|
-
* @since
|
|
4
|
+
* @since 0.5.0-canary.6
|
|
5
5
|
*/
|
|
6
6
|
export const EU_COUNTRY_CODES = new Set([
|
|
7
7
|
"AT",
|
|
@@ -39,7 +39,7 @@ export const EU_COUNTRY_CODES = new Set([
|
|
|
39
39
|
* Restricted edge runtimes that cannot import this package should duplicate these codes
|
|
40
40
|
* and keep a sync test against this export.
|
|
41
41
|
*
|
|
42
|
-
* @since
|
|
42
|
+
* @since 0.5.0-canary.6
|
|
43
43
|
*/
|
|
44
44
|
export const OPT_IN_EQUIVALENT_COUNTRY_CODES = new Set(["GB", "IS", "LI", "NO"]);
|
|
45
45
|
/**
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
* @see https://developers.google.com/analytics/devguides/config/userdeletion/migration
|
|
10
10
|
*/
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* The URL and body of an Admin API `submitUserDeletion` call, ready for an authenticated transport.
|
|
13
|
+
*
|
|
14
|
+
* @since 0.5.0-canary.6
|
|
13
15
|
*/
|
|
14
16
|
export interface Ga4UserDeletionRequest {
|
|
15
17
|
body: {
|
|
@@ -25,7 +27,7 @@ export interface Ga4UserDeletionRequest {
|
|
|
25
27
|
*
|
|
26
28
|
* @param options - `propertyId` is the numeric GA4 property (no `properties/` prefix).
|
|
27
29
|
*
|
|
28
|
-
* @since
|
|
30
|
+
* @since 0.5.0-canary.6
|
|
29
31
|
*/
|
|
30
32
|
export declare function buildGa4UserDeletionRequest(options: {
|
|
31
33
|
clientId: string;
|
|
@@ -34,7 +36,7 @@ export declare function buildGa4UserDeletionRequest(options: {
|
|
|
34
36
|
/**
|
|
35
37
|
* The one network primitive the sender needs — injected so the package ships no HTTP client.
|
|
36
38
|
*
|
|
37
|
-
* @since
|
|
39
|
+
* @since 0.5.0-canary.6
|
|
38
40
|
*/
|
|
39
41
|
export type Ga4UserDeletionTransport = (request: {
|
|
40
42
|
body: string;
|
|
@@ -42,7 +44,9 @@ export type Ga4UserDeletionTransport = (request: {
|
|
|
42
44
|
url: string;
|
|
43
45
|
}) => Promise<void>;
|
|
44
46
|
/**
|
|
45
|
-
*
|
|
47
|
+
* Options for `submitGa4UserDeletion`.
|
|
48
|
+
*
|
|
49
|
+
* @since 0.5.0-canary.6
|
|
46
50
|
*/
|
|
47
51
|
export interface SubmitGa4UserDeletionOptions {
|
|
48
52
|
/** A bearer token for the `https://www.googleapis.com/auth/analytics.edit` scope — the caller owns OAuth. */
|
|
@@ -58,7 +62,7 @@ export interface SubmitGa4UserDeletionOptions {
|
|
|
58
62
|
* next run; it does **not** reach previously-aggregated reports or BigQuery exports
|
|
59
63
|
* (spec-data-subject-rights §3).
|
|
60
64
|
*
|
|
61
|
-
* @since
|
|
65
|
+
* @since 0.5.0-canary.6
|
|
62
66
|
*/
|
|
63
67
|
export declare function submitGa4UserDeletion(options: SubmitGa4UserDeletionOptions): Promise<void>;
|
|
64
68
|
//# sourceMappingURL=user-deletion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-deletion.d.ts","sourceRoot":"","sources":["../../src/server/user-deletion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH
|
|
1
|
+
{"version":3,"file":"user-deletion.d.ts","sourceRoot":"","sources":["../../src/server/user-deletion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,sBAAsB,CAKrH;AAED;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,EAAE;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,GAAG,EAAE,MAAM,CAAC;CACb,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAcpB;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C,6GAA6G;IAC7G,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;CAClD;AAED;;;;;;;;GAQG;AACH,wBAAsB,qBAAqB,CAAC,OAAO,EAAE,4BAA4B,GAAG,OAAO,CAAC,IAAI,CAAC,CAWhG"}
|
|
@@ -17,7 +17,7 @@ const ADMIN_API_ORIGIN = "https://analyticsadmin.googleapis.com";
|
|
|
17
17
|
*
|
|
18
18
|
* @param options - `propertyId` is the numeric GA4 property (no `properties/` prefix).
|
|
19
19
|
*
|
|
20
|
-
* @since
|
|
20
|
+
* @since 0.5.0-canary.6
|
|
21
21
|
*/
|
|
22
22
|
export function buildGa4UserDeletionRequest(options) {
|
|
23
23
|
return {
|
|
@@ -38,7 +38,7 @@ async function defaultTransport(request) {
|
|
|
38
38
|
* next run; it does **not** reach previously-aggregated reports or BigQuery exports
|
|
39
39
|
* (spec-data-subject-rights §3).
|
|
40
40
|
*
|
|
41
|
-
* @since
|
|
41
|
+
* @since 0.5.0-canary.6
|
|
42
42
|
*/
|
|
43
43
|
export async function submitGa4UserDeletion(options) {
|
|
44
44
|
const request = buildGa4UserDeletionRequest({ clientId: options.clientId, propertyId: options.propertyId });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-deletion.js","sourceRoot":"","sources":["../../src/server/user-deletion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,gBAAgB,GAAG,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"user-deletion.js","sourceRoot":"","sources":["../../src/server/user-deletion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,gBAAgB,GAAG,uCAAuC,CAAC;AAYjE;;;;;;;;;GASG;AACH,MAAM,UAAU,2BAA2B,CAAC,OAAiD;IAC3F,OAAO;QACL,IAAI,EAAE,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE;QACpC,GAAG,EAAE,GAAG,gBAAgB,uBAAuB,OAAO,CAAC,UAAU,qBAAqB;KACvF,CAAC;AACJ,CAAC;AAaD,KAAK,UAAU,gBAAgB,CAAC,OAI/B;IACC,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAE5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