@mux/ai 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{index-DyzifniY.d.ts → index-BeX_4DL7.d.ts} +113 -8
- package/dist/{index-DLhfJsOd.d.ts → index-CuBu_u5-.d.ts} +14 -129
- package/dist/index.d.ts +5 -5
- package/dist/index.js +518 -56
- package/dist/index.js.map +1 -1
- package/dist/primitives/index.d.ts +2 -2
- package/dist/primitives/index.js +6 -6
- package/dist/primitives/index.js.map +1 -1
- package/dist/{types-BRbaGW3t.d.ts → shots-BFYOfBgN.d.ts} +116 -1
- package/dist/workflows/index.d.ts +2 -2
- package/dist/workflows/index.js +656 -49
- package/dist/workflows/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
1
|
+
export { D as DEFAULT_STORYBOARD_WIDTH, H as HeatmapOptions, a as HeatmapResponse, T as ThumbnailOptions, b as TranscriptFetchOptions, c as TranscriptResult, V as VTTCue, d as VTTCueBudgetChunkingOptions, e as VTTDurationChunk, f as VTTDurationChunkingOptions, g as buildTranscriptUrl, h as buildVttFromCueBlocks, j as buildVttFromTranslatedCueBlocks, k as chunkByTokens, l as chunkText, m as chunkVTTCues, n as chunkVTTCuesByBudget, o as chunkVTTCuesByDuration, p as concatenateVttSegments, q as estimateTokenCount, r as extractTextFromVTT, s as extractTimestampedTranscript, t as fetchTranscriptForAsset, u as findCaptionTrack, v as getHeatmapForAsset, w as getHeatmapForPlaybackId, x as getHeatmapForVideo, y as getReadyTextTracks, z as getStoryboardUrl, A as getThumbnailUrls, B as parseVTTCues, C as replaceCueText, E as secondsToTimestamp, F as splitVttPreambleAndCueBlocks, G as vttTimestampToSeconds } from '../index-CuBu_u5-.js';
|
|
2
|
+
export { o as CompletedShotsResult, p as ErroredShotsResult, H as Hotspot, q as HotspotOptions, r as HotspotResponse, s as PendingShotsResult, t as Shot, u as ShotRequestOptions, v as ShotsResult, w as WaitForShotsOptions, x as getHotspotsForAsset, y as getHotspotsForPlaybackId, z as getHotspotsForVideo, B as getShotsForAsset, D as requestShotsForAsset, F as waitForShotsForAsset } from '../shots-BFYOfBgN.js';
|
|
3
3
|
import '@mux/mux-node';
|
package/dist/primitives/index.js
CHANGED
|
@@ -524,16 +524,16 @@ async function getHeatmapForPlaybackId(playbackId, options = {}) {
|
|
|
524
524
|
}
|
|
525
525
|
function transformHeatmapResponse(response) {
|
|
526
526
|
return {
|
|
527
|
-
assetId: response.asset_id,
|
|
528
|
-
videoId: response.video_id,
|
|
529
|
-
playbackId: response.playback_id,
|
|
530
|
-
heatmap: response.heatmap,
|
|
527
|
+
assetId: response.data.asset_id,
|
|
528
|
+
videoId: response.data.video_id,
|
|
529
|
+
playbackId: response.data.playback_id,
|
|
530
|
+
heatmap: response.data.heatmap,
|
|
531
531
|
timeframe: response.timeframe
|
|
532
532
|
};
|
|
533
533
|
}
|
|
534
534
|
async function fetchHeatmap(identifierType, id, options) {
|
|
535
535
|
"use step";
|
|
536
|
-
const { timeframe = "
|
|
536
|
+
const { timeframe = "7:days", credentials } = options;
|
|
537
537
|
const muxClient = await getMuxClientFromEnv(credentials);
|
|
538
538
|
const mux = await muxClient.createClient();
|
|
539
539
|
const queryParams = new URLSearchParams();
|
|
@@ -577,7 +577,7 @@ async function fetchHotspots(identifierType, id, options) {
|
|
|
577
577
|
limit = 5,
|
|
578
578
|
orderDirection = "desc",
|
|
579
579
|
orderBy = "score",
|
|
580
|
-
timeframe = "
|
|
580
|
+
timeframe = "7:days",
|
|
581
581
|
credentials
|
|
582
582
|
} = options;
|
|
583
583
|
const muxClient = await getMuxClientFromEnv(credentials);
|