Skip to content

CelqlTranslator

Translates checked CEL expressions through one profile major version.

A translator resolves selected libraries at construction time. It is safe to reuse for independent operations because each profile call receives a complete per-call context.

Desc extends DescMessage = DescMessage

Translation = unknown

new CelqlTranslator<Desc, Translation>(profile, options?): CelqlTranslator<Desc, Translation>

Binds a profile and an optional, fixed set of translation libraries.

The constructor rejects invalid profile metadata, incompatible libraries, duplicate overload owners, and unsatisfied library dependencies.

Profile<Desc, Translation>

CreateTranslatorOptions<Translation> = {}

CelqlTranslator<Desc, Translation>

capability(): DialectCapabilityProfile

Returns a copy of the effective capability for the bound profile and libraries.

Changes to the returned message do not change this translator.

DialectCapabilityProfile


translate(request): TranslationOutcome<MessageShape<Desc>>

Translates one checked CEL Boolean expression to the bound profile output.

Boolean literals return matchAll or matchNone; record-dependent input returns one complete predicate. Throws CelqlError on specified rejection.

TranslationRequest

TranslationOutcome<MessageShape<Desc>>


validate(request): void

Validates one checked expression without producing a predicate.

Throws CelqlError when the expression, limits, configuration, or selected profile fragment is invalid.

TranslationRequest

void