diff --git a/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 b/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 index cf47e31..ee88061 100644 --- a/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 +++ b/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 @@ -1 +1 @@ -09cba6da28969c86b96778e25dab3f892246709c244e97aa0d53300dbebe1467 \ No newline at end of file +5678c55d78ebee898e89b47215b59cb855d1997cdda9202292548ec786d8e9f5 \ No newline at end of file diff --git a/ApiVideoClient.podspec b/ApiVideoClient.podspec index 244a0d6..343fa2a 100644 --- a/ApiVideoClient.podspec +++ b/ApiVideoClient.podspec @@ -5,8 +5,8 @@ Pod::Spec.new do |s| s.tvos.deployment_target = '10.0' # Add back when CocoaPods/CocoaPods#11558 is released #s.watchos.deployment_target = '3.0' - s.version = '1.2.1' - s.source = { :git => 'https://github.com/apivideo/api.video-swift-client', :tag => 'v1.2.1' } + s.version = '1.2.2' + s.source = { :git => 'https://github.com/apivideo/api.video-swift-client', :tag => 'v1.2.2' } s.authors = { 'Ecosystem Team' => 'ecosystem@api.video' } s.license = { :type => 'MIT' } s.homepage = 'https://docs.api.video' diff --git a/CHANGELOG.md b/CHANGELOG.md index f80c81e..de3f878 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog All changes to this project will be documented in this file. +## [1.2.2] - 2024-02-19 +- Update VideoStatusIngest enum + ## [1.2.1] - 2023-08-25 - Fix progressive upload with upload token and video id - Use pascal case for enums diff --git a/README.md b/README.md index e60faf0..f1bf467 100644 --- a/README.md +++ b/README.md @@ -55,14 +55,14 @@ api.video's Swift API client for iOS, macOS and tvOS streamlines the coding proc Specify it in your `Cartfile`: ``` -github "apivideo/api.video-swift-client" ~> 1.2.1 +github "apivideo/api.video-swift-client" ~> 1.2.2 ``` Run `carthage update` #### CocoaPods -Add `pod 'ApiVideoClient', '1.2.1'` in your `Podfile` +Add `pod 'ApiVideoClient', '1.2.2'` in your `Podfile` Run `pod install` diff --git a/Sources/APIs.swift b/Sources/APIs.swift index 5f8883e..ae43c61 100644 --- a/Sources/APIs.swift +++ b/Sources/APIs.swift @@ -8,7 +8,7 @@ import Foundation public class ApiVideoClient { public static var apiKey: String? = nil public static var basePath = "https://ws.api.video" - internal static var customHeaders:[String: String] = ["AV-Origin-Client": "swift:1.2.1"] + internal static var customHeaders:[String: String] = ["AV-Origin-Client": "swift:1.2.2"] private static var chunkSize: Int = 50 * 1024 * 1024 internal static var requestBuilderFactory: RequestBuilderFactory = AlamofireRequestBuilderFactory() internal static var credential = ApiVideoCredential() diff --git a/Sources/Models/VideoStatusIngest.swift b/Sources/Models/VideoStatusIngest.swift index 768d66a..a965fa8 100644 --- a/Sources/Models/VideoStatusIngest.swift +++ b/Sources/Models/VideoStatusIngest.swift @@ -14,11 +14,12 @@ import AnyCodable public struct VideoStatusIngest: Codable, Hashable { public enum Status: String, Codable, CaseIterable { - case missing = "missing" case uploading = "uploading" case uploaded = "uploaded" + case ingesting = "ingesting" + case ingested = "ingested" } - /** 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. */ public var status: Status? /** The size of your file in bytes. */ public var filesize: Int? diff --git a/docs/VideoStatusIngest.md b/docs/VideoStatusIngest.md index 51bb917..e7df09a 100644 --- a/docs/VideoStatusIngest.md +++ b/docs/VideoStatusIngest.md @@ -3,7 +3,7 @@ ## Properties 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** | [BytesRange] | The total number of bytes received, listed for each chunk of the upload. | [optional] **receivedParts** | [**VideoStatusIngestReceivedParts**](VideoStatusIngestReceivedParts.md) | | [optional] diff --git a/project.yml b/project.yml index 887c2fc..90556cb 100644 --- a/project.yml +++ b/project.yml @@ -7,7 +7,7 @@ targets: sources: [Sources] info: path: ./Info.plist - version: 1.2.1 + version: 1.2.2 settings: APPLICATION_EXTENSION_API_ONLY: true scheme: {}