@prodi-labs/schemas
Advanced tools
Comparing version
import { z } from "zod"; | ||
export declare const GenScriptParamsSchema: z.ZodObject<{ | ||
projectId: z.ZodString; | ||
episodeId: z.ZodString; | ||
sectionId: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
episodeId: string; | ||
projectId: string; | ||
sectionId: string; | ||
}, { | ||
episodeId: string; | ||
projectId: string; | ||
sectionId: string; | ||
}>; | ||
export declare const GenScriptRequestSchema: z.ZodObject<{ | ||
@@ -109,3 +122,4 @@ sections: z.ZodArray<z.ZodObject<{ | ||
}>, "many">; | ||
export type GenScriptParams = z.infer<typeof GenScriptParamsSchema>; | ||
export type GenScriptRequest = z.infer<typeof GenScriptRequestSchema>; | ||
export type GenScriptResponse = z.infer<typeof GenScriptResponseSchema>; |
import { z } from "zod"; | ||
import { DialogueSchema, SectionSchema } from "../model/section.schema.js"; | ||
export const GenScriptParamsSchema = z.object({ | ||
projectId: z.string().min(1, "Project ID is required"), | ||
episodeId: z.string().min(1, "Episode ID is required"), | ||
sectionId: z.string().min(1, "Section ID is required"), | ||
}); | ||
export const GenScriptRequestSchema = z.object({ | ||
@@ -4,0 +9,0 @@ sections: z.array(SectionSchema), |
{ | ||
"name": "@prodi-labs/schemas", | ||
"version": "1.0.51", | ||
"version": "1.0.52", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
87869
0.71%2766
0.69%