import { z } from 'zod';

export const CreateSecretSchema = z.object({
  name: z.string().min(1).max(100).regex(/^[a-z0-9-]+$/, 'Name must be lowercase alphanumeric with hyphens'),
  data: z.record(z.string()).default({}),
});

export const UpdateSecretSchema = z.object({
  data: z.record(z.string()),
});

export type CreateSecretInput = z.infer<typeof CreateSecretSchema>;
export type UpdateSecretInput = z.infer<typeof UpdateSecretSchema>;
