Skip to content

Type Alias: VocabularyRecordRef

@kortexya/reasoninglayer


@kortexya/reasoninglayer / VocabularyRecordRef

VocabularyRecordRef = { by: "record"; recordId: string; } | { by: "client_ref"; clientRef: string; }

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

A reference to a record: an existing record by id, or a record created in the same request by its client reference.

{ by: "record"; recordId: string; }

by: "record"

Discriminator: an existing record.

recordId: string

The record id (UUID).


{ by: "client_ref"; clientRef: string; }

by: "client_ref"

Discriminator: a record created in the same request.

clientRef: string

The client reference given to that record.

Wire format: internally tagged by by — {"by":"record","record_id":…} or {"by":"client_ref","client_ref":…}.