You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
593 B
29 lines
593 B
import z from "zod";
|
|
import { ThumbnailModel } from "./thumbnail";
|
|
|
|
export const TrendingModel = z.object({
|
|
title: z.string(),
|
|
videoId: z.string(),
|
|
videoThumbnails: ThumbnailModel.array(),
|
|
|
|
lengthSeconds: z.number(),
|
|
viewCount: z.number(),
|
|
|
|
author: z.string(),
|
|
authorId: z.string(),
|
|
authorUrl: z.string(),
|
|
|
|
published: z.number(),
|
|
publishedText: z.string(),
|
|
description: z.string(),
|
|
descriptionHtml: z.string(),
|
|
|
|
liveNow: z.boolean(),
|
|
paid: z.boolean().optional().default(false),
|
|
premium: z.boolean()
|
|
});
|
|
|
|
type Trending = z.infer<typeof TrendingModel>;
|
|
|
|
export default Trending;
|