import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type PostMediasMediaHashedIdTranslateRequestBody = { /** * The language to translate the transcript to as a 3-character IETF language code. */ targetLanguage: string; /** * The language of the source transcript to be translated as a 3-character IETF language code. If not provided, the media's default transcript language will be used. */ sourceLanguage?: string | undefined; }; export type PostMediasMediaHashedIdTranslateRequest = { /** * The hashed ID of the media. */ mediaHashedId: string; requestBody?: PostMediasMediaHashedIdTranslateRequestBody | undefined; }; /** * The status of the background job that's been queued for the request. */ export declare const PostMediasMediaHashedIdTranslateStatus: { readonly Queued: "queued"; readonly Started: "started"; readonly Finished: "finished"; readonly Failed: "failed"; }; /** * The status of the background job that's been queued for the request. */ export type PostMediasMediaHashedIdTranslateStatus = ClosedEnum; /** * A background job keeps track of the progress of an asynchronous task, e.g * * @remarks * bulk archiving media, translating media, etc. */ export type PostMediasMediaHashedIdTranslateBackgroundJobStatus = { /** * The ID of the background job that's been queued for the request. */ id: number; /** * The status of the background job that's been queued for the request. */ status: PostMediasMediaHashedIdTranslateStatus; }; /** * Successfully queued background job for translation of the transcript. */ export type PostMediasMediaHashedIdTranslateResponse = { message?: string | undefined; /** * A background job keeps track of the progress of an asynchronous task, e.g * * @remarks * bulk archiving media, translating media, etc. */ backgroundJobStatus?: PostMediasMediaHashedIdTranslateBackgroundJobStatus | undefined; }; /** @internal */ export type PostMediasMediaHashedIdTranslateRequestBody$Outbound = { target_language: string; source_language?: string | undefined; }; /** @internal */ export declare const PostMediasMediaHashedIdTranslateRequestBody$outboundSchema: z.ZodType; export declare function postMediasMediaHashedIdTranslateRequestBodyToJSON(postMediasMediaHashedIdTranslateRequestBody: PostMediasMediaHashedIdTranslateRequestBody): string; /** @internal */ export type PostMediasMediaHashedIdTranslateRequest$Outbound = { mediaHashedId: string; RequestBody?: PostMediasMediaHashedIdTranslateRequestBody$Outbound | undefined; }; /** @internal */ export declare const PostMediasMediaHashedIdTranslateRequest$outboundSchema: z.ZodType; export declare function postMediasMediaHashedIdTranslateRequestToJSON(postMediasMediaHashedIdTranslateRequest: PostMediasMediaHashedIdTranslateRequest): string; /** @internal */ export declare const PostMediasMediaHashedIdTranslateStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PostMediasMediaHashedIdTranslateBackgroundJobStatus$inboundSchema: z.ZodType; export declare function postMediasMediaHashedIdTranslateBackgroundJobStatusFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostMediasMediaHashedIdTranslateResponse$inboundSchema: z.ZodType; export declare function postMediasMediaHashedIdTranslateResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=postmediasmediahashedidtranslate.d.ts.map