import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export declare enum Type { Public = "public", Jwt = "jwt", Webhook = "webhook" } /** * Whether the playback policy for an asset or stream is public or signed */ export type PlaybackPolicy = { type: Type; /** * ID of the webhook to use for playback policy */ webhookId?: string | undefined; /** * User-defined webhook context */ webhookContext?: { [k: string]: any; } | undefined; /** * Interval (in seconds) at which the playback policy should be * * @remarks * refreshed (default 600 seconds) */ refreshInterval?: number | undefined; /** * List of allowed origins for CORS playback (://:, ://) */ allowedOrigins?: Array | undefined; }; /** @internal */ export declare const Type$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Type$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 Type$ { /** @deprecated use `Type$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum; /** @deprecated use `Type$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum; } /** @internal */ export declare const PlaybackPolicy$inboundSchema: z.ZodType; /** @internal */ export type PlaybackPolicy$Outbound = { type: string; webhookId?: string | undefined; webhookContext?: { [k: string]: any; } | undefined; refreshInterval?: number | undefined; allowedOrigins?: Array | undefined; }; /** @internal */ export declare const PlaybackPolicy$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 PlaybackPolicy$ { /** @deprecated use `PlaybackPolicy$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PlaybackPolicy$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `PlaybackPolicy$Outbound` instead. */ type Outbound = PlaybackPolicy$Outbound; } export declare function playbackPolicyToJSON(playbackPolicy: PlaybackPolicy): string; export declare function playbackPolicyFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=playbackpolicy.d.ts.map