"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetBookingResponseSchema = exports.BookingSchema = exports.SettingsSchema = void 0;
const zod_1 = require("zod");
exports.SettingsSchema = zod_1.z.object({
    apiKey: zod_1.z.string().nonempty('Missing API key'),
});
const UserSchema = zod_1.z.object({
    email: zod_1.z.string(),
    name: zod_1.z.string(),
    timeZone: zod_1.z.string(),
    locale: zod_1.z.string().optional().nullable(),
});
exports.BookingSchema = zod_1.z.object({
    eventTypeId: zod_1.z.number(),
    title: zod_1.z.string(),
    description: zod_1.z.string(),
    startTime: zod_1.z.string(),
    endTime: zod_1.z.string(),
    status: zod_1.z.string(),
    uid: zod_1.z.string(),
    id: zod_1.z.coerce.number(),
    //   userId: z.number(),
    user: UserSchema,
    attendees: zod_1.z.array(UserSchema),
    metadata: zod_1.z.object({ videoCallUrl: zod_1.z.string().optional() }),
    responses: zod_1.z
        .object({
        email: zod_1.z.string().optional(),
        name: zod_1.z.string().optional(),
        location: zod_1.z
            .object({
            optionValue: zod_1.z.string().optional(),
            value: zod_1.z.string().optional(),
        })
            .optional(),
    })
        .optional(),
});
exports.GetBookingResponseSchema = zod_1.z.object({
    booking: exports.BookingSchema,
});
//# sourceMappingURL=schema.js.map