import { z } from 'zod'; export const UnlockedBySchema = z.object({ uuid: z.string(), name: z.string(), }); export type UnlockedBy = z.infer; export const UnlockedBySubscription = >(schema: T) => schema.extend({ unlockedBy: UnlockedBySchema.nullable(), canUse: z.boolean(), });