From 4ce3017dbec97833caf3825ebd9a07445c91dc86 Mon Sep 17 00:00:00 2001 From: olivierapivideo Date: Mon, 21 Oct 2024 13:22:34 +0000 Subject: [PATCH] Add summary feature --- .openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 | 2 +- ApiVideoUploader.podspec | 4 ++-- CHANGELOG.md | 3 +++ README.md | 4 ++-- Sources/APIs.swift | 2 +- Sources/Models/NotFound.swift | 4 ++++ docs/NotFound.md | 8 ++++---- project.yml | 2 +- 8 files changed, 18 insertions(+), 11 deletions(-) diff --git a/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 b/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 index 4621ff6..c243537 100644 --- a/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 +++ b/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 @@ -1 +1 @@ -6f374764cf476ad001123c84953d1980aaf6bc352573020d111594ab74058bf6 \ No newline at end of file +fa7f7f8c606b69d3dd31980ebbed0f1f0e18756b7544288b3b919f35d99b61bd \ No newline at end of file diff --git a/ApiVideoUploader.podspec b/ApiVideoUploader.podspec index 8b3bc10..0f80a5c 100644 --- a/ApiVideoUploader.podspec +++ b/ApiVideoUploader.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.4' - s.source = { :git => 'https://github.com/apivideo/api.video-swift-uploader', :tag => 'v1.2.4' } + s.version = '1.2.5' + s.source = { :git => 'https://github.com/apivideo/api.video-swift-uploader', :tag => 'v1.2.5' } 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 3c4780f..8a1d963 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.5] - 2024-10-21 +- Add support for Alamofire 5.10 + ## [1.2.4] - 2024-10-08 - Add transcript feature diff --git a/README.md b/README.md index bc65b93..1a3ce2b 100644 --- a/README.md +++ b/README.md @@ -52,14 +52,14 @@ It allows you to upload videos in two ways: Specify it in your `Cartfile`: ``` -github "apivideo/api.video-swift-uploader" ~> 1.2.4 +github "apivideo/api.video-swift-uploader" ~> 1.2.5 ``` Run `carthage update` #### CocoaPods -Add `pod 'ApiVideoUploader', '1.2.4'` in your `Podfile` +Add `pod 'ApiVideoUploader', '1.2.5'` in your `Podfile` Run `pod install` diff --git a/Sources/APIs.swift b/Sources/APIs.swift index e8eaf55..2818f1c 100644 --- a/Sources/APIs.swift +++ b/Sources/APIs.swift @@ -8,7 +8,7 @@ import Foundation public class ApiVideoUploader { public static var apiKey: String? = nil public static var basePath = "https://ws.api.video" - internal static var customHeaders:[String: String] = ["AV-Origin-Client": "swift-uploader:1.2.4"] + internal static var customHeaders:[String: String] = ["AV-Origin-Client": "swift-uploader:1.2.5"] private static var chunkSize: Int = 50 * 1024 * 1024 internal static var requestBuilderFactory: RequestBuilderFactory = AlamofireRequestBuilderFactory() internal static var credential = ApiVideoCredential() diff --git a/Sources/Models/NotFound.swift b/Sources/Models/NotFound.swift index c836f7c..87efdb1 100644 --- a/Sources/Models/NotFound.swift +++ b/Sources/Models/NotFound.swift @@ -12,9 +12,13 @@ import AnyCodable public struct NotFound: Codable, Hashable { + /** A link to the error documentation. */ public var type: String? + /** A description of the error that occurred. */ public var title: String? + /** The name of the parameter that caused the error. */ public var name: String? + /** The HTTP status code. */ public var status: Int? public init(type: String? = nil, title: String? = nil, name: String? = nil, status: Int? = nil) { diff --git a/docs/NotFound.md b/docs/NotFound.md index 122997f..426b1d2 100644 --- a/docs/NotFound.md +++ b/docs/NotFound.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **String** | | [optional] -**title** | **String** | | [optional] -**name** | **String** | | [optional] -**status** | **Int** | | [optional] +**type** | **String** | A link to the error documentation. | [optional] +**title** | **String** | A description of the error that occurred. | [optional] +**name** | **String** | The name of the parameter that caused the error. | [optional] +**status** | **Int** | The HTTP status code. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/project.yml b/project.yml index 138ffa9..3b37fc1 100644 --- a/project.yml +++ b/project.yml @@ -7,7 +7,7 @@ targets: sources: [Sources] info: path: ./Info.plist - version: 1.2.4 + version: 1.2.5 settings: APPLICATION_EXTENSION_API_ONLY: true scheme: {}