@mux/ai 0.9.0 → 0.10.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.
@@ -156,6 +156,14 @@ declare function extractTimestampedTranscript(vttContent: string): string;
156
156
  * @returns Array of VTT cues with start/end times and text
157
157
  */
158
158
  declare function parseVTTCues(vttContent: string): VTTCue[];
159
+ declare function splitVttPreambleAndCueBlocks(vttContent: string): {
160
+ preamble: string;
161
+ cueBlocks: string[];
162
+ };
163
+ declare function buildVttFromCueBlocks(cueBlocks: string[], preamble?: string): string;
164
+ declare function replaceCueText(cueBlock: string, translatedText: string): string;
165
+ declare function buildVttFromTranslatedCueBlocks(cueBlocks: string[], translatedTexts: string[], preamble?: string): string;
166
+ declare function concatenateVttSegments(segments: string[], preamble?: string): string;
159
167
  /**
160
168
  * Builds a transcript URL for the given playback ID and track ID.
161
169
  * If a signing context is provided, the URL will be signed with a token.
@@ -168,6 +176,38 @@ declare function parseVTTCues(vttContent: string): VTTCue[];
168
176
  declare function buildTranscriptUrl(playbackId: string, trackId: string, shouldSign?: boolean, credentials?: WorkflowCredentialsInput): Promise<string>;
169
177
  declare function fetchTranscriptForAsset(asset: MuxAsset, playbackId: string, options?: TranscriptFetchOptions): Promise<TranscriptResult>;
170
178
 
179
+ /**
180
+ * Generic text-first chunking utilities.
181
+ *
182
+ * Reach for this module when the downstream consumer only needs chunk text plus
183
+ * lightweight metadata such as token count or approximate start/end times.
184
+ * These helpers are ideal for embeddings, retrieval, summarization inputs, or
185
+ * other workflows where preserving the original document format is not required.
186
+ *
187
+ * This module also includes cue-preserving chunk planners for VTT workflows.
188
+ * Those helpers still operate at the chunk-planning layer; if you need to split
189
+ * or rebuild full VTT documents, use the VTT structure helpers from
190
+ * `@mux/ai/primitives/transcripts`.
191
+ */
192
+ interface VTTDurationChunkingOptions {
193
+ targetChunkDurationSeconds: number;
194
+ maxChunkDurationSeconds: number;
195
+ minChunkDurationSeconds?: number;
196
+ boundaryLookaheadCues?: number;
197
+ boundaryPauseSeconds?: number;
198
+ }
199
+ interface VTTCueBudgetChunkingOptions {
200
+ maxCuesPerChunk: number;
201
+ maxTextTokensPerChunk?: number;
202
+ }
203
+ interface VTTDurationChunk {
204
+ id: string;
205
+ cueStartIndex: number;
206
+ cueEndIndex: number;
207
+ cueCount: number;
208
+ startTime: number;
209
+ endTime: number;
210
+ }
171
211
  /**
172
212
  * Simple token counter that approximates tokens by word count.
173
213
  * For production use with OpenAI, consider using a proper tokenizer like tiktoken.
@@ -193,6 +233,8 @@ declare function chunkByTokens(text: string, maxTokens: number, overlapTokens?:
193
233
  * @returns Array of text chunks with accurate start/end times
194
234
  */
195
235
  declare function chunkVTTCues(cues: VTTCue[], maxTokens: number, overlapCues?: number): TextChunk[];
236
+ declare function chunkVTTCuesByBudget(cues: VTTCue[], options: VTTCueBudgetChunkingOptions): VTTDurationChunk[];
237
+ declare function chunkVTTCuesByDuration(cues: VTTCue[], options: VTTDurationChunkingOptions): VTTDurationChunk[];
196
238
  /**
197
239
  * Chunks text according to the specified strategy.
198
240
  *
@@ -221,9 +263,12 @@ interface ThumbnailOptions {
221
263
  * @param playbackId - The Mux playback ID
222
264
  * @param duration - Video duration in seconds
223
265
  * @param options - Thumbnail generation options
224
- * @returns Array of thumbnail URLs (signed if shouldSign is true)
266
+ * @returns Array of objects containing the thumbnail URL and its time in seconds
225
267
  */
226
- declare function getThumbnailUrls(playbackId: string, duration: number, options?: ThumbnailOptions): Promise<string[]>;
268
+ declare function getThumbnailUrls(playbackId: string, duration: number, options?: ThumbnailOptions): Promise<Array<{
269
+ url: string;
270
+ time: number;
271
+ }>>;
227
272
 
228
273
  declare const index_DEFAULT_STORYBOARD_WIDTH: typeof DEFAULT_STORYBOARD_WIDTH;
229
274
  type index_HeatmapOptions = HeatmapOptions;
@@ -235,10 +280,18 @@ type index_ThumbnailOptions = ThumbnailOptions;
235
280
  type index_TranscriptFetchOptions = TranscriptFetchOptions;
236
281
  type index_TranscriptResult = TranscriptResult;
237
282
  type index_VTTCue = VTTCue;
283
+ type index_VTTCueBudgetChunkingOptions = VTTCueBudgetChunkingOptions;
284
+ type index_VTTDurationChunk = VTTDurationChunk;
285
+ type index_VTTDurationChunkingOptions = VTTDurationChunkingOptions;
238
286
  declare const index_buildTranscriptUrl: typeof buildTranscriptUrl;
287
+ declare const index_buildVttFromCueBlocks: typeof buildVttFromCueBlocks;
288
+ declare const index_buildVttFromTranslatedCueBlocks: typeof buildVttFromTranslatedCueBlocks;
239
289
  declare const index_chunkByTokens: typeof chunkByTokens;
240
290
  declare const index_chunkText: typeof chunkText;
241
291
  declare const index_chunkVTTCues: typeof chunkVTTCues;
292
+ declare const index_chunkVTTCuesByBudget: typeof chunkVTTCuesByBudget;
293
+ declare const index_chunkVTTCuesByDuration: typeof chunkVTTCuesByDuration;
294
+ declare const index_concatenateVttSegments: typeof concatenateVttSegments;
242
295
  declare const index_estimateTokenCount: typeof estimateTokenCount;
243
296
  declare const index_extractTextFromVTT: typeof extractTextFromVTT;
244
297
  declare const index_extractTimestampedTranscript: typeof extractTimestampedTranscript;
@@ -254,10 +307,12 @@ declare const index_getReadyTextTracks: typeof getReadyTextTracks;
254
307
  declare const index_getStoryboardUrl: typeof getStoryboardUrl;
255
308
  declare const index_getThumbnailUrls: typeof getThumbnailUrls;
256
309
  declare const index_parseVTTCues: typeof parseVTTCues;
310
+ declare const index_replaceCueText: typeof replaceCueText;
257
311
  declare const index_secondsToTimestamp: typeof secondsToTimestamp;
312
+ declare const index_splitVttPreambleAndCueBlocks: typeof splitVttPreambleAndCueBlocks;
258
313
  declare const index_vttTimestampToSeconds: typeof vttTimestampToSeconds;
259
314
  declare namespace index {
260
- export { index_DEFAULT_STORYBOARD_WIDTH as DEFAULT_STORYBOARD_WIDTH, type index_HeatmapOptions as HeatmapOptions, type index_HeatmapResponse as HeatmapResponse, type index_Hotspot as Hotspot, type index_HotspotOptions as HotspotOptions, type index_HotspotResponse as HotspotResponse, type index_ThumbnailOptions as ThumbnailOptions, type index_TranscriptFetchOptions as TranscriptFetchOptions, type index_TranscriptResult as TranscriptResult, type index_VTTCue as VTTCue, index_buildTranscriptUrl as buildTranscriptUrl, index_chunkByTokens as chunkByTokens, index_chunkText as chunkText, index_chunkVTTCues as chunkVTTCues, index_estimateTokenCount as estimateTokenCount, index_extractTextFromVTT as extractTextFromVTT, index_extractTimestampedTranscript as extractTimestampedTranscript, index_fetchTranscriptForAsset as fetchTranscriptForAsset, 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_getStoryboardUrl as getStoryboardUrl, index_getThumbnailUrls as getThumbnailUrls, index_parseVTTCues as parseVTTCues, index_secondsToTimestamp as secondsToTimestamp, index_vttTimestampToSeconds as vttTimestampToSeconds };
315
+ export { index_DEFAULT_STORYBOARD_WIDTH as DEFAULT_STORYBOARD_WIDTH, type index_HeatmapOptions as HeatmapOptions, type index_HeatmapResponse as HeatmapResponse, type index_Hotspot as Hotspot, type index_HotspotOptions as HotspotOptions, type index_HotspotResponse as HotspotResponse, type index_ThumbnailOptions as ThumbnailOptions, type index_TranscriptFetchOptions as TranscriptFetchOptions, type index_TranscriptResult as TranscriptResult, type index_VTTCue as VTTCue, type index_VTTCueBudgetChunkingOptions as VTTCueBudgetChunkingOptions, type index_VTTDurationChunk as VTTDurationChunk, type index_VTTDurationChunkingOptions as VTTDurationChunkingOptions, 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_fetchTranscriptForAsset as fetchTranscriptForAsset, 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_getStoryboardUrl as getStoryboardUrl, index_getThumbnailUrls as getThumbnailUrls, index_parseVTTCues as parseVTTCues, index_replaceCueText as replaceCueText, index_secondsToTimestamp as secondsToTimestamp, index_splitVttPreambleAndCueBlocks as splitVttPreambleAndCueBlocks, index_vttTimestampToSeconds as vttTimestampToSeconds };
261
316
  }
262
317
 
263
- export { secondsToTimestamp as A, vttTimestampToSeconds as B, DEFAULT_STORYBOARD_WIDTH as D, type HeatmapOptions as H, type ThumbnailOptions as T, type VTTCue as V, type HeatmapResponse as a, type Hotspot as b, type HotspotOptions as c, type HotspotResponse as d, type TranscriptFetchOptions as e, type TranscriptResult as f, buildTranscriptUrl as g, chunkByTokens as h, index as i, chunkText as j, chunkVTTCues as k, estimateTokenCount as l, extractTextFromVTT as m, extractTimestampedTranscript as n, fetchTranscriptForAsset as o, findCaptionTrack as p, getHeatmapForAsset as q, getHeatmapForPlaybackId as r, getHeatmapForVideo as s, getHotspotsForAsset as t, getHotspotsForPlaybackId as u, getHotspotsForVideo as v, getReadyTextTracks as w, getStoryboardUrl as x, getThumbnailUrls as y, parseVTTCues as z };
318
+ export { getHeatmapForVideo as A, getHotspotsForAsset as B, getHotspotsForPlaybackId as C, DEFAULT_STORYBOARD_WIDTH as D, getHotspotsForVideo as E, getReadyTextTracks as F, getStoryboardUrl as G, type HeatmapOptions as H, getThumbnailUrls as I, parseVTTCues as J, replaceCueText as K, secondsToTimestamp as L, splitVttPreambleAndCueBlocks as M, vttTimestampToSeconds as N, type ThumbnailOptions as T, type VTTCue as V, type HeatmapResponse as a, type Hotspot as b, type HotspotOptions as c, type HotspotResponse as d, type TranscriptFetchOptions as e, type TranscriptResult as f, type VTTCueBudgetChunkingOptions as g, type VTTDurationChunk as h, index as i, type VTTDurationChunkingOptions as j, buildTranscriptUrl as k, buildVttFromCueBlocks as l, buildVttFromTranslatedCueBlocks as m, chunkByTokens as n, chunkText as o, chunkVTTCues as p, chunkVTTCuesByBudget as q, chunkVTTCuesByDuration as r, concatenateVttSegments as s, estimateTokenCount as t, extractTextFromVTT as u, extractTimestampedTranscript as v, fetchTranscriptForAsset as w, findCaptionTrack as x, getHeatmapForAsset as y, getHeatmapForPlaybackId as z };
@@ -372,6 +372,8 @@ declare function generateVideoEmbeddings(assetId: string, options?: EmbeddingsOp
372
372
  /** Per-thumbnail moderation result returned from `getModerationScores`. */
373
373
  interface ThumbnailModerationScore {
374
374
  url: string;
375
+ /** Time in seconds of the thumbnail within the video. Absent for transcript moderation entries. */
376
+ time?: number;
375
377
  sexual: number;
376
378
  violence: number;
377
379
  error: boolean;
@@ -726,6 +728,26 @@ interface TranslationOptions<P extends SupportedProvider = SupportedProvider> ex
726
728
  uploadToMux?: boolean;
727
729
  /** Optional storage adapter override for upload + presign operations. */
728
730
  storageAdapter?: StorageAdapter;
731
+ /**
732
+ * Optional VTT-aware chunking for caption translation.
733
+ * When enabled, the workflow splits cue-aligned translation requests by
734
+ * cue count and text token budget, then rebuilds the final VTT locally.
735
+ */
736
+ chunking?: TranslationChunkingOptions;
737
+ }
738
+ interface TranslationChunkingOptions {
739
+ /** Set to false to translate all cues in a single structured request. Defaults to true. */
740
+ enabled?: boolean;
741
+ /** Prefer a single request until the asset is at least this long. Defaults to 30 minutes. */
742
+ minimumAssetDurationSeconds?: number;
743
+ /** Soft target for chunk duration once chunking starts. Defaults to 30 minutes. */
744
+ targetChunkDurationSeconds?: number;
745
+ /** Max number of concurrent translation requests when chunking. Defaults to 4. */
746
+ maxConcurrentTranslations?: number;
747
+ /** Hard cap for cues included in a single AI translation chunk. Defaults to 80. */
748
+ maxCuesPerChunk?: number;
749
+ /** Approximate cap for cue text tokens included in a single AI translation chunk. Defaults to 2000. */
750
+ maxCueTextTokensPerChunk?: number;
729
751
  }
730
752
  /** Schema used when requesting caption translation from a language model. */
731
753
  declare const translationSchema: z.ZodObject<{
@@ -737,6 +759,8 @@ declare const translationSchema: z.ZodObject<{
737
759
  }>;
738
760
  /** Inferred shape returned by `translationSchema`. */
739
761
  type TranslationPayload = z.infer<typeof translationSchema>;
762
+ declare function shouldSplitChunkTranslationError(error: unknown): boolean;
763
+ declare function aggregateTokenUsage(usages: TokenUsage[]): TokenUsage;
740
764
  declare function translateCaptions<P extends SupportedProvider = SupportedProvider>(assetId: string, fromLanguageCode: string, toLanguageCode: string, options: TranslationOptions<P>): Promise<TranslationResult>;
741
765
 
742
766
  type index_AskQuestionsOptions = AskQuestionsOptions;
@@ -775,9 +799,11 @@ type index_SummarizationPromptSections = SummarizationPromptSections;
775
799
  type index_SummaryAndTagsResult = SummaryAndTagsResult;
776
800
  type index_SummaryType = SummaryType;
777
801
  type index_ThumbnailModerationScore = ThumbnailModerationScore;
802
+ type index_TranslationChunkingOptions = TranslationChunkingOptions;
778
803
  type index_TranslationOptions<P extends SupportedProvider = SupportedProvider> = TranslationOptions<P>;
779
804
  type index_TranslationPayload = TranslationPayload;
780
805
  type index_TranslationResult = TranslationResult;
806
+ declare const index_aggregateTokenUsage: typeof aggregateTokenUsage;
781
807
  declare const index_askQuestions: typeof askQuestions;
782
808
  declare const index_burnedInCaptionsSchema: typeof burnedInCaptionsSchema;
783
809
  declare const index_chapterSchema: typeof chapterSchema;
@@ -789,12 +815,13 @@ declare const index_getModerationScores: typeof getModerationScores;
789
815
  declare const index_getSummaryAndTags: typeof getSummaryAndTags;
790
816
  declare const index_hasBurnedInCaptions: typeof hasBurnedInCaptions;
791
817
  declare const index_questionAnswerSchema: typeof questionAnswerSchema;
818
+ declare const index_shouldSplitChunkTranslationError: typeof shouldSplitChunkTranslationError;
792
819
  declare const index_summarySchema: typeof summarySchema;
793
820
  declare const index_translateAudio: typeof translateAudio;
794
821
  declare const index_translateCaptions: typeof translateCaptions;
795
822
  declare const index_translationSchema: typeof translationSchema;
796
823
  declare namespace index {
797
- export { type index_AskQuestionsOptions as AskQuestionsOptions, type index_AskQuestionsResult as AskQuestionsResult, type index_AskQuestionsType as AskQuestionsType, type index_AudioTranslationOptions as AudioTranslationOptions, type index_AudioTranslationResult as AudioTranslationResult, type index_BurnedInCaptionsAnalysis as BurnedInCaptionsAnalysis, type index_BurnedInCaptionsOptions as BurnedInCaptionsOptions, type index_BurnedInCaptionsPromptOverrides as BurnedInCaptionsPromptOverrides, type index_BurnedInCaptionsPromptSections as BurnedInCaptionsPromptSections, type index_BurnedInCaptionsResult as BurnedInCaptionsResult, type index_Chapter as Chapter, type index_ChapterSystemPromptSections as ChapterSystemPromptSections, type index_ChaptersOptions as ChaptersOptions, type index_ChaptersPromptOverrides as ChaptersPromptOverrides, type index_ChaptersPromptSections as ChaptersPromptSections, type index_ChaptersResult as ChaptersResult, type index_ChaptersType as ChaptersType, type index_EmbeddingsOptions as EmbeddingsOptions, type index_EmbeddingsResult as EmbeddingsResult, index_HIVE_SEXUAL_CATEGORIES as HIVE_SEXUAL_CATEGORIES, index_HIVE_VIOLENCE_CATEGORIES as HIVE_VIOLENCE_CATEGORIES, type index_HiveModerationOutput as HiveModerationOutput, type index_HiveModerationSource as HiveModerationSource, type index_ModerationOptions as ModerationOptions, type index_ModerationProvider as ModerationProvider, type index_ModerationResult as ModerationResult, type index_Question as Question, type index_QuestionAnswer as QuestionAnswer, type index_QuestionAnswerType as QuestionAnswerType, index_SUMMARY_KEYWORD_LIMIT as SUMMARY_KEYWORD_LIMIT, type index_SummarizationOptions as SummarizationOptions, type index_SummarizationPromptOverrides as SummarizationPromptOverrides, type index_SummarizationPromptSections as SummarizationPromptSections, type index_SummaryAndTagsResult as SummaryAndTagsResult, type index_SummaryType as SummaryType, type index_ThumbnailModerationScore as ThumbnailModerationScore, type index_TranslationOptions as TranslationOptions, type index_TranslationPayload as TranslationPayload, type index_TranslationResult as TranslationResult, index_askQuestions as askQuestions, index_burnedInCaptionsSchema as burnedInCaptionsSchema, index_chapterSchema as chapterSchema, index_chaptersSchema as chaptersSchema, index_generateChapters as generateChapters, index_generateEmbeddings as generateEmbeddings, index_generateVideoEmbeddings as generateVideoEmbeddings, index_getModerationScores as getModerationScores, index_getSummaryAndTags as getSummaryAndTags, index_hasBurnedInCaptions as hasBurnedInCaptions, index_questionAnswerSchema as questionAnswerSchema, index_summarySchema as summarySchema, index_translateAudio as translateAudio, index_translateCaptions as translateCaptions, index_translationSchema as translationSchema };
824
+ export { type index_AskQuestionsOptions as AskQuestionsOptions, type index_AskQuestionsResult as AskQuestionsResult, type index_AskQuestionsType as AskQuestionsType, type index_AudioTranslationOptions as AudioTranslationOptions, type index_AudioTranslationResult as AudioTranslationResult, type index_BurnedInCaptionsAnalysis as BurnedInCaptionsAnalysis, type index_BurnedInCaptionsOptions as BurnedInCaptionsOptions, type index_BurnedInCaptionsPromptOverrides as BurnedInCaptionsPromptOverrides, type index_BurnedInCaptionsPromptSections as BurnedInCaptionsPromptSections, type index_BurnedInCaptionsResult as BurnedInCaptionsResult, type index_Chapter as Chapter, type index_ChapterSystemPromptSections as ChapterSystemPromptSections, type index_ChaptersOptions as ChaptersOptions, type index_ChaptersPromptOverrides as ChaptersPromptOverrides, type index_ChaptersPromptSections as ChaptersPromptSections, type index_ChaptersResult as ChaptersResult, type index_ChaptersType as ChaptersType, type index_EmbeddingsOptions as EmbeddingsOptions, type index_EmbeddingsResult as EmbeddingsResult, index_HIVE_SEXUAL_CATEGORIES as HIVE_SEXUAL_CATEGORIES, index_HIVE_VIOLENCE_CATEGORIES as HIVE_VIOLENCE_CATEGORIES, type index_HiveModerationOutput as HiveModerationOutput, type index_HiveModerationSource as HiveModerationSource, type index_ModerationOptions as ModerationOptions, type index_ModerationProvider as ModerationProvider, type index_ModerationResult as ModerationResult, type index_Question as Question, type index_QuestionAnswer as QuestionAnswer, type index_QuestionAnswerType as QuestionAnswerType, index_SUMMARY_KEYWORD_LIMIT as SUMMARY_KEYWORD_LIMIT, type index_SummarizationOptions as SummarizationOptions, type index_SummarizationPromptOverrides as SummarizationPromptOverrides, type index_SummarizationPromptSections as SummarizationPromptSections, type index_SummaryAndTagsResult as SummaryAndTagsResult, type index_SummaryType as SummaryType, type index_ThumbnailModerationScore as ThumbnailModerationScore, type index_TranslationChunkingOptions as TranslationChunkingOptions, type index_TranslationOptions as TranslationOptions, type index_TranslationPayload as TranslationPayload, type index_TranslationResult as TranslationResult, index_aggregateTokenUsage as aggregateTokenUsage, index_askQuestions as askQuestions, index_burnedInCaptionsSchema as burnedInCaptionsSchema, index_chapterSchema as chapterSchema, index_chaptersSchema as chaptersSchema, index_generateChapters as generateChapters, index_generateEmbeddings as generateEmbeddings, index_generateVideoEmbeddings as generateVideoEmbeddings, index_getModerationScores as getModerationScores, index_getSummaryAndTags as getSummaryAndTags, index_hasBurnedInCaptions as hasBurnedInCaptions, index_questionAnswerSchema as questionAnswerSchema, index_shouldSplitChunkTranslationError as shouldSplitChunkTranslationError, index_summarySchema as summarySchema, index_translateAudio as translateAudio, index_translateCaptions as translateCaptions, index_translationSchema as translationSchema };
798
825
  }
799
826
 
800
- export { translateCaptions as $, type AskQuestionsOptions as A, type BurnedInCaptionsAnalysis as B, type Chapter as C, type SummaryAndTagsResult as D, type EmbeddingsOptions as E, type SummaryType as F, type TranslationOptions as G, HIVE_SEXUAL_CATEGORIES as H, type TranslationPayload as I, type TranslationResult as J, askQuestions as K, burnedInCaptionsSchema as L, type ModerationOptions as M, chapterSchema as N, chaptersSchema as O, generateChapters as P, type Question as Q, generateEmbeddings as R, SUMMARY_KEYWORD_LIMIT as S, type ThumbnailModerationScore as T, generateVideoEmbeddings as U, getModerationScores as V, getSummaryAndTags as W, hasBurnedInCaptions as X, questionAnswerSchema as Y, summarySchema as Z, translateAudio as _, type AskQuestionsResult as a, translationSchema as a0, type AskQuestionsType as b, type AudioTranslationOptions as c, type AudioTranslationResult as d, type BurnedInCaptionsOptions as e, type BurnedInCaptionsPromptOverrides as f, type BurnedInCaptionsPromptSections as g, type BurnedInCaptionsResult as h, index as i, type ChapterSystemPromptSections as j, type ChaptersOptions as k, type ChaptersPromptOverrides as l, type ChaptersPromptSections as m, type ChaptersResult as n, type ChaptersType as o, type EmbeddingsResult as p, HIVE_VIOLENCE_CATEGORIES as q, type HiveModerationOutput as r, type HiveModerationSource as s, type ModerationProvider as t, type ModerationResult as u, type QuestionAnswer as v, type QuestionAnswerType as w, type SummarizationOptions as x, type SummarizationPromptOverrides as y, type SummarizationPromptSections as z };
827
+ export { shouldSplitChunkTranslationError as $, type AskQuestionsOptions as A, type BurnedInCaptionsAnalysis as B, type Chapter as C, type SummaryAndTagsResult as D, type EmbeddingsOptions as E, type SummaryType as F, type TranslationChunkingOptions as G, HIVE_SEXUAL_CATEGORIES as H, type TranslationOptions as I, type TranslationPayload as J, type TranslationResult as K, aggregateTokenUsage as L, type ModerationOptions as M, askQuestions as N, burnedInCaptionsSchema as O, chapterSchema as P, type Question as Q, chaptersSchema as R, SUMMARY_KEYWORD_LIMIT as S, type ThumbnailModerationScore as T, generateChapters as U, generateEmbeddings as V, generateVideoEmbeddings as W, getModerationScores as X, getSummaryAndTags as Y, hasBurnedInCaptions as Z, questionAnswerSchema as _, type AskQuestionsResult as a, summarySchema as a0, translateAudio as a1, translateCaptions as a2, translationSchema as a3, type AskQuestionsType as b, type AudioTranslationOptions as c, type AudioTranslationResult as d, type BurnedInCaptionsOptions as e, type BurnedInCaptionsPromptOverrides as f, type BurnedInCaptionsPromptSections as g, type BurnedInCaptionsResult as h, index as i, type ChapterSystemPromptSections as j, type ChaptersOptions as k, type ChaptersPromptOverrides as l, type ChaptersPromptSections as m, type ChaptersResult as n, type ChaptersType as o, type EmbeddingsResult as p, HIVE_VIOLENCE_CATEGORIES as q, type HiveModerationOutput as r, type HiveModerationSource as s, type ModerationProvider as t, type ModerationResult as u, type QuestionAnswer as v, type QuestionAnswerType as w, type SummarizationOptions as x, type SummarizationPromptOverrides as y, type SummarizationPromptSections as z };
package/dist/index.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  import { W as WorkflowCredentials, S as StoragePutObjectInput, a as StoragePresignGetObjectInput } from './types-BRbaGW3t.js';
2
2
  export { A as AssetTextTrack, C as ChunkEmbedding, b as ChunkingStrategy, E as Encrypted, c as EncryptedPayload, I as ImageSubmissionMode, M as MuxAIOptions, d as MuxAsset, P as PlaybackAsset, e as PlaybackPolicy, f as StorageAdapter, T as TextChunk, g as TokenChunkingConfig, h as TokenUsage, i as ToneType, U as UsageMetadata, V as VTTChunkingConfig, j as VideoEmbeddingsResult, k as WorkflowCredentialsInput, l as WorkflowMuxClient, m as decryptFromWorkflow, n as encryptForWorkflow } from './types-BRbaGW3t.js';
3
3
  import { WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '@workflow/serde';
4
- export { i as primitives } from './index-Nxf6BaBO.js';
5
- export { i as workflows } from './index-CkJStzYO.js';
4
+ export { i as primitives } from './index-C8-E3VR9.js';
5
+ export { i as workflows } from './index-CA7bG50u.js';
6
6
  import '@mux/mux-node';
7
7
  import 'zod';
8
8
  import '@ai-sdk/anthropic';
9
9
  import '@ai-sdk/google';
10
10
  import '@ai-sdk/openai';
11
11
 
12
- var version = "0.9.0";
12
+ var version = "0.10.0";
13
13
 
14
14
  /**
15
15
  * A function that returns workflow credentials, either synchronously or asynchronously.