Initial reliable release of consent engine

This commit is contained in:
Deyson Thomé
2026-09-02 14:19:05 -03:00
commit 9e1082d47b
22 changed files with 3377 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
/**
* Universal Cookie Consent
* jurisdiction/constants.js
*
* Pure constants for jurisdiction resolution. No DOM, network, storage,
* geolocation, GTM, or legal enforcement logic belongs here.
*/
export const JURISDICTION_MODES = Object.freeze([
"fixed",
"auto",
"global"
]);
export const RESOLUTION_SOURCES = Object.freeze([
"site-config",
"server",
"application",
"browser",
"fallback"
]);
export const CONFIDENCE_LEVELS = Object.freeze([
"explicit",
"high",
"medium",
"low",
"default"
]);
export const RESOLUTION_STATUSES = Object.freeze([
"resolved",
"fallback"
]);
export const DEFAULT_JURISDICTION_ID = "global";
export const DEFAULT_POLICY_ID = "global-baseline";
export const DEFAULT_MODE = "auto";