import { APIResource } from "../../core/resource.js"; import * as Shared from "../shared.js"; import { APIPromise } from "../../core/api-promise.js"; import { RequestOptions } from "../../internal/request-options.js"; /** * Operations related to the manipulation of playback IDs, through which users are able to stream videos and live streams from Mux. */ export declare class PlaybackIds extends APIResource { /** * Retrieves the Identifier of the Asset or Live Stream associated with the * Playback ID. * * @example * ```ts * const playbackIds = await client.video.playbackIds.retrieve( * 'PLAYBACK_ID', * ); * ``` */ retrieve(playbackId: string, options?: RequestOptions): APIPromise; } export interface PlaybackIdsRetrieveResponse { /** * The Playback ID used to retrieve the corresponding asset or the live stream ID */ id: string; /** * Describes the Asset or LiveStream object associated with the playback ID. */ object: PlaybackIdsRetrieveResponse.Object; /** * - `public` playback IDs are accessible by constructing an HLS URL like * `https://stream.mux.com/${PLAYBACK_ID}` * * - `signed` playback IDs should be used with tokens * `https://stream.mux.com/${PLAYBACK_ID}?token={TOKEN}`. See * [Secure video playback](https://docs.mux.com/guides/secure-video-playback) for * details about creating tokens. * * - `drm` playback IDs are protected with DRM technologies. * [See DRM documentation for more details](https://docs.mux.com/guides/protect-videos-with-drm). */ policy: Shared.PlaybackPolicy; } export declare namespace PlaybackIdsRetrieveResponse { /** * Describes the Asset or LiveStream object associated with the playback ID. */ interface Object { /** * The identifier of the object. */ id: string; /** * Identifies the object type associated with the playback ID. */ type: 'asset' | 'live_stream'; } } export declare namespace PlaybackIds { export { type PlaybackIdsRetrieveResponse as PlaybackIdsRetrieveResponse }; } //# sourceMappingURL=playback-ids.d.ts.map