@mux/ai 0.52.0 → 0.54.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,5 +1,5 @@
1
1
  import { LanguageModel, generateText as generateText$1 } from 'ai';
2
- import { l as WorkflowCredentialsInput, M as MuxAsset, A as AssetTextTrack, i as TokenUsage, f as ScopedMuxAIOptions, I as ImageSubmissionMode, d as MuxAIOptions, b as ChunkingStrategy, k as VideoEmbeddingsResult, H as Hotspot, v as Shot, j as ToneType, g as StorageAdapter } from './shots-3wmvZnUV.js';
2
+ import { l as WorkflowCredentialsInput, M as MuxAsset, A as AssetTextTrack, i as TokenUsage, f as ScopedMuxAIOptions, I as ImageSubmissionMode, d as MuxAIOptions, b as ChunkingStrategy, k as VideoEmbeddingsResult, H as Hotspot, y as Shot, q as VTTCue, j as ToneType, g as StorageAdapter } from './transcripts-BCtzC8hZ.js';
3
3
  import { z } from 'zod';
4
4
  import { S as SafetyReport, e as PromptOverrides, h as SceneContextItemV1, D as DEFAULT_DESCRIPTION_LENGTH, a as DEFAULT_SUMMARY_KEYWORD_LIMIT, b as DEFAULT_TITLE_LENGTH } from './summarization-BFmhXeAu.js';
5
5
  import { createAnthropic } from '@ai-sdk/anthropic';
@@ -1428,24 +1428,96 @@ declare function selectGenerateTextShotFrames(shots: readonly Shot[], assetDurat
1428
1428
  */
1429
1429
  declare function generateText(assetId: string, options: GenerateTextOptions): Promise<GenerateTextResult>;
1430
1430
 
1431
- /** Per-thumbnail moderation result returned from `getModerationScores`. */
1431
+ /** Per-thumbnail (image) moderation result returned from `getModerationScores`. */
1432
1432
  interface ThumbnailModerationScore {
1433
1433
  url: string;
1434
- /** Time in seconds of the thumbnail within the video. Absent for transcript moderation entries. */
1434
+ /** Time in seconds of the thumbnail within the video. */
1435
1435
  time?: number;
1436
1436
  sexual: number;
1437
1437
  violence: number;
1438
1438
  error: boolean;
1439
1439
  errorMessage?: string;
1440
1440
  }
1441
+ /** Per-time-window transcript moderation result returned from `getModerationScores`. */
1442
+ interface TranscriptModerationScore {
1443
+ /** Seconds — start of the moderated time window (first cue's start time). */
1444
+ startTime: number;
1445
+ /** Seconds — end of the moderated time window (last cue's end time). */
1446
+ endTime: number;
1447
+ sexual: number;
1448
+ violence: number;
1449
+ error: boolean;
1450
+ errorMessage?: string;
1451
+ }
1452
+ /**
1453
+ * Outcome of moderating one surface (thumbnails or transcript) of an asset.
1454
+ * Lets callers audit whether a surface was moderated or skipped (and why),
1455
+ * instead of inferring it from an empty scores array.
1456
+ */
1457
+ interface ModerationSurfaceStatus<Reason extends string> {
1458
+ /**
1459
+ * - `"completed"` — moderation ran and at least one item was scored
1460
+ * (individual items may still carry a per-item `error`).
1461
+ * - `"skipped"` — nothing could be moderated on this surface;
1462
+ * see {@link skipReason} / {@link skipMessage}.
1463
+ * - `"failed"` — moderation ran but every item errored, so this surface
1464
+ * contributed no scores; see {@link errorMessage}. The result is still
1465
+ * returned when the other surface succeeded, with
1466
+ * `coverage.isLowConfidence` set.
1467
+ */
1468
+ status: "completed" | "skipped" | "failed";
1469
+ /** Present only when `status === "skipped"`. Machine-readable reason. */
1470
+ skipReason?: Reason;
1471
+ /** Present only when `status === "skipped"`. Human-readable explanation. */
1472
+ skipMessage?: string;
1473
+ /** Present only when `status === "failed"`. Summarizes the per-item errors. */
1474
+ errorMessage?: string;
1475
+ }
1476
+ /**
1477
+ * Why thumbnail moderation was skipped:
1478
+ * - `"no_video_track"` — the asset has no video track, so there are no thumbnails.
1479
+ * - `"no_video_in_scope"` — the asset has a video track, but the requested
1480
+ * `scope` lies entirely past its end (trailing non-video media).
1481
+ */
1482
+ type ThumbnailModerationSkipReason = "no_video_track" | "no_video_in_scope";
1483
+ /**
1484
+ * Why transcript moderation was skipped:
1485
+ * - `"no_ready_text_track"` — no ready caption/subtitle track (or none
1486
+ * matching `languageCode`).
1487
+ * - `"no_cues"` — a track exists but produced nothing to moderate: the VTT
1488
+ * body was empty, had no parseable cues, or no cue fell inside `scope`.
1489
+ * Treated as valid-but-empty, not as an error.
1490
+ * - `"unsupported_provider"` — the selected provider is image-only.
1491
+ * - `"disabled"` — the caller passed `includeTranscript: false` for a video asset.
1492
+ */
1493
+ type TranscriptModerationSkipReason = "no_ready_text_track" | "no_cues" | "unsupported_provider" | "disabled";
1494
+ type ThumbnailModerationStatus = ModerationSurfaceStatus<ThumbnailModerationSkipReason>;
1495
+ type TranscriptModerationStatus = ModerationSurfaceStatus<TranscriptModerationSkipReason>;
1441
1496
  /** Aggregated moderation payload returned from `getModerationScores`. */
1442
1497
  interface ModerationResult {
1443
1498
  assetId: string;
1444
- /** Whether moderation ran on thumbnails (video) or transcript text (audio-only). */
1445
- mode: "thumbnails" | "transcript";
1446
- /** Convenience flag so callers can understand why `thumbnailScores` may contain a transcript entry. */
1499
+ /**
1500
+ * Which surfaces were actually moderated (derived from `thumbnailModeration`
1501
+ * and `transcriptModeration`):
1502
+ * - `"thumbnails"`: only image thumbnails.
1503
+ * - `"transcript"`: only transcript text.
1504
+ * - `"combined"`: both.
1505
+ */
1506
+ mode: "thumbnails" | "transcript" | "combined";
1507
+ /** Convenience flag indicating the asset has no video track. */
1447
1508
  isAudioOnly: boolean;
1509
+ /** Image (thumbnail) moderation results. Empty unless `thumbnailModeration.status` is `"completed"`. */
1448
1510
  thumbnailScores: ThumbnailModerationScore[];
1511
+ /**
1512
+ * Transcript moderation results, one entry per moderated time window
1513
+ * (each carries `startTime`/`endTime`). Empty unless
1514
+ * `transcriptModeration.status` is `"completed"`.
1515
+ */
1516
+ transcriptScores: TranscriptModerationScore[];
1517
+ /** Audit trail for the thumbnail surface: completed, skipped (and why), or failed (and why). */
1518
+ thumbnailModeration: ThumbnailModerationStatus;
1519
+ /** Audit trail for the transcript surface: completed, skipped (and why), or failed (and why). */
1520
+ transcriptModeration: TranscriptModerationStatus;
1449
1521
  /** Coverage metadata describing how many requested moderation samples actually succeeded. */
1450
1522
  coverage: {
1451
1523
  requestedSampleCount: number;
@@ -1453,12 +1525,15 @@ interface ModerationResult {
1453
1525
  failedSampleCount: number;
1454
1526
  /** Fraction of requested samples that produced a usable moderation result. */
1455
1527
  sampleCoverage: number;
1456
- /** True when at least one sample failed but the workflow still returned a result. */
1528
+ /**
1529
+ * True when at least one thumbnail or transcript window failed but the
1530
+ * workflow still returned a result.
1531
+ */
1457
1532
  isPartial: boolean;
1458
1533
  /**
1459
- * True when threshold interpretation should be treated cautiously.
1460
- * For thumbnail moderation, this means we either covered less than half of planned samples
1461
- * or ended up with fewer than 3 successful thumbnails.
1534
+ * True when threshold interpretation should be treated cautiously: fewer
1535
+ * than half of the planned thumbnails (or fewer than 3) succeeded, or a
1536
+ * surface that ran failed entirely.
1462
1537
  */
1463
1538
  isLowConfidence: boolean;
1464
1539
  };
@@ -1497,10 +1572,16 @@ interface ModerationOptions extends ScopedMuxAIOptions {
1497
1572
  /** OpenAI moderation model identifier (defaults to 'omni-moderation-latest'). */
1498
1573
  model?: string;
1499
1574
  /**
1500
- * Optional transcript language code used when moderating audio-only assets.
1501
- * If omitted, the first ready text track will be used.
1575
+ * Language code of the caption track to moderate. If omitted, an English
1576
+ * subtitles track is preferred and otherwise the first ready text track is used.
1502
1577
  */
1503
1578
  languageCode?: string;
1579
+ /**
1580
+ * Moderate the caption transcript alongside thumbnails (defaults to true). When false,
1581
+ * video assets are moderated on thumbnails only. Ignored for audio-only assets, where
1582
+ * the transcript is the only surface that can be moderated.
1583
+ */
1584
+ includeTranscript?: boolean;
1504
1585
  /** Override the default sexual/violence thresholds (0-1). */
1505
1586
  thresholds?: {
1506
1587
  sexual?: number;
@@ -1519,6 +1600,25 @@ interface ModerationOptions extends ScopedMuxAIOptions {
1519
1600
  /** Download tuning used when `imageSubmissionMode` === 'base64'. */
1520
1601
  imageDownloadOptions?: ImageDownloadOptions;
1521
1602
  }
1603
+ /**
1604
+ * Default tuning for transcript time-windowing. Window SIZE scales with the
1605
+ * asset's duration and consecutive windows OVERLAP so abuse straddling a
1606
+ * boundary is still scored intact in at least one window:
1607
+ *
1608
+ * windowSeconds = clamp(duration / targetWindowCount, minWindowSeconds, maxWindowSeconds)
1609
+ * overlapSeconds = max(minOverlapSeconds, windowSeconds * overlapFraction)
1610
+ * stride = max(windowSeconds - overlapSeconds, 1)
1611
+ *
1612
+ * Exported so callers can approximate window count from duration alone (e.g. for a
1613
+ * pre-flight cost estimate before fetching/parsing the real transcript).
1614
+ */
1615
+ declare const DEFAULT_TRANSCRIPT_WINDOWING: {
1616
+ readonly targetWindowCount: 40;
1617
+ readonly minWindowSeconds: 20;
1618
+ readonly maxWindowSeconds: 120;
1619
+ readonly overlapFraction: 0.15;
1620
+ readonly minOverlapSeconds: 5;
1621
+ };
1522
1622
  /**
1523
1623
  * Linear mapping of Google Vision SafeSearch `Likelihood` enum (UNKNOWN..VERY_LIKELY)
1524
1624
  * onto a 0..1 score. This mapping may change in future versions of `@mux/ai`.
@@ -1526,10 +1626,47 @@ interface ModerationOptions extends ScopedMuxAIOptions {
1526
1626
  declare const GOOGLE_VISION_LIKELIHOOD_TO_SCORE: Record<string, number>;
1527
1627
  declare const HIVE_SEXUAL_CATEGORIES: string[];
1528
1628
  declare const HIVE_VIOLENCE_CATEGORIES: string[];
1629
+ /** A time-bounded window of transcript text built from caption cues. */
1630
+ interface TranscriptWindow {
1631
+ startTime: number;
1632
+ endTime: number;
1633
+ text: string;
1634
+ }
1635
+ /**
1636
+ * Build DYNAMIC, OVERLAPPING transcript windows from timestamped caption cues.
1637
+ *
1638
+ * Window SIZE scales with the asset's `duration` and consecutive windows
1639
+ * OVERLAP so abuse straddling a window boundary is still scored intact in at
1640
+ * least one window:
1641
+ *
1642
+ * windowSeconds = clamp(duration / targetWindowCount, minWindowSeconds, maxWindowSeconds)
1643
+ * overlapSeconds = max(minOverlapSeconds, windowSeconds * overlapFraction)
1644
+ * stride = max(windowSeconds - overlapSeconds, 1) // never <= 0
1645
+ *
1646
+ * Window k covers the time interval `[k*stride, k*stride + windowSeconds]`. A
1647
+ * cue belongs to window k when it intersects that interval, so boundary cues
1648
+ * appear in both neighbouring windows. Empty windows (gaps of silence) are
1649
+ * skipped, and two consecutive windows containing the exact same cue set are
1650
+ * deduped to avoid a redundant request. A window whose joined text would exceed
1651
+ * {@link TRANSCRIPT_WINDOW_MAX_UTF16_CODE_UNITS} is split into sub-windows under
1652
+ * the cap as a rare safety guard.
1653
+ *
1654
+ * NOTE: because windows overlap by design, consecutive windows' reported
1655
+ * `[startTime, endTime]` ranges may overlap by ~`overlapSeconds`.
1656
+ *
1657
+ * Exported for direct unit testing without network access.
1658
+ */
1659
+ declare function buildTranscriptWindows(cues: VTTCue[], duration: number): TranscriptWindow[];
1529
1660
  /**
1530
- * Moderate a Mux asset.
1531
- * - Video assets: moderates storyboard thumbnails (image moderation)
1532
- * - Audio-only assets: moderates transcript text (text moderation)
1661
+ * Moderate a Mux asset. By default both surfaces are moderated where available:
1662
+ * - Thumbnails: sampled storyboard frames (image moderation). Skipped for audio-only assets.
1663
+ * - Transcript: caption text in time windows (text moderation). Skipped when no
1664
+ * usable caption track exists, the provider is image-only, or `includeTranscript`
1665
+ * is false for a video asset.
1666
+ *
1667
+ * Each surface reports its outcome in `thumbnailModeration` / `transcriptModeration`.
1668
+ * Throws when neither surface can be moderated, since a result with nothing
1669
+ * scored would read as "clean".
1533
1670
  *
1534
1671
  * Provider notes:
1535
1672
  * - provider 'openai' uses OpenAI's hosted moderation endpoint (requires OPENAI_API_KEY)
@@ -1986,6 +2123,7 @@ type index_ChaptersType = ChaptersType;
1986
2123
  declare const index_DEFAULT_DESCRIPTION_LENGTH: typeof DEFAULT_DESCRIPTION_LENGTH;
1987
2124
  declare const index_DEFAULT_SUMMARY_KEYWORD_LIMIT: typeof DEFAULT_SUMMARY_KEYWORD_LIMIT;
1988
2125
  declare const index_DEFAULT_TITLE_LENGTH: typeof DEFAULT_TITLE_LENGTH;
2126
+ declare const index_DEFAULT_TRANSCRIPT_WINDOWING: typeof DEFAULT_TRANSCRIPT_WINDOWING;
1989
2127
  type index_EditCaptionsOptions<P extends SupportedProvider = SupportedProvider> = EditCaptionsOptions<P>;
1990
2128
  type index_EditCaptionsResult = EditCaptionsResult;
1991
2129
  type index_EmbeddingsOptions = EmbeddingsOptions;
@@ -2027,6 +2165,7 @@ type index_HiveModerationSource = HiveModerationSource;
2027
2165
  type index_ModerationOptions = ModerationOptions;
2028
2166
  type index_ModerationProvider = ModerationProvider;
2029
2167
  type index_ModerationResult = ModerationResult;
2168
+ type index_ModerationSurfaceStatus<Reason extends string> = ModerationSurfaceStatus<Reason>;
2030
2169
  type index_MomentInsight = MomentInsight;
2031
2170
  type index_OverallInsight = OverallInsight;
2032
2171
  type index_ProfanityDetectionPayload = ProfanityDetectionPayload;
@@ -2050,6 +2189,11 @@ type index_SummaryType = SummaryType;
2050
2189
  type index_TextLengthLimit = TextLengthLimit;
2051
2190
  type index_TextRepairModelOptions = TextRepairModelOptions;
2052
2191
  type index_ThumbnailModerationScore = ThumbnailModerationScore;
2192
+ type index_ThumbnailModerationSkipReason = ThumbnailModerationSkipReason;
2193
+ type index_ThumbnailModerationStatus = ThumbnailModerationStatus;
2194
+ type index_TranscriptModerationScore = TranscriptModerationScore;
2195
+ type index_TranscriptModerationSkipReason = TranscriptModerationSkipReason;
2196
+ type index_TranscriptModerationStatus = TranscriptModerationStatus;
2053
2197
  type index_TranslationChunkingOptions = TranslationChunkingOptions;
2054
2198
  type index_TranslationOptions<P extends SupportedProvider = SupportedProvider> = TranslationOptions<P>;
2055
2199
  type index_TranslationPayload = TranslationPayload;
@@ -2061,6 +2205,7 @@ declare const index_applySpeakerReplacements: typeof applySpeakerReplacements;
2061
2205
  declare const index_applyTextRepair: typeof applyTextRepair;
2062
2206
  declare const index_askQuestions: typeof askQuestions;
2063
2207
  declare const index_buildReplacementRegex: typeof buildReplacementRegex;
2208
+ declare const index_buildTranscriptWindows: typeof buildTranscriptWindows;
2064
2209
  declare const index_burnedInCaptionsSchema: typeof burnedInCaptionsSchema;
2065
2210
  declare const index_censorVttContent: typeof censorVttContent;
2066
2211
  declare const index_chapterSchema: typeof chapterSchema;
@@ -2100,7 +2245,7 @@ declare const index_translationSchema: typeof translationSchema;
2100
2245
  declare const index_validateNeverTranslateTerms: typeof validateNeverTranslateTerms;
2101
2246
  declare const index_verifyNeverTranslateTerms: typeof verifyNeverTranslateTerms;
2102
2247
  declare namespace index {
2103
- export { index_ASK_QUESTIONS_DEFAULT_MAX_ANSWER_OPTION_LENGTH as ASK_QUESTIONS_DEFAULT_MAX_ANSWER_OPTION_LENGTH, index_ASK_QUESTIONS_DEFAULT_MAX_FREE_FORM_ANSWER_LENGTH as ASK_QUESTIONS_DEFAULT_MAX_FREE_FORM_ANSWER_LENGTH, index_ASK_QUESTIONS_MAX_QUESTIONS_PER_CALL as ASK_QUESTIONS_MAX_QUESTIONS_PER_CALL, index_ASK_QUESTIONS_MAX_QUESTION_LENGTH as ASK_QUESTIONS_MAX_QUESTION_LENGTH, 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_AutoCensorProfanityOptions as AutoCensorProfanityOptions, 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_CaptionReplacement as CaptionReplacement, type index_CensorMode as CensorMode, 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, index_DEFAULT_DESCRIPTION_LENGTH as DEFAULT_DESCRIPTION_LENGTH, index_DEFAULT_SUMMARY_KEYWORD_LIMIT as DEFAULT_SUMMARY_KEYWORD_LIMIT, index_DEFAULT_TITLE_LENGTH as DEFAULT_TITLE_LENGTH, type index_EditCaptionsOptions as EditCaptionsOptions, type index_EditCaptionsResult as EditCaptionsResult, type index_EmbeddingsOptions as EmbeddingsOptions, type index_EmbeddingsResult as EmbeddingsResult, type index_EngagementInsightsOptions as EngagementInsightsOptions, type index_EngagementInsightsResult as EngagementInsightsResult, index_GENERATE_TEXT_CALLS_TO_ACTION as GENERATE_TEXT_CALLS_TO_ACTION, index_GENERATE_TEXT_CHANNELS as GENERATE_TEXT_CHANNELS, index_GENERATE_TEXT_CHANNEL_CEILINGS as GENERATE_TEXT_CHANNEL_CEILINGS, index_GENERATE_TEXT_FORMATS as GENERATE_TEXT_FORMATS, index_GENERATE_TEXT_LENGTH_BOUNDS as GENERATE_TEXT_LENGTH_BOUNDS, index_GENERATE_TEXT_MAX_ARTIFACTS as GENERATE_TEXT_MAX_ARTIFACTS, index_GENERATE_TEXT_MAX_AUDIENCE_CHARS as GENERATE_TEXT_MAX_AUDIENCE_CHARS, index_GENERATE_TEXT_MAX_BRAND_TERMS as GENERATE_TEXT_MAX_BRAND_TERMS, index_GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS as GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS, index_GENERATE_TEXT_MAX_BRAND_TERM_CHARS as GENERATE_TEXT_MAX_BRAND_TERM_CHARS, index_GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS as GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS, index_GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS as GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS, index_GENERATE_TEXT_MAX_SHOT_FRAMES as GENERATE_TEXT_MAX_SHOT_FRAMES, index_GENERATE_TEXT_MAX_VARIANTS as GENERATE_TEXT_MAX_VARIANTS, index_GENERATE_TEXT_VOICES as GENERATE_TEXT_VOICES, index_GOOGLE_VISION_LIKELIHOOD_TO_SCORE as GOOGLE_VISION_LIKELIHOOD_TO_SCORE, type index_GenerateTextArtifact as GenerateTextArtifact, type index_GenerateTextCallToAction as GenerateTextCallToAction, type index_GenerateTextChannel as GenerateTextChannel, type index_GenerateTextFormat as GenerateTextFormat, type index_GenerateTextKeyedItem as GenerateTextKeyedItem, type index_GenerateTextLengthLimit as GenerateTextLengthLimit, type index_GenerateTextOptions as GenerateTextOptions, type index_GenerateTextResult as GenerateTextResult, type index_GenerateTextVariant as GenerateTextVariant, type index_GenerateTextVoice as GenerateTextVoice, type index_GeneratedTextArtifact as GeneratedTextArtifact, type index_GeneratedTextVariant as GeneratedTextVariant, 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_MomentInsight as MomentInsight, type index_OverallInsight as OverallInsight, type index_ProfanityDetectionPayload as ProfanityDetectionPayload, type index_Question as Question, type index_QuestionAnswer as QuestionAnswer, type index_QuestionAnswerType as QuestionAnswerType, type index_RepairAttempt as RepairAttempt, type index_RepairCall as RepairCall, type index_RepairOptions as RepairOptions, type index_RepairPlan as RepairPlan, type index_RepairResult as RepairResult, type index_RepairSpan as RepairSpan, type index_ReplacementRecord as ReplacementRecord, type index_SpeakerReplacement as SpeakerReplacement, type index_StaticRenditionCleanupOutcome as StaticRenditionCleanupOutcome, 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_TextLengthLimit as TextLengthLimit, type index_TextRepairModelOptions as TextRepairModelOptions, 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_applyOverrideLists as applyOverrideLists, index_applyReplacements as applyReplacements, index_applySpeakerReplacements as applySpeakerReplacements, index_applyTextRepair as applyTextRepair, index_askQuestions as askQuestions, index_buildReplacementRegex as buildReplacementRegex, index_burnedInCaptionsSchema as burnedInCaptionsSchema, index_censorVttContent as censorVttContent, index_chapterSchema as chapterSchema, index_chaptersSchema as chaptersSchema, index_createReplacer as createReplacer, index_createTextRepairGenerator as createTextRepairGenerator, index_editCaptions as editCaptions, index_extractTranscriptSegmentsForHotspots as extractTranscriptSegmentsForHotspots, index_findGenerateTextLengthViolation as findGenerateTextLengthViolation, index_generateChapters as generateChapters, index_generateEmbeddings as generateEmbeddings, index_generateEngagementInsights as generateEngagementInsights, index_generateText as generateText, index_generateVideoEmbeddings as generateVideoEmbeddings, index_getModerationScores as getModerationScores, index_getSummaryAndTags as getSummaryAndTags, index_hasBurnedInCaptions as hasBurnedInCaptions, index_mapShotsToHotspots as mapShotsToHotspots, index_measureGenerateTextLength as measureGenerateTextLength, index_normalizeTranslatedVtt as normalizeTranslatedVtt, index_planTextRepair as planTextRepair, index_profanityDetectionSchema as profanityDetectionSchema, index_questionAnswerSchema as questionAnswerSchema, index_repairJsonSchema as repairJsonSchema, index_repairText as repairText, index_resolveGenerateTextLengthLimit as resolveGenerateTextLengthLimit, index_resolveGenerateTextLengthLimits as resolveGenerateTextLengthLimits, index_resolveGenerateTextOptions as resolveGenerateTextOptions, index_runTextRepairLoop as runTextRepairLoop, index_selectGenerateTextShotFrames as selectGenerateTextShotFrames, index_shouldSplitChunkTranslationError as shouldSplitChunkTranslationError, index_summarySchema as summarySchema, index_transformCueText as transformCueText, index_translateAudio as translateAudio, index_translateCaptions as translateCaptions, index_translationSchema as translationSchema, index_validateNeverTranslateTerms as validateNeverTranslateTerms, index_verifyNeverTranslateTerms as verifyNeverTranslateTerms };
2248
+ export { index_ASK_QUESTIONS_DEFAULT_MAX_ANSWER_OPTION_LENGTH as ASK_QUESTIONS_DEFAULT_MAX_ANSWER_OPTION_LENGTH, index_ASK_QUESTIONS_DEFAULT_MAX_FREE_FORM_ANSWER_LENGTH as ASK_QUESTIONS_DEFAULT_MAX_FREE_FORM_ANSWER_LENGTH, index_ASK_QUESTIONS_MAX_QUESTIONS_PER_CALL as ASK_QUESTIONS_MAX_QUESTIONS_PER_CALL, index_ASK_QUESTIONS_MAX_QUESTION_LENGTH as ASK_QUESTIONS_MAX_QUESTION_LENGTH, 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_AutoCensorProfanityOptions as AutoCensorProfanityOptions, 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_CaptionReplacement as CaptionReplacement, type index_CensorMode as CensorMode, 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, index_DEFAULT_DESCRIPTION_LENGTH as DEFAULT_DESCRIPTION_LENGTH, index_DEFAULT_SUMMARY_KEYWORD_LIMIT as DEFAULT_SUMMARY_KEYWORD_LIMIT, index_DEFAULT_TITLE_LENGTH as DEFAULT_TITLE_LENGTH, index_DEFAULT_TRANSCRIPT_WINDOWING as DEFAULT_TRANSCRIPT_WINDOWING, type index_EditCaptionsOptions as EditCaptionsOptions, type index_EditCaptionsResult as EditCaptionsResult, type index_EmbeddingsOptions as EmbeddingsOptions, type index_EmbeddingsResult as EmbeddingsResult, type index_EngagementInsightsOptions as EngagementInsightsOptions, type index_EngagementInsightsResult as EngagementInsightsResult, index_GENERATE_TEXT_CALLS_TO_ACTION as GENERATE_TEXT_CALLS_TO_ACTION, index_GENERATE_TEXT_CHANNELS as GENERATE_TEXT_CHANNELS, index_GENERATE_TEXT_CHANNEL_CEILINGS as GENERATE_TEXT_CHANNEL_CEILINGS, index_GENERATE_TEXT_FORMATS as GENERATE_TEXT_FORMATS, index_GENERATE_TEXT_LENGTH_BOUNDS as GENERATE_TEXT_LENGTH_BOUNDS, index_GENERATE_TEXT_MAX_ARTIFACTS as GENERATE_TEXT_MAX_ARTIFACTS, index_GENERATE_TEXT_MAX_AUDIENCE_CHARS as GENERATE_TEXT_MAX_AUDIENCE_CHARS, index_GENERATE_TEXT_MAX_BRAND_TERMS as GENERATE_TEXT_MAX_BRAND_TERMS, index_GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS as GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS, index_GENERATE_TEXT_MAX_BRAND_TERM_CHARS as GENERATE_TEXT_MAX_BRAND_TERM_CHARS, index_GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS as GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS, index_GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS as GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS, index_GENERATE_TEXT_MAX_SHOT_FRAMES as GENERATE_TEXT_MAX_SHOT_FRAMES, index_GENERATE_TEXT_MAX_VARIANTS as GENERATE_TEXT_MAX_VARIANTS, index_GENERATE_TEXT_VOICES as GENERATE_TEXT_VOICES, index_GOOGLE_VISION_LIKELIHOOD_TO_SCORE as GOOGLE_VISION_LIKELIHOOD_TO_SCORE, type index_GenerateTextArtifact as GenerateTextArtifact, type index_GenerateTextCallToAction as GenerateTextCallToAction, type index_GenerateTextChannel as GenerateTextChannel, type index_GenerateTextFormat as GenerateTextFormat, type index_GenerateTextKeyedItem as GenerateTextKeyedItem, type index_GenerateTextLengthLimit as GenerateTextLengthLimit, type index_GenerateTextOptions as GenerateTextOptions, type index_GenerateTextResult as GenerateTextResult, type index_GenerateTextVariant as GenerateTextVariant, type index_GenerateTextVoice as GenerateTextVoice, type index_GeneratedTextArtifact as GeneratedTextArtifact, type index_GeneratedTextVariant as GeneratedTextVariant, 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_ModerationSurfaceStatus as ModerationSurfaceStatus, type index_MomentInsight as MomentInsight, type index_OverallInsight as OverallInsight, type index_ProfanityDetectionPayload as ProfanityDetectionPayload, type index_Question as Question, type index_QuestionAnswer as QuestionAnswer, type index_QuestionAnswerType as QuestionAnswerType, type index_RepairAttempt as RepairAttempt, type index_RepairCall as RepairCall, type index_RepairOptions as RepairOptions, type index_RepairPlan as RepairPlan, type index_RepairResult as RepairResult, type index_RepairSpan as RepairSpan, type index_ReplacementRecord as ReplacementRecord, type index_SpeakerReplacement as SpeakerReplacement, type index_StaticRenditionCleanupOutcome as StaticRenditionCleanupOutcome, 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_TextLengthLimit as TextLengthLimit, type index_TextRepairModelOptions as TextRepairModelOptions, type index_ThumbnailModerationScore as ThumbnailModerationScore, type index_ThumbnailModerationSkipReason as ThumbnailModerationSkipReason, type index_ThumbnailModerationStatus as ThumbnailModerationStatus, type index_TranscriptModerationScore as TranscriptModerationScore, type index_TranscriptModerationSkipReason as TranscriptModerationSkipReason, type index_TranscriptModerationStatus as TranscriptModerationStatus, 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_applyOverrideLists as applyOverrideLists, index_applyReplacements as applyReplacements, index_applySpeakerReplacements as applySpeakerReplacements, index_applyTextRepair as applyTextRepair, index_askQuestions as askQuestions, index_buildReplacementRegex as buildReplacementRegex, index_buildTranscriptWindows as buildTranscriptWindows, index_burnedInCaptionsSchema as burnedInCaptionsSchema, index_censorVttContent as censorVttContent, index_chapterSchema as chapterSchema, index_chaptersSchema as chaptersSchema, index_createReplacer as createReplacer, index_createTextRepairGenerator as createTextRepairGenerator, index_editCaptions as editCaptions, index_extractTranscriptSegmentsForHotspots as extractTranscriptSegmentsForHotspots, index_findGenerateTextLengthViolation as findGenerateTextLengthViolation, index_generateChapters as generateChapters, index_generateEmbeddings as generateEmbeddings, index_generateEngagementInsights as generateEngagementInsights, index_generateText as generateText, index_generateVideoEmbeddings as generateVideoEmbeddings, index_getModerationScores as getModerationScores, index_getSummaryAndTags as getSummaryAndTags, index_hasBurnedInCaptions as hasBurnedInCaptions, index_mapShotsToHotspots as mapShotsToHotspots, index_measureGenerateTextLength as measureGenerateTextLength, index_normalizeTranslatedVtt as normalizeTranslatedVtt, index_planTextRepair as planTextRepair, index_profanityDetectionSchema as profanityDetectionSchema, index_questionAnswerSchema as questionAnswerSchema, index_repairJsonSchema as repairJsonSchema, index_repairText as repairText, index_resolveGenerateTextLengthLimit as resolveGenerateTextLengthLimit, index_resolveGenerateTextLengthLimits as resolveGenerateTextLengthLimits, index_resolveGenerateTextOptions as resolveGenerateTextOptions, index_runTextRepairLoop as runTextRepairLoop, index_selectGenerateTextShotFrames as selectGenerateTextShotFrames, index_shouldSplitChunkTranslationError as shouldSplitChunkTranslationError, index_summarySchema as summarySchema, index_transformCueText as transformCueText, index_translateAudio as translateAudio, index_translateCaptions as translateCaptions, index_translationSchema as translationSchema, index_validateNeverTranslateTerms as validateNeverTranslateTerms, index_verifyNeverTranslateTerms as verifyNeverTranslateTerms };
2104
2249
  }
2105
2250
 
2106
- export { type BurnedInCaptionsPromptSections as $, replaceAndCreateTextTrack as A, replaceAndCreateTrack as B, replaceSourceTrack as C, summarizeTextTrack as D, toISO639_1 as E, toISO639_3 as F, validateTrackPassthrough as G, index as H, type ISO639_1 as I, ASK_QUESTIONS_DEFAULT_MAX_ANSWER_OPTION_LENGTH as J, ASK_QUESTIONS_DEFAULT_MAX_FREE_FORM_ANSWER_LENGTH as K, type LanguageCodePair as L, MUX_TRACK_PASSTHROUGH_MAX_CHARS as M, ASK_QUESTIONS_MAX_QUESTIONS_PER_CALL as N, ASK_QUESTIONS_MAX_QUESTION_LENGTH as O, type AskQuestionsOptions as P, type AskQuestionsResult as Q, type ReplaceAndCreateTextTrackInput as R, type SourceTrackReplacementPolicy as S, type TextTrackReplacementPlan as T, type AskQuestionsType as U, type AudioTranslationOptions as V, type AudioTranslationResult as W, type AutoCensorProfanityOptions as X, type BurnedInCaptionsAnalysis as Y, type BurnedInCaptionsOptions as Z, type BurnedInCaptionsPromptOverrides as _, type ISO639_3 as a, type ReplacementRecord as a$, type BurnedInCaptionsResult as a0, type CaptionReplacement as a1, type CensorMode as a2, type Chapter as a3, type ChapterSystemPromptSections as a4, type ChaptersOptions as a5, type ChaptersPromptOverrides as a6, type ChaptersPromptSections as a7, type ChaptersResult as a8, type ChaptersType as a9, type GenerateTextKeyedItem as aA, type GenerateTextLengthLimit as aB, type GenerateTextOptions as aC, type GenerateTextResult as aD, type GenerateTextVariant as aE, type GenerateTextVoice as aF, type GeneratedTextArtifact as aG, type GeneratedTextVariant as aH, HIVE_SEXUAL_CATEGORIES as aI, HIVE_VIOLENCE_CATEGORIES as aJ, type HiveModerationOutput as aK, type HiveModerationSource as aL, type ModerationOptions as aM, type ModerationProvider as aN, type ModerationResult as aO, type MomentInsight as aP, type OverallInsight as aQ, type ProfanityDetectionPayload as aR, type Question as aS, type QuestionAnswer as aT, type QuestionAnswerType as aU, type RepairAttempt as aV, type RepairCall as aW, type RepairOptions as aX, type RepairPlan as aY, type RepairResult as aZ, type RepairSpan as a_, type EditCaptionsOptions as aa, type EditCaptionsResult as ab, type EmbeddingsOptions as ac, type EmbeddingsResult as ad, type EngagementInsightsOptions as ae, type EngagementInsightsResult as af, GENERATE_TEXT_CALLS_TO_ACTION as ag, GENERATE_TEXT_CHANNELS as ah, GENERATE_TEXT_CHANNEL_CEILINGS as ai, GENERATE_TEXT_FORMATS as aj, GENERATE_TEXT_LENGTH_BOUNDS as ak, GENERATE_TEXT_MAX_ARTIFACTS as al, GENERATE_TEXT_MAX_AUDIENCE_CHARS as am, GENERATE_TEXT_MAX_BRAND_TERMS as an, GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS as ao, GENERATE_TEXT_MAX_BRAND_TERM_CHARS as ap, GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS as aq, GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS as ar, GENERATE_TEXT_MAX_SHOT_FRAMES as as, GENERATE_TEXT_MAX_VARIANTS as at, GENERATE_TEXT_VOICES as au, GOOGLE_VISION_LIKELIHOOD_TO_SCORE as av, type GenerateTextArtifact as aw, type GenerateTextCallToAction as ax, type GenerateTextChannel as ay, type GenerateTextFormat as az, type ReplaceAndCreateTextTrackResult as b, type SpeakerReplacement as b0, type StaticRenditionCleanupOutcome as b1, type SummarizationOptions as b2, type SummarizationPromptOverrides as b3, type SummarizationPromptSections as b4, type SummaryAndTagsResult as b5, type SummaryType as b6, type TextLengthLimit as b7, type TextRepairModelOptions as b8, type ThumbnailModerationScore as b9, getSummaryAndTags as bA, hasBurnedInCaptions as bB, mapShotsToHotspots as bC, measureGenerateTextLength as bD, normalizeTranslatedVtt as bE, planTextRepair as bF, profanityDetectionSchema as bG, questionAnswerSchema as bH, repairJsonSchema as bI, repairText as bJ, resolveGenerateTextLengthLimit as bK, resolveGenerateTextLengthLimits as bL, resolveGenerateTextOptions as bM, runTextRepairLoop as bN, selectGenerateTextShotFrames as bO, shouldSplitChunkTranslationError as bP, summarySchema as bQ, transformCueText as bR, translateAudio as bS, translateCaptions as bT, translationSchema as bU, validateNeverTranslateTerms as bV, verifyNeverTranslateTerms as bW, type TranslationChunkingOptions as ba, type TranslationOptions as bb, type TranslationPayload as bc, type TranslationResult as bd, aggregateTokenUsage as be, applyOverrideLists as bf, applyReplacements as bg, applySpeakerReplacements as bh, applyTextRepair as bi, askQuestions as bj, buildReplacementRegex as bk, burnedInCaptionsSchema as bl, censorVttContent as bm, chapterSchema as bn, chaptersSchema as bo, createReplacer as bp, createTextRepairGenerator as bq, editCaptions as br, extractTranscriptSegmentsForHotspots as bs, findGenerateTextLengthViolation as bt, generateChapters as bu, generateEmbeddings as bv, generateEngagementInsights as bw, generateText as bx, generateVideoEmbeddings as by, getModerationScores as bz, type ReplaceAndCreateTrackInput as c, type ReplaceExistingTracksPolicy as d, type ReplaceSourceTrackInput as e, type ReplaceableTrackType as f, type SupportedISO639_1 as g, type SupportedISO639_3 as h, type TextTrackSummary as i, type TextTrackTarget as j, type TrackSummary as k, type TrackTarget as l, buildMuxAiTrackPassthrough as m, findNameCollisionTextTracks as n, findSameLanguageTextTracks as o, getLanguageCodePair as p, getLanguageName as q, isDuplicateTrackNameError as r, isMuxGeneratedTextTrack as s, isUndeterminedLanguageCode as t, isValidISO639_1 as u, isValidISO639_3 as v, normalizeTrackLanguageCode as w, normalizeTrackName as x, planSourceTrackReplacement as y, planTextTrackReplacement as z };
2251
+ export { type BurnedInCaptionsPromptSections as $, replaceAndCreateTextTrack as A, replaceAndCreateTrack as B, replaceSourceTrack as C, summarizeTextTrack as D, toISO639_1 as E, toISO639_3 as F, validateTrackPassthrough as G, index as H, type ISO639_1 as I, ASK_QUESTIONS_DEFAULT_MAX_ANSWER_OPTION_LENGTH as J, ASK_QUESTIONS_DEFAULT_MAX_FREE_FORM_ANSWER_LENGTH as K, type LanguageCodePair as L, MUX_TRACK_PASSTHROUGH_MAX_CHARS as M, ASK_QUESTIONS_MAX_QUESTIONS_PER_CALL as N, ASK_QUESTIONS_MAX_QUESTION_LENGTH as O, type AskQuestionsOptions as P, type AskQuestionsResult as Q, type ReplaceAndCreateTextTrackInput as R, type SourceTrackReplacementPolicy as S, type TextTrackReplacementPlan as T, type AskQuestionsType as U, type AudioTranslationOptions as V, type AudioTranslationResult as W, type AutoCensorProfanityOptions as X, type BurnedInCaptionsAnalysis as Y, type BurnedInCaptionsOptions as Z, type BurnedInCaptionsPromptOverrides as _, type ISO639_3 as a, type RepairResult as a$, type BurnedInCaptionsResult as a0, type CaptionReplacement as a1, type CensorMode as a2, type Chapter as a3, type ChapterSystemPromptSections as a4, type ChaptersOptions as a5, type ChaptersPromptOverrides as a6, type ChaptersPromptSections as a7, type ChaptersResult as a8, type ChaptersType as a9, type GenerateTextFormat as aA, type GenerateTextKeyedItem as aB, type GenerateTextLengthLimit as aC, type GenerateTextOptions as aD, type GenerateTextResult as aE, type GenerateTextVariant as aF, type GenerateTextVoice as aG, type GeneratedTextArtifact as aH, type GeneratedTextVariant as aI, HIVE_SEXUAL_CATEGORIES as aJ, HIVE_VIOLENCE_CATEGORIES as aK, type HiveModerationOutput as aL, type HiveModerationSource as aM, type ModerationOptions as aN, type ModerationProvider as aO, type ModerationResult as aP, type ModerationSurfaceStatus as aQ, type MomentInsight as aR, type OverallInsight as aS, type ProfanityDetectionPayload as aT, type Question as aU, type QuestionAnswer as aV, type QuestionAnswerType as aW, type RepairAttempt as aX, type RepairCall as aY, type RepairOptions as aZ, type RepairPlan as a_, DEFAULT_TRANSCRIPT_WINDOWING as aa, type EditCaptionsOptions as ab, type EditCaptionsResult as ac, type EmbeddingsOptions as ad, type EmbeddingsResult as ae, type EngagementInsightsOptions as af, type EngagementInsightsResult as ag, GENERATE_TEXT_CALLS_TO_ACTION as ah, GENERATE_TEXT_CHANNELS as ai, GENERATE_TEXT_CHANNEL_CEILINGS as aj, GENERATE_TEXT_FORMATS as ak, GENERATE_TEXT_LENGTH_BOUNDS as al, GENERATE_TEXT_MAX_ARTIFACTS as am, GENERATE_TEXT_MAX_AUDIENCE_CHARS as an, GENERATE_TEXT_MAX_BRAND_TERMS as ao, GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS as ap, GENERATE_TEXT_MAX_BRAND_TERM_CHARS as aq, GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS as ar, GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS as as, GENERATE_TEXT_MAX_SHOT_FRAMES as at, GENERATE_TEXT_MAX_VARIANTS as au, GENERATE_TEXT_VOICES as av, GOOGLE_VISION_LIKELIHOOD_TO_SCORE as aw, type GenerateTextArtifact as ax, type GenerateTextCallToAction as ay, type GenerateTextChannel as az, type ReplaceAndCreateTextTrackResult as b, translateCaptions as b$, type RepairSpan as b0, type ReplacementRecord as b1, type SpeakerReplacement as b2, type StaticRenditionCleanupOutcome as b3, type SummarizationOptions as b4, type SummarizationPromptOverrides as b5, type SummarizationPromptSections as b6, type SummaryAndTagsResult as b7, type SummaryType as b8, type TextLengthLimit as b9, extractTranscriptSegmentsForHotspots as bA, findGenerateTextLengthViolation as bB, generateChapters as bC, generateEmbeddings as bD, generateEngagementInsights as bE, generateText as bF, generateVideoEmbeddings as bG, getModerationScores as bH, getSummaryAndTags as bI, hasBurnedInCaptions as bJ, mapShotsToHotspots as bK, measureGenerateTextLength as bL, normalizeTranslatedVtt as bM, planTextRepair as bN, profanityDetectionSchema as bO, questionAnswerSchema as bP, repairJsonSchema as bQ, repairText as bR, resolveGenerateTextLengthLimit as bS, resolveGenerateTextLengthLimits as bT, resolveGenerateTextOptions as bU, runTextRepairLoop as bV, selectGenerateTextShotFrames as bW, shouldSplitChunkTranslationError as bX, summarySchema as bY, transformCueText as bZ, translateAudio as b_, type TextRepairModelOptions as ba, type ThumbnailModerationScore as bb, type ThumbnailModerationSkipReason as bc, type ThumbnailModerationStatus as bd, type TranscriptModerationScore as be, type TranscriptModerationSkipReason as bf, type TranscriptModerationStatus as bg, type TranslationChunkingOptions as bh, type TranslationOptions as bi, type TranslationPayload as bj, type TranslationResult as bk, aggregateTokenUsage as bl, applyOverrideLists as bm, applyReplacements as bn, applySpeakerReplacements as bo, applyTextRepair as bp, askQuestions as bq, buildReplacementRegex as br, buildTranscriptWindows as bs, burnedInCaptionsSchema as bt, censorVttContent as bu, chapterSchema as bv, chaptersSchema as bw, createReplacer as bx, createTextRepairGenerator as by, editCaptions as bz, type ReplaceAndCreateTrackInput as c, translationSchema as c0, validateNeverTranslateTerms as c1, verifyNeverTranslateTerms as c2, type ReplaceExistingTracksPolicy as d, type ReplaceSourceTrackInput as e, type ReplaceableTrackType as f, type SupportedISO639_1 as g, type SupportedISO639_3 as h, type TextTrackSummary as i, type TextTrackTarget as j, type TrackSummary as k, type TrackTarget as l, buildMuxAiTrackPassthrough as m, findNameCollisionTextTracks as n, findSameLanguageTextTracks as o, getLanguageCodePair as p, getLanguageName as q, isDuplicateTrackNameError as r, isMuxGeneratedTextTrack as s, isUndeterminedLanguageCode as t, isValidISO639_1 as u, isValidISO639_3 as v, normalizeTrackLanguageCode as w, normalizeTrackName as x, planSourceTrackReplacement as y, planTextTrackReplacement as z };
@@ -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,8 @@
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-sqJ9PpHw.js';
2
- import { M as MuxAsset, W as WorkflowCredentials, S as StoragePutObjectInput, a as StoragePresignGetObjectInput } from './shots-3wmvZnUV.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 './shots-3wmvZnUV.js';
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-CmTC1w4V.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-nu1UOAMW.js';
5
+ export { i as primitives } from './index-cbaPe-aE.js';
6
6
  import 'ai';
7
7
  import 'zod';
8
8
  import './summarization-BFmhXeAu.js';
@@ -11,7 +11,7 @@ import '@ai-sdk/google';
11
11
  import '@ai-sdk/openai';
12
12
  import '@mux/ts';
13
13
 
14
- var version = "0.52.0";
14
+ var version = "0.54.0";
15
15
 
16
16
  type MuxAiErrorType = "validation_error" | "processing_error" | "timeout_error" | "content_policy_error";
17
17
  /**
@@ -36,9 +36,12 @@ declare class MuxAiError extends Error {
36
36
  readonly publicMessage: string;
37
37
  /** Whether the customer should retry the job. */
38
38
  readonly retryable: boolean;
39
+ /** Internal diagnostic failure; non-enumerable and excluded from JSON. */
40
+ readonly cause?: unknown;
39
41
  constructor(message: string, opts?: {
40
42
  type?: MuxAiErrorType;
41
43
  retryable?: boolean;
44
+ cause?: unknown;
42
45
  });
43
46
  static is(value: unknown): value is MuxAiError;
44
47
  }