Interface: AcquiredRecordResult
@kortexya/reasoninglayer / AcquiredRecordResult
Interface: AcquiredRecordResult
Section titled “Interface: AcquiredRecordResult”Defined in: src/types/acquisition.ts:191
One delivered record’s result.
Properties
Section titled “Properties”arrival
Section titled “arrival”arrival: {
error:string|null;modelRefusal:AcquiredArrivalModelRefusal|null;proposed:number;suggestedLibrary:string|null;topics:number; } |null
Defined in: src/types/acquisition.ts:203
What its arrival steps did, or null.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ error: string | null; modelRefusal: AcquiredArrivalModelRefusal | null; proposed: number; suggestedLibrary: string | null; topics: number; }
error:
string|null
Why the step did not finish, or null (the record itself is stored).
modelRefusal
Section titled “modelRefusal”modelRefusal:
AcquiredArrivalModelRefusal|null
Why the step’s text model proposed no topics, or null.
proposed
Section titled “proposed”proposed:
number
Model topics newly proposed, waiting for a person (ingestion.acceptDocumentTopic).
suggestedLibrary
Section titled “suggestedLibrary”suggestedLibrary:
string|null
The Library newly suggested on the record (collection app_id), waiting for a person; or null.
topics
Section titled “topics”topics:
number
Label matches written as accepted document_topic terms.
null
eventId
Section titled “eventId”eventId:
string
Defined in: src/types/acquisition.ts:199
The delivered-record event id (<key>@<content_hash>).
gone: {
error:string|null;flagged:number;passes:number;retractionDue:boolean;retractionPending:boolean;since:string; } |null
Defined in: src/types/acquisition.ts:216
What marking it gone did, or null.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ error: string | null; flagged: number; passes: number; retractionDue: boolean; retractionPending: boolean; since: string; }
error:
string|null
Why the step did not finish, or null (the record itself is stored).
flagged
Section titled “flagged”flagged:
number
Its topics flagged source_presence: gone (first pass only).
passes
Section titled “passes”passes:
number
Clean passes (distinct runs) that found it missing since.
retractionDue
Section titled “retractionDue”retractionDue:
boolean
Whether the automatic approval rule (three clean passes over at least 72 hours) is met.
retractionPending
Section titled “retractionPending”retractionPending:
boolean
Whether it is filed in a Library and so waits for a person to retract or keep it.
since:
string
When a clean pass first found it missing (RFC 3339).
null
index:
number
Defined in: src/types/acquisition.ts:193
Its position in the batch.
key:
string
Defined in: src/types/acquisition.ts:195
Its key.
outcome
Section titled “outcome”outcome:
AcquiredRecordOutcome
Defined in: src/types/acquisition.ts:201
How it was written.
termId
Section titled “termId”termId:
string
Defined in: src/types/acquisition.ts:197
The term it is.