Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.22.0 #95

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -33,7 +33,6 @@ MuxPhp/Models/AssetNonStandardInputReasons.php
MuxPhp/Models/AssetRecordingTimes.php
MuxPhp/Models/AssetResponse.php
MuxPhp/Models/AssetStaticRenditions.php
MuxPhp/Models/AssetStaticRenditionsFiles.php
MuxPhp/Models/BreakdownValue.php
MuxPhp/Models/Broadcast.php
MuxPhp/Models/BroadcastLayout.php
@@ -48,6 +47,8 @@ MuxPhp/Models/CreatePlaybackIDResponse.php
MuxPhp/Models/CreatePlaybackRestrictionRequest.php
MuxPhp/Models/CreateSimulcastTargetRequest.php
MuxPhp/Models/CreateSpaceRequest.php
MuxPhp/Models/CreateStaticRenditionRequest.php
MuxPhp/Models/CreateStaticRenditionResponse.php
MuxPhp/Models/CreateTrackRequest.php
MuxPhp/Models/CreateTrackResponse.php
MuxPhp/Models/CreateTranscriptionVocabularyRequest.php
@@ -164,6 +165,7 @@ MuxPhp/Models/SpaceResponse.php
MuxPhp/Models/SpaceStatus.php
MuxPhp/Models/SpaceType.php
MuxPhp/Models/StartSpaceBroadcastResponse.php
MuxPhp/Models/StaticRendition.php
MuxPhp/Models/StopSpaceBroadcastResponse.php
MuxPhp/Models/Track.php
MuxPhp/Models/TranscriptionVocabulary.php
@@ -174,6 +176,7 @@ MuxPhp/Models/UpdateAssetRequest.php
MuxPhp/Models/UpdateLiveStreamEmbeddedSubtitlesRequest.php
MuxPhp/Models/UpdateLiveStreamGeneratedSubtitlesRequest.php
MuxPhp/Models/UpdateLiveStreamNewAssetSettings.php
MuxPhp/Models/UpdateLiveStreamNewAssetSettingsStaticRenditionsRequest.php
MuxPhp/Models/UpdateLiveStreamRequest.php
MuxPhp/Models/UpdateReferrerDomainRestrictionRequest.php
MuxPhp/Models/UpdateTranscriptionVocabularyRequest.php
@@ -222,7 +225,6 @@ docs/Model/AssetNonStandardInputReasons.md
docs/Model/AssetRecordingTimes.md
docs/Model/AssetResponse.md
docs/Model/AssetStaticRenditions.md
docs/Model/AssetStaticRenditionsFiles.md
docs/Model/BreakdownValue.md
docs/Model/Broadcast.md
docs/Model/BroadcastLayout.md
@@ -237,6 +239,8 @@ docs/Model/CreatePlaybackIDResponse.md
docs/Model/CreatePlaybackRestrictionRequest.md
docs/Model/CreateSimulcastTargetRequest.md
docs/Model/CreateSpaceRequest.md
docs/Model/CreateStaticRenditionRequest.md
docs/Model/CreateStaticRenditionResponse.md
docs/Model/CreateTrackRequest.md
docs/Model/CreateTrackResponse.md
docs/Model/CreateTranscriptionVocabularyRequest.md
@@ -352,6 +356,7 @@ docs/Model/SpaceResponse.md
docs/Model/SpaceStatus.md
docs/Model/SpaceType.md
docs/Model/StartSpaceBroadcastResponse.md
docs/Model/StaticRendition.md
docs/Model/StopSpaceBroadcastResponse.md
docs/Model/Track.md
docs/Model/TranscriptionVocabulary.md
@@ -362,6 +367,7 @@ docs/Model/UpdateAssetRequest.md
docs/Model/UpdateLiveStreamEmbeddedSubtitlesRequest.md
docs/Model/UpdateLiveStreamGeneratedSubtitlesRequest.md
docs/Model/UpdateLiveStreamNewAssetSettings.md
docs/Model/UpdateLiveStreamNewAssetSettingsStaticRenditionsRequest.md
docs/Model/UpdateLiveStreamRequest.md
docs/Model/UpdateReferrerDomainRestrictionRequest.md
docs/Model/UpdateTranscriptionVocabularyRequest.md
536 changes: 536 additions & 0 deletions MuxPhp/Api/AssetsApi.php

Large diffs are not rendered by default.

517 changes: 517 additions & 0 deletions MuxPhp/Api/LiveStreamsApi.php

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions MuxPhp/Configuration.php
Original file line number Diff line number Diff line change
@@ -91,7 +91,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'Mux PHP | 3.21.0';
protected $userAgent = 'Mux PHP | 3.22.0';

/**
* Debug switch (default set to false)
@@ -400,7 +400,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: v1' . PHP_EOL;
$report .= ' SDK Package Version: 3.21.0' . PHP_EOL;
$report .= ' SDK Package Version: 3.22.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
8 changes: 4 additions & 4 deletions MuxPhp/Models/AssetStaticRenditions.php
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ class AssetStaticRenditions implements ModelInterface, ArrayAccess, \JsonSeriali
*/
protected static $openAPITypes = [
'status' => 'string',
'files' => '\MuxPhp\Models\AssetStaticRenditionsFiles[]'
'files' => '\MuxPhp\Models\StaticRendition[]'
];

/**
@@ -334,7 +334,7 @@ public function getStatus()
/**
* Sets status
*
* @param string|null $status Indicates the status of downloadable MP4 versions of this asset.
* @param string|null $status Indicates the status of downloadable MP4 versions of this asset. This field is only valid when `mp4_support` is enabled
*
* @return self
*/
@@ -363,7 +363,7 @@ public function setStatus($status)
/**
* Gets files
*
* @return \MuxPhp\Models\AssetStaticRenditionsFiles[]|null
* @return \MuxPhp\Models\StaticRendition[]|null
*/
public function getFiles()
{
@@ -373,7 +373,7 @@ public function getFiles()
/**
* Sets files
*
* @param \MuxPhp\Models\AssetStaticRenditionsFiles[]|null $files Array of file objects.
* @param \MuxPhp\Models\StaticRendition[]|null $files Array of file objects.
*
* @return self
*/
50 changes: 43 additions & 7 deletions MuxPhp/Models/CreateAssetRequest.php
Original file line number Diff line number Diff line change
@@ -71,7 +71,8 @@ class CreateAssetRequest implements ModelInterface, ArrayAccess, \JsonSerializab
'test' => 'bool',
'max_resolution_tier' => 'string',
'encoding_tier' => 'string',
'video_quality' => 'string'
'video_quality' => 'string',
'static_renditions' => '\MuxPhp\Models\CreateStaticRenditionRequest[]'
];

/**
@@ -93,7 +94,8 @@ class CreateAssetRequest implements ModelInterface, ArrayAccess, \JsonSerializab
'test' => 'boolean',
'max_resolution_tier' => null,
'encoding_tier' => null,
'video_quality' => null
'video_quality' => null,
'static_renditions' => null
];

/**
@@ -113,7 +115,8 @@ class CreateAssetRequest implements ModelInterface, ArrayAccess, \JsonSerializab
'test' => false,
'max_resolution_tier' => false,
'encoding_tier' => false,
'video_quality' => false
'video_quality' => false,
'static_renditions' => false
];

/**
@@ -203,7 +206,8 @@ public function isNullableSetToNull(string $property): bool
'test' => 'test',
'max_resolution_tier' => 'max_resolution_tier',
'encoding_tier' => 'encoding_tier',
'video_quality' => 'video_quality'
'video_quality' => 'video_quality',
'static_renditions' => 'static_renditions'
];

/**
@@ -223,7 +227,8 @@ public function isNullableSetToNull(string $property): bool
'test' => 'setTest',
'max_resolution_tier' => 'setMaxResolutionTier',
'encoding_tier' => 'setEncodingTier',
'video_quality' => 'setVideoQuality'
'video_quality' => 'setVideoQuality',
'static_renditions' => 'setStaticRenditions'
];

/**
@@ -243,7 +248,8 @@ public function isNullableSetToNull(string $property): bool
'test' => 'getTest',
'max_resolution_tier' => 'getMaxResolutionTier',
'encoding_tier' => 'getEncodingTier',
'video_quality' => 'getVideoQuality'
'video_quality' => 'getVideoQuality',
'static_renditions' => 'getStaticRenditions'
];

/**
@@ -405,6 +411,7 @@ public function __construct(array $data = null)
$this->setIfExists('max_resolution_tier', $data ?? [], null);
$this->setIfExists('encoding_tier', $data ?? [], null);
$this->setIfExists('video_quality', $data ?? [], null);
$this->setIfExists('static_renditions', $data ?? [], null);
}

/**
@@ -654,7 +661,7 @@ public function getMp4Support()
/**
* Sets mp4_support
*
* @param string|null $mp4_support Specify what level of support for mp4 playback. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). MP4 files are not produced for `none` (default). In most cases you should use our default HLS-based streaming playback (`{playback_id}.m3u8`) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information.
* @param string|null $mp4_support Specify what level of support for mp4 playback. You may not enable both `mp4_support` and `static_renditions`. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). MP4 files are not produced for `none` (default). In most cases you should use our default HLS-based streaming playback (`{playback_id}.m3u8`) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information.
*
* @return self
*/
@@ -895,6 +902,35 @@ public function setVideoQuality($video_quality)

return $this;
}

/**
* Gets static_renditions
*
* @return \MuxPhp\Models\CreateStaticRenditionRequest[]|null
*/
public function getStaticRenditions()
{
return $this->container['static_renditions'];
}

/**
* Sets static_renditions
*
* @param \MuxPhp\Models\CreateStaticRenditionRequest[]|null $static_renditions An array of static renditions to create for this asset. You may not enable both `static_renditions` and `mp4_support`
*
* @return self
*/
public function setStaticRenditions($static_renditions)
{

if (is_null($static_renditions)) {
throw new \InvalidArgumentException('non-nullable static_renditions cannot be null');
}

$this->container['static_renditions'] = $static_renditions;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
493 changes: 493 additions & 0 deletions MuxPhp/Models/CreateStaticRenditionRequest.php

Large diffs are not rendered by default.

407 changes: 407 additions & 0 deletions MuxPhp/Models/CreateStaticRenditionResponse.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion MuxPhp/Models/InputSettings.php
Original file line number Diff line number Diff line change
@@ -727,7 +727,7 @@ public function getPassthrough()
/**
* Sets passthrough
*
* @param string|null $passthrough This optional parameter should be used tracks with `type` of `text` and `text_type` set to `subtitles`.
* @param string|null $passthrough This optional parameter should be used for tracks with `type` of `text` and `text_type` set to `subtitles`.
*
* @return self
*/
1,055 changes: 1,055 additions & 0 deletions MuxPhp/Models/StaticRendition.php

Large diffs are not rendered by default.

84 changes: 77 additions & 7 deletions MuxPhp/Models/UpdateLiveStreamNewAssetSettings.php
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@
* UpdateLiveStreamNewAssetSettings Class Doc Comment
*
* @category Class
* @description Updates the new asset settings to use to generate a new asset for this live stream. Only the `mp4_support` and `master_access` settings may be updated.
* @description Updates the new asset settings to use to generate a new asset for this live stream. Only the `mp4_support`, `master_access`, and `video_quality` settings may be updated.
* @package MuxPhp
* @author Mux API team
* @link https://docs.mux.com
@@ -62,7 +62,8 @@ class UpdateLiveStreamNewAssetSettings implements ModelInterface, ArrayAccess, \
*/
protected static $openAPITypes = [
'mp4_support' => 'string',
'master_access' => 'string'
'master_access' => 'string',
'video_quality' => 'string'
];

/**
@@ -74,7 +75,8 @@ class UpdateLiveStreamNewAssetSettings implements ModelInterface, ArrayAccess, \
*/
protected static $openAPIFormats = [
'mp4_support' => null,
'master_access' => null
'master_access' => null,
'video_quality' => null
];

/**
@@ -84,7 +86,8 @@ class UpdateLiveStreamNewAssetSettings implements ModelInterface, ArrayAccess, \
*/
protected static array $openAPINullables = [
'mp4_support' => false,
'master_access' => false
'master_access' => false,
'video_quality' => false
];

/**
@@ -164,7 +167,8 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $attributeMap = [
'mp4_support' => 'mp4_support',
'master_access' => 'master_access'
'master_access' => 'master_access',
'video_quality' => 'video_quality'
];

/**
@@ -174,7 +178,8 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $setters = [
'mp4_support' => 'setMp4Support',
'master_access' => 'setMasterAccess'
'master_access' => 'setMasterAccess',
'video_quality' => 'setVideoQuality'
];

/**
@@ -184,7 +189,8 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $getters = [
'mp4_support' => 'getMp4Support',
'master_access' => 'getMasterAccess'
'master_access' => 'getMasterAccess',
'video_quality' => 'getVideoQuality'
];

/**
@@ -235,6 +241,8 @@ public function getModelName()
public const MP4_SUPPORT_AUDIO_ONLYCAPPED_1080P = 'audio-only,capped-1080p';
public const MASTER_ACCESS_TEMPORARY = 'temporary';
public const MASTER_ACCESS_NONE = 'none';
public const VIDEO_QUALITY_PLUS = 'plus';
public const VIDEO_QUALITY_PREMIUM = 'premium';

/**
* Gets allowable values of the enum
@@ -265,6 +273,19 @@ public function getMasterAccessAllowableValues()
];
}

/**
* Gets allowable values of the enum
*
* @return string[]
*/
public function getVideoQualityAllowableValues()
{
return [
self::VIDEO_QUALITY_PLUS,
self::VIDEO_QUALITY_PREMIUM,
];
}

/**
* Associative array for storing property values
*
@@ -285,6 +306,7 @@ public function __construct(array $data = null)
// src: https://github.com/OpenAPITools/openapi-generator/issues/9038
$this->setIfExists('mp4_support', $data ?? [], null);
$this->setIfExists('master_access', $data ?? [], null);
$this->setIfExists('video_quality', $data ?? [], null);
}

/**
@@ -332,6 +354,15 @@ public function listInvalidProperties()
);
}

$allowedValues = $this->getVideoQualityAllowableValues();
if (!is_null($this->container['video_quality']) && !in_array($this->container['video_quality'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value '%s' for 'video_quality', must be one of '%s'",
$this->container['video_quality'],
implode("', '", $allowedValues)
);
}

return $invalidProperties;
}

@@ -424,6 +455,45 @@ public function setMasterAccess($master_access)

return $this;
}

/**
* Gets video_quality
*
* @return string|null
*/
public function getVideoQuality()
{
return $this->container['video_quality'];
}

/**
* Sets video_quality
*
* @param string|null $video_quality The video quality controls the cost, quality, and available platform features for the asset. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels)
*
* @return self
*/
public function setVideoQuality($video_quality)
{
$allowedValues = $this->getVideoQualityAllowableValues();
if (!is_null($video_quality) && !in_array($video_quality, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value '%s' for 'video_quality', must be one of '%s'",
$video_quality,
implode("', '", $allowedValues)
)
);
}

if (is_null($video_quality)) {
throw new \InvalidArgumentException('non-nullable video_quality cannot be null');
}

$this->container['video_quality'] = $video_quality;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*

Large diffs are not rendered by default.

679 changes: 673 additions & 6 deletions MuxPhp/Models/VideoView.php

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -150,9 +150,11 @@ Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AssetsApi* | [**createAsset**](docs/Api/AssetsApi.md#createasset) | **POST** /video/v1/assets | Create an asset
*AssetsApi* | [**createAssetPlaybackId**](docs/Api/AssetsApi.md#createassetplaybackid) | **POST** /video/v1/assets/{ASSET_ID}/playback-ids | Create a playback ID
*AssetsApi* | [**createAssetStaticRendition**](docs/Api/AssetsApi.md#createassetstaticrendition) | **POST** /video/v1/assets/{ASSET_ID}/static-renditions | Create a static rendition for an asset
*AssetsApi* | [**createAssetTrack**](docs/Api/AssetsApi.md#createassettrack) | **POST** /video/v1/assets/{ASSET_ID}/tracks | Create an asset track
*AssetsApi* | [**deleteAsset**](docs/Api/AssetsApi.md#deleteasset) | **DELETE** /video/v1/assets/{ASSET_ID} | Delete an asset
*AssetsApi* | [**deleteAssetPlaybackId**](docs/Api/AssetsApi.md#deleteassetplaybackid) | **DELETE** /video/v1/assets/{ASSET_ID}/playback-ids/{PLAYBACK_ID} | Delete a playback ID
*AssetsApi* | [**deleteAssetStaticRendition**](docs/Api/AssetsApi.md#deleteassetstaticrendition) | **DELETE** /video/v1/assets/{ASSET_ID}/static-renditions/{STATIC_RENDITION_ID} | Delete a single static rendition for an asset
*AssetsApi* | [**deleteAssetTrack**](docs/Api/AssetsApi.md#deleteassettrack) | **DELETE** /video/v1/assets/{ASSET_ID}/tracks/{TRACK_ID} | Delete an asset track
*AssetsApi* | [**generateAssetTrackSubtitles**](docs/Api/AssetsApi.md#generateassettracksubtitles) | **POST** /video/v1/assets/{ASSET_ID}/tracks/{TRACK_ID}/generate-subtitles | Generate track subtitles
*AssetsApi* | [**getAsset**](docs/Api/AssetsApi.md#getasset) | **GET** /video/v1/assets/{ASSET_ID} | Retrieve an asset
@@ -185,6 +187,7 @@ Class | Method | HTTP request | Description
*LiveStreamsApi* | [**deleteLiveStream**](docs/Api/LiveStreamsApi.md#deletelivestream) | **DELETE** /video/v1/live-streams/{LIVE_STREAM_ID} | Delete a live stream
*LiveStreamsApi* | [**deleteLiveStreamPlaybackId**](docs/Api/LiveStreamsApi.md#deletelivestreamplaybackid) | **DELETE** /video/v1/live-streams/{LIVE_STREAM_ID}/playback-ids/{PLAYBACK_ID} | Delete a live stream playback ID
*LiveStreamsApi* | [**deleteLiveStreamSimulcastTarget**](docs/Api/LiveStreamsApi.md#deletelivestreamsimulcasttarget) | **DELETE** /video/v1/live-streams/{LIVE_STREAM_ID}/simulcast-targets/{SIMULCAST_TARGET_ID} | Delete a live stream simulcast target
*LiveStreamsApi* | [**deleteLiveStreamStaticRenditions**](docs/Api/LiveStreamsApi.md#deletelivestreamstaticrenditions) | **DELETE** /video/v1/live-streams/{LIVE_STREAM_ID}/new-asset-settings/static-renditions | Delete a live stream's static renditions setting for new assets
*LiveStreamsApi* | [**disableLiveStream**](docs/Api/LiveStreamsApi.md#disablelivestream) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/disable | Disable a live stream
*LiveStreamsApi* | [**enableLiveStream**](docs/Api/LiveStreamsApi.md#enablelivestream) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/enable | Enable a live stream
*LiveStreamsApi* | [**getLiveStream**](docs/Api/LiveStreamsApi.md#getlivestream) | **GET** /video/v1/live-streams/{LIVE_STREAM_ID} | Retrieve a live stream
@@ -196,6 +199,7 @@ Class | Method | HTTP request | Description
*LiveStreamsApi* | [**updateLiveStream**](docs/Api/LiveStreamsApi.md#updatelivestream) | **PATCH** /video/v1/live-streams/{LIVE_STREAM_ID} | Update a live stream
*LiveStreamsApi* | [**updateLiveStreamEmbeddedSubtitles**](docs/Api/LiveStreamsApi.md#updatelivestreamembeddedsubtitles) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/embedded-subtitles | Update a live stream's embedded subtitles
*LiveStreamsApi* | [**updateLiveStreamGeneratedSubtitles**](docs/Api/LiveStreamsApi.md#updatelivestreamgeneratedsubtitles) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/generated-subtitles | Update a live stream's generated subtitles
*LiveStreamsApi* | [**updateLiveStreamStaticRenditions**](docs/Api/LiveStreamsApi.md#updatelivestreamstaticrenditions) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/new-asset-settings/static-renditions | Update live stream static renditions for new assets
*MetricsApi* | [**getMetricTimeseriesData**](docs/Api/MetricsApi.md#getmetrictimeseriesdata) | **GET** /data/v1/metrics/{METRIC_ID}/timeseries | Get metric timeseries data
*MetricsApi* | [**getOverallValues**](docs/Api/MetricsApi.md#getoverallvalues) | **GET** /data/v1/metrics/{METRIC_ID}/overall | Get Overall values
*MetricsApi* | [**listAllMetricValues**](docs/Api/MetricsApi.md#listallmetricvalues) | **GET** /data/v1/metrics/comparison | List all metric values
@@ -263,7 +267,6 @@ Class | Method | HTTP request | Description
- [AssetRecordingTimes](docs/Model/AssetRecordingTimes.md)
- [AssetResponse](docs/Model/AssetResponse.md)
- [AssetStaticRenditions](docs/Model/AssetStaticRenditions.md)
- [AssetStaticRenditionsFiles](docs/Model/AssetStaticRenditionsFiles.md)
- [BreakdownValue](docs/Model/BreakdownValue.md)
- [Broadcast](docs/Model/Broadcast.md)
- [BroadcastLayout](docs/Model/BroadcastLayout.md)
@@ -278,6 +281,8 @@ Class | Method | HTTP request | Description
- [CreatePlaybackRestrictionRequest](docs/Model/CreatePlaybackRestrictionRequest.md)
- [CreateSimulcastTargetRequest](docs/Model/CreateSimulcastTargetRequest.md)
- [CreateSpaceRequest](docs/Model/CreateSpaceRequest.md)
- [CreateStaticRenditionRequest](docs/Model/CreateStaticRenditionRequest.md)
- [CreateStaticRenditionResponse](docs/Model/CreateStaticRenditionResponse.md)
- [CreateTrackRequest](docs/Model/CreateTrackRequest.md)
- [CreateTrackResponse](docs/Model/CreateTrackResponse.md)
- [CreateTranscriptionVocabularyRequest](docs/Model/CreateTranscriptionVocabularyRequest.md)
@@ -393,6 +398,7 @@ Class | Method | HTTP request | Description
- [SpaceStatus](docs/Model/SpaceStatus.md)
- [SpaceType](docs/Model/SpaceType.md)
- [StartSpaceBroadcastResponse](docs/Model/StartSpaceBroadcastResponse.md)
- [StaticRendition](docs/Model/StaticRendition.md)
- [StopSpaceBroadcastResponse](docs/Model/StopSpaceBroadcastResponse.md)
- [Track](docs/Model/Track.md)
- [TranscriptionVocabulary](docs/Model/TranscriptionVocabulary.md)
@@ -403,6 +409,7 @@ Class | Method | HTTP request | Description
- [UpdateLiveStreamEmbeddedSubtitlesRequest](docs/Model/UpdateLiveStreamEmbeddedSubtitlesRequest.md)
- [UpdateLiveStreamGeneratedSubtitlesRequest](docs/Model/UpdateLiveStreamGeneratedSubtitlesRequest.md)
- [UpdateLiveStreamNewAssetSettings](docs/Model/UpdateLiveStreamNewAssetSettings.md)
- [UpdateLiveStreamNewAssetSettingsStaticRenditionsRequest](docs/Model/UpdateLiveStreamNewAssetSettingsStaticRenditionsRequest.md)
- [UpdateLiveStreamRequest](docs/Model/UpdateLiveStreamRequest.md)
- [UpdateReferrerDomainRestrictionRequest](docs/Model/UpdateReferrerDomainRestrictionRequest.md)
- [UpdateTranscriptionVocabularyRequest](docs/Model/UpdateTranscriptionVocabularyRequest.md)
@@ -443,5 +450,5 @@ devex@mux.com
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: `v1`
- Package version: `3.21.0`
- Package version: `3.22.0`
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "muxinc/mux-php",
"version": "3.21.0",
"version": "3.22.0",
"description": "Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.",
"keywords": [
"php",
139 changes: 139 additions & 0 deletions docs/Api/AssetsApi.md
Original file line number Diff line number Diff line change
@@ -6,9 +6,11 @@ All URIs are relative to https://api.mux.com, except if the operation defines an
| ------------- | ------------- | ------------- |
| [**createAsset()**](AssetsApi.md#createAsset) | **POST** /video/v1/assets | Create an asset |
| [**createAssetPlaybackId()**](AssetsApi.md#createAssetPlaybackId) | **POST** /video/v1/assets/{ASSET_ID}/playback-ids | Create a playback ID |
| [**createAssetStaticRendition()**](AssetsApi.md#createAssetStaticRendition) | **POST** /video/v1/assets/{ASSET_ID}/static-renditions | Create a static rendition for an asset |
| [**createAssetTrack()**](AssetsApi.md#createAssetTrack) | **POST** /video/v1/assets/{ASSET_ID}/tracks | Create an asset track |
| [**deleteAsset()**](AssetsApi.md#deleteAsset) | **DELETE** /video/v1/assets/{ASSET_ID} | Delete an asset |
| [**deleteAssetPlaybackId()**](AssetsApi.md#deleteAssetPlaybackId) | **DELETE** /video/v1/assets/{ASSET_ID}/playback-ids/{PLAYBACK_ID} | Delete a playback ID |
| [**deleteAssetStaticRendition()**](AssetsApi.md#deleteAssetStaticRendition) | **DELETE** /video/v1/assets/{ASSET_ID}/static-renditions/{STATIC_RENDITION_ID} | Delete a single static rendition for an asset |
| [**deleteAssetTrack()**](AssetsApi.md#deleteAssetTrack) | **DELETE** /video/v1/assets/{ASSET_ID}/tracks/{TRACK_ID} | Delete an asset track |
| [**generateAssetTrackSubtitles()**](AssetsApi.md#generateAssetTrackSubtitles) | **POST** /video/v1/assets/{ASSET_ID}/tracks/{TRACK_ID}/generate-subtitles | Generate track subtitles |
| [**getAsset()**](AssetsApi.md#getAsset) | **GET** /video/v1/assets/{ASSET_ID} | Retrieve an asset |
@@ -166,6 +168,80 @@ try {
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `createAssetStaticRendition()`

```php
createAssetStaticRendition($asset_id, $create_static_rendition_request): \MuxPhp\Models\CreateStaticRenditionResponse
```

Create a static rendition for an asset

Creates a static rendition (i.e. MP4) for an asset

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: accessToken
$config = MuxPhp\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');


$apiInstance = new MuxPhp\Api\AssetsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$asset_id = 'asset_id_example'; // string | The asset ID.

// This API method wants a \MuxPhp\Models\CreateStaticRenditionRequest
// as the second parameter. That being said, these API docs are
// auto-generated from our OpenAPI specification, which
// gives us the example parameter as a JSON string. In this example,
// we'll use json_decode() to turn it into an associative array, which
// is compatible with the model.
//
// In your own code you should use an associative array, or
// use a "new \MuxPhp\Models\CreateStaticRenditionRequest" directly.
$create_static_rendition_request = json_decode('{"resolution":"highest"}',true); // \MuxPhp\Models\CreateStaticRenditionRequest

try {
$result = $apiInstance->createAssetStaticRendition($asset_id, $create_static_rendition_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AssetsApi->createAssetStaticRendition: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **asset_id** | **string**| The asset ID. | |
| **create_static_rendition_request** | [**\MuxPhp\Models\CreateStaticRenditionRequest**](../Model/CreateStaticRenditionRequest.md)| | |

### Return type

[**\MuxPhp\Models\CreateStaticRenditionResponse**](../Model/CreateStaticRenditionResponse.md)

### Authorization

[accessToken](../../README.md#accessToken)

### HTTP request headers

- **Content-Type**: `application/json`
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `createAssetTrack()`

```php
@@ -364,6 +440,69 @@ void (empty response body)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `deleteAssetStaticRendition()`

```php
deleteAssetStaticRendition($asset_id, $static_rendition_id)
```

Delete a single static rendition for an asset

Deletes a single static rendition for an asset

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: accessToken
$config = MuxPhp\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');


$apiInstance = new MuxPhp\Api\AssetsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$asset_id = 'asset_id_example'; // string | The asset ID.
$static_rendition_id = 'static_rendition_id_example'; // string | The static rendition ID.

try {
$apiInstance->deleteAssetStaticRendition($asset_id, $static_rendition_id);
} catch (Exception $e) {
echo 'Exception when calling AssetsApi->deleteAssetStaticRendition: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **asset_id** | **string**| The asset ID. | |
| **static_rendition_id** | **string**| The static rendition ID. | |

### Return type

void (empty response body)

### Authorization

[accessToken](../../README.md#accessToken)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `deleteAssetTrack()`

```php
137 changes: 137 additions & 0 deletions docs/Api/LiveStreamsApi.md
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@ All URIs are relative to https://api.mux.com, except if the operation defines an
| [**deleteLiveStream()**](LiveStreamsApi.md#deleteLiveStream) | **DELETE** /video/v1/live-streams/{LIVE_STREAM_ID} | Delete a live stream |
| [**deleteLiveStreamPlaybackId()**](LiveStreamsApi.md#deleteLiveStreamPlaybackId) | **DELETE** /video/v1/live-streams/{LIVE_STREAM_ID}/playback-ids/{PLAYBACK_ID} | Delete a live stream playback ID |
| [**deleteLiveStreamSimulcastTarget()**](LiveStreamsApi.md#deleteLiveStreamSimulcastTarget) | **DELETE** /video/v1/live-streams/{LIVE_STREAM_ID}/simulcast-targets/{SIMULCAST_TARGET_ID} | Delete a live stream simulcast target |
| [**deleteLiveStreamStaticRenditions()**](LiveStreamsApi.md#deleteLiveStreamStaticRenditions) | **DELETE** /video/v1/live-streams/{LIVE_STREAM_ID}/new-asset-settings/static-renditions | Delete a live stream&#39;s static renditions setting for new assets |
| [**disableLiveStream()**](LiveStreamsApi.md#disableLiveStream) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/disable | Disable a live stream |
| [**enableLiveStream()**](LiveStreamsApi.md#enableLiveStream) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/enable | Enable a live stream |
| [**getLiveStream()**](LiveStreamsApi.md#getLiveStream) | **GET** /video/v1/live-streams/{LIVE_STREAM_ID} | Retrieve a live stream |
@@ -21,6 +22,7 @@ All URIs are relative to https://api.mux.com, except if the operation defines an
| [**updateLiveStream()**](LiveStreamsApi.md#updateLiveStream) | **PATCH** /video/v1/live-streams/{LIVE_STREAM_ID} | Update a live stream |
| [**updateLiveStreamEmbeddedSubtitles()**](LiveStreamsApi.md#updateLiveStreamEmbeddedSubtitles) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/embedded-subtitles | Update a live stream&#39;s embedded subtitles |
| [**updateLiveStreamGeneratedSubtitles()**](LiveStreamsApi.md#updateLiveStreamGeneratedSubtitles) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/generated-subtitles | Update a live stream&#39;s generated subtitles |
| [**updateLiveStreamStaticRenditions()**](LiveStreamsApi.md#updateLiveStreamStaticRenditions) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/new-asset-settings/static-renditions | Update live stream static renditions for new assets |


## `createLiveStream()`
@@ -430,6 +432,67 @@ void (empty response body)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `deleteLiveStreamStaticRenditions()`

```php
deleteLiveStreamStaticRenditions($live_stream_id)
```

Delete a live stream's static renditions setting for new assets

Deletes a live stream's static renditions settings for new assets. Further assets made via this live stream will not create static renditions unless re-added.

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: accessToken
$config = MuxPhp\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');


$apiInstance = new MuxPhp\Api\LiveStreamsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$live_stream_id = 'live_stream_id_example'; // string | The live stream ID

try {
$apiInstance->deleteLiveStreamStaticRenditions($live_stream_id);
} catch (Exception $e) {
echo 'Exception when calling LiveStreamsApi->deleteLiveStreamStaticRenditions: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **live_stream_id** | **string**| The live stream ID | |

### Return type

void (empty response body)

### Authorization

[accessToken](../../README.md#accessToken)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `disableLiveStream()`

```php
@@ -1157,3 +1220,77 @@ try {
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)

## `updateLiveStreamStaticRenditions()`

```php
updateLiveStreamStaticRenditions($live_stream_id, $update_live_stream_new_asset_settings_static_renditions_request): \MuxPhp\Models\LiveStreamResponse
```

Update live stream static renditions for new assets

Updates a live stream's static renditions settings for new assets. Further assets made via this live stream will create static renditions per the settings provided. You must provide all static renditions desired.

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: accessToken
$config = MuxPhp\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');


$apiInstance = new MuxPhp\Api\LiveStreamsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$live_stream_id = 'live_stream_id_example'; // string | The live stream ID

// This API method wants a \MuxPhp\Models\UpdateLiveStreamNewAssetSettingsStaticRenditionsRequest
// as the second parameter. That being said, these API docs are
// auto-generated from our OpenAPI specification, which
// gives us the example parameter as a JSON string. In this example,
// we'll use json_decode() to turn it into an associative array, which
// is compatible with the model.
//
// In your own code you should use an associative array, or
// use a "new \MuxPhp\Models\UpdateLiveStreamNewAssetSettingsStaticRenditionsRequest" directly.
$update_live_stream_new_asset_settings_static_renditions_request = json_decode('{"static_renditions":[{"resolution":"audio-only"},{"resolution":"highest"}]}',true); // \MuxPhp\Models\UpdateLiveStreamNewAssetSettingsStaticRenditionsRequest

try {
$result = $apiInstance->updateLiveStreamStaticRenditions($live_stream_id, $update_live_stream_new_asset_settings_static_renditions_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LiveStreamsApi->updateLiveStreamStaticRenditions: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **live_stream_id** | **string**| The live stream ID | |
| **update_live_stream_new_asset_settings_static_renditions_request** | [**\MuxPhp\Models\UpdateLiveStreamNewAssetSettingsStaticRenditionsRequest**](../Model/UpdateLiveStreamNewAssetSettingsStaticRenditionsRequest.md)| | |

### Return type

[**\MuxPhp\Models\LiveStreamResponse**](../Model/LiveStreamResponse.md)

### Authorization

[accessToken](../../README.md#accessToken)

### HTTP request headers

- **Content-Type**: `application/json`
- **Accept**: `application/json`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
4 changes: 2 additions & 2 deletions docs/Model/AssetStaticRenditions.md
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**status** | **string** | Indicates the status of downloadable MP4 versions of this asset. | [optional] [default to STATUS_DISABLED]
**files** | [**\MuxPhp\Models\AssetStaticRenditionsFiles[]**](AssetStaticRenditionsFiles.md) | Array of file objects. | [optional]
**status** | **string** | Indicates the status of downloadable MP4 versions of this asset. This field is only valid when &#x60;mp4_support&#x60; is enabled | [optional] [default to STATUS_DISABLED]
**files** | [**\MuxPhp\Models\StaticRendition[]**](StaticRendition.md) | Array of file objects. | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
14 changes: 0 additions & 14 deletions docs/Model/AssetStaticRenditionsFiles.md

This file was deleted.

3 changes: 2 additions & 1 deletion docs/Model/CreateAssetRequest.md
Original file line number Diff line number Diff line change
@@ -9,12 +9,13 @@ Name | Type | Description | Notes
**advanced_playback_policies** | [**\MuxPhp\Models\CreatePlaybackIDRequest[]**](CreatePlaybackIDRequest.md) | An array of playback policy objects that you want applied to this asset and available through &#x60;playback_ids&#x60;. &#x60;advanced_playback_policies&#x60; must be used instead of &#x60;playback_policy&#x60; when creating a DRM playback ID. | [optional]
**per_title_encode** | **bool** | | [optional]
**passthrough** | **string** | Arbitrary user-supplied metadata that will be included in the asset details and related webhooks. Can be used to store your own ID for a video along with the asset. **Max: 255 characters**. | [optional]
**mp4_support** | **string** | Specify what level of support for mp4 playback. * The &#x60;capped-1080p&#x60; option produces a single MP4 file, called &#x60;capped-1080p.mp4&#x60;, with the video resolution capped at 1080p. This option produces an &#x60;audio.m4a&#x60; file for an audio-only asset. * The &#x60;audio-only&#x60; option produces a single M4A file, called &#x60;audio.m4a&#x60; for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The &#x60;audio-only,capped-1080p&#x60; option produces both the &#x60;audio.m4a&#x60; and &#x60;capped-1080p.mp4&#x60; files. Only the &#x60;capped-1080p.mp4&#x60; file is produced for a video-only asset, while only the &#x60;audio.m4a&#x60; file is produced for an audio-only asset. The &#x60;standard&#x60;(deprecated) option produces up to three MP4 files with different levels of resolution (&#x60;high.mp4&#x60;, &#x60;medium.mp4&#x60;, &#x60;low.mp4&#x60;, or &#x60;audio.m4a&#x60; for an audio-only asset). MP4 files are not produced for &#x60;none&#x60; (default). In most cases you should use our default HLS-based streaming playback (&#x60;{playback_id}.m3u8&#x60;) which can automatically adjust to viewers&#39; connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. | [optional]
**mp4_support** | **string** | Specify what level of support for mp4 playback. You may not enable both &#x60;mp4_support&#x60; and &#x60;static_renditions&#x60;. * The &#x60;capped-1080p&#x60; option produces a single MP4 file, called &#x60;capped-1080p.mp4&#x60;, with the video resolution capped at 1080p. This option produces an &#x60;audio.m4a&#x60; file for an audio-only asset. * The &#x60;audio-only&#x60; option produces a single M4A file, called &#x60;audio.m4a&#x60; for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The &#x60;audio-only,capped-1080p&#x60; option produces both the &#x60;audio.m4a&#x60; and &#x60;capped-1080p.mp4&#x60; files. Only the &#x60;capped-1080p.mp4&#x60; file is produced for a video-only asset, while only the &#x60;audio.m4a&#x60; file is produced for an audio-only asset. The &#x60;standard&#x60;(deprecated) option produces up to three MP4 files with different levels of resolution (&#x60;high.mp4&#x60;, &#x60;medium.mp4&#x60;, &#x60;low.mp4&#x60;, or &#x60;audio.m4a&#x60; for an audio-only asset). MP4 files are not produced for &#x60;none&#x60; (default). In most cases you should use our default HLS-based streaming playback (&#x60;{playback_id}.m3u8&#x60;) which can automatically adjust to viewers&#39; connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. | [optional]
**normalize_audio** | **bool** | Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. | [optional] [default to false]
**master_access** | **string** | Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. | [optional]
**test** | **bool** | Marks the asset as a test asset when the value is set to true. A Test asset can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test assets created. Test asset are watermarked with the Mux logo, limited to 10 seconds, deleted after 24 hrs. | [optional]
**max_resolution_tier** | **string** | Max resolution tier can be used to control the maximum &#x60;resolution_tier&#x60; your asset is encoded, stored, and streamed at. If not set, this defaults to &#x60;1080p&#x60;. | [optional]
**encoding_tier** | **string** | This field is deprecated. Please use &#x60;video_quality&#x60; instead. The encoding tier informs the cost, quality, and available platform features for the asset. The default encoding tier for an account can be set in the Mux Dashboard. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) | [optional]
**video_quality** | **string** | The video quality controls the cost, quality, and available platform features for the asset. The default video quality for an account can be set in the Mux Dashboard. This field replaces the deprecated &#x60;encoding_tier&#x60; value. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) | [optional]
**static_renditions** | [**\MuxPhp\Models\CreateStaticRenditionRequest[]**](CreateStaticRenditionRequest.md) | An array of static renditions to create for this asset. You may not enable both &#x60;static_renditions&#x60; and &#x60;mp4_support&#x60; | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
10 changes: 10 additions & 0 deletions docs/Model/CreateStaticRenditionRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# # CreateStaticRenditionRequest

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**resolution** | **string** | | [optional]
**passthrough** | **string** | Arbitrary user-supplied metadata set for the static rendition. Max 255 characters. | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
9 changes: 9 additions & 0 deletions docs/Model/CreateStaticRenditionResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# # CreateStaticRenditionResponse

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**\MuxPhp\Models\StaticRendition**](StaticRendition.md) | | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
2 changes: 1 addition & 1 deletion docs/Model/InputSettings.md
Original file line number Diff line number Diff line change
@@ -14,6 +14,6 @@ Name | Type | Description | Notes
**language_code** | **string** | The language code value must be a valid [BCP 47](https://tools.ietf.org/html/bcp47) specification compliant value. For example, &#x60;en&#x60; for English or &#x60;en-US&#x60; for the US version of English. This parameter is required for &#x60;text&#x60; and &#x60;audio&#x60; track types. | [optional]
**name** | **string** | The name of the track containing a human-readable description. This value must be unique within each group of &#x60;text&#x60; or &#x60;audio&#x60; track types. The HLS manifest will associate a subtitle text track with this value. For example, the value should be \&quot;English\&quot; for a subtitle text track with &#x60;language_code&#x60; set to &#x60;en&#x60;. This optional parameter should be used only for &#x60;text&#x60; and &#x60;audio&#x60; type tracks. This parameter can be optionally provided for the first video input to denote the name of the muxed audio track if present. If this parameter is not included, Mux will auto-populate based on the &#x60;input[].language_code&#x60; value. | [optional]
**closed_captions** | **bool** | Indicates the track provides Subtitles for the Deaf or Hard-of-hearing (SDH). This optional parameter should be used for tracks with &#x60;type&#x60; of &#x60;text&#x60; and &#x60;text_type&#x60; set to &#x60;subtitles&#x60;. | [optional]
**passthrough** | **string** | This optional parameter should be used tracks with &#x60;type&#x60; of &#x60;text&#x60; and &#x60;text_type&#x60; set to &#x60;subtitles&#x60;. | [optional]
**passthrough** | **string** | This optional parameter should be used for tracks with &#x60;type&#x60; of &#x60;text&#x60; and &#x60;text_type&#x60; set to &#x60;subtitles&#x60;. | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
20 changes: 20 additions & 0 deletions docs/Model/StaticRendition.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# # StaticRendition

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **string** | Name of the static rendition file | [optional]
**ext** | **string** | Extension of the static rendition file | [optional]
**height** | **int** | The height of the static rendition&#39;s file in pixels | [optional]
**width** | **int** | The width of the static rendition&#39;s file in pixels | [optional]
**bitrate** | **int** | The bitrate in bits per second | [optional]
**filesize** | **string** | The file size in bytes | [optional]
**type** | **string** | Indicates the static rendition type of this specific MP4 version of this asset. This field is only valid for &#x60;static_renditions&#x60;, not for &#x60;mp4_support&#x60;. | [optional]
**status** | **string** | Indicates the status of this specific MP4 version of this asset. This field is only valid for &#x60;static_renditions&#x60;, not for &#x60;mp4_support&#x60;. * &#x60;ready&#x60; indicates the MP4 has been generated and is ready for download * &#x60;preparing&#x60; indicates the asset has not been ingested or the static rendition is still being generated after an asset is ready * &#x60;skipped&#x60; indicates the static rendition will not be generated because the requested resolution conflicts with the asset attributes after the asset has been ingested * &#x60;errored&#x60; indicates the static rendition cannot be generated. For example, an asset could not be ingested | [optional]
**resolution_tier** | **string** | Indicates the resolution tier of this specific MP4 version of this asset. This field is only valid for &#x60;static_renditions&#x60;, not for &#x60;mp4_support&#x60;. | [optional]
**resolution** | **string** | Indicates the resolution of this specific MP4 version of this asset. This field is only valid for &#x60;static_renditions&#x60;, not for &#x60;mp4_support&#x60;. | [optional]
**id** | **string** | The ID of this static rendition, used in managing this static rendition. This field is only valid for &#x60;static_renditions&#x60;, not for &#x60;mp4_support&#x60;. | [optional]
**passthrough** | **string** | Arbitrary user-supplied metadata set for the static rendition. Max 255 characters. | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
1 change: 1 addition & 0 deletions docs/Model/UpdateLiveStreamNewAssetSettings.md
Original file line number Diff line number Diff line change
@@ -6,5 +6,6 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**mp4_support** | **string** | Specify what level of support for mp4 playback should be added to new assets generated from this live stream. * The &#x60;none&#x60; option disables MP4 support for new assets. MP4 files will not be produced for an asset generated from this live stream. * The &#x60;capped-1080p&#x60; option produces a single MP4 file, called &#x60;capped-1080p.mp4&#x60;, with the video resolution capped at 1080p. This option produces an &#x60;audio.m4a&#x60; file for an audio-only asset. * The &#x60;audio-only&#x60; option produces a single M4A file, called &#x60;audio.m4a&#x60; for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The &#x60;audio-only,capped-1080p&#x60; option produces both the &#x60;audio.m4a&#x60; and &#x60;capped-1080p.mp4&#x60; files. Only the &#x60;capped-1080p.mp4&#x60; file is produced for a video-only asset, while only the &#x60;audio.m4a&#x60; file is produced for an audio-only asset. * The &#x60;standard&#x60;(deprecated) option produces up to three MP4 files with different levels of resolution (&#x60;high.mp4&#x60;, &#x60;medium.mp4&#x60;, &#x60;low.mp4&#x60;, or &#x60;audio.m4a&#x60; for an audio-only asset). | [optional]
**master_access** | **string** | Add or remove access to the master version of the video. | [optional]
**video_quality** | **string** | The video quality controls the cost, quality, and available platform features for the asset. [See the video quality guide for more details.](https://docs.mux.com/guides/use-video-quality-levels) | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# # UpdateLiveStreamNewAssetSettingsStaticRenditionsRequest

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**static_renditions** | [**\MuxPhp\Models\CreateStaticRenditionRequest[]**](CreateStaticRenditionRequest.md) | | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
16 changes: 16 additions & 0 deletions docs/Model/VideoView.md
Original file line number Diff line number Diff line change
@@ -166,5 +166,21 @@ Name | Type | Description | Notes
**view_content_startup_time** | **int** | | [optional]
**ad_preroll_startup_time** | **int** | | [optional]
**view_dropped** | **bool** | | [optional]
**client_application_name** | **string** | | [optional]
**client_application_version** | **string** | | [optional]
**video_affiliate** | **string** | | [optional]
**viewer_plan** | **string** | | [optional]
**viewer_plan_status** | **string** | | [optional]
**viewer_plan_category** | **string** | | [optional]
**view_drm_level** | **string** | | [optional]
**video_brand** | **string** | | [optional]
**used_pip** | **bool** | | [optional]
**time_shift_enabled** | **bool** | | [optional]
**used_captions** | **bool** | | [optional]
**video_codec** | **string** | | [optional]
**audio_codec** | **string** | | [optional]
**video_dynamic_range_type** | **string** | | [optional]
**view_cdn_edge_pop** | **string** | | [optional]
**view_cdn_origin** | **string** | | [optional]

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
2 changes: 1 addition & 1 deletion gen/generator-config.json
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
"apiPackage": "Api",
"srcBasePath": "MuxPhp",
"invokerPackage": "MuxPhp",
"artifactVersion": "3.21.0",
"artifactVersion": "3.22.0",
"gitUserId": "muxinc",
"gitRepoId": "mux-php"
}