import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Attestation, Attestation$Outbound } from "./attestation.js"; import { PlaybackPolicy, PlaybackPolicy$Outbound } from "./playbackpolicy.js"; export declare enum PlaybackInfoType { Live = "live", Vod = "vod", Recording = "recording" } export declare enum Live { Zero = 0, One = 1 } /** * Human Readable Name */ export declare enum Hrn { HlsTs = "HLS (TS)", Mp4 = "MP4", WebRTCH264 = "WebRTC (H264)", FlvH264 = "FLV (H264)", ThumbnailJPEG = "Thumbnail (JPEG)", ThumbnailPNG = "Thumbnail (PNG)", Thumbnails = "Thumbnails" } export declare enum PlaybackInfoSchemasType { Html5ApplicationVndAppleMpegurl = "html5/application/vnd.apple.mpegurl", Html5VideoMp4 = "html5/video/mp4", Html5VideoH264 = "html5/video/h264", VideoXFlv = "video/x-flv", ImageJpeg = "image/jpeg", ImagePng = "image/png", TextVtt = "text/vtt" } export type PlaybackInfoSource = { /** * Human Readable Name */ hrn: Hrn; type: PlaybackInfoSchemasType; url: string; size?: number | undefined; width?: number | undefined; height?: number | undefined; bitrate?: number | undefined; }; export declare enum PlaybackInfoHrn { HlsTs = "HLS (TS)" } export declare enum PlaybackInfoSchemasMetaType { Html5ApplicationVndAppleMpegurl = "html5/application/vnd.apple.mpegurl" } export type DvrPlayback = { hrn?: PlaybackInfoHrn | undefined; type?: PlaybackInfoSchemasMetaType | undefined; url?: string | undefined; error?: string | undefined; }; export type Meta = { live?: Live | undefined; /** * Whether the playback policy for an asset or stream is public or signed */ playbackPolicy?: PlaybackPolicy | null | undefined; source: Array; dvrPlayback?: Array | undefined; attestation?: Attestation | undefined; }; export type PlaybackInfo = { type: PlaybackInfoType; meta: Meta; }; /** @internal */ export declare const PlaybackInfoType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PlaybackInfoType$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PlaybackInfoType$ { /** @deprecated use `PlaybackInfoType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `PlaybackInfoType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const Live$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Live$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Live$ { /** @deprecated use `Live$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `Live$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const Hrn$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Hrn$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Hrn$ { /** @deprecated use `Hrn$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `Hrn$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const PlaybackInfoSchemasType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PlaybackInfoSchemasType$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PlaybackInfoSchemasType$ { /** @deprecated use `PlaybackInfoSchemasType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `PlaybackInfoSchemasType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const PlaybackInfoSource$inboundSchema: z.ZodType; /** @internal */ export type PlaybackInfoSource$Outbound = { hrn: string; type: string; url: string; size?: number | undefined; width?: number | undefined; height?: number | undefined; bitrate?: number | undefined; }; /** @internal */ export declare const PlaybackInfoSource$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PlaybackInfoSource$ { /** @deprecated use `PlaybackInfoSource$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PlaybackInfoSource$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `PlaybackInfoSource$Outbound` instead. */ type Outbound = PlaybackInfoSource$Outbound; } export declare function playbackInfoSourceToJSON(playbackInfoSource: PlaybackInfoSource): string; export declare function playbackInfoSourceFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PlaybackInfoHrn$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PlaybackInfoHrn$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PlaybackInfoHrn$ { /** @deprecated use `PlaybackInfoHrn$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `PlaybackInfoHrn$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const PlaybackInfoSchemasMetaType$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PlaybackInfoSchemasMetaType$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PlaybackInfoSchemasMetaType$ { /** @deprecated use `PlaybackInfoSchemasMetaType$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `PlaybackInfoSchemasMetaType$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const DvrPlayback$inboundSchema: z.ZodType; /** @internal */ export type DvrPlayback$Outbound = { hrn?: string | undefined; type?: string | undefined; url?: string | undefined; error?: string | undefined; }; /** @internal */ export declare const DvrPlayback$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace DvrPlayback$ { /** @deprecated use `DvrPlayback$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DvrPlayback$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DvrPlayback$Outbound` instead. */ type Outbound = DvrPlayback$Outbound; } export declare function dvrPlaybackToJSON(dvrPlayback: DvrPlayback): string; export declare function dvrPlaybackFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Meta$inboundSchema: z.ZodType; /** @internal */ export type Meta$Outbound = { live?: number | undefined; playbackPolicy?: PlaybackPolicy$Outbound | null | undefined; source: Array; dvrPlayback?: Array | undefined; attestation?: Attestation$Outbound | undefined; }; /** @internal */ export declare const Meta$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Meta$ { /** @deprecated use `Meta$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Meta$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Meta$Outbound` instead. */ type Outbound = Meta$Outbound; } export declare function metaToJSON(meta: Meta): string; export declare function metaFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PlaybackInfo$inboundSchema: z.ZodType; /** @internal */ export type PlaybackInfo$Outbound = { type: string; meta: Meta$Outbound; }; /** @internal */ export declare const PlaybackInfo$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PlaybackInfo$ { /** @deprecated use `PlaybackInfo$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PlaybackInfo$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `PlaybackInfo$Outbound` instead. */ type Outbound = PlaybackInfo$Outbound; } export declare function playbackInfoToJSON(playbackInfo: PlaybackInfo): string; export declare function playbackInfoFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=playbackinfo.d.ts.map