Skip to content

Interface: VocabularyImportCommitOptions

@kortexya/reasoninglayer


@kortexya/reasoninglayer / VocabularyImportCommitOptions

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

The per-call options of an import commit.

ifMatch is required when the commit names a candidateId (it writes the next revision of that candidate; absent, the engine refuses 428 if_match_required, and a stale value 412). A commit into a new candidate ignores it.

optional authenticatedUser?: string

Defined in: src/types/common.ts:102

Override the attested user for this request (X-Authenticated-User header), as user:<uuid>. Defaults to ClientConfig.authenticatedUser.

The engine reads this header as the gateway-authenticated principal. An OSFQL AWAIT needs it (reasoninglayer#1256): the demon is registered as this user and fires with that user’s grants; a request without one is refused with refusal.code program_registrant_not_actor. Set it only where the deployment’s gateway does not set it for you, for example a trusted server that acts for several users.

VocabularyMutationOptions.authenticatedUser


optional cacheControl?: "no-cache" | "no-store"

Defined in: src/types/common.ts:84

Forward Cache-Control to ReasoningLayer. Both values bypass conversation answer-cache lookup and population.

VocabularyMutationOptions.cacheControl


optional causal?: AuditCausalHeaders

Defined in: src/types/common.ts:116

Causal assertions for the audit ledger, sent as the x-reasoninglayer-* request headers. See AuditCausalHeaders.

VocabularyMutationOptions.causal


idempotencyKey: string

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

The Idempotency-Key header.

VocabularyMutationOptions.idempotencyKey


optional ifMatch?: string

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

The If-Match header: the candidate’s head revision id or its ETag.


optional namespaceId?: string

Defined in: src/types/common.ts:86

Override the namespace for this request (X-Namespace-Id header).

VocabularyMutationOptions.namespaceId


optional retries?: number

Defined in: src/types/common.ts:111

Number of retry attempts for this request. Set to 0 to disable retries.

VocabularyMutationOptions.retries


optional signal?: AbortSignal

Defined in: src/types/common.ts:104

AbortSignal for request cancellation.

VocabularyMutationOptions.signal


optional timeoutMs?: number

Defined in: src/types/common.ts:109

Per-call timeout in milliseconds. Overrides the client-level timeoutMs default. 0 disables the client deadline for this call; a negative or non-finite value is refused.

VocabularyMutationOptions.timeoutMs


optional userId?: string

Defined in: src/types/common.ts:88

Override the user ID for this request (X-User-Id header). Used for admin impersonation.

VocabularyMutationOptions.userId