PactDOCS

UNDERSTAND / PURPOSES

One purpose model

Page consent and downstream authorization use the same named decisions. Unknown purposes fail closed.
01

Built-in purposes

PurposeClassMeaning
essentialRequiredSecurity and consent evidence. Never disabled.
analyticsOptionalAggregate measurement and product understanding.
marketingOptionalAdvertising, attribution, sale, or sharing.
ai.inferenceRestrictedUse a model to produce an immediate result.
ai.trainingRestrictedUse interactions to improve model weights.
ai.evalRestrictedEvaluate model or workflow quality.
ai.human_reviewRestrictedExpose data to a person for review.
data.exportRestrictedMove data to an external recipient.
02

Read a purpose

feature.ts
typescript
const state = await pactClient.getState()

if (state.purposes.analytics === true) {
  startMeasurement()
}
03

Treat absence as denial

REFERENCEUse the browser contract