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