CtaResolverContext
Context handed to a CtaResolver when a placement CTA is activated.
Properties
Section titled “Properties”index?
Section titled “index?”
optionalindex?:number
Authored zero-based index of the activated CTA.
kind:
"primary"|"secondary"
Which CTA fired — the primary button or a secondary action.
label?
Section titled “label?”
optionallabel?:string
Resolved label of the activated CTA.
optionalpath?:Record<string,unknown>
The activated CTA’s own raw path; legacy placement fields stay intact.
placement
Section titled “placement”placement:
object
The full placement output whose CTA was activated.
remindLater?
Section titled “remindLater?”
optionalremindLater?: (seconds?) =>void
Report snooze through the mounted controller and close this occurrence.
Parameters
Section titled “Parameters”seconds?
Section titled “seconds?”number
Returns
Section titled “Returns”void
optionalrole?:string
Resolved semantic role, including tenant-defined roles.
role_overridden?
Section titled “role_overridden?”
optionalrole_overridden?:boolean
Whether the author overrode the path’s default role.