Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | import z from "zod";
import { LIST_VOICES_ENUMS } from "./enums";
const SortBySchema = z.enum(LIST_VOICES_ENUMS.SORT_BY);
const SortDirectionSchema = z.enum(LIST_VOICES_ENUMS.SORT_DIRECTION);
const VoiceTypeSchema = z.enum(LIST_VOICES_ENUMS.VOICE_TYPE);
const FineTuningStateSchema = z.enum(LIST_VOICES_ENUMS.FINE_TUNING);
const VoiceCategorySchema = z.enum(LIST_VOICES_ENUMS.CATEGORY);
export const ListVoicesRequestSchema = z.object({
nextPageToken: z.string().optional(),
pageSize: z.number().min(1).max(100).default(10),
search: z.string().optional(),
sortBy: SortBySchema.optional(),
sortDirection: SortDirectionSchema.optional(),
voiceType: VoiceTypeSchema.optional(),
category: VoiceCategorySchema.optional(),
fineTuningState: FineTuningStateSchema.optional(),
collectionID: z.string().optional(),
includeTotalCount: z.boolean().default(true),
voiceIDs: z.array(z.string()).max(100).optional(),
});
export type ListVoicesRequest = Partial<z.infer<typeof ListVoicesRequestSchema>>;
|