Skip to content

Interface: ConfigFieldDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ConfigFieldDto

Defined in: src/types/sources.ts:453

One field of a source type’s connection-config form.

The minimal, drift-prone facts a wizard needs. Display labels, help text and defaults stay client-side presentation: the engine publishes only what would otherwise drift from what registration actually requires.

name: string

Defined in: src/types/sources.ts:459

The wire key. Pass it VERBATIM inside the config object of RegisterSourceRequest — the registration factory reads it by exactly this name, so it is never camelCased.


required: boolean

Defined in: src/types/sources.ts:471

Whether registration rejects the field’s absence.


type: string

Defined in: src/types/sources.ts:469

The input type, drawn from a closed set: 'text', 'number', 'password' or 'toggle'.

Typed as an open string so an input kind added later reaches the caller instead of being refused. 'password' is what tells a form to mask the input.