@mux/ai 0.51.0 → 0.53.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/dist/{index-BotaPu5M.d.ts → index-BbxJ0X25.d.ts} +297 -35
- package/dist/index-cbaPe-aE.d.ts +225 -0
- package/dist/index.d.ts +9 -5
- package/dist/index.js +773 -276
- package/dist/index.js.map +1 -1
- package/dist/primitives/index.d.ts +2 -2
- package/dist/primitives/index.js +47 -33
- package/dist/primitives/index.js.map +1 -1
- package/dist/{shots-3wmvZnUV.d.ts → transcripts-BCtzC8hZ.d.ts} +200 -1
- package/dist/workflows/index.d.ts +4 -3
- package/dist/workflows/index.js +771 -275
- package/dist/workflows/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/index-nu1UOAMW.d.ts +0 -387
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { l as WorkflowCredentialsInput, n as WorkflowScope, T as TextChunk, b as ChunkingStrategy, q as VTTCue, r as CompletedShotsResult, D as DeletedShotsResult, s as ErroredShotsResult, H as Hotspot, t as HotspotOptions, u as HotspotResponse, L as LOW_CONFIDENCE_THRESHOLD, v as MAX_CUE_TEXT_CHARS, w as ParseVTTCuesOptions, x as PendingShotsResult, y as Shot, z as ShotRequestOptions, B as ShotsResult, F as SkippedShotsResult, G as TranscriptEmptyReason, J as TranscriptFetchOptions, K as TranscriptFetchStepResult, N as TranscriptResult, O as WaitForShotsOptions, Q as buildTranscriptUrl, R as buildVttFromCueBlocks, X as buildVttFromTranslatedCueBlocks, Y as concatenateVttSegments, Z as extractTextFromVTT, _ as extractTimestampedTranscript, $ as fetchTranscriptDataForUrl, a0 as fetchTranscriptForAsset, a1 as filterVttByScope, a2 as findCaptionTrack, a3 as getHotspotsForAsset, a4 as getHotspotsForPlaybackId, a5 as getHotspotsForVideo, a6 as getReadyTextTracks, a7 as getReliableLanguageCode, a8 as getShotsForAsset, a9 as parseVTTCues, aa as replaceCueText, ab as requestShotsForAsset, ac as sanitizeUntrustedText, ad as secondsToTimestamp, ae as splitVttPreambleAndCueBlocks, af as stripVttMetadataBlocks, ag as vttTimestampToSeconds, ah as waitForShotsForAsset } from './transcripts-BCtzC8hZ.js';
|
|
2
|
+
|
|
3
|
+
interface HeatmapOptions {
|
|
4
|
+
/** Time window for results, e.g., '7:days' (default: '7:days') */
|
|
5
|
+
timeframe?: string;
|
|
6
|
+
/** Optional workflow credentials */
|
|
7
|
+
credentials?: WorkflowCredentialsInput;
|
|
8
|
+
}
|
|
9
|
+
interface HeatmapResponse {
|
|
10
|
+
assetId?: string;
|
|
11
|
+
videoId?: string;
|
|
12
|
+
playbackId?: string;
|
|
13
|
+
/** Engagement values across the video timeline, one per equal slice (currently 100) */
|
|
14
|
+
heatmap: number[];
|
|
15
|
+
timeframe: [number, number];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Fetches engagement heatmap for a Mux asset.
|
|
19
|
+
* Returns an array where each value represents how many times
|
|
20
|
+
* that slice of the video was watched.
|
|
21
|
+
*
|
|
22
|
+
* @param assetId - The Mux asset ID
|
|
23
|
+
* @param options - Heatmap query options
|
|
24
|
+
* @returns Heatmap data with per-bucket engagement values
|
|
25
|
+
*/
|
|
26
|
+
declare function getHeatmapForAsset(assetId: string, options?: HeatmapOptions): Promise<HeatmapResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Fetches engagement heatmap for a Mux video ID.
|
|
29
|
+
* Returns an array where each value represents how many times
|
|
30
|
+
* that slice of the video was watched.
|
|
31
|
+
*
|
|
32
|
+
* @param videoId - The Mux video ID
|
|
33
|
+
* @param options - Heatmap query options
|
|
34
|
+
* @returns Heatmap data with per-bucket engagement values
|
|
35
|
+
*/
|
|
36
|
+
declare function getHeatmapForVideo(videoId: string, options?: HeatmapOptions): Promise<HeatmapResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Fetches engagement heatmap for a Mux playback ID.
|
|
39
|
+
* Returns an array where each value represents how many times
|
|
40
|
+
* that slice of the video was watched.
|
|
41
|
+
*
|
|
42
|
+
* @param playbackId - The Mux playback ID
|
|
43
|
+
* @param options - Heatmap query options
|
|
44
|
+
* @returns Heatmap data with per-bucket engagement values
|
|
45
|
+
*/
|
|
46
|
+
declare function getHeatmapForPlaybackId(playbackId: string, options?: HeatmapOptions): Promise<HeatmapResponse>;
|
|
47
|
+
|
|
48
|
+
declare const DEFAULT_STORYBOARD_WIDTH = 640;
|
|
49
|
+
/**
|
|
50
|
+
* Generates a storyboard URL for the given playback ID.
|
|
51
|
+
* If shouldSign is true, the URL will be signed with a token using credentials from environment variables.
|
|
52
|
+
*
|
|
53
|
+
* @param playbackId - The Mux playback ID
|
|
54
|
+
* @param width - Width of the storyboard in pixels (default: 640)
|
|
55
|
+
* @param shouldSign - Flag for whether or not to use signed playback IDs (default: false)
|
|
56
|
+
* @param credentials - Optional workflow credentials used for signing
|
|
57
|
+
* @param scope - Optional asset-relative range for storyboard tiles
|
|
58
|
+
* @returns Storyboard URL (signed if shouldSign is true)
|
|
59
|
+
*/
|
|
60
|
+
declare function getStoryboardUrl(playbackId: string, width?: number, shouldSign?: boolean, credentials?: WorkflowCredentialsInput, scope?: WorkflowScope): Promise<string>;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Generic text-first chunking utilities.
|
|
64
|
+
*
|
|
65
|
+
* Reach for this module when the downstream consumer only needs chunk text plus
|
|
66
|
+
* lightweight metadata such as token count or approximate start/end times.
|
|
67
|
+
* These helpers are ideal for embeddings, retrieval, summarization inputs, or
|
|
68
|
+
* other workflows where preserving the original document format is not required.
|
|
69
|
+
*
|
|
70
|
+
* This module also includes cue-preserving chunk planners for VTT workflows.
|
|
71
|
+
* Those helpers still operate at the chunk-planning layer; if you need to split
|
|
72
|
+
* or rebuild full VTT documents, use the VTT structure helpers from
|
|
73
|
+
* `@mux/ai/primitives/transcripts`.
|
|
74
|
+
*/
|
|
75
|
+
interface VTTDurationChunkingOptions {
|
|
76
|
+
targetChunkDurationSeconds: number;
|
|
77
|
+
maxChunkDurationSeconds: number;
|
|
78
|
+
minChunkDurationSeconds?: number;
|
|
79
|
+
boundaryLookaheadCues?: number;
|
|
80
|
+
boundaryPauseSeconds?: number;
|
|
81
|
+
}
|
|
82
|
+
interface VTTCueBudgetChunkingOptions {
|
|
83
|
+
maxCuesPerChunk: number;
|
|
84
|
+
maxTextTokensPerChunk?: number;
|
|
85
|
+
}
|
|
86
|
+
interface VTTDurationChunk {
|
|
87
|
+
id: string;
|
|
88
|
+
cueStartIndex: number;
|
|
89
|
+
cueEndIndex: number;
|
|
90
|
+
cueCount: number;
|
|
91
|
+
startTime: number;
|
|
92
|
+
endTime: number;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Simple token counter that approximates tokens by word count.
|
|
96
|
+
* For production use with OpenAI, consider using a proper tokenizer like tiktoken.
|
|
97
|
+
* This approximation is generally close enough for chunking purposes (1 token ≈ 0.75 words).
|
|
98
|
+
*/
|
|
99
|
+
declare function estimateTokenCount(text: string): number;
|
|
100
|
+
/**
|
|
101
|
+
* Chunks text into overlapping segments based on token count.
|
|
102
|
+
*
|
|
103
|
+
* @param text - The text to chunk
|
|
104
|
+
* @param maxTokens - Maximum tokens per chunk
|
|
105
|
+
* @param overlapTokens - Number of tokens to overlap between chunks
|
|
106
|
+
* @returns Array of text chunks with metadata
|
|
107
|
+
*/
|
|
108
|
+
declare function chunkByTokens(text: string, maxTokens: number, overlapTokens?: number): TextChunk[];
|
|
109
|
+
/**
|
|
110
|
+
* Chunks VTT cues into groups that respect natural cue boundaries.
|
|
111
|
+
* Splits at cue boundaries rather than mid-sentence, preserving accurate timestamps.
|
|
112
|
+
*
|
|
113
|
+
* @param cues - Array of VTT cues to chunk
|
|
114
|
+
* @param maxTokens - Maximum tokens per chunk
|
|
115
|
+
* @param overlapCues - Number of cues to overlap between chunks (default: 2)
|
|
116
|
+
* @returns Array of text chunks with accurate start/end times
|
|
117
|
+
*/
|
|
118
|
+
declare function chunkVTTCues(cues: VTTCue[], maxTokens: number, overlapCues?: number): TextChunk[];
|
|
119
|
+
declare function chunkVTTCuesByBudget(cues: VTTCue[], options: VTTCueBudgetChunkingOptions): VTTDurationChunk[];
|
|
120
|
+
declare function chunkVTTCuesByDuration(cues: VTTCue[], options: VTTDurationChunkingOptions): VTTDurationChunk[];
|
|
121
|
+
/**
|
|
122
|
+
* Chunks text according to the specified strategy.
|
|
123
|
+
*
|
|
124
|
+
* @param text - The text to chunk
|
|
125
|
+
* @param strategy - The chunking strategy to use
|
|
126
|
+
* @returns Array of text chunks
|
|
127
|
+
*/
|
|
128
|
+
declare function chunkText(text: string, strategy: ChunkingStrategy): TextChunk[];
|
|
129
|
+
|
|
130
|
+
interface ThumbnailOptions {
|
|
131
|
+
/** Interval between thumbnails in seconds (default: 10) */
|
|
132
|
+
interval?: number;
|
|
133
|
+
/** Width of the thumbnail in pixels (default: 640) */
|
|
134
|
+
width?: number;
|
|
135
|
+
/** Flag for whether or not to use signed playback IDs (default: false) */
|
|
136
|
+
shouldSign?: boolean;
|
|
137
|
+
/** Maximum number of thumbnails to generate. When set, samples are evenly distributed with first and last frames pinned. */
|
|
138
|
+
maxSamples?: number;
|
|
139
|
+
/** Workflow credentials for signing (optional). */
|
|
140
|
+
credentials?: WorkflowCredentialsInput;
|
|
141
|
+
/** Optional asset-relative range from which thumbnails should be sampled. */
|
|
142
|
+
scope?: WorkflowScope;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Generates thumbnail URLs at regular intervals based on video duration.
|
|
146
|
+
* If shouldSign is true, the URLs will be signed with tokens using credentials from environment variables.
|
|
147
|
+
*
|
|
148
|
+
* @param playbackId - The Mux playback ID
|
|
149
|
+
* @param duration - Video duration in seconds
|
|
150
|
+
* @param options - Thumbnail generation options
|
|
151
|
+
* @returns Array of objects containing the thumbnail URL and its time in seconds
|
|
152
|
+
*/
|
|
153
|
+
declare function getThumbnailUrls(playbackId: string, duration: number, options?: ThumbnailOptions): Promise<Array<{
|
|
154
|
+
url: string;
|
|
155
|
+
time: number;
|
|
156
|
+
}>>;
|
|
157
|
+
|
|
158
|
+
declare const index_CompletedShotsResult: typeof CompletedShotsResult;
|
|
159
|
+
declare const index_DEFAULT_STORYBOARD_WIDTH: typeof DEFAULT_STORYBOARD_WIDTH;
|
|
160
|
+
declare const index_DeletedShotsResult: typeof DeletedShotsResult;
|
|
161
|
+
declare const index_ErroredShotsResult: typeof ErroredShotsResult;
|
|
162
|
+
type index_HeatmapOptions = HeatmapOptions;
|
|
163
|
+
type index_HeatmapResponse = HeatmapResponse;
|
|
164
|
+
declare const index_Hotspot: typeof Hotspot;
|
|
165
|
+
declare const index_HotspotOptions: typeof HotspotOptions;
|
|
166
|
+
declare const index_HotspotResponse: typeof HotspotResponse;
|
|
167
|
+
declare const index_LOW_CONFIDENCE_THRESHOLD: typeof LOW_CONFIDENCE_THRESHOLD;
|
|
168
|
+
declare const index_MAX_CUE_TEXT_CHARS: typeof MAX_CUE_TEXT_CHARS;
|
|
169
|
+
declare const index_ParseVTTCuesOptions: typeof ParseVTTCuesOptions;
|
|
170
|
+
declare const index_PendingShotsResult: typeof PendingShotsResult;
|
|
171
|
+
declare const index_Shot: typeof Shot;
|
|
172
|
+
declare const index_ShotRequestOptions: typeof ShotRequestOptions;
|
|
173
|
+
declare const index_ShotsResult: typeof ShotsResult;
|
|
174
|
+
declare const index_SkippedShotsResult: typeof SkippedShotsResult;
|
|
175
|
+
type index_ThumbnailOptions = ThumbnailOptions;
|
|
176
|
+
declare const index_TranscriptEmptyReason: typeof TranscriptEmptyReason;
|
|
177
|
+
declare const index_TranscriptFetchOptions: typeof TranscriptFetchOptions;
|
|
178
|
+
declare const index_TranscriptFetchStepResult: typeof TranscriptFetchStepResult;
|
|
179
|
+
declare const index_TranscriptResult: typeof TranscriptResult;
|
|
180
|
+
declare const index_VTTCue: typeof VTTCue;
|
|
181
|
+
type index_VTTCueBudgetChunkingOptions = VTTCueBudgetChunkingOptions;
|
|
182
|
+
type index_VTTDurationChunk = VTTDurationChunk;
|
|
183
|
+
type index_VTTDurationChunkingOptions = VTTDurationChunkingOptions;
|
|
184
|
+
declare const index_WaitForShotsOptions: typeof WaitForShotsOptions;
|
|
185
|
+
declare const index_buildTranscriptUrl: typeof buildTranscriptUrl;
|
|
186
|
+
declare const index_buildVttFromCueBlocks: typeof buildVttFromCueBlocks;
|
|
187
|
+
declare const index_buildVttFromTranslatedCueBlocks: typeof buildVttFromTranslatedCueBlocks;
|
|
188
|
+
declare const index_chunkByTokens: typeof chunkByTokens;
|
|
189
|
+
declare const index_chunkText: typeof chunkText;
|
|
190
|
+
declare const index_chunkVTTCues: typeof chunkVTTCues;
|
|
191
|
+
declare const index_chunkVTTCuesByBudget: typeof chunkVTTCuesByBudget;
|
|
192
|
+
declare const index_chunkVTTCuesByDuration: typeof chunkVTTCuesByDuration;
|
|
193
|
+
declare const index_concatenateVttSegments: typeof concatenateVttSegments;
|
|
194
|
+
declare const index_estimateTokenCount: typeof estimateTokenCount;
|
|
195
|
+
declare const index_extractTextFromVTT: typeof extractTextFromVTT;
|
|
196
|
+
declare const index_extractTimestampedTranscript: typeof extractTimestampedTranscript;
|
|
197
|
+
declare const index_fetchTranscriptDataForUrl: typeof fetchTranscriptDataForUrl;
|
|
198
|
+
declare const index_fetchTranscriptForAsset: typeof fetchTranscriptForAsset;
|
|
199
|
+
declare const index_filterVttByScope: typeof filterVttByScope;
|
|
200
|
+
declare const index_findCaptionTrack: typeof findCaptionTrack;
|
|
201
|
+
declare const index_getHeatmapForAsset: typeof getHeatmapForAsset;
|
|
202
|
+
declare const index_getHeatmapForPlaybackId: typeof getHeatmapForPlaybackId;
|
|
203
|
+
declare const index_getHeatmapForVideo: typeof getHeatmapForVideo;
|
|
204
|
+
declare const index_getHotspotsForAsset: typeof getHotspotsForAsset;
|
|
205
|
+
declare const index_getHotspotsForPlaybackId: typeof getHotspotsForPlaybackId;
|
|
206
|
+
declare const index_getHotspotsForVideo: typeof getHotspotsForVideo;
|
|
207
|
+
declare const index_getReadyTextTracks: typeof getReadyTextTracks;
|
|
208
|
+
declare const index_getReliableLanguageCode: typeof getReliableLanguageCode;
|
|
209
|
+
declare const index_getShotsForAsset: typeof getShotsForAsset;
|
|
210
|
+
declare const index_getStoryboardUrl: typeof getStoryboardUrl;
|
|
211
|
+
declare const index_getThumbnailUrls: typeof getThumbnailUrls;
|
|
212
|
+
declare const index_parseVTTCues: typeof parseVTTCues;
|
|
213
|
+
declare const index_replaceCueText: typeof replaceCueText;
|
|
214
|
+
declare const index_requestShotsForAsset: typeof requestShotsForAsset;
|
|
215
|
+
declare const index_sanitizeUntrustedText: typeof sanitizeUntrustedText;
|
|
216
|
+
declare const index_secondsToTimestamp: typeof secondsToTimestamp;
|
|
217
|
+
declare const index_splitVttPreambleAndCueBlocks: typeof splitVttPreambleAndCueBlocks;
|
|
218
|
+
declare const index_stripVttMetadataBlocks: typeof stripVttMetadataBlocks;
|
|
219
|
+
declare const index_vttTimestampToSeconds: typeof vttTimestampToSeconds;
|
|
220
|
+
declare const index_waitForShotsForAsset: typeof waitForShotsForAsset;
|
|
221
|
+
declare namespace index {
|
|
222
|
+
export { index_CompletedShotsResult as CompletedShotsResult, index_DEFAULT_STORYBOARD_WIDTH as DEFAULT_STORYBOARD_WIDTH, index_DeletedShotsResult as DeletedShotsResult, index_ErroredShotsResult as ErroredShotsResult, type index_HeatmapOptions as HeatmapOptions, type index_HeatmapResponse as HeatmapResponse, index_Hotspot as Hotspot, index_HotspotOptions as HotspotOptions, index_HotspotResponse as HotspotResponse, index_LOW_CONFIDENCE_THRESHOLD as LOW_CONFIDENCE_THRESHOLD, index_MAX_CUE_TEXT_CHARS as MAX_CUE_TEXT_CHARS, index_ParseVTTCuesOptions as ParseVTTCuesOptions, index_PendingShotsResult as PendingShotsResult, index_Shot as Shot, index_ShotRequestOptions as ShotRequestOptions, index_ShotsResult as ShotsResult, index_SkippedShotsResult as SkippedShotsResult, type index_ThumbnailOptions as ThumbnailOptions, index_TranscriptEmptyReason as TranscriptEmptyReason, index_TranscriptFetchOptions as TranscriptFetchOptions, index_TranscriptFetchStepResult as TranscriptFetchStepResult, index_TranscriptResult as TranscriptResult, index_VTTCue as VTTCue, type index_VTTCueBudgetChunkingOptions as VTTCueBudgetChunkingOptions, type index_VTTDurationChunk as VTTDurationChunk, type index_VTTDurationChunkingOptions as VTTDurationChunkingOptions, index_WaitForShotsOptions as WaitForShotsOptions, index_buildTranscriptUrl as buildTranscriptUrl, index_buildVttFromCueBlocks as buildVttFromCueBlocks, index_buildVttFromTranslatedCueBlocks as buildVttFromTranslatedCueBlocks, index_chunkByTokens as chunkByTokens, index_chunkText as chunkText, index_chunkVTTCues as chunkVTTCues, index_chunkVTTCuesByBudget as chunkVTTCuesByBudget, index_chunkVTTCuesByDuration as chunkVTTCuesByDuration, index_concatenateVttSegments as concatenateVttSegments, index_estimateTokenCount as estimateTokenCount, index_extractTextFromVTT as extractTextFromVTT, index_extractTimestampedTranscript as extractTimestampedTranscript, index_fetchTranscriptDataForUrl as fetchTranscriptDataForUrl, index_fetchTranscriptForAsset as fetchTranscriptForAsset, index_filterVttByScope as filterVttByScope, index_findCaptionTrack as findCaptionTrack, index_getHeatmapForAsset as getHeatmapForAsset, index_getHeatmapForPlaybackId as getHeatmapForPlaybackId, index_getHeatmapForVideo as getHeatmapForVideo, index_getHotspotsForAsset as getHotspotsForAsset, index_getHotspotsForPlaybackId as getHotspotsForPlaybackId, index_getHotspotsForVideo as getHotspotsForVideo, index_getReadyTextTracks as getReadyTextTracks, index_getReliableLanguageCode as getReliableLanguageCode, index_getShotsForAsset as getShotsForAsset, index_getStoryboardUrl as getStoryboardUrl, index_getThumbnailUrls as getThumbnailUrls, index_parseVTTCues as parseVTTCues, index_replaceCueText as replaceCueText, index_requestShotsForAsset as requestShotsForAsset, index_sanitizeUntrustedText as sanitizeUntrustedText, index_secondsToTimestamp as secondsToTimestamp, index_splitVttPreambleAndCueBlocks as splitVttPreambleAndCueBlocks, index_stripVttMetadataBlocks as stripVttMetadataBlocks, index_vttTimestampToSeconds as vttTimestampToSeconds, index_waitForShotsForAsset as waitForShotsForAsset };
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export { DEFAULT_STORYBOARD_WIDTH as D, type HeatmapOptions as H, type ThumbnailOptions as T, type VTTCueBudgetChunkingOptions as V, type HeatmapResponse as a, type VTTDurationChunk as b, type VTTDurationChunkingOptions as c, chunkByTokens as d, chunkText as e, chunkVTTCues as f, chunkVTTCuesByBudget as g, chunkVTTCuesByDuration as h, index as i, estimateTokenCount as j, getHeatmapForAsset as k, getHeatmapForPlaybackId as l, getHeatmapForVideo as m, getStoryboardUrl as n, getThumbnailUrls as o };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { I as ISO639_1, a as ISO639_3, L as LanguageCodePair, M as MUX_TRACK_PASSTHROUGH_MAX_CHARS, R as ReplaceAndCreateTextTrackInput, b as ReplaceAndCreateTextTrackResult, c as ReplaceAndCreateTrackInput, d as ReplaceExistingTracksPolicy, e as ReplaceSourceTrackInput, f as ReplaceableTrackType, S as SourceTrackReplacementPolicy, g as SupportedISO639_1, h as SupportedISO639_3, T as TextTrackReplacementPlan, i as TextTrackSummary, j as TextTrackTarget, k as TrackSummary, l as TrackTarget, m as buildMuxAiTrackPassthrough, n as findNameCollisionTextTracks, o as findSameLanguageTextTracks, p as getLanguageCodePair, q as getLanguageName, r as isDuplicateTrackNameError, s as isMuxGeneratedTextTrack, t as isUndeterminedLanguageCode, u as isValidISO639_1, v as isValidISO639_3, w as normalizeTrackLanguageCode, x as normalizeTrackName, y as planSourceTrackReplacement, z as planTextTrackReplacement, A as replaceAndCreateTextTrack, B as replaceAndCreateTrack, C as replaceSourceTrack, D as summarizeTextTrack, E as toISO639_1, F as toISO639_3, G as validateTrackPassthrough, H as workflows } from './index-
|
|
2
|
-
import { M as MuxAsset, W as WorkflowCredentials, S as StoragePutObjectInput, a as StoragePresignGetObjectInput } from './
|
|
3
|
-
export { A as AssetTextTrack, C as ChunkEmbedding, b as ChunkingStrategy, E as Encrypted, c as EncryptedPayload, I as ImageSubmissionMode, d as MuxAIOptions, P as PlaybackAsset, e as PlaybackPolicy, f as ScopedMuxAIOptions, g as StorageAdapter, T as TextChunk, h as TokenChunkingConfig, i as TokenUsage, j as ToneType, U as UsageMetadata, V as VTTChunkingConfig, k as VideoEmbeddingsResult, l as WorkflowCredentialsInput, m as WorkflowMuxClient, n as WorkflowScope, o as decryptFromWorkflow, p as encryptForWorkflow } from './
|
|
1
|
+
export { I as ISO639_1, a as ISO639_3, L as LanguageCodePair, M as MUX_TRACK_PASSTHROUGH_MAX_CHARS, R as ReplaceAndCreateTextTrackInput, b as ReplaceAndCreateTextTrackResult, c as ReplaceAndCreateTrackInput, d as ReplaceExistingTracksPolicy, e as ReplaceSourceTrackInput, f as ReplaceableTrackType, S as SourceTrackReplacementPolicy, g as SupportedISO639_1, h as SupportedISO639_3, T as TextTrackReplacementPlan, i as TextTrackSummary, j as TextTrackTarget, k as TrackSummary, l as TrackTarget, m as buildMuxAiTrackPassthrough, n as findNameCollisionTextTracks, o as findSameLanguageTextTracks, p as getLanguageCodePair, q as getLanguageName, r as isDuplicateTrackNameError, s as isMuxGeneratedTextTrack, t as isUndeterminedLanguageCode, u as isValidISO639_1, v as isValidISO639_3, w as normalizeTrackLanguageCode, x as normalizeTrackName, y as planSourceTrackReplacement, z as planTextTrackReplacement, A as replaceAndCreateTextTrack, B as replaceAndCreateTrack, C as replaceSourceTrack, D as summarizeTextTrack, E as toISO639_1, F as toISO639_3, G as validateTrackPassthrough, H as workflows } from './index-BbxJ0X25.js';
|
|
2
|
+
import { M as MuxAsset, W as WorkflowCredentials, S as StoragePutObjectInput, a as StoragePresignGetObjectInput } from './transcripts-BCtzC8hZ.js';
|
|
3
|
+
export { A as AssetTextTrack, C as ChunkEmbedding, b as ChunkingStrategy, E as Encrypted, c as EncryptedPayload, I as ImageSubmissionMode, d as MuxAIOptions, P as PlaybackAsset, e as PlaybackPolicy, f as ScopedMuxAIOptions, g as StorageAdapter, T as TextChunk, h as TokenChunkingConfig, i as TokenUsage, j as ToneType, U as UsageMetadata, V as VTTChunkingConfig, k as VideoEmbeddingsResult, l as WorkflowCredentialsInput, m as WorkflowMuxClient, n as WorkflowScope, o as decryptFromWorkflow, p as encryptForWorkflow } from './transcripts-BCtzC8hZ.js';
|
|
4
4
|
import { WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '@workflow/serde';
|
|
5
|
-
export { i as primitives } from './index-
|
|
5
|
+
export { i as primitives } from './index-cbaPe-aE.js';
|
|
6
|
+
import 'ai';
|
|
6
7
|
import 'zod';
|
|
7
8
|
import './summarization-BFmhXeAu.js';
|
|
8
9
|
import '@ai-sdk/anthropic';
|
|
@@ -10,7 +11,7 @@ import '@ai-sdk/google';
|
|
|
10
11
|
import '@ai-sdk/openai';
|
|
11
12
|
import '@mux/ts';
|
|
12
13
|
|
|
13
|
-
var version = "0.
|
|
14
|
+
var version = "0.53.0";
|
|
14
15
|
|
|
15
16
|
type MuxAiErrorType = "validation_error" | "processing_error" | "timeout_error" | "content_policy_error";
|
|
16
17
|
/**
|
|
@@ -35,9 +36,12 @@ declare class MuxAiError extends Error {
|
|
|
35
36
|
readonly publicMessage: string;
|
|
36
37
|
/** Whether the customer should retry the job. */
|
|
37
38
|
readonly retryable: boolean;
|
|
39
|
+
/** Internal diagnostic failure; non-enumerable and excluded from JSON. */
|
|
40
|
+
readonly cause?: unknown;
|
|
38
41
|
constructor(message: string, opts?: {
|
|
39
42
|
type?: MuxAiErrorType;
|
|
40
43
|
retryable?: boolean;
|
|
44
|
+
cause?: unknown;
|
|
41
45
|
});
|
|
42
46
|
static is(value: unknown): value is MuxAiError;
|
|
43
47
|
}
|