import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GetMediasMediaHashedIdCaptionsLanguageCodeRequest = { /** * The hashed ID of the media from which captions are to be retrieved. */ mediaHashedId: string; /** * The 3-character ISO 639-2 language code of the captions to be retrieved (e.g., `eng`, `fra`, `spa`). Some languages use extended IETF subtags (e.g., `zh-Hant`). */ languageCode: string; }; /** * Successful response containing captions in the requested format */ export type GetMediasMediaHashedIdCaptionsLanguageCodeResponseBody = { /** * English name of the language. */ englishName?: string | undefined; /** * Native name of the language. */ nativeName?: string | undefined; /** * A 3 character language code as specified by ISO-639–2. */ language: string; /** * The text of the captions for the specified language in SRT format. */ text?: string | null | undefined; isDraft: boolean; /** * The unique hashed identifier of the time-coded transcript. */ id: string; /** * A cursor for stable pagination based on current `sort_by` order. You can pass this to `cursor[before]` or `cursor[after]` as a parameter to fetch the records before or after this record in the same sort order. This is only populated if records were fetched with `cursor[enabled]`, or `cursor[before]` or `cursor[after]`. */ cursor?: string | null | undefined; }; export type GetMediasMediaHashedIdCaptionsLanguageCodeResponse = GetMediasMediaHashedIdCaptionsLanguageCodeResponseBody | string | string; /** @internal */ export type GetMediasMediaHashedIdCaptionsLanguageCodeRequest$Outbound = { mediaHashedId: string; languageCode: string; }; /** @internal */ export declare const GetMediasMediaHashedIdCaptionsLanguageCodeRequest$outboundSchema: z.ZodType; export declare function getMediasMediaHashedIdCaptionsLanguageCodeRequestToJSON(getMediasMediaHashedIdCaptionsLanguageCodeRequest: GetMediasMediaHashedIdCaptionsLanguageCodeRequest): string; /** @internal */ export declare const GetMediasMediaHashedIdCaptionsLanguageCodeResponseBody$inboundSchema: z.ZodType; export declare function getMediasMediaHashedIdCaptionsLanguageCodeResponseBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetMediasMediaHashedIdCaptionsLanguageCodeResponse$inboundSchema: z.ZodType; export declare function getMediasMediaHashedIdCaptionsLanguageCodeResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getmediasmediahashedidcaptionslanguagecode.d.ts.map