Skip to content

Jurisdiction

type Jurisdiction = {
countries: readonly string[];
defaultMode: ConsentMode;
id: JurisdictionId;
name: string;
ui: {
equalProminence: boolean;
honorGPC: boolean;
rejectButtonOnFirstLayer: boolean;
};
vendorRules: Record<string, ConsentMode>;
};

Defined in: types.ts:36

Type declaration

NameTypeDescriptionDefined in
countries?readonly string[]Optional ISO 3166-1 alpha-2 country codes that map to this jurisdiction (used by ‘auto’ mode).types.ts:56
defaultModeConsentModeDefault mode applied to vendors not in vendorRules.types.ts:45
idJurisdictionId-types.ts:37
namestring-types.ts:38
ui{ equalProminence: boolean; honorGPC: boolean; rejectButtonOnFirstLayer: boolean; }UI requirements imposed by the jurisdiction.types.ts:47
ui.equalProminencebooleanWhether Accept/Reject must have equal visual prominence.types.ts:51
ui.honorGPCbooleanWhether Global Privacy Control (Sec-GPC) signals must be honoured as opt-out.types.ts:53
ui.rejectButtonOnFirstLayerbooleanWhether a “Reject All” button is required on the first banner layer.types.ts:49
vendorRulesRecord<string, ConsentMode>Per-vendor classification: which vendors require full consent vs. notice-only vs. always-allowed under this jurisdiction.types.ts:43