UNPKG

@coursebuilder/core

Version:

Core package for Course Builder

50 lines (47 loc) 1.45 kB
import { z } from 'zod'; import { MuxAssetSchema } from '../schemas/mux.cjs'; declare const muxRequestHeaders: { Authorization: string; 'Content-Type': string; }; type MuxApiOptions = { passthrough?: string; test?: boolean; url?: string; transcription?: boolean; }; declare function addSrtTrackToMuxAsset({ assetId, srtUrl, }: { assetId?: string; srtUrl: string; }): Promise<any>; declare function deleteSrtTrackFromMuxAsset(assetId?: string): Promise<void | Response>; declare function getMuxAsset(assetId?: string | null): Promise<{ id: string; status: string; playback_ids: { id: string; policy: string; }[]; passthrough?: string | undefined; duration?: number | undefined; tracks?: { type: string; id: string; }[] | null | undefined; } | null>; declare function createMuxAsset(options?: MuxApiOptions): Promise<z.infer<typeof MuxAssetSchema>>; declare function getMuxOptions(options?: MuxApiOptions): { cors_origin: string; test: boolean; new_asset_settings: { passthrough?: string | undefined; master_access: string; max_resolution_tier: string; playback_policy: string[]; input: { url: string | undefined; }[]; mp4_support: string; }; }; export { addSrtTrackToMuxAsset, createMuxAsset, deleteSrtTrackFromMuxAsset, getMuxAsset, getMuxOptions, muxRequestHeaders };