@mux/ai 0.56.0 → 0.58.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.
@@ -78,6 +78,36 @@ declare const ISO639_1_TO_3: {
78
78
  readonly et: "est";
79
79
  readonly lv: "lav";
80
80
  readonly lt: "lit";
81
+ readonly as: "asm";
82
+ readonly az: "aze";
83
+ readonly be: "bel";
84
+ readonly bs: "bos";
85
+ readonly cy: "cym";
86
+ readonly ga: "gle";
87
+ readonly ha: "hau";
88
+ readonly hy: "hye";
89
+ readonly jv: "jav";
90
+ readonly ka: "kat";
91
+ readonly kk: "kaz";
92
+ readonly ky: "kir";
93
+ readonly lb: "ltz";
94
+ readonly ln: "lin";
95
+ readonly mi: "mri";
96
+ readonly mk: "mkd";
97
+ readonly mn: "mon";
98
+ readonly mt: "mlt";
99
+ readonly my: "mya";
100
+ readonly ne: "nep";
101
+ readonly ny: "nya";
102
+ readonly oc: "oci";
103
+ readonly or: "ori";
104
+ readonly ps: "pus";
105
+ readonly sd: "snd";
106
+ readonly so: "som";
107
+ readonly sr: "srp";
108
+ readonly tg: "tgk";
109
+ readonly uz: "uzb";
110
+ readonly yo: "yor";
81
111
  };
82
112
  /**
83
113
  * Supported ISO 639-1 two-letter language codes.
@@ -1808,16 +1838,34 @@ declare function getSummaryAndTags(assetId: string, options?: SummarizationOptio
1808
1838
 
1809
1839
  /** What happened to the audio-only static rendition `translateAudio` created as dubbing input. */
1810
1840
  type StaticRenditionCleanupOutcome = "deleted" | "delete_failed" | "kept" | "not_created";
1841
+ /** Transcript staging and optional subtitle attachment are independent of a successful dub. */
1842
+ type DubbedCaptionsOutcome = {
1843
+ status: "available";
1844
+ } | {
1845
+ status: "unavailable";
1846
+ message: string;
1847
+ retryable: boolean;
1848
+ } | {
1849
+ status: "created";
1850
+ trackId: string;
1851
+ replacedTracks: TextTrackSummary[];
1852
+ } | {
1853
+ status: "failed";
1854
+ message: string;
1855
+ retryable: boolean;
1856
+ replacedTracks: TextTrackSummary[];
1857
+ };
1811
1858
  /** Output returned from `translateAudio`. */
1812
1859
  interface AudioTranslationResult {
1813
1860
  assetId: string;
1814
- /** Target language code (ISO 639-1 two-letter format). */
1815
- targetLanguageCode: SupportedISO639_1;
1861
+ /** Normalized target language tag, including region or script subtags when supplied. */
1862
+ targetLanguageCode: string;
1816
1863
  /**
1817
- * Target language codes in both ISO 639-1 (2-letter) and ISO 639-3 (3-letter) formats.
1818
- * Use `iso639_1` for browser players (BCP-47 compliant) and `iso639_3` for ElevenLabs API.
1864
+ * Legacy language-code pair. `iso639_1` retains the normalized requested tag,
1865
+ * including qualifiers or three-letter languages without an ISO 639-1 code.
1819
1866
  */
1820
1867
  targetLanguage: LanguageCodePair;
1868
+ /** ElevenLabs project ID; legacy callers retain the `dubbingId` field. */
1821
1869
  dubbingId: string;
1822
1870
  uploadedTrackId?: string;
1823
1871
  presignedUrl?: string;
@@ -1830,6 +1878,8 @@ interface AudioTranslationResult {
1830
1878
  captionsTrackId?: string;
1831
1879
  /** Presigned URL for the dub's translated transcript (WebVTT) staged to S3. */
1832
1880
  captionsPresignedUrl?: string;
1881
+ /** Recorded when transcript staging was attempted, including non-fatal failures. */
1882
+ captionsOutcome?: DubbedCaptionsOutcome;
1833
1883
  /** ID of the audio-only static rendition this run created, `undefined` when a usable rendition already existed. */
1834
1884
  createdStaticRenditionId?: string;
1835
1885
  /** Outcome of cleaning up the static rendition this run created (`not_created` when it reused an existing one). */
@@ -1842,12 +1892,13 @@ interface AudioTranslationOptions extends MuxAIOptions {
1842
1892
  /** Audio dubbing provider (currently ElevenLabs only). */
1843
1893
  provider?: "elevenlabs";
1844
1894
  /**
1845
- * Optional source language code for ElevenLabs `source_lang`.
1846
- * Accepts ISO 639-1 (e.g. "en") or ISO 639-3 (e.g. "eng").
1895
+ * Optional source language code for ElevenLabs `source_language`.
1896
+ * Accepts language tags (e.g. "en-US") or known ISO 639-3 aliases (e.g. "eng").
1897
+ * Region and script subtags are dropped for ElevenLabs.
1847
1898
  * Defaults to auto-detect when omitted.
1848
1899
  */
1849
1900
  fromLanguageCode?: string;
1850
- /** Number of speakers supplied to ElevenLabs (0 = auto-detect, default). */
1901
+ /** Only 0 (auto-detect) is supported by the project API. Nonzero overrides are rejected before billing. */
1851
1902
  numSpeakers?: number;
1852
1903
  /** Optional override for the S3-compatible endpoint used for uploads. */
1853
1904
  s3Endpoint?: string;
@@ -1873,19 +1924,27 @@ interface AudioTranslationOptions extends MuxAIOptions {
1873
1924
  * When true the dub's translated transcript (the same translation that was
1874
1925
  * voiced) is attached as a subtitles text track on the Mux asset. Implies
1875
1926
  * `uploadToS3: true`. Defaults to false. Existing text tracks are handled
1876
- * according to `replaceExistingTracks`, checked before dubbing starts.
1927
+ * according to `captionsReplaceExistingTracks` (falling back to
1928
+ * `replaceExistingTracks`). Caption conflicts are reported in `captionsOutcome`
1929
+ * without failing the dub.
1877
1930
  */
1878
1931
  uploadCaptionsToMux?: boolean;
1932
+ /** Subtitle name override. Defaults to `trackName`, then the generated audio track name. */
1933
+ captionsTrackName?: string;
1934
+ /** Subtitle conflict policy override. Defaults to `replaceExistingTracks`. */
1935
+ captionsReplaceExistingTracks?: ReplaceExistingTracksPolicy;
1879
1936
  /**
1880
- * What to do when the asset already has an audio track (or, with
1881
- * `uploadCaptionsToMux`, a text track) in the target language or with the
1882
- * target name. Defaults to `"fail"`, which rejects before dubbing starts.
1937
+ * What to do when the asset already has an audio track in the target language
1938
+ * or with the target name. Defaults to `"fail"`, which rejects before dubbing
1939
+ * starts. Also the subtitle policy unless `captionsReplaceExistingTracks` is set;
1940
+ * subtitle conflicts only fail caption attachment.
1883
1941
  * The asset's primary audio track is never deleted under any policy.
1884
1942
  */
1885
1943
  replaceExistingTracks?: ReplaceExistingTracksPolicy;
1886
1944
  /**
1887
1945
  * Name for the created Mux tracks. Audio and text tracks are separate name
1888
- * groups, so the same name is used for both. Defaults to
1946
+ * groups, so the same name is used unless `captionsTrackName` overrides
1947
+ * the subtitle name. Defaults to
1889
1948
  * "<Language> (Auto-dubbed)", e.g. "Spanish (Auto-dubbed)".
1890
1949
  */
1891
1950
  trackName?: string;
@@ -2124,6 +2183,7 @@ declare const index_DEFAULT_DESCRIPTION_LENGTH: typeof DEFAULT_DESCRIPTION_LENGT
2124
2183
  declare const index_DEFAULT_SUMMARY_KEYWORD_LIMIT: typeof DEFAULT_SUMMARY_KEYWORD_LIMIT;
2125
2184
  declare const index_DEFAULT_TITLE_LENGTH: typeof DEFAULT_TITLE_LENGTH;
2126
2185
  declare const index_DEFAULT_TRANSCRIPT_WINDOWING: typeof DEFAULT_TRANSCRIPT_WINDOWING;
2186
+ type index_DubbedCaptionsOutcome = DubbedCaptionsOutcome;
2127
2187
  type index_EditCaptionsOptions<P extends SupportedProvider = SupportedProvider> = EditCaptionsOptions<P>;
2128
2188
  type index_EditCaptionsResult = EditCaptionsResult;
2129
2189
  type index_EmbeddingsOptions = EmbeddingsOptions;
@@ -2245,7 +2305,7 @@ declare const index_translationSchema: typeof translationSchema;
2245
2305
  declare const index_validateNeverTranslateTerms: typeof validateNeverTranslateTerms;
2246
2306
  declare const index_verifyNeverTranslateTerms: typeof verifyNeverTranslateTerms;
2247
2307
  declare namespace index {
2248
- export { index_ASK_QUESTIONS_DEFAULT_MAX_ANSWER_OPTION_LENGTH as ASK_QUESTIONS_DEFAULT_MAX_ANSWER_OPTION_LENGTH, index_ASK_QUESTIONS_DEFAULT_MAX_FREE_FORM_ANSWER_LENGTH as ASK_QUESTIONS_DEFAULT_MAX_FREE_FORM_ANSWER_LENGTH, index_ASK_QUESTIONS_MAX_QUESTIONS_PER_CALL as ASK_QUESTIONS_MAX_QUESTIONS_PER_CALL, index_ASK_QUESTIONS_MAX_QUESTION_LENGTH as ASK_QUESTIONS_MAX_QUESTION_LENGTH, type index_AskQuestionsOptions as AskQuestionsOptions, type index_AskQuestionsResult as AskQuestionsResult, type index_AskQuestionsType as AskQuestionsType, type index_AudioTranslationOptions as AudioTranslationOptions, type index_AudioTranslationResult as AudioTranslationResult, type index_AutoCensorProfanityOptions as AutoCensorProfanityOptions, type index_BurnedInCaptionsAnalysis as BurnedInCaptionsAnalysis, type index_BurnedInCaptionsOptions as BurnedInCaptionsOptions, type index_BurnedInCaptionsPromptOverrides as BurnedInCaptionsPromptOverrides, type index_BurnedInCaptionsPromptSections as BurnedInCaptionsPromptSections, type index_BurnedInCaptionsResult as BurnedInCaptionsResult, type index_CaptionReplacement as CaptionReplacement, type index_CensorMode as CensorMode, type index_Chapter as Chapter, type index_ChapterSystemPromptSections as ChapterSystemPromptSections, type index_ChaptersOptions as ChaptersOptions, type index_ChaptersPromptOverrides as ChaptersPromptOverrides, type index_ChaptersPromptSections as ChaptersPromptSections, type index_ChaptersResult as ChaptersResult, type index_ChaptersType as ChaptersType, index_DEFAULT_DESCRIPTION_LENGTH as DEFAULT_DESCRIPTION_LENGTH, index_DEFAULT_SUMMARY_KEYWORD_LIMIT as DEFAULT_SUMMARY_KEYWORD_LIMIT, index_DEFAULT_TITLE_LENGTH as DEFAULT_TITLE_LENGTH, index_DEFAULT_TRANSCRIPT_WINDOWING as DEFAULT_TRANSCRIPT_WINDOWING, type index_EditCaptionsOptions as EditCaptionsOptions, type index_EditCaptionsResult as EditCaptionsResult, type index_EmbeddingsOptions as EmbeddingsOptions, type index_EmbeddingsResult as EmbeddingsResult, type index_EngagementInsightsOptions as EngagementInsightsOptions, type index_EngagementInsightsResult as EngagementInsightsResult, index_GENERATE_TEXT_CALLS_TO_ACTION as GENERATE_TEXT_CALLS_TO_ACTION, index_GENERATE_TEXT_CHANNELS as GENERATE_TEXT_CHANNELS, index_GENERATE_TEXT_CHANNEL_CEILINGS as GENERATE_TEXT_CHANNEL_CEILINGS, index_GENERATE_TEXT_FORMATS as GENERATE_TEXT_FORMATS, index_GENERATE_TEXT_LENGTH_BOUNDS as GENERATE_TEXT_LENGTH_BOUNDS, index_GENERATE_TEXT_MAX_ARTIFACTS as GENERATE_TEXT_MAX_ARTIFACTS, index_GENERATE_TEXT_MAX_AUDIENCE_CHARS as GENERATE_TEXT_MAX_AUDIENCE_CHARS, index_GENERATE_TEXT_MAX_BRAND_TERMS as GENERATE_TEXT_MAX_BRAND_TERMS, index_GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS as GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS, index_GENERATE_TEXT_MAX_BRAND_TERM_CHARS as GENERATE_TEXT_MAX_BRAND_TERM_CHARS, index_GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS as GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS, index_GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS as GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS, index_GENERATE_TEXT_MAX_SHOT_FRAMES as GENERATE_TEXT_MAX_SHOT_FRAMES, index_GENERATE_TEXT_MAX_VARIANTS as GENERATE_TEXT_MAX_VARIANTS, index_GENERATE_TEXT_VOICES as GENERATE_TEXT_VOICES, index_GOOGLE_VISION_LIKELIHOOD_TO_SCORE as GOOGLE_VISION_LIKELIHOOD_TO_SCORE, type index_GenerateTextArtifact as GenerateTextArtifact, type index_GenerateTextCallToAction as GenerateTextCallToAction, type index_GenerateTextChannel as GenerateTextChannel, type index_GenerateTextFormat as GenerateTextFormat, type index_GenerateTextKeyedItem as GenerateTextKeyedItem, type index_GenerateTextLengthLimit as GenerateTextLengthLimit, type index_GenerateTextOptions as GenerateTextOptions, type index_GenerateTextResult as GenerateTextResult, type index_GenerateTextVariant as GenerateTextVariant, type index_GenerateTextVoice as GenerateTextVoice, type index_GeneratedTextArtifact as GeneratedTextArtifact, type index_GeneratedTextVariant as GeneratedTextVariant, index_HIVE_SEXUAL_CATEGORIES as HIVE_SEXUAL_CATEGORIES, index_HIVE_VIOLENCE_CATEGORIES as HIVE_VIOLENCE_CATEGORIES, type index_HiveModerationOutput as HiveModerationOutput, type index_HiveModerationSource as HiveModerationSource, type index_ModerationOptions as ModerationOptions, type index_ModerationProvider as ModerationProvider, type index_ModerationResult as ModerationResult, type index_ModerationSurfaceStatus as ModerationSurfaceStatus, type index_MomentInsight as MomentInsight, type index_OverallInsight as OverallInsight, type index_ProfanityDetectionPayload as ProfanityDetectionPayload, type index_Question as Question, type index_QuestionAnswer as QuestionAnswer, type index_QuestionAnswerType as QuestionAnswerType, type index_RepairAttempt as RepairAttempt, type index_RepairCall as RepairCall, type index_RepairOptions as RepairOptions, type index_RepairPlan as RepairPlan, type index_RepairResult as RepairResult, type index_RepairSpan as RepairSpan, type index_ReplacementRecord as ReplacementRecord, type index_SpeakerReplacement as SpeakerReplacement, type index_StaticRenditionCleanupOutcome as StaticRenditionCleanupOutcome, type index_SummarizationOptions as SummarizationOptions, type index_SummarizationPromptOverrides as SummarizationPromptOverrides, type index_SummarizationPromptSections as SummarizationPromptSections, type index_SummaryAndTagsResult as SummaryAndTagsResult, type index_SummaryType as SummaryType, type index_TextLengthLimit as TextLengthLimit, type index_TextRepairModelOptions as TextRepairModelOptions, type index_ThumbnailModerationScore as ThumbnailModerationScore, type index_ThumbnailModerationSkipReason as ThumbnailModerationSkipReason, type index_ThumbnailModerationStatus as ThumbnailModerationStatus, type index_TranscriptModerationScore as TranscriptModerationScore, type index_TranscriptModerationSkipReason as TranscriptModerationSkipReason, type index_TranscriptModerationStatus as TranscriptModerationStatus, type index_TranslationChunkingOptions as TranslationChunkingOptions, type index_TranslationOptions as TranslationOptions, type index_TranslationPayload as TranslationPayload, type index_TranslationResult as TranslationResult, index_aggregateTokenUsage as aggregateTokenUsage, index_applyOverrideLists as applyOverrideLists, index_applyReplacements as applyReplacements, index_applySpeakerReplacements as applySpeakerReplacements, index_applyTextRepair as applyTextRepair, index_askQuestions as askQuestions, index_buildReplacementRegex as buildReplacementRegex, index_buildTranscriptWindows as buildTranscriptWindows, index_burnedInCaptionsSchema as burnedInCaptionsSchema, index_censorVttContent as censorVttContent, index_chapterSchema as chapterSchema, index_chaptersSchema as chaptersSchema, index_createReplacer as createReplacer, index_createTextRepairGenerator as createTextRepairGenerator, index_editCaptions as editCaptions, index_extractTranscriptSegmentsForHotspots as extractTranscriptSegmentsForHotspots, index_findGenerateTextLengthViolation as findGenerateTextLengthViolation, index_generateChapters as generateChapters, index_generateEmbeddings as generateEmbeddings, index_generateEngagementInsights as generateEngagementInsights, index_generateText as generateText, index_generateVideoEmbeddings as generateVideoEmbeddings, index_getModerationScores as getModerationScores, index_getSummaryAndTags as getSummaryAndTags, index_hasBurnedInCaptions as hasBurnedInCaptions, index_mapShotsToHotspots as mapShotsToHotspots, index_measureGenerateTextLength as measureGenerateTextLength, index_normalizeTranslatedVtt as normalizeTranslatedVtt, index_planTextRepair as planTextRepair, index_profanityDetectionSchema as profanityDetectionSchema, index_questionAnswerSchema as questionAnswerSchema, index_repairJsonSchema as repairJsonSchema, index_repairText as repairText, index_resolveGenerateTextLengthLimit as resolveGenerateTextLengthLimit, index_resolveGenerateTextLengthLimits as resolveGenerateTextLengthLimits, index_resolveGenerateTextOptions as resolveGenerateTextOptions, index_runTextRepairLoop as runTextRepairLoop, index_selectGenerateTextShotFrames as selectGenerateTextShotFrames, index_shouldSplitChunkTranslationError as shouldSplitChunkTranslationError, index_summarySchema as summarySchema, index_transformCueText as transformCueText, index_translateAudio as translateAudio, index_translateCaptions as translateCaptions, index_translationSchema as translationSchema, index_validateNeverTranslateTerms as validateNeverTranslateTerms, index_verifyNeverTranslateTerms as verifyNeverTranslateTerms };
2308
+ 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 };
2249
2309
  }
2250
2310
 
2251
- export { type BurnedInCaptionsPromptSections as $, replaceAndCreateTextTrack as A, replaceAndCreateTrack as B, replaceSourceTrack as C, summarizeTextTrack as D, toISO639_1 as E, toISO639_3 as F, validateTrackPassthrough as G, index as H, type ISO639_1 as I, ASK_QUESTIONS_DEFAULT_MAX_ANSWER_OPTION_LENGTH as J, ASK_QUESTIONS_DEFAULT_MAX_FREE_FORM_ANSWER_LENGTH as K, type LanguageCodePair as L, MUX_TRACK_PASSTHROUGH_MAX_CHARS as M, ASK_QUESTIONS_MAX_QUESTIONS_PER_CALL as N, ASK_QUESTIONS_MAX_QUESTION_LENGTH as O, type AskQuestionsOptions as P, type AskQuestionsResult as Q, type ReplaceAndCreateTextTrackInput as R, type SourceTrackReplacementPolicy as S, type TextTrackReplacementPlan as T, type AskQuestionsType as U, type AudioTranslationOptions as V, type AudioTranslationResult as W, type AutoCensorProfanityOptions as X, type BurnedInCaptionsAnalysis as Y, type BurnedInCaptionsOptions as Z, type BurnedInCaptionsPromptOverrides as _, type ISO639_3 as a, type RepairResult as a$, type BurnedInCaptionsResult as a0, type CaptionReplacement as a1, type CensorMode as a2, type Chapter as a3, type ChapterSystemPromptSections as a4, type ChaptersOptions as a5, type ChaptersPromptOverrides as a6, type ChaptersPromptSections as a7, type ChaptersResult as a8, type ChaptersType as a9, type GenerateTextFormat as aA, type GenerateTextKeyedItem as aB, type GenerateTextLengthLimit as aC, type GenerateTextOptions as aD, type GenerateTextResult as aE, type GenerateTextVariant as aF, type GenerateTextVoice as aG, type GeneratedTextArtifact as aH, type GeneratedTextVariant as aI, HIVE_SEXUAL_CATEGORIES as aJ, HIVE_VIOLENCE_CATEGORIES as aK, type HiveModerationOutput as aL, type HiveModerationSource as aM, type ModerationOptions as aN, type ModerationProvider as aO, type ModerationResult as aP, type ModerationSurfaceStatus as aQ, type MomentInsight as aR, type OverallInsight as aS, type ProfanityDetectionPayload as aT, type Question as aU, type QuestionAnswer as aV, type QuestionAnswerType as aW, type RepairAttempt as aX, type RepairCall as aY, type RepairOptions as aZ, type RepairPlan as a_, DEFAULT_TRANSCRIPT_WINDOWING as aa, type EditCaptionsOptions as ab, type EditCaptionsResult as ac, type EmbeddingsOptions as ad, type EmbeddingsResult as ae, type EngagementInsightsOptions as af, type EngagementInsightsResult as ag, GENERATE_TEXT_CALLS_TO_ACTION as ah, GENERATE_TEXT_CHANNELS as ai, GENERATE_TEXT_CHANNEL_CEILINGS as aj, GENERATE_TEXT_FORMATS as ak, GENERATE_TEXT_LENGTH_BOUNDS as al, GENERATE_TEXT_MAX_ARTIFACTS as am, GENERATE_TEXT_MAX_AUDIENCE_CHARS as an, GENERATE_TEXT_MAX_BRAND_TERMS as ao, GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS as ap, GENERATE_TEXT_MAX_BRAND_TERM_CHARS as aq, GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS as ar, GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS as as, GENERATE_TEXT_MAX_SHOT_FRAMES as at, GENERATE_TEXT_MAX_VARIANTS as au, GENERATE_TEXT_VOICES as av, GOOGLE_VISION_LIKELIHOOD_TO_SCORE as aw, type GenerateTextArtifact as ax, type GenerateTextCallToAction as ay, type GenerateTextChannel as az, type ReplaceAndCreateTextTrackResult as b, translateCaptions as b$, type RepairSpan as b0, type ReplacementRecord as b1, type SpeakerReplacement as b2, type StaticRenditionCleanupOutcome as b3, type SummarizationOptions as b4, type SummarizationPromptOverrides as b5, type SummarizationPromptSections as b6, type SummaryAndTagsResult as b7, type SummaryType as b8, type TextLengthLimit as b9, extractTranscriptSegmentsForHotspots as bA, findGenerateTextLengthViolation as bB, generateChapters as bC, generateEmbeddings as bD, generateEngagementInsights as bE, generateText as bF, generateVideoEmbeddings as bG, getModerationScores as bH, getSummaryAndTags as bI, hasBurnedInCaptions as bJ, mapShotsToHotspots as bK, measureGenerateTextLength as bL, normalizeTranslatedVtt as bM, planTextRepair as bN, profanityDetectionSchema as bO, questionAnswerSchema as bP, repairJsonSchema as bQ, repairText as bR, resolveGenerateTextLengthLimit as bS, resolveGenerateTextLengthLimits as bT, resolveGenerateTextOptions as bU, runTextRepairLoop as bV, selectGenerateTextShotFrames as bW, shouldSplitChunkTranslationError as bX, summarySchema as bY, transformCueText as bZ, translateAudio as b_, type TextRepairModelOptions as ba, type ThumbnailModerationScore as bb, type ThumbnailModerationSkipReason as bc, type ThumbnailModerationStatus as bd, type TranscriptModerationScore as be, type TranscriptModerationSkipReason as bf, type TranscriptModerationStatus as bg, type TranslationChunkingOptions as bh, type TranslationOptions as bi, type TranslationPayload as bj, type TranslationResult as bk, aggregateTokenUsage as bl, applyOverrideLists as bm, applyReplacements as bn, applySpeakerReplacements as bo, applyTextRepair as bp, askQuestions as bq, buildReplacementRegex as br, buildTranscriptWindows as bs, burnedInCaptionsSchema as bt, censorVttContent as bu, chapterSchema as bv, chaptersSchema as bw, createReplacer as bx, createTextRepairGenerator as by, editCaptions as bz, type ReplaceAndCreateTrackInput as c, translationSchema as c0, validateNeverTranslateTerms as c1, verifyNeverTranslateTerms as c2, type ReplaceExistingTracksPolicy as d, type ReplaceSourceTrackInput as e, type ReplaceableTrackType as f, type SupportedISO639_1 as g, type SupportedISO639_3 as h, type TextTrackSummary as i, type TextTrackTarget as j, type TrackSummary as k, type TrackTarget as l, buildMuxAiTrackPassthrough as m, findNameCollisionTextTracks as n, findSameLanguageTextTracks as o, getLanguageCodePair as p, getLanguageName as q, isDuplicateTrackNameError as r, isMuxGeneratedTextTrack as s, isUndeterminedLanguageCode as t, isValidISO639_1 as u, isValidISO639_3 as v, normalizeTrackLanguageCode as w, normalizeTrackName as x, planSourceTrackReplacement as y, planTextTrackReplacement as z };
2311
+ 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 RepairPlan 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 GenerateTextChannel as aA, type GenerateTextFormat as aB, type GenerateTextKeyedItem as aC, type GenerateTextLengthLimit as aD, type GenerateTextOptions as aE, type GenerateTextResult as aF, type GenerateTextVariant as aG, type GenerateTextVoice as aH, type GeneratedTextArtifact as aI, type GeneratedTextVariant as aJ, HIVE_SEXUAL_CATEGORIES as aK, HIVE_VIOLENCE_CATEGORIES as aL, type HiveModerationOutput as aM, type HiveModerationSource as aN, type ModerationOptions as aO, type ModerationProvider as aP, type ModerationResult as aQ, type ModerationSurfaceStatus as aR, type MomentInsight as aS, type OverallInsight as aT, type ProfanityDetectionPayload as aU, type Question as aV, type QuestionAnswer as aW, type QuestionAnswerType as aX, type RepairAttempt as aY, type RepairCall as aZ, type RepairOptions as a_, DEFAULT_TRANSCRIPT_WINDOWING as aa, type DubbedCaptionsOutcome as ab, type EditCaptionsOptions as ac, type EditCaptionsResult as ad, type EmbeddingsOptions as ae, type EmbeddingsResult as af, type EngagementInsightsOptions as ag, type EngagementInsightsResult as ah, GENERATE_TEXT_CALLS_TO_ACTION as ai, GENERATE_TEXT_CHANNELS as aj, GENERATE_TEXT_CHANNEL_CEILINGS as ak, GENERATE_TEXT_FORMATS as al, GENERATE_TEXT_LENGTH_BOUNDS as am, GENERATE_TEXT_MAX_ARTIFACTS as an, GENERATE_TEXT_MAX_AUDIENCE_CHARS as ao, GENERATE_TEXT_MAX_BRAND_TERMS as ap, GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS as aq, GENERATE_TEXT_MAX_BRAND_TERM_CHARS as ar, GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS as as, GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS as at, GENERATE_TEXT_MAX_SHOT_FRAMES as au, GENERATE_TEXT_MAX_VARIANTS as av, GENERATE_TEXT_VOICES as aw, GOOGLE_VISION_LIKELIHOOD_TO_SCORE as ax, type GenerateTextArtifact as ay, type GenerateTextCallToAction as az, type ReplaceAndCreateTextTrackResult as b, translateAudio as b$, type RepairResult as b0, type RepairSpan as b1, type ReplacementRecord as b2, type SpeakerReplacement as b3, type StaticRenditionCleanupOutcome as b4, type SummarizationOptions as b5, type SummarizationPromptOverrides as b6, type SummarizationPromptSections as b7, type SummaryAndTagsResult as b8, type SummaryType as b9, editCaptions as bA, extractTranscriptSegmentsForHotspots as bB, findGenerateTextLengthViolation as bC, generateChapters as bD, generateEmbeddings as bE, generateEngagementInsights as bF, generateText as bG, generateVideoEmbeddings as bH, getModerationScores as bI, getSummaryAndTags as bJ, hasBurnedInCaptions as bK, mapShotsToHotspots as bL, measureGenerateTextLength as bM, normalizeTranslatedVtt as bN, planTextRepair as bO, profanityDetectionSchema as bP, questionAnswerSchema as bQ, repairJsonSchema as bR, repairText as bS, resolveGenerateTextLengthLimit as bT, resolveGenerateTextLengthLimits as bU, resolveGenerateTextOptions as bV, runTextRepairLoop as bW, selectGenerateTextShotFrames as bX, shouldSplitChunkTranslationError as bY, summarySchema as bZ, transformCueText as b_, type TextLengthLimit as ba, type TextRepairModelOptions as bb, type ThumbnailModerationScore as bc, type ThumbnailModerationSkipReason as bd, type ThumbnailModerationStatus as be, type TranscriptModerationScore as bf, type TranscriptModerationSkipReason as bg, type TranscriptModerationStatus as bh, type TranslationChunkingOptions as bi, type TranslationOptions as bj, type TranslationPayload as bk, type TranslationResult as bl, aggregateTokenUsage as bm, applyOverrideLists as bn, applyReplacements as bo, applySpeakerReplacements as bp, applyTextRepair as bq, askQuestions as br, buildReplacementRegex as bs, buildTranscriptWindows as bt, burnedInCaptionsSchema as bu, censorVttContent as bv, chapterSchema as bw, chaptersSchema as bx, createReplacer as by, createTextRepairGenerator as bz, type ReplaceAndCreateTrackInput as c, translateCaptions as c0, translationSchema as c1, validateNeverTranslateTerms as c2, verifyNeverTranslateTerms as c3, 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,4 +1,4 @@
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-Bav9fNtf.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-bdbFMlhA.js';
2
2
  import { WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '@workflow/serde';
3
3
  import { T as TokenUsage, M as MuxAsset, W as WorkflowCredentials, S as StoragePutObjectInput, a as StoragePresignGetObjectInput } from './transcripts-Brw74qlV.js';
4
4
  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, h as TextChunk, i as TokenChunkingConfig, j as ToneType, U as UsageMetadata, V as VTTChunkingConfig, k as VideoEmbeddingsResult, l as WorkflowCredentialsInput, m as WorkflowMuxClient, n as WorkflowScope, o as decryptFromWorkflow, p as encryptForWorkflow } from './transcripts-Brw74qlV.js';
@@ -11,7 +11,7 @@ import '@ai-sdk/google';
11
11
  import '@ai-sdk/openai';
12
12
  import '@mux/ts';
13
13
 
14
- var version = "0.56.0";
14
+ var version = "0.58.0";
15
15
 
16
16
  type MuxAiErrorType = "validation_error" | "processing_error" | "timeout_error" | "content_policy_error";
17
17
  interface ModelCallDiagnostics {