mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-12 20:45:20 +02:00
feat(podcast): languageOptions contract
This commit is contained in:
parent
0c7e5dee8b
commit
3cf76e8295
1 changed files with 9 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue