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 GetMediasMediaHashedIdRequest = { /** * The hashed ID of the media. */ mediaHashedId: string; /** * Format for media descriptions */ descriptionFormat?: "markdown" | undefined; }; /** * A string representing what type of media this is. */ export declare const GetMediasMediaHashedIdType: { readonly Video: "Video"; readonly Audio: "Audio"; readonly Image: "Image"; readonly PdfDocument: "PdfDocument"; readonly MicrosoftOfficeDocument: "MicrosoftOfficeDocument"; readonly Swf: "Swf"; readonly UnknownType: "UnknownType"; }; /** * A string representing what type of media this is. */ export type GetMediasMediaHashedIdType = ClosedEnum; /** * Post upload processing status. - `queued`: the file is waiting in the queue to be processed. - `processing`: the file is actively being processed. - `ready`: the file has been fully processed and is ready for embedding and viewing. - `failed`: the file was unable to be processed (usually a format or size error). * * @remarks */ export declare const GetMediasMediaHashedIdStatus: { readonly Queued: "queued"; readonly Processing: "processing"; readonly Ready: "ready"; readonly Failed: "failed"; }; /** * Post upload processing status. - `queued`: the file is waiting in the queue to be processed. - `processing`: the file is actively being processed. - `ready`: the file has been fully processed and is ready for embedding and viewing. - `failed`: the file was unable to be processed (usually a format or size error). * * @remarks */ export type GetMediasMediaHashedIdStatus = ClosedEnum; export type GetMediasMediaHashedIdThumbnail = { url?: string | undefined; width?: number | undefined; height?: number | undefined; }; export type GetMediasMediaHashedIdFolder = { /** * A unique numeric identifier for the folder within the system. */ id?: number | undefined; /** * The folder’s display name. */ name?: string | undefined; /** * A private hashed id, uniquely identifying the folder within the system. */ hashedId?: string | undefined; }; export type GetMediasMediaHashedIdAsset = { /** * A direct-access URL to the content of the asset. */ url?: string | undefined; /** * The width of this specific asset, if applicable. */ width?: number | null | undefined; /** * The height of this specific asset, if applicable. */ height?: number | null | undefined; /** * The size of the asset file that’s referenced by url, measured in bytes. */ fileSize?: number | null | undefined; /** * The asset’s content type. */ contentType?: string | null | undefined; /** * The internal type of the asset, describing how the asset should be used. Values can include OriginalFile, FlashVideoFile, MdFlashVideoFile, HdFlashVideoFile, Mp4VideoFile, MdMp4VideoFile, HdMp4VideoFile, IPhoneVideoFile, StillImageFile, SwfFile, Mp3AudioFile, and LargeImageFile. * * @remarks */ type?: string | undefined; }; /** * A subfolder within a folder that contains media. */ export type GetMediasMediaHashedIdSubfolder = { /** * A unique alphanumeric identifier for this subfolder. */ hashedId: string; /** * The display name of the subfolder. */ name?: string | null | undefined; /** * A description for the subfolder. */ description?: string | null | undefined; /** * The position of this subfolder within its folder, used for ordering. */ position: number | null; /** * The date when the subfolder was created. */ created: Date | null; /** * The date when the subfolder was last modified. */ updated: Date | null; /** * 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 GetMediasMediaHashedIdTag = { /** * The display name of the tag. */ name?: string | undefined; }; /** * A media generally represents a video or an audio which can be embedded into your website. * * @remarks * * CDN-backed medias are accessible using this url structure: https://fast.wistia.com/embed/medias/{hashed_id}.m3u8. * For more information, see https://docs.wistia.com/docs/asset-urls#getting-hls-assets. */ export type GetMediasMediaHashedIdResponse = { /** * A unique numeric identifier for the media within the system. */ id?: number | undefined; /** * The display name of the media. */ name?: string | undefined; /** * A string representing what type of media this is. */ type?: GetMediasMediaHashedIdType | undefined; /** * Whether or not the media is archived, either true or false. */ archived?: boolean | undefined; /** * The date when the media was originally uploaded. */ created?: Date | undefined; /** * The date when the media was last changed. */ updated?: Date | undefined; /** * Specifies the length (in seconds) for audio and video files. Specifies number of pages in the document. Omitted for other types of media. */ duration?: number | null | undefined; /** * DEPRECATED: If you want to programmatically embed videos, follow the construct an embed code guide. * * @remarks * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ embedCode?: string | undefined; /** * A unique alphanumeric identifier for this media. */ hashedId?: string | undefined; /** * A description for the media which usually appears near the top of the sidebar on the media's page. */ description?: string | undefined; /** * A floating point value between 0 and 1 that indicates the progress of the processing for this file. */ progress?: number | undefined; /** * Post upload processing status. - `queued`: the file is waiting in the queue to be processed. - `processing`: the file is actively being processed. - `ready`: the file has been fully processed and is ready for embedding and viewing. - `failed`: the file was unable to be processed (usually a format or size error). * * @remarks */ status?: GetMediasMediaHashedIdStatus | undefined; /** * The title of the section in which the media appears. This attribute is omitted if the media is not in a section (default). */ section?: string | null | undefined; thumbnail?: GetMediasMediaHashedIdThumbnail | undefined; folder: GetMediasMediaHashedIdFolder | null; /** * An array of the assets available for this media. */ assets?: Array | undefined; /** * The subfolder (media group) in which the media appears. Null if the media is not in a subfolder. */ subfolder?: GetMediasMediaHashedIdSubfolder | undefined; /** * Tags associated with this media. */ tags?: Array | undefined; }; /** @internal */ export type GetMediasMediaHashedIdRequest$Outbound = { mediaHashedId: string; description_format?: "markdown" | undefined; }; /** @internal */ export declare const GetMediasMediaHashedIdRequest$outboundSchema: z.ZodType; export declare function getMediasMediaHashedIdRequestToJSON(getMediasMediaHashedIdRequest: GetMediasMediaHashedIdRequest): string; /** @internal */ export declare const GetMediasMediaHashedIdType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetMediasMediaHashedIdStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GetMediasMediaHashedIdThumbnail$inboundSchema: z.ZodType; export declare function getMediasMediaHashedIdThumbnailFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetMediasMediaHashedIdFolder$inboundSchema: z.ZodType; export declare function getMediasMediaHashedIdFolderFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetMediasMediaHashedIdAsset$inboundSchema: z.ZodType; export declare function getMediasMediaHashedIdAssetFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetMediasMediaHashedIdSubfolder$inboundSchema: z.ZodType; export declare function getMediasMediaHashedIdSubfolderFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetMediasMediaHashedIdTag$inboundSchema: z.ZodType; export declare function getMediasMediaHashedIdTagFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetMediasMediaHashedIdResponse$inboundSchema: z.ZodType; export declare function getMediasMediaHashedIdResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getmediasmediahashedid.d.ts.map