zod latest

This commit is contained in:
lovebird 2025-04-23 20:02:01 +02:00
parent 8e0723ce9f
commit 14189a7e7a
3 changed files with 225 additions and 220 deletions

View File

@ -1,4 +1,9 @@
import { z } from "zod"; import { z } from "zod";
export declare const find_items: (nodes: string[], options: any) => {
rel: any;
path: any;
config: any;
}[];
export declare const get: (src: any, root: any, type: any) => IComponentNode[]; export declare const get: (src: any, root: any, type: any) => IComponentNode[];
export declare const UrlSchema: z.ZodEffects<z.ZodString, string, string>; export declare const UrlSchema: z.ZodEffects<z.ZodString, string, string>;
export declare const ExifSchema: z.ZodObject<{ export declare const ExifSchema: z.ZodObject<{
@ -33,10 +38,10 @@ export declare const ImageMetaSchema: z.ZodObject<{
orientation: z.ZodNumber; orientation: z.ZodNumber;
exif: z.ZodAny; exif: z.ZodAny;
}, "strip", z.ZodTypeAny, { }, "strip", z.ZodTypeAny, {
height?: number;
width?: number;
exif?: any; exif?: any;
format?: string; format?: string;
width?: number;
height?: number;
space?: string; space?: string;
channels?: number; channels?: number;
depth?: string; depth?: string;
@ -48,10 +53,10 @@ export declare const ImageMetaSchema: z.ZodObject<{
hasAlpha?: boolean; hasAlpha?: boolean;
orientation?: number; orientation?: number;
}, { }, {
height?: number;
width?: number;
exif?: any; exif?: any;
format?: string; format?: string;
width?: number;
height?: number;
space?: string; space?: string;
channels?: number; channels?: number;
depth?: string; depth?: string;
@ -71,15 +76,15 @@ export declare const CADMetaSchema: z.ZodObject<{
model: z.ZodOptional<z.ZodString>; model: z.ZodOptional<z.ZodString>;
html: z.ZodOptional<z.ZodString>; html: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, { }, "strip", z.ZodTypeAny, {
file?: string;
name?: string; name?: string;
file?: string;
configuration?: string; configuration?: string;
step?: string; step?: string;
model?: string; model?: string;
html?: string; html?: string;
}, { }, {
file?: string;
name?: string; name?: string;
file?: string;
configuration?: string; configuration?: string;
step?: string; step?: string;
model?: string; model?: string;
@ -148,14 +153,6 @@ export declare const AssetImageSchema: z.ZodObject<{
gps?: any; gps?: any;
}>>; }>>;
}, "strip", z.ZodTypeAny, { }, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -165,16 +162,16 @@ export declare const AssetImageSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}, { }, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -184,7 +181,15 @@ export declare const AssetImageSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}>; }>;
export declare const GalleryConfig: z.ZodObject<{ export declare const GalleryConfig: z.ZodObject<{
glob: z.ZodArray<z.ZodString, "many">; glob: z.ZodArray<z.ZodString, "many">;
@ -220,21 +225,21 @@ export declare const ContentSchema: z.ZodObject<{
readme: z.ZodOptional<z.ZodString>; readme: z.ZodOptional<z.ZodString>;
shared: z.ZodOptional<z.ZodString>; shared: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, { }, "strip", z.ZodTypeAny, {
resources?: string;
body?: string; body?: string;
features?: string; features?: string;
highlights?: string; highlights?: string;
specs?: string; specs?: string;
license?: string; license?: string;
resources?: string;
readme?: string; readme?: string;
shared?: string; shared?: string;
}, { }, {
resources?: string;
body?: string; body?: string;
features?: string; features?: string;
highlights?: string; highlights?: string;
specs?: string; specs?: string;
license?: string; license?: string;
resources?: string;
readme?: string; readme?: string;
shared?: string; shared?: string;
}>; }>;
@ -288,14 +293,6 @@ export declare const AssetsSchema: z.ZodObject<{
gps?: any; gps?: any;
}>>; }>>;
}, "strip", z.ZodTypeAny, { }, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -305,16 +302,16 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}, { }, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -324,7 +321,15 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}>, "many">>; }>, "many">>;
renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{ renderings: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>;
@ -356,14 +361,6 @@ export declare const AssetsSchema: z.ZodObject<{
gps?: any; gps?: any;
}>>; }>>;
}, "strip", z.ZodTypeAny, { }, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -373,16 +370,16 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}, { }, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -392,7 +389,15 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}>, "many">>; }>, "many">>;
components: z.ZodOptional<z.ZodArray<z.ZodObject<{ components: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>;
@ -424,14 +429,6 @@ export declare const AssetsSchema: z.ZodObject<{
gps?: any; gps?: any;
}>>; }>>;
}, "strip", z.ZodTypeAny, { }, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -441,16 +438,16 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}, { }, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -460,7 +457,15 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}>, "many">>; }>, "many">>;
configurations: z.ZodOptional<z.ZodArray<z.ZodObject<{ configurations: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>;
@ -492,14 +497,6 @@ export declare const AssetsSchema: z.ZodObject<{
gps?: any; gps?: any;
}>>; }>>;
}, "strip", z.ZodTypeAny, { }, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -509,16 +506,16 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}, { }, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -528,7 +525,15 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}>, "many">>; }>, "many">>;
showcase: z.ZodOptional<z.ZodArray<z.ZodObject<{ showcase: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>;
@ -560,14 +565,6 @@ export declare const AssetsSchema: z.ZodObject<{
gps?: any; gps?: any;
}>>; }>>;
}, "strip", z.ZodTypeAny, { }, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -577,16 +574,16 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}, { }, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -596,7 +593,15 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}>, "many">>; }>, "many">>;
samples: z.ZodOptional<z.ZodArray<z.ZodObject<{ samples: z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>;
@ -628,14 +633,6 @@ export declare const AssetsSchema: z.ZodObject<{
gps?: any; gps?: any;
}>>; }>>;
}, "strip", z.ZodTypeAny, { }, "strip", z.ZodTypeAny, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -645,16 +642,16 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}, { }, {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -664,18 +661,18 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}>, "many">>; }>, "many">>;
}, "strip", z.ZodTypeAny, { }, "strip", z.ZodTypeAny, {
gallery?: { gallery?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -685,17 +682,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[]; }[];
renderings?: { renderings?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -705,17 +702,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[]; }[];
components?: { components?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -725,17 +722,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[]; }[];
configurations?: { configurations?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -745,17 +742,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[]; }[];
showcase?: { showcase?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -765,17 +762,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[]; }[];
samples?: { samples?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -785,18 +782,18 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[]; }[];
}, { }, {
gallery?: { gallery?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -806,17 +803,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[]; }[];
renderings?: { renderings?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -826,17 +823,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[]; }[];
components?: { components?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -846,17 +843,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[]; }[];
configurations?: { configurations?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -866,17 +863,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[]; }[];
showcase?: { showcase?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -886,17 +883,17 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[]; }[];
samples?: { samples?: {
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
width?: number;
height?: number;
name?: string; name?: string;
url?: string; url?: string;
thumb?: string; thumb?: string;
@ -906,7 +903,15 @@ export declare const AssetsSchema: z.ZodObject<{
description?: string; description?: string;
alt?: string; alt?: string;
title?: string; title?: string;
height?: number;
width?: number;
order?: number; order?: number;
exif?: {
file?: any;
jfif?: any;
exif?: any;
gps?: any;
};
}[]; }[];
}>; }>;
export declare const ProductionSchema: z.ZodObject<{ export declare const ProductionSchema: z.ZodObject<{

File diff suppressed because one or more lines are too long

View File

@ -75,8 +75,8 @@
"tslog": "^3.3.3", "tslog": "^3.3.3",
"tsup": "^2.0.3", "tsup": "^2.0.3",
"yargs": "^17.7.2", "yargs": "^17.7.2",
"zod": "^3.24.2", "zod": "^3.24.3",
"zod-to-json-schema": "^3.24.1", "zod-to-json-schema": "^3.24.5",
"zod-to-ts": "^1.2.0" "zod-to-ts": "^1.2.0"
}, },
"devDependencies": { "devDependencies": {