/** * @name schemas/tool-schema * @description Zod schemas for SAP tool schema operations — schema retrieval and publication. * * @flow * 1. Tool-schema MCP tools import these schemas for input validation. * 2. `schemas/index.ts` re-exports them for external consumers. * * @module schemas/tool-schema */ import { z } from 'zod'; /** * @name ToolSchemaSchema * @description Zod schema for describing a tool's input and output JSON schemas. * * @property name — Tool name string. * @property description — Human-readable tool description. * @property inputSchema — JSON Schema for tool input (passthrough, allows arbitrary keys). * @property outputSchema — Optional JSON Schema for tool output (passthrough). * * @usedBy Tool-schema MCP tools in the SAP MCP runtime. */ export declare const ToolSchemaSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodString; inputSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; outputSchema: z.ZodOptional, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { name: string; description: string; inputSchema: {} & { [k: string]: unknown; }; outputSchema?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }, { name: string; description: string; inputSchema: {} & { [k: string]: unknown; }; outputSchema?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined; }>; /** * @name PublishToolSchema * @description Zod schema for publishing a tool schema on-chain with content hashes. * * @property name — Tool name string. * @property protocolHash — Hash of the tool protocol definition. * @property descriptionHash — Hash of the tool description. * @property inputSchemaHash — Hash of the tool input JSON schema. * @property outputSchemaHash — Optional hash of the tool output JSON schema. * @property httpMethod — HTTP method the tool exposes: `GET`, `POST`, `PUT`, or `DELETE`. * @property category — Numeric category code for tool classification. * * @usedBy Tool-schema MCP tools in the SAP MCP runtime. */ export declare const PublishToolSchema: z.ZodObject<{ name: z.ZodString; protocolHash: z.ZodString; descriptionHash: z.ZodString; inputSchemaHash: z.ZodString; outputSchemaHash: z.ZodOptional; httpMethod: z.ZodEnum<["GET", "POST", "PUT", "DELETE"]>; category: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; protocolHash: string; descriptionHash: string; inputSchemaHash: string; httpMethod: "GET" | "POST" | "PUT" | "DELETE"; category: number; outputSchemaHash?: string | undefined; }, { name: string; protocolHash: string; descriptionHash: string; inputSchemaHash: string; httpMethod: "GET" | "POST" | "PUT" | "DELETE"; category: number; outputSchemaHash?: string | undefined; }>; //# sourceMappingURL=tool-schema.schema.d.ts.map