import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type PostMediasMediaHashedIdLocalizationsRequestBody = { /** * The language to localize the media to as a 3-character IETF language code. */ outputLanguage: string; /** * Whether to automatically enable the localization. */ autoEnable?: boolean | undefined; }; export type PostMediasMediaHashedIdLocalizationsRequest = { /** * The hashed ID of the media to create a localization for. */ mediaHashedId: string; requestBody?: PostMediasMediaHashedIdLocalizationsRequestBody | undefined; }; /** * The media that the localization is associated with. */ export type PostMediasMediaHashedIdLocalizationsSourceMedia = { /** * A unique alphanumeric identifier for this media. */ hashedId: string; /** * The name of the media. */ name: string; /** * The duration of the media in seconds. */ duration: number; /** * The date when the media was created. */ createdAt: Date; /** * The date when the media was last updated. */ updatedAt: Date; }; /** * The transcript for the localization. Selectively serialized in some endpoints. See properties for endpoint. */ export type PostMediasMediaHashedIdLocalizationsTranscript = { /** * A unique alphanumeric identifier for this transcript. */ hashedId: string; /** * The name of the language in English. */ languageName: string; /** * The name of the language in the language of the localization. */ nativeLanguageName: string; /** * The text of the transcript. */ text: string; /** * The date when the transcript was created. */ createdAt: Date; /** * The date when the transcript was last updated. */ updatedAt: Date; }; /** * A localization is a translation of a media into another language. * * @remarks */ export type PostMediasMediaHashedIdLocalizationsResponse = { /** * A unique alphanumeric identifier for this localization. */ hashedId: string; /** * A 3-character language code as specified by IETF. */ languageCode: string; /** * A 2-character language code as specified by ISO-639–2. */ iso6392LanguageCode: string; /** * The name of the language in English. */ languageName: string; /** * The name of the language in the language of the localization. */ nativeLanguageName: string; /** * The date when the localization was created. */ createdAt: Date; /** * The date when the localization was last updated. */ updatedAt: Date; /** * The date when the localization was ordered. */ orderedAt: Date | null; /** * The date when the localization was enabled. */ enabledAt: Date | null; /** * Whether or not the localization is enabled. */ enabled: boolean; /** * The media that the localization is associated with. */ sourceMedia: PostMediasMediaHashedIdLocalizationsSourceMedia; /** * The transcript for the localization. Selectively serialized in some endpoints. See properties for endpoint. */ transcript?: PostMediasMediaHashedIdLocalizationsTranscript | null | undefined; /** * Whether or not the dubbing will be automatically enabled when completed. */ autoEnableDubbing: boolean; /** * The expected number of minutes that will be billed for the dubbing. */ expectedBilledMinutes?: number | null | undefined; /** * The expected price per minute that will be billed for the dubbing. */ expectedBilledPricePerMinute?: number | null | undefined; /** * The expected total price that will be billed for the dubbing. */ expectedBilledPrice?: number | null | undefined; /** * The date when the dubbing was billed. */ billedAt?: Date | null | undefined; }; /** @internal */ export type PostMediasMediaHashedIdLocalizationsRequestBody$Outbound = { output_language: string; auto_enable: boolean; }; /** @internal */ export declare const PostMediasMediaHashedIdLocalizationsRequestBody$outboundSchema: z.ZodType; export declare function postMediasMediaHashedIdLocalizationsRequestBodyToJSON(postMediasMediaHashedIdLocalizationsRequestBody: PostMediasMediaHashedIdLocalizationsRequestBody): string; /** @internal */ export type PostMediasMediaHashedIdLocalizationsRequest$Outbound = { mediaHashedId: string; RequestBody?: PostMediasMediaHashedIdLocalizationsRequestBody$Outbound | undefined; }; /** @internal */ export declare const PostMediasMediaHashedIdLocalizationsRequest$outboundSchema: z.ZodType; export declare function postMediasMediaHashedIdLocalizationsRequestToJSON(postMediasMediaHashedIdLocalizationsRequest: PostMediasMediaHashedIdLocalizationsRequest): string; /** @internal */ export declare const PostMediasMediaHashedIdLocalizationsSourceMedia$inboundSchema: z.ZodType; export declare function postMediasMediaHashedIdLocalizationsSourceMediaFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostMediasMediaHashedIdLocalizationsTranscript$inboundSchema: z.ZodType; export declare function postMediasMediaHashedIdLocalizationsTranscriptFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostMediasMediaHashedIdLocalizationsResponse$inboundSchema: z.ZodType; export declare function postMediasMediaHashedIdLocalizationsResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=postmediasmediahashedidlocalizations.d.ts.map