import * as z from "zod/v4"; import { OpenEnum } from "../../types/enums.js"; export type CreateAudioTranscriptionsMultipartGlobals = { /** * The app identifier should be your app's URL and is used as the primary identifier for rankings. * * @remarks * This is used to track API usage per application. */ httpReferer?: string | undefined; /** * The app display name allows you to customize how your app appears in OpenRouter's dashboard. * * @remarks */ appTitle?: string | undefined; /** * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings. * * @remarks */ appCategories?: string | undefined; }; export type CreateAudioTranscriptionsMultipartFile = { fileName: string; content: ReadableStream | Blob | ArrayBuffer | Uint8Array; }; /** * The response format. "json" (default) returns { text, usage }; "verbose_json" additionally returns task, language, duration, and segment-level timestamps (OpenAI-compatible providers only). */ export declare const ResponseFormat: { readonly Json: "json"; readonly VerboseJson: "verbose_json"; }; /** * The response format. "json" (default) returns { text, usage }; "verbose_json" additionally returns task, language, duration, and segment-level timestamps (OpenAI-compatible providers only). */ export type ResponseFormat = OpenEnum; export declare const TimestampGranularities: { readonly Word: "word"; readonly Segment: "segment"; }; export type TimestampGranularities = OpenEnum; export type CreateAudioTranscriptionsMultipartRequestBody = { /** * The audio file to transcribe. The format is derived from the filename extension or the file part content type. Max 25 MB; send larger files as base64 JSON via input_audio. */ file: CreateAudioTranscriptionsMultipartFile | Blob; /** * The language of the input audio (ISO-639-1). */ language?: string | undefined; /** * The model to use for transcription. */ model: string; /** * The response format. "json" (default) returns { text, usage }; "verbose_json" additionally returns task, language, duration, and segment-level timestamps (OpenAI-compatible providers only). */ responseFormat?: ResponseFormat | undefined; /** * A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. */ sessionId?: string | undefined; /** * The sampling temperature. */ temperature?: number | undefined; /** * Timestamp detail levels to include when response_format is "verbose_json". "word" additionally returns word-level timestamps in the words array. */ timestampGranularities?: Array | undefined; /** * JSON-encoded trace metadata object (trace_id, trace_name, span_name, generation_name, parent_span_id and custom keys) attached to the Broadcast trace. Must decode to a JSON object. */ trace?: string | undefined; /** * A unique identifier representing your end-user. Forwarded to Broadcast and private logging as the end-user id; never sent to the provider. */ user?: string | undefined; }; export type CreateAudioTranscriptionsMultipartRequest = { /** * The app identifier should be your app's URL and is used as the primary identifier for rankings. * * @remarks * This is used to track API usage per application. */ httpReferer?: string | undefined; /** * The app display name allows you to customize how your app appears in OpenRouter's dashboard. * * @remarks */ appTitle?: string | undefined; /** * Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings. * * @remarks */ appCategories?: string | undefined; requestBody: CreateAudioTranscriptionsMultipartRequestBody; }; /** @internal */ export type CreateAudioTranscriptionsMultipartFile$Outbound = { fileName: string; content: ReadableStream | Blob | ArrayBuffer | Uint8Array; }; /** @internal */ export declare const CreateAudioTranscriptionsMultipartFile$outboundSchema: z.ZodType; export declare function createAudioTranscriptionsMultipartFileToJSON(createAudioTranscriptionsMultipartFile: CreateAudioTranscriptionsMultipartFile): string; /** @internal */ export declare const ResponseFormat$outboundSchema: z.ZodType; /** @internal */ export declare const TimestampGranularities$outboundSchema: z.ZodType; /** @internal */ export type CreateAudioTranscriptionsMultipartRequestBody$Outbound = { file: CreateAudioTranscriptionsMultipartFile$Outbound | Blob; language?: string | undefined; model: string; response_format?: string | undefined; session_id?: string | undefined; temperature?: number | undefined; "timestamp_granularities[]"?: Array | undefined; trace?: string | undefined; user?: string | undefined; }; /** @internal */ export declare const CreateAudioTranscriptionsMultipartRequestBody$outboundSchema: z.ZodType; export declare function createAudioTranscriptionsMultipartRequestBodyToJSON(createAudioTranscriptionsMultipartRequestBody: CreateAudioTranscriptionsMultipartRequestBody): string; /** @internal */ export type CreateAudioTranscriptionsMultipartRequest$Outbound = { "HTTP-Referer"?: string | undefined; appTitle?: string | undefined; appCategories?: string | undefined; RequestBody: CreateAudioTranscriptionsMultipartRequestBody$Outbound; }; /** @internal */ export declare const CreateAudioTranscriptionsMultipartRequest$outboundSchema: z.ZodType; export declare function createAudioTranscriptionsMultipartRequestToJSON(createAudioTranscriptionsMultipartRequest: CreateAudioTranscriptionsMultipartRequest): string; //# sourceMappingURL=createaudiotranscriptionsmultipart.d.ts.map