Driftwatch

APIs / Mux

Mux API changes

Breaking changes, deprecations and new fields in the Mux API, as they ship.

Mux1 breaking3 additive
  • Breakingdirection flip: their tools call this safe

    state can now return "optimizing"

    Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.

    AssetProgress.state · reachable from 6 operations
    Code that breaks
    switch (response.state) {
      // existing branches …
      // no branch for "optimizing"
      default:
        throw new Error("unexpected state");
    }
3 new response fields
  • ErrorDetail.code
  • JobErrorV0.code
  • JobError.code
Mux17 additive
13 new response fields
  • TranslateAudioBindingParametersV0.captions
  • TranslateAudioJobOutputsV0.replaced_caption_track_ids
  • TranslateAudioJobOutputsV0.caption_track_id
  • TranslateAudioDirectiveBindingParameters.captions
  • TranslateAudioJob.outputs.caption_track_id
  • TranslateAudioJob.outputs.replaced_caption_track_ids
  • TranslateAudioJob.outputs.temporary_vtt_url
  • TranslateAudioJobOutputs.caption_track_id
  • TranslateAudioJobOutputs.replaced_caption_track_ids
  • TranslateAudioJobOutputs.temporary_vtt_url
  • TranslateAudioJobOutputsV0.temporary_vtt_url
  • TranslateAudioJobParameters.captions
  • TranslateAudioJobParametersV0.captions
4 new request properties
  • TranslateAudioBindingParametersV0.captions
  • TranslateAudioDirectiveBindingParameters.captions
  • TranslateAudioJobParameters.captions
  • TranslateAudioJobParametersV0.captions
Mux1 breaking
  • Breakingdirection flip: their tools call this safe

    status can now return "skipped"

    Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.

    Track.status · reachable from 9 operations
    Code that breaks
    switch (response.status) {
      // existing branches …
      // no branch for "skipped"
      default:
        throw new Error("unexpected status");
    }
Mux10 additive
8 new response fields
  • ModerateDirectiveBindingParameters.include_transcript
  • ModerateJob.outputs.thumbnail_moderation
  • ModerateJob.outputs.transcript_moderation
  • ModerateJob.outputs.transcript_scores
  • ModerateJobOutputs.thumbnail_moderation
  • ModerateJobOutputs.transcript_moderation
  • ModerateJobOutputs.transcript_scores
  • ModerateJobParameters.include_transcript
2 new request properties
  • ModerateDirectiveBindingParameters.include_transcript
  • ModerateJobParameters.include_transcript
Mux2 breaking33 deprecation36 additive
Mux2 behavioral4 additive
4 new response fields
  • ErrorResponse.error.messages
  • SummarizeJobOutputs.asset_updates
  • GenerateChaptersJobOutputs.asset_updates
  • FindBestThumbnailsJobOutputs.asset_updates
Mux1 breaking17 additive
  • Breakingdirection flip: their tools call this safe

    text_type can now return "chapters"

    Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.

    can now return "chapters"

    2 places: InputSettings.text_type, Track.text_type
    Code that breaks
    switch (response.text_type) {
      // existing branches …
      // no branch for "chapters"
      default:
        throw new Error("unexpected text_type");
    }
9 new response fields
  • EditCaptionsBindingParameters.replace_existing_tracks
  • TranslateAudioBindingParameters.track_name
  • EditCaptionsBindingParameters.track_name
  • TranslateCaptionsBindingParameters.track_name
  • EditCaptionsJobOutputs.replaced_tracks
  • EditCaptionsJobParameters.replace_existing_tracks
  • EditCaptionsJobParameters.track_name
  • TranslateAudioJobParameters.track_name
  • TranslateCaptionsJobParameters.track_name
8 new request properties
  • EditCaptionsBindingParameters.replace_existing_tracks
  • EditCaptionsBindingParameters.track_name
  • TranslateAudioBindingParameters.track_name
  • TranslateCaptionsBindingParameters.track_name
  • EditCaptionsJobParameters.replace_existing_tracks
  • EditCaptionsJobParameters.track_name
  • TranslateAudioJobParameters.track_name
  • TranslateCaptionsJobParameters.track_name
Mux1 additive
  • Additive

    Response field created_at added

    No action needed unless you validate responses against a closed schema.

    AssetShots.created_at · reachable from 8 operations
Mux2 breaking7 additive
  • Breaking

    Response field total_views removed

    Reads of this field return undefined, and the failure surfaces wherever that value is used rather than at the call.

    2 places: EngagementHeatmap.total_views, EngagementHotspots.total_views
    Code that breaks
    // response.total_views is now undefined
    const total_views = response.total_views;
  • Breaking

    Response field value removed

    EngagementHeatmap.value · reachable from 3 operations
    Code that breaks
    // response.value is now undefined
    const value = response.value;
7 new response fields
  • EngagementHeatmap.asset_id
  • EngagementHeatmap.heatmap
  • EngagementHeatmap.playback_id
  • EngagementHeatmap.video_id
  • EngagementHotspots.asset_id
  • EngagementHotspots.playback_id
  • EngagementHotspots.video_id