jsonv-ts
Version:
JSON Schema builder and validator for TypeScript with static type inference, Hono middleware for OpenAPI generation and validation, and MCP server/client implementation. Lightweight, dependency-free, and built on Web Standards.
30 lines (29 loc) • 1.06 kB
TypeScript
import * as s from "jsonv-ts";
import { RpcMessage, type TRpcRequest } from "../rpc";
export declare class CompletionMessage extends RpcMessage {
method: string;
params: s.ObjectSchema<{
readonly argument: s.ObjectSchema<{
readonly name: s.StringSchema<s.IStringOptions> & s.IStringOptions;
readonly value: s.StringSchema<s.IStringOptions> & s.IStringOptions;
}, s.Merge<s.IObjectOptions & {
additionalProperties: false;
}>>;
readonly ref: s.Schema<s.IUnionOptions, {
type: "ref/resource";
uri: string;
} | {
type: "ref/tool";
name: string;
}, {
type: "ref/tool";
name: string;
} | {
type: "ref/resource";
uri: string;
}> & s.IUnionOptions;
}, s.IObjectOptions> & s.IObjectOptions;
respond(message: TRpcRequest<typeof this.params>): Promise<import("..").TRpcResponse<{
completion: import("../utils").ResourceCompletionResult;
}>>;
}