UNPKG

@connectrpc/connect-query

Version:

TypeScript-first expansion pack for TanStack Query that gives you Protobuf superpowers.

225 lines 7.66 kB
"use strict"; // Copyright 2021-2023 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.ServiceWithMessage = exports.PaginatedService = exports.BigIntService = exports.Slouch = exports.Haberdasher = exports.SecondService = exports.ElizaService = void 0; // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts" // @generated from file eliza.proto (package connectrpc.eliza.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck const eliza_pb_js_1 = require("./eliza_pb.js"); const protobuf_1 = require("@bufbuild/protobuf"); /** * ElizaService provides a way to talk to Eliza, a port of the DOCTOR script * for Joseph Weizenbaum's original ELIZA program. Created in the mid-1960s at * the MIT Artificial Intelligence Laboratory, ELIZA demonstrates the * superficiality of human-computer communication. DOCTOR simulates a * psychotherapist, and is commonly found as an Easter egg in emacs * distributions. * * @generated from service connectrpc.eliza.v1.ElizaService */ exports.ElizaService = { typeName: "connectrpc.eliza.v1.ElizaService", methods: { /** * Say is a unary RPC. Eliza responds to the prompt with a single sentence. * * @generated from rpc connectrpc.eliza.v1.ElizaService.Say */ say: { name: "Say", I: eliza_pb_js_1.SayRequest, O: eliza_pb_js_1.SayResponse, kind: protobuf_1.MethodKind.Unary, }, /** * SayAgain is a unary RPC. Eliza responds to the prompt with a single sentence. * * @generated from rpc connectrpc.eliza.v1.ElizaService.SayAgain */ sayAgain: { name: "SayAgain", I: eliza_pb_js_1.SayRequest, O: eliza_pb_js_1.SayResponse, kind: protobuf_1.MethodKind.Unary, }, /** * Converse is a bidirectional RPC. The caller may exchange multiple * back-and-forth messages with Eliza over a long-lived connection. Eliza * responds to each ConverseRequest with a ConverseResponse. * * @generated from rpc connectrpc.eliza.v1.ElizaService.Converse */ converse: { name: "Converse", I: eliza_pb_js_1.ConverseRequest, O: eliza_pb_js_1.ConverseResponse, kind: protobuf_1.MethodKind.BiDiStreaming, }, /** * Introduce is a server streaming RPC. Given the caller's name, Eliza * returns a stream of sentences to introduce itself. * * @generated from rpc connectrpc.eliza.v1.ElizaService.Introduce */ introduce: { name: "Introduce", I: eliza_pb_js_1.IntroduceRequest, O: eliza_pb_js_1.IntroduceResponse, kind: protobuf_1.MethodKind.ServerStreaming, }, } }; /** * Second Service just to make sure multiple file generation works * * @generated from service connectrpc.eliza.v1.SecondService */ exports.SecondService = { typeName: "connectrpc.eliza.v1.SecondService", methods: { /** * Say is a unary RPC. Eliza responds to the prompt with a single sentence. * * @generated from rpc connectrpc.eliza.v1.SecondService.Say */ say: { name: "Say", I: eliza_pb_js_1.SayRequest, O: eliza_pb_js_1.SayResponse, kind: protobuf_1.MethodKind.Unary, }, /** * Converse is a bidirectional RPC. The caller may exchange multiple * back-and-forth messages with Eliza over a long-lived connection. Eliza * responds to each ConverseRequest with a ConverseResponse. * * @generated from rpc connectrpc.eliza.v1.SecondService.Converse */ converse: { name: "Converse", I: eliza_pb_js_1.ConverseRequest, O: eliza_pb_js_1.ConverseResponse, kind: protobuf_1.MethodKind.BiDiStreaming, }, /** * Introduce is a server streaming RPC. Given the caller's name, Eliza * returns a stream of sentences to introduce itself. * * @generated from rpc connectrpc.eliza.v1.SecondService.Introduce */ introduce: { name: "Introduce", I: eliza_pb_js_1.IntroduceRequest, O: eliza_pb_js_1.IntroduceResponse, kind: protobuf_1.MethodKind.ServerStreaming, }, } }; /** * @generated from service connectrpc.eliza.v1.Haberdasher */ exports.Haberdasher = { typeName: "connectrpc.eliza.v1.Haberdasher", methods: { /** * @generated from rpc connectrpc.eliza.v1.Haberdasher.Work */ work: { name: "Work", I: eliza_pb_js_1.Nothing, O: eliza_pb_js_1.Nothing, kind: protobuf_1.MethodKind.Unary, }, } }; /** * @generated from service connectrpc.eliza.v1.Slouch */ exports.Slouch = { typeName: "connectrpc.eliza.v1.Slouch", methods: { /** * @generated from rpc connectrpc.eliza.v1.Slouch.Work */ work: { name: "Work", I: eliza_pb_js_1.Nothing, O: eliza_pb_js_1.Nothing, kind: protobuf_1.MethodKind.Unary, }, } }; /** * @generated from service connectrpc.eliza.v1.BigIntService */ exports.BigIntService = { typeName: "connectrpc.eliza.v1.BigIntService", methods: { /** * @generated from rpc connectrpc.eliza.v1.BigIntService.Count */ count: { name: "Count", I: eliza_pb_js_1.CountRequest, O: eliza_pb_js_1.CountResponse, kind: protobuf_1.MethodKind.Unary, }, /** * @generated from rpc connectrpc.eliza.v1.BigIntService.GetCount */ getCount: { name: "GetCount", I: eliza_pb_js_1.Nothing, O: eliza_pb_js_1.CountResponse, kind: protobuf_1.MethodKind.Unary, }, } }; /** * @generated from service connectrpc.eliza.v1.PaginatedService */ exports.PaginatedService = { typeName: "connectrpc.eliza.v1.PaginatedService", methods: { /** * @generated from rpc connectrpc.eliza.v1.PaginatedService.List */ list: { name: "List", I: eliza_pb_js_1.ListRequest, O: eliza_pb_js_1.ListResponse, kind: protobuf_1.MethodKind.Unary, }, } }; /** * @generated from service connectrpc.eliza.v1.ServiceWithMessage */ exports.ServiceWithMessage = { typeName: "connectrpc.eliza.v1.ServiceWithMessage", methods: { /** * @generated from rpc connectrpc.eliza.v1.ServiceWithMessage.Operation */ operation: { name: "Operation", I: eliza_pb_js_1.OperationRequest, O: eliza_pb_js_1.OperationResponse, kind: protobuf_1.MethodKind.Unary, }, } }; //# sourceMappingURL=eliza_connect.js.map