import * as z from "zod/v4"; import * as discriminatedUnionTypes from "../types/discriminatedUnion.js"; import { OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { SpeechReferenceCount } from "./speechreferencecount.js"; /** * `required`: an image reference is accepted only together with an audio reference. `excluded`: only without one. Absent: either. */ export declare const AudioEnum: { readonly Required: "required"; readonly Excluded: "excluded"; }; /** * `required`: an image reference is accepted only together with an audio reference. `excluded`: only without one. Absent: either. */ export type AudioEnum = OpenEnum; export type SupportedInputs2 = { /** * `required`: an image reference is accepted only together with an audio reference. `excluded`: only without one. Absent: either. */ audio?: AudioEnum | undefined; references: SpeechReferenceCount; }; export type SpeechInputModalityImage = { supportedInputs: SupportedInputs2; type: "image"; }; /** * `references` is how many audio clips a request may send. With more than one, some providers require the text to address every clip with an `@AudioN` placeholder. */ export type SupportedInputs1 = { references: SpeechReferenceCount; }; export type SpeechInputModalityAudio = { /** * `references` is how many audio clips a request may send. With more than one, some providers require the text to address every clip with an `@AudioN` placeholder. */ supportedInputs: SupportedInputs1; type: "audio"; }; /** * `optional`: `input` may also be a multi-speaker turn array, which cannot be combined with `input_references`. `required`: `input` must be a turn array with at least two distinct voices. Absent: `input` is a string. */ export declare const Turns: { readonly Required: "required"; readonly Optional: "optional"; }; /** * `optional`: `input` may also be a multi-speaker turn array, which cannot be combined with `input_references`. `required`: `input` must be a turn array with at least two distinct voices. Absent: `input` is a string. */ export type Turns = OpenEnum; /** * The `input` text. */ export type SpeechInputModalityText = { /** * `optional`: `input` may also be a multi-speaker turn array, which cannot be combined with `input_references`. `required`: `input` must be a turn array with at least two distinct voices. Absent: `input` is a string. */ turns?: Turns | undefined; type: "text"; }; /** * An input the model accepts. `audio` and `image` are `input_references` for voice cloning and voice design. */ export type SpeechInputModality = SpeechInputModalityText | SpeechInputModalityAudio | SpeechInputModalityImage | discriminatedUnionTypes.Unknown<"type">; /** @internal */ export declare const AudioEnum$inboundSchema: z.ZodType; /** @internal */ export declare const SupportedInputs2$inboundSchema: z.ZodType; export declare function supportedInputs2FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SpeechInputModalityImage$inboundSchema: z.ZodType; export declare function speechInputModalityImageFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SupportedInputs1$inboundSchema: z.ZodType; export declare function supportedInputs1FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SpeechInputModalityAudio$inboundSchema: z.ZodType; export declare function speechInputModalityAudioFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Turns$inboundSchema: z.ZodType; /** @internal */ export declare const SpeechInputModalityText$inboundSchema: z.ZodType; export declare function speechInputModalityTextFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SpeechInputModality$inboundSchema: z.ZodType; export declare function speechInputModalityFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=speechinputmodality.d.ts.map