ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.404.5

This commit is contained in:
speakeasybot
2024-09-30 00:09:07 +00:00
parent 0629fb8510
commit bc83deeae0
13 changed files with 1006 additions and 834 deletions

View File

@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 5d77204e-e413-4fd0-a14a-bad3aee2247a
management:
docChecksum: 9f62ea35c6168986c8e3557d5df50b99
docChecksum: f387ae03f10decba230886eaab322b20
docVersion: 0.0.3
speakeasyVersion: 1.404.5
generationVersion: 2.426.2
releaseVersion: 0.8.3
configChecksum: 7acd189d39d792696f68aef7f53ad9cf
releaseVersion: 0.8.4
configChecksum: 533affc20b65c15402ffd92dfcb69f3b
repoURL: https://github.com/LukeHagar/plexswift.git
features:
swift:

View File

@@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
swift:
version: 0.8.3
version: 0.8.4
author: LukeHagar
description: Swift Client SDK Generated by Speakeasy
imports:

View File

@@ -11,7 +11,7 @@ targets:
plexswift:
source: plexapi
codeSamplesNamespace: code-samples-swift-plexswift
codeSamplesRevisionDigest: sha256:561a22e563c724e4842e763f8f56e47a04fe4c85aff5729d3f887d9633507bda
codeSamplesRevisionDigest: sha256:20106c25ec86489069579bcd149cfca15f0066540312450af1e531dce819d6db
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0

View File

@@ -63,7 +63,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.8.3"))
.package(url: "https://github.com/LukeHagar/plexswift.git", .upToNextMajor(from: "0.8.4"))
]
```
<!-- End SDK Installation [installation] -->
@@ -276,7 +276,7 @@ case .empty:
Certain parameters are configured globally. These parameters may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed.
For example, you can set `ClientID` to `"gcgzw5rz2xovp84b4vha3a40"` at SDK initialization and then you do not have to pass the same value on calls to operations like `getPin`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
For example, you can set `ClientID` to `"gcgzw5rz2xovp84b4vha3a40"` at SDK initialization and then you do not have to pass the same value on calls to operations like `getServerResources`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
### Available Globals
@@ -301,19 +301,26 @@ This is used to track the client application and its usage
import Foundation
import Plexswift
let client = Client()
let client = Client(security: .accessToken("<YOUR_API_KEY_HERE>"))
let response = try await client.plex.getPin(
request: Operations.GetPinRequest()
let response = try await client.plex.getServerResources(
request: Operations.GetServerResourcesRequest(
includeHttps: .enable,
includeIPv6: .enable,
includeRelay: .enable
)
)
switch response.data {
case .authPinContainer(let authPinContainer):
case .plexDevices(let plexDevices):
// Handle response
break
case .badRequest(let badRequest):
// Handle response
break
case .unauthorized(let unauthorized):
// Handle response
break
case .empty:
// Handle empty response
break

View File

@@ -713,3 +713,13 @@ Based on:
- [swift v0.8.3] .
### Releases
- [Swift Package Manager v0.8.3] https://github.com/LukeHagar/plexswift/releases/tag/v0.8.3 - .
## 2024-09-30 00:08:14
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.404.5 (2.426.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [swift v0.8.4] .
### Releases
- [Swift Package Manager v0.8.4] https://github.com/LukeHagar/plexswift/releases/tag/v0.8.4 - .

View File

@@ -21,6 +21,7 @@ extension Operations.GetServerResourcesRequest: Serializable {
extension Operations.GetServerResourcesRequest: QueryParameterSerializable {
func serializedQueryParameters(with parameterDefaults: ParameterDefaults?, formatOverride: SerializableFormat?) throws -> [QueryParameter] {
let builder = QueryParameterBuilder()
try builder.addQueryParameters(from: clientID, named: "X-Plex-Client-Identifier", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults)
try builder.addQueryParameters(from: includeHttps, named: "includeHttps", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults)
try builder.addQueryParameters(from: includeIPv6, named: "includeIPv6", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults)
try builder.addQueryParameters(from: includeRelay, named: "includeRelay", format: formatOverride ?? .query(style: .form, explode: true), parameterDefaults: parameterDefaults)

View File

@@ -11,28 +11,43 @@ extension Operations {
case trebleShowFeatures = "TREBLE-show-features"
case adCountdownTimer = "ad-countdown-timer"
case adaptiveBitrate = "adaptive_bitrate"
case albumTypes = "album-types"
case allowDvr = "allow_dvr"
case amazonLoopDebug = "amazon-loop-debug"
case avodAdAnalysis = "avod-ad-analysis"
case avodNewMedia = "avod-new-media"
case blacklistGetSignin = "blacklist_get_signin"
case boostVoices = "boost-voices"
case cameraUpload = "camera_upload"
case clientRadioStations = "client-radio-stations"
case cloudflareTurnstileRequired = "cloudflare-turnstile-required"
case cloudsync = "cloudsync"
case collections = "collections"
case commentsAndRepliesPushNotifications = "comments_and_replies_push_notifications"
case communityAccessPlexTv = "community_access_plex_tv"
case companionsSonos = "companions_sonos"
case contentFilter = "content_filter"
case customHomeRemoval = "custom-home-removal"
case disableHomeUserFriendships = "disable_home_user_friendships"
case disableSharingFriendships = "disable_sharing_friendships"
case downloadsGating = "downloads-gating"
case drmSupport = "drm_support"
case dvr = "dvr"
case dvrBlockUnsupportedCountries = "dvr-block-unsupported-countries"
case epgRecentChannels = "epg-recent-channels"
case excludeRestrictions = "exclude restrictions"
case federatedAuth = "federated-auth"
case friendRequestPushNotifications = "friend_request_push_notifications"
case grandfatherSync = "grandfather-sync"
case guidedUpgrade = "guided-upgrade"
case hardwareTranscoding = "hardware_transcoding"
case home = "home"
case hwtranscode = "hwtranscode"
case imaggaV2 = "imagga-v2"
case increasePasswordComplexity = "increase-password-complexity"
case ios14PrivacyBanner = "ios14-privacy-banner"
case iterableNotificationTokens = "iterable-notification-tokens"
case itemClusters = "item_clusters"
case keepPaymentMethod = "keep-payment-method"
case kevinBacon = "kevin-bacon"
case koreaConsent = "korea-consent"
@@ -41,26 +56,47 @@ extension Operations {
case lightningDvrPivot = "lightning-dvr-pivot"
case liveTvSupportIncompleteSegments = "live-tv-support-incomplete-segments"
case livetv = "livetv"
case lyrics = "lyrics"
case metadataSearch = "metadata_search"
case musicAnalysis = "music-analysis"
case musicVideos = "music_videos"
case newPlexPassPrices = "new_plex_pass_prices"
case newsProviderSunsetModal = "news-provider-sunset-modal"
case nominatim = "nominatim"
case pass = "pass"
case photosFavorites = "photos-favorites"
case photosMetadataEdition = "photos-metadata-edition"
case photosV6Edit = "photosV6-edit"
case photosV6TvAlbums = "photosV6-tv-albums"
case pmsHealth = "pms_health"
case premiumDashboard = "premium-dashboard"
case premiumMusicMetadata = "premium_music_metadata"
case radio = "radio"
case rateLimitClientToken = "rate-limit-client-token"
case scrobblingServicePlexTv = "scrobbling-service-plex-tv"
case sessionBandwidthRestrictions = "session_bandwidth_restrictions"
case sessionKick = "session_kick"
case sharedServerNotification = "shared_server_notification"
case sharedSourceNotification = "shared_source_notification"
case signinNotification = "signin_notification"
case signinWithApple = "signin_with_apple"
case silenceRemoval = "silence-removal"
case sleepTimer = "sleep-timer"
case springServeAdProvider = "spring_serve_ad_provider"
case sync = "sync"
case sweetFades = "sweet-fades"
case transcoderCache = "transcoder_cache"
case trailers = "trailers"
case tunerSharing = "tuner-sharing"
case twoFactorAuthentication = "two-factor-authentication"
case unsupportedtuners = "unsupportedtuners"
case upgrade3Ds2 = "upgrade-3ds2"
case visualizers = "visualizers"
case vodSchema = "vod-schema"
case vodCloudflare = "vod_cloudflare"
case volumeLeveling = "volume-leveling"
case watchTogetherInvite = "watch-together-invite"
case watchlistRss = "watchlist-rss"
case webServerDashboard = "web_server_dashboard"
case webhooks = "webhooks"
}}

View File

@@ -5,6 +5,11 @@ import Foundation
extension Operations {
/// A model object
public struct GetServerResourcesRequest: APIValue {
/// The unique identifier for the client application
/// This is used to track the client application and its usage
/// (UUID, serial number, or other number unique per device)
///
public let clientID: String?
/// Include Https entries in the results
public let includeHttps: Operations.IncludeHttps?
/// Include IPv6 entries in the results
@@ -16,13 +21,18 @@ extension Operations {
/// Creates an object with the specified parameters
///
/// - Parameter clientID: The unique identifier for the client application
/// This is used to track the client application and its usage
/// (UUID, serial number, or other number unique per device)
///
/// - Parameter includeHttps: Include Https entries in the results
/// - Parameter includeIPv6: Include IPv6 entries in the results
/// - Parameter includeRelay: Include Relay addresses in the results
/// E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
///
///
public init(includeHttps: Operations.IncludeHttps? = nil, includeIPv6: Operations.IncludeIPv6? = nil, includeRelay: Operations.IncludeRelay? = nil) {
public init(clientID: String? = nil, includeHttps: Operations.IncludeHttps? = nil, includeIPv6: Operations.IncludeIPv6? = nil, includeRelay: Operations.IncludeRelay? = nil) {
self.clientID = clientID
self.includeHttps = includeHttps
self.includeIPv6 = includeIPv6
self.includeRelay = includeRelay

View File

@@ -11,28 +11,43 @@ extension Operations {
case trebleShowFeatures = "TREBLE-show-features"
case adCountdownTimer = "ad-countdown-timer"
case adaptiveBitrate = "adaptive_bitrate"
case albumTypes = "album-types"
case allowDvr = "allow_dvr"
case amazonLoopDebug = "amazon-loop-debug"
case avodAdAnalysis = "avod-ad-analysis"
case avodNewMedia = "avod-new-media"
case blacklistGetSignin = "blacklist_get_signin"
case boostVoices = "boost-voices"
case cameraUpload = "camera_upload"
case clientRadioStations = "client-radio-stations"
case cloudflareTurnstileRequired = "cloudflare-turnstile-required"
case cloudsync = "cloudsync"
case collections = "collections"
case commentsAndRepliesPushNotifications = "comments_and_replies_push_notifications"
case communityAccessPlexTv = "community_access_plex_tv"
case companionsSonos = "companions_sonos"
case contentFilter = "content_filter"
case customHomeRemoval = "custom-home-removal"
case disableHomeUserFriendships = "disable_home_user_friendships"
case disableSharingFriendships = "disable_sharing_friendships"
case downloadsGating = "downloads-gating"
case drmSupport = "drm_support"
case dvr = "dvr"
case dvrBlockUnsupportedCountries = "dvr-block-unsupported-countries"
case epgRecentChannels = "epg-recent-channels"
case excludeRestrictions = "exclude restrictions"
case federatedAuth = "federated-auth"
case friendRequestPushNotifications = "friend_request_push_notifications"
case grandfatherSync = "grandfather-sync"
case guidedUpgrade = "guided-upgrade"
case hardwareTranscoding = "hardware_transcoding"
case home = "home"
case hwtranscode = "hwtranscode"
case imaggaV2 = "imagga-v2"
case increasePasswordComplexity = "increase-password-complexity"
case ios14PrivacyBanner = "ios14-privacy-banner"
case iterableNotificationTokens = "iterable-notification-tokens"
case itemClusters = "item_clusters"
case keepPaymentMethod = "keep-payment-method"
case kevinBacon = "kevin-bacon"
case koreaConsent = "korea-consent"
@@ -41,26 +56,47 @@ extension Operations {
case lightningDvrPivot = "lightning-dvr-pivot"
case liveTvSupportIncompleteSegments = "live-tv-support-incomplete-segments"
case livetv = "livetv"
case lyrics = "lyrics"
case metadataSearch = "metadata_search"
case musicAnalysis = "music-analysis"
case musicVideos = "music_videos"
case newPlexPassPrices = "new_plex_pass_prices"
case newsProviderSunsetModal = "news-provider-sunset-modal"
case nominatim = "nominatim"
case pass = "pass"
case photosFavorites = "photos-favorites"
case photosMetadataEdition = "photos-metadata-edition"
case photosV6Edit = "photosV6-edit"
case photosV6TvAlbums = "photosV6-tv-albums"
case pmsHealth = "pms_health"
case premiumDashboard = "premium-dashboard"
case premiumMusicMetadata = "premium_music_metadata"
case radio = "radio"
case rateLimitClientToken = "rate-limit-client-token"
case scrobblingServicePlexTv = "scrobbling-service-plex-tv"
case sessionBandwidthRestrictions = "session_bandwidth_restrictions"
case sessionKick = "session_kick"
case sharedServerNotification = "shared_server_notification"
case sharedSourceNotification = "shared_source_notification"
case signinNotification = "signin_notification"
case signinWithApple = "signin_with_apple"
case silenceRemoval = "silence-removal"
case sleepTimer = "sleep-timer"
case springServeAdProvider = "spring_serve_ad_provider"
case sync = "sync"
case sweetFades = "sweet-fades"
case transcoderCache = "transcoder_cache"
case trailers = "trailers"
case tunerSharing = "tuner-sharing"
case twoFactorAuthentication = "two-factor-authentication"
case unsupportedtuners = "unsupportedtuners"
case upgrade3Ds2 = "upgrade-3ds2"
case visualizers = "visualizers"
case vodSchema = "vod-schema"
case vodCloudflare = "vod_cloudflare"
case volumeLeveling = "volume-leveling"
case watchTogetherInvite = "watch-together-invite"
case watchlistRss = "watchlist-rss"
case webServerDashboard = "web_server_dashboard"
case webhooks = "webhooks"
}}

View File

@@ -11,28 +11,43 @@ extension Operations {
case trebleShowFeatures = "TREBLE-show-features"
case adCountdownTimer = "ad-countdown-timer"
case adaptiveBitrate = "adaptive_bitrate"
case albumTypes = "album-types"
case allowDvr = "allow_dvr"
case amazonLoopDebug = "amazon-loop-debug"
case avodAdAnalysis = "avod-ad-analysis"
case avodNewMedia = "avod-new-media"
case blacklistGetSignin = "blacklist_get_signin"
case boostVoices = "boost-voices"
case cameraUpload = "camera_upload"
case clientRadioStations = "client-radio-stations"
case cloudflareTurnstileRequired = "cloudflare-turnstile-required"
case cloudsync = "cloudsync"
case collections = "collections"
case commentsAndRepliesPushNotifications = "comments_and_replies_push_notifications"
case communityAccessPlexTv = "community_access_plex_tv"
case companionsSonos = "companions_sonos"
case contentFilter = "content_filter"
case customHomeRemoval = "custom-home-removal"
case disableHomeUserFriendships = "disable_home_user_friendships"
case disableSharingFriendships = "disable_sharing_friendships"
case downloadsGating = "downloads-gating"
case drmSupport = "drm_support"
case dvr = "dvr"
case dvrBlockUnsupportedCountries = "dvr-block-unsupported-countries"
case epgRecentChannels = "epg-recent-channels"
case excludeRestrictions = "exclude restrictions"
case federatedAuth = "federated-auth"
case friendRequestPushNotifications = "friend_request_push_notifications"
case grandfatherSync = "grandfather-sync"
case guidedUpgrade = "guided-upgrade"
case hardwareTranscoding = "hardware_transcoding"
case home = "home"
case hwtranscode = "hwtranscode"
case imaggaV2 = "imagga-v2"
case increasePasswordComplexity = "increase-password-complexity"
case ios14PrivacyBanner = "ios14-privacy-banner"
case iterableNotificationTokens = "iterable-notification-tokens"
case itemClusters = "item_clusters"
case keepPaymentMethod = "keep-payment-method"
case kevinBacon = "kevin-bacon"
case koreaConsent = "korea-consent"
@@ -41,26 +56,47 @@ extension Operations {
case lightningDvrPivot = "lightning-dvr-pivot"
case liveTvSupportIncompleteSegments = "live-tv-support-incomplete-segments"
case livetv = "livetv"
case lyrics = "lyrics"
case metadataSearch = "metadata_search"
case musicAnalysis = "music-analysis"
case musicVideos = "music_videos"
case newPlexPassPrices = "new_plex_pass_prices"
case newsProviderSunsetModal = "news-provider-sunset-modal"
case nominatim = "nominatim"
case pass = "pass"
case photosFavorites = "photos-favorites"
case photosMetadataEdition = "photos-metadata-edition"
case photosV6Edit = "photosV6-edit"
case photosV6TvAlbums = "photosV6-tv-albums"
case pmsHealth = "pms_health"
case premiumDashboard = "premium-dashboard"
case premiumMusicMetadata = "premium_music_metadata"
case radio = "radio"
case rateLimitClientToken = "rate-limit-client-token"
case scrobblingServicePlexTv = "scrobbling-service-plex-tv"
case sessionBandwidthRestrictions = "session_bandwidth_restrictions"
case sessionKick = "session_kick"
case sharedServerNotification = "shared_server_notification"
case sharedSourceNotification = "shared_source_notification"
case signinNotification = "signin_notification"
case signinWithApple = "signin_with_apple"
case silenceRemoval = "silence-removal"
case sleepTimer = "sleep-timer"
case springServeAdProvider = "spring_serve_ad_provider"
case sync = "sync"
case sweetFades = "sweet-fades"
case transcoderCache = "transcoder_cache"
case trailers = "trailers"
case tunerSharing = "tuner-sharing"
case twoFactorAuthentication = "two-factor-authentication"
case unsupportedtuners = "unsupportedtuners"
case upgrade3Ds2 = "upgrade-3ds2"
case visualizers = "visualizers"
case vodSchema = "vod-schema"
case vodCloudflare = "vod_cloudflare"
case volumeLeveling = "volume-leveling"
case watchTogetherInvite = "watch-together-invite"
case watchlistRss = "watchlist-rss"
case webServerDashboard = "web_server_dashboard"
case webhooks = "webhooks"
}}

View File

@@ -11,28 +11,43 @@ extension Operations {
case trebleShowFeatures = "TREBLE-show-features"
case adCountdownTimer = "ad-countdown-timer"
case adaptiveBitrate = "adaptive_bitrate"
case albumTypes = "album-types"
case allowDvr = "allow_dvr"
case amazonLoopDebug = "amazon-loop-debug"
case avodAdAnalysis = "avod-ad-analysis"
case avodNewMedia = "avod-new-media"
case blacklistGetSignin = "blacklist_get_signin"
case boostVoices = "boost-voices"
case cameraUpload = "camera_upload"
case clientRadioStations = "client-radio-stations"
case cloudflareTurnstileRequired = "cloudflare-turnstile-required"
case cloudsync = "cloudsync"
case collections = "collections"
case commentsAndRepliesPushNotifications = "comments_and_replies_push_notifications"
case communityAccessPlexTv = "community_access_plex_tv"
case companionsSonos = "companions_sonos"
case contentFilter = "content_filter"
case customHomeRemoval = "custom-home-removal"
case disableHomeUserFriendships = "disable_home_user_friendships"
case disableSharingFriendships = "disable_sharing_friendships"
case downloadsGating = "downloads-gating"
case drmSupport = "drm_support"
case dvr = "dvr"
case dvrBlockUnsupportedCountries = "dvr-block-unsupported-countries"
case epgRecentChannels = "epg-recent-channels"
case excludeRestrictions = "exclude restrictions"
case federatedAuth = "federated-auth"
case friendRequestPushNotifications = "friend_request_push_notifications"
case grandfatherSync = "grandfather-sync"
case guidedUpgrade = "guided-upgrade"
case hardwareTranscoding = "hardware_transcoding"
case home = "home"
case hwtranscode = "hwtranscode"
case imaggaV2 = "imagga-v2"
case increasePasswordComplexity = "increase-password-complexity"
case ios14PrivacyBanner = "ios14-privacy-banner"
case iterableNotificationTokens = "iterable-notification-tokens"
case itemClusters = "item_clusters"
case keepPaymentMethod = "keep-payment-method"
case kevinBacon = "kevin-bacon"
case koreaConsent = "korea-consent"
@@ -41,26 +56,47 @@ extension Operations {
case lightningDvrPivot = "lightning-dvr-pivot"
case liveTvSupportIncompleteSegments = "live-tv-support-incomplete-segments"
case livetv = "livetv"
case lyrics = "lyrics"
case metadataSearch = "metadata_search"
case musicAnalysis = "music-analysis"
case musicVideos = "music_videos"
case newPlexPassPrices = "new_plex_pass_prices"
case newsProviderSunsetModal = "news-provider-sunset-modal"
case nominatim = "nominatim"
case pass = "pass"
case photosFavorites = "photos-favorites"
case photosMetadataEdition = "photos-metadata-edition"
case photosV6Edit = "photosV6-edit"
case photosV6TvAlbums = "photosV6-tv-albums"
case pmsHealth = "pms_health"
case premiumDashboard = "premium-dashboard"
case premiumMusicMetadata = "premium_music_metadata"
case radio = "radio"
case rateLimitClientToken = "rate-limit-client-token"
case scrobblingServicePlexTv = "scrobbling-service-plex-tv"
case sessionBandwidthRestrictions = "session_bandwidth_restrictions"
case sessionKick = "session_kick"
case sharedServerNotification = "shared_server_notification"
case sharedSourceNotification = "shared_source_notification"
case signinNotification = "signin_notification"
case signinWithApple = "signin_with_apple"
case silenceRemoval = "silence-removal"
case sleepTimer = "sleep-timer"
case springServeAdProvider = "spring_serve_ad_provider"
case sync = "sync"
case sweetFades = "sweet-fades"
case transcoderCache = "transcoder_cache"
case trailers = "trailers"
case tunerSharing = "tuner-sharing"
case twoFactorAuthentication = "two-factor-authentication"
case unsupportedtuners = "unsupportedtuners"
case upgrade3Ds2 = "upgrade-3ds2"
case visualizers = "visualizers"
case vodSchema = "vod-schema"
case vodCloudflare = "vod_cloudflare"
case volumeLeveling = "volume-leveling"
case watchTogetherInvite = "watch-together-invite"
case watchlistRss = "watchlist-rss"
case webServerDashboard = "web_server_dashboard"
case webhooks = "webhooks"
}}

View File

@@ -62,7 +62,7 @@ final class URLRequestBuilder: URLRequestConfiguration {
urlRequest.setValue(contentType, forHTTPHeaderField: "Content-Type")
}
urlRequest.setValue("speakeasy-sdk/swift 0.8.3 2.426.2 0.0.3 plexswift", forHTTPHeaderField: telemetryHeader.headerName)
urlRequest.setValue("speakeasy-sdk/swift 0.8.4 2.426.2 0.0.3 plexswift", forHTTPHeaderField: telemetryHeader.headerName)
addSecurityParameters(to: &urlRequest)

File diff suppressed because it is too large Load Diff