import { z } from 'zod';

export const createOfferSchema = z.object({
  amount: z.number().positive('Offer amount must be positive'),
  message: z.string().max(500).optional(),
  listingId: z.string().min(1, 'Listing ID is required'),
});

export const respondOfferSchema = z.object({
  status: z.enum(['ACCEPTED', 'DECLINED', 'COUNTERED']),
  counterAmount: z.number().positive().optional(),
});
