UNPKG

@seliseblocks/mcp-server

Version:

A Model Context Protocol (MCP) server for managing schemas in SELISE Blocks platform, built with TypeScript.

136 lines 4.41 kB
import { z } from 'zod'; export declare const ModuleGenerationSchema: z.ZodObject<{ moduleName: z.ZodString; displayName: z.ZodString; route: z.ZodString; fields: z.ZodArray<z.ZodObject<{ name: z.ZodString; displayName: z.ZodString; type: z.ZodEnum<["string", "number", "boolean", "date", "email", "url"]>; required: z.ZodDefault<z.ZodBoolean>; validation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { displayName: string; type: "string" | "number" | "boolean" | "date" | "email" | "url"; name: string; required: boolean; validation?: string | undefined; }, { displayName: string; type: "string" | "number" | "boolean" | "date" | "email" | "url"; name: string; validation?: string | undefined; required?: boolean | undefined; }>, "many">; features: z.ZodDefault<z.ZodObject<{ list: z.ZodDefault<z.ZodBoolean>; add: z.ZodDefault<z.ZodBoolean>; edit: z.ZodDefault<z.ZodBoolean>; delete: z.ZodDefault<z.ZodBoolean>; details: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { list: boolean; add: boolean; edit: boolean; delete: boolean; details: boolean; }, { list?: boolean | undefined; add?: boolean | undefined; edit?: boolean | undefined; delete?: boolean | undefined; details?: boolean | undefined; }>>; navigation: z.ZodDefault<z.ZodObject<{ addToMenu: z.ZodDefault<z.ZodBoolean>; icon: z.ZodOptional<z.ZodString>; position: z.ZodDefault<z.ZodEnum<["after-inventory", "after-iam", "custom"]>>; }, "strip", z.ZodTypeAny, { addToMenu: boolean; position: "custom" | "after-inventory" | "after-iam"; icon?: string | undefined; }, { addToMenu?: boolean | undefined; icon?: string | undefined; position?: "custom" | "after-inventory" | "after-iam" | undefined; }>>; }, "strip", z.ZodTypeAny, { moduleName: string; displayName: string; route: string; fields: { displayName: string; type: "string" | "number" | "boolean" | "date" | "email" | "url"; name: string; required: boolean; validation?: string | undefined; }[]; features: { list: boolean; add: boolean; edit: boolean; delete: boolean; details: boolean; }; navigation: { addToMenu: boolean; position: "custom" | "after-inventory" | "after-iam"; icon?: string | undefined; }; }, { moduleName: string; displayName: string; route: string; fields: { displayName: string; type: "string" | "number" | "boolean" | "date" | "email" | "url"; name: string; validation?: string | undefined; required?: boolean | undefined; }[]; features?: { list?: boolean | undefined; add?: boolean | undefined; edit?: boolean | undefined; delete?: boolean | undefined; details?: boolean | undefined; } | undefined; navigation?: { addToMenu?: boolean | undefined; icon?: string | undefined; position?: "custom" | "after-inventory" | "after-iam" | undefined; } | undefined; }>; export type ModuleGenerationRequest = z.infer<typeof ModuleGenerationSchema>; export declare const FieldSchema: z.ZodObject<{ name: z.ZodString; displayName: z.ZodString; type: z.ZodEnum<["string", "number", "boolean", "date", "email", "url"]>; required: z.ZodBoolean; validation: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { displayName: string; type: "string" | "number" | "boolean" | "date" | "email" | "url"; name: string; required: boolean; validation?: string | undefined; }, { displayName: string; type: "string" | "number" | "boolean" | "date" | "email" | "url"; name: string; required: boolean; validation?: string | undefined; }>; export type Field = z.infer<typeof FieldSchema>; export interface GeneratedFile { path: string; content: string; description: string; } export interface ModuleGenerationResult { success: boolean; files: GeneratedFile[]; errors?: string[]; message: string; } //# sourceMappingURL=templateType.d.ts.map