EnvOptions
EnvOptions configures a CEL environment using plain TypeScript values.
Properties
Section titled “Properties”[envInheritance]?
Section titled “[envInheritance]?”
optional[envInheritance]?:EnvInheritanceOptions
envInheritance carries internal state when extending an existing environment.
checker?
Section titled “checker?”
optionalchecker?:CheckerOptions
checker configures type-checking behavior.
configuration?
Section titled “configuration?”
optionalconfiguration?:EnvConfigurationOptions
configuration applies a serializable environment configuration and declarative option maps.
container?
Section titled “container?”
optionalcontainer?:Container
container controls namespace resolution for identifiers and functions.
contextProto?
Section titled “contextProto?”
optionalcontextProto?:DescMessage
contextProto declares every field in a protobuf message as a top-level environment variable.
optionalcost?:CostOptions
cost configures static checker cost estimation.
defaultUTCTimeZone?
Section titled “defaultUTCTimeZone?”
optionaldefaultUTCTimeZone?:boolean
defaultUTCTimeZone controls whether timestamp functions without an explicit timezone use UTC.
When false, timestamp values which retain a native timezone use that location.
errorOnBadPresenceTest?
Section titled “errorOnBadPresenceTest?”
optionalerrorOnBadPresenceTest?:boolean
errorOnBadPresenceTest reports invalid presence traversals instead of treating them as absent.
functions?
Section titled “functions?”
optionalfunctions?:FunctionDecl[]
functions declares custom function signatures and runtime bindings.
jsonFieldNames?
Section titled “jsonFieldNames?”
optionaljsonFieldNames?:boolean
jsonFieldNames enables protobuf JSON field names during checking, planning, and evaluation.
libraries?
Section titled “libraries?”
optionallibraries?:Library[]
libraries applies reusable compile and program configuration bundles.
macros?
Section titled “macros?”
optionalmacros?:MacroOptions
macros configures standard and custom parser macro availability.
maxAstDepth?
Section titled “maxAstDepth?”
optionalmaxAstDepth?:number
maxAstDepth records the maximum nesting depth for externally loaded AST configuration.
nativeTypes?
Section titled “nativeTypes?”
optionalnativeTypes?:NativeObjectDescriptor[]
nativeTypes registers explicit TypeScript object descriptions with the type provider.
A type name already registered with an identical description is left as it is, so a library which declares its own object types may be configured alongside a registry which already describes them.
parser?
Section titled “parser?”
optionalparser?:Partial<ParserOptions>
parser configures syntax features and parser resource limits.
regexProgramSizeLimit?
Section titled “regexProgramSizeLimit?”
optionalregexProgramSizeLimit?:number
regexProgramSizeLimit caps compiled regex instruction counts during validation and evaluation.
registry?
Section titled “registry?”
optionalregistry?:Registry
registry supplies protobuf types and adapts native values into CEL values.
standardLibrary?
Section titled “standardLibrary?”
optionalstandardLibrary?:false|StandardLibraryOptions
standardLibrary customizes the standard declarations, or disables them when false.
types?
Section titled “types?”
optionaltypes?:Type[]
types registers CEL runtime types with both the checker and type provider.
validators?
Section titled “validators?”
optionalvalidators?:ASTValidator[]
validators inspects successfully checked ASTs and reports likely runtime errors.
variables?
Section titled “variables?”
optionalvariables?:VariableDecl[]
variables declares the identifiers available while checking expressions.