UNPKG

@bufbuild/cel-spec

Version:

CEL definitions and test data

110 lines (109 loc) 6.99 kB
// Copyright 2024-2025 Buf Technologies, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; import { file_cel_expr_checked } from "../checked_pb.js"; import { file_cel_expr_eval } from "../eval_pb.js"; import { file_cel_expr_syntax } from "../syntax_pb.js"; import { file_google_rpc_status } from "../../../google/rpc/status_pb.js"; /** * Describes the file cel/expr/conformance/conformance_service.proto. */ export const file_cel_expr_conformance_conformance_service = /*@__PURE__*/ fileDesc("Ci5jZWwvZXhwci9jb25mb3JtYW5jZS9jb25mb3JtYW5jZV9zZXJ2aWNlLnByb3RvEhRjZWwuZXhwci5jb25mb3JtYW5jZSJrCgxQYXJzZVJlcXVlc3QSEgoKY2VsX3NvdXJjZRgBIAEoCRIWCg5zeW50YXhfdmVyc2lvbhgCIAEoCRIXCg9zb3VyY2VfbG9jYXRpb24YAyABKAkSFgoOZGlzYWJsZV9tYWNyb3MYBCABKAgiXgoNUGFyc2VSZXNwb25zZRIpCgtwYXJzZWRfZXhwchgBIAEoCzIULmNlbC5leHByLlBhcnNlZEV4cHISIgoGaXNzdWVzGAIgAygLMhIuZ29vZ2xlLnJwYy5TdGF0dXMiggEKDENoZWNrUmVxdWVzdBIpCgtwYXJzZWRfZXhwchgBIAEoCzIULmNlbC5leHByLlBhcnNlZEV4cHISIAoIdHlwZV9lbnYYAiADKAsyDi5jZWwuZXhwci5EZWNsEhEKCWNvbnRhaW5lchgDIAEoCRISCgpub19zdGRfZW52GAQgASgIImAKDUNoZWNrUmVzcG9uc2USKwoM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cnNlUmVxdWVzdBojLmNlbC5leHByLmNvbmZvcm1hbmNlLlBhcnNlUmVzcG9uc2UiABJSCgVDaGVjaxIiLmNlbC5leHByLmNvbmZvcm1hbmNlLkNoZWNrUmVxdWVzdBojLmNlbC5leHByLmNvbmZvcm1hbmNlLkNoZWNrUmVzcG9uc2UiABJPCgRFdmFsEiEuY2VsLmV4cHIuY29uZm9ybWFuY2UuRXZhbFJlcXVlc3QaIi5jZWwuZXhwci5jb25mb3JtYW5jZS5FdmFsUmVzcG9uc2UiAEJSChhkZXYuY2VsLmV4cHIuY29uZm9ybWFuY2VCF0NvbmZvcm1hbmNlU2VydmljZVByb3RvUAFaGGNlbC5kZXYvZXhwci9jb25mb3JtYW5jZfgBAWIGcHJvdG8z", [file_cel_expr_checked, file_cel_expr_eval, file_cel_expr_syntax, file_google_rpc_status]); /** * Describes the message cel.expr.conformance.ParseRequest. * Use `create(ParseRequestSchema)` to create a new message. */ export const ParseRequestSchema = /*@__PURE__*/ messageDesc(file_cel_expr_conformance_conformance_service, 0); /** * Describes the message cel.expr.conformance.ParseResponse. * Use `create(ParseResponseSchema)` to create a new message. */ export const ParseResponseSchema = /*@__PURE__*/ messageDesc(file_cel_expr_conformance_conformance_service, 1); /** * Describes the message cel.expr.conformance.CheckRequest. * Use `create(CheckRequestSchema)` to create a new message. */ export const CheckRequestSchema = /*@__PURE__*/ messageDesc(file_cel_expr_conformance_conformance_service, 2); /** * Describes the message cel.expr.conformance.CheckResponse. * Use `create(CheckResponseSchema)` to create a new message. */ export const CheckResponseSchema = /*@__PURE__*/ messageDesc(file_cel_expr_conformance_conformance_service, 3); /** * Describes the message cel.expr.conformance.EvalRequest. * Use `create(EvalRequestSchema)` to create a new message. */ export const EvalRequestSchema = /*@__PURE__*/ messageDesc(file_cel_expr_conformance_conformance_service, 4); /** * Describes the message cel.expr.conformance.EvalResponse. * Use `create(EvalResponseSchema)` to create a new message. */ export const EvalResponseSchema = /*@__PURE__*/ messageDesc(file_cel_expr_conformance_conformance_service, 5); /** * Describes the message cel.expr.conformance.SourcePosition. * Use `create(SourcePositionSchema)` to create a new message. */ export const SourcePositionSchema = /*@__PURE__*/ messageDesc(file_cel_expr_conformance_conformance_service, 6); /** * Describes the message cel.expr.conformance.IssueDetails. * Use `create(IssueDetailsSchema)` to create a new message. */ export const IssueDetailsSchema = /*@__PURE__*/ messageDesc(file_cel_expr_conformance_conformance_service, 7); /** * Severities of issues. * * @generated from enum cel.expr.conformance.IssueDetails.Severity */ export var IssueDetails_Severity; (function (IssueDetails_Severity) { /** * An unspecified severity. * * @generated from enum value: SEVERITY_UNSPECIFIED = 0; */ IssueDetails_Severity[IssueDetails_Severity["SEVERITY_UNSPECIFIED"] = 0] = "SEVERITY_UNSPECIFIED"; /** * Deprecation issue for statements and method that may no longer be * supported or maintained. * * @generated from enum value: DEPRECATION = 1; */ IssueDetails_Severity[IssueDetails_Severity["DEPRECATION"] = 1] = "DEPRECATION"; /** * Warnings such as: unused variables. * * @generated from enum value: WARNING = 2; */ IssueDetails_Severity[IssueDetails_Severity["WARNING"] = 2] = "WARNING"; /** * Errors such as: unmatched curly braces or variable redefinition. * * @generated from enum value: ERROR = 3; */ IssueDetails_Severity[IssueDetails_Severity["ERROR"] = 3] = "ERROR"; })(IssueDetails_Severity || (IssueDetails_Severity = {})); /** * Describes the enum cel.expr.conformance.IssueDetails.Severity. */ export const IssueDetails_SeveritySchema = /*@__PURE__*/ enumDesc(file_cel_expr_conformance_conformance_service, 7, 0); /** * Access a CEL implementation from another process or machine. * A CEL implementation is decomposed as a parser, a static checker, * and an evaluator. Every CEL implementation is expected to provide * a server for this API. The API will be used for conformance testing * and other utilities. * * @generated from service cel.expr.conformance.ConformanceService */ export const ConformanceService = /*@__PURE__*/ serviceDesc(file_cel_expr_conformance_conformance_service, 0);