mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-19 01:03:57 +00:00
15 lines
362 B
TypeScript
15 lines
362 B
TypeScript
import { z } from "zod";
|
|
|
|
export const downloadSourceSchema = z.object({
|
|
name: z.string().max(255),
|
|
downloads: z.array(
|
|
z.object({
|
|
title: z.string().max(255),
|
|
downloaders: z.array(z.enum(["real_debrid", "torrent"])),
|
|
uris: z.array(z.string()),
|
|
uploadDate: z.string().max(255),
|
|
fileSize: z.string().max(255),
|
|
})
|
|
),
|
|
});
|