A Zod schema that describes the metadata for an avatar.
import * as z from 'zod';
export default z.object({
id: z.string(),
name: z.string(),
/* Initials with 1-2 letters. */
initials: z.string().regex(/^.{1,2}$/),
/* Author profile URL (e.g. Bluesky, personal site). */
url: z.url(),
/* Avatar image URL. */
imageUrl: z.url().optional()
});