Skip to content

CtaResolverContext

Context handed to a CtaResolver when a placement CTA is activated.

optional index?: number

Authored zero-based index of the activated CTA.


kind: "primary" | "secondary"

Which CTA fired — the primary button or a secondary action.


optional label?: string

Resolved label of the activated CTA.


optional path?: Record<string, unknown>

The activated CTA’s own raw path; legacy placement fields stay intact.


placement: object

The full placement output whose CTA was activated.


optional remindLater?: (seconds?) => void

Report snooze through the mounted controller and close this occurrence.

number

void


optional role?: string

Resolved semantic role, including tenant-defined roles.


optional role_overridden?: boolean

Whether the author overrode the path’s default role.