Create tiktok-v1.js
Browse files- lib/types/tiktok-v1.js +23 -0
lib/types/tiktok-v1.js
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { z } from 'zod'
|
2 |
+
|
3 |
+
export const TiktokDlArgsSchema = z.object({
|
4 |
+
0: z.string().url()
|
5 |
+
})
|
6 |
+
|
7 |
+
export const TiktokDlSchema = z.object({
|
8 |
+
nickname: z.string(),
|
9 |
+
username: z.string(),
|
10 |
+
avatar: z.string().url(),
|
11 |
+
description: z.string(),
|
12 |
+
thumbnail: z.string().url(),
|
13 |
+
played: z.string(),
|
14 |
+
commented: z.string(),
|
15 |
+
saved: z.string(),
|
16 |
+
shared: z.string(),
|
17 |
+
song: z.string(),
|
18 |
+
video: z.object({
|
19 |
+
noWatermark: z.string().url(),
|
20 |
+
withWatermark: z.string().url()
|
21 |
+
}),
|
22 |
+
audio: z.string().url()
|
23 |
+
})
|