@mux/ai 0.65.0 → 0.66.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.
@@ -389,7 +389,16 @@ type ErrorCatalogEntry<TType extends string = string, TDependency extends string
389
389
  retryable?: boolean;
390
390
  /** Overrides the default from {@link defaultTransient} for every error with this code. */
391
391
  transient?: boolean;
392
- } & SourceAndDependency<TDependency>;
392
+ } & (SourceAndDependency<TDependency> |
393
+ /**
394
+ * A condition any remote service can report (e.g. a provider's rate limit): the code
395
+ * implies the type and source, and the site raising it names the dependency.
396
+ */
397
+ {
398
+ source: MuxAiErrorSource;
399
+ dependency?: never;
400
+ siteDependency: true;
401
+ });
393
402
  /**
394
403
  * Codes for conditions precise enough to name. A code implies its type, source and
395
404
  * dependency (see {@link MUX_AI_ERROR_CATALOG}), so a site raising it can't contradict
@@ -466,6 +475,46 @@ declare const MUX_AI_ERROR_CODES: {
466
475
  readonly STATIC_RENDITION_CHANGED: "static_rendition_changed";
467
476
  /** Mux didn't finish the static rendition within the polling budget. Facts: `assetId`, `attempts`, `pollIntervalMs`, `lastStatus`. */
468
477
  readonly STATIC_RENDITION_TIMEOUT: "static_rendition_timeout";
478
+ /**
479
+ * The provider says the account the service running the SDK uses is out of credits or
480
+ * quota, or hit a spend or usage limit. Retrying won't help until someone changes the
481
+ * account. The site names the dependency. Facts: `call`, `status`, `providerCode`.
482
+ */
483
+ readonly PROVIDER_QUOTA_EXHAUSTED: "provider_quota_exhausted";
484
+ /** The provider rejected the key the service running the SDK uses, or the key lacks permission for this model or feature. The site names the dependency. Facts: `call`, `status`, `providerCode`. */
485
+ readonly PROVIDER_CREDENTIALS_REJECTED: "provider_credentials_rejected";
486
+ /** The provider says requests are over its rate or concurrency limit. The site names the dependency. Facts: `call`, `status`, `providerCode`. */
487
+ readonly PROVIDER_RATE_LIMITED: "provider_rate_limited";
488
+ /** The provider says it's overloaded or down for maintenance. The site names the dependency. Facts: `call`, `status`, `providerCode`. */
489
+ readonly PROVIDER_UNAVAILABLE: "provider_unavailable";
490
+ /** The provider can't process the asset's audio. The site names the dependency. Facts: `call`, `status`, `providerCode`, `reason` (`corrupt`, `unsupported_format`, `too_long`, `too_short`). */
491
+ readonly AUDIO_UNPROCESSABLE: "audio_unprocessable";
492
+ /** Mux rejected the caller's access token (401), or the token lacks permission for this call (403), e.g. Mux Data access. Facts: `call`, `status`, `inputs` (`credentials`). */
493
+ readonly ACCOUNT_CREDENTIALS_REJECTED: "account_credentials_rejected";
494
+ /** Mux answered 404 for something belonging to the asset (a track, a rendition, an image, its engagement data): gone, or not ready yet. A missing asset itself is `asset_not_found`. Facts: `call`, `status`. */
495
+ readonly ASSET_RESOURCE_NOT_FOUND: "asset_resource_not_found";
496
+ /** Mux denied delivery of the asset's media (a transcript, a caption file, an image), e.g. a signing key or playback restriction in the Mux account rejected the request. Facts: `call`, `status`. */
497
+ readonly PLAYBACK_ACCESS_DENIED: "playback_access_denied";
498
+ /** No response arrived, and the call didn't time out (e.g. a connection failure). Facts: `call`. */
499
+ readonly DEPENDENCY_NO_RESPONSE: "dependency_no_response";
500
+ /** The call timed out, or the dependency answered 408. Facts: `call`, `status`. */
501
+ readonly DEPENDENCY_TIMEOUT: "dependency_timeout";
502
+ /** The dependency answered 429. Facts: `call`, `status`. */
503
+ readonly DEPENDENCY_RATE_LIMITED: "dependency_rate_limited";
504
+ /** The dependency answered 425. Facts: `call`, `status`. */
505
+ readonly DEPENDENCY_TOO_EARLY: "dependency_too_early";
506
+ /** The dependency answered with a 5xx status. Facts: `call`, `status`. */
507
+ readonly DEPENDENCY_SERVER_ERROR: "dependency_server_error";
508
+ /** The dependency answered 401 or 403 to a request made with the service's own credentials. Facts: `call`, `status`. */
509
+ readonly DEPENDENCY_AUTH_REJECTED: "dependency_auth_rejected";
510
+ /** The dependency answered 404 to a request the SDK built. Facts: `call`, `status`. */
511
+ readonly DEPENDENCY_NOT_FOUND: "dependency_not_found";
512
+ /** The dependency answered with another 4xx status. Facts: `call`, `status`. */
513
+ readonly DEPENDENCY_REQUEST_REJECTED: "dependency_request_rejected";
514
+ /** The dependency answered with a status that isn't an error (1xx-3xx) where a result was expected. Facts: `call`, `status`. */
515
+ readonly DEPENDENCY_OTHER_STATUS: "dependency_other_status";
516
+ /** The dependency answered without a failing status, but with an error of its own or a response that can't be used. Facts: `call`, `providerCode` when it gave one. */
517
+ readonly DEPENDENCY_RESPONSE_FAILED: "dependency_response_failed";
469
518
  };
470
519
  type MuxAiErrorCode = typeof MUX_AI_ERROR_CODES[keyof typeof MUX_AI_ERROR_CODES];
471
520
  declare const MUX_AI_ERROR_CODE_VALUES: readonly MuxAiErrorCode[];
@@ -646,6 +695,114 @@ declare const MUX_AI_ERROR_CATALOG: {
646
695
  readonly source: "asset";
647
696
  readonly retryable: true;
648
697
  };
698
+ readonly provider_quota_exhausted: {
699
+ readonly type: "server_error";
700
+ readonly source: "internal";
701
+ readonly siteDependency: true;
702
+ readonly transient: false;
703
+ readonly retryable: false;
704
+ };
705
+ readonly provider_credentials_rejected: {
706
+ readonly type: "server_error";
707
+ readonly source: "internal";
708
+ readonly siteDependency: true;
709
+ };
710
+ readonly provider_rate_limited: {
711
+ readonly type: "capacity_error";
712
+ readonly source: "upstream";
713
+ readonly siteDependency: true;
714
+ readonly transient: true;
715
+ readonly retryable: true;
716
+ };
717
+ readonly provider_unavailable: {
718
+ readonly type: "capacity_error";
719
+ readonly source: "upstream";
720
+ readonly siteDependency: true;
721
+ readonly transient: true;
722
+ readonly retryable: true;
723
+ };
724
+ readonly audio_unprocessable: {
725
+ readonly type: "validation_error";
726
+ readonly source: "asset";
727
+ readonly siteDependency: true;
728
+ };
729
+ readonly account_credentials_rejected: {
730
+ readonly type: "validation_error";
731
+ readonly source: "account";
732
+ readonly siteDependency: true;
733
+ };
734
+ readonly asset_resource_not_found: {
735
+ readonly type: "validation_error";
736
+ readonly source: "asset";
737
+ readonly siteDependency: true;
738
+ };
739
+ readonly playback_access_denied: {
740
+ readonly type: "validation_error";
741
+ readonly source: "account";
742
+ readonly siteDependency: true;
743
+ };
744
+ readonly dependency_no_response: {
745
+ readonly type: "processing_error";
746
+ readonly source: "upstream";
747
+ readonly siteDependency: true;
748
+ readonly transient: true;
749
+ readonly retryable: true;
750
+ };
751
+ readonly dependency_timeout: {
752
+ readonly type: "timeout_error";
753
+ readonly source: "upstream";
754
+ readonly siteDependency: true;
755
+ readonly transient: true;
756
+ readonly retryable: true;
757
+ };
758
+ readonly dependency_rate_limited: {
759
+ readonly type: "capacity_error";
760
+ readonly source: "upstream";
761
+ readonly siteDependency: true;
762
+ readonly transient: true;
763
+ readonly retryable: true;
764
+ };
765
+ readonly dependency_too_early: {
766
+ readonly type: "processing_error";
767
+ readonly source: "upstream";
768
+ readonly siteDependency: true;
769
+ readonly transient: true;
770
+ readonly retryable: true;
771
+ };
772
+ readonly dependency_server_error: {
773
+ readonly type: "processing_error";
774
+ readonly source: "upstream";
775
+ readonly siteDependency: true;
776
+ readonly transient: true;
777
+ readonly retryable: true;
778
+ };
779
+ readonly dependency_auth_rejected: {
780
+ readonly type: "server_error";
781
+ readonly source: "internal";
782
+ readonly siteDependency: true;
783
+ };
784
+ readonly dependency_not_found: {
785
+ readonly type: "server_error";
786
+ readonly source: "internal";
787
+ readonly siteDependency: true;
788
+ };
789
+ readonly dependency_request_rejected: {
790
+ readonly type: "server_error";
791
+ readonly source: "internal";
792
+ readonly siteDependency: true;
793
+ };
794
+ readonly dependency_other_status: {
795
+ readonly type: "server_error";
796
+ readonly source: "internal";
797
+ readonly siteDependency: true;
798
+ };
799
+ readonly dependency_response_failed: {
800
+ readonly type: "processing_error";
801
+ readonly source: "upstream";
802
+ readonly siteDependency: true;
803
+ readonly transient: false;
804
+ readonly retryable: true;
805
+ };
649
806
  };
650
807
  interface ModelCallDiagnostics {
651
808
  phase: "brief" | "draft" | "format_repair" | "length_repair";
@@ -668,9 +825,10 @@ interface ErrorCauseSummary {
668
825
  /**
669
826
  * The classification a coded site states: the code, and the type, source and dependency
670
827
  * its catalog entry implies. Each code accepts only its own, so a site reads on its own
671
- * and can't contradict the catalog.
828
+ * and can't contradict the catalog. A `siteDependency` code requires the site to name
829
+ * the dependency.
672
830
  */
673
- type CodedClassification<TCatalog extends Readonly<Record<string, ErrorCatalogEntry>>> = {
831
+ type CodedClassification<TCatalog extends Readonly<Record<string, ErrorCatalogEntry>>, TDependency extends string = string> = {
674
832
  [C in keyof TCatalog & string]: {
675
833
  code: C;
676
834
  type: TCatalog[C]["type"];
@@ -679,10 +837,45 @@ type CodedClassification<TCatalog extends Readonly<Record<string, ErrorCatalogEn
679
837
  dependency: infer D extends string;
680
838
  } ? {
681
839
  dependency: D;
840
+ } : TCatalog[C] extends {
841
+ siteDependency: true;
842
+ } ? {
843
+ dependency: TDependency;
682
844
  } : {
683
845
  dependency?: never;
684
846
  });
685
847
  }[keyof TCatalog & string];
848
+ /**
849
+ * The fallback codes for a remote call's failure: the bottom rung, used when no
850
+ * per-dependency rule recognizes the response. Catalog codes like any other, so each
851
+ * implies one type and source, and the site names the dependency. All but
852
+ * `RESPONSE_FAILED` follow from the HTTP status (or its absence; see
853
+ * `dependencyFailureCode`). A count of these codes shows which dependencies' responses
854
+ * still need per-dependency rules.
855
+ */
856
+ declare const MUX_AI_DEPENDENCY_STATUS_CODES: {
857
+ readonly NO_RESPONSE: "dependency_no_response";
858
+ readonly TIMEOUT: "dependency_timeout";
859
+ readonly RATE_LIMITED: "dependency_rate_limited";
860
+ readonly TOO_EARLY: "dependency_too_early";
861
+ readonly SERVER_ERROR: "dependency_server_error";
862
+ readonly AUTH_REJECTED: "dependency_auth_rejected";
863
+ readonly NOT_FOUND: "dependency_not_found";
864
+ readonly REQUEST_REJECTED: "dependency_request_rejected";
865
+ readonly OTHER_STATUS: "dependency_other_status";
866
+ readonly RESPONSE_FAILED: "dependency_response_failed";
867
+ };
868
+ type MuxAiDependencyStatusCode = typeof MUX_AI_DEPENDENCY_STATUS_CODES[keyof typeof MUX_AI_DEPENDENCY_STATUS_CODES];
869
+ /**
870
+ * The codes whose site names the dependency (`siteDependency` catalog entries): the ones
871
+ * a remote call's failure can take, e.g. from a per-dependency rule.
872
+ */
873
+ type MuxAiSiteDependencyCode = {
874
+ [C in MuxAiErrorCode]: typeof MUX_AI_ERROR_CATALOG[C] extends {
875
+ siteDependency: true;
876
+ } ? C : never;
877
+ }[MuxAiErrorCode];
878
+ declare const MUX_AI_DEPENDENCY_STATUS_CODE_VALUES: readonly MuxAiDependencyStatusCode[];
686
879
  /**
687
880
  * How a site classifies an error: always a type and source (with the dependency for an
688
881
  * `upstream` failure), plus a code when the condition has one, plus what varies. With a
@@ -692,7 +885,7 @@ type CodedClassification<TCatalog extends Readonly<Record<string, ErrorCatalogEn
692
885
  type ClassifiedErrorInit<TType extends string, TCode extends string, TDependency extends string, TCatalog extends Readonly<Record<string, ErrorCatalogEntry>> = never> = (([TCatalog] extends [never] ? ({
693
886
  code: TCode;
694
887
  type: TType;
695
- } & SourceAndDependency<TDependency>) : CodedClassification<TCatalog>) | ({
888
+ } & SourceAndDependency<TDependency>) : CodedClassification<TCatalog, TDependency>) | ({
696
889
  code?: never;
697
890
  type: TType;
698
891
  } & SourceAndDependency<TDependency>)) & {
@@ -713,6 +906,7 @@ type ClassifiedErrorInit<TType extends string, TCode extends string, TDependency
713
906
  /** The raw cause. Kept locally only; a bounded summary crosses step boundaries. */
714
907
  cause?: unknown;
715
908
  };
909
+ /** How a site classifies a `MuxAiError`: a catalog code with what it implies, or no code. */
716
910
  type MuxAiErrorInit = ClassifiedErrorInit<MuxAiErrorType, MuxAiErrorCode, MuxAiErrorDependency, typeof MUX_AI_ERROR_CATALOG>;
717
911
  /**
718
912
  * A classified error's fields as JSON-safe data, for a subclass's Workflow serializer
@@ -734,7 +928,7 @@ interface SerializedClassification<TType extends string = string, TCode extends
734
928
  * What crosses a Workflow step boundary. A run replays the events it already wrote,
735
929
  * so `v` is bumped on a shape change and earlier versions stay readable.
736
930
  */
737
- interface SerializedMuxAiError extends SerializedClassification<MuxAiErrorType, MuxAiErrorCode, MuxAiErrorDependency> {
931
+ interface SerializedMuxAiError extends SerializedClassification<MuxAiErrorType, MuxAiErrorCode | MuxAiDependencyStatusCode, MuxAiErrorDependency> {
738
932
  v: 2;
739
933
  usage?: TokenUsage;
740
934
  finishReason?: string;
@@ -1158,4 +1352,4 @@ interface TranscriptFetchStepResult {
1158
1352
  declare function fetchTranscriptDataForUrl(transcriptUrl: string, options?: Pick<TranscriptFetchOptions, "cleanTranscript" | "scope" | "classifiedErrors">): Promise<TranscriptFetchStepResult>;
1159
1353
  declare function fetchTranscriptForAsset(asset: MuxAsset, playbackId: string, options?: TranscriptFetchOptions): Promise<TranscriptResult>;
1160
1354
 
1161
- export { errorDetailFact as $, type AssetTextTrack as A, type PlaybackPolicy as B, ClassifiedError as C, type ScopedMuxAIOptions as D, type Encrypted as E, type SerializedClassification as F, type SourceAndDependency as G, type StorageAdapter as H, type ImageSubmissionMode as I, type TokenChunkingConfig as J, type TokenUsage as K, type ToneType as L, type MuxAiErrorDependency as M, type VideoEmbeddingsResult as N, type WorkflowCredentialsInput as O, type PlaybackAsset as P, type WorkflowMuxClient as Q, type WorkflowScope as R, type StoragePutObjectInput as S, type TextChunk as T, type UsageMetadata as U, type VTTChunkingConfig as V, type WorkflowCredentials as W, assertNever as X, classificationInit as Y, decryptFromWorkflow as Z, encryptForWorkflow as _, type MuxAiErrorFacts as a, internalError as a0, isTransientStatus as a1, restoreClassification as a2, serializeClassification as a3, wrapError as a4, type VTTCue as a5, type CompletedShotsResult as a6, type DeletedShotsResult as a7, type ErroredShotsResult as a8, type Hotspot as a9, getHotspotsForPlaybackId as aA, getHotspotsForVideo as aB, getReadyTextTracks as aC, getReliableLanguageCode as aD, getShotsForAsset as aE, parseVTTCues as aF, replaceCueText as aG, requestShotsForAsset as aH, sanitizeUntrustedText as aI, secondsToTimestamp as aJ, splitVttPreambleAndCueBlocks as aK, stripVttMetadataBlocks as aL, vttTimestampToSeconds as aM, waitForShotsForAsset as aN, type ClassifiedErrorsOption as aO, type HotspotOptions as aa, type HotspotResponse as ab, LOW_CONFIDENCE_THRESHOLD as ac, MAX_CUE_TEXT_CHARS as ad, type ParseVTTCuesOptions as ae, type PendingShotsResult as af, type Shot as ag, type ShotRequestOptions as ah, type ShotsResult as ai, type SkippedShotsResult as aj, type TranscriptEmptyReason as ak, type TranscriptFetchOptions as al, type TranscriptFetchStepResult as am, type TranscriptResult as an, type WaitForShotsOptions as ao, buildTranscriptUrl as ap, buildVttFromCueBlocks as aq, buildVttFromTranslatedCueBlocks as ar, concatenateVttSegments as as, extractTextFromVTT as at, extractTimestampedTranscript as au, fetchTranscriptDataForUrl as av, fetchTranscriptForAsset as aw, filterVttByScope as ax, findCaptionTrack as ay, getHotspotsForAsset as az, type MuxAiErrorSource as b, type MuxAiErrorType as c, MuxAiError as d, type MuxAsset as e, type MuxAiErrorFactValue as f, type MuxAiErrorCode as g, type StoragePresignGetObjectInput as h, type ChunkEmbedding as i, type ChunkingStrategy as j, type ClassifiedErrorInit as k, type CodedClassification as l, type EncryptedPayload as m, type ErrorCatalogEntry as n, type ErrorCauseSummary as o, MUX_AI_ERROR_CATALOG as p, MUX_AI_ERROR_CODES as q, MUX_AI_ERROR_CODE_VALUES as r, MUX_AI_ERROR_DEPENDENCIES as s, MUX_AI_ERROR_DEPENDENCY_VALUES as t, MUX_AI_ERROR_SOURCES as u, MUX_AI_ERROR_SOURCE_VALUES as v, MUX_AI_ERROR_TYPES as w, MUX_AI_ERROR_TYPE_VALUES as x, type MuxAIOptions as y, type MuxAiErrorInit as z };
1355
+ export { type WorkflowScope as $, type AssetTextTrack as A, MUX_AI_ERROR_SOURCE_VALUES as B, ClassifiedError as C, MUX_AI_ERROR_TYPES as D, type Encrypted as E, MUX_AI_ERROR_TYPE_VALUES as F, type MuxAIOptions as G, type MuxAiErrorInit as H, type ImageSubmissionMode as I, type PlaybackPolicy as J, type ScopedMuxAIOptions as K, type SerializedClassification as L, type MuxAiErrorDependency as M, type SourceAndDependency as N, type StorageAdapter as O, type PlaybackAsset as P, type TokenChunkingConfig as Q, type TokenUsage as R, type StoragePutObjectInput as S, type TextChunk as T, type ToneType as U, type UsageMetadata as V, type WorkflowCredentials as W, type VTTChunkingConfig as X, type VideoEmbeddingsResult as Y, type WorkflowCredentialsInput as Z, type WorkflowMuxClient as _, type MuxAiErrorFacts as a, assertNever as a0, classificationInit as a1, decryptFromWorkflow as a2, encryptForWorkflow as a3, errorDetailFact as a4, internalError as a5, isTransientStatus as a6, restoreClassification as a7, serializeClassification as a8, wrapError as a9, fetchTranscriptDataForUrl as aA, fetchTranscriptForAsset as aB, filterVttByScope as aC, findCaptionTrack as aD, getHotspotsForAsset as aE, getHotspotsForPlaybackId as aF, getHotspotsForVideo as aG, getReadyTextTracks as aH, getReliableLanguageCode as aI, getShotsForAsset as aJ, parseVTTCues as aK, replaceCueText as aL, requestShotsForAsset as aM, sanitizeUntrustedText as aN, secondsToTimestamp as aO, splitVttPreambleAndCueBlocks as aP, stripVttMetadataBlocks as aQ, vttTimestampToSeconds as aR, waitForShotsForAsset as aS, type VTTCue as aa, type CompletedShotsResult as ab, type DeletedShotsResult as ac, type ErroredShotsResult as ad, type Hotspot as ae, type HotspotOptions as af, type HotspotResponse as ag, LOW_CONFIDENCE_THRESHOLD as ah, MAX_CUE_TEXT_CHARS as ai, type ParseVTTCuesOptions as aj, type PendingShotsResult as ak, type Shot as al, type ShotRequestOptions as am, type ShotsResult as an, type SkippedShotsResult as ao, type TranscriptEmptyReason as ap, type TranscriptFetchOptions as aq, type TranscriptFetchStepResult as ar, type TranscriptResult as as, type WaitForShotsOptions as at, buildTranscriptUrl as au, buildVttFromCueBlocks as av, buildVttFromTranslatedCueBlocks as aw, concatenateVttSegments as ax, extractTextFromVTT as ay, extractTimestampedTranscript as az, MUX_AI_ERROR_SOURCES as b, type MuxAiErrorSource as c, type MuxAiSiteDependencyCode as d, type MuxAiErrorType as e, MuxAiError as f, type MuxAiDependencyStatusCode as g, type MuxAsset as h, type MuxAiErrorFactValue as i, type MuxAiErrorCode as j, type ClassifiedErrorsOption as k, type StoragePresignGetObjectInput as l, type ChunkEmbedding as m, type ChunkingStrategy as n, type ClassifiedErrorInit as o, type CodedClassification as p, type EncryptedPayload as q, type ErrorCatalogEntry as r, type ErrorCauseSummary as s, MUX_AI_DEPENDENCY_STATUS_CODES as t, MUX_AI_DEPENDENCY_STATUS_CODE_VALUES as u, MUX_AI_ERROR_CATALOG as v, MUX_AI_ERROR_CODES as w, MUX_AI_ERROR_CODE_VALUES as x, MUX_AI_ERROR_DEPENDENCIES as y, MUX_AI_ERROR_DEPENDENCY_VALUES as z };
@@ -1,7 +1,7 @@
1
- export { P as ASK_QUESTIONS_DEFAULT_MAX_ANSWER_OPTION_LENGTH, Q as ASK_QUESTIONS_DEFAULT_MAX_FREE_FORM_ANSWER_LENGTH, U as ASK_QUESTIONS_MAX_QUESTIONS_PER_CALL, V as ASK_QUESTIONS_MAX_QUESTION_LENGTH, W as AskQuestionsOptions, X as AskQuestionsResult, Y as AskQuestionsType, Z as AudioTranslationOptions, _ as AudioTranslationResult, $ as AutoCensorProfanityOptions, a0 as BurnedInCaptionsAnalysis, a1 as BurnedInCaptionsOptions, a2 as BurnedInCaptionsPromptOverrides, a3 as BurnedInCaptionsPromptSections, a4 as BurnedInCaptionsResult, a5 as CaptionReplacement, a6 as CensorMode, a7 as Chapter, a8 as ChapterSystemPromptSections, a9 as ChaptersOptions, aa as ChaptersPromptOverrides, ab as ChaptersPromptSections, ac as ChaptersResult, ad as ChaptersType, ae as DEFAULT_TRANSCRIPT_WINDOWING, af as DubbedCaptionsOutcome, ag as EditCaptionsOptions, ah as EditCaptionsResult, ai as EmbeddingsOptions, aj as EmbeddingsResult, ak as EngagementInsightsOptions, al as EngagementInsightsResult, am as GENERATE_TEXT_CALLS_TO_ACTION, an as GENERATE_TEXT_CHANNELS, ao as GENERATE_TEXT_CHANNEL_CEILINGS, ap as GENERATE_TEXT_FORMATS, aq as GENERATE_TEXT_LENGTH_BOUNDS, ar as GENERATE_TEXT_MAX_ARTIFACTS, as as GENERATE_TEXT_MAX_AUDIENCE_CHARS, at as GENERATE_TEXT_MAX_BRAND_TERMS, au as GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS, av as GENERATE_TEXT_MAX_BRAND_TERM_CHARS, aw as GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS, ax as GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS, ay as GENERATE_TEXT_MAX_SHOT_FRAMES, az as GENERATE_TEXT_MAX_VARIANTS, aA as GENERATE_TEXT_VOICES, aB as GOOGLE_VISION_LIKELIHOOD_TO_SCORE, aC as GenerateTextArtifact, aD as GenerateTextCallToAction, aE as GenerateTextChannel, aF as GenerateTextFormat, aG as GenerateTextKeyedItem, aH as GenerateTextLengthLimit, aI as GenerateTextOptions, aJ as GenerateTextResult, aK as GenerateTextVariant, aL as GenerateTextVoice, aM as GeneratedTextArtifact, aN as GeneratedTextVariant, aO as HIVE_SEXUAL_CATEGORIES, aP as HIVE_VIOLENCE_CATEGORIES, aQ as HiveModerationOutput, aR as HiveModerationSource, aS as ModerationOptions, aT as ModerationProvider, aU as ModerationResult, aV as ModerationSurfaceStatus, aW as MomentInsight, aX as OverallInsight, aY as ProfanityDetectionPayload, aZ as Question, a_ as QuestionAnswer, a$ as QuestionAnswerType, b0 as RepairAttempt, b1 as RepairCall, b2 as RepairOptions, b3 as RepairPlan, b4 as RepairResult, b5 as RepairSpan, b6 as ReplacementRecord, b7 as SpeakerReplacement, b8 as StaticRenditionCleanupOutcome, b9 as SummarizationOptions, ba as SummarizationPromptOverrides, bb as SummarizationPromptSections, bc as SummaryAndTagsResult, bd as SummaryType, be as TextLengthLimit, bf as TextRepairModelOptions, bg as ThumbnailModerationScore, bh as ThumbnailModerationSkipReason, bi as ThumbnailModerationStatus, bj as TranscriptModerationScore, bk as TranscriptModerationSkipReason, bl as TranscriptModerationStatus, bm as TranslationChunkingOptions, bn as TranslationOptions, bo as TranslationPayload, bp as TranslationResult, bq as aggregateTokenUsage, br as applyOverrideLists, bs as applyReplacements, bt as applySpeakerReplacements, bu as applyTextRepair, bv as askQuestions, bw as buildReplacementRegex, bx as buildTranscriptWindows, by as burnedInCaptionsSchema, bz as censorVttContent, bA as chapterSchema, bB as chaptersSchema, bC as createReplacer, bD as createTextRepairGenerator, bE as editCaptions, bF as extractTranscriptSegmentsForHotspots, bG as findGenerateTextLengthViolation, bH as generateChapters, bI as generateEmbeddings, bJ as generateEngagementInsights, bK as generateText, bL as generateVideoEmbeddings, bM as getModerationScores, bN as getSummaryAndTags, bO as hasBurnedInCaptions, bP as mapShotsToHotspots, bQ as measureGenerateTextLength, bR as normalizeTranslatedVtt, bS as planTextRepair, bT as profanityDetectionSchema, bU as questionAnswerSchema, bV as repairJsonSchema, bW as repairText, bX as resolveGenerateTextLengthLimit, bY as resolveGenerateTextLengthLimits, bZ as resolveGenerateTextOptions, b_ as runTextRepairLoop, b$ as selectGenerateTextShotFrames, c0 as shouldSplitChunkTranslationError, c1 as summarySchema, c2 as transformCueText, c3 as translateAudio, c4 as translateCaptions, c5 as translationSchema, c6 as validateNeverTranslateTerms, c7 as verifyNeverTranslateTerms } from '../index-BUM1MVpR.js';
1
+ export { P as ASK_QUESTIONS_DEFAULT_MAX_ANSWER_OPTION_LENGTH, Q as ASK_QUESTIONS_DEFAULT_MAX_FREE_FORM_ANSWER_LENGTH, U as ASK_QUESTIONS_MAX_QUESTIONS_PER_CALL, V as ASK_QUESTIONS_MAX_QUESTION_LENGTH, W as AskQuestionsOptions, X as AskQuestionsResult, Y as AskQuestionsType, Z as AudioTranslationOptions, _ as AudioTranslationResult, $ as AutoCensorProfanityOptions, a0 as BurnedInCaptionsAnalysis, a1 as BurnedInCaptionsOptions, a2 as BurnedInCaptionsPromptOverrides, a3 as BurnedInCaptionsPromptSections, a4 as BurnedInCaptionsResult, a5 as CaptionReplacement, a6 as CensorMode, a7 as Chapter, a8 as ChapterSystemPromptSections, a9 as ChaptersOptions, aa as ChaptersPromptOverrides, ab as ChaptersPromptSections, ac as ChaptersResult, ad as ChaptersType, ae as DEFAULT_TRANSCRIPT_WINDOWING, af as DubbedCaptionsOutcome, ag as EditCaptionsOptions, ah as EditCaptionsResult, ai as EmbeddingsOptions, aj as EmbeddingsResult, ak as EngagementInsightsOptions, al as EngagementInsightsResult, am as GENERATE_TEXT_CALLS_TO_ACTION, an as GENERATE_TEXT_CHANNELS, ao as GENERATE_TEXT_CHANNEL_CEILINGS, ap as GENERATE_TEXT_FORMATS, aq as GENERATE_TEXT_LENGTH_BOUNDS, ar as GENERATE_TEXT_MAX_ARTIFACTS, as as GENERATE_TEXT_MAX_AUDIENCE_CHARS, at as GENERATE_TEXT_MAX_BRAND_TERMS, au as GENERATE_TEXT_MAX_BRAND_TERMS_TOTAL_CHARS, av as GENERATE_TEXT_MAX_BRAND_TERM_CHARS, aw as GENERATE_TEXT_MAX_CONCURRENT_GENERATIONS, ax as GENERATE_TEXT_MAX_INSTRUCTIONS_CHARS, ay as GENERATE_TEXT_MAX_SHOT_FRAMES, az as GENERATE_TEXT_MAX_VARIANTS, aA as GENERATE_TEXT_VOICES, aB as GOOGLE_VISION_LIKELIHOOD_TO_SCORE, aC as GenerateTextArtifact, aD as GenerateTextCallToAction, aE as GenerateTextChannel, aF as GenerateTextFormat, aG as GenerateTextKeyedItem, aH as GenerateTextLengthLimit, aI as GenerateTextOptions, aJ as GenerateTextResult, aK as GenerateTextVariant, aL as GenerateTextVoice, aM as GeneratedTextArtifact, aN as GeneratedTextVariant, aO as HIVE_SEXUAL_CATEGORIES, aP as HIVE_VIOLENCE_CATEGORIES, aQ as HiveModerationOutput, aR as HiveModerationSource, aS as ModerationOptions, aT as ModerationProvider, aU as ModerationResult, aV as ModerationSurfaceStatus, aW as MomentInsight, aX as OverallInsight, aY as ProfanityDetectionPayload, aZ as Question, a_ as QuestionAnswer, a$ as QuestionAnswerType, b0 as RepairAttempt, b1 as RepairCall, b2 as RepairOptions, b3 as RepairPlan, b4 as RepairResult, b5 as RepairSpan, b6 as ReplacementRecord, b7 as SpeakerReplacement, b8 as StaticRenditionCleanupOutcome, b9 as SummarizationOptions, ba as SummarizationPromptOverrides, bb as SummarizationPromptSections, bc as SummaryAndTagsResult, bd as SummaryType, be as TextLengthLimit, bf as TextRepairModelOptions, bg as ThumbnailModerationScore, bh as ThumbnailModerationSkipReason, bi as ThumbnailModerationStatus, bj as TranscriptModerationScore, bk as TranscriptModerationSkipReason, bl as TranscriptModerationStatus, bm as TranslationChunkingOptions, bn as TranslationOptions, bo as TranslationPayload, bp as TranslationResult, bq as aggregateTokenUsage, br as applyOverrideLists, bs as applyReplacements, bt as applySpeakerReplacements, bu as applyTextRepair, bv as askQuestions, bw as buildReplacementRegex, bx as buildTranscriptWindows, by as burnedInCaptionsSchema, bz as censorVttContent, bA as chapterSchema, bB as chaptersSchema, bC as createReplacer, bD as createTextRepairGenerator, bE as editCaptions, bF as extractTranscriptSegmentsForHotspots, bG as findGenerateTextLengthViolation, bH as generateChapters, bI as generateEmbeddings, bJ as generateEngagementInsights, bK as generateText, bL as generateVideoEmbeddings, bM as getModerationScores, bN as getSummaryAndTags, bO as hasBurnedInCaptions, bP as mapShotsToHotspots, bQ as measureGenerateTextLength, bR as normalizeTranslatedVtt, bS as planTextRepair, bT as profanityDetectionSchema, bU as questionAnswerSchema, bV as repairJsonSchema, bW as repairText, bX as resolveGenerateTextLengthLimit, bY as resolveGenerateTextLengthLimits, bZ as resolveGenerateTextOptions, b_ as runTextRepairLoop, b$ as selectGenerateTextShotFrames, c0 as shouldSplitChunkTranslationError, c1 as summarySchema, c2 as transformCueText, c3 as translateAudio, c4 as translateCaptions, c5 as translationSchema, c6 as validateNeverTranslateTerms, c7 as verifyNeverTranslateTerms } from '../index-Be9HQB67.js';
2
2
  export { D as DEFAULT_DESCRIPTION_LENGTH, a as DEFAULT_SUMMARY_KEYWORD_LIMIT, b as DEFAULT_TITLE_LENGTH } from '../summarization-BFmhXeAu.js';
3
3
  import 'ai';
4
- import '../transcripts-qZm-RokR.js';
4
+ import '../transcripts-DYpx6Mac.js';
5
5
  import '@workflow/serde';
6
6
  import '@mux/ts';
7
7
  import 'zod';