import * as z from "zod"; import { Id } from "./ids.js"; export const TranscribeInputSchema = z.object({ artifact_id: Id.describe("Audio or video artifact to transcribe."), language: z .string() .trim() .regex(/^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$/, "Use a language code such as en or de") .optional() .describe("Spoken language as a code such as en or de; detected when omitted."), title: z .string() .trim() .min(1) .max(120) .optional() .describe("A few words in the user's language for the media card."), }); export type TranscribeInput = z.infer;