Skip to content

Interface: Setting

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Setting

Defined in: src/types/settings.ts:10

A setting as it applies at a scope.

allowed: string[]

Defined in: src/types/settings.ts:29

The values the key admits; for a narrowing key, strictest first.


appliesAbove: string | null

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

At a project: the value that applies above it (the Space’s, or the default), which a narrowing key’s project value may not loosen; null at the Space.


cascade: string

Defined in: src/types/settings.ts:25

narrow (the strictest level applies; a project only narrows) or override (the nearest level applies).


default: string

Defined in: src/types/settings.ts:27

The value when no level states one.


inherited: boolean

Defined in: src/types/settings.ts:23

Whether it came from above the scope asked.


key: string

Defined in: src/types/settings.ts:15

The key: web_search, approval_mode, ai_disclosure, answer_model or query_model (the Space’s models a conversation turn uses).


notWritableReason: string | null

Defined in: src/types/settings.ts:50

Why it does not there (space_only: a key only the Space states, read at a project), or null.


projectValue: string | null

Defined in: src/types/settings.ts:33

What the project asked states, or null.


scope: string

Defined in: src/types/settings.ts:17

The scope asked: space or project:<id>.


setAt: string | null

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

When (RFC 3339), or null.


setBy: string | null

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

Who set the value stated at the scope asked, or null.


source: string

Defined in: src/types/settings.ts:21

Where it came from: default, space or project.


spaceValue: string | null

Defined in: src/types/settings.ts:31

What the Space states, or null when it states nothing.


value: string

Defined in: src/types/settings.ts:19

The value that applies there.


writable: boolean

Defined in: src/types/settings.ts:48

Whether settings.put writes this key at the scope asked. Whether the caller may is the gateway’s check of the key’s write permission.


writableValues: string[]

Defined in: src/types/settings.ts:56

The values a settings.put at the scope asked accepts now, strictest first: for a narrowing key at a project, only those at least as strict as appliesAbove. Empty when the route does not write the key there.