UNPKG

@connectrpc/connect-query

Version:

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

238 lines 12 kB
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; /** * SayRequest is a single-sentence request. * * @generated from message connectrpc.eliza.v1.SayRequest */ export declare class SayRequest extends Message<SayRequest> { /** * @generated from field: string sentence = 1; */ sentence: string; constructor(data?: PartialMessage<SayRequest>); static readonly runtime: typeof proto3; static readonly typeName = "connectrpc.eliza.v1.SayRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SayRequest; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SayRequest; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SayRequest; static equals(a: SayRequest | PlainMessage<SayRequest> | undefined, b: SayRequest | PlainMessage<SayRequest> | undefined): boolean; } /** * SayResponse is a single-sentence response. * * @generated from message connectrpc.eliza.v1.SayResponse */ export declare class SayResponse extends Message<SayResponse> { /** * @generated from field: string sentence = 1; */ sentence: string; constructor(data?: PartialMessage<SayResponse>); static readonly runtime: typeof proto3; static readonly typeName = "connectrpc.eliza.v1.SayResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SayResponse; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SayResponse; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SayResponse; static equals(a: SayResponse | PlainMessage<SayResponse> | undefined, b: SayResponse | PlainMessage<SayResponse> | undefined): boolean; } /** * ConverseRequest is a single sentence request sent as part of a * back-and-forth conversation. * * @generated from message connectrpc.eliza.v1.ConverseRequest */ export declare class ConverseRequest extends Message<ConverseRequest> { /** * @generated from field: string sentence = 1; */ sentence: string; constructor(data?: PartialMessage<ConverseRequest>); static readonly runtime: typeof proto3; static readonly typeName = "connectrpc.eliza.v1.ConverseRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConverseRequest; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConverseRequest; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConverseRequest; static equals(a: ConverseRequest | PlainMessage<ConverseRequest> | undefined, b: ConverseRequest | PlainMessage<ConverseRequest> | undefined): boolean; } /** * ConverseResponse is a single sentence response sent in answer to a * ConverseRequest. * * @generated from message connectrpc.eliza.v1.ConverseResponse */ export declare class ConverseResponse extends Message<ConverseResponse> { /** * @generated from field: string sentence = 1; */ sentence: string; constructor(data?: PartialMessage<ConverseResponse>); static readonly runtime: typeof proto3; static readonly typeName = "connectrpc.eliza.v1.ConverseResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConverseResponse; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConverseResponse; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConverseResponse; static equals(a: ConverseResponse | PlainMessage<ConverseResponse> | undefined, b: ConverseResponse | PlainMessage<ConverseResponse> | undefined): boolean; } /** * IntroduceRequest asks Eliza to introduce itself to the named user. * * @generated from message connectrpc.eliza.v1.IntroduceRequest */ export declare class IntroduceRequest extends Message<IntroduceRequest> { /** * @generated from field: string name = 1; */ name: string; constructor(data?: PartialMessage<IntroduceRequest>); static readonly runtime: typeof proto3; static readonly typeName = "connectrpc.eliza.v1.IntroduceRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IntroduceRequest; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IntroduceRequest; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IntroduceRequest; static equals(a: IntroduceRequest | PlainMessage<IntroduceRequest> | undefined, b: IntroduceRequest | PlainMessage<IntroduceRequest> | undefined): boolean; } /** * IntroduceResponse is one sentence of Eliza's introductory monologue. * * @generated from message connectrpc.eliza.v1.IntroduceResponse */ export declare class IntroduceResponse extends Message<IntroduceResponse> { /** * @generated from field: string sentence = 1; */ sentence: string; constructor(data?: PartialMessage<IntroduceResponse>); static readonly runtime: typeof proto3; static readonly typeName = "connectrpc.eliza.v1.IntroduceResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IntroduceResponse; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IntroduceResponse; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IntroduceResponse; static equals(a: IntroduceResponse | PlainMessage<IntroduceResponse> | undefined, b: IntroduceResponse | PlainMessage<IntroduceResponse> | undefined): boolean; } /** * @generated from message connectrpc.eliza.v1.Nothing */ export declare class Nothing extends Message<Nothing> { constructor(data?: PartialMessage<Nothing>); static readonly runtime: typeof proto3; static readonly typeName = "connectrpc.eliza.v1.Nothing"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Nothing; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Nothing; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Nothing; static equals(a: Nothing | PlainMessage<Nothing> | undefined, b: Nothing | PlainMessage<Nothing> | undefined): boolean; } /** * @generated from message connectrpc.eliza.v1.CountRequest */ export declare class CountRequest extends Message<CountRequest> { /** * @generated from field: int64 add = 1; */ add: bigint; constructor(data?: PartialMessage<CountRequest>); static readonly runtime: typeof proto3; static readonly typeName = "connectrpc.eliza.v1.CountRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CountRequest; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CountRequest; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CountRequest; static equals(a: CountRequest | PlainMessage<CountRequest> | undefined, b: CountRequest | PlainMessage<CountRequest> | undefined): boolean; } /** * @generated from message connectrpc.eliza.v1.CountResponse */ export declare class CountResponse extends Message<CountResponse> { /** * @generated from field: int64 count = 1; */ count: bigint; constructor(data?: PartialMessage<CountResponse>); static readonly runtime: typeof proto3; static readonly typeName = "connectrpc.eliza.v1.CountResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CountResponse; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CountResponse; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CountResponse; static equals(a: CountResponse | PlainMessage<CountResponse> | undefined, b: CountResponse | PlainMessage<CountResponse> | undefined): boolean; } /** * @generated from message connectrpc.eliza.v1.ListRequest */ export declare class ListRequest extends Message<ListRequest> { /** * @generated from field: int64 page = 1; */ page: bigint; constructor(data?: PartialMessage<ListRequest>); static readonly runtime: typeof proto3; static readonly typeName = "connectrpc.eliza.v1.ListRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRequest; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRequest; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRequest; static equals(a: ListRequest | PlainMessage<ListRequest> | undefined, b: ListRequest | PlainMessage<ListRequest> | undefined): boolean; } /** * @generated from message connectrpc.eliza.v1.ListResponse */ export declare class ListResponse extends Message<ListResponse> { /** * @generated from field: int64 page = 1; */ page: bigint; /** * @generated from field: repeated string items = 2; */ items: string[]; constructor(data?: PartialMessage<ListResponse>); static readonly runtime: typeof proto3; static readonly typeName = "connectrpc.eliza.v1.ListResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListResponse; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListResponse; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListResponse; static equals(a: ListResponse | PlainMessage<ListResponse> | undefined, b: ListResponse | PlainMessage<ListResponse> | undefined): boolean; } /** * @generated from message connectrpc.eliza.v1.OperationRequest */ export declare class OperationRequest extends Message<OperationRequest> { /** * @generated from field: google.protobuf.Timestamp timestamp = 1; */ timestamp?: Timestamp; constructor(data?: PartialMessage<OperationRequest>); static readonly runtime: typeof proto3; static readonly typeName = "connectrpc.eliza.v1.OperationRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OperationRequest; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OperationRequest; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OperationRequest; static equals(a: OperationRequest | PlainMessage<OperationRequest> | undefined, b: OperationRequest | PlainMessage<OperationRequest> | undefined): boolean; } /** * @generated from message connectrpc.eliza.v1.OperationResponse */ export declare class OperationResponse extends Message<OperationResponse> { /** * @generated from field: google.protobuf.Timestamp timestamp = 1; */ timestamp?: Timestamp; constructor(data?: PartialMessage<OperationResponse>); static readonly runtime: typeof proto3; static readonly typeName = "connectrpc.eliza.v1.OperationResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OperationResponse; static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OperationResponse; static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OperationResponse; static equals(a: OperationResponse | PlainMessage<OperationResponse> | undefined, b: OperationResponse | PlainMessage<OperationResponse> | undefined): boolean; } //# sourceMappingURL=eliza_pb.d.ts.map