@mux/ai 0.41.0 → 0.43.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/README.md CHANGED
@@ -74,6 +74,7 @@ Workflows are high-level functions that handle complete media AI tasks end-to-en
74
74
  | [`askQuestions`](./docs/WORKFLOWS.md#ask-questions) | Answer yes/no questions about asset content | OpenAI, Anthropic, Google, Baseten, OpenAI-compatible | Yes |
75
75
  | [`generateChapters`](./docs/WORKFLOWS.md#chapter-generation) | Create chapter markers from transcripts | OpenAI, Anthropic, Google, Baseten, OpenAI-compatible | Yes |
76
76
  | [`generateEmbeddings`](./docs/WORKFLOWS.md#embeddings) | Generate vector embeddings for semantic search | OpenAI, Google, Baseten, OpenAI-compatible | Yes |
77
+ | [`generateText`](./docs/WORKFLOWS.md#text-generation) | Write source-grounded posts and articles from a video or audio asset | OpenAI, Anthropic, Google, Baseten, OpenAI-compatible | Yes |
77
78
  | [`translateCaptions`](./docs/WORKFLOWS.md#caption-translation) | Translate captions into other languages | OpenAI, Anthropic, Google, Baseten, OpenAI-compatible | Yes |
78
79
  | [`editCaptions`](./docs/WORKFLOWS.md#caption-editing) | Edit captions: censor profanity and/or apply static replacements | OpenAI, Anthropic, Google, Baseten, OpenAI-compatible | Yes |
79
80
  | [`translateAudio`](./docs/WORKFLOWS.md#audio-dubbing) | Create AI-dubbed audio tracks | ElevenLabs | Yes |
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { SafetyReport, PromptOverrides, SceneContextItemV1 } from './prompts/index.js';
2
3
  import { createAnthropic } from '@ai-sdk/anthropic';
3
4
  import { createGoogleGenerativeAI } from '@ai-sdk/google';
4
5
  import { createOpenAI } from '@ai-sdk/openai';
@@ -314,56 +315,6 @@ interface ImageDownloadOptions {
314
315
  exponentialBackoff?: boolean;
315
316
  }
316
317
 
317
- /**
318
- * Which detector fired on a leak, or `null` when the text is clean.
319
- *
320
- * - `canary` — the system-prompt canary token appeared in the output.
321
- * Near-zero false-positive rate; treat as a confirmed leak.
322
- * - `prompt_tag` — an XML-like tag taken from our prompt structure
323
- * appeared in the output. Low false-positive rate.
324
- * - `encoded_blob` — a long run of base64- or hex-shaped characters
325
- * appeared in a field expected to hold prose. Heuristic; some false
326
- * positives on hashes or tokens in tech-content transcripts.
327
- * - `unexpected_key` — the model emitted a JSON field not declared in
328
- * the schema (see {@link detectUnexpectedKeys}). Stripped silently
329
- * by zod's default `.strip()` mode; this signal surfaces the
330
- * smuggling attempt rather than letting it go unseen.
331
- */
332
- type LeakReason = "canary" | "prompt_tag" | "encoded_blob" | "unexpected_key" | null;
333
- /**
334
- * Per-field record of a detected leak. Collected across every scrub
335
- * performed inside a single workflow invocation and returned to the
336
- * caller in the workflow result's `safety` field.
337
- */
338
- interface ScrubbedFieldReport {
339
- /**
340
- * Identifier for the field that leaked. Format is workflow-specific
341
- * (e.g. "reasoning[0]", "moment_insight[2]", "description"). Intended
342
- * for debugging and observability; do not parse programmatically.
343
- */
344
- field: string;
345
- /** Which detector fired — see {@link LeakReason}. */
346
- reason: Exclude<LeakReason, null>;
347
- }
348
- /**
349
- * Aggregate safety report returned from workflows that perform
350
- * output-side scrubbing.
351
- *
352
- * Operators can use this to alert on suspected prompt-injection traffic
353
- * without inspecting log warnings. Shape is stable across workflows so a
354
- * single observer can consume it uniformly.
355
- */
356
- interface SafetyReport {
357
- /** `true` when at least one field was suppressed by the scrubber. */
358
- leaksDetected: boolean;
359
- /**
360
- * One entry per suppressed field. Empty (but present) when no leaks
361
- * were detected. Iteration order matches the order scrubs ran, so
362
- * callers can correlate entries with workflow structure if they wish.
363
- */
364
- scrubbedFields: ScrubbedFieldReport[];
365
- }
366
-
367
318
  type SupportedProvider = "openai" | "anthropic" | "google" | "baseten" | "openai-compatible";
368
319
  type SupportedEmbeddingProvider = "openai" | "google" | "baseten" | "openai-compatible";
369
320
  type OpenAIModelId = Parameters<ReturnType<typeof createOpenAI>["chat"]>[0];
@@ -629,28 +580,6 @@ type AskQuestionsType = z.infer<AskQuestionsSchema>;
629
580
  */
630
581
  declare function askQuestions(assetId: string, questions: Question[], options?: AskQuestionsOptions): Promise<AskQuestionsResult>;
631
582
 
632
- /**
633
- * A single section of a prompt, rendered as an XML-like tag.
634
- */
635
- interface PromptSection {
636
- /** The XML tag name for this section */
637
- tag: string;
638
- /** The content inside the tag */
639
- content: string;
640
- /** Optional attributes to add to the tag (e.g., { format: "plain text" }) */
641
- attributes?: Record<string, string>;
642
- }
643
- /**
644
- * Configuration for building a prompt section.
645
- * Can be a full PromptSection object, just a string (content only), or undefined to use default.
646
- */
647
- type SectionOverride = string | PromptSection | undefined;
648
- /**
649
- * User-provided overrides for prompt sections.
650
- * Each key can override the corresponding section's content or full definition.
651
- */
652
- type PromptOverrides<TSections extends string> = Partial<Record<TSections, SectionOverride>>;
653
-
654
583
  /** Structured payload returned from `hasBurnedInCaptions`. */
655
584
  interface BurnedInCaptionsResult {
656
585
  assetId: string;
@@ -859,6 +788,11 @@ interface ChaptersOptions extends ScopedMuxAIOptions {
859
788
  * Falls back to unconstrained (LLM decides) if no language metadata is available.
860
789
  */
861
790
  outputLanguageCode?: string;
791
+ /**
792
+ * Ordered scene context used to align chapter starts with scene boundaries.
793
+ * When omitted or empty, chapter generation retains its existing behavior.
794
+ */
795
+ sceneContext?: readonly SceneContextItemV1[];
862
796
  }
863
797
  /**
864
798
  * Sections of the chaptering system prompt that can be overridden.
@@ -1190,6 +1124,183 @@ declare function mapShotsToHotspots(shots: Shot[], hotspots: Hotspot[]): string[
1190
1124
  */
1191
1125
  declare function generateEngagementInsights(assetId: string, options?: EngagementInsightsOptions): Promise<EngagementInsightsResult>;
1192
1126
 
1127
+ /** A workflow scope with both asset-relative boundaries resolved. */
1128
+ interface ResolvedWorkflowScope {
1129
+ /** Inclusive start offset in seconds. */
1130
+ startTime: number;
1131
+ /** Exclusive end offset in seconds. */
1132
+ endTime: number;
1133
+ }
1134
+
1135
+ declare const GENERATE_TEXT_MAX_VARIANTS = 5;
1136
+ declare const GENERATE_TEXT_MAX_ARTIFACTS = 5;
1137
+ declare const GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS = 500;
1138
+ declare const GENERATE_TEXT_MAX_AUDIENCE_CHARS = 160;
1139
+ declare const GENERATE_TEXT_MAX_BRAND_TERMS = 10;
1140
+ declare const GENERATE_TEXT_MAX_BRAND_TERM_CHARS = 40;
1141
+ declare const GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS = 240;
1142
+ declare const GENERATE_TEXT_MAX_SHOT_FRAMES = 24;
1143
+ declare const GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS = 5;
1144
+ declare const GENERATE_TEXT_VOICES: readonly ["conversational", "editorial", "playful", "professional"];
1145
+ declare const GENERATE_TEXT_CALLS_TO_ACTION: readonly ["none", "soft", "direct"];
1146
+ declare const GENERATE_TEXT_CHANNELS: readonly ["generic", "x", "linkedin", "facebook", "instagram", "tiktok", "youtube"];
1147
+ declare const GENERATE_TEXT_FORMATS: readonly ["plain", "markdown"];
1148
+ /** Inclusive bounds accepted for `maxLength.value` in each unit. */
1149
+ declare const GENERATE_TEXT_LENGTH_BOUNDS: {
1150
+ readonly characters: {
1151
+ readonly min: 10;
1152
+ readonly max: 20000;
1153
+ };
1154
+ readonly words: {
1155
+ readonly min: 5;
1156
+ readonly max: 3000;
1157
+ };
1158
+ };
1159
+ /** Writing voice applied to every generated artifact. */
1160
+ type GenerateTextVoice = (typeof GENERATE_TEXT_VOICES)[number];
1161
+ /** Whether and how generated text should invite the reader to engage further. */
1162
+ type GenerateTextCallToAction = (typeof GENERATE_TEXT_CALLS_TO_ACTION)[number];
1163
+ /** Publishing channel whose conventions and default length guide an artifact. */
1164
+ type GenerateTextChannel = (typeof GENERATE_TEXT_CHANNELS)[number];
1165
+ /** Whether generated text may use Markdown syntax. */
1166
+ type GenerateTextFormat = (typeof GENERATE_TEXT_FORMATS)[number];
1167
+ /** Hard output cap for a generated artifact. */
1168
+ interface GenerateTextLengthLimit {
1169
+ unit: "characters" | "words";
1170
+ value: number;
1171
+ }
1172
+ /**
1173
+ * Channel ceilings that apply on top of any requested cap. An `x` post is
1174
+ * never allowed past 280 characters even when the caller capped it in words.
1175
+ */
1176
+ declare const GENERATE_TEXT_CHANNEL_CEILINGS: Partial<Record<GenerateTextChannel, GenerateTextLengthLimit>>;
1177
+ /** Shared shape of variants and artifacts. */
1178
+ interface GenerateTextKeyedItem {
1179
+ /** Lowercase snake_case identifier used to correlate the returned item. */
1180
+ key: string;
1181
+ /** Optional bounded guidance specific to this item. */
1182
+ instructions?: string;
1183
+ }
1184
+ /**
1185
+ * A named version of the complete artifact set. The key is an identifier
1186
+ * only; omit `instructions` to request an independent take on the same brief.
1187
+ */
1188
+ type GenerateTextVariant = GenerateTextKeyedItem;
1189
+ /** One deliverable, such as a social post, a blog post, or a newsletter entry. */
1190
+ interface GenerateTextArtifact extends GenerateTextKeyedItem {
1191
+ /** Publishing channel whose conventions and default cap guide the result (default: "generic"). */
1192
+ channel?: GenerateTextChannel;
1193
+ /** Hard output cap in characters (10-20000) or words (5-3000). Defaults to the channel's cap. */
1194
+ maxLength?: GenerateTextLengthLimit;
1195
+ /** Whether the text may use Markdown syntax (default: "plain"). */
1196
+ format?: GenerateTextFormat;
1197
+ }
1198
+ /** Configuration accepted by `generateText`. */
1199
+ interface GenerateTextOptions extends ScopedMuxAIOptions {
1200
+ /** AI provider to run (defaults to 'openai'). */
1201
+ provider?: SupportedProvider;
1202
+ /** Provider-specific chat model identifier. */
1203
+ model?: ModelIdByProvider[SupportedProvider];
1204
+ /**
1205
+ * What to write: each artifact is one deliverable, such as an X post or a
1206
+ * blog post (1-5, unique keys).
1207
+ */
1208
+ artifacts: GenerateTextArtifact[];
1209
+ /**
1210
+ * How many takes to write. Every variant produces its own copy of the full
1211
+ * artifact list, so 2 variants × 3 artifacts yields 6 pieces of text
1212
+ * (1-5, unique keys). Defaults to a single variant with the key "default".
1213
+ */
1214
+ variants?: GenerateTextVariant[];
1215
+ /** The intended reader, used as best-effort guidance for framing and vocabulary. */
1216
+ audience?: string;
1217
+ /** Best-effort writing voice for every artifact. */
1218
+ voice?: GenerateTextVoice;
1219
+ /** Best-effort guidance for whether the text should invite the reader to engage further. */
1220
+ callToAction?: GenerateTextCallToAction;
1221
+ /** Brand or domain terms to use exactly when the source supports them (1-10 terms). */
1222
+ brandTerms?: string[];
1223
+ /**
1224
+ * When true, attach a bounded sample of the asset's Mux shot frames as
1225
+ * additional visual evidence. Shots must already be generated; when they
1226
+ * are not ready the workflow continues with the storyboard alone. Video
1227
+ * assets only.
1228
+ */
1229
+ useShots?: boolean;
1230
+ /** BCP 47 language code of the caption track to use. When omitted, prefers English if available. */
1231
+ languageCode?: string;
1232
+ /**
1233
+ * BCP 47 language code for the generated text. When omitted or "auto",
1234
+ * follows the selected transcript track's language when it is reliable.
1235
+ */
1236
+ outputLanguageCode?: string;
1237
+ }
1238
+ interface GeneratedTextArtifact {
1239
+ key: string;
1240
+ /**
1241
+ * The finished text. Empty when the output-safety scrubber suppressed the
1242
+ * artifact; consult `safety.scrubbedFields` on the result.
1243
+ */
1244
+ content: string;
1245
+ }
1246
+ interface GeneratedTextVariant {
1247
+ key: string;
1248
+ /** Artifacts in the order they were requested. */
1249
+ artifacts: GeneratedTextArtifact[];
1250
+ }
1251
+ /** Structured return payload from `generateText`. */
1252
+ interface GenerateTextResult {
1253
+ assetId: string;
1254
+ /** Variants in the order they were requested, each carrying the complete artifact set. */
1255
+ variants: GeneratedTextVariant[];
1256
+ /** Storyboard image URL attached to the brief (undefined for audio-only assets). */
1257
+ storyboardUrl?: string;
1258
+ /** Aggregate token usage across the brief and every artifact generation. */
1259
+ usage?: TokenUsage;
1260
+ /** Output-side scrubbing report. Suppressed artifacts are returned with empty content. */
1261
+ safety?: SafetyReport;
1262
+ }
1263
+ /**
1264
+ * Validates the caller-facing options and fills in defaults. Exported so
1265
+ * callers can fail fast before starting a durable workflow run.
1266
+ */
1267
+ declare function resolveGenerateTextOptions(options: GenerateTextOptions): GenerateTextOptions & {
1268
+ variants: GenerateTextVariant[];
1269
+ };
1270
+ /** Resolves the hard output cap for an artifact, applying channel defaults. */
1271
+ declare function resolveGenerateTextLengthLimit(artifact: GenerateTextArtifact): GenerateTextLengthLimit;
1272
+ /**
1273
+ * Every limit a generated artifact must satisfy: the requested (or default)
1274
+ * cap plus any channel ceiling, deduplicated when the cap already covers it.
1275
+ */
1276
+ declare function resolveGenerateTextLengthLimits(artifact: GenerateTextArtifact): GenerateTextLengthLimit[];
1277
+ /**
1278
+ * Measures text in the unit of a length limit. Characters are code points.
1279
+ * Words use locale-aware segmentation so Markdown syntax is not counted and
1280
+ * scripts without spaces are counted properly, falling back to whitespace
1281
+ * splitting where `Intl.Segmenter` is unavailable.
1282
+ */
1283
+ declare function measureGenerateTextLength(content: string, unit: GenerateTextLengthLimit["unit"]): number;
1284
+ /** The first limit a piece of text violates, if any. */
1285
+ declare function findGenerateTextLengthViolation(content: string, limits: readonly GenerateTextLengthLimit[]): {
1286
+ limit: GenerateTextLengthLimit;
1287
+ actual: number;
1288
+ } | undefined;
1289
+ /**
1290
+ * Picks an evenly distributed sample of shots that overlap the analyzed range.
1291
+ * Shot coverage runs from each shot's start to the next shot's start (or the
1292
+ * asset end), so a shot that begins before the scope but runs into it counts.
1293
+ */
1294
+ declare function selectGenerateTextShotFrames(shots: readonly Shot[], assetDurationSeconds: number, scope?: ResolvedWorkflowScope, maxFrames?: number): Shot[];
1295
+ /**
1296
+ * Writes a set of source-grounded text artifacts from a Mux asset's
1297
+ * transcript, enriched with a scoped storyboard (and optionally
1298
+ * shot frames) for video assets. One shared editorial brief is extracted
1299
+ * first; every variant × artifact combination is then written from that
1300
+ * brief in bounded parallel batches.
1301
+ */
1302
+ declare function generateText(assetId: string, options: GenerateTextOptions): Promise<GenerateTextResult>;
1303
+
1193
1304
  /** Per-thumbnail moderation result returned from `getModerationScores`. */
1194
1305
  interface ThumbnailModerationScore {
1195
1306
  url: string;
@@ -1409,6 +1520,11 @@ interface SummarizationOptions extends ScopedMuxAIOptions {
1409
1520
  imageSubmissionMode?: ImageSubmissionMode;
1410
1521
  /** Fine-tune storyboard downloads when `imageSubmissionMode` === 'base64'. */
1411
1522
  imageDownloadOptions?: ImageDownloadOptions;
1523
+ /**
1524
+ * Ordered, normalized scenes that augment the storyboard and any transcript
1525
+ * with whole-asset progression. Scene context is treated as untrusted evidence.
1526
+ */
1527
+ sceneContext?: readonly SceneContextItemV1[];
1412
1528
  /**
1413
1529
  * Override specific sections of the user prompt.
1414
1530
  * Useful for customizing the AI's output for specific use cases (SEO, social media, etc.)
@@ -1752,7 +1868,34 @@ type index_EmbeddingsOptions = EmbeddingsOptions;
1752
1868
  type index_EmbeddingsResult = EmbeddingsResult;
1753
1869
  type index_EngagementInsightsOptions = EngagementInsightsOptions;
1754
1870
  type index_EngagementInsightsResult = EngagementInsightsResult;
1871
+ declare const index_GENERATE_TEXT_CALLS_TO_ACTION: typeof GENERATE_TEXT_CALLS_TO_ACTION;
1872
+ declare const index_GENERATE_TEXT_CHANNELS: typeof GENERATE_TEXT_CHANNELS;
1873
+ declare const index_GENERATE_TEXT_CHANNEL_CEILINGS: typeof GENERATE_TEXT_CHANNEL_CEILINGS;
1874
+ declare const index_GENERATE_TEXT_FORMATS: typeof GENERATE_TEXT_FORMATS;
1875
+ declare const index_GENERATE_TEXT_LENGTH_BOUNDS: typeof GENERATE_TEXT_LENGTH_BOUNDS;
1876
+ declare const index_GENERATE_TEXT_MAX_ARTIFACTS: typeof GENERATE_TEXT_MAX_ARTIFACTS;
1877
+ declare const index_GENERATE_TEXT_MAX_AUDIENCE_CHARS: typeof GENERATE_TEXT_MAX_AUDIENCE_CHARS;
1878
+ declare const index_GENERATE_TEXT_MAX_BRAND_TERMS: typeof GENERATE_TEXT_MAX_BRAND_TERMS;
1879
+ declare const index_GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS: typeof GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS;
1880
+ declare const index_GENERATE_TEXT_MAX_BRAND_TERM_CHARS: typeof GENERATE_TEXT_MAX_BRAND_TERM_CHARS;
1881
+ declare const index_GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS: typeof GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS;
1882
+ declare const index_GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS: typeof GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS;
1883
+ declare const index_GENERATE_TEXT_MAX_SHOT_FRAMES: typeof GENERATE_TEXT_MAX_SHOT_FRAMES;
1884
+ declare const index_GENERATE_TEXT_MAX_VARIANTS: typeof GENERATE_TEXT_MAX_VARIANTS;
1885
+ declare const index_GENERATE_TEXT_VOICES: typeof GENERATE_TEXT_VOICES;
1755
1886
  declare const index_GOOGLE_VISION_LIKELIHOOD_TO_SCORE: typeof GOOGLE_VISION_LIKELIHOOD_TO_SCORE;
1887
+ type index_GenerateTextArtifact = GenerateTextArtifact;
1888
+ type index_GenerateTextCallToAction = GenerateTextCallToAction;
1889
+ type index_GenerateTextChannel = GenerateTextChannel;
1890
+ type index_GenerateTextFormat = GenerateTextFormat;
1891
+ type index_GenerateTextKeyedItem = GenerateTextKeyedItem;
1892
+ type index_GenerateTextLengthLimit = GenerateTextLengthLimit;
1893
+ type index_GenerateTextOptions = GenerateTextOptions;
1894
+ type index_GenerateTextResult = GenerateTextResult;
1895
+ type index_GenerateTextVariant = GenerateTextVariant;
1896
+ type index_GenerateTextVoice = GenerateTextVoice;
1897
+ type index_GeneratedTextArtifact = GeneratedTextArtifact;
1898
+ type index_GeneratedTextVariant = GeneratedTextVariant;
1756
1899
  declare const index_HIVE_SEXUAL_CATEGORIES: typeof HIVE_SEXUAL_CATEGORIES;
1757
1900
  declare const index_HIVE_VIOLENCE_CATEGORIES: typeof HIVE_VIOLENCE_CATEGORIES;
1758
1901
  type index_HiveModerationOutput = HiveModerationOutput;
@@ -1792,17 +1935,24 @@ declare const index_chaptersSchema: typeof chaptersSchema;
1792
1935
  declare const index_createReplacer: typeof createReplacer;
1793
1936
  declare const index_editCaptions: typeof editCaptions;
1794
1937
  declare const index_extractTranscriptSegmentsForHotspots: typeof extractTranscriptSegmentsForHotspots;
1938
+ declare const index_findGenerateTextLengthViolation: typeof findGenerateTextLengthViolation;
1795
1939
  declare const index_generateChapters: typeof generateChapters;
1796
1940
  declare const index_generateEmbeddings: typeof generateEmbeddings;
1797
1941
  declare const index_generateEngagementInsights: typeof generateEngagementInsights;
1942
+ declare const index_generateText: typeof generateText;
1798
1943
  declare const index_generateVideoEmbeddings: typeof generateVideoEmbeddings;
1799
1944
  declare const index_getModerationScores: typeof getModerationScores;
1800
1945
  declare const index_getSummaryAndTags: typeof getSummaryAndTags;
1801
1946
  declare const index_hasBurnedInCaptions: typeof hasBurnedInCaptions;
1802
1947
  declare const index_mapShotsToHotspots: typeof mapShotsToHotspots;
1948
+ declare const index_measureGenerateTextLength: typeof measureGenerateTextLength;
1803
1949
  declare const index_normalizeTranslatedVtt: typeof normalizeTranslatedVtt;
1804
1950
  declare const index_profanityDetectionSchema: typeof profanityDetectionSchema;
1805
1951
  declare const index_questionAnswerSchema: typeof questionAnswerSchema;
1952
+ declare const index_resolveGenerateTextLengthLimit: typeof resolveGenerateTextLengthLimit;
1953
+ declare const index_resolveGenerateTextLengthLimits: typeof resolveGenerateTextLengthLimits;
1954
+ declare const index_resolveGenerateTextOptions: typeof resolveGenerateTextOptions;
1955
+ declare const index_selectGenerateTextShotFrames: typeof selectGenerateTextShotFrames;
1806
1956
  declare const index_shouldSplitChunkTranslationError: typeof shouldSplitChunkTranslationError;
1807
1957
  declare const index_summarySchema: typeof summarySchema;
1808
1958
  declare const index_transformCueText: typeof transformCueText;
@@ -1812,7 +1962,7 @@ declare const index_translationSchema: typeof translationSchema;
1812
1962
  declare const index_validateNeverTranslateTerms: typeof validateNeverTranslateTerms;
1813
1963
  declare const index_verifyNeverTranslateTerms: typeof verifyNeverTranslateTerms;
1814
1964
  declare namespace index {
1815
- 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_GOOGLE_VISION_LIKELIHOOD_TO_SCORE as GOOGLE_VISION_LIKELIHOOD_TO_SCORE, 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_generateChapters as generateChapters, index_generateEmbeddings as generateEmbeddings, index_generateEngagementInsights as generateEngagementInsights, index_generateVideoEmbeddings as generateVideoEmbeddings, index_getModerationScores as getModerationScores, index_getSummaryAndTags as getSummaryAndTags, index_hasBurnedInCaptions as hasBurnedInCaptions, index_mapShotsToHotspots as mapShotsToHotspots, index_normalizeTranslatedVtt as normalizeTranslatedVtt, index_profanityDetectionSchema as profanityDetectionSchema, index_questionAnswerSchema as questionAnswerSchema, 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 };
1965
+ 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 };
1816
1966
  }
1817
1967
 
1818
- 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, normalizeTranslatedVtt 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 SummaryType as aA, type ThumbnailModerationScore as aB, type TranslationChunkingOptions as aC, type TranslationOptions as aD, type TranslationPayload as aE, type TranslationResult as aF, aggregateTokenUsage as aG, applyOverrideLists as aH, applyReplacements as aI, applySpeakerReplacements as aJ, askQuestions as aK, buildReplacementRegex as aL, burnedInCaptionsSchema as aM, censorVttContent as aN, chapterSchema as aO, chaptersSchema as aP, createReplacer as aQ, editCaptions as aR, extractTranscriptSegmentsForHotspots as aS, generateChapters as aT, generateEmbeddings as aU, generateEngagementInsights as aV, generateVideoEmbeddings as aW, getModerationScores as aX, getSummaryAndTags as aY, hasBurnedInCaptions as aZ, mapShotsToHotspots as a_, type EditCaptionsResult as aa, type EmbeddingsOptions as ab, type EmbeddingsResult as ac, type EngagementInsightsOptions as ad, type EngagementInsightsResult as ae, GOOGLE_VISION_LIKELIHOOD_TO_SCORE as af, HIVE_SEXUAL_CATEGORIES as ag, HIVE_VIOLENCE_CATEGORIES as ah, type HiveModerationOutput as ai, type HiveModerationSource as aj, type ModerationOptions as ak, type ModerationProvider as al, type ModerationResult as am, type MomentInsight as an, type OverallInsight as ao, type ProfanityDetectionPayload as ap, type Question as aq, type QuestionAnswer as ar, type QuestionAnswerType as as, type ReplacementRecord as at, type SpeakerReplacement as au, type StaticRenditionCleanupOutcome as av, type SummarizationOptions as aw, type SummarizationPromptOverrides as ax, type SummarizationPromptSections as ay, type SummaryAndTagsResult as az, type ReplaceAndCreateTextTrackResult as b, profanityDetectionSchema as b0, questionAnswerSchema as b1, shouldSplitChunkTranslationError as b2, summarySchema as b3, transformCueText as b4, translateAudio as b5, translateCaptions as b6, translationSchema as b7, validateNeverTranslateTerms as b8, verifyNeverTranslateTerms as b9, 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 };
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 };
package/dist/index.d.ts CHANGED
@@ -1,15 +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-C3PW73qH.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-BCyjRRuI.js';
2
2
  import { W as WorkflowCredentials, S as StoragePutObjectInput, a as StoragePresignGetObjectInput } from './shots-CUI09Ohe.js';
3
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';
4
4
  import { WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '@workflow/serde';
5
5
  export { i as primitives } from './index-C2Pk7bbF.js';
6
6
  import 'zod';
7
+ import './prompts/index.js';
7
8
  import '@ai-sdk/anthropic';
8
9
  import '@ai-sdk/google';
9
10
  import '@ai-sdk/openai';
10
11
  import '@mux/mux-node';
11
12
 
12
- var version = "0.41.0";
13
+ var version = "0.43.0";
13
14
 
14
15
  type MuxAiErrorType = "validation_error" | "processing_error" | "timeout_error" | "content_policy_error";
15
16
  /**