/**
 * Project Caffeine
 * Copyright (c) 2025-2026 Gitconomy Research
 *
 * SPDX-License-Identifier: MIT
 * 
 * Contributors:
 * - 郭晧 <guohao@gitconomy.org> (Initial Author)
 */
import { z } from 'zod';

export const generateSearchQueriesSchema = z.object({
  query: z.string().min(1),
});

export const saveNoteSchema = z.object({
  filename: z.string().min(1, '文件名不能为空').refine(
    name => name.endsWith('.md'),
    { message: '文件名必须以 .md 结尾' }
  ),
  content: z.string().min(1, '内容不能为空')
});