import { z } from 'zod';
import { ZModule, ZProfileLink, ZLocalizationBody, ZCreateThemeBody } from '@komi-app/meta-profiles';
import { ProfileType } from '../entities.js';
export const ZPreview = z.object({
    id: z.string().uuid(),
    type: z.string(),
    handle: z.string(),
    expireAt: z.string().datetime(),
    createdAt: z.string().datetime(),
    updatedAt: z.string().datetime()
});
export const ZPreviewInfoBody = z.object({
    name: z.string(),
    categoryName: z.string(),
    categoryId: z.number(),
    createdVia: z.string()
});
export const ZPostPreviewBody = z.object({
    handle: z.string(),
    modules: z.array(ZModule),
    profileInfo: ZPreviewInfoBody,
    links: z.array(ZProfileLink.omit({ localizationId: true, profileId: true })),
    localization: ZLocalizationBody,
    theme: ZCreateThemeBody,
    type: z.nativeEnum(ProfileType)
});
export const ZClaimPreviewProfileBody = z.object({
    previewId: z.string().uuid(),
    handle: z.string().optional(),
    displayName: z.string().optional()
});
