@mux/ai 0.68.0-canary.112 → 0.68.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-DrQLwBMP.d.ts → index-CxDX1bX1.d.ts} +37 -15
- package/dist/{index-BP2WF8De.d.ts → index-DbEwilAW.d.ts} +1 -1
- package/dist/index.d.ts +12 -8
- package/dist/index.js +4091 -4020
- package/dist/index.js.map +1 -1
- package/dist/primitives/index.d.ts +2 -2
- package/dist/primitives/index.js +5 -4
- package/dist/primitives/index.js.map +1 -1
- package/dist/{transcripts-DVMW9ZSs.d.ts → transcripts-Cs-n8X_l.d.ts} +20 -19
- package/dist/workflows/index.d.ts +2 -2
- package/dist/workflows/index.js +48 -8
- package/dist/workflows/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,46 @@
|
|
|
1
1
|
import { LanguageModel, generateText as generateText$1 } from 'ai';
|
|
2
|
-
import {
|
|
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
|
*
|
|
@@ -400,19 +435,6 @@ declare function findGenerateTextLengthViolation(content: string, limits: readon
|
|
|
400
435
|
actual: number;
|
|
401
436
|
} | undefined;
|
|
402
437
|
|
|
403
|
-
/**
|
|
404
|
-
* Which model call failed: its name, provider and model. Passing one opts the call
|
|
405
|
-
* into classified errors (see `ClassifiedErrorsOption`), with these as facts:
|
|
406
|
-
* content-policy blocks, incomplete or unusable output, and provider API failures for
|
|
407
|
-
* providers with their own classifier (see {@link classifyModelCallError}). Without
|
|
408
|
-
* one, the call fails as it did before classification.
|
|
409
|
-
*/
|
|
410
|
-
interface ModelCallContext {
|
|
411
|
-
call: string;
|
|
412
|
-
provider: string;
|
|
413
|
-
model?: string;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
438
|
interface RepairSpan {
|
|
417
439
|
id: string;
|
|
418
440
|
text: string;
|
|
@@ -2360,4 +2382,4 @@ declare namespace index {
|
|
|
2360
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 };
|
|
2361
2383
|
}
|
|
2362
2384
|
|
|
2363
|
-
export { type
|
|
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-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
export {
|
|
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-
|
|
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.68.0
|
|
14
|
+
var version = "0.68.0";
|
|
15
15
|
|
|
16
16
|
interface DependencyErrorInit {
|
|
17
17
|
dependency: MuxAiErrorDependency;
|
|
@@ -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
|
|
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
|
|
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"];
|