import { z } from 'zod';

export const BottleMetadataSchema = z.object({
    name: z.string().nullable(),
    distillery: z.string().nullable(),
    category: z.string().nullable(),
    abv: z.number().nullable(),
    age: z.number().nullable(),
    vintage: z.string().nullable(),
    bottleCode: z.string().nullable(),
    whiskybaseId: z.string().nullable(),
    is_whisky: z.boolean().default(true),
    confidence: z.number().min(0).max(100).default(100),
});

export type BottleMetadata = z.infer<typeof BottleMetadataSchema>;

export interface AnalysisResponse {
    success: boolean;
    data?: BottleMetadata;
    error?: string;
}
