import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type TranscribeFile = { fileName: string; content: ReadableStream | Blob | ArrayBuffer | Uint8Array; }; export type TranscribeRequestBody = { /** * Audio file to transcribe. * * @remarks * * **File Requirements:** * - Maximum size: 25MB * - Supported formats: FLAC, MP3, MP4, MPEG, MPGA, M4A, OGG, WAV, WebM * - Speaker diarization currently requires WAV / PCM input * * **Upload Options:** * 1. Standard: Upload complete file using multipart/form-data * 2. Chunked: Stream file chunks using Transfer-Encoding: chunked header (useful for real-time recording) * * **Note:** For chunked uploads, server buffers all chunks before processing. Transcription begins only after the complete file is received. */ file: TranscribeFile | Blob; }; export type TranscribeRequest = { model?: string | undefined; language?: string | undefined; includeSpeakerData?: boolean | undefined; prompt?: string | undefined; temperature?: number | undefined; store?: boolean | undefined; /** * Optional external end-user identifier forwarded by the API gateway. */ xOnBehalfOf?: string | undefined; requestBody: TranscribeRequestBody; }; /** @internal */ export declare const TranscribeFile$inboundSchema: z.ZodType; /** @internal */ export type TranscribeFile$Outbound = { fileName: string; content: ReadableStream | Blob | ArrayBuffer | Uint8Array; }; /** @internal */ export declare const TranscribeFile$outboundSchema: z.ZodType; export declare function transcribeFileToJSON(transcribeFile: TranscribeFile): string; export declare function transcribeFileFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const TranscribeRequestBody$inboundSchema: z.ZodType; /** @internal */ export type TranscribeRequestBody$Outbound = { file: TranscribeFile$Outbound | Blob; }; /** @internal */ export declare const TranscribeRequestBody$outboundSchema: z.ZodType; export declare function transcribeRequestBodyToJSON(transcribeRequestBody: TranscribeRequestBody): string; export declare function transcribeRequestBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const TranscribeRequest$inboundSchema: z.ZodType; /** @internal */ export type TranscribeRequest$Outbound = { model: string; language?: string | undefined; include_speaker_data: boolean; prompt?: string | undefined; temperature?: number | undefined; store: boolean; "X-On-Behalf-Of"?: string | undefined; RequestBody: TranscribeRequestBody$Outbound; }; /** @internal */ export declare const TranscribeRequest$outboundSchema: z.ZodType; export declare function transcribeRequestToJSON(transcribeRequest: TranscribeRequest): string; export declare function transcribeRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=transcribe.d.ts.map