File size: 447 Bytes
e7796b5
 
0375e7f
 
2307307
 
0375e7f
 
 
 
 
 
e7796b5
0375e7f
 
 
 
 
e7796b5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { z } from "zod";

export const FacebookDlArgsSchema = z.object({
  0: z.string().url(),
});

export const FacebookDlMediaSchema = z.array(
  z.object({
    quality: z.string(),
    download: z.function(z.tuple([])).returns(z.promise(z.string().url())),
  })
);

export const FacebookDlSchema = z.object({
  thumbnail: z.string().url(),
  duration: z.string().optional(),
  video: FacebookDlMediaSchema,
  audio: FacebookDlMediaSchema,
});