@mux/ai 0.5.2 → 0.6.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 +1 -0
- package/dist/{index-DgCfxP4T.d.ts → index-B6ro59tn.d.ts} +167 -23
- package/dist/{index-2oUwgWsE.d.ts → index-DAlX4SNJ.d.ts} +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +677 -28303
- package/dist/index.js.map +1 -1
- package/dist/primitives/index.d.ts +2 -2
- package/dist/primitives/index.js +72 -28068
- package/dist/primitives/index.js.map +1 -1
- package/dist/{types-BhVuLeSp.d.ts → types-CqjLMB84.d.ts} +14 -1
- package/dist/workflows/index.d.ts +2 -2
- package/dist/workflows/index.js +787 -28429
- package/dist/workflows/index.js.map +1 -1
- package/package.json +4 -1
|
@@ -175,6 +175,17 @@ interface VideoEmbeddingsResult {
|
|
|
175
175
|
embeddingDimensions: number;
|
|
176
176
|
generatedAt: string;
|
|
177
177
|
};
|
|
178
|
+
/** Workflow usage metadata (asset duration, thumbnails, etc.). */
|
|
179
|
+
usage?: TokenUsage;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Metadata attached to usage objects for workflow context.
|
|
183
|
+
*/
|
|
184
|
+
interface UsageMetadata {
|
|
185
|
+
/** Total asset duration in seconds. */
|
|
186
|
+
assetDurationSeconds?: number;
|
|
187
|
+
/** Number of thumbnails sampled for workflows that use thumbnails. */
|
|
188
|
+
thumbnailCount?: number;
|
|
178
189
|
}
|
|
179
190
|
/**
|
|
180
191
|
* Token usage breakdown returned by AI SDK providers.
|
|
@@ -191,6 +202,8 @@ interface TokenUsage {
|
|
|
191
202
|
reasoningTokens?: number;
|
|
192
203
|
/** Input tokens served from cache (reduces cost). */
|
|
193
204
|
cachedInputTokens?: number;
|
|
205
|
+
/** Workflow metadata (asset duration, thumbnails, etc.). */
|
|
206
|
+
metadata?: UsageMetadata;
|
|
194
207
|
}
|
|
195
208
|
|
|
196
|
-
export { type AssetTextTrack as A, type ChunkingStrategy as C, type Encrypted as E, type ImageSubmissionMode as I, type MuxAIOptions as M, type PlaybackPolicy as P, type ToneType as T, type VTTChunkingConfig as V, type WorkflowCredentials as W, type EncryptedPayload as a, type WorkflowCredentialsInput as b, type MuxAsset as c, decryptFromWorkflow as d, encryptForWorkflow as e, type PlaybackAsset as f, type TokenChunkingConfig as g, type TextChunk as h, type ChunkEmbedding as i, type VideoEmbeddingsResult as j, type TokenUsage as k };
|
|
209
|
+
export { type AssetTextTrack as A, type ChunkingStrategy as C, type Encrypted as E, type ImageSubmissionMode as I, type MuxAIOptions as M, type PlaybackPolicy as P, type ToneType as T, type UsageMetadata as U, type VTTChunkingConfig as V, type WorkflowCredentials as W, type EncryptedPayload as a, type WorkflowCredentialsInput as b, type MuxAsset as c, decryptFromWorkflow as d, encryptForWorkflow as e, type PlaybackAsset as f, type TokenChunkingConfig as g, type TextChunk as h, type ChunkEmbedding as i, type VideoEmbeddingsResult as j, type TokenUsage as k };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { A as AskQuestionsOptions, b as AskQuestionsResult, d as AskQuestionsType, U as AudioTranslationOptions, R as AudioTranslationResult, k as BurnedInCaptionsAnalysis, h as BurnedInCaptionsOptions, g as BurnedInCaptionsPromptOverrides, f as BurnedInCaptionsPromptSections, B as BurnedInCaptionsResult, C as Chapter, u as ChapterSystemPromptSections, t as ChaptersOptions, s as ChaptersPromptOverrides, r as ChaptersPromptSections, p as ChaptersResult, o as ChaptersType, E as EmbeddingsOptions, w as EmbeddingsResult, D as HiveModerationOutput, H as HiveModerationSource, F as ModerationOptions, z as ModerationProvider, M as ModerationResult, Q as Question, a as QuestionAnswer, c as QuestionAnswerType, S as SUMMARY_KEYWORD_LIMIT, O as SummarizationOptions, N as SummarizationPromptOverrides, L as SummarizationPromptSections, K as SummaryAndTagsResult, J as SummaryType, T as ThumbnailModerationScore, X as TranslationOptions, Z as TranslationPayload, W as TranslationResult, e as askQuestions, j as burnedInCaptionsSchema, m as chapterSchema, n as chaptersSchema, v as generateChapters, x as generateEmbeddings, y as generateVideoEmbeddings, G as getModerationScores, P as getSummaryAndTags, l as hasBurnedInCaptions, q as questionAnswerSchema, I as summarySchema, V as translateAudio, _ as translateCaptions, Y as translationSchema } from '../index-B6ro59tn.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import '@ai-sdk/anthropic';
|
|
4
4
|
import '@ai-sdk/google';
|
|
5
5
|
import '@ai-sdk/openai';
|
|
6
|
-
import '../types-
|
|
6
|
+
import '../types-CqjLMB84.js';
|
|
7
7
|
import '@mux/mux-node';
|