跳转到内容

TranscriptSegmentSchema

const TranscriptSegmentSchema: z.ZodObject<{
end: z.ZodNumber;
speaker: z.ZodOptional<z.ZodString>;
start: z.ZodNumber;
text: z.ZodString;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
end: z.ZodNumber;
speaker: z.ZodOptional<z.ZodString>;
start: z.ZodNumber;
text: z.ZodString;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
end: z.ZodNumber;
speaker: z.ZodOptional<z.ZodString>;
start: z.ZodNumber;
text: z.ZodString;
}, z.ZodTypeAny, "passthrough">>;

TranscriptSegment 的 zod schema(passthrough 容未知键)。