diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index e4a6f89..5517596 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 5a8dbcbc-e0ee-41f0-9d84-b8b50567d1e9 management: - docChecksum: 9f62ea35c6168986c8e3557d5df50b99 + docChecksum: f387ae03f10decba230886eaab322b20 docVersion: 0.0.3 speakeasyVersion: 1.404.5 generationVersion: 2.426.2 - releaseVersion: 0.8.3 - configChecksum: fec2c17247b5fd283d2d5f2a7e6ff6d1 + releaseVersion: 0.8.4 + configChecksum: 443a1c0c9fca201cfe4e2527124b0cad repoURL: https://github.com/LukeHagar/plexcsharp.git repoSubDirectory: . published: true @@ -1922,6 +1922,7 @@ examples: includeHttps: 1 includeRelay: 1 includeIPv6: 1 + X-Plex-Client-Identifier: "gcgzw5rz2xovp84b4vha3a40" responses: "401": application/json: {"errors": []} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index d0f6662..d7896a3 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true csharp: - version: 0.8.3 + version: 0.8.4 additionalDependencies: [] author: LukeHagar clientServerStatusCodesAsErrors: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 25c6171..ab5a855 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -16,8 +16,8 @@ sources: - main plexapi: sourceNamespace: plexapi - sourceRevisionDigest: sha256:ed1af8e79d553cc0bf2f8f7975f445d80cb8bd58390bca18d1352577da5ec5ed - sourceBlobDigest: sha256:157db2a169209c18fdca786b671c5da8d2b14dc3005574d08c9d667320869093 + sourceRevisionDigest: sha256:a9bd67eaa35b8311162ae769209f725cc5da16e57976b4928c54594c02cd451c + sourceBlobDigest: sha256:43ddffba137c37d2f64f8db185179a273bcc5ca7242594c932da99d1eb7f3e98 tags: - latest - main @@ -25,10 +25,10 @@ targets: plexcsharp: source: plexapi sourceNamespace: plexapi - sourceRevisionDigest: sha256:ed1af8e79d553cc0bf2f8f7975f445d80cb8bd58390bca18d1352577da5ec5ed - sourceBlobDigest: sha256:157db2a169209c18fdca786b671c5da8d2b14dc3005574d08c9d667320869093 + sourceRevisionDigest: sha256:a9bd67eaa35b8311162ae769209f725cc5da16e57976b4928c54594c02cd451c + sourceBlobDigest: sha256:43ddffba137c37d2f64f8db185179a273bcc5ca7242594c932da99d1eb7f3e98 codeSamplesNamespace: code-samples-csharp-plexcsharp - codeSamplesRevisionDigest: sha256:0711c7458cb5cacdabcd9e40a1121e20cb5e2d52e796814c15589d2b6d32d9da + codeSamplesRevisionDigest: sha256:7ded6433193c6ba017e3716ef54439dc16175b652f8c048dbaef244a52cf1af2 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/LukeHagar/PlexAPI/SDK/Activities.cs b/LukeHagar/PlexAPI/SDK/Activities.cs index fceba18..c8269c0 100644 --- a/LukeHagar/PlexAPI/SDK/Activities.cs +++ b/LukeHagar/PlexAPI/SDK/Activities.cs @@ -74,10 +74,10 @@ namespace LukeHagar.PlexAPI.SDK { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.8.3"; + private const string _sdkVersion = "0.8.4"; private const string _sdkGenVersion = "2.426.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.8.3 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.8.4 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/LukeHagar/PlexAPI/SDK/Authentication.cs b/LukeHagar/PlexAPI/SDK/Authentication.cs index cae9010..c5d071c 100644 --- a/LukeHagar/PlexAPI/SDK/Authentication.cs +++ b/LukeHagar/PlexAPI/SDK/Authentication.cs @@ -95,10 +95,10 @@ namespace LukeHagar.PlexAPI.SDK }; public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.8.3"; + private const string _sdkVersion = "0.8.4"; private const string _sdkGenVersion = "2.426.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.8.3 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.8.4 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/LukeHagar/PlexAPI/SDK/Butler.cs b/LukeHagar/PlexAPI/SDK/Butler.cs index 99d5eea..4b8233f 100644 --- a/LukeHagar/PlexAPI/SDK/Butler.cs +++ b/LukeHagar/PlexAPI/SDK/Butler.cs @@ -101,10 +101,10 @@ namespace LukeHagar.PlexAPI.SDK { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.8.3"; + private const string _sdkVersion = "0.8.4"; private const string _sdkGenVersion = "2.426.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.8.3 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.8.4 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/LukeHagar/PlexAPI/SDK/Hubs.cs b/LukeHagar/PlexAPI/SDK/Hubs.cs index ce6909a..1285eef 100644 --- a/LukeHagar/PlexAPI/SDK/Hubs.cs +++ b/LukeHagar/PlexAPI/SDK/Hubs.cs @@ -73,10 +73,10 @@ namespace LukeHagar.PlexAPI.SDK { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.8.3"; + private const string _sdkVersion = "0.8.4"; private const string _sdkGenVersion = "2.426.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.8.3 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.8.4 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/LukeHagar/PlexAPI/SDK/Library.cs b/LukeHagar/PlexAPI/SDK/Library.cs index 130945a..421361f 100644 --- a/LukeHagar/PlexAPI/SDK/Library.cs +++ b/LukeHagar/PlexAPI/SDK/Library.cs @@ -241,10 +241,10 @@ namespace LukeHagar.PlexAPI.SDK { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.8.3"; + private const string _sdkVersion = "0.8.4"; private const string _sdkGenVersion = "2.426.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.8.3 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.8.4 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/LukeHagar/PlexAPI/SDK/Log.cs b/LukeHagar/PlexAPI/SDK/Log.cs index b3e7a41..1e9d642 100644 --- a/LukeHagar/PlexAPI/SDK/Log.cs +++ b/LukeHagar/PlexAPI/SDK/Log.cs @@ -94,10 +94,10 @@ namespace LukeHagar.PlexAPI.SDK { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.8.3"; + private const string _sdkVersion = "0.8.4"; private const string _sdkGenVersion = "2.426.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.8.3 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.8.4 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/LukeHagar/PlexAPI/SDK/LukeHagar.PlexAPI.SDK.csproj b/LukeHagar/PlexAPI/SDK/LukeHagar.PlexAPI.SDK.csproj index b3f9776..d9b7748 100644 --- a/LukeHagar/PlexAPI/SDK/LukeHagar.PlexAPI.SDK.csproj +++ b/LukeHagar/PlexAPI/SDK/LukeHagar.PlexAPI.SDK.csproj @@ -3,7 +3,7 @@ true LukeHagar.PlexAPI.SDK - 0.8.3 + 0.8.4 net8.0 LukeHagar Copyright (c) LukeHagar 2024 diff --git a/LukeHagar/PlexAPI/SDK/Media.cs b/LukeHagar/PlexAPI/SDK/Media.cs index 5597732..3a84234 100644 --- a/LukeHagar/PlexAPI/SDK/Media.cs +++ b/LukeHagar/PlexAPI/SDK/Media.cs @@ -90,10 +90,10 @@ namespace LukeHagar.PlexAPI.SDK { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.8.3"; + private const string _sdkVersion = "0.8.4"; private const string _sdkGenVersion = "2.426.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.8.3 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.8.4 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/LukeHagar/PlexAPI/SDK/Models/Requests/Features.cs b/LukeHagar/PlexAPI/SDK/Models/Requests/Features.cs index ebf31c3..74440b6 100644 --- a/LukeHagar/PlexAPI/SDK/Models/Requests/Features.cs +++ b/LukeHagar/PlexAPI/SDK/Models/Requests/Features.cs @@ -29,6 +29,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests AdCountdownTimer, [JsonProperty("adaptive_bitrate")] AdaptiveBitrate, + [JsonProperty("album-types")] + AlbumTypes, + [JsonProperty("allow_dvr")] + AllowDvr, [JsonProperty("amazon-loop-debug")] AmazonLoopDebug, [JsonProperty("avod-ad-analysis")] @@ -37,10 +41,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests AvodNewMedia, [JsonProperty("blacklist_get_signin")] BlacklistGetSignin, + [JsonProperty("boost-voices")] + BoostVoices, + [JsonProperty("camera_upload")] + CameraUpload, [JsonProperty("client-radio-stations")] ClientRadioStations, [JsonProperty("cloudflare-turnstile-required")] CloudflareTurnstileRequired, + [JsonProperty("cloudsync")] + Cloudsync, [JsonProperty("collections")] Collections, [JsonProperty("comments_and_replies_push_notifications")] @@ -49,30 +59,50 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests CommunityAccessPlexTv, [JsonProperty("companions_sonos")] CompanionsSonos, + [JsonProperty("content_filter")] + ContentFilter, [JsonProperty("custom-home-removal")] CustomHomeRemoval, [JsonProperty("disable_home_user_friendships")] DisableHomeUserFriendships, [JsonProperty("disable_sharing_friendships")] DisableSharingFriendships, + [JsonProperty("downloads-gating")] + DownloadsGating, [JsonProperty("drm_support")] DrmSupport, + [JsonProperty("dvr")] + Dvr, + [JsonProperty("dvr-block-unsupported-countries")] + DvrBlockUnsupportedCountries, + [JsonProperty("epg-recent-channels")] + EpgRecentChannels, [JsonProperty("exclude restrictions")] ExcludeRestrictions, [JsonProperty("federated-auth")] FederatedAuth, [JsonProperty("friend_request_push_notifications")] FriendRequestPushNotifications, + [JsonProperty("grandfather-sync")] + GrandfatherSync, [JsonProperty("guided-upgrade")] GuidedUpgrade, + [JsonProperty("hardware_transcoding")] + HardwareTranscoding, [JsonProperty("home")] Home, + [JsonProperty("hwtranscode")] + Hwtranscode, + [JsonProperty("imagga-v2")] + ImaggaV2, [JsonProperty("increase-password-complexity")] IncreasePasswordComplexity, [JsonProperty("ios14-privacy-banner")] Ios14PrivacyBanner, [JsonProperty("iterable-notification-tokens")] IterableNotificationTokens, + [JsonProperty("item_clusters")] + ItemClusters, [JsonProperty("keep-payment-method")] KeepPaymentMethod, [JsonProperty("kevin-bacon")] @@ -89,34 +119,68 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests LiveTvSupportIncompleteSegments, [JsonProperty("livetv")] Livetv, + [JsonProperty("lyrics")] + Lyrics, [JsonProperty("metadata_search")] MetadataSearch, + [JsonProperty("music-analysis")] + MusicAnalysis, + [JsonProperty("music_videos")] + MusicVideos, [JsonProperty("new_plex_pass_prices")] NewPlexPassPrices, [JsonProperty("news-provider-sunset-modal")] NewsProviderSunsetModal, + [JsonProperty("nominatim")] + Nominatim, + [JsonProperty("pass")] + Pass, [JsonProperty("photos-favorites")] PhotosFavorites, [JsonProperty("photos-metadata-edition")] PhotosMetadataEdition, + [JsonProperty("photosV6-edit")] + PhotosV6Edit, + [JsonProperty("photosV6-tv-albums")] + PhotosV6TvAlbums, [JsonProperty("pms_health")] PmsHealth, + [JsonProperty("premium-dashboard")] + PremiumDashboard, + [JsonProperty("premium_music_metadata")] + PremiumMusicMetadata, [JsonProperty("radio")] Radio, [JsonProperty("rate-limit-client-token")] RateLimitClientToken, [JsonProperty("scrobbling-service-plex-tv")] ScrobblingServicePlexTv, + [JsonProperty("session_bandwidth_restrictions")] + SessionBandwidthRestrictions, + [JsonProperty("session_kick")] + SessionKick, [JsonProperty("shared_server_notification")] SharedServerNotification, [JsonProperty("shared_source_notification")] SharedSourceNotification, + [JsonProperty("signin_notification")] + SigninNotification, [JsonProperty("signin_with_apple")] SigninWithApple, + [JsonProperty("silence-removal")] + SilenceRemoval, + [JsonProperty("sleep-timer")] + SleepTimer, [JsonProperty("spring_serve_ad_provider")] SpringServeAdProvider, + [JsonProperty("sync")] + Sync, + [JsonProperty("sweet-fades")] + SweetFades, [JsonProperty("transcoder_cache")] TranscoderCache, + [JsonProperty("trailers")] + Trailers, [JsonProperty("tuner-sharing")] TunerSharing, [JsonProperty("two-factor-authentication")] @@ -125,14 +189,22 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests Unsupportedtuners, [JsonProperty("upgrade-3ds2")] Upgrade3ds2, + [JsonProperty("visualizers")] + Visualizers, [JsonProperty("vod-schema")] VodSchema, [JsonProperty("vod_cloudflare")] VodCloudflare, + [JsonProperty("volume-leveling")] + VolumeLeveling, [JsonProperty("watch-together-invite")] WatchTogetherInvite, + [JsonProperty("watchlist-rss")] + WatchlistRss, [JsonProperty("web_server_dashboard")] WebServerDashboard, + [JsonProperty("webhooks")] + Webhooks, } public static class FeaturesExtension diff --git a/LukeHagar/PlexAPI/SDK/Models/Requests/GetServerResourcesRequest.cs b/LukeHagar/PlexAPI/SDK/Models/Requests/GetServerResourcesRequest.cs index 9a6f8df..cbdcd3a 100644 --- a/LukeHagar/PlexAPI/SDK/Models/Requests/GetServerResourcesRequest.cs +++ b/LukeHagar/PlexAPI/SDK/Models/Requests/GetServerResourcesRequest.cs @@ -37,5 +37,17 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests /// [SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeIPv6")] public IncludeIPv6? IncludeIPv6 { get; set; } = LukeHagar.PlexAPI.SDK.Models.Requests.IncludeIPv6.Disable; + + /// + /// 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)
+ /// + ///
+ ///
+ [SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")] + public string? ClientID { get; set; } } } \ No newline at end of file diff --git a/LukeHagar/PlexAPI/SDK/Models/Requests/GetTokenDetailsFeatures.cs b/LukeHagar/PlexAPI/SDK/Models/Requests/GetTokenDetailsFeatures.cs index e6e4b1e..039eadb 100644 --- a/LukeHagar/PlexAPI/SDK/Models/Requests/GetTokenDetailsFeatures.cs +++ b/LukeHagar/PlexAPI/SDK/Models/Requests/GetTokenDetailsFeatures.cs @@ -29,6 +29,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests AdCountdownTimer, [JsonProperty("adaptive_bitrate")] AdaptiveBitrate, + [JsonProperty("album-types")] + AlbumTypes, + [JsonProperty("allow_dvr")] + AllowDvr, [JsonProperty("amazon-loop-debug")] AmazonLoopDebug, [JsonProperty("avod-ad-analysis")] @@ -37,10 +41,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests AvodNewMedia, [JsonProperty("blacklist_get_signin")] BlacklistGetSignin, + [JsonProperty("boost-voices")] + BoostVoices, + [JsonProperty("camera_upload")] + CameraUpload, [JsonProperty("client-radio-stations")] ClientRadioStations, [JsonProperty("cloudflare-turnstile-required")] CloudflareTurnstileRequired, + [JsonProperty("cloudsync")] + Cloudsync, [JsonProperty("collections")] Collections, [JsonProperty("comments_and_replies_push_notifications")] @@ -49,30 +59,50 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests CommunityAccessPlexTv, [JsonProperty("companions_sonos")] CompanionsSonos, + [JsonProperty("content_filter")] + ContentFilter, [JsonProperty("custom-home-removal")] CustomHomeRemoval, [JsonProperty("disable_home_user_friendships")] DisableHomeUserFriendships, [JsonProperty("disable_sharing_friendships")] DisableSharingFriendships, + [JsonProperty("downloads-gating")] + DownloadsGating, [JsonProperty("drm_support")] DrmSupport, + [JsonProperty("dvr")] + Dvr, + [JsonProperty("dvr-block-unsupported-countries")] + DvrBlockUnsupportedCountries, + [JsonProperty("epg-recent-channels")] + EpgRecentChannels, [JsonProperty("exclude restrictions")] ExcludeRestrictions, [JsonProperty("federated-auth")] FederatedAuth, [JsonProperty("friend_request_push_notifications")] FriendRequestPushNotifications, + [JsonProperty("grandfather-sync")] + GrandfatherSync, [JsonProperty("guided-upgrade")] GuidedUpgrade, + [JsonProperty("hardware_transcoding")] + HardwareTranscoding, [JsonProperty("home")] Home, + [JsonProperty("hwtranscode")] + Hwtranscode, + [JsonProperty("imagga-v2")] + ImaggaV2, [JsonProperty("increase-password-complexity")] IncreasePasswordComplexity, [JsonProperty("ios14-privacy-banner")] Ios14PrivacyBanner, [JsonProperty("iterable-notification-tokens")] IterableNotificationTokens, + [JsonProperty("item_clusters")] + ItemClusters, [JsonProperty("keep-payment-method")] KeepPaymentMethod, [JsonProperty("kevin-bacon")] @@ -89,34 +119,68 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests LiveTvSupportIncompleteSegments, [JsonProperty("livetv")] Livetv, + [JsonProperty("lyrics")] + Lyrics, [JsonProperty("metadata_search")] MetadataSearch, + [JsonProperty("music-analysis")] + MusicAnalysis, + [JsonProperty("music_videos")] + MusicVideos, [JsonProperty("new_plex_pass_prices")] NewPlexPassPrices, [JsonProperty("news-provider-sunset-modal")] NewsProviderSunsetModal, + [JsonProperty("nominatim")] + Nominatim, + [JsonProperty("pass")] + Pass, [JsonProperty("photos-favorites")] PhotosFavorites, [JsonProperty("photos-metadata-edition")] PhotosMetadataEdition, + [JsonProperty("photosV6-edit")] + PhotosV6Edit, + [JsonProperty("photosV6-tv-albums")] + PhotosV6TvAlbums, [JsonProperty("pms_health")] PmsHealth, + [JsonProperty("premium-dashboard")] + PremiumDashboard, + [JsonProperty("premium_music_metadata")] + PremiumMusicMetadata, [JsonProperty("radio")] Radio, [JsonProperty("rate-limit-client-token")] RateLimitClientToken, [JsonProperty("scrobbling-service-plex-tv")] ScrobblingServicePlexTv, + [JsonProperty("session_bandwidth_restrictions")] + SessionBandwidthRestrictions, + [JsonProperty("session_kick")] + SessionKick, [JsonProperty("shared_server_notification")] SharedServerNotification, [JsonProperty("shared_source_notification")] SharedSourceNotification, + [JsonProperty("signin_notification")] + SigninNotification, [JsonProperty("signin_with_apple")] SigninWithApple, + [JsonProperty("silence-removal")] + SilenceRemoval, + [JsonProperty("sleep-timer")] + SleepTimer, [JsonProperty("spring_serve_ad_provider")] SpringServeAdProvider, + [JsonProperty("sync")] + Sync, + [JsonProperty("sweet-fades")] + SweetFades, [JsonProperty("transcoder_cache")] TranscoderCache, + [JsonProperty("trailers")] + Trailers, [JsonProperty("tuner-sharing")] TunerSharing, [JsonProperty("two-factor-authentication")] @@ -125,14 +189,22 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests Unsupportedtuners, [JsonProperty("upgrade-3ds2")] Upgrade3ds2, + [JsonProperty("visualizers")] + Visualizers, [JsonProperty("vod-schema")] VodSchema, [JsonProperty("vod_cloudflare")] VodCloudflare, + [JsonProperty("volume-leveling")] + VolumeLeveling, [JsonProperty("watch-together-invite")] WatchTogetherInvite, + [JsonProperty("watchlist-rss")] + WatchlistRss, [JsonProperty("web_server_dashboard")] WebServerDashboard, + [JsonProperty("webhooks")] + Webhooks, } public static class GetTokenDetailsFeaturesExtension diff --git a/LukeHagar/PlexAPI/SDK/Models/Requests/PostUsersSignInDataAuthenticationFeatures.cs b/LukeHagar/PlexAPI/SDK/Models/Requests/PostUsersSignInDataAuthenticationFeatures.cs index 1766f10..3bed396 100644 --- a/LukeHagar/PlexAPI/SDK/Models/Requests/PostUsersSignInDataAuthenticationFeatures.cs +++ b/LukeHagar/PlexAPI/SDK/Models/Requests/PostUsersSignInDataAuthenticationFeatures.cs @@ -29,6 +29,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests AdCountdownTimer, [JsonProperty("adaptive_bitrate")] AdaptiveBitrate, + [JsonProperty("album-types")] + AlbumTypes, + [JsonProperty("allow_dvr")] + AllowDvr, [JsonProperty("amazon-loop-debug")] AmazonLoopDebug, [JsonProperty("avod-ad-analysis")] @@ -37,10 +41,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests AvodNewMedia, [JsonProperty("blacklist_get_signin")] BlacklistGetSignin, + [JsonProperty("boost-voices")] + BoostVoices, + [JsonProperty("camera_upload")] + CameraUpload, [JsonProperty("client-radio-stations")] ClientRadioStations, [JsonProperty("cloudflare-turnstile-required")] CloudflareTurnstileRequired, + [JsonProperty("cloudsync")] + Cloudsync, [JsonProperty("collections")] Collections, [JsonProperty("comments_and_replies_push_notifications")] @@ -49,30 +59,50 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests CommunityAccessPlexTv, [JsonProperty("companions_sonos")] CompanionsSonos, + [JsonProperty("content_filter")] + ContentFilter, [JsonProperty("custom-home-removal")] CustomHomeRemoval, [JsonProperty("disable_home_user_friendships")] DisableHomeUserFriendships, [JsonProperty("disable_sharing_friendships")] DisableSharingFriendships, + [JsonProperty("downloads-gating")] + DownloadsGating, [JsonProperty("drm_support")] DrmSupport, + [JsonProperty("dvr")] + Dvr, + [JsonProperty("dvr-block-unsupported-countries")] + DvrBlockUnsupportedCountries, + [JsonProperty("epg-recent-channels")] + EpgRecentChannels, [JsonProperty("exclude restrictions")] ExcludeRestrictions, [JsonProperty("federated-auth")] FederatedAuth, [JsonProperty("friend_request_push_notifications")] FriendRequestPushNotifications, + [JsonProperty("grandfather-sync")] + GrandfatherSync, [JsonProperty("guided-upgrade")] GuidedUpgrade, + [JsonProperty("hardware_transcoding")] + HardwareTranscoding, [JsonProperty("home")] Home, + [JsonProperty("hwtranscode")] + Hwtranscode, + [JsonProperty("imagga-v2")] + ImaggaV2, [JsonProperty("increase-password-complexity")] IncreasePasswordComplexity, [JsonProperty("ios14-privacy-banner")] Ios14PrivacyBanner, [JsonProperty("iterable-notification-tokens")] IterableNotificationTokens, + [JsonProperty("item_clusters")] + ItemClusters, [JsonProperty("keep-payment-method")] KeepPaymentMethod, [JsonProperty("kevin-bacon")] @@ -89,34 +119,68 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests LiveTvSupportIncompleteSegments, [JsonProperty("livetv")] Livetv, + [JsonProperty("lyrics")] + Lyrics, [JsonProperty("metadata_search")] MetadataSearch, + [JsonProperty("music-analysis")] + MusicAnalysis, + [JsonProperty("music_videos")] + MusicVideos, [JsonProperty("new_plex_pass_prices")] NewPlexPassPrices, [JsonProperty("news-provider-sunset-modal")] NewsProviderSunsetModal, + [JsonProperty("nominatim")] + Nominatim, + [JsonProperty("pass")] + Pass, [JsonProperty("photos-favorites")] PhotosFavorites, [JsonProperty("photos-metadata-edition")] PhotosMetadataEdition, + [JsonProperty("photosV6-edit")] + PhotosV6Edit, + [JsonProperty("photosV6-tv-albums")] + PhotosV6TvAlbums, [JsonProperty("pms_health")] PmsHealth, + [JsonProperty("premium-dashboard")] + PremiumDashboard, + [JsonProperty("premium_music_metadata")] + PremiumMusicMetadata, [JsonProperty("radio")] Radio, [JsonProperty("rate-limit-client-token")] RateLimitClientToken, [JsonProperty("scrobbling-service-plex-tv")] ScrobblingServicePlexTv, + [JsonProperty("session_bandwidth_restrictions")] + SessionBandwidthRestrictions, + [JsonProperty("session_kick")] + SessionKick, [JsonProperty("shared_server_notification")] SharedServerNotification, [JsonProperty("shared_source_notification")] SharedSourceNotification, + [JsonProperty("signin_notification")] + SigninNotification, [JsonProperty("signin_with_apple")] SigninWithApple, + [JsonProperty("silence-removal")] + SilenceRemoval, + [JsonProperty("sleep-timer")] + SleepTimer, [JsonProperty("spring_serve_ad_provider")] SpringServeAdProvider, + [JsonProperty("sync")] + Sync, + [JsonProperty("sweet-fades")] + SweetFades, [JsonProperty("transcoder_cache")] TranscoderCache, + [JsonProperty("trailers")] + Trailers, [JsonProperty("tuner-sharing")] TunerSharing, [JsonProperty("two-factor-authentication")] @@ -125,14 +189,22 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests Unsupportedtuners, [JsonProperty("upgrade-3ds2")] Upgrade3ds2, + [JsonProperty("visualizers")] + Visualizers, [JsonProperty("vod-schema")] VodSchema, [JsonProperty("vod_cloudflare")] VodCloudflare, + [JsonProperty("volume-leveling")] + VolumeLeveling, [JsonProperty("watch-together-invite")] WatchTogetherInvite, + [JsonProperty("watchlist-rss")] + WatchlistRss, [JsonProperty("web_server_dashboard")] WebServerDashboard, + [JsonProperty("webhooks")] + Webhooks, } public static class PostUsersSignInDataAuthenticationFeaturesExtension diff --git a/LukeHagar/PlexAPI/SDK/Models/Requests/PostUsersSignInDataFeatures.cs b/LukeHagar/PlexAPI/SDK/Models/Requests/PostUsersSignInDataFeatures.cs index 9dca889..a10aa35 100644 --- a/LukeHagar/PlexAPI/SDK/Models/Requests/PostUsersSignInDataFeatures.cs +++ b/LukeHagar/PlexAPI/SDK/Models/Requests/PostUsersSignInDataFeatures.cs @@ -29,6 +29,10 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests AdCountdownTimer, [JsonProperty("adaptive_bitrate")] AdaptiveBitrate, + [JsonProperty("album-types")] + AlbumTypes, + [JsonProperty("allow_dvr")] + AllowDvr, [JsonProperty("amazon-loop-debug")] AmazonLoopDebug, [JsonProperty("avod-ad-analysis")] @@ -37,10 +41,16 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests AvodNewMedia, [JsonProperty("blacklist_get_signin")] BlacklistGetSignin, + [JsonProperty("boost-voices")] + BoostVoices, + [JsonProperty("camera_upload")] + CameraUpload, [JsonProperty("client-radio-stations")] ClientRadioStations, [JsonProperty("cloudflare-turnstile-required")] CloudflareTurnstileRequired, + [JsonProperty("cloudsync")] + Cloudsync, [JsonProperty("collections")] Collections, [JsonProperty("comments_and_replies_push_notifications")] @@ -49,30 +59,50 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests CommunityAccessPlexTv, [JsonProperty("companions_sonos")] CompanionsSonos, + [JsonProperty("content_filter")] + ContentFilter, [JsonProperty("custom-home-removal")] CustomHomeRemoval, [JsonProperty("disable_home_user_friendships")] DisableHomeUserFriendships, [JsonProperty("disable_sharing_friendships")] DisableSharingFriendships, + [JsonProperty("downloads-gating")] + DownloadsGating, [JsonProperty("drm_support")] DrmSupport, + [JsonProperty("dvr")] + Dvr, + [JsonProperty("dvr-block-unsupported-countries")] + DvrBlockUnsupportedCountries, + [JsonProperty("epg-recent-channels")] + EpgRecentChannels, [JsonProperty("exclude restrictions")] ExcludeRestrictions, [JsonProperty("federated-auth")] FederatedAuth, [JsonProperty("friend_request_push_notifications")] FriendRequestPushNotifications, + [JsonProperty("grandfather-sync")] + GrandfatherSync, [JsonProperty("guided-upgrade")] GuidedUpgrade, + [JsonProperty("hardware_transcoding")] + HardwareTranscoding, [JsonProperty("home")] Home, + [JsonProperty("hwtranscode")] + Hwtranscode, + [JsonProperty("imagga-v2")] + ImaggaV2, [JsonProperty("increase-password-complexity")] IncreasePasswordComplexity, [JsonProperty("ios14-privacy-banner")] Ios14PrivacyBanner, [JsonProperty("iterable-notification-tokens")] IterableNotificationTokens, + [JsonProperty("item_clusters")] + ItemClusters, [JsonProperty("keep-payment-method")] KeepPaymentMethod, [JsonProperty("kevin-bacon")] @@ -89,34 +119,68 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests LiveTvSupportIncompleteSegments, [JsonProperty("livetv")] Livetv, + [JsonProperty("lyrics")] + Lyrics, [JsonProperty("metadata_search")] MetadataSearch, + [JsonProperty("music-analysis")] + MusicAnalysis, + [JsonProperty("music_videos")] + MusicVideos, [JsonProperty("new_plex_pass_prices")] NewPlexPassPrices, [JsonProperty("news-provider-sunset-modal")] NewsProviderSunsetModal, + [JsonProperty("nominatim")] + Nominatim, + [JsonProperty("pass")] + Pass, [JsonProperty("photos-favorites")] PhotosFavorites, [JsonProperty("photos-metadata-edition")] PhotosMetadataEdition, + [JsonProperty("photosV6-edit")] + PhotosV6Edit, + [JsonProperty("photosV6-tv-albums")] + PhotosV6TvAlbums, [JsonProperty("pms_health")] PmsHealth, + [JsonProperty("premium-dashboard")] + PremiumDashboard, + [JsonProperty("premium_music_metadata")] + PremiumMusicMetadata, [JsonProperty("radio")] Radio, [JsonProperty("rate-limit-client-token")] RateLimitClientToken, [JsonProperty("scrobbling-service-plex-tv")] ScrobblingServicePlexTv, + [JsonProperty("session_bandwidth_restrictions")] + SessionBandwidthRestrictions, + [JsonProperty("session_kick")] + SessionKick, [JsonProperty("shared_server_notification")] SharedServerNotification, [JsonProperty("shared_source_notification")] SharedSourceNotification, + [JsonProperty("signin_notification")] + SigninNotification, [JsonProperty("signin_with_apple")] SigninWithApple, + [JsonProperty("silence-removal")] + SilenceRemoval, + [JsonProperty("sleep-timer")] + SleepTimer, [JsonProperty("spring_serve_ad_provider")] SpringServeAdProvider, + [JsonProperty("sync")] + Sync, + [JsonProperty("sweet-fades")] + SweetFades, [JsonProperty("transcoder_cache")] TranscoderCache, + [JsonProperty("trailers")] + Trailers, [JsonProperty("tuner-sharing")] TunerSharing, [JsonProperty("two-factor-authentication")] @@ -125,14 +189,22 @@ namespace LukeHagar.PlexAPI.SDK.Models.Requests Unsupportedtuners, [JsonProperty("upgrade-3ds2")] Upgrade3ds2, + [JsonProperty("visualizers")] + Visualizers, [JsonProperty("vod-schema")] VodSchema, [JsonProperty("vod_cloudflare")] VodCloudflare, + [JsonProperty("volume-leveling")] + VolumeLeveling, [JsonProperty("watch-together-invite")] WatchTogetherInvite, + [JsonProperty("watchlist-rss")] + WatchlistRss, [JsonProperty("web_server_dashboard")] WebServerDashboard, + [JsonProperty("webhooks")] + Webhooks, } public static class PostUsersSignInDataFeaturesExtension diff --git a/LukeHagar/PlexAPI/SDK/Playlists.cs b/LukeHagar/PlexAPI/SDK/Playlists.cs index 523ca6e..95b304d 100644 --- a/LukeHagar/PlexAPI/SDK/Playlists.cs +++ b/LukeHagar/PlexAPI/SDK/Playlists.cs @@ -146,10 +146,10 @@ namespace LukeHagar.PlexAPI.SDK { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.8.3"; + private const string _sdkVersion = "0.8.4"; private const string _sdkGenVersion = "2.426.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.8.3 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.8.4 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/LukeHagar/PlexAPI/SDK/Plex.cs b/LukeHagar/PlexAPI/SDK/Plex.cs index b162611..1b941e8 100644 --- a/LukeHagar/PlexAPI/SDK/Plex.cs +++ b/LukeHagar/PlexAPI/SDK/Plex.cs @@ -75,7 +75,7 @@ namespace LukeHagar.PlexAPI.SDK /// Get Plex server access tokens and server connections /// /// - Task GetServerResourcesAsync(IncludeHttps? includeHttps = null, IncludeRelay? includeRelay = null, IncludeIPv6? includeIPv6 = null, string? serverUrl = null); + Task GetServerResourcesAsync(IncludeHttps? includeHttps = null, IncludeRelay? includeRelay = null, IncludeIPv6? includeIPv6 = null, string? clientID = null, string? serverUrl = null); /// /// Get a Pin @@ -143,10 +143,10 @@ namespace LukeHagar.PlexAPI.SDK }; public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.8.3"; + private const string _sdkVersion = "0.8.4"; private const string _sdkGenVersion = "2.426.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.8.3 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.8.4 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -557,14 +557,17 @@ namespace LukeHagar.PlexAPI.SDK throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - public async Task GetServerResourcesAsync(IncludeHttps? includeHttps = null, IncludeRelay? includeRelay = null, IncludeIPv6? includeIPv6 = null, string? serverUrl = null) + public async Task GetServerResourcesAsync(IncludeHttps? includeHttps = null, IncludeRelay? includeRelay = null, IncludeIPv6? includeIPv6 = null, string? clientID = null, string? serverUrl = null) { var request = new GetServerResourcesRequest() { IncludeHttps = includeHttps, IncludeRelay = includeRelay, IncludeIPv6 = includeIPv6, + ClientID = clientID, }; + request.ClientID ??= SDKConfiguration.ClientID; + string baseUrl = Utilities.TemplateUrl(GetServerResourcesServerList[0], new Dictionary(){ }); if (serverUrl != null) diff --git a/LukeHagar/PlexAPI/SDK/PlexAPI.cs b/LukeHagar/PlexAPI/SDK/PlexAPI.cs index e196617..7fbe590 100644 --- a/LukeHagar/PlexAPI/SDK/PlexAPI.cs +++ b/LukeHagar/PlexAPI/SDK/PlexAPI.cs @@ -331,10 +331,10 @@ namespace LukeHagar.PlexAPI.SDK public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.8.3"; + private const string _sdkVersion = "0.8.4"; private const string _sdkGenVersion = "2.426.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.8.3 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.8.4 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; private string _serverUrl = ""; private int _serverIndex = 0; private ISpeakeasyHttpClient _client; diff --git a/LukeHagar/PlexAPI/SDK/Search.cs b/LukeHagar/PlexAPI/SDK/Search.cs index 3b6f847..d8a0f2a 100644 --- a/LukeHagar/PlexAPI/SDK/Search.cs +++ b/LukeHagar/PlexAPI/SDK/Search.cs @@ -87,10 +87,10 @@ namespace LukeHagar.PlexAPI.SDK { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.8.3"; + private const string _sdkVersion = "0.8.4"; private const string _sdkGenVersion = "2.426.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.8.3 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.8.4 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/LukeHagar/PlexAPI/SDK/Server.cs b/LukeHagar/PlexAPI/SDK/Server.cs index da86dbc..b38fa0a 100644 --- a/LukeHagar/PlexAPI/SDK/Server.cs +++ b/LukeHagar/PlexAPI/SDK/Server.cs @@ -126,10 +126,10 @@ namespace LukeHagar.PlexAPI.SDK { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.8.3"; + private const string _sdkVersion = "0.8.4"; private const string _sdkGenVersion = "2.426.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.8.3 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.8.4 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/LukeHagar/PlexAPI/SDK/Sessions.cs b/LukeHagar/PlexAPI/SDK/Sessions.cs index a999a48..6b4aabe 100644 --- a/LukeHagar/PlexAPI/SDK/Sessions.cs +++ b/LukeHagar/PlexAPI/SDK/Sessions.cs @@ -80,10 +80,10 @@ namespace LukeHagar.PlexAPI.SDK { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.8.3"; + private const string _sdkVersion = "0.8.4"; private const string _sdkGenVersion = "2.426.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.8.3 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.8.4 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/LukeHagar/PlexAPI/SDK/Statistics.cs b/LukeHagar/PlexAPI/SDK/Statistics.cs index 067daf5..17b22a5 100644 --- a/LukeHagar/PlexAPI/SDK/Statistics.cs +++ b/LukeHagar/PlexAPI/SDK/Statistics.cs @@ -71,10 +71,10 @@ namespace LukeHagar.PlexAPI.SDK { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.8.3"; + private const string _sdkVersion = "0.8.4"; private const string _sdkGenVersion = "2.426.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.8.3 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.8.4 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/LukeHagar/PlexAPI/SDK/Updater.cs b/LukeHagar/PlexAPI/SDK/Updater.cs index 98ed8fe..55e2ac1 100644 --- a/LukeHagar/PlexAPI/SDK/Updater.cs +++ b/LukeHagar/PlexAPI/SDK/Updater.cs @@ -74,10 +74,10 @@ namespace LukeHagar.PlexAPI.SDK { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.8.3"; + private const string _sdkVersion = "0.8.4"; private const string _sdkGenVersion = "2.426.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.8.3 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.8.4 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/LukeHagar/PlexAPI/SDK/Video.cs b/LukeHagar/PlexAPI/SDK/Video.cs index 6dfcde4..60f68dc 100644 --- a/LukeHagar/PlexAPI/SDK/Video.cs +++ b/LukeHagar/PlexAPI/SDK/Video.cs @@ -62,10 +62,10 @@ namespace LukeHagar.PlexAPI.SDK { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.8.3"; + private const string _sdkVersion = "0.8.4"; private const string _sdkGenVersion = "2.426.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.8.3 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.8.4 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/LukeHagar/PlexAPI/SDK/Watchlist.cs b/LukeHagar/PlexAPI/SDK/Watchlist.cs index 219bedd..bf0c2ce 100644 --- a/LukeHagar/PlexAPI/SDK/Watchlist.cs +++ b/LukeHagar/PlexAPI/SDK/Watchlist.cs @@ -59,10 +59,10 @@ namespace LukeHagar.PlexAPI.SDK }; public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "0.8.3"; + private const string _sdkVersion = "0.8.4"; private const string _sdkGenVersion = "2.426.2"; private const string _openapiDocVersion = "0.0.3"; - private const string _userAgent = "speakeasy-sdk/csharp 0.8.3 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; + private const string _userAgent = "speakeasy-sdk/csharp 0.8.4 2.426.2 0.0.3 LukeHagar.PlexAPI.SDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/NUGET.md b/NUGET.md index cd5d267..e368641 100644 --- a/NUGET.md +++ b/NUGET.md @@ -32,7 +32,7 @@ var res = await sdk.Server.GetServerCapabilitiesAsync(); 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 @@ -59,6 +59,7 @@ using LukeHagar.PlexAPI.SDK.Models.Requests; using LukeHagar.PlexAPI.SDK.Models.Components; var sdk = new PlexAPI( + accessToken: "", clientID: "gcgzw5rz2xovp84b4vha3a40", clientName: "Plex Web", clientVersion: "4.133.0", @@ -66,9 +67,12 @@ var sdk = new PlexAPI( deviceName: "Linux" ); -GetPinRequest req = new GetPinRequest() {}; - -var res = await sdk.Plex.GetPinAsync(req); +var res = await sdk.Plex.GetServerResourcesAsync( + includeHttps: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeHttps.Enable, + includeRelay: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeRelay.Enable, + includeIPv6: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeIPv6.Enable, + clientID: "gcgzw5rz2xovp84b4vha3a40" +); // handle response ``` diff --git a/README.md b/README.md index af5487e..cd22814 100644 --- a/README.md +++ b/README.md @@ -267,7 +267,7 @@ var res = await sdk.Server.GetServerCapabilitiesAsync(); 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 @@ -294,6 +294,7 @@ using LukeHagar.PlexAPI.SDK.Models.Requests; using LukeHagar.PlexAPI.SDK.Models.Components; var sdk = new PlexAPI( + accessToken: "", clientID: "gcgzw5rz2xovp84b4vha3a40", clientName: "Plex Web", clientVersion: "4.133.0", @@ -301,9 +302,12 @@ var sdk = new PlexAPI( deviceName: "Linux" ); -GetPinRequest req = new GetPinRequest() {}; - -var res = await sdk.Plex.GetPinAsync(req); +var res = await sdk.Plex.GetServerResourcesAsync( + includeHttps: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeHttps.Enable, + includeRelay: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeRelay.Enable, + includeIPv6: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeIPv6.Enable, + clientID: "gcgzw5rz2xovp84b4vha3a40" +); // handle response ``` diff --git a/RELEASES.md b/RELEASES.md index e529daf..e9ce4c8 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -294,4 +294,14 @@ Based on: ### Generated - [csharp v0.8.3] . ### Releases -- [NuGet v0.8.3] https://www.nuget.org/packages/LukeHagar.PlexAPI.SDK/0.8.3 - . \ No newline at end of file +- [NuGet v0.8.3] https://www.nuget.org/packages/LukeHagar.PlexAPI.SDK/0.8.3 - . + +## 2024-09-30 00:21:52 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.404.5 (2.426.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [csharp v0.8.4] . +### Releases +- [NuGet v0.8.4] https://www.nuget.org/packages/LukeHagar.PlexAPI.SDK/0.8.4 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 90c66d9..1d2ba39 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -1424,7 +1424,8 @@ actions: var res = await sdk.Plex.GetServerResourcesAsync( includeHttps: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeHttps.Enable, includeRelay: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeRelay.Enable, - includeIPv6: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeIPv6.Enable + includeIPv6: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeIPv6.Enable, + clientID: "gcgzw5rz2xovp84b4vha3a40" ); // handle response diff --git a/docs/Models/Requests/Features.md b/docs/Models/Requests/Features.md index 8350d24..db78ba4 100644 --- a/docs/Models/Requests/Features.md +++ b/docs/Models/Requests/Features.md @@ -12,28 +12,43 @@ | `TREBLEShowFeatures` | TREBLE-show-features | | `AdCountdownTimer` | ad-countdown-timer | | `AdaptiveBitrate` | adaptive_bitrate | +| `AlbumTypes` | album-types | +| `AllowDvr` | allow_dvr | | `AmazonLoopDebug` | amazon-loop-debug | | `AvodAdAnalysis` | avod-ad-analysis | | `AvodNewMedia` | avod-new-media | | `BlacklistGetSignin` | blacklist_get_signin | +| `BoostVoices` | boost-voices | +| `CameraUpload` | camera_upload | | `ClientRadioStations` | client-radio-stations | | `CloudflareTurnstileRequired` | cloudflare-turnstile-required | +| `Cloudsync` | cloudsync | | `Collections` | collections | | `CommentsAndRepliesPushNotifications` | comments_and_replies_push_notifications | | `CommunityAccessPlexTv` | community_access_plex_tv | | `CompanionsSonos` | companions_sonos | +| `ContentFilter` | content_filter | | `CustomHomeRemoval` | custom-home-removal | | `DisableHomeUserFriendships` | disable_home_user_friendships | | `DisableSharingFriendships` | disable_sharing_friendships | +| `DownloadsGating` | downloads-gating | | `DrmSupport` | drm_support | +| `Dvr` | dvr | +| `DvrBlockUnsupportedCountries` | dvr-block-unsupported-countries | +| `EpgRecentChannels` | epg-recent-channels | | `ExcludeRestrictions` | exclude restrictions | | `FederatedAuth` | federated-auth | | `FriendRequestPushNotifications` | friend_request_push_notifications | +| `GrandfatherSync` | grandfather-sync | | `GuidedUpgrade` | guided-upgrade | +| `HardwareTranscoding` | hardware_transcoding | | `Home` | home | +| `Hwtranscode` | hwtranscode | +| `ImaggaV2` | imagga-v2 | | `IncreasePasswordComplexity` | increase-password-complexity | | `Ios14PrivacyBanner` | ios14-privacy-banner | | `IterableNotificationTokens` | iterable-notification-tokens | +| `ItemClusters` | item_clusters | | `KeepPaymentMethod` | keep-payment-method | | `KevinBacon` | kevin-bacon | | `KoreaConsent` | korea-consent | @@ -42,25 +57,46 @@ | `LightningDvrPivot` | lightning-dvr-pivot | | `LiveTvSupportIncompleteSegments` | live-tv-support-incomplete-segments | | `Livetv` | livetv | +| `Lyrics` | lyrics | | `MetadataSearch` | metadata_search | +| `MusicAnalysis` | music-analysis | +| `MusicVideos` | music_videos | | `NewPlexPassPrices` | new_plex_pass_prices | | `NewsProviderSunsetModal` | news-provider-sunset-modal | +| `Nominatim` | nominatim | +| `Pass` | pass | | `PhotosFavorites` | photos-favorites | | `PhotosMetadataEdition` | photos-metadata-edition | +| `PhotosV6Edit` | photosV6-edit | +| `PhotosV6TvAlbums` | photosV6-tv-albums | | `PmsHealth` | pms_health | +| `PremiumDashboard` | premium-dashboard | +| `PremiumMusicMetadata` | premium_music_metadata | | `Radio` | radio | | `RateLimitClientToken` | rate-limit-client-token | | `ScrobblingServicePlexTv` | scrobbling-service-plex-tv | +| `SessionBandwidthRestrictions` | session_bandwidth_restrictions | +| `SessionKick` | session_kick | | `SharedServerNotification` | shared_server_notification | | `SharedSourceNotification` | shared_source_notification | +| `SigninNotification` | signin_notification | | `SigninWithApple` | signin_with_apple | +| `SilenceRemoval` | silence-removal | +| `SleepTimer` | sleep-timer | | `SpringServeAdProvider` | spring_serve_ad_provider | +| `Sync` | sync | +| `SweetFades` | sweet-fades | | `TranscoderCache` | transcoder_cache | +| `Trailers` | trailers | | `TunerSharing` | tuner-sharing | | `TwoFactorAuthentication` | two-factor-authentication | | `Unsupportedtuners` | unsupportedtuners | | `Upgrade3ds2` | upgrade-3ds2 | +| `Visualizers` | visualizers | | `VodSchema` | vod-schema | | `VodCloudflare` | vod_cloudflare | +| `VolumeLeveling` | volume-leveling | | `WatchTogetherInvite` | watch-together-invite | -| `WebServerDashboard` | web_server_dashboard | \ No newline at end of file +| `WatchlistRss` | watchlist-rss | +| `WebServerDashboard` | web_server_dashboard | +| `Webhooks` | webhooks | \ No newline at end of file diff --git a/docs/Models/Requests/GetServerResourcesRequest.md b/docs/Models/Requests/GetServerResourcesRequest.md index f622f40..ae8001f 100644 --- a/docs/Models/Requests/GetServerResourcesRequest.md +++ b/docs/Models/Requests/GetServerResourcesRequest.md @@ -3,8 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `IncludeHttps` | [IncludeHttps](../../Models/Requests/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 | -| `IncludeRelay` | [IncludeRelay](../../Models/Requests/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
| 1 | -| `IncludeIPv6` | [IncludeIPv6](../../Models/Requests/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `IncludeHttps` | [IncludeHttps](../../Models/Requests/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 | +| `IncludeRelay` | [IncludeRelay](../../Models/Requests/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
| 1 | +| `IncludeIPv6` | [IncludeIPv6](../../Models/Requests/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 | +| `ClientID` | *string* | :heavy_minus_sign: | 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)
| gcgzw5rz2xovp84b4vha3a40 | \ No newline at end of file diff --git a/docs/Models/Requests/GetTokenDetailsFeatures.md b/docs/Models/Requests/GetTokenDetailsFeatures.md index 7259f48..0e1b0fb 100644 --- a/docs/Models/Requests/GetTokenDetailsFeatures.md +++ b/docs/Models/Requests/GetTokenDetailsFeatures.md @@ -12,28 +12,43 @@ | `TREBLEShowFeatures` | TREBLE-show-features | | `AdCountdownTimer` | ad-countdown-timer | | `AdaptiveBitrate` | adaptive_bitrate | +| `AlbumTypes` | album-types | +| `AllowDvr` | allow_dvr | | `AmazonLoopDebug` | amazon-loop-debug | | `AvodAdAnalysis` | avod-ad-analysis | | `AvodNewMedia` | avod-new-media | | `BlacklistGetSignin` | blacklist_get_signin | +| `BoostVoices` | boost-voices | +| `CameraUpload` | camera_upload | | `ClientRadioStations` | client-radio-stations | | `CloudflareTurnstileRequired` | cloudflare-turnstile-required | +| `Cloudsync` | cloudsync | | `Collections` | collections | | `CommentsAndRepliesPushNotifications` | comments_and_replies_push_notifications | | `CommunityAccessPlexTv` | community_access_plex_tv | | `CompanionsSonos` | companions_sonos | +| `ContentFilter` | content_filter | | `CustomHomeRemoval` | custom-home-removal | | `DisableHomeUserFriendships` | disable_home_user_friendships | | `DisableSharingFriendships` | disable_sharing_friendships | +| `DownloadsGating` | downloads-gating | | `DrmSupport` | drm_support | +| `Dvr` | dvr | +| `DvrBlockUnsupportedCountries` | dvr-block-unsupported-countries | +| `EpgRecentChannels` | epg-recent-channels | | `ExcludeRestrictions` | exclude restrictions | | `FederatedAuth` | federated-auth | | `FriendRequestPushNotifications` | friend_request_push_notifications | +| `GrandfatherSync` | grandfather-sync | | `GuidedUpgrade` | guided-upgrade | +| `HardwareTranscoding` | hardware_transcoding | | `Home` | home | +| `Hwtranscode` | hwtranscode | +| `ImaggaV2` | imagga-v2 | | `IncreasePasswordComplexity` | increase-password-complexity | | `Ios14PrivacyBanner` | ios14-privacy-banner | | `IterableNotificationTokens` | iterable-notification-tokens | +| `ItemClusters` | item_clusters | | `KeepPaymentMethod` | keep-payment-method | | `KevinBacon` | kevin-bacon | | `KoreaConsent` | korea-consent | @@ -42,25 +57,46 @@ | `LightningDvrPivot` | lightning-dvr-pivot | | `LiveTvSupportIncompleteSegments` | live-tv-support-incomplete-segments | | `Livetv` | livetv | +| `Lyrics` | lyrics | | `MetadataSearch` | metadata_search | +| `MusicAnalysis` | music-analysis | +| `MusicVideos` | music_videos | | `NewPlexPassPrices` | new_plex_pass_prices | | `NewsProviderSunsetModal` | news-provider-sunset-modal | +| `Nominatim` | nominatim | +| `Pass` | pass | | `PhotosFavorites` | photos-favorites | | `PhotosMetadataEdition` | photos-metadata-edition | +| `PhotosV6Edit` | photosV6-edit | +| `PhotosV6TvAlbums` | photosV6-tv-albums | | `PmsHealth` | pms_health | +| `PremiumDashboard` | premium-dashboard | +| `PremiumMusicMetadata` | premium_music_metadata | | `Radio` | radio | | `RateLimitClientToken` | rate-limit-client-token | | `ScrobblingServicePlexTv` | scrobbling-service-plex-tv | +| `SessionBandwidthRestrictions` | session_bandwidth_restrictions | +| `SessionKick` | session_kick | | `SharedServerNotification` | shared_server_notification | | `SharedSourceNotification` | shared_source_notification | +| `SigninNotification` | signin_notification | | `SigninWithApple` | signin_with_apple | +| `SilenceRemoval` | silence-removal | +| `SleepTimer` | sleep-timer | | `SpringServeAdProvider` | spring_serve_ad_provider | +| `Sync` | sync | +| `SweetFades` | sweet-fades | | `TranscoderCache` | transcoder_cache | +| `Trailers` | trailers | | `TunerSharing` | tuner-sharing | | `TwoFactorAuthentication` | two-factor-authentication | | `Unsupportedtuners` | unsupportedtuners | | `Upgrade3ds2` | upgrade-3ds2 | +| `Visualizers` | visualizers | | `VodSchema` | vod-schema | | `VodCloudflare` | vod_cloudflare | +| `VolumeLeveling` | volume-leveling | | `WatchTogetherInvite` | watch-together-invite | -| `WebServerDashboard` | web_server_dashboard | \ No newline at end of file +| `WatchlistRss` | watchlist-rss | +| `WebServerDashboard` | web_server_dashboard | +| `Webhooks` | webhooks | \ No newline at end of file diff --git a/docs/Models/Requests/PostUsersSignInDataAuthenticationFeatures.md b/docs/Models/Requests/PostUsersSignInDataAuthenticationFeatures.md index 5485fdb..5b00695 100644 --- a/docs/Models/Requests/PostUsersSignInDataAuthenticationFeatures.md +++ b/docs/Models/Requests/PostUsersSignInDataAuthenticationFeatures.md @@ -12,28 +12,43 @@ | `TREBLEShowFeatures` | TREBLE-show-features | | `AdCountdownTimer` | ad-countdown-timer | | `AdaptiveBitrate` | adaptive_bitrate | +| `AlbumTypes` | album-types | +| `AllowDvr` | allow_dvr | | `AmazonLoopDebug` | amazon-loop-debug | | `AvodAdAnalysis` | avod-ad-analysis | | `AvodNewMedia` | avod-new-media | | `BlacklistGetSignin` | blacklist_get_signin | +| `BoostVoices` | boost-voices | +| `CameraUpload` | camera_upload | | `ClientRadioStations` | client-radio-stations | | `CloudflareTurnstileRequired` | cloudflare-turnstile-required | +| `Cloudsync` | cloudsync | | `Collections` | collections | | `CommentsAndRepliesPushNotifications` | comments_and_replies_push_notifications | | `CommunityAccessPlexTv` | community_access_plex_tv | | `CompanionsSonos` | companions_sonos | +| `ContentFilter` | content_filter | | `CustomHomeRemoval` | custom-home-removal | | `DisableHomeUserFriendships` | disable_home_user_friendships | | `DisableSharingFriendships` | disable_sharing_friendships | +| `DownloadsGating` | downloads-gating | | `DrmSupport` | drm_support | +| `Dvr` | dvr | +| `DvrBlockUnsupportedCountries` | dvr-block-unsupported-countries | +| `EpgRecentChannels` | epg-recent-channels | | `ExcludeRestrictions` | exclude restrictions | | `FederatedAuth` | federated-auth | | `FriendRequestPushNotifications` | friend_request_push_notifications | +| `GrandfatherSync` | grandfather-sync | | `GuidedUpgrade` | guided-upgrade | +| `HardwareTranscoding` | hardware_transcoding | | `Home` | home | +| `Hwtranscode` | hwtranscode | +| `ImaggaV2` | imagga-v2 | | `IncreasePasswordComplexity` | increase-password-complexity | | `Ios14PrivacyBanner` | ios14-privacy-banner | | `IterableNotificationTokens` | iterable-notification-tokens | +| `ItemClusters` | item_clusters | | `KeepPaymentMethod` | keep-payment-method | | `KevinBacon` | kevin-bacon | | `KoreaConsent` | korea-consent | @@ -42,25 +57,46 @@ | `LightningDvrPivot` | lightning-dvr-pivot | | `LiveTvSupportIncompleteSegments` | live-tv-support-incomplete-segments | | `Livetv` | livetv | +| `Lyrics` | lyrics | | `MetadataSearch` | metadata_search | +| `MusicAnalysis` | music-analysis | +| `MusicVideos` | music_videos | | `NewPlexPassPrices` | new_plex_pass_prices | | `NewsProviderSunsetModal` | news-provider-sunset-modal | +| `Nominatim` | nominatim | +| `Pass` | pass | | `PhotosFavorites` | photos-favorites | | `PhotosMetadataEdition` | photos-metadata-edition | +| `PhotosV6Edit` | photosV6-edit | +| `PhotosV6TvAlbums` | photosV6-tv-albums | | `PmsHealth` | pms_health | +| `PremiumDashboard` | premium-dashboard | +| `PremiumMusicMetadata` | premium_music_metadata | | `Radio` | radio | | `RateLimitClientToken` | rate-limit-client-token | | `ScrobblingServicePlexTv` | scrobbling-service-plex-tv | +| `SessionBandwidthRestrictions` | session_bandwidth_restrictions | +| `SessionKick` | session_kick | | `SharedServerNotification` | shared_server_notification | | `SharedSourceNotification` | shared_source_notification | +| `SigninNotification` | signin_notification | | `SigninWithApple` | signin_with_apple | +| `SilenceRemoval` | silence-removal | +| `SleepTimer` | sleep-timer | | `SpringServeAdProvider` | spring_serve_ad_provider | +| `Sync` | sync | +| `SweetFades` | sweet-fades | | `TranscoderCache` | transcoder_cache | +| `Trailers` | trailers | | `TunerSharing` | tuner-sharing | | `TwoFactorAuthentication` | two-factor-authentication | | `Unsupportedtuners` | unsupportedtuners | | `Upgrade3ds2` | upgrade-3ds2 | +| `Visualizers` | visualizers | | `VodSchema` | vod-schema | | `VodCloudflare` | vod_cloudflare | +| `VolumeLeveling` | volume-leveling | | `WatchTogetherInvite` | watch-together-invite | -| `WebServerDashboard` | web_server_dashboard | \ No newline at end of file +| `WatchlistRss` | watchlist-rss | +| `WebServerDashboard` | web_server_dashboard | +| `Webhooks` | webhooks | \ No newline at end of file diff --git a/docs/Models/Requests/PostUsersSignInDataFeatures.md b/docs/Models/Requests/PostUsersSignInDataFeatures.md index 18cab23..2f437a2 100644 --- a/docs/Models/Requests/PostUsersSignInDataFeatures.md +++ b/docs/Models/Requests/PostUsersSignInDataFeatures.md @@ -12,28 +12,43 @@ | `TREBLEShowFeatures` | TREBLE-show-features | | `AdCountdownTimer` | ad-countdown-timer | | `AdaptiveBitrate` | adaptive_bitrate | +| `AlbumTypes` | album-types | +| `AllowDvr` | allow_dvr | | `AmazonLoopDebug` | amazon-loop-debug | | `AvodAdAnalysis` | avod-ad-analysis | | `AvodNewMedia` | avod-new-media | | `BlacklistGetSignin` | blacklist_get_signin | +| `BoostVoices` | boost-voices | +| `CameraUpload` | camera_upload | | `ClientRadioStations` | client-radio-stations | | `CloudflareTurnstileRequired` | cloudflare-turnstile-required | +| `Cloudsync` | cloudsync | | `Collections` | collections | | `CommentsAndRepliesPushNotifications` | comments_and_replies_push_notifications | | `CommunityAccessPlexTv` | community_access_plex_tv | | `CompanionsSonos` | companions_sonos | +| `ContentFilter` | content_filter | | `CustomHomeRemoval` | custom-home-removal | | `DisableHomeUserFriendships` | disable_home_user_friendships | | `DisableSharingFriendships` | disable_sharing_friendships | +| `DownloadsGating` | downloads-gating | | `DrmSupport` | drm_support | +| `Dvr` | dvr | +| `DvrBlockUnsupportedCountries` | dvr-block-unsupported-countries | +| `EpgRecentChannels` | epg-recent-channels | | `ExcludeRestrictions` | exclude restrictions | | `FederatedAuth` | federated-auth | | `FriendRequestPushNotifications` | friend_request_push_notifications | +| `GrandfatherSync` | grandfather-sync | | `GuidedUpgrade` | guided-upgrade | +| `HardwareTranscoding` | hardware_transcoding | | `Home` | home | +| `Hwtranscode` | hwtranscode | +| `ImaggaV2` | imagga-v2 | | `IncreasePasswordComplexity` | increase-password-complexity | | `Ios14PrivacyBanner` | ios14-privacy-banner | | `IterableNotificationTokens` | iterable-notification-tokens | +| `ItemClusters` | item_clusters | | `KeepPaymentMethod` | keep-payment-method | | `KevinBacon` | kevin-bacon | | `KoreaConsent` | korea-consent | @@ -42,25 +57,46 @@ | `LightningDvrPivot` | lightning-dvr-pivot | | `LiveTvSupportIncompleteSegments` | live-tv-support-incomplete-segments | | `Livetv` | livetv | +| `Lyrics` | lyrics | | `MetadataSearch` | metadata_search | +| `MusicAnalysis` | music-analysis | +| `MusicVideos` | music_videos | | `NewPlexPassPrices` | new_plex_pass_prices | | `NewsProviderSunsetModal` | news-provider-sunset-modal | +| `Nominatim` | nominatim | +| `Pass` | pass | | `PhotosFavorites` | photos-favorites | | `PhotosMetadataEdition` | photos-metadata-edition | +| `PhotosV6Edit` | photosV6-edit | +| `PhotosV6TvAlbums` | photosV6-tv-albums | | `PmsHealth` | pms_health | +| `PremiumDashboard` | premium-dashboard | +| `PremiumMusicMetadata` | premium_music_metadata | | `Radio` | radio | | `RateLimitClientToken` | rate-limit-client-token | | `ScrobblingServicePlexTv` | scrobbling-service-plex-tv | +| `SessionBandwidthRestrictions` | session_bandwidth_restrictions | +| `SessionKick` | session_kick | | `SharedServerNotification` | shared_server_notification | | `SharedSourceNotification` | shared_source_notification | +| `SigninNotification` | signin_notification | | `SigninWithApple` | signin_with_apple | +| `SilenceRemoval` | silence-removal | +| `SleepTimer` | sleep-timer | | `SpringServeAdProvider` | spring_serve_ad_provider | +| `Sync` | sync | +| `SweetFades` | sweet-fades | | `TranscoderCache` | transcoder_cache | +| `Trailers` | trailers | | `TunerSharing` | tuner-sharing | | `TwoFactorAuthentication` | two-factor-authentication | | `Unsupportedtuners` | unsupportedtuners | | `Upgrade3ds2` | upgrade-3ds2 | +| `Visualizers` | visualizers | | `VodSchema` | vod-schema | | `VodCloudflare` | vod_cloudflare | +| `VolumeLeveling` | volume-leveling | | `WatchTogetherInvite` | watch-together-invite | -| `WebServerDashboard` | web_server_dashboard | \ No newline at end of file +| `WatchlistRss` | watchlist-rss | +| `WebServerDashboard` | web_server_dashboard | +| `Webhooks` | webhooks | \ No newline at end of file diff --git a/docs/sdks/plex/README.md b/docs/sdks/plex/README.md index 6643d71..fdf0294 100644 --- a/docs/sdks/plex/README.md +++ b/docs/sdks/plex/README.md @@ -204,7 +204,8 @@ var sdk = new PlexAPI( var res = await sdk.Plex.GetServerResourcesAsync( includeHttps: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeHttps.Enable, includeRelay: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeRelay.Enable, - includeIPv6: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeIPv6.Enable + includeIPv6: LukeHagar.PlexAPI.SDK.Models.Requests.IncludeIPv6.Enable, + clientID: "gcgzw5rz2xovp84b4vha3a40" ); // handle response @@ -212,12 +213,13 @@ var res = await sdk.Plex.GetServerResourcesAsync( ### Parameters -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `IncludeHttps` | [IncludeHttps](../../Models/Requests/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 | -| `IncludeRelay` | [IncludeRelay](../../Models/Requests/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
| 1 | -| `IncludeIPv6` | [IncludeIPv6](../../Models/Requests/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 | -| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 | +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `IncludeHttps` | [IncludeHttps](../../Models/Requests/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 | +| `IncludeRelay` | [IncludeRelay](../../Models/Requests/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
| 1 | +| `IncludeIPv6` | [IncludeIPv6](../../Models/Requests/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 | +| `ClientID` | *string* | :heavy_minus_sign: | 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)
| gcgzw5rz2xovp84b4vha3a40 | +| `serverURL` | *string* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 | ### Response