Skip to content

parseUiPath

parseUiPath(raw): PlacementUiPath

Parse a cta_path (or legacy ui_path) record from a placement output into a typed PlacementUiPath.

Built-in fields (url, plan_handle, …) are lifted onto typed properties. The type is preserved verbatim for any non-empty string — including tenant-defined custom action names — so a registered CtaResolver can key on it; only an absent or non-string type defaults to 'dismiss'. Every remaining key is collected into params for custom resolvers to read.

Record<string, unknown>

PlacementUiPath