import { z } from "zod";

export const mediaSchema = z.object({
  id: z.string(),
  alt: z.string(),
  url: z.string(),
  filename: z.string(),
  mimeType: z.string(),
  filesize: z.number(),
  width: z.number().optional(),
  height: z.number().optional(),
});

export type Media = z.infer<typeof mediaSchema>;
