import { z } from "zod"; export const facebookPostSchema = z.object({ data: z.array( z.object({ from: z.object({ name: z.string(), id: z.string(), }), id: z.string(), permalink_url: z.string(), is_hidden: z.boolean(), message: z.string().optional(), object_id: z.string(), link: z.string(), is_published: z.boolean(), status_type: z.string(), type: z.string(), actions: z.array( z.object({ name: z.string(), link: z.string(), }), ), }), ), paging: z.object({ previous: z.string().optional(), next: z.string().optional(), }), }); export type FacebookPostSchema = z.infer;