Repository navigation
feat: add asset progress optimizing to state enum - #102
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
marcrleonard
marked this pull request as ready for review
November 19, 2026 18:33
jsanford8
approved these changes
Nov 19, 2026
philcluff
approved these changes
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Podcast assets (
delivery_profile: hls_podcast) are getting a new asset progress state,optimizing, while Mux measures each rendition's bitrate before the asset goesready.AssetProgress.stateonly allowsingesting,transcoding,completed,liveanderrored, so deserializing one of those assets would raise once the API starts returning it.Hand-patched pending a regen, mirroring #100:
optimizingtoAssetProgress.stateallowed valuesstateandprogressdescriptions to match the spec (muxinc/openapi-specification#673)optimizingonly shows up for podcast assets once delayed ready is turned on, so this needs to ship before that. Context in #api-design: https://mux.slack.com/archives/C02CU2TUT1A/p1795036440136709Example
Suggested review order
mux_python/models/asset_progress.pydocs/AssetProgress.mdsetup.py,gen/generator-config.json,mux_python/__init__.py,mux_python/api_client.py,mux_python/configuration.py🤖 Generated with Claude Code
Note
Low Risk
Targeted OpenAPI model and documentation alignment with no auth or business-logic changes; main impact is avoiding deserialization failures on new API values.
Overview
This release adds
optimizingtoAssetProgress.stateso API responses for podcast assets (hls_podcast) deserialize without client-side validation errors once Mux emits that state.State and
progressdocs are updated to match the spec: forhls_podcast,transcodingmaps to progress 0–50, and the newoptimizingphase (extra delivery-profile work whilestatusstayspreparing) maps to 50–100.progressis documented as 0–100 foringesting,transcoding,optimizing, andcompleted(still -1 forlive/errored).The SDK version is bumped from 5.2.0 to 5.3.0 in
setup.py, generator config,__init__.py, API client User-Agent, and debug report strings.Reviewed by Cursor Bugbot for commit 2646069. Bugbot is set up for automated code reviews on this repo. Configure here.