UNPKG

@yogeliu/mcp-server-yapi

Version:

Enhanced YAPI MCP server with multi-project support and enterprise features

172 lines 4.91 kB
import { z } from "zod"; /** * 项目名参数Schema */ export declare const ProjectNameSchema: z.ZodObject<{ project_name: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { project_name?: string | undefined; }, { project_name?: string | undefined; }>; /** * Complete field Schema for interface operations * Contains all possible interface fields and query parameters, each tool picks as needed */ export declare const InterfaceSchema: z.ZodObject<{ id: z.ZodNumber; title: z.ZodString; path: z.ZodString; method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "PATCH"]>; project_id: z.ZodNumber; catid: z.ZodNumber; status: z.ZodDefault<z.ZodEnum<["undone", "done"]>>; desc: z.ZodString; req_headers: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; example: z.ZodString; desc: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; desc: string; name: string; example: string; }, { value: string; desc: string; name: string; example: string; }>, "many">>; req_params: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; example: z.ZodString; desc: z.ZodString; }, "strip", z.ZodTypeAny, { desc: string; name: string; example: string; }, { desc: string; name: string; example: string; }>, "many">>; req_query: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; required: z.ZodEnum<["0", "1"]>; example: z.ZodString; desc: z.ZodString; }, "strip", z.ZodTypeAny, { desc: string; name: string; example: string; required: "0" | "1"; }, { desc: string; name: string; example: string; required: "0" | "1"; }>, "many">>; req_body_type: z.ZodEnum<["raw", "form", "json"]>; req_body_is_json_schema: z.ZodBoolean; req_body_other: z.ZodString; res_body_type: z.ZodDefault<z.ZodEnum<["json", "raw"]>>; res_body: z.ZodString; res_body_is_json_schema: z.ZodBoolean; api_opened: z.ZodBoolean; switch_notice: z.ZodBoolean; page: z.ZodOptional<z.ZodNumber>; limit: z.ZodOptional<z.ZodNumber>; tag: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; name: z.ZodString; type: z.ZodEnum<["swagger"]>; merge: z.ZodEnum<["normal", "good", "merge"]>; json: z.ZodOptional<z.ZodString>; url: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { path: string; type: "swagger"; status: "undone" | "done"; id: number; title: string; method: "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "OPTIONS" | "PATCH"; project_id: number; catid: number; desc: string; name: string; req_body_type: "raw" | "form" | "json"; req_body_is_json_schema: boolean; req_body_other: string; res_body_type: "raw" | "json"; res_body: string; res_body_is_json_schema: boolean; api_opened: boolean; switch_notice: boolean; merge: "normal" | "good" | "merge"; req_headers?: { value: string; desc: string; name: string; example: string; }[] | undefined; req_params?: { desc: string; name: string; example: string; }[] | undefined; req_query?: { desc: string; name: string; example: string; required: "0" | "1"; }[] | undefined; json?: string | undefined; page?: number | undefined; limit?: number | undefined; tag?: string[] | undefined; url?: string | undefined; }, { path: string; type: "swagger"; id: number; title: string; method: "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "OPTIONS" | "PATCH"; project_id: number; catid: number; desc: string; name: string; req_body_type: "raw" | "form" | "json"; req_body_is_json_schema: boolean; req_body_other: string; res_body: string; res_body_is_json_schema: boolean; api_opened: boolean; switch_notice: boolean; merge: "normal" | "good" | "merge"; status?: "undone" | "done" | undefined; req_headers?: { value: string; desc: string; name: string; example: string; }[] | undefined; req_params?: { desc: string; name: string; example: string; }[] | undefined; req_query?: { desc: string; name: string; example: string; required: "0" | "1"; }[] | undefined; json?: string | undefined; res_body_type?: "raw" | "json" | undefined; page?: number | undefined; limit?: number | undefined; tag?: string[] | undefined; url?: string | undefined; }>; export default InterfaceSchema; //# sourceMappingURL=interface-schemas.d.ts.map