Skip to content

Interface: UIActionResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / UI / UIActionResponse

Interface: UIActionResponse

Defined in: src/types/ui.ts:210

Response from executing a UI action.

Properties

affectedPreview?

optional affectedPreview: AffectedPreviewDto | null

Defined in: src/types/ui.ts:212

Present on dry-run of a destructive statement: the rows it would hit.


bindings?

optional bindings: unknown[] | null

Defined in: src/types/ui.ts:214

Read-back rows for run_osfql reads (goals, global gets, hierarchy, aggregates).


diagnostics?

optional diagnostics: string[]

Defined in: src/types/ui.ts:215


dryRun?

optional dryRun: boolean

Defined in: src/types/ui.ts:217

Echo: true means this was a dry-run preview and nothing was mutated.


error?

optional error: string | null

Defined in: src/types/ui.ts:218


pendingReviewId?

optional pendingReviewId: string | null

Defined in: src/types/ui.ts:220

Pending review id to surface/approve when UIActionResponse.requiresApproval is true.


producedTermIds?

optional producedTermIds: string[]

Defined in: src/types/ui.ts:221


requiresApproval?

optional requiresApproval: boolean

Defined in: src/types/ui.ts:226

true means the action was enqueued for human approval and nothing was mutated. Pairs with UIActionResponse.pendingReviewId.


requiresConfirmation?

optional requiresConfirmation: boolean

Defined in: src/types/ui.ts:231

true means a destructive tier was refused for lack of confirm: true (no mutation happened) — the caller should surface a confirmation flow.


riskTier?

optional riskTier: RiskTier | null

Defined in: src/types/ui.ts:233

Server-classified risk tier of the final statement.


success

success: boolean

Defined in: src/types/ui.ts:234