@bufbuild/cel-spec
Version:
CEL definitions and test data
113 lines (112 loc) • 7.55 kB
JavaScript
"use strict";
// 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.
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConformanceService = exports.IssueDetails_SeveritySchema = exports.IssueDetails_Severity = exports.IssueDetailsSchema = exports.SourcePositionSchema = exports.EvalResponseSchema = exports.EvalRequestSchema = exports.CheckResponseSchema = exports.CheckRequestSchema = exports.ParseResponseSchema = exports.ParseRequestSchema = exports.file_cel_expr_conformance_conformance_service = void 0;
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
const checked_pb_js_1 = require("../checked_pb.js");
const eval_pb_js_1 = require("../eval_pb.js");
const syntax_pb_js_1 = require("../syntax_pb.js");
const status_pb_js_1 = require("../../../google/rpc/status_pb.js");
/**
* Describes the file cel/expr/conformance/conformance_service.proto.
*/
exports.file_cel_expr_conformance_conformance_service = (0, codegenv2_1.fileDesc)("Ci5jZWwvZXhwci9jb25mb3JtYW5jZS9jb25mb3JtYW5jZV9zZXJ2aWNlLnByb3RvEhRjZWwuZXhwci5jb25mb3JtYW5jZSJrCgxQYXJzZVJlcXVlc3QSEgoKY2VsX3NvdXJjZRgBIAEoCRIWCg5zeW50YXhfdmVyc2lvbhgCIAEoCRIXCg9zb3VyY2VfbG9jYXRpb24YAyABKAkSFgoOZGlzYWJsZV9tYWNyb3MYBCABKAgiXgoNUGFyc2VSZXNwb25zZRIpCgtwYXJzZWRfZXhwchgBIAEoCzIULmNlbC5leHByLlBhcnNlZEV4cHISIgoGaXNzdWVzGAIgAygLMhIuZ29vZ2xlLnJw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2VQb3NpdGlvbhIKCgJpZBgDIAEoAyJNCghTZXZlcml0eRIYChRTRVZFUklUWV9VTlNQRUNJRklFRBAAEg8KC0RFUFJFQ0FUSU9OEAESCwoHV0FSTklORxACEgkKBUVSUk9SEAMyjQIKEkNvbmZvcm1hbmNlU2VydmljZRJSCgVQYXJzZRIiLmNlbC5leHByLmNvbmZvcm1hbmNlLlBhcnNlUmVxdWVzdBojLmNlbC5leHByLmNvbmZvcm1hbmNlLlBhcnNlUmVzcG9uc2UiABJSCgVDaGVjaxIiLmNlbC5leHByLmNvbmZvcm1hbmNlLkNoZWNrUmVxdWVzdBojLmNlbC5leHByLmNvbmZvcm1hbmNlLkNoZWNrUmVzcG9uc2UiABJPCgRFdmFsEiEuY2VsLmV4cHIuY29uZm9ybWFuY2UuRXZhbFJlcXVlc3QaIi5jZWwuZXhwci5jb25mb3JtYW5jZS5FdmFsUmVzcG9uc2UiAEJSChhkZXYuY2VsLmV4cHIuY29uZm9ybWFuY2VCF0NvbmZvcm1hbmNlU2VydmljZVByb3RvUAFaGGNlbC5kZXYvZXhwci9jb25mb3JtYW5jZfgBAWIGcHJvdG8z", [checked_pb_js_1.file_cel_expr_checked, eval_pb_js_1.file_cel_expr_eval, syntax_pb_js_1.file_cel_expr_syntax, status_pb_js_1.file_google_rpc_status]);
/**
* Describes the message cel.expr.conformance.ParseRequest.
* Use `create(ParseRequestSchema)` to create a new message.
*/
exports.ParseRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_cel_expr_conformance_conformance_service, 0);
/**
* Describes the message cel.expr.conformance.ParseResponse.
* Use `create(ParseResponseSchema)` to create a new message.
*/
exports.ParseResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_cel_expr_conformance_conformance_service, 1);
/**
* Describes the message cel.expr.conformance.CheckRequest.
* Use `create(CheckRequestSchema)` to create a new message.
*/
exports.CheckRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_cel_expr_conformance_conformance_service, 2);
/**
* Describes the message cel.expr.conformance.CheckResponse.
* Use `create(CheckResponseSchema)` to create a new message.
*/
exports.CheckResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_cel_expr_conformance_conformance_service, 3);
/**
* Describes the message cel.expr.conformance.EvalRequest.
* Use `create(EvalRequestSchema)` to create a new message.
*/
exports.EvalRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_cel_expr_conformance_conformance_service, 4);
/**
* Describes the message cel.expr.conformance.EvalResponse.
* Use `create(EvalResponseSchema)` to create a new message.
*/
exports.EvalResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_cel_expr_conformance_conformance_service, 5);
/**
* Describes the message cel.expr.conformance.SourcePosition.
* Use `create(SourcePositionSchema)` to create a new message.
*/
exports.SourcePositionSchema = (0, codegenv2_1.messageDesc)(exports.file_cel_expr_conformance_conformance_service, 6);
/**
* Describes the message cel.expr.conformance.IssueDetails.
* Use `create(IssueDetailsSchema)` to create a new message.
*/
exports.IssueDetailsSchema = (0, codegenv2_1.messageDesc)(exports.file_cel_expr_conformance_conformance_service, 7);
/**
* Severities of issues.
*
* @generated from enum cel.expr.conformance.IssueDetails.Severity
*/
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 || (exports.IssueDetails_Severity = IssueDetails_Severity = {}));
/**
* Describes the enum cel.expr.conformance.IssueDetails.Severity.
*/
exports.IssueDetails_SeveritySchema = (0, codegenv2_1.enumDesc)(exports.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
*/
exports.ConformanceService = (0, codegenv2_1.serviceDesc)(exports.file_cel_expr_conformance_conformance_service, 0);