diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cc4a6a..87ea0eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog All changes to this project will be documented in this file. +## [1.3.2] - 2024-02-19 +- Update VideoStatusIngest enum + ## [1.3.1] - 2023-06-28 - Added missing AuthenticationFailedException diff --git a/docs/Model/VideoStatusIngest.md b/docs/Model/VideoStatusIngest.md index 97c76bf..b7361b1 100644 --- a/docs/Model/VideoStatusIngest.md +++ b/docs/Model/VideoStatusIngest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **string** | There are three possible ingest statuses. missing - you are missing information required to ingest the video. uploading - the video is in the process of being uploaded. uploaded - the video is ready for use. | [optional] +**status** | **string** | There are four possible statuses depending on how you provide a video file: - `uploading` - the API is gathering the video source file from an upload. - `uploaded` - the video file is fully uploaded. - `ingesting` - the API is gathering the video source file from either a URL, or from cloning. - `ingested` - the video file is fully stored. | [optional] **filesize** | **int** | The size of your file in bytes. | [optional] **receivedBytes** | [**\ApiVideo\Client\Model\BytesRange[]**](BytesRange.md) | The total number of bytes received, listed for each chunk of the upload. | [optional] **receivedParts** | [**\ApiVideo\Client\Model\VideoStatusIngestReceivedParts**](VideoStatusIngestReceivedParts.md) | | [optional] diff --git a/src/BaseClient.php b/src/BaseClient.php index da6bff5..56e4777 100644 --- a/src/BaseClient.php +++ b/src/BaseClient.php @@ -78,7 +78,7 @@ public function __construct(string $baseUri, ?string $apiKey, ClientInterface $h $this->originSdkHeaderValue = ""; if ($apiKey) { - $this->authenticator = new Authenticator($this, $apiKey, 'php:1.3.1'); + $this->authenticator = new Authenticator($this, $apiKey, 'php:1.3.2'); } } @@ -111,7 +111,7 @@ public function request(Request $commandRequest, bool $skipAuthRequest = false): if($this->originSdkHeaderValue) { $request = $request->withHeader('AV-Origin-Sdk', $this->originSdkHeaderValue); } - $request = $request->withHeader('AV-Origin-Client', 'php:1.3.1'); + $request = $request->withHeader('AV-Origin-Client', 'php:1.3.2'); return $this->sendRequest($request, $skipAuthRequest); } diff --git a/src/Model/VideoStatusIngest.php b/src/Model/VideoStatusIngest.php index 7acc834..f4c2796 100644 --- a/src/Model/VideoStatusIngest.php +++ b/src/Model/VideoStatusIngest.php @@ -71,9 +71,10 @@ public static function getDefinition(): ModelDefinition ); } - const STATUS_MISSING = 'missing'; const STATUS_UPLOADING = 'uploading'; const STATUS_UPLOADED = 'uploaded'; + const STATUS_INGESTING = 'ingesting'; + const STATUS_INGESTED = 'ingested'; /** * Gets allowable values of the enum @@ -83,9 +84,10 @@ public static function getDefinition(): ModelDefinition public function getStatusAllowableValues() { return [ - self::STATUS_MISSING, self::STATUS_UPLOADING, self::STATUS_UPLOADED, + self::STATUS_INGESTING, + self::STATUS_INGESTED, ]; } @@ -156,7 +158,7 @@ public function getStatus() /** * Sets status * - * @param string|null $status There are three possible ingest statuses. missing - you are missing information required to ingest the video. uploading - the video is in the process of being uploaded. uploaded - the video is ready for use. + * @param string|null $status There are four possible statuses depending on how you provide a video file: - `uploading` - the API is gathering the video source file from an upload. - `uploaded` - the video file is fully uploaded. - `ingesting` - the API is gathering the video source file from either a URL, or from cloning. - `ingested` - the video file is fully stored. * * @return self */