Skip to content

Interface: DeleteSortResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / DeleteSortResponse

Defined in: src/types/sorts.ts:1440

What a sort deletion removed.

optional rulesOrphaned?: SortReferencingRuleDto[]

Defined in: src/types/sorts.ts:1474

Rules left naming a sort that no longer exists, under rules: 'orphan'.

Read back after the cascade, so every rule named here still exists. They are not withdrawn — they simply stop firing. Withdraw them yourself with InferenceClient.deleteRule, which applies its own refusals.


sortId: string

Defined in: src/types/sorts.ts:1442

The sort that was deleted (UUID).


sortsDeleted: string[]

Defined in: src/types/sorts.ts:1449

Every sort removed (UUIDs), leaves first, the requested sort last.

One entry, unless descendants: 'delete' removed a subtree.


termsDeleted: number

Defined in: src/types/sorts.ts:1457

How many DATA terms were deleted with it.

Rule scaffolding is not counted: the terms of a rule’s conclusion and antecedent patterns stay with the rule.


termsFailed: number

Defined in: src/types/sorts.ts:1465

How many could NOT be deleted, and are therefore orphaned now.

Zero on every ordinary cascade. Reported rather than raised: the request did most of what it was asked, and a bare 500 would say nothing about how much.