Skip to content

Type Alias: VocabularyRecordOperation

@kortexya/reasoninglayer


@kortexya/reasoninglayer / VocabularyRecordOperation

VocabularyRecordOperation = { op: "upsert"; record: VocabularyRecordInput; } | { op: "remove"; recordId: string; }

Defined in: src/types/vocabulary.ts:581

One operation of a change set, applied in order: insert or replace a record, or remove one.

{ op: "upsert"; record: VocabularyRecordInput; }

op: "upsert"

Discriminator: insert or replace.

record: VocabularyRecordInput

The record.


{ op: "remove"; recordId: string; }

op: "remove"

Discriminator: remove.

recordId: string

The record to remove (UUID).

Wire format: internally tagged by op.