import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type PostMediasMediaIdCustomizationsVideoThumbnailRequest = { /** * If set to false, removes the “Click to Play” button on video thumbnails. */ clickToPlayButton?: boolean | undefined; }; export type PostMediasMediaIdCustomizationsSocialbarV1Request = { buttons?: string | undefined; showTweetCount?: boolean | undefined; tweetText?: string | undefined; height?: number | undefined; }; export type PostMediasMediaIdCustomizationsChapterListRequest = { id?: string | undefined; title?: string | undefined; time?: string | undefined; deleted?: string | undefined; }; export type PostMediasMediaIdCustomizationsChaptersRequest = { visibleOnLoad?: boolean | undefined; chapterList?: Array | undefined; on?: boolean | undefined; }; /** * The time when the post-roll should be displayed. Can be a string like "end" or a number representing seconds. */ export type PostMediasMediaIdCustomizationsTime = string | number; export type PostMediasMediaIdCustomizationsStyleRequest = { /** * The background color of the post-roll. */ backgroundColor?: string | undefined; }; /** * Adds a Call To Action to your Video */ export type PostMediasMediaIdCustomizationsPostRollV1Request = { /** * If set to true, allows the video to be rewatched. */ rewatch?: boolean | undefined; /** * The URL of the text to be displayed. */ text?: string | undefined; /** * The URL of the link to be displayed. */ link?: string | undefined; /** * The time when the post-roll should be displayed. Can be a string like "end" or a number representing seconds. */ time?: string | number | undefined; /** * If set to true, the post-roll will automatically adjust its size. */ autoSize?: boolean | undefined; style?: PostMediasMediaIdCustomizationsStyleRequest | undefined; /** * The type of call-to-action to be displayed. Typically set to "text". Other options are "image" which allows for "altText", and "html". */ ctaType?: string | undefined; /** * If set to true, the post-roll is enabled. */ on?: boolean | undefined; /** * The key used for tracking conversion opportunities. */ conversionOpportunityKey?: string | undefined; }; /** * Enables closed captions for the video */ export type PostMediasMediaIdCustomizationsCaptionsV1Request = { /** * If set to true, the captions plugin is enabled and captions controls will be available to viewers. */ on?: boolean | undefined; /** * If set to true, captions will be turned on automatically when the video loads. Only takes effect when the captions plugin is enabled. */ onByDefault?: boolean | undefined; }; export type PostMediasMediaIdCustomizationsPluginRequest = { videoThumbnail?: PostMediasMediaIdCustomizationsVideoThumbnailRequest | undefined; socialbarV1?: PostMediasMediaIdCustomizationsSocialbarV1Request | undefined; chapters?: PostMediasMediaIdCustomizationsChaptersRequest | undefined; /** * Adds a Call To Action to your Video */ postRollV1?: PostMediasMediaIdCustomizationsPostRollV1Request | undefined; /** * Enables closed captions for the video */ captionsV1?: PostMediasMediaIdCustomizationsCaptionsV1Request | undefined; }; /** * Examples: * * @remarks * ```json * { * "minWidth": 400, * "maxWidth": 960 * } * ``` * ```json * { * "minHeight": 300, * "maxHeight": 450 * } * ``` */ export type PostMediasMediaIdCustomizationsVideoFoam = { /** * Minimum width the video can be resized to. */ minWidth?: number | undefined; /** * Maximum width the video can be resized to. */ maxWidth?: number | undefined; /** * Minimum height the video can be resized to. */ minHeight?: number | undefined; /** * Maximum height the video can be resized to. */ maxHeight?: number | undefined; }; /** * When set to true, the video will adjust its size according to its parent element. It can also be an object specifying min/max width or height. */ export type PostMediasMediaIdCustomizationsVideoFoamUnion = boolean | PostMediasMediaIdCustomizationsVideoFoam; /** * A collection of settings you can apply to a video to change its appearance and * * @remarks * behavior. */ export type PostMediasMediaIdCustomizationsRequestBody = { /** * If set to true, the video will play as soon as it’s ready. Note that autoplay might not work on some devices and browsers. */ autoPlay?: boolean | undefined; /** * If set to true, controls like the big play button, playbar, volume, etc. will be visible as soon as the video is embedded. */ controlsVisibleOnLoad?: boolean | undefined; /** * If set to false, the option to “Copy Link and Thumbnail” will be removed when right-clicking on the video. */ copyLinkAndThumbnailEnabled?: boolean | undefined; /** * If set to true, data for each viewing session will not be tracked. */ doNotTrack?: boolean | undefined; /** * Associate a specific email address with this video’s viewing sessions. */ email?: string | undefined; /** * Determines what happens when the video ends. Options are default (stays on the last frame), reset (shows thumbnail and controls), and loop (plays again from the start). */ endVideoBehavior?: string | undefined; /** * If set to true, the video will try to play in a pseudo-fullscreen mode on certain mobile devices. */ fakeFullscreen?: boolean | undefined; /** * Resizes the video when there's a discrepancy between its aspect ratio and that of its parent container. Options are contain, cover, fill, and none. */ fitStrategy?: string | undefined; /** * If set to true, the fullscreen button will be available as a video control. */ fullscreenButton?: boolean | undefined; /** * If set to false, the video will not automatically go to fullscreen mode on mobile when rotated to landscape. */ fullscreenOnRotateToLandscape?: boolean | undefined; /** * If set to false, the key moments feature will be disabled. */ keyMoments?: boolean | undefined; /** * If set to true, the video will start in a muted state. */ muted?: boolean | undefined; /** * If set to false, the playback speed controls in the settings menu will be hidden. */ playbackRateControl?: boolean | undefined; /** * If set to true, the playbar will be available. If set to false, it will be hidden. */ playbar?: boolean | undefined; /** * Indicates if the play button is visible. */ playButton?: boolean | undefined; /** * Changes the base color of the player. Expects a hexadecimal rgb string. */ playerColor?: string | undefined; /** * Enables the use of specially crafted links on the page to associate with a video, turning them into a playlist. */ playlistLinks?: boolean | undefined; /** * If set to true and this video has a playlist, it will loop back to the first video after the last one has finished. */ playlistLoop?: boolean | undefined; /** * If set to false, videos will play within the native mobile player. */ playsinline?: boolean | undefined; /** * If set to false, animations for the Pause and Play symbols will be removed. */ playPauseNotifier?: boolean | undefined; /** * If set to false for a muted autoplay video, the video won't pause when out of view. */ playSuspendedOffScreen?: boolean | undefined; plugin?: PostMediasMediaIdCustomizationsPluginRequest | undefined; /** * Sets the video’s preload property. Possible values are metadata, auto, none, true, and false. */ preload?: string | undefined; /** * If set to false, the video quality selector in the settings menu will be hidden. */ qualityControl?: boolean | undefined; /** * Specifies the maximum quality the video will play at. */ qualityMax?: number | undefined; /** * Specifies the minimum quality the video will play at. */ qualityMin?: number | undefined; /** * Determines if the video should resume from where the viewer left off. Options are true, false, and auto. */ resumable?: string | undefined; /** * If set to true, the video’s metadata will be injected into the page’s markup for SEO. */ seo?: boolean | undefined; /** * If set to true, the settings control will be available. */ settingsControl?: boolean | undefined; /** * Determines how videos handle autoplay in contexts where normal autoplay might be blocked. Options are true, allow, and false. */ silentAutoPlay?: string | undefined; smallPlayButton?: boolean | undefined; /** * Overrides the thumbnail image that appears before the video plays. */ stillUrl?: string | undefined; /** * Sets the starting time of the video. */ time?: string | undefined; /** * Sets the Thumbnail Alt Text for the media. */ thumbnailAltText?: string | undefined; /** * When set to true, the video will adjust its size according to its parent element. It can also be an object specifying min/max width or height. */ videoFoam?: boolean | PostMediasMediaIdCustomizationsVideoFoam | undefined; /** * Sets the volume of the video. */ volume?: number | undefined; /** * When set to true, a volume control is available over the video. */ volumeControl?: boolean | undefined; /** * If set to transparent, the background behind the player will be transparent instead of black. */ wmode?: string | undefined; }; export type PostMediasMediaIdCustomizationsRequest = { /** * The hashed ID of the video. */ mediaId: string; requestBody: PostMediasMediaIdCustomizationsRequestBody; }; export type PostMediasMediaIdCustomizationsPasswordProtectedVideo = { on?: string | undefined; src?: string | undefined; challenge?: string | undefined; async?: string | undefined; }; export type PostMediasMediaIdCustomizationsVideoThumbnailResponse = { clickToPlayButton?: string | undefined; }; export type PostMediasMediaIdCustomizationsSocialbarV1Response = { buttons?: string | undefined; showTweetCount?: string | undefined; tweetText?: string | undefined; height?: string | undefined; }; export type PostMediasMediaIdCustomizationsChapterListResponse = { id?: string | undefined; title?: string | undefined; time?: string | undefined; deleted?: string | undefined; }; export type PostMediasMediaIdCustomizationsChaptersResponse = { visibleOnLoad?: string | undefined; chapterList?: Array | undefined; on?: string | undefined; }; export type PostMediasMediaIdCustomizationsStyleResponse = { /** * The background color of the post-roll. */ backgroundColor?: string | undefined; }; /** * Adds a Call To Action to your Video (response format) */ export type PostMediasMediaIdCustomizationsPostRollV1Response = { /** * String representation of whether the video can be rewatched. */ rewatch?: string | undefined; /** * The URL of the text to be displayed. */ text?: string | undefined; /** * The URL of the link to be displayed. */ link?: string | undefined; /** * The time when the post-roll should be displayed as a string. */ time?: string | undefined; /** * String representation of whether the post-roll will automatically adjust its size. */ autoSize?: string | undefined; style?: PostMediasMediaIdCustomizationsStyleResponse | undefined; /** * The type of call-to-action to be displayed. */ ctaType?: string | undefined; /** * String representation of whether the post-roll is enabled. */ on?: string | undefined; /** * The key used for tracking conversion opportunities. */ conversionOpportunityKey?: string | undefined; }; /** * Captions plugin configuration (response format) */ export type PostMediasMediaIdCustomizationsCaptionsV1Response = { /** * String representation of whether the captions plugin is enabled ("true" or "false"). */ on?: string | undefined; /** * String representation of whether captions are turned on by default ("true" or "false"). */ onByDefault?: string | undefined; }; export type PostMediasMediaIdCustomizationsPluginResponse = { passwordProtectedVideo?: PostMediasMediaIdCustomizationsPasswordProtectedVideo | undefined; videoThumbnail?: PostMediasMediaIdCustomizationsVideoThumbnailResponse | undefined; socialbarV1?: PostMediasMediaIdCustomizationsSocialbarV1Response | undefined; chapters?: PostMediasMediaIdCustomizationsChaptersResponse | undefined; /** * Adds a Call To Action to your Video (response format) */ postRollV1?: PostMediasMediaIdCustomizationsPostRollV1Response | undefined; /** * Captions plugin configuration (response format) */ captionsV1?: PostMediasMediaIdCustomizationsCaptionsV1Response | undefined; }; export type PostMediasMediaIdCustomizationsPrivate = { passwordProtectOn?: string | undefined; showComments?: string | undefined; }; export type PostMediasMediaIdCustomizationsEncrypted = { passwordProtectPassword?: string | undefined; }; /** * Successful response */ export type PostMediasMediaIdCustomizationsResponse = { /** * The color of the video player. */ playerColor?: string | undefined; stillUrl?: string | undefined; /** * Whether the video should auto play or not. */ autoPlay?: string | undefined; bpbTime?: string | undefined; controlsVisibleOnLoad?: string | undefined; /** * Behavior of the video at the end. */ endVideoBehavior?: string | undefined; fullscreenButton?: string | undefined; branding?: string | undefined; playbar?: string | undefined; /** * Indicates if the play button is visible. */ playButton?: string | undefined; settingsControl?: string | undefined; showCustomerLogo?: string | undefined; qualityControl?: string | undefined; playbackRateControl?: string | undefined; smallPlayButton?: string | undefined; spherical?: string | undefined; volumeControl?: string | undefined; copyLinkAndThumbnailEnabled?: string | undefined; doNotTrack?: string | undefined; email?: string | undefined; fitStrategy?: string | undefined; fullscreenOnRotateToLandscape?: string | undefined; muted?: string | undefined; playlistLinks?: string | undefined; playlistLoop?: string | undefined; playsinline?: string | undefined; playPauseNotifier?: string | undefined; playSuspendedOffScreen?: string | undefined; preload?: string | undefined; qualityMax?: string | undefined; qualityMin?: string | undefined; resumable?: string | undefined; seo?: string | undefined; silentAutoPlay?: string | undefined; time?: string | undefined; thumbnailAltText?: string | undefined; videoFoam?: string | undefined; volume?: string | undefined; wmode?: string | undefined; /** * String representation of whether the key moments feature is enabled. */ keyMoments?: string | undefined; plugin?: PostMediasMediaIdCustomizationsPluginResponse | undefined; private?: PostMediasMediaIdCustomizationsPrivate | undefined; encrypted?: PostMediasMediaIdCustomizationsEncrypted | undefined; }; /** @internal */ export type PostMediasMediaIdCustomizationsVideoThumbnailRequest$Outbound = { clickToPlayButton?: boolean | undefined; }; /** @internal */ export declare const PostMediasMediaIdCustomizationsVideoThumbnailRequest$outboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsVideoThumbnailRequestToJSON(postMediasMediaIdCustomizationsVideoThumbnailRequest: PostMediasMediaIdCustomizationsVideoThumbnailRequest): string; /** @internal */ export type PostMediasMediaIdCustomizationsSocialbarV1Request$Outbound = { buttons?: string | undefined; showTweetCount?: boolean | undefined; tweetText?: string | undefined; height?: number | undefined; }; /** @internal */ export declare const PostMediasMediaIdCustomizationsSocialbarV1Request$outboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsSocialbarV1RequestToJSON(postMediasMediaIdCustomizationsSocialbarV1Request: PostMediasMediaIdCustomizationsSocialbarV1Request): string; /** @internal */ export type PostMediasMediaIdCustomizationsChapterListRequest$Outbound = { id?: string | undefined; title?: string | undefined; time?: string | undefined; deleted?: string | undefined; }; /** @internal */ export declare const PostMediasMediaIdCustomizationsChapterListRequest$outboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsChapterListRequestToJSON(postMediasMediaIdCustomizationsChapterListRequest: PostMediasMediaIdCustomizationsChapterListRequest): string; /** @internal */ export type PostMediasMediaIdCustomizationsChaptersRequest$Outbound = { visibleOnLoad?: boolean | undefined; chapterList?: Array | undefined; on?: boolean | undefined; }; /** @internal */ export declare const PostMediasMediaIdCustomizationsChaptersRequest$outboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsChaptersRequestToJSON(postMediasMediaIdCustomizationsChaptersRequest: PostMediasMediaIdCustomizationsChaptersRequest): string; /** @internal */ export type PostMediasMediaIdCustomizationsTime$Outbound = string | number; /** @internal */ export declare const PostMediasMediaIdCustomizationsTime$outboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsTimeToJSON(postMediasMediaIdCustomizationsTime: PostMediasMediaIdCustomizationsTime): string; /** @internal */ export type PostMediasMediaIdCustomizationsStyleRequest$Outbound = { backgroundColor?: string | undefined; }; /** @internal */ export declare const PostMediasMediaIdCustomizationsStyleRequest$outboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsStyleRequestToJSON(postMediasMediaIdCustomizationsStyleRequest: PostMediasMediaIdCustomizationsStyleRequest): string; /** @internal */ export type PostMediasMediaIdCustomizationsPostRollV1Request$Outbound = { rewatch?: boolean | undefined; text?: string | undefined; link?: string | undefined; time?: string | number | undefined; autoSize?: boolean | undefined; style?: PostMediasMediaIdCustomizationsStyleRequest$Outbound | undefined; ctaType?: string | undefined; on?: boolean | undefined; conversionOpportunityKey?: string | undefined; }; /** @internal */ export declare const PostMediasMediaIdCustomizationsPostRollV1Request$outboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsPostRollV1RequestToJSON(postMediasMediaIdCustomizationsPostRollV1Request: PostMediasMediaIdCustomizationsPostRollV1Request): string; /** @internal */ export type PostMediasMediaIdCustomizationsCaptionsV1Request$Outbound = { on?: boolean | undefined; onByDefault?: boolean | undefined; }; /** @internal */ export declare const PostMediasMediaIdCustomizationsCaptionsV1Request$outboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsCaptionsV1RequestToJSON(postMediasMediaIdCustomizationsCaptionsV1Request: PostMediasMediaIdCustomizationsCaptionsV1Request): string; /** @internal */ export type PostMediasMediaIdCustomizationsPluginRequest$Outbound = { videoThumbnail?: PostMediasMediaIdCustomizationsVideoThumbnailRequest$Outbound | undefined; "socialbar-v1"?: PostMediasMediaIdCustomizationsSocialbarV1Request$Outbound | undefined; chapters?: PostMediasMediaIdCustomizationsChaptersRequest$Outbound | undefined; "postRoll-v1"?: PostMediasMediaIdCustomizationsPostRollV1Request$Outbound | undefined; "captions-v1"?: PostMediasMediaIdCustomizationsCaptionsV1Request$Outbound | undefined; }; /** @internal */ export declare const PostMediasMediaIdCustomizationsPluginRequest$outboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsPluginRequestToJSON(postMediasMediaIdCustomizationsPluginRequest: PostMediasMediaIdCustomizationsPluginRequest): string; /** @internal */ export type PostMediasMediaIdCustomizationsVideoFoam$Outbound = { minWidth?: number | undefined; maxWidth?: number | undefined; minHeight?: number | undefined; maxHeight?: number | undefined; }; /** @internal */ export declare const PostMediasMediaIdCustomizationsVideoFoam$outboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsVideoFoamToJSON(postMediasMediaIdCustomizationsVideoFoam: PostMediasMediaIdCustomizationsVideoFoam): string; /** @internal */ export type PostMediasMediaIdCustomizationsVideoFoamUnion$Outbound = boolean | PostMediasMediaIdCustomizationsVideoFoam$Outbound; /** @internal */ export declare const PostMediasMediaIdCustomizationsVideoFoamUnion$outboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsVideoFoamUnionToJSON(postMediasMediaIdCustomizationsVideoFoamUnion: PostMediasMediaIdCustomizationsVideoFoamUnion): string; /** @internal */ export type PostMediasMediaIdCustomizationsRequestBody$Outbound = { autoPlay?: boolean | undefined; controlsVisibleOnLoad?: boolean | undefined; copyLinkAndThumbnailEnabled?: boolean | undefined; doNotTrack?: boolean | undefined; email?: string | undefined; endVideoBehavior?: string | undefined; fakeFullscreen?: boolean | undefined; fitStrategy?: string | undefined; fullscreenButton?: boolean | undefined; fullscreenOnRotateToLandscape?: boolean | undefined; keyMoments?: boolean | undefined; muted?: boolean | undefined; playbackRateControl?: boolean | undefined; playbar?: boolean | undefined; playButton?: boolean | undefined; playerColor?: string | undefined; playlistLinks?: boolean | undefined; playlistLoop?: boolean | undefined; playsinline?: boolean | undefined; playPauseNotifier?: boolean | undefined; playSuspendedOffScreen?: boolean | undefined; plugin?: PostMediasMediaIdCustomizationsPluginRequest$Outbound | undefined; preload?: string | undefined; qualityControl?: boolean | undefined; qualityMax?: number | undefined; qualityMin?: number | undefined; resumable?: string | undefined; seo?: boolean | undefined; settingsControl?: boolean | undefined; silentAutoPlay?: string | undefined; smallPlayButton?: boolean | undefined; stillUrl?: string | undefined; time?: string | undefined; thumbnailAltText?: string | undefined; videoFoam?: boolean | PostMediasMediaIdCustomizationsVideoFoam$Outbound | undefined; volume?: number | undefined; volumeControl?: boolean | undefined; wmode?: string | undefined; }; /** @internal */ export declare const PostMediasMediaIdCustomizationsRequestBody$outboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsRequestBodyToJSON(postMediasMediaIdCustomizationsRequestBody: PostMediasMediaIdCustomizationsRequestBody): string; /** @internal */ export type PostMediasMediaIdCustomizationsRequest$Outbound = { mediaId: string; RequestBody: PostMediasMediaIdCustomizationsRequestBody$Outbound; }; /** @internal */ export declare const PostMediasMediaIdCustomizationsRequest$outboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsRequestToJSON(postMediasMediaIdCustomizationsRequest: PostMediasMediaIdCustomizationsRequest): string; /** @internal */ export declare const PostMediasMediaIdCustomizationsPasswordProtectedVideo$inboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsPasswordProtectedVideoFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostMediasMediaIdCustomizationsVideoThumbnailResponse$inboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsVideoThumbnailResponseFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostMediasMediaIdCustomizationsSocialbarV1Response$inboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsSocialbarV1ResponseFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostMediasMediaIdCustomizationsChapterListResponse$inboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsChapterListResponseFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostMediasMediaIdCustomizationsChaptersResponse$inboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsChaptersResponseFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostMediasMediaIdCustomizationsStyleResponse$inboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsStyleResponseFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostMediasMediaIdCustomizationsPostRollV1Response$inboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsPostRollV1ResponseFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostMediasMediaIdCustomizationsCaptionsV1Response$inboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsCaptionsV1ResponseFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostMediasMediaIdCustomizationsPluginResponse$inboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsPluginResponseFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostMediasMediaIdCustomizationsPrivate$inboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsPrivateFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostMediasMediaIdCustomizationsEncrypted$inboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsEncryptedFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PostMediasMediaIdCustomizationsResponse$inboundSchema: z.ZodType; export declare function postMediasMediaIdCustomizationsResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=postmediasmediaidcustomizations.d.ts.map