@mux/ai 0.45.0 → 0.47.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-D6VGaoPm.d.ts → index-DAuzEXly.d.ts} +11 -11
- package/dist/{index-BD4acrwt.d.ts → index-DxAt9Jq8.d.ts} +41 -25
- package/dist/index.d.ts +6 -6
- package/dist/index.js +109 -85
- package/dist/index.js.map +1 -1
- package/dist/primitives/index.d.ts +3 -3
- package/dist/primitives/index.js +55 -66
- package/dist/primitives/index.js.map +1 -1
- package/dist/{shots-B7G0IIF1.d.ts → shots-BwpjZDpr.d.ts} +3 -3
- package/dist/workflows/index.d.ts +3 -3
- package/dist/workflows/index.js +102 -78
- package/dist/workflows/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -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-
|
|
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-BwpjZDpr.js';
|
|
2
2
|
|
|
3
3
|
interface HeatmapOptions {
|
|
4
4
|
/** Time window for results, e.g., '7:days' (default: '7:days') */
|
|
@@ -10,38 +10,38 @@ interface HeatmapResponse {
|
|
|
10
10
|
assetId?: string;
|
|
11
11
|
videoId?: string;
|
|
12
12
|
playbackId?: string;
|
|
13
|
-
/**
|
|
13
|
+
/** Engagement values across the video timeline, one per equal slice (currently 100) */
|
|
14
14
|
heatmap: number[];
|
|
15
15
|
timeframe: [number, number];
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Fetches engagement heatmap for a Mux asset.
|
|
19
|
-
* Returns
|
|
20
|
-
* that
|
|
19
|
+
* Returns an array where each value represents how many times
|
|
20
|
+
* that slice of the video was watched.
|
|
21
21
|
*
|
|
22
22
|
* @param assetId - The Mux asset ID
|
|
23
23
|
* @param options - Heatmap query options
|
|
24
|
-
* @returns Heatmap data with
|
|
24
|
+
* @returns Heatmap data with per-bucket engagement values
|
|
25
25
|
*/
|
|
26
26
|
declare function getHeatmapForAsset(assetId: string, options?: HeatmapOptions): Promise<HeatmapResponse>;
|
|
27
27
|
/**
|
|
28
28
|
* Fetches engagement heatmap for a Mux video ID.
|
|
29
|
-
* Returns
|
|
30
|
-
* that
|
|
29
|
+
* Returns an array where each value represents how many times
|
|
30
|
+
* that slice of the video was watched.
|
|
31
31
|
*
|
|
32
32
|
* @param videoId - The Mux video ID
|
|
33
33
|
* @param options - Heatmap query options
|
|
34
|
-
* @returns Heatmap data with
|
|
34
|
+
* @returns Heatmap data with per-bucket engagement values
|
|
35
35
|
*/
|
|
36
36
|
declare function getHeatmapForVideo(videoId: string, options?: HeatmapOptions): Promise<HeatmapResponse>;
|
|
37
37
|
/**
|
|
38
38
|
* Fetches engagement heatmap for a Mux playback ID.
|
|
39
|
-
* Returns
|
|
40
|
-
* that
|
|
39
|
+
* Returns an array where each value represents how many times
|
|
40
|
+
* that slice of the video was watched.
|
|
41
41
|
*
|
|
42
42
|
* @param playbackId - The Mux playback ID
|
|
43
43
|
* @param options - Heatmap query options
|
|
44
|
-
* @returns Heatmap data with
|
|
44
|
+
* @returns Heatmap data with per-bucket engagement values
|
|
45
45
|
*/
|
|
46
46
|
declare function getHeatmapForPlaybackId(playbackId: string, options?: HeatmapOptions): Promise<HeatmapResponse>;
|
|
47
47
|
|
|
@@ -3,7 +3,7 @@ import { S as SafetyReport, e as PromptOverrides, h as SceneContextItemV1, D as
|
|
|
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-
|
|
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-BwpjZDpr.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Language Code Conversion Utilities
|
|
@@ -180,6 +180,15 @@ declare function getLanguageName(code: string): string | undefined;
|
|
|
180
180
|
* Audio tracks are never Mux-generated, so for audio this behaves like `fail`.
|
|
181
181
|
*/
|
|
182
182
|
type ReplaceExistingTracksPolicy = "fail" | "replace_all" | "replace_generated";
|
|
183
|
+
/**
|
|
184
|
+
* How a workflow that edits an existing track treats that source track.
|
|
185
|
+
*
|
|
186
|
+
* - `replace`: delete the source and create the new track in its place. No other track is deleted.
|
|
187
|
+
* - `fail`: delete nothing; the new track is added alongside the source and must have a different name.
|
|
188
|
+
*
|
|
189
|
+
* Only name collisions count: the new track is always in the source's language.
|
|
190
|
+
*/
|
|
191
|
+
type SourceTrackReplacementPolicy = "replace" | "fail";
|
|
183
192
|
/** Mux track types that share a name-uniqueness group among themselves. */
|
|
184
193
|
type ReplaceableTrackType = "text" | "audio";
|
|
185
194
|
/** The `(type, language_code, name)` a workflow is about to write to Mux. `type` defaults to `text`. */
|
|
@@ -255,34 +264,35 @@ declare function findNameCollisionTextTracks(asset: MuxAsset, target: TextTrackT
|
|
|
255
264
|
* Decides which existing tracks stand in the way of `target` and what `policy`
|
|
256
265
|
* says to do about them. Pure: pass the freshest asset you have.
|
|
257
266
|
*
|
|
258
|
-
* `keepTrackIds` marks tracks that are allowed to coexist with the new one and
|
|
259
|
-
* are never treated as conflicts. edit-captions uses it under `fail` to keep
|
|
260
|
-
* the source track it is editing.
|
|
261
|
-
*
|
|
262
267
|
* A conflicting primary audio track always blocks: Mux refuses to delete it and
|
|
263
268
|
* it is the customer's original audio.
|
|
264
269
|
*/
|
|
265
|
-
declare function planTextTrackReplacement(asset: MuxAsset, target: TextTrackTarget, policy: ReplaceExistingTracksPolicy
|
|
266
|
-
|
|
267
|
-
|
|
270
|
+
declare function planTextTrackReplacement(asset: MuxAsset, target: TextTrackTarget, policy: ReplaceExistingTracksPolicy): TextTrackReplacementPlan;
|
|
271
|
+
/** Plans an edit of `sourceTrackId` into `target`: deletes at most the source, and blocks if any other track has the target's name. */
|
|
272
|
+
declare function planSourceTrackReplacement(asset: MuxAsset, sourceTrackId: string, target: TextTrackTarget, policy: SourceTrackReplacementPolicy): TextTrackReplacementPlan;
|
|
268
273
|
/** True for Mux's `400 invalid_parameters` "Track name 'X' is not unique" rejection. */
|
|
269
274
|
declare function isDuplicateTrackNameError(error: unknown): boolean;
|
|
270
275
|
/** Default audit tag written to `passthrough` on tracks created by `@mux/ai`. */
|
|
271
276
|
declare function buildMuxAiTrackPassthrough(workflow: string): string;
|
|
272
277
|
declare function validateTrackPassthrough(passthrough: string | undefined): string | undefined;
|
|
273
|
-
interface
|
|
278
|
+
interface CreateTrackWriteInput {
|
|
274
279
|
assetId: string;
|
|
275
280
|
target: TextTrackTarget;
|
|
276
|
-
policy: ReplaceExistingTracksPolicy;
|
|
277
281
|
presignedUrl: string;
|
|
278
282
|
/** Text tracks only. */
|
|
279
283
|
closedCaptions?: boolean;
|
|
280
284
|
passthrough?: string;
|
|
281
|
-
/** Tracks that may coexist with the new one; see `planTextTrackReplacement`. */
|
|
282
|
-
keepTrackIds?: string[];
|
|
283
285
|
credentials?: WorkflowCredentialsInput;
|
|
284
286
|
}
|
|
287
|
+
interface ReplaceAndCreateTextTrackInput extends CreateTrackWriteInput {
|
|
288
|
+
policy: ReplaceExistingTracksPolicy;
|
|
289
|
+
}
|
|
285
290
|
type ReplaceAndCreateTrackInput = ReplaceAndCreateTextTrackInput;
|
|
291
|
+
interface ReplaceSourceTrackInput extends CreateTrackWriteInput {
|
|
292
|
+
/** The track being edited; see `planSourceTrackReplacement`. */
|
|
293
|
+
sourceTrackId: string;
|
|
294
|
+
policy: SourceTrackReplacementPolicy;
|
|
295
|
+
}
|
|
286
296
|
/**
|
|
287
297
|
* Fetches the asset fresh, deletes whatever `policy` allows, then creates the
|
|
288
298
|
* new track of `target.type` (default `text`). Known outcomes come back as
|
|
@@ -299,6 +309,12 @@ type ReplaceAndCreateTrackInput = ReplaceAndCreateTextTrackInput;
|
|
|
299
309
|
* the create.
|
|
300
310
|
*/
|
|
301
311
|
declare function replaceAndCreateTrack(input: ReplaceAndCreateTextTrackInput): Promise<ReplaceAndCreateTextTrackResult>;
|
|
312
|
+
/**
|
|
313
|
+
* `replaceAndCreateTrack` for a workflow that edits an existing text track: plans
|
|
314
|
+
* with `planSourceTrackReplacement`, so at most the source itself is deleted.
|
|
315
|
+
* Same outcomes and retry behaviour.
|
|
316
|
+
*/
|
|
317
|
+
declare function replaceSourceTrack(input: ReplaceSourceTrackInput): Promise<ReplaceAndCreateTextTrackResult>;
|
|
302
318
|
/** `replaceAndCreateTrack` pinned to text tracks. */
|
|
303
319
|
declare function replaceAndCreateTextTrack(input: ReplaceAndCreateTextTrackInput): Promise<ReplaceAndCreateTextTrackResult>;
|
|
304
320
|
|
|
@@ -490,17 +506,17 @@ declare const questionAnswerSchema: z.ZodObject<{
|
|
|
490
506
|
reasoning: z.ZodString;
|
|
491
507
|
skipped: z.ZodBoolean;
|
|
492
508
|
}, "strip", z.ZodTypeAny, {
|
|
509
|
+
skipped: boolean;
|
|
493
510
|
question: string;
|
|
494
511
|
answer: string | null;
|
|
495
512
|
confidence: number;
|
|
496
513
|
reasoning: string;
|
|
497
|
-
skipped: boolean;
|
|
498
514
|
}, {
|
|
515
|
+
skipped: boolean;
|
|
499
516
|
question: string;
|
|
500
517
|
answer: string | null;
|
|
501
518
|
confidence: number;
|
|
502
519
|
reasoning: string;
|
|
503
|
-
skipped: boolean;
|
|
504
520
|
}>;
|
|
505
521
|
type QuestionAnswerType = z.infer<typeof questionAnswerSchema>;
|
|
506
522
|
/**
|
|
@@ -517,33 +533,33 @@ declare function createAskQuestionsSchema(answerSchema: z.ZodType<string>): z.Zo
|
|
|
517
533
|
} & {
|
|
518
534
|
answer: z.ZodType<string, z.ZodTypeDef, string>;
|
|
519
535
|
}, "strip", z.ZodTypeAny, {
|
|
536
|
+
skipped: boolean;
|
|
520
537
|
question: string;
|
|
521
538
|
answer: string;
|
|
522
539
|
confidence: number;
|
|
523
540
|
reasoning: string;
|
|
524
|
-
skipped: boolean;
|
|
525
541
|
}, {
|
|
542
|
+
skipped: boolean;
|
|
526
543
|
question: string;
|
|
527
544
|
answer: string;
|
|
528
545
|
confidence: number;
|
|
529
546
|
reasoning: string;
|
|
530
|
-
skipped: boolean;
|
|
531
547
|
}>, "many">;
|
|
532
548
|
}, "strip", z.ZodTypeAny, {
|
|
533
549
|
answers: {
|
|
550
|
+
skipped: boolean;
|
|
534
551
|
question: string;
|
|
535
552
|
answer: string;
|
|
536
553
|
confidence: number;
|
|
537
554
|
reasoning: string;
|
|
538
|
-
skipped: boolean;
|
|
539
555
|
}[];
|
|
540
556
|
}, {
|
|
541
557
|
answers: {
|
|
558
|
+
skipped: boolean;
|
|
542
559
|
question: string;
|
|
543
560
|
answer: string;
|
|
544
561
|
confidence: number;
|
|
545
562
|
reasoning: string;
|
|
546
|
-
skipped: boolean;
|
|
547
563
|
}[];
|
|
548
564
|
}>;
|
|
549
565
|
type AskQuestionsSchema = ReturnType<typeof createAskQuestionsSchema>;
|
|
@@ -838,12 +854,12 @@ interface EditCaptionsOptions<P extends SupportedProvider = SupportedProvider> e
|
|
|
838
854
|
/** Replacements applied only to bracketed speaker labels at the start of cues. */
|
|
839
855
|
speakerReplacements?: SpeakerReplacement[];
|
|
840
856
|
/**
|
|
841
|
-
* What to do with the source track
|
|
842
|
-
*
|
|
843
|
-
* `"
|
|
844
|
-
* `
|
|
857
|
+
* What to do with the source track. Defaults to `"replace"`: the source is
|
|
858
|
+
* deleted and the edited track takes its place; no other track is touched.
|
|
859
|
+
* `"fail"` deletes nothing and adds the edited track alongside the source,
|
|
860
|
+
* so it requires a `trackName` different from the source's.
|
|
845
861
|
*/
|
|
846
|
-
replaceExistingTracks?:
|
|
862
|
+
replaceExistingTracks?: SourceTrackReplacementPolicy;
|
|
847
863
|
/** Name for the edited Mux text track. Defaults to the source track's name. */
|
|
848
864
|
trackName?: string;
|
|
849
865
|
/**
|
|
@@ -903,7 +919,7 @@ interface EditCaptionsResult {
|
|
|
903
919
|
replacements: ReplacementRecord[];
|
|
904
920
|
};
|
|
905
921
|
uploadedTrackId?: string;
|
|
906
|
-
/**
|
|
922
|
+
/** Tracks deleted before the edited track was created: the source track, when it was replaced. */
|
|
907
923
|
replacedTracks?: TextTrackSummary[];
|
|
908
924
|
presignedUrl?: string;
|
|
909
925
|
usage?: TokenUsage;
|
|
@@ -1962,4 +1978,4 @@ declare namespace index {
|
|
|
1962
1978
|
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 };
|
|
1963
1979
|
}
|
|
1964
1980
|
|
|
1965
|
-
export { type
|
|
1981
|
+
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 SummaryAndTagsResult 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 GenerateTextKeyedItem as aA, type GenerateTextLengthLimit as aB, type GenerateTextOptions as aC, type GenerateTextResult as aD, type GenerateTextVariant as aE, type GenerateTextVoice as aF, type GeneratedTextArtifact as aG, type GeneratedTextVariant as aH, HIVE_SEXUAL_CATEGORIES as aI, HIVE_VIOLENCE_CATEGORIES as aJ, type HiveModerationOutput as aK, type HiveModerationSource as aL, type ModerationOptions as aM, type ModerationProvider as aN, type ModerationResult as aO, type MomentInsight as aP, type OverallInsight as aQ, type ProfanityDetectionPayload as aR, type Question as aS, type QuestionAnswer as aT, type QuestionAnswerType as aU, type ReplacementRecord as aV, type SpeakerReplacement as aW, type StaticRenditionCleanupOutcome as aX, type SummarizationOptions as aY, type SummarizationPromptOverrides as aZ, type SummarizationPromptSections as a_, type EditCaptionsOptions as aa, type EditCaptionsResult as ab, type EmbeddingsOptions as ac, type EmbeddingsResult as ad, type EngagementInsightsOptions as ae, type EngagementInsightsResult as af, GENERATE_TEXT_CALLS_TO_ACTION as ag, GENERATE_TEXT_CHANNELS as ah, GENERATE_TEXT_CHANNEL_CEILINGS as ai, GENERATE_TEXT_FORMATS as aj, GENERATE_TEXT_LENGTH_BOUNDS as ak, GENERATE_TEXT_MAX_ARTIFACTS as al, GENERATE_TEXT_MAX_AUDIENCE_CHARS as am, GENERATE_TEXT_MAX_BRAND_TERMS as an, GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS as ao, GENERATE_TEXT_MAX_BRAND_TERM_CHARS as ap, GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS as aq, GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS as ar, GENERATE_TEXT_MAX_SHOT_FRAMES as as, GENERATE_TEXT_MAX_VARIANTS as at, GENERATE_TEXT_VOICES as au, GOOGLE_VISION_LIKELIHOOD_TO_SCORE as av, type GenerateTextArtifact as aw, type GenerateTextCallToAction as ax, type GenerateTextChannel as ay, type GenerateTextFormat as az, type ReplaceAndCreateTextTrackResult as b, type SummaryType as b0, type ThumbnailModerationScore as b1, type TranslationChunkingOptions as b2, type TranslationOptions as b3, type TranslationPayload as b4, type TranslationResult as b5, aggregateTokenUsage as b6, applyOverrideLists as b7, applyReplacements as b8, applySpeakerReplacements as b9, selectGenerateTextShotFrames as bA, shouldSplitChunkTranslationError as bB, summarySchema as bC, transformCueText as bD, translateAudio as bE, translateCaptions as bF, translationSchema as bG, validateNeverTranslateTerms as bH, verifyNeverTranslateTerms as bI, askQuestions as ba, buildReplacementRegex as bb, burnedInCaptionsSchema as bc, censorVttContent as bd, chapterSchema as be, chaptersSchema as bf, createReplacer as bg, editCaptions as bh, extractTranscriptSegmentsForHotspots as bi, findGenerateTextLengthViolation as bj, generateChapters as bk, generateEmbeddings as bl, generateEngagementInsights as bm, generateText as bn, generateVideoEmbeddings as bo, getModerationScores as bp, getSummaryAndTags as bq, hasBurnedInCaptions as br, mapShotsToHotspots as bs, measureGenerateTextLength as bt, normalizeTranslatedVtt as bu, profanityDetectionSchema as bv, questionAnswerSchema as bw, resolveGenerateTextLengthLimit as bx, resolveGenerateTextLengthLimits as by, resolveGenerateTextOptions as bz, type ReplaceAndCreateTrackInput as c, 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,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,
|
|
2
|
-
import { W as WorkflowCredentials, S as StoragePutObjectInput, a as StoragePresignGetObjectInput } from './shots-
|
|
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-
|
|
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-DxAt9Jq8.js';
|
|
2
|
+
import { W as WorkflowCredentials, S as StoragePutObjectInput, a as StoragePresignGetObjectInput } from './shots-BwpjZDpr.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-BwpjZDpr.js';
|
|
4
4
|
import { WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '@workflow/serde';
|
|
5
|
-
export { i as primitives } from './index-
|
|
5
|
+
export { i as primitives } from './index-DAuzEXly.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import './summarization-BFmhXeAu.js';
|
|
8
8
|
import '@ai-sdk/anthropic';
|
|
9
9
|
import '@ai-sdk/google';
|
|
10
10
|
import '@ai-sdk/openai';
|
|
11
|
-
import '@mux/
|
|
11
|
+
import '@mux/ts';
|
|
12
12
|
|
|
13
|
-
var version = "0.
|
|
13
|
+
var version = "0.47.0";
|
|
14
14
|
|
|
15
15
|
type MuxAiErrorType = "validation_error" | "processing_error" | "timeout_error" | "content_policy_error";
|
|
16
16
|
/**
|