import { z } from 'zod';

/**
 * Schema for list_sitemaps tool
 * Lists all sitemaps submitted for a property
 */
export const ListSitemapsSchema = z.object({
  siteUrl: z.string().url().describe('The Google Search Console property URL (e.g., https://example.com)')
});

/**
 * Schema for get_sitemap tool
 * Gets details about a specific sitemap
 */
export const GetSitemapSchema = z.object({
  siteUrl: z.string().url().describe('The Google Search Console property URL'),
  feedpath: z.string().describe('The path to the sitemap file (e.g., /sitemap.xml or https://example.com/sitemap.xml)')
});

/**
 * Schema for submit_sitemap tool
 * Submits a sitemap to Google Search Console
 */
export const SubmitSitemapSchema = z.object({
  siteUrl: z.string().url().describe('The Google Search Console property URL'),
  feedpath: z.string().describe('The path to the sitemap file (e.g., /sitemap.xml or https://example.com/sitemap.xml)')
});

/**
 * Schema for delete_sitemap tool
 * Deletes a sitemap from Google Search Console
 */
export const DeleteSitemapSchema = z.object({
  siteUrl: z.string().url().describe('The Google Search Console property URL'),
  feedpath: z.string().describe('The path to the sitemap file to delete')
});
