Update lib/types/sfilemobi-dl-v1.js
Browse files
lib/types/sfilemobi-dl-v1.js
CHANGED
@@ -2,11 +2,11 @@ import { z } from 'zod';
|
|
2 |
|
3 |
const URL_ERROR_MESSAGE = 'Input must be a valid sfile.mobi URL!';
|
4 |
|
5 |
-
|
6 |
0: z.string().url({ message: URL_ERROR_MESSAGE }).regex(/^(https?:\/\/)?sfile\.mobi/i, URL_ERROR_MESSAGE)
|
7 |
});
|
8 |
|
9 |
-
|
10 |
url: z.string().url(),
|
11 |
filename: z.string(),
|
12 |
icon: z.string(),
|
|
|
2 |
|
3 |
const URL_ERROR_MESSAGE = 'Input must be a valid sfile.mobi URL!';
|
4 |
|
5 |
+
const SfilemobidlArgsSchema = z.object({
|
6 |
0: z.string().url({ message: URL_ERROR_MESSAGE }).regex(/^(https?:\/\/)?sfile\.mobi/i, URL_ERROR_MESSAGE)
|
7 |
});
|
8 |
|
9 |
+
const SfilemobidlSchema = z.object({
|
10 |
url: z.string().url(),
|
11 |
filename: z.string(),
|
12 |
icon: z.string(),
|