UNPKG

@connectrpc/validate

Version:

Flexible, efficient request validation for Connect

53 lines (52 loc) 3.02 kB
"use strict"; // Copyright 2025 The Connect Authors // // 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.TestService = exports.CumSumResponseSchema = exports.CumSumRequestSchema = exports.CreateUserResponseSchema = exports.CreateUserRequestSchema = exports.UserSchema = exports.file_test = void 0; const codegenv2_1 = require("@bufbuild/protobuf/codegenv2"); const validate_pb_js_1 = require("./buf/validate/validate_pb.js"); const wkt_1 = require("@bufbuild/protobuf/wkt"); /** * Describes the file test.proto. */ exports.file_test = (0, codegenv2_1.fileDesc)("Cgp0ZXN0LnByb3RvIukBCgRVc2VyEhYKBWVtYWlsGAEgASgJQge6SARyAmABEi4KCmJpcnRoX2RhdGUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEi8KC3NpZ251cF9kYXRlGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcDpoukhlGmMKEHVzZXIuc2lnbnVwX2RhdGUSKnNpZ251cCBkYXRlIG11c3QgYmUgb24gb3IgYWZ0ZXIgYmlydGggZGF0ZRojdGhpcy5zaWdudXBfZGF0ZSA+PSB0aGlzLmJpcnRoX2RhdGUiKAoRQ3JlYXRlVXNlclJlcXVlc3QSEwoEdXNlchgBIAEoCzIFLlVzZXIiKQoSQ3JlYXRlVXNlclJlc3BvbnNlEhMKBHVzZXIYASABKAsyBS5Vc2VyIigKDUN1bVN1bVJlcXVlc3QSFwoGbnVtYmVyGAEgASgDQge6SAQiAiAAIh0KDkN1bVN1bVJlc3BvbnNlEgsKA3N1bRgBIAEoAzJxCgtUZXN0U2VydmljZRI1CgpDcmVhdGVVc2VyEhIuQ3JlYXRlVXNlclJlcXVlc3QaEy5DcmVhdGVVc2VyUmVzcG9uc2USKwoGQ3VtU3VtEg4uQ3VtU3VtUmVxdWVzdBoPLkN1bVN1bVJlc3BvbnNlKAFiBnByb3RvMw", [validate_pb_js_1.file_buf_validate_validate, wkt_1.file_google_protobuf_timestamp]); /** * Describes the message User. * Use `create(UserSchema)` to create a new message. */ exports.UserSchema = (0, codegenv2_1.messageDesc)(exports.file_test, 0); /** * Describes the message CreateUserRequest. * Use `create(CreateUserRequestSchema)` to create a new message. */ exports.CreateUserRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_test, 1); /** * Describes the message CreateUserResponse. * Use `create(CreateUserResponseSchema)` to create a new message. */ exports.CreateUserResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_test, 2); /** * Describes the message CumSumRequest. * Use `create(CumSumRequestSchema)` to create a new message. */ exports.CumSumRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_test, 3); /** * Describes the message CumSumResponse. * Use `create(CumSumResponseSchema)` to create a new message. */ exports.CumSumResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_test, 4); /** * @generated from service TestService */ exports.TestService = (0, codegenv2_1.serviceDesc)(exports.file_test, 0);