UNPKG

@bufbuild/cel-spec

Version:

CEL definitions and test data

67 lines (66 loc) 1.99 kB
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import type { Value } from "./value_pb.js"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file cel/expr/explain.proto. */ export declare const file_cel_expr_explain: GenFile; /** * Values of intermediate expressions produced when evaluating expression. * * @generated from message cel.expr.Explain * @deprecated */ export type Explain = Message<"cel.expr.Explain"> & { /** * All of the observed values. * * The field value_index is an index in the values list. * Separating values from steps is needed to remove redundant values. * * @generated from field: repeated cel.expr.Value values = 1; */ values: Value[]; /** * List of steps. * * Repeated evaluations of the same expression generate new ExprStep * instances. The order of such ExprStep instances matches the order of * elements returned by Comprehension.iter_range. * * @generated from field: repeated cel.expr.Explain.ExprStep expr_steps = 2; */ exprSteps: Explain_ExprStep[]; }; /** * Describes the message cel.expr.Explain. * Use `create(ExplainSchema)` to create a new message. * @deprecated */ export declare const ExplainSchema: GenMessage<Explain>; /** * ID and value index of one step. * * @generated from message cel.expr.Explain.ExprStep * @deprecated */ export type Explain_ExprStep = Message<"cel.expr.Explain.ExprStep"> & { /** * ID of corresponding Expr node. * * @generated from field: int64 id = 1; */ id: bigint; /** * Index of the value in the values list. * * @generated from field: int32 value_index = 2; */ valueIndex: number; }; /** * Describes the message cel.expr.Explain.ExprStep. * Use `create(Explain_ExprStepSchema)` to create a new message. * @deprecated */ export declare const Explain_ExprStepSchema: GenMessage<Explain_ExprStep>;