"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateDevicePushTokenSchema = exports.updateDeviceStatusSchema = exports.deviceIdParamSchema = exports.createDeviceSchema = void 0;
const zod_1 = require("zod");
exports.createDeviceSchema = zod_1.z.object({
    location: zod_1.z.object({
        long: zod_1.z.number(),
        lat: zod_1.z.number(),
        country: zod_1.z.string().min(1),
        state: zod_1.z.string().min(1),
        city: zod_1.z.string().min(1),
    }),
    type: zod_1.z.string().min(1),
    info: zod_1.z.string().nullable().optional(),
    ipAddress: zod_1.z.string().ip(),
    userAgent: zod_1.z.string().nullable().optional(),
    acceptLanguage: zod_1.z.string().nullable().optional(),
    fingerprint: zod_1.z.string().min(1),
    pushToken: zod_1.z.string().min(1).nullable().optional(),
    status: zod_1.z.enum(['active', 'background', 'closed']).optional(),
});
exports.deviceIdParamSchema = zod_1.z.object({
    id: zod_1.z.string().uuid(),
});
exports.updateDeviceStatusSchema = zod_1.z.object({
    status: zod_1.z.enum(['active', 'background', 'closed']),
});
exports.updateDevicePushTokenSchema = zod_1.z.object({
    pushToken: zod_1.z.string().min(1).nullable(),
});
//# sourceMappingURL=device.dto.js.map