Skip to content

Interface: FactoryResetResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / FactoryResetResponse

Defined in: src/types/admin.ts:35

Response for the factory-reset operation.

Reports exactly what was wiped across all storage backends so operators can verify the operation succeeded.

optional artifactFilesDeleted?: number

Defined in: src/types/admin.ts:78

Number of retained RDF artifacts erased through the configured bucket provider. Absent when the engine did not report it.


optional bindingsDeleted?: number

Defined in: src/types/admin.ts:62

Number of SQL ontology bindings dropped across all tenants.


cacheCleared: boolean

Defined in: src/types/admin.ts:46

Whether the cache (Valkey / in-memory) was flushed.


dmPairingStateDeleted: number

Defined in: src/types/admin.ts:97

Number of DM pairing records erased across all tenants: channel policies, allowlisted senders and pairing requests, summed.

Counted through the pairing store before the table truncate, as FactoryResetResponse.inboxItemsDeleted is.


inboxItemsDeleted: number

Defined in: src/types/admin.ts:87

Number of unified-inbox items erased across all tenants.

Counted through the inbox store before the table truncate, so the count is real for a durable and for an in-memory engine.


message: string

Defined in: src/types/admin.ts:37

Human-readable summary message.


optional postgresTables?: string[]

Defined in: src/types/admin.ts:59

The tables that were truncated.

Discovered from the live schema rather than hard-coded, so this is the only way for a caller to tell a complete reset from one whose discovery came back short.


postgresTablesCleared: number

Defined in: src/types/admin.ts:40

Number of PostgreSQL tables that were truncated.


qdrantCollectionsDeleted: number

Defined in: src/types/admin.ts:43

Number of Qdrant vector collections deleted.


sourceFilesDeleted: number

Defined in: src/types/admin.ts:72

Number of uploaded source files erased across all tenants.

The upload store holds files, not rows, so no table truncate reaches it. A store that cannot be erased fails the reset with 500 instead of reporting a clean one.


tenantStatesCleared: boolean

Defined in: src/types/admin.ts:49

Whether the in-memory tenant inference states were cleared.