/** * Minimal committed Zod schema for the OpenRPC document shape that Weft emits. * * @module server/openrpc-document-schema */ import { z } from 'zod'; export declare const ContentDescriptorSchema: z.ZodObject<{ name: z.ZodString; schema: z.ZodRecord; required: z.ZodBoolean; }, z.core.$strict>; export declare const OpenRpcMethodSchema: z.ZodObject<{ name: z.ZodString; summary: z.ZodOptional; description: z.ZodOptional; tags: z.ZodOptional>>; paramStructure: z.ZodLiteral<"by-name">; params: z.ZodArray; required: z.ZodBoolean; }, z.core.$strict>>; result: z.ZodObject<{ name: z.ZodString; schema: z.ZodRecord; required: z.ZodBoolean; }, z.core.$strict>; errors: z.ZodOptional>>; 'x-weft-paramsSchema': z.ZodRecord; 'x-weft-access': z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"public">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"authenticated">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"scoped">; scopes: z.ZodObject<{ kind: z.ZodEnum<{ anyOf: "anyOf"; allOf: "allOf"; }>; scopes: z.ZodArray; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"optionalAuth">; authenticatedScopes: z.ZodObject<{ kind: z.ZodEnum<{ anyOf: "anyOf"; allOf: "allOf"; }>; scopes: z.ZodArray; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"scopedAlternatives">; alternatives: z.ZodArray; scopes: z.ZodArray; }, z.core.$strict>>; }, z.core.$strict>], "kind">; 'x-weft-mcp': z.ZodOptional; source: z.ZodLiteral<"live">; }, z.core.$strict>; }, z.core.$strict>>; 'x-weft-parameterizedAccess': z.ZodOptional; variants: z.ZodArray; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"authenticated">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"scoped">; scopes: z.ZodObject<{ kind: z.ZodEnum<{ anyOf: "anyOf"; allOf: "allOf"; }>; scopes: z.ZodArray; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"optionalAuth">; authenticatedScopes: z.ZodObject<{ kind: z.ZodEnum<{ anyOf: "anyOf"; allOf: "allOf"; }>; scopes: z.ZodArray; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"scopedAlternatives">; alternatives: z.ZodArray; scopes: z.ZodArray; }, z.core.$strict>>; }, z.core.$strict>], "kind">; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>; export declare const OpenRpcDocumentSchema: z.ZodObject<{ openrpc: z.ZodLiteral<"1.3.2">; info: z.ZodObject<{ title: z.ZodString; version: z.ZodString; description: z.ZodOptional; contact: z.ZodOptional; url: z.ZodOptional; email: z.ZodOptional; }, z.core.$strict>>; license: z.ZodOptional; }, z.core.$strict>>; externalDocs: z.ZodOptional; url: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>; methods: z.ZodArray; description: z.ZodOptional; tags: z.ZodOptional>>; paramStructure: z.ZodLiteral<"by-name">; params: z.ZodArray; required: z.ZodBoolean; }, z.core.$strict>>; result: z.ZodObject<{ name: z.ZodString; schema: z.ZodRecord; required: z.ZodBoolean; }, z.core.$strict>; errors: z.ZodOptional>>; 'x-weft-paramsSchema': z.ZodRecord; 'x-weft-access': z.ZodDiscriminatedUnion<[z.ZodObject<{ kind: z.ZodLiteral<"public">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"authenticated">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"scoped">; scopes: z.ZodObject<{ kind: z.ZodEnum<{ anyOf: "anyOf"; allOf: "allOf"; }>; scopes: z.ZodArray; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"optionalAuth">; authenticatedScopes: z.ZodObject<{ kind: z.ZodEnum<{ anyOf: "anyOf"; allOf: "allOf"; }>; scopes: z.ZodArray; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"scopedAlternatives">; alternatives: z.ZodArray; scopes: z.ZodArray; }, z.core.$strict>>; }, z.core.$strict>], "kind">; 'x-weft-mcp': z.ZodOptional; source: z.ZodLiteral<"live">; }, z.core.$strict>; }, z.core.$strict>>; 'x-weft-parameterizedAccess': z.ZodOptional; variants: z.ZodArray; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"authenticated">; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"scoped">; scopes: z.ZodObject<{ kind: z.ZodEnum<{ anyOf: "anyOf"; allOf: "allOf"; }>; scopes: z.ZodArray; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"optionalAuth">; authenticatedScopes: z.ZodObject<{ kind: z.ZodEnum<{ anyOf: "anyOf"; allOf: "allOf"; }>; scopes: z.ZodArray; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ kind: z.ZodLiteral<"scopedAlternatives">; alternatives: z.ZodArray; scopes: z.ZodArray; }, z.core.$strict>>; }, z.core.$strict>], "kind">; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>>; components: z.ZodOptional>; 'x-http-status': z.ZodOptional; }, z.core.$strict>>>; schemas: z.ZodOptional>; }, z.core.$strict>>; servers: z.ZodOptional>>; 'x-weft-mcp': z.ZodOptional; toolDiscoveryMethod: z.ZodLiteral<"tools/list">; toolNames: z.ZodArray; }, z.core.$strict>>; }, z.core.$strict>; export type OpenRpcDocument = z.infer;