@connectrpc/connect-query
Version:
TypeScript-first expansion pack for TanStack Query that gives you Protobuf superpowers.
205 lines • 7.28 kB
TypeScript
import { ConverseRequest, ConverseResponse, CountRequest, CountResponse, IntroduceRequest, IntroduceResponse, ListRequest, ListResponse, Nothing, OperationRequest, OperationResponse, SayRequest, SayResponse } from "./eliza_pb.js";
import { MethodKind } from "@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
*/
export declare const ElizaService: {
readonly typeName: "connectrpc.eliza.v1.ElizaService";
readonly methods: {
/**
* Say is a unary RPC. Eliza responds to the prompt with a single sentence.
*
* @generated from rpc connectrpc.eliza.v1.ElizaService.Say
*/
readonly say: {
readonly name: "Say";
readonly I: typeof SayRequest;
readonly O: typeof SayResponse;
readonly kind: MethodKind.Unary;
};
/**
* SayAgain is a unary RPC. Eliza responds to the prompt with a single sentence.
*
* @generated from rpc connectrpc.eliza.v1.ElizaService.SayAgain
*/
readonly sayAgain: {
readonly name: "SayAgain";
readonly I: typeof SayRequest;
readonly O: typeof SayResponse;
readonly kind: 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
*/
readonly converse: {
readonly name: "Converse";
readonly I: typeof ConverseRequest;
readonly O: typeof ConverseResponse;
readonly kind: 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
*/
readonly introduce: {
readonly name: "Introduce";
readonly I: typeof IntroduceRequest;
readonly O: typeof IntroduceResponse;
readonly kind: MethodKind.ServerStreaming;
};
};
};
/**
* Second Service just to make sure multiple file generation works
*
* @generated from service connectrpc.eliza.v1.SecondService
*/
export declare const SecondService: {
readonly typeName: "connectrpc.eliza.v1.SecondService";
readonly methods: {
/**
* Say is a unary RPC. Eliza responds to the prompt with a single sentence.
*
* @generated from rpc connectrpc.eliza.v1.SecondService.Say
*/
readonly say: {
readonly name: "Say";
readonly I: typeof SayRequest;
readonly O: typeof SayResponse;
readonly kind: 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
*/
readonly converse: {
readonly name: "Converse";
readonly I: typeof ConverseRequest;
readonly O: typeof ConverseResponse;
readonly kind: 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
*/
readonly introduce: {
readonly name: "Introduce";
readonly I: typeof IntroduceRequest;
readonly O: typeof IntroduceResponse;
readonly kind: MethodKind.ServerStreaming;
};
};
};
/**
* @generated from service connectrpc.eliza.v1.Haberdasher
*/
export declare const Haberdasher: {
readonly typeName: "connectrpc.eliza.v1.Haberdasher";
readonly methods: {
/**
* @generated from rpc connectrpc.eliza.v1.Haberdasher.Work
*/
readonly work: {
readonly name: "Work";
readonly I: typeof Nothing;
readonly O: typeof Nothing;
readonly kind: MethodKind.Unary;
};
};
};
/**
* @generated from service connectrpc.eliza.v1.Slouch
*/
export declare const Slouch: {
readonly typeName: "connectrpc.eliza.v1.Slouch";
readonly methods: {
/**
* @generated from rpc connectrpc.eliza.v1.Slouch.Work
*/
readonly work: {
readonly name: "Work";
readonly I: typeof Nothing;
readonly O: typeof Nothing;
readonly kind: MethodKind.Unary;
};
};
};
/**
* @generated from service connectrpc.eliza.v1.BigIntService
*/
export declare const BigIntService: {
readonly typeName: "connectrpc.eliza.v1.BigIntService";
readonly methods: {
/**
* @generated from rpc connectrpc.eliza.v1.BigIntService.Count
*/
readonly count: {
readonly name: "Count";
readonly I: typeof CountRequest;
readonly O: typeof CountResponse;
readonly kind: MethodKind.Unary;
};
/**
* @generated from rpc connectrpc.eliza.v1.BigIntService.GetCount
*/
readonly getCount: {
readonly name: "GetCount";
readonly I: typeof Nothing;
readonly O: typeof CountResponse;
readonly kind: MethodKind.Unary;
};
};
};
/**
* @generated from service connectrpc.eliza.v1.PaginatedService
*/
export declare const PaginatedService: {
readonly typeName: "connectrpc.eliza.v1.PaginatedService";
readonly methods: {
/**
* @generated from rpc connectrpc.eliza.v1.PaginatedService.List
*/
readonly list: {
readonly name: "List";
readonly I: typeof ListRequest;
readonly O: typeof ListResponse;
readonly kind: MethodKind.Unary;
};
};
};
/**
* @generated from service connectrpc.eliza.v1.ServiceWithMessage
*/
export declare const ServiceWithMessage: {
readonly typeName: "connectrpc.eliza.v1.ServiceWithMessage";
readonly methods: {
/**
* @generated from rpc connectrpc.eliza.v1.ServiceWithMessage.Operation
*/
readonly operation: {
readonly name: "Operation";
readonly I: typeof OperationRequest;
readonly O: typeof OperationResponse;
readonly kind: MethodKind.Unary;
};
};
};
//# sourceMappingURL=eliza_connect.d.ts.map