@mux/ai 0.21.2 → 0.23.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.
- package/dist/{index-DwNtsg-u.d.ts → index-ePt2EMpB.d.ts} +173 -105
- package/dist/index.d.ts +3 -3
- package/dist/index.js +182 -170
- package/dist/index.js.map +1 -1
- package/dist/primitives/index.js +3 -3
- package/dist/primitives/index.js.map +1 -1
- package/dist/workflows/index.d.ts +1 -1
- package/dist/workflows/index.js +3 -4
- package/dist/workflows/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AskQuestionsOptions,
|
|
1
|
+
export { A as AskQuestionsOptions, j as AskQuestionsResult, k as AskQuestionsType, l as AudioTranslationOptions, m as AudioTranslationResult, n as AutoCensorProfanityOptions, B as BurnedInCaptionsAnalysis, o as BurnedInCaptionsOptions, p as BurnedInCaptionsPromptOverrides, q as BurnedInCaptionsPromptSections, r as BurnedInCaptionsResult, C as CaptionReplacement, s as CensorMode, u as Chapter, v as ChapterSystemPromptSections, w as ChaptersOptions, x as ChaptersPromptOverrides, y as ChaptersPromptSections, z as ChaptersResult, D as ChaptersType, E as DEFAULT_DESCRIPTION_LENGTH, F as DEFAULT_SUMMARY_KEYWORD_LIMIT, G as DEFAULT_TITLE_LENGTH, H as EditCaptionsOptions, J as EditCaptionsResult, K as EmbeddingsOptions, M as EmbeddingsResult, N as EngagementInsightsOptions, O as EngagementInsightsResult, P as GOOGLE_VISION_LIKELIHOOD_TO_SCORE, Q as HIVE_SEXUAL_CATEGORIES, R as HIVE_VIOLENCE_CATEGORIES, T as HiveModerationOutput, U as HiveModerationSource, V as ModerationOptions, W as ModerationProvider, X as ModerationResult, Y as MomentInsight, Z as OverallInsight, _ as ProfanityDetectionPayload, $ as Question, a0 as QuestionAnswer, a1 as QuestionAnswerType, a2 as ReplacementRecord, a3 as SummarizationOptions, a4 as SummarizationPromptOverrides, a5 as SummarizationPromptSections, a6 as SummaryAndTagsResult, a7 as SummaryType, a8 as ThumbnailModerationScore, a9 as TranslationChunkingOptions, aa as TranslationOptions, ab as TranslationPayload, ac as TranslationResult, ad as aggregateTokenUsage, ae as applyOverrideLists, af as applyReplacements, ag as askQuestions, ah as buildReplacementRegex, ai as burnedInCaptionsSchema, aj as censorVttContent, ak as chapterSchema, al as chaptersSchema, am as createReplacer, an as editCaptions, ao as extractTranscriptSegmentsForHotspots, ap as generateChapters, aq as generateEmbeddings, ar as generateEngagementInsights, as as generateVideoEmbeddings, at as getModerationScores, au as getSummaryAndTags, av as hasBurnedInCaptions, aw as mapShotsToHotspots, ax as normalizeTranslatedVtt, ay as profanityDetectionSchema, az as questionAnswerSchema, aA as shouldSplitChunkTranslationError, aB as summarySchema, aC as transformCueText, aD as translateAudio, aE as translateCaptions, aF as translationSchema } from '../index-ePt2EMpB.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import '@ai-sdk/anthropic';
|
|
4
4
|
import '@ai-sdk/google';
|
package/dist/workflows/index.js
CHANGED
|
@@ -4178,12 +4178,12 @@ function getShotsPath(assetId) {
|
|
|
4178
4178
|
}
|
|
4179
4179
|
function mapManifestShots(shots) {
|
|
4180
4180
|
return shots.map((shot, index) => {
|
|
4181
|
-
const { startTime, imageUrl } = shot;
|
|
4181
|
+
const { start_time: startTime, image_url: imageUrl } = shot;
|
|
4182
4182
|
if (typeof startTime !== "number" || !Number.isFinite(startTime)) {
|
|
4183
|
-
throw new TypeError(`Invalid shot
|
|
4183
|
+
throw new TypeError(`Invalid shot start_time in shots manifest at index ${index}`);
|
|
4184
4184
|
}
|
|
4185
4185
|
if (typeof imageUrl !== "string" || imageUrl.length === 0) {
|
|
4186
|
-
throw new TypeError(`Invalid shot
|
|
4186
|
+
throw new TypeError(`Invalid shot image_url in shots manifest at index ${index}`);
|
|
4187
4187
|
}
|
|
4188
4188
|
return {
|
|
4189
4189
|
startTime,
|
|
@@ -4734,7 +4734,6 @@ async function generateEngagementInsights(assetId, options = {}) {
|
|
|
4734
4734
|
momentInsights.push({
|
|
4735
4735
|
startMs: hotspot.startMs,
|
|
4736
4736
|
endMs: hotspot.endMs,
|
|
4737
|
-
timestamp: secondsToTimestamp(hotspot.startMs / 1e3),
|
|
4738
4737
|
engagementScore: hotspot.score,
|
|
4739
4738
|
insight: insightScrub.leaked ? "Insight suppressed by safety filter." : insightScrub.text
|
|
4740
4739
|
});
|