@mux/ai 0.61.0-canary.95 → 0.62.0-canary.97
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-CnI9D5S0.d.ts → index-BN5yOn9o.d.ts} +39 -0
- package/dist/index.d.ts +20 -3
- package/dist/index.js +282 -81
- package/dist/index.js.map +1 -1
- package/dist/primitives/index.js +23 -4
- package/dist/primitives/index.js.map +1 -1
- package/dist/workflows/index.d.ts +1 -1
- package/dist/workflows/index.js +264 -80
- package/dist/workflows/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -177,6 +177,16 @@ declare const MUX_AI_ERROR_CODES: {
|
|
|
177
177
|
readonly DUBBING_LANGUAGE_UNSUPPORTED: "dubbing_language_unsupported";
|
|
178
178
|
/** The dubbing provider ran the dub and reported it failed. Facts: `providerError`, the provider's display text, when it gave one. */
|
|
179
179
|
readonly DUBBING_FAILED: "dubbing_failed";
|
|
180
|
+
/** The dubbing provider didn't finish the dub within the polling budget. Facts: `dubbingId`, `timeoutSeconds`, `lastStatus`. */
|
|
181
|
+
readonly DUBBING_TIMEOUT: "dubbing_timeout";
|
|
182
|
+
/** The asset has no audio track, so there is no audio to work with. Facts: `assetId`. */
|
|
183
|
+
readonly AUDIO_TRACK_MISSING: "audio_track_missing";
|
|
184
|
+
/** Writing an audio track would replace the asset's primary audio track, which can't be replaced. Facts: `languageCode`, `conflictingTracks`. */
|
|
185
|
+
readonly PRIMARY_AUDIO_TRACK_CONFLICT: "primary_audio_track_conflict";
|
|
186
|
+
/** The asset's static rendition settings changed while waiting for its rendition. A new job uses the new settings. Facts: `assetId`. */
|
|
187
|
+
readonly STATIC_RENDITION_CHANGED: "static_rendition_changed";
|
|
188
|
+
/** Mux didn't finish the static rendition within the polling budget. Facts: `assetId`, `attempts`, `pollIntervalMs`, `lastStatus`. */
|
|
189
|
+
readonly STATIC_RENDITION_TIMEOUT: "static_rendition_timeout";
|
|
180
190
|
};
|
|
181
191
|
type MuxAiErrorCode = typeof MUX_AI_ERROR_CODES[keyof typeof MUX_AI_ERROR_CODES];
|
|
182
192
|
declare const MUX_AI_ERROR_CODE_VALUES: readonly MuxAiErrorCode[];
|
|
@@ -292,6 +302,7 @@ declare const MUX_AI_ERROR_CATALOG: {
|
|
|
292
302
|
readonly source: "upstream";
|
|
293
303
|
readonly dependency: "ai_provider";
|
|
294
304
|
readonly transient: false;
|
|
305
|
+
readonly retryable: true;
|
|
295
306
|
};
|
|
296
307
|
readonly model_output_truncated: {
|
|
297
308
|
readonly type: "processing_error";
|
|
@@ -315,6 +326,34 @@ declare const MUX_AI_ERROR_CATALOG: {
|
|
|
315
326
|
readonly source: "upstream";
|
|
316
327
|
readonly dependency: "ai_provider";
|
|
317
328
|
readonly transient: false;
|
|
329
|
+
readonly retryable: true;
|
|
330
|
+
};
|
|
331
|
+
readonly dubbing_timeout: {
|
|
332
|
+
readonly type: "timeout_error";
|
|
333
|
+
readonly source: "upstream";
|
|
334
|
+
readonly dependency: "ai_provider";
|
|
335
|
+
readonly transient: false;
|
|
336
|
+
readonly retryable: true;
|
|
337
|
+
};
|
|
338
|
+
readonly static_rendition_timeout: {
|
|
339
|
+
readonly type: "timeout_error";
|
|
340
|
+
readonly source: "upstream";
|
|
341
|
+
readonly dependency: "mux_video";
|
|
342
|
+
readonly transient: false;
|
|
343
|
+
readonly retryable: true;
|
|
344
|
+
};
|
|
345
|
+
readonly audio_track_missing: {
|
|
346
|
+
readonly type: "validation_error";
|
|
347
|
+
readonly source: "asset";
|
|
348
|
+
};
|
|
349
|
+
readonly primary_audio_track_conflict: {
|
|
350
|
+
readonly type: "validation_error";
|
|
351
|
+
readonly source: "asset";
|
|
352
|
+
};
|
|
353
|
+
readonly static_rendition_changed: {
|
|
354
|
+
readonly type: "processing_error";
|
|
355
|
+
readonly source: "asset";
|
|
356
|
+
readonly retryable: true;
|
|
318
357
|
};
|
|
319
358
|
};
|
|
320
359
|
interface ModelCallDiagnostics {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MuxAiErrorDependency, a as MuxAiErrorFacts, b as MuxAiErrorSource, c as MuxAiErrorType, d as MuxAiError, e as MuxAiErrorFactValue, f as MuxAiErrorCode, C as ClassifiedError } from './index-
|
|
2
|
-
export { g as ClassifiedErrorInit, h as CodedClassification, E as ErrorCatalogEntry, i as ErrorCauseSummary, I as ISO639_1, j as ISO639_3, L as LanguageCodePair, k as MUX_AI_ERROR_CATALOG, l as MUX_AI_ERROR_CODES, m as MUX_AI_ERROR_CODE_VALUES, n as MUX_AI_ERROR_DEPENDENCIES, o as MUX_AI_ERROR_DEPENDENCY_VALUES, p as MUX_AI_ERROR_SOURCES, q as MUX_AI_ERROR_SOURCE_VALUES, r as MUX_AI_ERROR_TYPES, s as MUX_AI_ERROR_TYPE_VALUES, t as MUX_TRACK_PASSTHROUGH_MAX_CHARS, u as MuxAiErrorInit, R as ReplaceAndCreateTextTrackInput, v as ReplaceAndCreateTextTrackResult, w as ReplaceAndCreateTrackInput, x as ReplaceExistingTracksPolicy, y as ReplaceSourceTrackInput, z as ReplaceableTrackType, S as SerializedClassification, A as SourceAndDependency, B as SourceTrackReplacementPolicy, D as SupportedISO639_1, F as SupportedISO639_3, T as TextTrackReplacementPlan, G as TextTrackSummary, H as TextTrackTarget, J as TrackReplacementBlocked, K as TrackReplacementBlockedReason, N as TrackSummary, O as TrackTarget, P as assertNever, Q as buildMuxAiTrackPassthrough, U as classificationInit, V as errorDetailFact, W as findNameCollisionTextTracks, X as findSameLanguageTextTracks, Y as getLanguageCodePair, Z as getLanguageName, _ as internalError, $ as isDuplicateTrackNameError, a0 as isMuxGeneratedTextTrack, a1 as isTransientStatus, a2 as isUndeterminedLanguageCode, a3 as isValidISO639_1, a4 as isValidISO639_3, a5 as normalizeTrackLanguageCode, a6 as normalizeTrackName, a7 as planSourceTrackReplacement, a8 as planTextTrackReplacement, a9 as replaceAndCreateTextTrack, aa as replaceAndCreateTrack, ab as replaceSourceTrack, ac as restoreClassification, ad as serializeClassification, ae as summarizeTextTrack, af as toISO639_1, ag as toISO639_3, ah as trackReplacementBlockedError, ai as trackTargetFacts, aj as validateTrackPassthrough, ak as workflows, al as wrapError } from './index-
|
|
1
|
+
import { M as MuxAiErrorDependency, a as MuxAiErrorFacts, b as MuxAiErrorSource, c as MuxAiErrorType, d as MuxAiError, e as MuxAiErrorFactValue, f as MuxAiErrorCode, C as ClassifiedError } from './index-BN5yOn9o.js';
|
|
2
|
+
export { g as ClassifiedErrorInit, h as CodedClassification, E as ErrorCatalogEntry, i as ErrorCauseSummary, I as ISO639_1, j as ISO639_3, L as LanguageCodePair, k as MUX_AI_ERROR_CATALOG, l as MUX_AI_ERROR_CODES, m as MUX_AI_ERROR_CODE_VALUES, n as MUX_AI_ERROR_DEPENDENCIES, o as MUX_AI_ERROR_DEPENDENCY_VALUES, p as MUX_AI_ERROR_SOURCES, q as MUX_AI_ERROR_SOURCE_VALUES, r as MUX_AI_ERROR_TYPES, s as MUX_AI_ERROR_TYPE_VALUES, t as MUX_TRACK_PASSTHROUGH_MAX_CHARS, u as MuxAiErrorInit, R as ReplaceAndCreateTextTrackInput, v as ReplaceAndCreateTextTrackResult, w as ReplaceAndCreateTrackInput, x as ReplaceExistingTracksPolicy, y as ReplaceSourceTrackInput, z as ReplaceableTrackType, S as SerializedClassification, A as SourceAndDependency, B as SourceTrackReplacementPolicy, D as SupportedISO639_1, F as SupportedISO639_3, T as TextTrackReplacementPlan, G as TextTrackSummary, H as TextTrackTarget, J as TrackReplacementBlocked, K as TrackReplacementBlockedReason, N as TrackSummary, O as TrackTarget, P as assertNever, Q as buildMuxAiTrackPassthrough, U as classificationInit, V as errorDetailFact, W as findNameCollisionTextTracks, X as findSameLanguageTextTracks, Y as getLanguageCodePair, Z as getLanguageName, _ as internalError, $ as isDuplicateTrackNameError, a0 as isMuxGeneratedTextTrack, a1 as isTransientStatus, a2 as isUndeterminedLanguageCode, a3 as isValidISO639_1, a4 as isValidISO639_3, a5 as normalizeTrackLanguageCode, a6 as normalizeTrackName, a7 as planSourceTrackReplacement, a8 as planTextTrackReplacement, a9 as replaceAndCreateTextTrack, aa as replaceAndCreateTrack, ab as replaceSourceTrack, ac as restoreClassification, ad as serializeClassification, ae as summarizeTextTrack, af as toISO639_1, ag as toISO639_3, ah as trackReplacementBlockedError, ai as trackTargetFacts, aj as validateTrackPassthrough, ak as workflows, al as wrapError } from './index-BN5yOn9o.js';
|
|
3
3
|
import { M as MuxAsset, W as WorkflowCredentials, S as StoragePutObjectInput, a as StoragePresignGetObjectInput } from './transcripts-DuNI058z.js';
|
|
4
4
|
export { A as AssetTextTrack, C as ChunkEmbedding, b as ChunkingStrategy, E as Encrypted, c as EncryptedPayload, I as ImageSubmissionMode, d as MuxAIOptions, 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 './transcripts-DuNI058z.js';
|
|
5
5
|
import { WORKFLOW_SERIALIZE, WORKFLOW_DESERIALIZE } from '@workflow/serde';
|
|
@@ -12,7 +12,7 @@ import '@ai-sdk/google';
|
|
|
12
12
|
import '@ai-sdk/openai';
|
|
13
13
|
import '@mux/ts';
|
|
14
14
|
|
|
15
|
-
var version = "0.
|
|
15
|
+
var version = "0.62.0-canary.97";
|
|
16
16
|
|
|
17
17
|
interface DependencyErrorInit {
|
|
18
18
|
dependency: MuxAiErrorDependency;
|
|
@@ -239,6 +239,23 @@ declare const MUX_AI_ERROR_PUBLIC_MAPPINGS: {
|
|
|
239
239
|
readonly facts: readonly ["language", "which"];
|
|
240
240
|
readonly message: (facts: Readonly<Record<string, MuxAiErrorFactValue>>) => string;
|
|
241
241
|
};
|
|
242
|
+
readonly dubbing_timeout: {
|
|
243
|
+
readonly message: "Audio dubbing didn't finish in time. Please try again.";
|
|
244
|
+
};
|
|
245
|
+
readonly audio_track_missing: {
|
|
246
|
+
readonly facts: readonly ["assetId"];
|
|
247
|
+
readonly message: (facts: Readonly<Record<string, MuxAiErrorFactValue>>) => string;
|
|
248
|
+
};
|
|
249
|
+
readonly primary_audio_track_conflict: {
|
|
250
|
+
readonly facts: readonly ["languageCode"];
|
|
251
|
+
readonly message: (facts: Readonly<Record<string, MuxAiErrorFactValue>>) => string;
|
|
252
|
+
};
|
|
253
|
+
readonly static_rendition_changed: {
|
|
254
|
+
readonly message: "The asset's static rendition settings changed while it was being processed. Please try again.";
|
|
255
|
+
};
|
|
256
|
+
readonly static_rendition_timeout: {
|
|
257
|
+
readonly message: "The asset's static rendition wasn't ready in time. Please try again in a moment.";
|
|
258
|
+
};
|
|
242
259
|
readonly dubbing_failed: {
|
|
243
260
|
readonly facts: readonly ["providerError"];
|
|
244
261
|
readonly message: (facts: Readonly<Record<string, MuxAiErrorFactValue>>, { retryable }: {
|