import { z } from 'zod'; import { emojiSchema } from './utils'; /** Pleroma emoji reaction. */ const emojiReactionSchema = z.object({ name: emojiSchema, count: z.number().nullable().catch(null), me: z.boolean().catch(false), /** Akkoma custom emoji reaction. */ url: z.string().url().optional().catch(undefined), }); type EmojiReaction = z.infer; export { emojiReactionSchema, type EmojiReaction };