diff --git a/CHANGELOG.md b/CHANGELOG.md index 3cec674..52a5cc2 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-08-10 - Fix upload with upload token and video id when video is smaller than chunk size diff --git a/README.md b/README.md index 826027f..f537f80 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ Add this dependency to your project's POM: video.api java-api-client - 1.3.1 + 1.3.2 compile ``` @@ -78,7 +78,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -implementation "video.api:java-api-client:1.3.1" +implementation "video.api:java-api-client:1.3.2" ``` #### Others @@ -91,7 +91,7 @@ mvn clean package Then manually install the following JARs: -* `target/java-api-client-1.3.1.jar` +* `target/java-api-client-1.3.2.jar` * `target/lib/*.jar` ### Code sample diff --git a/api/openapi.yaml b/api/openapi.yaml index 5383d0c..22b973c 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -12055,14 +12055,17 @@ components: video for use immediately or in the future. properties: status: - description: 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. + description: | + 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. enum: - - missing - uploading - uploaded + - ingesting + - ingested example: uploaded type: string filesize: diff --git a/build.gradle b/build.gradle index bcabd82..eea0a5e 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'com.diffplug.spotless' apply plugin: 'maven-publish' group = 'video.api' -version = '1.3.1' +version = '1.3.2' buildscript { repositories { diff --git a/docs/VideoStatusIngest.md b/docs/VideoStatusIngest.md index b8eb78a..cf818ad 100644 --- a/docs/VideoStatusIngest.md +++ b/docs/VideoStatusIngest.md @@ -7,7 +7,7 @@ Details about the capturing, transferring, and storing of your video for use imm Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | [**StatusEnum**](#StatusEnum) | 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** | [**StatusEnum**](#StatusEnum) | 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** | **Integer** | The size of your file in bytes. | [optional] **receivedBytes** | [**List<BytesRange>**](BytesRange.md) | The total number of bytes received, listed for each chunk of the upload. | [optional] **receivedParts** | [**VideoStatusIngestReceivedParts**](VideoStatusIngestReceivedParts.md) | | [optional] @@ -18,9 +18,10 @@ Name | Type | Description | Notes Name | Value ---- | ----- -MISSING | "missing" UPLOADING | "uploading" UPLOADED | "uploaded" +INGESTING | "ingesting" +INGESTED | "ingested" ## Implemented Interfaces diff --git a/pom.xml b/pom.xml index 41872d3..9ac5e83 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ java-api-client jar ${project.groupId}:${project.artifactId} - 1.3.1 + 1.3.2 https://github.com/apivideo/api.video-java-client api.video Java API client diff --git a/src/main/java/video/api/client/api/ApiClient.java b/src/main/java/video/api/client/api/ApiClient.java index acfb99a..6ad8bd9 100644 --- a/src/main/java/video/api/client/api/ApiClient.java +++ b/src/main/java/video/api/client/api/ApiClient.java @@ -118,7 +118,7 @@ private OkHttpClient initHttpClient(List interceptors) { private void init() { verifyingSsl = true; json = new JSON(); - addDefaultHeader("AV-Origin-Client", "java:1.3.1"); + addDefaultHeader("AV-Origin-Client", "java:1.3.2"); } private boolean isValid(String regex, String field) { diff --git a/src/main/java/video/api/client/api/models/VideoStatusIngest.java b/src/main/java/video/api/client/api/models/VideoStatusIngest.java index 6e09afb..897aa1d 100644 --- a/src/main/java/video/api/client/api/models/VideoStatusIngest.java +++ b/src/main/java/video/api/client/api/models/VideoStatusIngest.java @@ -36,16 +36,20 @@ public class VideoStatusIngest implements Serializable { private static final long serialVersionUID = 1L; /** - * 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. + * 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. */ @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { - MISSING("missing"), - UPLOADING("uploading"), - UPLOADED("uploaded"); + UPLOADED("uploaded"), + + INGESTING("ingesting"), + + INGESTED("ingested"); private String value; @@ -107,13 +111,15 @@ public VideoStatusIngest status(StatusEnum 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. + * 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 status **/ @javax.annotation.Nullable - @ApiModelProperty(example = "uploaded", value = "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.") + @ApiModelProperty(example = "uploaded", value = "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. ") public StatusEnum getStatus() { return status;