Skip to content

DeclaredContext

Defined in: context.ts:88

Developer-declared placement, the public shape (long field names).

[key: `x.${string}`]: string | undefined

Literal custom dims: "x.tier": "pro" — same dim as custom.tier, which wins on collision. Accepted because the server extractor accepts them; dropping them client-side desyncs ctxhash from the signed hash.

optional audience?: string

Defined in: context.ts:94

Placement descriptor, never a user identifier.


optional custom?: Record<string, string>

Defined in: context.ts:101

Org-declared custom dims: { tier: "pro" } becomes dim x.tier.


optional intent?: string

Defined in: context.ts:92

Platform intent enum.


optional notes?: string

Defined in: context.ts:99

Free text, ≤280 chars, describing the placement — never the visitor. Hashed in full: a distinct notes value is a distinct context.


optional page?: string

Defined in: context.ts:90

Declared page class, [a-z0-9-]{1,32}. Never a URL or path.