import { z } from "zod"; export const threadsMediaSchema = z.object({ data: z.array( z.object({ id: z.string(), media_product_type: z.literal("THREADS"), media_type: z.enum(["TEXT_POST", "IMAGE", "VIDEO", "CAROUSEL_ALBUM", "AUDIO", "REPOST_FACADE"]), media_url: z.string(), permalink: z.string(), owner: z.object({ id: z.string(), }), username: z.string(), text: z.string(), timestamp: z.string(), thumbnail_url: z.string(), shortcode: z.string(), is_quote_post: z.boolean(), }), ), paging: z.object({ cursors: z.object({ before: z.string(), after: z.string(), }), }), }); export type ThreadsMediaSchema = z.infer;