Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.404.5
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Sep 30, 2024
1 parent 0629fb8 commit bc83dee
Show file tree
Hide file tree
Showing 13 changed files with 591 additions and 419 deletions.
6 changes: 3 additions & 3 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] -->
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -712,4 +712,14 @@ Based on:
### Generated
- [swift v0.8.3] .
### Releases
- [Swift Package Manager v0.8.3] https://github.com/LukeHagar/plexswift/releases/tag/v0.8.3 - .
- [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 - .
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
36 changes: 36 additions & 0 deletions Sources/Plexswift/models/operations/Features.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
}}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
36 changes: 36 additions & 0 deletions Sources/Plexswift/models/operations/GetTokenDetailsFeatures.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
}}
Loading

0 comments on commit bc83dee

Please sign in to comment.