@mux/ai 0.51.0 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,10 @@
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, y as Shot, q as VTTCue, j as ToneType, g as StorageAdapter } from './transcripts-BCtzC8hZ.js';
1
3
  import { z } from 'zod';
2
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';
3
5
  import { createAnthropic } from '@ai-sdk/anthropic';
4
6
  import { createGoogleGenerativeAI } from '@ai-sdk/google';
5
7
  import { createOpenAI } from '@ai-sdk/openai';
6
- import { l as WorkflowCredentialsInput, M as MuxAsset, A as AssetTextTrack, f as ScopedMuxAIOptions, I as ImageSubmissionMode, i as TokenUsage, 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';
7
8
 
8
9
  /**
9
10
  * Language Code Conversion Utilities
@@ -318,6 +319,128 @@ declare function replaceSourceTrack(input: ReplaceSourceTrackInput): Promise<Rep
318
319
  /** `replaceAndCreateTrack` pinned to text tracks. */
319
320
  declare function replaceAndCreateTextTrack(input: ReplaceAndCreateTextTrackInput): Promise<ReplaceAndCreateTextTrackResult>;
320
321
 
322
+ interface TextLengthLimit {
323
+ unit: "characters" | "words";
324
+ value: number;
325
+ }
326
+ /**
327
+ * Measures text in the unit of a length limit. Characters are code points.
328
+ * Words use locale-aware segmentation so Markdown syntax is not counted and
329
+ * scripts without spaces are counted properly, falling back to whitespace
330
+ * splitting where `Intl.Segmenter` is unavailable.
331
+ */
332
+ declare function measureGenerateTextLength(content: string, unit: TextLengthLimit["unit"]): number;
333
+ /** The first limit a piece of text violates, if any. */
334
+ declare function findGenerateTextLengthViolation(content: string, limits: readonly TextLengthLimit[]): {
335
+ limit: TextLengthLimit;
336
+ actual: number;
337
+ } | undefined;
338
+
339
+ interface RepairSpan {
340
+ id: string;
341
+ text: string;
342
+ budgets: TextLengthLimit[];
343
+ }
344
+ interface RepairPlan {
345
+ spans: RepairSpan[];
346
+ protectedTerms: string[];
347
+ }
348
+ declare function planTextRepair(content: string, limits: readonly TextLengthLimit[], protectedTerms?: readonly string[]): RepairPlan | null;
349
+ declare function repairJsonSchema(plan: RepairPlan): {
350
+ type: "object";
351
+ additionalProperties: boolean;
352
+ required: string[];
353
+ properties: {
354
+ [k: string]: {
355
+ type: "string";
356
+ };
357
+ };
358
+ };
359
+ declare function applyTextRepair(content: string, plan: RepairPlan, replacements: unknown): {
360
+ readonly accepted: false;
361
+ readonly reason: "Invalid replacement object";
362
+ readonly content?: undefined;
363
+ } | {
364
+ readonly accepted: false;
365
+ readonly reason: "Unexpected or missing span IDs";
366
+ readonly content?: undefined;
367
+ } | {
368
+ readonly accepted: false;
369
+ readonly reason: "Stale repair plan";
370
+ readonly content?: undefined;
371
+ } | {
372
+ readonly accepted: false;
373
+ readonly reason: "Empty or incompatible paragraph replacement";
374
+ readonly content?: undefined;
375
+ } | {
376
+ readonly accepted: false;
377
+ readonly reason: "Protected term removed from edited spans";
378
+ readonly content?: undefined;
379
+ } | {
380
+ readonly accepted: true;
381
+ readonly content: string;
382
+ readonly reason?: undefined;
383
+ };
384
+ interface RepairCall<Usage> {
385
+ replacements?: unknown;
386
+ usage?: Usage;
387
+ elapsedMs: number;
388
+ error?: string;
389
+ /** Original failure, retaining classification/metadata alongside the message. */
390
+ errorCause?: unknown;
391
+ }
392
+ interface RepairAttempt<Usage> {
393
+ plan: RepairPlan;
394
+ call: RepairCall<Usage>;
395
+ rejection?: string;
396
+ }
397
+ /** Current repair policy: paragraph edits and at most two generation calls. */
398
+ interface RepairOptions<Usage> {
399
+ content: string;
400
+ limits: TextLengthLimit[];
401
+ protectedTerms?: string[];
402
+ generate: (plan: RepairPlan) => Promise<RepairCall<Usage>>;
403
+ maxAttempts?: number;
404
+ }
405
+ type RepairResult<Usage> = {
406
+ status: "valid";
407
+ content: string;
408
+ attempts: RepairAttempt<Usage>[];
409
+ } | {
410
+ status: "failed";
411
+ attempts: RepairAttempt<Usage>[];
412
+ reason: string;
413
+ };
414
+ /** Orchestrates paragraph repair through a caller-supplied generation callback. */
415
+ declare function runTextRepairLoop<Usage>(options: RepairOptions<Usage>): Promise<RepairResult<Usage>>;
416
+
417
+ /** Model configuration for paragraph repair. Credentials stay on the model. */
418
+ interface TextRepairModelOptions {
419
+ model: LanguageModel;
420
+ providerOptions?: Parameters<typeof generateText$1>[0]["providerOptions"];
421
+ /** Defaults to a bounded budget sized for the selected paragraphs. */
422
+ maxOutputTokens?: number;
423
+ /** Timeout for each call, in milliseconds (default: 30,000). */
424
+ timeoutMs?: number;
425
+ }
426
+ /**
427
+ * Builds an AI SDK callback for the model-independent repair kernel. It sends
428
+ * only selected paragraphs and never retries transport/provider failures.
429
+ * Every invocation consumes one of the kernel's two calls. Transient backoff
430
+ * belongs to the caller's job orchestration; wrapping this callback in withRetry
431
+ * would silently expand that budget. Non-retryable failures must stay terminal.
432
+ * Invoke it inside a durable step when using Workflow DevKit; it is not a step
433
+ * itself so callers can choose their own orchestration and usage persistence.
434
+ */
435
+ declare function createTextRepairGenerator(options: TextRepairModelOptions): (plan: RepairPlan) => Promise<RepairCall<TokenUsage>>;
436
+ /**
437
+ * Model-backed entrypoint for repairing over-cap paragraphs with an AI SDK model,
438
+ * returning exact validity
439
+ * and all attempt usage. Length validity does not imply semantic equivalence;
440
+ * callers own editorial review and safety filtering of the assembled output.
441
+ */
442
+ declare function repairText(options: Omit<RepairOptions<TokenUsage>, "generate"> & TextRepairModelOptions): Promise<RepairResult<TokenUsage>>;
443
+
321
444
  interface ImageDownloadOptions {
322
445
  /** Request timeout in milliseconds (default: 10000) */
323
446
  timeout?: number;
@@ -506,17 +629,17 @@ declare const questionAnswerSchema: z.ZodObject<{
506
629
  reasoning: z.ZodString;
507
630
  skipped: z.ZodBoolean;
508
631
  }, "strip", z.ZodTypeAny, {
632
+ reasoning: string;
509
633
  skipped: boolean;
510
634
  question: string;
511
635
  answer: string | null;
512
636
  confidence: number;
513
- reasoning: string;
514
637
  }, {
638
+ reasoning: string;
515
639
  skipped: boolean;
516
640
  question: string;
517
641
  answer: string | null;
518
642
  confidence: number;
519
- reasoning: string;
520
643
  }>;
521
644
  type QuestionAnswerType = z.infer<typeof questionAnswerSchema>;
522
645
  /**
@@ -533,33 +656,33 @@ declare function createAskQuestionsSchema(answerSchema: z.ZodType<string>): z.Zo
533
656
  } & {
534
657
  answer: z.ZodType<string, z.ZodTypeDef, string>;
535
658
  }, "strip", z.ZodTypeAny, {
659
+ reasoning: string;
536
660
  skipped: boolean;
537
661
  question: string;
538
662
  answer: string;
539
663
  confidence: number;
540
- reasoning: string;
541
664
  }, {
665
+ reasoning: string;
542
666
  skipped: boolean;
543
667
  question: string;
544
668
  answer: string;
545
669
  confidence: number;
546
- reasoning: string;
547
670
  }>, "many">;
548
671
  }, "strip", z.ZodTypeAny, {
549
672
  answers: {
673
+ reasoning: string;
550
674
  skipped: boolean;
551
675
  question: string;
552
676
  answer: string;
553
677
  confidence: number;
554
- reasoning: string;
555
678
  }[];
556
679
  }, {
557
680
  answers: {
681
+ reasoning: string;
558
682
  skipped: boolean;
559
683
  question: string;
560
684
  answer: string;
561
685
  confidence: number;
562
- reasoning: string;
563
686
  }[];
564
687
  }>;
565
688
  type AskQuestionsSchema = ReturnType<typeof createAskQuestionsSchema>;
@@ -1290,18 +1413,6 @@ declare function resolveGenerateTextLengthLimit(artifact: GenerateTextArtifact):
1290
1413
  * cap plus any channel ceiling, deduplicated when the cap already covers it.
1291
1414
  */
1292
1415
  declare function resolveGenerateTextLengthLimits(artifact: GenerateTextArtifact): GenerateTextLengthLimit[];
1293
- /**
1294
- * Measures text in the unit of a length limit. Characters are code points.
1295
- * Words use locale-aware segmentation so Markdown syntax is not counted and
1296
- * scripts without spaces are counted properly, falling back to whitespace
1297
- * splitting where `Intl.Segmenter` is unavailable.
1298
- */
1299
- declare function measureGenerateTextLength(content: string, unit: GenerateTextLengthLimit["unit"]): number;
1300
- /** The first limit a piece of text violates, if any. */
1301
- declare function findGenerateTextLengthViolation(content: string, limits: readonly GenerateTextLengthLimit[]): {
1302
- limit: GenerateTextLengthLimit;
1303
- actual: number;
1304
- } | undefined;
1305
1416
  /**
1306
1417
  * Picks an evenly distributed sample of shots that overlap the analyzed range.
1307
1418
  * Shot coverage runs from each shot's start to the next shot's start (or the
@@ -1317,24 +1428,95 @@ declare function selectGenerateTextShotFrames(shots: readonly Shot[], assetDurat
1317
1428
  */
1318
1429
  declare function generateText(assetId: string, options: GenerateTextOptions): Promise<GenerateTextResult>;
1319
1430
 
1320
- /** Per-thumbnail moderation result returned from `getModerationScores`. */
1431
+ /** Per-thumbnail (image) moderation result returned from `getModerationScores`. */
1321
1432
  interface ThumbnailModerationScore {
1322
1433
  url: string;
1323
- /** Time in seconds of the thumbnail within the video. Absent for transcript moderation entries. */
1434
+ /** Time in seconds of the thumbnail within the video. */
1324
1435
  time?: number;
1325
1436
  sexual: number;
1326
1437
  violence: number;
1327
1438
  error: boolean;
1328
1439
  errorMessage?: string;
1329
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
+ */
1492
+ type TranscriptModerationSkipReason = "no_ready_text_track" | "no_cues" | "unsupported_provider";
1493
+ type ThumbnailModerationStatus = ModerationSurfaceStatus<ThumbnailModerationSkipReason>;
1494
+ type TranscriptModerationStatus = ModerationSurfaceStatus<TranscriptModerationSkipReason>;
1330
1495
  /** Aggregated moderation payload returned from `getModerationScores`. */
1331
1496
  interface ModerationResult {
1332
1497
  assetId: string;
1333
- /** Whether moderation ran on thumbnails (video) or transcript text (audio-only). */
1334
- mode: "thumbnails" | "transcript";
1335
- /** Convenience flag so callers can understand why `thumbnailScores` may contain a transcript entry. */
1498
+ /**
1499
+ * Which surfaces were actually moderated (derived from `thumbnailModeration`
1500
+ * and `transcriptModeration`):
1501
+ * - `"thumbnails"`: only image thumbnails.
1502
+ * - `"transcript"`: only transcript text.
1503
+ * - `"combined"`: both.
1504
+ */
1505
+ mode: "thumbnails" | "transcript" | "combined";
1506
+ /** Convenience flag indicating the asset has no video track. */
1336
1507
  isAudioOnly: boolean;
1508
+ /** Image (thumbnail) moderation results. Empty unless `thumbnailModeration.status` is `"completed"`. */
1337
1509
  thumbnailScores: ThumbnailModerationScore[];
1510
+ /**
1511
+ * Transcript moderation results, one entry per moderated time window
1512
+ * (each carries `startTime`/`endTime`). Empty unless
1513
+ * `transcriptModeration.status` is `"completed"`.
1514
+ */
1515
+ transcriptScores: TranscriptModerationScore[];
1516
+ /** Audit trail for the thumbnail surface: completed, skipped (and why), or failed (and why). */
1517
+ thumbnailModeration: ThumbnailModerationStatus;
1518
+ /** Audit trail for the transcript surface: completed, skipped (and why), or failed (and why). */
1519
+ transcriptModeration: TranscriptModerationStatus;
1338
1520
  /** Coverage metadata describing how many requested moderation samples actually succeeded. */
1339
1521
  coverage: {
1340
1522
  requestedSampleCount: number;
@@ -1342,12 +1524,15 @@ interface ModerationResult {
1342
1524
  failedSampleCount: number;
1343
1525
  /** Fraction of requested samples that produced a usable moderation result. */
1344
1526
  sampleCoverage: number;
1345
- /** True when at least one sample failed but the workflow still returned a result. */
1527
+ /**
1528
+ * True when at least one thumbnail or transcript window failed but the
1529
+ * workflow still returned a result.
1530
+ */
1346
1531
  isPartial: boolean;
1347
1532
  /**
1348
- * True when threshold interpretation should be treated cautiously.
1349
- * For thumbnail moderation, this means we either covered less than half of planned samples
1350
- * or ended up with fewer than 3 successful thumbnails.
1533
+ * True when threshold interpretation should be treated cautiously: fewer
1534
+ * than half of the planned thumbnails (or fewer than 3) succeeded, or a
1535
+ * surface that ran failed entirely.
1351
1536
  */
1352
1537
  isLowConfidence: boolean;
1353
1538
  };
@@ -1386,8 +1571,8 @@ interface ModerationOptions extends ScopedMuxAIOptions {
1386
1571
  /** OpenAI moderation model identifier (defaults to 'omni-moderation-latest'). */
1387
1572
  model?: string;
1388
1573
  /**
1389
- * Optional transcript language code used when moderating audio-only assets.
1390
- * If omitted, the first ready text track will be used.
1574
+ * Language code of the caption track to moderate. If omitted, an English
1575
+ * subtitles track is preferred and otherwise the first ready text track is used.
1391
1576
  */
1392
1577
  languageCode?: string;
1393
1578
  /** Override the default sexual/violence thresholds (0-1). */
@@ -1408,6 +1593,25 @@ interface ModerationOptions extends ScopedMuxAIOptions {
1408
1593
  /** Download tuning used when `imageSubmissionMode` === 'base64'. */
1409
1594
  imageDownloadOptions?: ImageDownloadOptions;
1410
1595
  }
1596
+ /**
1597
+ * Default tuning for transcript time-windowing. Window SIZE scales with the
1598
+ * asset's duration and consecutive windows OVERLAP so abuse straddling a
1599
+ * boundary is still scored intact in at least one window:
1600
+ *
1601
+ * windowSeconds = clamp(duration / targetWindowCount, minWindowSeconds, maxWindowSeconds)
1602
+ * overlapSeconds = max(minOverlapSeconds, windowSeconds * overlapFraction)
1603
+ * stride = max(windowSeconds - overlapSeconds, 1)
1604
+ *
1605
+ * Exported so callers can approximate window count from duration alone (e.g. for a
1606
+ * pre-flight cost estimate before fetching/parsing the real transcript).
1607
+ */
1608
+ declare const DEFAULT_TRANSCRIPT_WINDOWING: {
1609
+ readonly targetWindowCount: 40;
1610
+ readonly minWindowSeconds: 20;
1611
+ readonly maxWindowSeconds: 120;
1612
+ readonly overlapFraction: 0.15;
1613
+ readonly minOverlapSeconds: 5;
1614
+ };
1411
1615
  /**
1412
1616
  * Linear mapping of Google Vision SafeSearch `Likelihood` enum (UNKNOWN..VERY_LIKELY)
1413
1617
  * onto a 0..1 score. This mapping may change in future versions of `@mux/ai`.
@@ -1415,10 +1619,46 @@ interface ModerationOptions extends ScopedMuxAIOptions {
1415
1619
  declare const GOOGLE_VISION_LIKELIHOOD_TO_SCORE: Record<string, number>;
1416
1620
  declare const HIVE_SEXUAL_CATEGORIES: string[];
1417
1621
  declare const HIVE_VIOLENCE_CATEGORIES: string[];
1622
+ /** A time-bounded window of transcript text built from caption cues. */
1623
+ interface TranscriptWindow {
1624
+ startTime: number;
1625
+ endTime: number;
1626
+ text: string;
1627
+ }
1628
+ /**
1629
+ * Build DYNAMIC, OVERLAPPING transcript windows from timestamped caption cues.
1630
+ *
1631
+ * Window SIZE scales with the asset's `duration` and consecutive windows
1632
+ * OVERLAP so abuse straddling a window boundary is still scored intact in at
1633
+ * least one window:
1634
+ *
1635
+ * windowSeconds = clamp(duration / targetWindowCount, minWindowSeconds, maxWindowSeconds)
1636
+ * overlapSeconds = max(minOverlapSeconds, windowSeconds * overlapFraction)
1637
+ * stride = max(windowSeconds - overlapSeconds, 1) // never <= 0
1638
+ *
1639
+ * Window k covers the time interval `[k*stride, k*stride + windowSeconds]`. A
1640
+ * cue belongs to window k when it intersects that interval, so boundary cues
1641
+ * appear in both neighbouring windows. Empty windows (gaps of silence) are
1642
+ * skipped, and two consecutive windows containing the exact same cue set are
1643
+ * deduped to avoid a redundant request. A window whose joined text would exceed
1644
+ * {@link TRANSCRIPT_WINDOW_MAX_UTF16_CODE_UNITS} is split into sub-windows under
1645
+ * the cap as a rare safety guard.
1646
+ *
1647
+ * NOTE: because windows overlap by design, consecutive windows' reported
1648
+ * `[startTime, endTime]` ranges may overlap by ~`overlapSeconds`.
1649
+ *
1650
+ * Exported for direct unit testing without network access.
1651
+ */
1652
+ declare function buildTranscriptWindows(cues: VTTCue[], duration: number): TranscriptWindow[];
1418
1653
  /**
1419
- * Moderate a Mux asset.
1420
- * - Video assets: moderates storyboard thumbnails (image moderation)
1421
- * - Audio-only assets: moderates transcript text (text moderation)
1654
+ * Moderate a Mux asset. By default both surfaces are moderated where available:
1655
+ * - Thumbnails: sampled storyboard frames (image moderation). Skipped for audio-only assets.
1656
+ * - Transcript: caption text in time windows (text moderation). Skipped when no
1657
+ * usable caption track exists or the provider is image-only.
1658
+ *
1659
+ * Each surface reports its outcome in `thumbnailModeration` / `transcriptModeration`.
1660
+ * Throws when neither surface can be moderated, since a result with nothing
1661
+ * scored would read as "clean".
1422
1662
  *
1423
1663
  * Provider notes:
1424
1664
  * - provider 'openai' uses OpenAI's hosted moderation endpoint (requires OPENAI_API_KEY)
@@ -1875,6 +2115,7 @@ type index_ChaptersType = ChaptersType;
1875
2115
  declare const index_DEFAULT_DESCRIPTION_LENGTH: typeof DEFAULT_DESCRIPTION_LENGTH;
1876
2116
  declare const index_DEFAULT_SUMMARY_KEYWORD_LIMIT: typeof DEFAULT_SUMMARY_KEYWORD_LIMIT;
1877
2117
  declare const index_DEFAULT_TITLE_LENGTH: typeof DEFAULT_TITLE_LENGTH;
2118
+ declare const index_DEFAULT_TRANSCRIPT_WINDOWING: typeof DEFAULT_TRANSCRIPT_WINDOWING;
1878
2119
  type index_EditCaptionsOptions<P extends SupportedProvider = SupportedProvider> = EditCaptionsOptions<P>;
1879
2120
  type index_EditCaptionsResult = EditCaptionsResult;
1880
2121
  type index_EmbeddingsOptions = EmbeddingsOptions;
@@ -1916,12 +2157,19 @@ type index_HiveModerationSource = HiveModerationSource;
1916
2157
  type index_ModerationOptions = ModerationOptions;
1917
2158
  type index_ModerationProvider = ModerationProvider;
1918
2159
  type index_ModerationResult = ModerationResult;
2160
+ type index_ModerationSurfaceStatus<Reason extends string> = ModerationSurfaceStatus<Reason>;
1919
2161
  type index_MomentInsight = MomentInsight;
1920
2162
  type index_OverallInsight = OverallInsight;
1921
2163
  type index_ProfanityDetectionPayload = ProfanityDetectionPayload;
1922
2164
  type index_Question = Question;
1923
2165
  type index_QuestionAnswer = QuestionAnswer;
1924
2166
  type index_QuestionAnswerType = QuestionAnswerType;
2167
+ type index_RepairAttempt<Usage> = RepairAttempt<Usage>;
2168
+ type index_RepairCall<Usage> = RepairCall<Usage>;
2169
+ type index_RepairOptions<Usage> = RepairOptions<Usage>;
2170
+ type index_RepairPlan = RepairPlan;
2171
+ type index_RepairResult<Usage> = RepairResult<Usage>;
2172
+ type index_RepairSpan = RepairSpan;
1925
2173
  type index_ReplacementRecord = ReplacementRecord;
1926
2174
  type index_SpeakerReplacement = SpeakerReplacement;
1927
2175
  type index_StaticRenditionCleanupOutcome = StaticRenditionCleanupOutcome;
@@ -1930,7 +2178,14 @@ type index_SummarizationPromptOverrides = SummarizationPromptOverrides;
1930
2178
  type index_SummarizationPromptSections = SummarizationPromptSections;
1931
2179
  type index_SummaryAndTagsResult = SummaryAndTagsResult;
1932
2180
  type index_SummaryType = SummaryType;
2181
+ type index_TextLengthLimit = TextLengthLimit;
2182
+ type index_TextRepairModelOptions = TextRepairModelOptions;
1933
2183
  type index_ThumbnailModerationScore = ThumbnailModerationScore;
2184
+ type index_ThumbnailModerationSkipReason = ThumbnailModerationSkipReason;
2185
+ type index_ThumbnailModerationStatus = ThumbnailModerationStatus;
2186
+ type index_TranscriptModerationScore = TranscriptModerationScore;
2187
+ type index_TranscriptModerationSkipReason = TranscriptModerationSkipReason;
2188
+ type index_TranscriptModerationStatus = TranscriptModerationStatus;
1934
2189
  type index_TranslationChunkingOptions = TranslationChunkingOptions;
1935
2190
  type index_TranslationOptions<P extends SupportedProvider = SupportedProvider> = TranslationOptions<P>;
1936
2191
  type index_TranslationPayload = TranslationPayload;
@@ -1939,13 +2194,16 @@ declare const index_aggregateTokenUsage: typeof aggregateTokenUsage;
1939
2194
  declare const index_applyOverrideLists: typeof applyOverrideLists;
1940
2195
  declare const index_applyReplacements: typeof applyReplacements;
1941
2196
  declare const index_applySpeakerReplacements: typeof applySpeakerReplacements;
2197
+ declare const index_applyTextRepair: typeof applyTextRepair;
1942
2198
  declare const index_askQuestions: typeof askQuestions;
1943
2199
  declare const index_buildReplacementRegex: typeof buildReplacementRegex;
2200
+ declare const index_buildTranscriptWindows: typeof buildTranscriptWindows;
1944
2201
  declare const index_burnedInCaptionsSchema: typeof burnedInCaptionsSchema;
1945
2202
  declare const index_censorVttContent: typeof censorVttContent;
1946
2203
  declare const index_chapterSchema: typeof chapterSchema;
1947
2204
  declare const index_chaptersSchema: typeof chaptersSchema;
1948
2205
  declare const index_createReplacer: typeof createReplacer;
2206
+ declare const index_createTextRepairGenerator: typeof createTextRepairGenerator;
1949
2207
  declare const index_editCaptions: typeof editCaptions;
1950
2208
  declare const index_extractTranscriptSegmentsForHotspots: typeof extractTranscriptSegmentsForHotspots;
1951
2209
  declare const index_findGenerateTextLengthViolation: typeof findGenerateTextLengthViolation;
@@ -1960,11 +2218,15 @@ declare const index_hasBurnedInCaptions: typeof hasBurnedInCaptions;
1960
2218
  declare const index_mapShotsToHotspots: typeof mapShotsToHotspots;
1961
2219
  declare const index_measureGenerateTextLength: typeof measureGenerateTextLength;
1962
2220
  declare const index_normalizeTranslatedVtt: typeof normalizeTranslatedVtt;
2221
+ declare const index_planTextRepair: typeof planTextRepair;
1963
2222
  declare const index_profanityDetectionSchema: typeof profanityDetectionSchema;
1964
2223
  declare const index_questionAnswerSchema: typeof questionAnswerSchema;
2224
+ declare const index_repairJsonSchema: typeof repairJsonSchema;
2225
+ declare const index_repairText: typeof repairText;
1965
2226
  declare const index_resolveGenerateTextLengthLimit: typeof resolveGenerateTextLengthLimit;
1966
2227
  declare const index_resolveGenerateTextLengthLimits: typeof resolveGenerateTextLengthLimits;
1967
2228
  declare const index_resolveGenerateTextOptions: typeof resolveGenerateTextOptions;
2229
+ declare const index_runTextRepairLoop: typeof runTextRepairLoop;
1968
2230
  declare const index_selectGenerateTextShotFrames: typeof selectGenerateTextShotFrames;
1969
2231
  declare const index_shouldSplitChunkTranslationError: typeof shouldSplitChunkTranslationError;
1970
2232
  declare const index_summarySchema: typeof summarySchema;
@@ -1975,7 +2237,7 @@ declare const index_translationSchema: typeof translationSchema;
1975
2237
  declare const index_validateNeverTranslateTerms: typeof validateNeverTranslateTerms;
1976
2238
  declare const index_verifyNeverTranslateTerms: typeof verifyNeverTranslateTerms;
1977
2239
  declare namespace index {
1978
- 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_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_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_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_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_profanityDetectionSchema as profanityDetectionSchema, index_questionAnswerSchema as questionAnswerSchema, index_resolveGenerateTextLengthLimit as resolveGenerateTextLengthLimit, index_resolveGenerateTextLengthLimits as resolveGenerateTextLengthLimits, index_resolveGenerateTextOptions as resolveGenerateTextOptions, 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 };
2240
+ 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 };
1979
2241
  }
1980
2242
 
1981
- 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 SummaryAndTagsResult 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 ReplacementRecord as aV, type SpeakerReplacement as aW, type StaticRenditionCleanupOutcome as aX, type SummarizationOptions as aY, type SummarizationPromptOverrides as aZ, type SummarizationPromptSections 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 SummaryType as b0, type ThumbnailModerationScore as b1, type TranslationChunkingOptions as b2, type TranslationOptions as b3, type TranslationPayload as b4, type TranslationResult as b5, aggregateTokenUsage as b6, applyOverrideLists as b7, applyReplacements as b8, applySpeakerReplacements as b9, selectGenerateTextShotFrames as bA, shouldSplitChunkTranslationError as bB, summarySchema as bC, transformCueText as bD, translateAudio as bE, translateCaptions as bF, translationSchema as bG, validateNeverTranslateTerms as bH, verifyNeverTranslateTerms as bI, askQuestions as ba, buildReplacementRegex as bb, burnedInCaptionsSchema as bc, censorVttContent as bd, chapterSchema as be, chaptersSchema as bf, createReplacer as bg, editCaptions as bh, extractTranscriptSegmentsForHotspots as bi, findGenerateTextLengthViolation as bj, generateChapters as bk, generateEmbeddings as bl, generateEngagementInsights as bm, generateText as bn, generateVideoEmbeddings as bo, getModerationScores as bp, getSummaryAndTags as bq, hasBurnedInCaptions as br, mapShotsToHotspots as bs, measureGenerateTextLength as bt, normalizeTranslatedVtt as bu, profanityDetectionSchema as bv, questionAnswerSchema as bw, resolveGenerateTextLengthLimit as bx, resolveGenerateTextLengthLimits as by, resolveGenerateTextOptions 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 };
2243
+ 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 };