import { z } from "zod"; export const youtubeListSchema = z .array( z.object({ etag: z.string(), id: z.object({ videoId: z.string(), channelId: z.string(), playlistId: z.string(), }), snippet: z.object({ publishedAt: z.string(), channelId: z.string(), title: z.string(), description: z.string(), thumbnails: z.object({ default: z.object({ url: z.string(), width: z.number(), height: z.number(), }), standard: z.object({ url: z.string(), width: z.number(), height: z.number(), }), }), channelTitle: z.string(), liveBroadcastContent: z.string(), }), }), ) .describe("Schema for a list of Youtube videos"); export type YoutubeListSchema = z.infer;