UNPKG

mini-todo-list-mcp

Version:

A streamlined Model Context Protocol (MCP) server for todo management with essential CRUD operations, bulk functionality, and workflow support

43 lines (42 loc) 1.11 kB
/** * Rule.ts - Rule model and validation schemas * * Core rule model and validation schemas for rules management. * Uses integer IDs for simplicity. */ import { z } from 'zod'; /** * Core Rule interface - using integer IDs for simplicity */ export interface Rule { id: number; description: string; createdAt: string; updatedAt: string; filePath?: string; } /** * Validation schemas for Rule operations */ export declare const AddRulesSchema: z.ZodObject<{ filePath: z.ZodString; clearAll: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { filePath: string; clearAll: boolean; }, { filePath: string; clearAll?: boolean | undefined; }>; export declare const GetRulesSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { id?: number | undefined; }, { id?: number | undefined; }>; /** * Factory function to create a new Rule with proper defaults * Note: ID will be set by the database auto-increment */ export declare function createRule(description: string, filePath?: string): Omit<Rule, 'id'>;