From 146fba132c62f1c6c7e1440dcb75625c825ed50f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 23 Dec 2024 00:09:13 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.405.6 --- .speakeasy/gen.lock | 6 +++--- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 10 +++++----- README.md | 2 +- RELEASES.md | 12 +++++++++++- .../models/operations/GetSessionsMetadata.swift | 7 ++++++- .../internal/client/URLRequestBuilder.swift | 2 +- 7 files changed, 28 insertions(+), 13 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index f8b823e..8cde8b3 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 5d77204e-e413-4fd0-a14a-bad3aee2247a management: - docChecksum: 48a69156b6fa2af10cd43e971790441b + docChecksum: 1aad3e9216e8a6eb638f23d09b6c235a docVersion: 0.0.3 speakeasyVersion: 1.405.6 generationVersion: 2.428.1 - releaseVersion: 0.9.1 - configChecksum: 4aea6dc4c44624891ed01b4254f8eec0 + releaseVersion: 0.9.3 + configChecksum: 747a4f13508fa36c367c02037d9770ad repoURL: https://github.com/LukeHagar/plexswift.git features: swift: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 8776423..b821863 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true swift: - version: 0.9.1 + version: 0.9.3 author: LukeHagar description: Swift Client SDK Generated by Speakeasy imports: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index c3ea46b..d3be974 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -9,8 +9,8 @@ sources: - main plexapi: sourceNamespace: plexapi - sourceRevisionDigest: sha256:ccba0c42f1644923e2209e28da7a78195a843e48da1aeaaedbf8759f1a8a0fe0 - sourceBlobDigest: sha256:b362c110ef633288220a55ab50627374b996c64f2d9b8e020944e84ea2840332 + sourceRevisionDigest: sha256:28e2213b78ff9c789846a4a0b7ab9fb219079a1699d44b22d28474efc4f48eac + sourceBlobDigest: sha256:fa76c39de0ff801844dd56a76c26ab6ca88695fc9b42bb9ff9a8aab5b2b21277 tags: - latest - main @@ -18,10 +18,10 @@ targets: plexswift: source: plexapi sourceNamespace: plexapi - sourceRevisionDigest: sha256:ccba0c42f1644923e2209e28da7a78195a843e48da1aeaaedbf8759f1a8a0fe0 - sourceBlobDigest: sha256:b362c110ef633288220a55ab50627374b996c64f2d9b8e020944e84ea2840332 + sourceRevisionDigest: sha256:28e2213b78ff9c789846a4a0b7ab9fb219079a1699d44b22d28474efc4f48eac + sourceBlobDigest: sha256:fa76c39de0ff801844dd56a76c26ab6ca88695fc9b42bb9ff9a8aab5b2b21277 codeSamplesNamespace: code-samples-swift-plexswift - codeSamplesRevisionDigest: sha256:e1d19ff309b7bd527bcee54ef8f3565810bc4ede89ddba9d7e65683f1cf84f81 + codeSamplesRevisionDigest: sha256:56fe308c9812ce82035345ca8185559b5b800f86968512ec081e6ced409fc0ae workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index be6a686..6fd738d 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ You can add `plexswift` to your project directly in Xcode `(File > Add Packages. ```bash dependencies: [ - .package(url: "https://github.com/LukeHagar/plexswift.git", .upToNextMajor(from: "0.9.1")) + .package(url: "https://github.com/LukeHagar/plexswift.git", .upToNextMajor(from: "0.9.3")) ] ``` diff --git a/RELEASES.md b/RELEASES.md index e6a4141..ba18af6 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -782,4 +782,14 @@ Based on: ### Generated - [swift v0.9.1] . ### Releases -- [Swift Package Manager v0.9.1] https://github.com/LukeHagar/plexswift/releases/tag/v0.9.1 - . \ No newline at end of file +- [Swift Package Manager v0.9.1] https://github.com/LukeHagar/plexswift/releases/tag/v0.9.1 - . + +## 2024-12-23 00:08:20 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.405.6 (2.428.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [swift v0.9.3] . +### Releases +- [Swift Package Manager v0.9.3] https://github.com/LukeHagar/plexswift/releases/tag/v0.9.3 - . \ No newline at end of file diff --git a/Sources/Plexswift/models/operations/GetSessionsMetadata.swift b/Sources/Plexswift/models/operations/GetSessionsMetadata.swift index be6e29e..492f710 100644 --- a/Sources/Plexswift/models/operations/GetSessionsMetadata.swift +++ b/Sources/Plexswift/models/operations/GetSessionsMetadata.swift @@ -22,6 +22,8 @@ extension Operations { public let librarySectionTitle: String? public let media: [Operations.GetSessionsMedia]? public let musicAnalysisVersion: String? + /// The original untranslated name of the media item when non-english, or the track artist if an audio Item has an album artist + public let originalTitle: String? public let parentGuid: String? public let parentIndex: Int? public let parentKey: String? @@ -45,8 +47,9 @@ extension Operations { /// Creates an object with the specified parameters /// + /// - Parameter originalTitle: The original untranslated name of the media item when non-english, or the track artist if an audio Item has an album artist /// - public init(addedAt: Int? = nil, art: String? = nil, duration: Int? = nil, grandparentArt: String? = nil, grandparentGuid: String? = nil, grandparentKey: String? = nil, grandparentRatingKey: String? = nil, grandparentThumb: String? = nil, grandparentTitle: String? = nil, guid: String? = nil, index: Int? = nil, key: String? = nil, librarySectionID: String? = nil, librarySectionKey: String? = nil, librarySectionTitle: String? = nil, media: [Operations.GetSessionsMedia]? = nil, musicAnalysisVersion: String? = nil, parentGuid: String? = nil, parentIndex: Int? = nil, parentKey: String? = nil, parentRatingKey: String? = nil, parentStudio: String? = nil, parentThumb: String? = nil, parentTitle: String? = nil, parentYear: Int? = nil, player: Operations.Player? = nil, ratingCount: Int? = nil, ratingKey: String? = nil, session: Operations.Session? = nil, sessionKey: String? = nil, thumb: String? = nil, title: String? = nil, titleSort: String? = nil, type: String? = nil, updatedAt: Int? = nil, user: Operations.GetSessionsUser? = nil, viewOffset: Int? = nil) { + public init(addedAt: Int? = nil, art: String? = nil, duration: Int? = nil, grandparentArt: String? = nil, grandparentGuid: String? = nil, grandparentKey: String? = nil, grandparentRatingKey: String? = nil, grandparentThumb: String? = nil, grandparentTitle: String? = nil, guid: String? = nil, index: Int? = nil, key: String? = nil, librarySectionID: String? = nil, librarySectionKey: String? = nil, librarySectionTitle: String? = nil, media: [Operations.GetSessionsMedia]? = nil, musicAnalysisVersion: String? = nil, originalTitle: String? = nil, parentGuid: String? = nil, parentIndex: Int? = nil, parentKey: String? = nil, parentRatingKey: String? = nil, parentStudio: String? = nil, parentThumb: String? = nil, parentTitle: String? = nil, parentYear: Int? = nil, player: Operations.Player? = nil, ratingCount: Int? = nil, ratingKey: String? = nil, session: Operations.Session? = nil, sessionKey: String? = nil, thumb: String? = nil, title: String? = nil, titleSort: String? = nil, type: String? = nil, updatedAt: Int? = nil, user: Operations.GetSessionsUser? = nil, viewOffset: Int? = nil) { self.addedAt = addedAt self.art = art self.duration = duration @@ -64,6 +67,7 @@ extension Operations { self.librarySectionTitle = librarySectionTitle self.media = media self.musicAnalysisVersion = musicAnalysisVersion + self.originalTitle = originalTitle self.parentGuid = parentGuid self.parentIndex = parentIndex self.parentKey = parentKey @@ -106,6 +110,7 @@ extension Operations.GetSessionsMetadata: Codable { case librarySectionTitle case media = "Media" case musicAnalysisVersion + case originalTitle case parentGuid case parentIndex case parentKey diff --git a/Sources/plexswift/internal/client/URLRequestBuilder.swift b/Sources/plexswift/internal/client/URLRequestBuilder.swift index fad09f0..73a980d 100644 --- a/Sources/plexswift/internal/client/URLRequestBuilder.swift +++ b/Sources/plexswift/internal/client/URLRequestBuilder.swift @@ -62,7 +62,7 @@ final class URLRequestBuilder: URLRequestConfiguration { urlRequest.setValue(contentType, forHTTPHeaderField: "Content-Type") } - urlRequest.setValue("speakeasy-sdk/swift 0.9.1 2.428.1 0.0.3 plexswift", forHTTPHeaderField: telemetryHeader.headerName) + urlRequest.setValue("speakeasy-sdk/swift 0.9.3 2.428.1 0.0.3 plexswift", forHTTPHeaderField: telemetryHeader.headerName) addSecurityParameters(to: &urlRequest)