@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.
@@ -1,3 +1,3 @@
1
- export { C as CompletedShotsResult, D as DEFAULT_STORYBOARD_WIDTH, E as ErroredShotsResult, H as HeatmapOptions, a as HeatmapResponse, b as Hotspot, c as HotspotOptions, d as HotspotResponse, P as PendingShotsResult, S as Shot, e as ShotRequestOptions, f as ShotsResult, T as ThumbnailOptions, g as TranscriptFetchOptions, h as TranscriptResult, V as VTTCue, j as VTTCueBudgetChunkingOptions, k as VTTDurationChunk, l as VTTDurationChunkingOptions, W as WaitForShotsOptions, m as buildTranscriptUrl, n as buildVttFromCueBlocks, o as buildVttFromTranslatedCueBlocks, p as chunkByTokens, q as chunkText, r as chunkVTTCues, s as chunkVTTCuesByBudget, t as chunkVTTCuesByDuration, u as concatenateVttSegments, v as estimateTokenCount, w as extractTextFromVTT, x as extractTimestampedTranscript, y as fetchTranscriptForAsset, z as findCaptionTrack, A as getHeatmapForAsset, B as getHeatmapForPlaybackId, F as getHeatmapForVideo, G as getHotspotsForAsset, I as getHotspotsForPlaybackId, J as getHotspotsForVideo, K as getReadyTextTracks, L as getShotsForAsset, M as getStoryboardUrl, N as getThumbnailUrls, O as parseVTTCues, Q as replaceCueText, R as requestShotsForAsset, U as secondsToTimestamp, X as splitVttPreambleAndCueBlocks, Y as vttTimestampToSeconds, Z as waitForShotsForAsset } from '../index-DLhfJsOd.js';
2
- import '../types-BRbaGW3t.js';
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';
@@ -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 = "[24:hours]", credentials } = options;
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 = "[24:hours]",
580
+ timeframe = "7:days",
581
581
  credentials
582
582
  } = options;
583
583
  const muxClient = await getMuxClientFromEnv(credentials);