@mux/ai 0.43.0 → 0.45.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,9 @@
1
1
  import { z } from 'zod';
2
- import { SafetyReport, PromptOverrides, SceneContextItemV1 } from './prompts/index.js';
2
+ 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
3
  import { createAnthropic } from '@ai-sdk/anthropic';
4
4
  import { createGoogleGenerativeAI } from '@ai-sdk/google';
5
5
  import { createOpenAI } from '@ai-sdk/openai';
6
- import { l as WorkflowCredentialsInput, d as MuxAsset, A as AssetTextTrack, f as ScopedMuxAIOptions, I as ImageSubmissionMode, i as TokenUsage, M as MuxAIOptions, b as ChunkingStrategy, k as VideoEmbeddingsResult, H as Hotspot, v as Shot, j as ToneType, g as StorageAdapter } from './shots-CUI09Ohe.js';
6
+ import { l as WorkflowCredentialsInput, d as MuxAsset, A as AssetTextTrack, f as ScopedMuxAIOptions, I as ImageSubmissionMode, i as TokenUsage, M as MuxAIOptions, b as ChunkingStrategy, k as VideoEmbeddingsResult, H as Hotspot, v as Shot, j as ToneType, g as StorageAdapter } from './shots-B7G0IIF1.js';
7
7
 
8
8
  /**
9
9
  * Language Code Conversion Utilities
@@ -1414,9 +1414,6 @@ declare const HIVE_VIOLENCE_CATEGORIES: string[];
1414
1414
  */
1415
1415
  declare function getModerationScores(assetId: string, options?: ModerationOptions): Promise<ModerationResult>;
1416
1416
 
1417
- declare const DEFAULT_SUMMARY_KEYWORD_LIMIT = 10;
1418
- declare const DEFAULT_TITLE_LENGTH = 10;
1419
- declare const DEFAULT_DESCRIPTION_LENGTH = 50;
1420
1417
  /**
1421
1418
  * Length caps (`.max(...)`) on each free-text field are a mechanical
1422
1419
  * defence-in-depth against exfiltration: even if an injection payload
@@ -1965,4 +1962,4 @@ declare namespace index {
1965
1962
  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 };
1966
1963
  }
1967
1964
 
1968
- export { type Chapter as $, toISO639_1 as A, toISO639_3 as B, validateTrackPassthrough as C, index as D, ASK_QUESTIONS_DEFAULT_MAX_ANSWER_OPTION_LENGTH as E, ASK_QUESTIONS_DEFAULT_MAX_FREE_FORM_ANSWER_LENGTH as F, ASK_QUESTIONS_MAX_QUESTIONS_PER_CALL as G, ASK_QUESTIONS_MAX_QUESTION_LENGTH as H, type ISO639_1 as I, type AskQuestionsOptions as J, type AskQuestionsResult as K, type LanguageCodePair as L, MUX_TRACK_PASSTHROUGH_MAX_CHARS as M, type AskQuestionsType as N, type AudioTranslationOptions as O, type AudioTranslationResult as P, type AutoCensorProfanityOptions as Q, type ReplaceAndCreateTextTrackInput as R, type SupportedISO639_1 as S, type TextTrackReplacementPlan as T, type BurnedInCaptionsAnalysis as U, type BurnedInCaptionsOptions as V, type BurnedInCaptionsPromptOverrides as W, type BurnedInCaptionsPromptSections as X, type BurnedInCaptionsResult as Y, type CaptionReplacement as Z, type CensorMode as _, type ISO639_3 as a, type SummaryType as a$, type ChapterSystemPromptSections as a0, type ChaptersOptions as a1, type ChaptersPromptOverrides as a2, type ChaptersPromptSections as a3, type ChaptersResult as a4, type ChaptersType as a5, DEFAULT_DESCRIPTION_LENGTH as a6, DEFAULT_SUMMARY_KEYWORD_LIMIT as a7, DEFAULT_TITLE_LENGTH as a8, type EditCaptionsOptions as a9, type GenerateTextLengthLimit as aA, type GenerateTextOptions as aB, type GenerateTextResult as aC, type GenerateTextVariant as aD, type GenerateTextVoice as aE, type GeneratedTextArtifact as aF, type GeneratedTextVariant as aG, HIVE_SEXUAL_CATEGORIES as aH, HIVE_VIOLENCE_CATEGORIES as aI, type HiveModerationOutput as aJ, type HiveModerationSource as aK, type ModerationOptions as aL, type ModerationProvider as aM, type ModerationResult as aN, type MomentInsight as aO, type OverallInsight as aP, type ProfanityDetectionPayload as aQ, type Question as aR, type QuestionAnswer as aS, type QuestionAnswerType as aT, type ReplacementRecord as aU, type SpeakerReplacement as aV, type StaticRenditionCleanupOutcome as aW, type SummarizationOptions as aX, type SummarizationPromptOverrides as aY, type SummarizationPromptSections as aZ, type SummaryAndTagsResult as a_, type EditCaptionsResult as aa, type EmbeddingsOptions as ab, type EmbeddingsResult as ac, type EngagementInsightsOptions as ad, type EngagementInsightsResult as ae, GENERATE_TEXT_CALLS_TO_ACTION as af, GENERATE_TEXT_CHANNELS as ag, GENERATE_TEXT_CHANNEL_CEILINGS as ah, GENERATE_TEXT_FORMATS as ai, GENERATE_TEXT_LENGTH_BOUNDS as aj, GENERATE_TEXT_MAX_ARTIFACTS as ak, GENERATE_TEXT_MAX_AUDIENCE_CHARS as al, GENERATE_TEXT_MAX_BRAND_TERMS as am, GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS as an, GENERATE_TEXT_MAX_BRAND_TERM_CHARS as ao, GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS as ap, GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS as aq, GENERATE_TEXT_MAX_SHOT_FRAMES as ar, GENERATE_TEXT_MAX_VARIANTS as as, GENERATE_TEXT_VOICES as at, GOOGLE_VISION_LIKELIHOOD_TO_SCORE as au, type GenerateTextArtifact as av, type GenerateTextCallToAction as aw, type GenerateTextChannel as ax, type GenerateTextFormat as ay, type GenerateTextKeyedItem as az, type ReplaceAndCreateTextTrackResult as b, type ThumbnailModerationScore as b0, type TranslationChunkingOptions as b1, type TranslationOptions as b2, type TranslationPayload as b3, type TranslationResult as b4, aggregateTokenUsage as b5, applyOverrideLists as b6, applyReplacements as b7, applySpeakerReplacements as b8, askQuestions as b9, shouldSplitChunkTranslationError as bA, summarySchema as bB, transformCueText as bC, translateAudio as bD, translateCaptions as bE, translationSchema as bF, validateNeverTranslateTerms as bG, verifyNeverTranslateTerms as bH, buildReplacementRegex as ba, burnedInCaptionsSchema as bb, censorVttContent as bc, chapterSchema as bd, chaptersSchema as be, createReplacer as bf, editCaptions as bg, extractTranscriptSegmentsForHotspots as bh, findGenerateTextLengthViolation as bi, generateChapters as bj, generateEmbeddings as bk, generateEngagementInsights as bl, generateText as bm, generateVideoEmbeddings as bn, getModerationScores as bo, getSummaryAndTags as bp, hasBurnedInCaptions as bq, mapShotsToHotspots as br, measureGenerateTextLength as bs, normalizeTranslatedVtt as bt, profanityDetectionSchema as bu, questionAnswerSchema as bv, resolveGenerateTextLengthLimit as bw, resolveGenerateTextLengthLimits as bx, resolveGenerateTextOptions as by, selectGenerateTextShotFrames as bz, type ReplaceAndCreateTrackInput as c, type ReplaceExistingTracksPolicy as d, type ReplaceableTrackType as e, type SupportedISO639_3 as f, type TextTrackSummary as g, type TextTrackTarget as h, type TrackSummary as i, type TrackTarget as j, buildMuxAiTrackPassthrough as k, findNameCollisionTextTracks as l, findSameLanguageTextTracks as m, getLanguageCodePair as n, getLanguageName as o, isDuplicateTrackNameError as p, isMuxGeneratedTextTrack as q, isUndeterminedLanguageCode as r, isValidISO639_1 as s, isValidISO639_3 as t, normalizeTrackLanguageCode as u, normalizeTrackName as v, planTextTrackReplacement as w, replaceAndCreateTextTrack as x, replaceAndCreateTrack as y, summarizeTextTrack as z };
1965
+ export { type Chapter as $, toISO639_1 as A, toISO639_3 as B, validateTrackPassthrough as C, index as D, ASK_QUESTIONS_DEFAULT_MAX_ANSWER_OPTION_LENGTH as E, ASK_QUESTIONS_DEFAULT_MAX_FREE_FORM_ANSWER_LENGTH as F, ASK_QUESTIONS_MAX_QUESTIONS_PER_CALL as G, ASK_QUESTIONS_MAX_QUESTION_LENGTH as H, type ISO639_1 as I, type AskQuestionsOptions as J, type AskQuestionsResult as K, type LanguageCodePair as L, MUX_TRACK_PASSTHROUGH_MAX_CHARS as M, type AskQuestionsType as N, type AudioTranslationOptions as O, type AudioTranslationResult as P, type AutoCensorProfanityOptions as Q, type ReplaceAndCreateTextTrackInput as R, type SupportedISO639_1 as S, type TextTrackReplacementPlan as T, type BurnedInCaptionsAnalysis as U, type BurnedInCaptionsOptions as V, type BurnedInCaptionsPromptOverrides as W, type BurnedInCaptionsPromptSections as X, type BurnedInCaptionsResult as Y, type CaptionReplacement as Z, type CensorMode as _, type ISO639_3 as a, type TranslationOptions as a$, type ChapterSystemPromptSections as a0, type ChaptersOptions as a1, type ChaptersPromptOverrides as a2, type ChaptersPromptSections as a3, type ChaptersResult as a4, type ChaptersType as a5, type EditCaptionsOptions as a6, type EditCaptionsResult as a7, type EmbeddingsOptions as a8, type EmbeddingsResult as a9, type GenerateTextVariant as aA, type GenerateTextVoice as aB, type GeneratedTextArtifact as aC, type GeneratedTextVariant as aD, HIVE_SEXUAL_CATEGORIES as aE, HIVE_VIOLENCE_CATEGORIES as aF, type HiveModerationOutput as aG, type HiveModerationSource as aH, type ModerationOptions as aI, type ModerationProvider as aJ, type ModerationResult as aK, type MomentInsight as aL, type OverallInsight as aM, type ProfanityDetectionPayload as aN, type Question as aO, type QuestionAnswer as aP, type QuestionAnswerType as aQ, type ReplacementRecord as aR, type SpeakerReplacement as aS, type StaticRenditionCleanupOutcome as aT, type SummarizationOptions as aU, type SummarizationPromptOverrides as aV, type SummarizationPromptSections as aW, type SummaryAndTagsResult as aX, type SummaryType as aY, type ThumbnailModerationScore as aZ, type TranslationChunkingOptions as a_, type EngagementInsightsOptions as aa, type EngagementInsightsResult as ab, GENERATE_TEXT_CALLS_TO_ACTION as ac, GENERATE_TEXT_CHANNELS as ad, GENERATE_TEXT_CHANNEL_CEILINGS as ae, GENERATE_TEXT_FORMATS as af, GENERATE_TEXT_LENGTH_BOUNDS as ag, GENERATE_TEXT_MAX_ARTIFACTS as ah, GENERATE_TEXT_MAX_AUDIENCE_CHARS as ai, GENERATE_TEXT_MAX_BRAND_TERMS as aj, GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS as ak, GENERATE_TEXT_MAX_BRAND_TERM_CHARS as al, GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS as am, GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS as an, GENERATE_TEXT_MAX_SHOT_FRAMES as ao, GENERATE_TEXT_MAX_VARIANTS as ap, GENERATE_TEXT_VOICES as aq, GOOGLE_VISION_LIKELIHOOD_TO_SCORE as ar, type GenerateTextArtifact as as, type GenerateTextCallToAction as at, type GenerateTextChannel as au, type GenerateTextFormat as av, type GenerateTextKeyedItem as aw, type GenerateTextLengthLimit as ax, type GenerateTextOptions as ay, type GenerateTextResult as az, type ReplaceAndCreateTextTrackResult as b, type TranslationPayload as b0, type TranslationResult as b1, aggregateTokenUsage as b2, applyOverrideLists as b3, applyReplacements as b4, applySpeakerReplacements as b5, askQuestions as b6, buildReplacementRegex as b7, burnedInCaptionsSchema as b8, censorVttContent as b9, translateAudio as bA, translateCaptions as bB, translationSchema as bC, validateNeverTranslateTerms as bD, verifyNeverTranslateTerms as bE, chapterSchema as ba, chaptersSchema as bb, createReplacer as bc, editCaptions as bd, extractTranscriptSegmentsForHotspots as be, findGenerateTextLengthViolation as bf, generateChapters as bg, generateEmbeddings as bh, generateEngagementInsights as bi, generateText as bj, generateVideoEmbeddings as bk, getModerationScores as bl, getSummaryAndTags as bm, hasBurnedInCaptions as bn, mapShotsToHotspots as bo, measureGenerateTextLength as bp, normalizeTranslatedVtt as bq, profanityDetectionSchema as br, questionAnswerSchema as bs, resolveGenerateTextLengthLimit as bt, resolveGenerateTextLengthLimits as bu, resolveGenerateTextOptions as bv, selectGenerateTextShotFrames as bw, shouldSplitChunkTranslationError as bx, summarySchema as by, transformCueText as bz, type ReplaceAndCreateTrackInput as c, type ReplaceExistingTracksPolicy as d, type ReplaceableTrackType as e, type SupportedISO639_3 as f, type TextTrackSummary as g, type TextTrackTarget as h, type TrackSummary as i, type TrackTarget as j, buildMuxAiTrackPassthrough as k, findNameCollisionTextTracks as l, findSameLanguageTextTracks as m, getLanguageCodePair as n, getLanguageName as o, isDuplicateTrackNameError as p, isMuxGeneratedTextTrack as q, isUndeterminedLanguageCode as r, isValidISO639_1 as s, isValidISO639_3 as t, normalizeTrackLanguageCode as u, normalizeTrackName as v, planTextTrackReplacement as w, replaceAndCreateTextTrack as x, replaceAndCreateTrack as y, summarizeTextTrack as z };
@@ -1,4 +1,4 @@
1
- import { l as WorkflowCredentialsInput, n as WorkflowScope, A as AssetTextTrack, d as MuxAsset, T as TextChunk, b as ChunkingStrategy, q as CompletedShotsResult, r as ErroredShotsResult, H as Hotspot, s as HotspotOptions, t as HotspotResponse, u as PendingShotsResult, v as Shot, w as ShotRequestOptions, x as ShotsResult, y as WaitForShotsOptions, z as getHotspotsForAsset, B as getHotspotsForPlaybackId, D as getHotspotsForVideo, F as getShotsForAsset, G as requestShotsForAsset, J as waitForShotsForAsset } from './shots-CUI09Ohe.js';
1
+ import { l as WorkflowCredentialsInput, n as WorkflowScope, A as AssetTextTrack, d as MuxAsset, T as TextChunk, b as ChunkingStrategy, q as CompletedShotsResult, r as ErroredShotsResult, H as Hotspot, s as HotspotOptions, t as HotspotResponse, u as PendingShotsResult, v as Shot, w as ShotRequestOptions, x as ShotsResult, y as WaitForShotsOptions, z as getHotspotsForAsset, B as getHotspotsForPlaybackId, D as getHotspotsForVideo, F as getShotsForAsset, G as requestShotsForAsset, J as waitForShotsForAsset } from './shots-B7G0IIF1.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,16 +1,16 @@
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 ReplaceableTrackType, S as SupportedISO639_1, f as SupportedISO639_3, T as TextTrackReplacementPlan, g as TextTrackSummary, h as TextTrackTarget, i as TrackSummary, j as TrackTarget, k as buildMuxAiTrackPassthrough, l as findNameCollisionTextTracks, m as findSameLanguageTextTracks, n as getLanguageCodePair, o as getLanguageName, p as isDuplicateTrackNameError, q as isMuxGeneratedTextTrack, r as isUndeterminedLanguageCode, s as isValidISO639_1, t as isValidISO639_3, u as normalizeTrackLanguageCode, v as normalizeTrackName, w as planTextTrackReplacement, x as replaceAndCreateTextTrack, y as replaceAndCreateTrack, z as summarizeTextTrack, A as toISO639_1, B as toISO639_3, C as validateTrackPassthrough, D as workflows } from './index-BCyjRRuI.js';
2
- import { W as WorkflowCredentials, S as StoragePutObjectInput, a as StoragePresignGetObjectInput } from './shots-CUI09Ohe.js';
3
- export { A as AssetTextTrack, C as ChunkEmbedding, b as ChunkingStrategy, E as Encrypted, c as EncryptedPayload, I as ImageSubmissionMode, M as MuxAIOptions, d as MuxAsset, 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-CUI09Ohe.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 ReplaceableTrackType, S as SupportedISO639_1, f as SupportedISO639_3, T as TextTrackReplacementPlan, g as TextTrackSummary, h as TextTrackTarget, i as TrackSummary, j as TrackTarget, k as buildMuxAiTrackPassthrough, l as findNameCollisionTextTracks, m as findSameLanguageTextTracks, n as getLanguageCodePair, o as getLanguageName, p as isDuplicateTrackNameError, q as isMuxGeneratedTextTrack, r as isUndeterminedLanguageCode, s as isValidISO639_1, t as isValidISO639_3, u as normalizeTrackLanguageCode, v as normalizeTrackName, w as planTextTrackReplacement, x as replaceAndCreateTextTrack, y as replaceAndCreateTrack, z as summarizeTextTrack, A as toISO639_1, B as toISO639_3, C as validateTrackPassthrough, D as workflows } from './index-BD4acrwt.js';
2
+ import { W as WorkflowCredentials, S as StoragePutObjectInput, a as StoragePresignGetObjectInput } from './shots-B7G0IIF1.js';
3
+ export { A as AssetTextTrack, C as ChunkEmbedding, b as ChunkingStrategy, E as Encrypted, c as EncryptedPayload, I as ImageSubmissionMode, M as MuxAIOptions, d as MuxAsset, 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-B7G0IIF1.js';
4
4
  import { WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '@workflow/serde';
5
- export { i as primitives } from './index-C2Pk7bbF.js';
5
+ export { i as primitives } from './index-D6VGaoPm.js';
6
6
  import 'zod';
7
- import './prompts/index.js';
7
+ import './summarization-BFmhXeAu.js';
8
8
  import '@ai-sdk/anthropic';
9
9
  import '@ai-sdk/google';
10
10
  import '@ai-sdk/openai';
11
11
  import '@mux/mux-node';
12
12
 
13
- var version = "0.43.0";
13
+ var version = "0.45.0";
14
14
 
15
15
  type MuxAiErrorType = "validation_error" | "processing_error" | "timeout_error" | "content_policy_error";
16
16
  /**
@@ -43,6 +43,13 @@ declare class MuxAiError extends Error {
43
43
  }
44
44
  declare function wrapError(error: unknown, message: string): never;
45
45
 
46
+ type MuxPlaybackService = "image" | "stream";
47
+ /**
48
+ * Builds the playback origin for a Mux domain, matching Mux Player's `customDomain`
49
+ * expansion (e.g. "media.example.com" becomes "https://image.media.example.com").
50
+ */
51
+ declare function getMuxPlaybackOrigin(service: MuxPlaybackService, customDomain?: string): string;
52
+
46
53
  /**
47
54
  * A function that returns workflow credentials, either synchronously or asynchronously.
48
55
  * Used to inject credentials from external sources (e.g., a secrets manager).
@@ -77,4 +84,4 @@ declare class WorkflowStorageClient {
77
84
  }
78
85
  declare function createWorkflowStorageClient(options?: WorkflowStorageClientOptions): WorkflowStorageClient;
79
86
 
80
- export { MuxAiError, type MuxAiErrorType, StoragePresignGetObjectInput, StoragePutObjectInput, WorkflowCredentials, type WorkflowCredentialsProvider, WorkflowStorageClient, createWorkflowStorageClient, setWorkflowCredentialsProvider, version, wrapError };
87
+ export { MuxAiError, type MuxAiErrorType, type MuxPlaybackService, StoragePresignGetObjectInput, StoragePutObjectInput, WorkflowCredentials, type WorkflowCredentialsProvider, WorkflowStorageClient, createWorkflowStorageClient, getMuxPlaybackOrigin, setWorkflowCredentialsProvider, version, wrapError };