@mux/ai 0.67.0 → 0.68.0-canary.113

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,11 +1,46 @@
1
1
  import { LanguageModel, generateText as generateText$1 } from 'ai';
2
- import { k as ClassifiedErrorsOption, Z as WorkflowCredentialsInput, f as MuxAiError, h as MuxAsset, A as AssetTextTrack, a as MuxAiErrorFacts, R as TokenUsage, K as ScopedMuxAIOptions, I as ImageSubmissionMode, G as MuxAIOptions, n as ChunkingStrategy, Y as VideoEmbeddingsResult, ae as Hotspot, al as Shot, aa as VTTCue, U as ToneType, O as StorageAdapter } from './transcripts-BkjWyvVz.js';
2
+ import { f as MuxAiError, k as ClassifiedErrorsOption, Z as WorkflowCredentialsInput, h as MuxAsset, A as AssetTextTrack, a as MuxAiErrorFacts, R as TokenUsage, K as ScopedMuxAIOptions, I as ImageSubmissionMode, G as MuxAIOptions, n as ChunkingStrategy, Y as VideoEmbeddingsResult, ae as Hotspot, al as Shot, aa as VTTCue, U as ToneType, O as StorageAdapter } from './transcripts-Cs-n8X_l.js';
3
3
  import { z } from 'zod';
4
4
  import { S as SafetyReport, e as PromptOverrides, h as SceneContextItemV1, D as DEFAULT_DESCRIPTION_LENGTH, a as DEFAULT_SUMMARY_KEYWORD_LIMIT, b as DEFAULT_TITLE_LENGTH } from './summarization-BFmhXeAu.js';
5
5
  import { createAnthropic } from '@ai-sdk/anthropic';
6
6
  import { createGoogleGenerativeAI } from '@ai-sdk/google';
7
7
  import { createOpenAI } from '@ai-sdk/openai';
8
8
 
9
+ /**
10
+ * Which model call failed: its name, provider and model. Passing one opts the call
11
+ * into classified errors (see `ClassifiedErrorsOption`), with these as facts:
12
+ * content-policy blocks, incomplete or unusable output, and provider API failures for
13
+ * providers with their own classifier (see {@link classifyModelCallError}). Without
14
+ * one, the call fails as it did before classification.
15
+ */
16
+ interface ModelCallContext {
17
+ call: string;
18
+ provider: string;
19
+ model?: string;
20
+ }
21
+ /**
22
+ * Classifies a failed model call made outside the SDK's workflows, such as your own AI SDK
23
+ * `generateText` call, by the rules the workflows use:
24
+ * - a content-policy block is `content_policy_blocked` (OpenAI's intermittent prompt flag is
25
+ * step-retried)
26
+ * - output that's missing or doesn't match its schema is `model_output_missing` /
27
+ * `model_output_invalid`
28
+ * - a provider failure is coded by that provider's rules (e.g. a spent quota vs. a rate
29
+ * limit), else by its HTTP status (a provider without rules of its own included)
30
+ * - anything else is an `internal` failure.
31
+ *
32
+ * The result always carries the call's `call`, `provider` and `model` facts, and its token
33
+ * usage when the error had any. Its `transient` says whether a Workflow step should retry the
34
+ * call; callers that handle retries themselves can ignore it.
35
+ *
36
+ * @param error - What the model call threw.
37
+ * @param callContext - The call's name and the provider and model it used. `provider` is the SDK's
38
+ * provider name ("google", "openai", "anthropic"), or the AI SDK model's own `provider` id
39
+ * ("google.generative-ai", "openai.chat"). Only Google and OpenAI have rules of their own.
40
+ * @param message - The error's internal message (defaults to `<call> failed`).
41
+ */
42
+ declare function modelCallError(error: unknown, callContext: ModelCallContext, message?: string): MuxAiError;
43
+
9
44
  /**
10
45
  * Language Code Conversion Utilities
11
46
  *
@@ -420,30 +455,15 @@ declare function repairJsonSchema(plan: RepairPlan): {
420
455
  };
421
456
  };
422
457
  };
458
+ /** Why a model's paragraph replacements were not applied. */
459
+ type RepairRejectionCode = "invalid_object" | "span_ids" | "stale_plan" | "empty_replacement" | "split_paragraph" | "literal_escapes" | "protected_term";
423
460
  declare function applyTextRepair(content: string, plan: RepairPlan, replacements: unknown): {
424
461
  readonly accepted: false;
425
- readonly reason: "Invalid replacement object";
426
- readonly content?: undefined;
427
- } | {
428
- readonly accepted: false;
429
- readonly reason: "Unexpected or missing span IDs";
430
- readonly content?: undefined;
431
- } | {
432
- readonly accepted: false;
433
- readonly reason: "Stale repair plan";
434
- readonly content?: undefined;
435
- } | {
436
- readonly accepted: false;
437
- readonly reason: "Empty or incompatible paragraph replacement";
438
- readonly content?: undefined;
439
- } | {
440
- readonly accepted: false;
441
- readonly reason: "Protected term removed from edited spans";
442
- readonly content?: undefined;
462
+ readonly code: RepairRejectionCode;
463
+ readonly reason: string;
443
464
  } | {
444
465
  readonly accepted: true;
445
466
  readonly content: string;
446
- readonly reason?: undefined;
447
467
  };
448
468
  interface RepairCall<Usage> {
449
469
  replacements?: unknown;
@@ -457,6 +477,13 @@ interface RepairAttempt<Usage> {
457
477
  plan: RepairPlan;
458
478
  call: RepairCall<Usage>;
459
479
  rejection?: string;
480
+ /** Set with `rejection`: why the replacements were not applied. */
481
+ rejectionCode?: RepairRejectionCode;
482
+ /** Set when the replacements were applied but the text was still over a limit. */
483
+ overLimit?: {
484
+ limit: TextLengthLimit;
485
+ actual: number;
486
+ };
460
487
  }
461
488
  /** Current repair policy: paragraph edits and at most two generation calls. */
462
489
  interface RepairOptions<Usage> {
@@ -466,6 +493,11 @@ interface RepairOptions<Usage> {
466
493
  generate: (plan: RepairPlan) => Promise<RepairCall<Usage>>;
467
494
  maxAttempts?: number;
468
495
  }
496
+ /**
497
+ * Why a repair failed: an empty draft, no feasible span budget, a failed generation
498
+ * call, or both calls used without bringing the text under its limits.
499
+ */
500
+ type RepairFailureOutcome = "empty_draft" | "no_plan" | "call_failed" | "exhausted";
469
501
  type RepairResult<Usage> = {
470
502
  status: "valid";
471
503
  content: string;
@@ -474,6 +506,7 @@ type RepairResult<Usage> = {
474
506
  status: "failed";
475
507
  attempts: RepairAttempt<Usage>[];
476
508
  reason: string;
509
+ outcome?: RepairFailureOutcome;
477
510
  };
478
511
  /** Orchestrates paragraph repair through a caller-supplied generation callback. */
479
512
  declare function runTextRepairLoop<Usage>(options: RepairOptions<Usage>): Promise<RepairResult<Usage>>;
@@ -486,6 +519,11 @@ interface TextRepairModelOptions {
486
519
  maxOutputTokens?: number;
487
520
  /** Timeout for each call, in milliseconds (default: 30,000). */
488
521
  timeoutMs?: number;
522
+ /**
523
+ * Which model call this repair belongs to. Passing one opts its failures into classified
524
+ * errors (see `ModelCallContext`); without one, they fail as before classification.
525
+ */
526
+ context?: ModelCallContext;
489
527
  }
490
528
  /**
491
529
  * Builds an AI SDK callback for the model-independent repair kernel. It sends
@@ -2268,8 +2306,10 @@ type index_QuestionAnswer = QuestionAnswer;
2268
2306
  type index_QuestionAnswerType = QuestionAnswerType;
2269
2307
  type index_RepairAttempt<Usage> = RepairAttempt<Usage>;
2270
2308
  type index_RepairCall<Usage> = RepairCall<Usage>;
2309
+ type index_RepairFailureOutcome = RepairFailureOutcome;
2271
2310
  type index_RepairOptions<Usage> = RepairOptions<Usage>;
2272
2311
  type index_RepairPlan = RepairPlan;
2312
+ type index_RepairRejectionCode = RepairRejectionCode;
2273
2313
  type index_RepairResult<Usage> = RepairResult<Usage>;
2274
2314
  type index_RepairSpan = RepairSpan;
2275
2315
  type index_ReplacementRecord = ReplacementRecord;
@@ -2339,7 +2379,7 @@ declare const index_translationSchema: typeof translationSchema;
2339
2379
  declare const index_validateNeverTranslateTerms: typeof validateNeverTranslateTerms;
2340
2380
  declare const index_verifyNeverTranslateTerms: typeof verifyNeverTranslateTerms;
2341
2381
  declare namespace index {
2342
- 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_DubbedCaptionsOutcome as DubbedCaptionsOutcome, 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 };
2382
+ 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_DubbedCaptionsOutcome as DubbedCaptionsOutcome, 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_RepairFailureOutcome as RepairFailureOutcome, type index_RepairOptions as RepairOptions, type index_RepairPlan as RepairPlan, type index_RepairRejectionCode as RepairRejectionCode, 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 };
2343
2383
  }
2344
2384
 
2345
- export { type AutoCensorProfanityOptions as $, planSourceTrackReplacement as A, planTextTrackReplacement as B, replaceAndCreateTextTrack as C, replaceAndCreateTrack as D, replaceSourceTrack as E, summarizeTextTrack as F, toISO639_1 as G, toISO639_3 as H, type ISO639_1 as I, trackReplacementBlockedError as J, trackTargetFacts as K, type LanguageCodePair as L, MUX_TRACK_PASSTHROUGH_MAX_CHARS as M, validateTrackPassthrough as N, index as O, ASK_QUESTIONS_DEFAULT_MAX_ANSWER_OPTION_LENGTH as P, ASK_QUESTIONS_DEFAULT_MAX_FREE_FORM_ANSWER_LENGTH as Q, type ReplaceAndCreateTextTrackInput as R, type SourceTrackReplacementPolicy as S, type TextTrackReplacementPlan as T, ASK_QUESTIONS_MAX_QUESTIONS_PER_CALL as U, ASK_QUESTIONS_MAX_QUESTION_LENGTH as V, type AskQuestionsOptions as W, type AskQuestionsResult as X, type AskQuestionsType as Y, type AudioTranslationOptions as Z, type AudioTranslationResult as _, type ISO639_3 as a, type QuestionAnswerType as a$, type BurnedInCaptionsAnalysis as a0, type BurnedInCaptionsOptions as a1, type BurnedInCaptionsPromptOverrides as a2, type BurnedInCaptionsPromptSections as a3, type BurnedInCaptionsResult as a4, type CaptionReplacement as a5, type CensorMode as a6, type Chapter as a7, type ChapterSystemPromptSections as a8, type ChaptersOptions as a9, GENERATE_TEXT_VOICES as aA, GOOGLE_VISION_LIKELIHOOD_TO_SCORE as aB, type GenerateTextArtifact as aC, type GenerateTextCallToAction as aD, type GenerateTextChannel as aE, type GenerateTextFormat as aF, type GenerateTextKeyedItem as aG, type GenerateTextLengthLimit as aH, type GenerateTextOptions as aI, type GenerateTextResult as aJ, type GenerateTextVariant as aK, type GenerateTextVoice as aL, type GeneratedTextArtifact as aM, type GeneratedTextVariant as aN, HIVE_SEXUAL_CATEGORIES as aO, HIVE_VIOLENCE_CATEGORIES as aP, type HiveModerationOutput as aQ, type HiveModerationSource as aR, type ModerationOptions as aS, type ModerationProvider as aT, type ModerationResult as aU, type ModerationSurfaceStatus as aV, type MomentInsight as aW, type OverallInsight as aX, type ProfanityDetectionPayload as aY, type Question as aZ, type QuestionAnswer as a_, type ChaptersPromptOverrides as aa, type ChaptersPromptSections as ab, type ChaptersResult as ac, type ChaptersType as ad, DEFAULT_TRANSCRIPT_WINDOWING as ae, type DubbedCaptionsOutcome as af, type EditCaptionsOptions as ag, type EditCaptionsResult as ah, type EmbeddingsOptions as ai, type EmbeddingsResult as aj, type EngagementInsightsOptions as ak, type EngagementInsightsResult as al, GENERATE_TEXT_CALLS_TO_ACTION as am, GENERATE_TEXT_CHANNELS as an, GENERATE_TEXT_CHANNEL_CEILINGS as ao, GENERATE_TEXT_FORMATS as ap, GENERATE_TEXT_LENGTH_BOUNDS as aq, GENERATE_TEXT_MAX_ARTIFACTS as ar, GENERATE_TEXT_MAX_AUDIENCE_CHARS as as, GENERATE_TEXT_MAX_BRAND_TERMS as at, GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS as au, GENERATE_TEXT_MAX_BRAND_TERM_CHARS as av, GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS as aw, GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS as ax, GENERATE_TEXT_MAX_SHOT_FRAMES as ay, GENERATE_TEXT_MAX_VARIANTS as az, type ReplaceAndCreateTextTrackResult as b, selectGenerateTextShotFrames as b$, type RepairAttempt as b0, type RepairCall as b1, type RepairOptions as b2, type RepairPlan as b3, type RepairResult as b4, type RepairSpan as b5, type ReplacementRecord as b6, type SpeakerReplacement as b7, type StaticRenditionCleanupOutcome as b8, type SummarizationOptions as b9, chapterSchema as bA, chaptersSchema as bB, createReplacer as bC, createTextRepairGenerator as bD, editCaptions as bE, extractTranscriptSegmentsForHotspots as bF, findGenerateTextLengthViolation as bG, generateChapters as bH, generateEmbeddings as bI, generateEngagementInsights as bJ, generateText as bK, generateVideoEmbeddings as bL, getModerationScores as bM, getSummaryAndTags as bN, hasBurnedInCaptions as bO, mapShotsToHotspots as bP, measureGenerateTextLength as bQ, normalizeTranslatedVtt as bR, planTextRepair as bS, profanityDetectionSchema as bT, questionAnswerSchema as bU, repairJsonSchema as bV, repairText as bW, resolveGenerateTextLengthLimit as bX, resolveGenerateTextLengthLimits as bY, resolveGenerateTextOptions as bZ, runTextRepairLoop as b_, type SummarizationPromptOverrides as ba, type SummarizationPromptSections as bb, type SummaryAndTagsResult as bc, type SummaryType as bd, type TextLengthLimit as be, type TextRepairModelOptions as bf, type ThumbnailModerationScore as bg, type ThumbnailModerationSkipReason as bh, type ThumbnailModerationStatus as bi, type TranscriptModerationScore as bj, type TranscriptModerationSkipReason as bk, type TranscriptModerationStatus as bl, type TranslationChunkingOptions as bm, type TranslationOptions as bn, type TranslationPayload as bo, type TranslationResult as bp, aggregateTokenUsage as bq, applyOverrideLists as br, applyReplacements as bs, applySpeakerReplacements as bt, applyTextRepair as bu, askQuestions as bv, buildReplacementRegex as bw, buildTranscriptWindows as bx, burnedInCaptionsSchema as by, censorVttContent as bz, type ReplaceAndCreateTrackInput as c, shouldSplitChunkTranslationError as c0, summarySchema as c1, transformCueText as c2, translateAudio as c3, translateCaptions as c4, translationSchema as c5, validateNeverTranslateTerms as c6, verifyNeverTranslateTerms as c7, 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 TrackReplacementBlocked as k, type TrackReplacementBlockedReason as l, type TrackSummary as m, type TrackTarget as n, buildMuxAiTrackPassthrough as o, findNameCollisionTextTracks as p, findSameLanguageTextTracks as q, getLanguageCodePair as r, getLanguageName as s, isDuplicateTrackNameError as t, isMuxGeneratedTextTrack as u, isUndeterminedLanguageCode as v, isValidISO639_1 as w, isValidISO639_3 as x, normalizeTrackLanguageCode as y, normalizeTrackName as z };
2385
+ export { type AudioTranslationOptions as $, normalizeTrackLanguageCode as A, normalizeTrackName as B, planSourceTrackReplacement as C, planTextTrackReplacement as D, replaceAndCreateTextTrack as E, replaceAndCreateTrack as F, replaceSourceTrack as G, summarizeTextTrack as H, type ISO639_1 as I, toISO639_1 as J, toISO639_3 as K, type LanguageCodePair as L, MUX_TRACK_PASSTHROUGH_MAX_CHARS as M, trackReplacementBlockedError as N, trackTargetFacts as O, validateTrackPassthrough as P, index as Q, type ReplaceAndCreateTextTrackInput as R, type SourceTrackReplacementPolicy as S, type TextTrackReplacementPlan as T, ASK_QUESTIONS_DEFAULT_MAX_ANSWER_OPTION_LENGTH as U, ASK_QUESTIONS_DEFAULT_MAX_FREE_FORM_ANSWER_LENGTH as V, ASK_QUESTIONS_MAX_QUESTIONS_PER_CALL as W, ASK_QUESTIONS_MAX_QUESTION_LENGTH as X, type AskQuestionsOptions as Y, type AskQuestionsResult as Z, type AskQuestionsType as _, type ISO639_3 as a, type Question as a$, type AudioTranslationResult as a0, type AutoCensorProfanityOptions as a1, type BurnedInCaptionsAnalysis as a2, type BurnedInCaptionsOptions as a3, type BurnedInCaptionsPromptOverrides as a4, type BurnedInCaptionsPromptSections as a5, type BurnedInCaptionsResult as a6, type CaptionReplacement as a7, type CensorMode as a8, type Chapter as a9, GENERATE_TEXT_MAX_SHOT_FRAMES as aA, GENERATE_TEXT_MAX_VARIANTS as aB, GENERATE_TEXT_VOICES as aC, GOOGLE_VISION_LIKELIHOOD_TO_SCORE as aD, type GenerateTextArtifact as aE, type GenerateTextCallToAction as aF, type GenerateTextChannel as aG, type GenerateTextFormat as aH, type GenerateTextKeyedItem as aI, type GenerateTextLengthLimit as aJ, type GenerateTextOptions as aK, type GenerateTextResult as aL, type GenerateTextVariant as aM, type GenerateTextVoice as aN, type GeneratedTextArtifact as aO, type GeneratedTextVariant as aP, HIVE_SEXUAL_CATEGORIES as aQ, HIVE_VIOLENCE_CATEGORIES as aR, type HiveModerationOutput as aS, type HiveModerationSource as aT, type ModerationOptions as aU, type ModerationProvider as aV, type ModerationResult as aW, type ModerationSurfaceStatus as aX, type MomentInsight as aY, type OverallInsight as aZ, type ProfanityDetectionPayload as a_, type ChapterSystemPromptSections as aa, type ChaptersOptions as ab, type ChaptersPromptOverrides as ac, type ChaptersPromptSections as ad, type ChaptersResult as ae, type ChaptersType as af, DEFAULT_TRANSCRIPT_WINDOWING as ag, type DubbedCaptionsOutcome as ah, type EditCaptionsOptions as ai, type EditCaptionsResult as aj, type EmbeddingsOptions as ak, type EmbeddingsResult as al, type EngagementInsightsOptions as am, type EngagementInsightsResult as an, GENERATE_TEXT_CALLS_TO_ACTION as ao, GENERATE_TEXT_CHANNELS as ap, GENERATE_TEXT_CHANNEL_CEILINGS as aq, GENERATE_TEXT_FORMATS as ar, GENERATE_TEXT_LENGTH_BOUNDS as as, GENERATE_TEXT_MAX_ARTIFACTS as at, GENERATE_TEXT_MAX_AUDIENCE_CHARS as au, GENERATE_TEXT_MAX_BRAND_TERMS as av, GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS as aw, GENERATE_TEXT_MAX_BRAND_TERM_CHARS as ax, GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS as ay, GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS as az, type ModelCallContext as b, resolveGenerateTextLengthLimit as b$, type QuestionAnswer as b0, type QuestionAnswerType as b1, type RepairAttempt as b2, type RepairCall as b3, type RepairFailureOutcome as b4, type RepairOptions as b5, type RepairPlan as b6, type RepairRejectionCode as b7, type RepairResult as b8, type RepairSpan as b9, buildReplacementRegex as bA, buildTranscriptWindows as bB, burnedInCaptionsSchema as bC, censorVttContent as bD, chapterSchema as bE, chaptersSchema as bF, createReplacer as bG, createTextRepairGenerator as bH, editCaptions as bI, extractTranscriptSegmentsForHotspots as bJ, findGenerateTextLengthViolation as bK, generateChapters as bL, generateEmbeddings as bM, generateEngagementInsights as bN, generateText as bO, generateVideoEmbeddings as bP, getModerationScores as bQ, getSummaryAndTags as bR, hasBurnedInCaptions as bS, mapShotsToHotspots as bT, measureGenerateTextLength as bU, normalizeTranslatedVtt as bV, planTextRepair as bW, profanityDetectionSchema as bX, questionAnswerSchema as bY, repairJsonSchema as bZ, repairText as b_, type ReplacementRecord as ba, type SpeakerReplacement as bb, type StaticRenditionCleanupOutcome as bc, type SummarizationOptions as bd, type SummarizationPromptOverrides as be, type SummarizationPromptSections as bf, type SummaryAndTagsResult as bg, type SummaryType as bh, type TextLengthLimit as bi, type TextRepairModelOptions as bj, type ThumbnailModerationScore as bk, type ThumbnailModerationSkipReason as bl, type ThumbnailModerationStatus as bm, type TranscriptModerationScore as bn, type TranscriptModerationSkipReason as bo, type TranscriptModerationStatus as bp, type TranslationChunkingOptions as bq, type TranslationOptions as br, type TranslationPayload as bs, type TranslationResult as bt, aggregateTokenUsage as bu, applyOverrideLists as bv, applyReplacements as bw, applySpeakerReplacements as bx, applyTextRepair as by, askQuestions as bz, type ReplaceAndCreateTextTrackResult as c, resolveGenerateTextLengthLimits as c0, resolveGenerateTextOptions as c1, runTextRepairLoop as c2, selectGenerateTextShotFrames as c3, shouldSplitChunkTranslationError as c4, summarySchema as c5, transformCueText as c6, translateAudio as c7, translateCaptions as c8, translationSchema as c9, validateNeverTranslateTerms as ca, verifyNeverTranslateTerms as cb, type ReplaceAndCreateTrackInput as d, type ReplaceExistingTracksPolicy as e, type ReplaceSourceTrackInput as f, type ReplaceableTrackType as g, type SupportedISO639_1 as h, type SupportedISO639_3 as i, type TextTrackSummary as j, type TextTrackTarget as k, type TrackReplacementBlocked as l, type TrackReplacementBlockedReason as m, type TrackSummary as n, type TrackTarget as o, buildMuxAiTrackPassthrough as p, findNameCollisionTextTracks as q, findSameLanguageTextTracks as r, getLanguageCodePair as s, getLanguageName as t, isDuplicateTrackNameError as u, isMuxGeneratedTextTrack as v, isUndeterminedLanguageCode as w, isValidISO639_1 as x, isValidISO639_3 as y, modelCallError as z };
@@ -1,4 +1,4 @@
1
- import { Z as WorkflowCredentialsInput, $ as WorkflowScope, T as TextChunk, n as ChunkingStrategy, aa as VTTCue, ab as CompletedShotsResult, ac as DeletedShotsResult, ad as ErroredShotsResult, ae as Hotspot, af as HotspotOptions, ag as HotspotResponse, ah as LOW_CONFIDENCE_THRESHOLD, ai as MAX_CUE_TEXT_CHARS, aj as ParseVTTCuesOptions, ak as PendingShotsResult, al as Shot, am as ShotRequestOptions, an as ShotsResult, ao as SkippedShotsResult, ap as TranscriptEmptyReason, aq as TranscriptFetchOptions, ar as TranscriptFetchStepResult, as as TranscriptResult, at as WaitForShotsOptions, au as buildTranscriptUrl, av as buildVttFromCueBlocks, aw as buildVttFromTranslatedCueBlocks, ax as concatenateVttSegments, ay as extractTextFromVTT, az as extractTimestampedTranscript, aA as fetchTranscriptDataForUrl, aB as fetchTranscriptForAsset, aC as filterVttByScope, aD as findCaptionTrack, aE as getHotspotsForAsset, aF as getHotspotsForPlaybackId, aG as getHotspotsForVideo, aH as getReadyTextTracks, aI as getReliableLanguageCode, aJ as getShotsForAsset, aK as parseVTTCues, aL as replaceCueText, aM as requestShotsForAsset, aN as sanitizeUntrustedText, aO as secondsToTimestamp, aP as splitVttPreambleAndCueBlocks, aQ as stripVttMetadataBlocks, aR as vttTimestampToSeconds, aS as waitForShotsForAsset } from './transcripts-BkjWyvVz.js';
1
+ import { Z as WorkflowCredentialsInput, $ as WorkflowScope, T as TextChunk, n as ChunkingStrategy, aa as VTTCue, ab as CompletedShotsResult, ac as DeletedShotsResult, ad as ErroredShotsResult, ae as Hotspot, af as HotspotOptions, ag as HotspotResponse, ah as LOW_CONFIDENCE_THRESHOLD, ai as MAX_CUE_TEXT_CHARS, aj as ParseVTTCuesOptions, ak as PendingShotsResult, al as Shot, am as ShotRequestOptions, an as ShotsResult, ao as SkippedShotsResult, ap as TranscriptEmptyReason, aq as TranscriptFetchOptions, ar as TranscriptFetchStepResult, as as TranscriptResult, at as WaitForShotsOptions, au as buildTranscriptUrl, av as buildVttFromCueBlocks, aw as buildVttFromTranslatedCueBlocks, ax as concatenateVttSegments, ay as extractTextFromVTT, az as extractTimestampedTranscript, aA as fetchTranscriptDataForUrl, aB as fetchTranscriptForAsset, aC as filterVttByScope, aD as findCaptionTrack, aE as getHotspotsForAsset, aF as getHotspotsForPlaybackId, aG as getHotspotsForVideo, aH as getReadyTextTracks, aI as getReliableLanguageCode, aJ as getShotsForAsset, aK as parseVTTCues, aL as replaceCueText, aM as requestShotsForAsset, aN as sanitizeUntrustedText, aO as secondsToTimestamp, aP as splitVttPreambleAndCueBlocks, aQ as stripVttMetadataBlocks, aR as vttTimestampToSeconds, aS as waitForShotsForAsset } from './transcripts-Cs-n8X_l.js';
2
2
 
3
3
  interface HeatmapOptions {
4
4
  /** Time window for results, e.g., '7:days' (default: '7:days') */
package/dist/index.d.ts CHANGED
@@ -1,17 +1,17 @@
1
- import { M as MuxAiErrorDependency, a as MuxAiErrorFacts, b as MUX_AI_ERROR_SOURCES, c as MuxAiErrorSource, d as MuxAiSiteDependencyCode, e as MuxAiErrorType, f as MuxAiError, g as MuxAiDependencyStatusCode, h as MuxAsset, i as MuxAiErrorFactValue, j as MuxAiErrorCode, C as ClassifiedError, W as WorkflowCredentials, k as ClassifiedErrorsOption, S as StoragePutObjectInput, l as StoragePresignGetObjectInput } from './transcripts-BkjWyvVz.js';
2
- export { A as AssetTextTrack, m as ChunkEmbedding, n as ChunkingStrategy, o as ClassifiedErrorInit, p as CodedClassification, E as Encrypted, q as EncryptedPayload, r as ErrorCatalogEntry, s as ErrorCauseSummary, I as ImageSubmissionMode, t as MUX_AI_DEPENDENCY_STATUS_CODES, u as MUX_AI_DEPENDENCY_STATUS_CODE_VALUES, v as MUX_AI_ERROR_CATALOG, w as MUX_AI_ERROR_CODES, x as MUX_AI_ERROR_CODE_VALUES, y as MUX_AI_ERROR_DEPENDENCIES, z as MUX_AI_ERROR_DEPENDENCY_VALUES, B as MUX_AI_ERROR_SOURCE_VALUES, D as MUX_AI_ERROR_TYPES, F as MUX_AI_ERROR_TYPE_VALUES, G as MuxAIOptions, H as MuxAiErrorInit, P as PlaybackAsset, J as PlaybackPolicy, K as ScopedMuxAIOptions, L as SerializedClassification, N as SourceAndDependency, O as StorageAdapter, T as TextChunk, Q as TokenChunkingConfig, R as TokenUsage, U as ToneType, V as UsageMetadata, X as VTTChunkingConfig, Y as VideoEmbeddingsResult, Z as WorkflowCredentialsInput, _ as WorkflowMuxClient, $ as WorkflowScope, a0 as assertNever, a1 as classificationInit, a2 as decryptFromWorkflow, a3 as encryptForWorkflow, a4 as errorDetailFact, a5 as internalError, a6 as isTransientStatus, a7 as restoreClassification, a8 as serializeClassification, a9 as wrapError } from './transcripts-BkjWyvVz.js';
3
- 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 TrackReplacementBlocked, l as TrackReplacementBlockedReason, m as TrackSummary, n as TrackTarget, o as buildMuxAiTrackPassthrough, p as findNameCollisionTextTracks, q as findSameLanguageTextTracks, r as getLanguageCodePair, s as getLanguageName, t as isDuplicateTrackNameError, u as isMuxGeneratedTextTrack, v as isUndeterminedLanguageCode, w as isValidISO639_1, x as isValidISO639_3, y as normalizeTrackLanguageCode, z as normalizeTrackName, A as planSourceTrackReplacement, B as planTextTrackReplacement, C as replaceAndCreateTextTrack, D as replaceAndCreateTrack, E as replaceSourceTrack, F as summarizeTextTrack, G as toISO639_1, H as toISO639_3, J as trackReplacementBlockedError, K as trackTargetFacts, N as validateTrackPassthrough, O as workflows } from './index-D1v-3Mgj.js';
1
+ export { I as ISO639_1, a as ISO639_3, L as LanguageCodePair, M as MUX_TRACK_PASSTHROUGH_MAX_CHARS, b as ModelCallContext, R as ReplaceAndCreateTextTrackInput, c as ReplaceAndCreateTextTrackResult, d as ReplaceAndCreateTrackInput, e as ReplaceExistingTracksPolicy, f as ReplaceSourceTrackInput, g as ReplaceableTrackType, S as SourceTrackReplacementPolicy, h as SupportedISO639_1, i as SupportedISO639_3, T as TextTrackReplacementPlan, j as TextTrackSummary, k as TextTrackTarget, l as TrackReplacementBlocked, m as TrackReplacementBlockedReason, n as TrackSummary, o as TrackTarget, p as buildMuxAiTrackPassthrough, q as findNameCollisionTextTracks, r as findSameLanguageTextTracks, s as getLanguageCodePair, t as getLanguageName, u as isDuplicateTrackNameError, v as isMuxGeneratedTextTrack, w as isUndeterminedLanguageCode, x as isValidISO639_1, y as isValidISO639_3, z as modelCallError, A as normalizeTrackLanguageCode, B as normalizeTrackName, C as planSourceTrackReplacement, D as planTextTrackReplacement, E as replaceAndCreateTextTrack, F as replaceAndCreateTrack, G as replaceSourceTrack, H as summarizeTextTrack, J as toISO639_1, K as toISO639_3, N as trackReplacementBlockedError, O as trackTargetFacts, P as validateTrackPassthrough, Q as workflows } from './index-CxDX1bX1.js';
2
+ import { M as MuxAiErrorDependency, a as MuxAiErrorFacts, b as MUX_AI_ERROR_SOURCES, c as MuxAiErrorSource, d as MuxAiSiteDependencyCode, e as MuxAiErrorType, f as MuxAiError, g as MuxAiDependencyStatusCode, h as MuxAsset, i as MuxAiErrorFactValue, j as MuxAiErrorCode, C as ClassifiedError, W as WorkflowCredentials, k as ClassifiedErrorsOption, S as StoragePutObjectInput, l as StoragePresignGetObjectInput } from './transcripts-Cs-n8X_l.js';
3
+ export { A as AssetTextTrack, m as ChunkEmbedding, n as ChunkingStrategy, o as ClassifiedErrorInit, p as CodedClassification, E as Encrypted, q as EncryptedPayload, r as ErrorCatalogEntry, s as ErrorCauseSummary, I as ImageSubmissionMode, t as MUX_AI_DEPENDENCY_STATUS_CODES, u as MUX_AI_DEPENDENCY_STATUS_CODE_VALUES, v as MUX_AI_ERROR_CATALOG, w as MUX_AI_ERROR_CODES, x as MUX_AI_ERROR_CODE_VALUES, y as MUX_AI_ERROR_DEPENDENCIES, z as MUX_AI_ERROR_DEPENDENCY_VALUES, B as MUX_AI_ERROR_SOURCE_VALUES, D as MUX_AI_ERROR_TYPES, F as MUX_AI_ERROR_TYPE_VALUES, G as MuxAIOptions, H as MuxAiErrorInit, P as PlaybackAsset, J as PlaybackPolicy, K as ScopedMuxAIOptions, L as SerializedClassification, N as SourceAndDependency, O as StorageAdapter, T as TextChunk, Q as TokenChunkingConfig, R as TokenUsage, U as ToneType, V as UsageMetadata, X as VTTChunkingConfig, Y as VideoEmbeddingsResult, Z as WorkflowCredentialsInput, _ as WorkflowMuxClient, $ as WorkflowScope, a0 as assertNever, a1 as classificationInit, a2 as decryptFromWorkflow, a3 as encryptForWorkflow, a4 as errorDetailFact, a5 as internalError, a6 as isTransientStatus, a7 as restoreClassification, a8 as serializeClassification, a9 as wrapError } from './transcripts-Cs-n8X_l.js';
4
4
  import { WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '@workflow/serde';
5
- export { i as primitives } from './index-CV-IZBbE.js';
6
- import '@mux/ts';
5
+ export { i as primitives } from './index-DbEwilAW.js';
7
6
  import 'ai';
8
7
  import 'zod';
9
8
  import './summarization-BFmhXeAu.js';
10
9
  import '@ai-sdk/anthropic';
11
10
  import '@ai-sdk/google';
12
11
  import '@ai-sdk/openai';
12
+ import '@mux/ts';
13
13
 
14
- var version = "0.67.0";
14
+ var version = "0.68.0-canary.113";
15
15
 
16
16
  interface DependencyErrorInit {
17
17
  dependency: MuxAiErrorDependency;
@@ -290,11 +290,11 @@ declare const MUX_AI_ERROR_PUBLIC_MAPPINGS: {
290
290
  readonly message: "The transcript has no usable content.";
291
291
  };
292
292
  readonly invalid_parameter: {
293
- readonly facts: readonly ["parameter", "reason", "count", "max", "index", "length", "maxLength", "characters", "with", "withValue", "allowed", "value", "parameters"];
293
+ readonly facts: readonly ["parameter", "reason", "count", "max", "index", "length", "maxLength", "characters", "with", "withValue", "allowed", "value", "parameters", "format"];
294
294
  readonly message: typeof invalidParameterMessage;
295
295
  };
296
296
  readonly parameter_out_of_range: {
297
- readonly facts: readonly ["parameter", "value", "min", "max", "integer"];
297
+ readonly facts: readonly ["parameter", "value", "min", "max", "integer", "unit"];
298
298
  readonly message: (facts: Readonly<Record<string, MuxAiErrorFactValue>>) => string;
299
299
  };
300
300
  readonly asset_duration_unavailable: {
@@ -303,11 +303,15 @@ declare const MUX_AI_ERROR_PUBLIC_MAPPINGS: {
303
303
  };
304
304
  readonly model_output_missing: {
305
305
  readonly facts: readonly ["assetId"];
306
- readonly message: (facts: Readonly<Record<string, MuxAiErrorFactValue>>) => string;
306
+ readonly message: (facts: Readonly<Record<string, MuxAiErrorFactValue>>, { retryable }: {
307
+ retryable: boolean;
308
+ }) => string;
307
309
  };
308
310
  readonly model_output_invalid: {
309
311
  readonly facts: readonly ["assetId"];
310
- readonly message: (facts: Readonly<Record<string, MuxAiErrorFactValue>>) => string;
312
+ readonly message: (facts: Readonly<Record<string, MuxAiErrorFactValue>>, { retryable }: {
313
+ retryable: boolean;
314
+ }) => string;
311
315
  };
312
316
  readonly audio_track_unsupported: {
313
317
  readonly facts: readonly ["reason"];