@mux/ai 0.50.0 → 0.52.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, v as Shot, j as ToneType, g as StorageAdapter } from './shots-3wmvZnUV.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
@@ -1922,6 +2033,12 @@ type index_ProfanityDetectionPayload = ProfanityDetectionPayload;
1922
2033
  type index_Question = Question;
1923
2034
  type index_QuestionAnswer = QuestionAnswer;
1924
2035
  type index_QuestionAnswerType = QuestionAnswerType;
2036
+ type index_RepairAttempt<Usage> = RepairAttempt<Usage>;
2037
+ type index_RepairCall<Usage> = RepairCall<Usage>;
2038
+ type index_RepairOptions<Usage> = RepairOptions<Usage>;
2039
+ type index_RepairPlan = RepairPlan;
2040
+ type index_RepairResult<Usage> = RepairResult<Usage>;
2041
+ type index_RepairSpan = RepairSpan;
1925
2042
  type index_ReplacementRecord = ReplacementRecord;
1926
2043
  type index_SpeakerReplacement = SpeakerReplacement;
1927
2044
  type index_StaticRenditionCleanupOutcome = StaticRenditionCleanupOutcome;
@@ -1930,6 +2047,8 @@ type index_SummarizationPromptOverrides = SummarizationPromptOverrides;
1930
2047
  type index_SummarizationPromptSections = SummarizationPromptSections;
1931
2048
  type index_SummaryAndTagsResult = SummaryAndTagsResult;
1932
2049
  type index_SummaryType = SummaryType;
2050
+ type index_TextLengthLimit = TextLengthLimit;
2051
+ type index_TextRepairModelOptions = TextRepairModelOptions;
1933
2052
  type index_ThumbnailModerationScore = ThumbnailModerationScore;
1934
2053
  type index_TranslationChunkingOptions = TranslationChunkingOptions;
1935
2054
  type index_TranslationOptions<P extends SupportedProvider = SupportedProvider> = TranslationOptions<P>;
@@ -1939,6 +2058,7 @@ declare const index_aggregateTokenUsage: typeof aggregateTokenUsage;
1939
2058
  declare const index_applyOverrideLists: typeof applyOverrideLists;
1940
2059
  declare const index_applyReplacements: typeof applyReplacements;
1941
2060
  declare const index_applySpeakerReplacements: typeof applySpeakerReplacements;
2061
+ declare const index_applyTextRepair: typeof applyTextRepair;
1942
2062
  declare const index_askQuestions: typeof askQuestions;
1943
2063
  declare const index_buildReplacementRegex: typeof buildReplacementRegex;
1944
2064
  declare const index_burnedInCaptionsSchema: typeof burnedInCaptionsSchema;
@@ -1946,6 +2066,7 @@ declare const index_censorVttContent: typeof censorVttContent;
1946
2066
  declare const index_chapterSchema: typeof chapterSchema;
1947
2067
  declare const index_chaptersSchema: typeof chaptersSchema;
1948
2068
  declare const index_createReplacer: typeof createReplacer;
2069
+ declare const index_createTextRepairGenerator: typeof createTextRepairGenerator;
1949
2070
  declare const index_editCaptions: typeof editCaptions;
1950
2071
  declare const index_extractTranscriptSegmentsForHotspots: typeof extractTranscriptSegmentsForHotspots;
1951
2072
  declare const index_findGenerateTextLengthViolation: typeof findGenerateTextLengthViolation;
@@ -1960,11 +2081,15 @@ declare const index_hasBurnedInCaptions: typeof hasBurnedInCaptions;
1960
2081
  declare const index_mapShotsToHotspots: typeof mapShotsToHotspots;
1961
2082
  declare const index_measureGenerateTextLength: typeof measureGenerateTextLength;
1962
2083
  declare const index_normalizeTranslatedVtt: typeof normalizeTranslatedVtt;
2084
+ declare const index_planTextRepair: typeof planTextRepair;
1963
2085
  declare const index_profanityDetectionSchema: typeof profanityDetectionSchema;
1964
2086
  declare const index_questionAnswerSchema: typeof questionAnswerSchema;
2087
+ declare const index_repairJsonSchema: typeof repairJsonSchema;
2088
+ declare const index_repairText: typeof repairText;
1965
2089
  declare const index_resolveGenerateTextLengthLimit: typeof resolveGenerateTextLengthLimit;
1966
2090
  declare const index_resolveGenerateTextLengthLimits: typeof resolveGenerateTextLengthLimits;
1967
2091
  declare const index_resolveGenerateTextOptions: typeof resolveGenerateTextOptions;
2092
+ declare const index_runTextRepairLoop: typeof runTextRepairLoop;
1968
2093
  declare const index_selectGenerateTextShotFrames: typeof selectGenerateTextShotFrames;
1969
2094
  declare const index_shouldSplitChunkTranslationError: typeof shouldSplitChunkTranslationError;
1970
2095
  declare const index_summarySchema: typeof summarySchema;
@@ -1975,7 +2100,7 @@ declare const index_translationSchema: typeof translationSchema;
1975
2100
  declare const index_validateNeverTranslateTerms: typeof validateNeverTranslateTerms;
1976
2101
  declare const index_verifyNeverTranslateTerms: typeof verifyNeverTranslateTerms;
1977
2102
  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 };
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 };
1979
2104
  }
1980
2105
 
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 };
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 };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- export { I as ISO639_1, a as ISO639_3, L as LanguageCodePair, M as MUX_TRACK_PASSTHROUGH_MAX_CHARS, R as ReplaceAndCreateTextTrackInput, b as ReplaceAndCreateTextTrackResult, c as ReplaceAndCreateTrackInput, d as ReplaceExistingTracksPolicy, e as ReplaceSourceTrackInput, f as ReplaceableTrackType, S as SourceTrackReplacementPolicy, g as SupportedISO639_1, h as SupportedISO639_3, T as TextTrackReplacementPlan, i as TextTrackSummary, j as TextTrackTarget, k as TrackSummary, l as TrackTarget, m as buildMuxAiTrackPassthrough, n as findNameCollisionTextTracks, o as findSameLanguageTextTracks, p as getLanguageCodePair, q as getLanguageName, r as isDuplicateTrackNameError, s as isMuxGeneratedTextTrack, t as isUndeterminedLanguageCode, u as isValidISO639_1, v as isValidISO639_3, w as normalizeTrackLanguageCode, x as normalizeTrackName, y as planSourceTrackReplacement, z as planTextTrackReplacement, A as replaceAndCreateTextTrack, B as replaceAndCreateTrack, C as replaceSourceTrack, D as summarizeTextTrack, E as toISO639_1, F as toISO639_3, G as validateTrackPassthrough, H as workflows } from './index-BotaPu5M.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-sqJ9PpHw.js';
2
2
  import { M as MuxAsset, W as WorkflowCredentials, S as StoragePutObjectInput, a as StoragePresignGetObjectInput } from './shots-3wmvZnUV.js';
3
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';
4
4
  import { WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '@workflow/serde';
5
5
  export { i as primitives } from './index-nu1UOAMW.js';
6
+ import 'ai';
6
7
  import 'zod';
7
8
  import './summarization-BFmhXeAu.js';
8
9
  import '@ai-sdk/anthropic';
@@ -10,7 +11,7 @@ import '@ai-sdk/google';
10
11
  import '@ai-sdk/openai';
11
12
  import '@mux/ts';
12
13
 
13
- var version = "0.50.0";
14
+ var version = "0.52.0";
14
15
 
15
16
  type MuxAiErrorType = "validation_error" | "processing_error" | "timeout_error" | "content_policy_error";
16
17
  /**