import { z } from 'zod';

export const BackupParamsSchema = z.object({
  containers: z.array(z.string()).optional(),
});

export type BackupParams = z.infer<typeof BackupParamsSchema>;

export const RestoreParamsSchema = z.object({
  backupId: z.string(),
});

export type RestoreParams = z.infer<typeof RestoreParamsSchema>;

export const BackupSchema = z.object({
  id: z.string(),
  timestamp: z.string(),
  containers: z.array(z.string()),
  itemCount: z.number(),
  size: z.number(),
  productId: z.string(),
});

export type Backup = z.infer<typeof BackupSchema>;
