feat(podcast): languageOptions contract

This commit is contained in:
CREDO23 2026-06-12 07:38:38 +02:00
parent 0c7e5dee8b
commit 3cf76e8295

View file

@ -103,6 +103,15 @@ export const voiceOption = z.object({
});
export type VoiceOption = z.infer<typeof voiceOption>;
// The languages the backend offers for the active TTS provider. When
// `allows_custom` is true the list is a starting point and any BCP-47 tag
// may be entered.
export const languageOptions = z.object({
languages: z.array(z.string()),
allows_custom: z.boolean(),
});
export type LanguageOptions = z.infer<typeof languageOptions>;
export const updateSpecRequest = z.object({
spec: podcastSpec,
expected_version: z.number().int().min(1),