Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 2x 2x | import { z } from 'zod'
// GET /invites/:code is public (no auth) — a logged-out user can preview an
// invite before deciding to log in/register to accept it.
export const invitePreviewSchema = z.object({
babyName: z.string(),
babyAvatarUrl: z.string().nullable(),
expired: z.boolean(),
alreadyUsed: z.boolean(),
})
export type InvitePreview = z.infer<typeof invitePreviewSchema>
export const redeemInviteResponseSchema = z.object({
babyId: z.string().uuid(),
babyName: z.string(),
})
export type RedeemInviteResponse = z.infer<typeof redeemInviteResponseSchema>
|