From dc2f64115c5148c74d45f1d15249199046d78640 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 30 Sep 2024 00:09:51 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.404.5 --- .speakeasy/gen.lock | 7 ++-- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 10 ++--- Gemfile.lock | 2 +- README.md | 13 ++++--- RELEASES.md | 12 +++++- codeSamples.yaml | 2 +- docs/models/operations/features.md | 38 ++++++++++++++++++- .../operations/getserverresourcesrequest.md | 11 +++--- .../operations/gettokendetailsfeatures.md | 38 ++++++++++++++++++- ...stuserssignindataauthenticationfeatures.md | 38 ++++++++++++++++++- .../operations/postuserssignindatafeatures.md | 38 ++++++++++++++++++- docs/sdks/plex/README.md | 15 ++++---- .../models/operations/features.rb | 36 ++++++++++++++++++ .../get_server_resources_request.rb | 10 ++++- .../operations/gettokendetails_features.rb | 36 ++++++++++++++++++ ...rs_sign_in_data_authentication_features.rb | 36 ++++++++++++++++++ .../post_users_sign_in_data_features.rb | 36 ++++++++++++++++++ lib/plex_ruby_sdk/plex.rb | 7 ++-- lib/plex_ruby_sdk/sdkconfiguration.rb | 4 +- plex_ruby_sdk.gemspec | 2 +- 21 files changed, 352 insertions(+), 41 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 10d8143..0c8aa83 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: aa9449e7-c19d-411d-b8e2-f9c5fe982f6f management: - docChecksum: 9f62ea35c6168986c8e3557d5df50b99 + docChecksum: f387ae03f10decba230886eaab322b20 docVersion: 0.0.3 speakeasyVersion: 1.404.5 generationVersion: 2.426.2 - releaseVersion: 0.4.4 - configChecksum: 8179ff53ef7a5af9de014fd5a209ac2b + releaseVersion: 0.4.5 + configChecksum: 485b660499b1eb08446582eccf4035da repoURL: https://github.com/LukeHagar/plexruby.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexruby @@ -1943,6 +1943,7 @@ examples: includeHttps: 1 includeRelay: 1 includeIPv6: 1 + X-Plex-Client-Identifier: "gcgzw5rz2xovp84b4vha3a40" responses: "200": application/json: [] diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 43fc801..75ba31f 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false ruby: - version: 0.4.4 + version: 0.4.5 author: LukeHagar description: Ruby Client SDK Generated by Speakeasy imports: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index bbc70f2..67be940 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -9,8 +9,8 @@ sources: - main plexapi: sourceNamespace: plexapi - sourceRevisionDigest: sha256:ed1af8e79d553cc0bf2f8f7975f445d80cb8bd58390bca18d1352577da5ec5ed - sourceBlobDigest: sha256:157db2a169209c18fdca786b671c5da8d2b14dc3005574d08c9d667320869093 + sourceRevisionDigest: sha256:a9bd67eaa35b8311162ae769209f725cc5da16e57976b4928c54594c02cd451c + sourceBlobDigest: sha256:43ddffba137c37d2f64f8db185179a273bcc5ca7242594c932da99d1eb7f3e98 tags: - latest - main @@ -18,10 +18,10 @@ targets: plexruby: source: plexapi sourceNamespace: plexapi - sourceRevisionDigest: sha256:ed1af8e79d553cc0bf2f8f7975f445d80cb8bd58390bca18d1352577da5ec5ed - sourceBlobDigest: sha256:157db2a169209c18fdca786b671c5da8d2b14dc3005574d08c9d667320869093 + sourceRevisionDigest: sha256:a9bd67eaa35b8311162ae769209f725cc5da16e57976b4928c54594c02cd451c + sourceBlobDigest: sha256:43ddffba137c37d2f64f8db185179a273bcc5ca7242594c932da99d1eb7f3e98 codeSamplesNamespace: code-samples-ruby-plexruby - codeSamplesRevisionDigest: sha256:8b518dd205deadfc54ad7634e584b7150f5e0127f3a81e1953de7d0e43a6e274 + codeSamplesRevisionDigest: sha256:fbfa11d155d5c73bed6140bb9afdad2c3d3735ea2b000b2a6966a54088d09c3b workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/Gemfile.lock b/Gemfile.lock index 6b36559..87b11b0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - plex_ruby_sdk (0.4.4) + plex_ruby_sdk (0.4.5) faraday faraday-multipart rack diff --git a/README.md b/README.md index 76a762b..bbb1544 100644 --- a/README.md +++ b/README.md @@ -285,7 +285,7 @@ end 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 `get_pin`. 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 `get_server_resources`. 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 @@ -317,13 +317,16 @@ s = ::PlexRubySDK::PlexAPI.new( client_platform: "Chrome", device_name: "Linux", ) +s.config_security( + ::PlexRubySDK::Shared::Security.new( + access_token: "", + ) +) - -req = ::PlexRubySDK::Operations::GetPinRequest.new() -res = s.plex.get_pin(req) +res = s.plex.get_server_resources(include_https=::PlexRubySDK::Operations::IncludeHttps::ENABLE, include_relay=::PlexRubySDK::Operations::IncludeRelay::ENABLE, include_i_pv6=::PlexRubySDK::Operations::IncludeIPv6::ENABLE, client_id="gcgzw5rz2xovp84b4vha3a40") -if ! res.auth_pin_container.nil? +if ! res.plex_devices.nil? # handle response end diff --git a/RELEASES.md b/RELEASES.md index 45a90d1..858b5e7 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -586,4 +586,14 @@ Based on: ### Generated - [ruby v0.4.4] . ### Releases -- [Ruby Gems v0.4.4] https://rubygems.org/gems/plex_ruby_sdk/versions/0.4.4 - . \ No newline at end of file +- [Ruby Gems v0.4.4] https://rubygems.org/gems/plex_ruby_sdk/versions/0.4.4 - . + +## 2024-09-30 00:08:05 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.404.5 (2.426.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [ruby v0.4.5] . +### Releases +- [Ruby Gems v0.4.5] https://rubygems.org/gems/plex_ruby_sdk/versions/0.4.5 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 27343bb..fa544e7 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -350,7 +350,7 @@ actions: x-codeSamples: - lang: ruby label: resources - source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n client_id: \"gcgzw5rz2xovp84b4vha3a40\",\n client_name: \"Plex Web\",\n client_version: \"4.133.0\",\n client_platform: \"Chrome\",\n device_name: \"Linux\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.plex.get_server_resources(include_https=::PlexRubySDK::Operations::IncludeHttps::ENABLE, include_relay=::PlexRubySDK::Operations::IncludeRelay::ENABLE, include_i_pv6=::PlexRubySDK::Operations::IncludeIPv6::ENABLE)\n\nif ! res.plex_devices.nil?\n # handle response\nend" + source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n client_id: \"gcgzw5rz2xovp84b4vha3a40\",\n client_name: \"Plex Web\",\n client_version: \"4.133.0\",\n client_platform: \"Chrome\",\n device_name: \"Linux\",\n )\ns.config_security(\n ::PlexRubySDK::Shared::Security.new(\n access_token: \"\",\n )\n)\n\n \nres = s.plex.get_server_resources(include_https=::PlexRubySDK::Operations::IncludeHttps::ENABLE, include_relay=::PlexRubySDK::Operations::IncludeRelay::ENABLE, include_i_pv6=::PlexRubySDK::Operations::IncludeIPv6::ENABLE, client_id=\"gcgzw5rz2xovp84b4vha3a40\")\n\nif ! res.plex_devices.nil?\n # handle response\nend" - target: $["paths"]["/search"]["get"] update: x-codeSamples: diff --git a/docs/models/operations/features.md b/docs/models/operations/features.md index 057a174..08ed7b2 100644 --- a/docs/models/operations/features.md +++ b/docs/models/operations/features.md @@ -12,28 +12,43 @@ | `TREBLE_SHOW_FEATURES` | TREBLE-show-features | | `AD_COUNTDOWN_TIMER` | ad-countdown-timer | | `ADAPTIVE_BITRATE` | adaptive_bitrate | +| `ALBUM_TYPES` | album-types | +| `ALLOW_DVR` | allow_dvr | | `AMAZON_LOOP_DEBUG` | amazon-loop-debug | | `AVOD_AD_ANALYSIS` | avod-ad-analysis | | `AVOD_NEW_MEDIA` | avod-new-media | | `BLACKLIST_GET_SIGNIN` | blacklist_get_signin | +| `BOOST_VOICES` | boost-voices | +| `CAMERA_UPLOAD` | camera_upload | | `CLIENT_RADIO_STATIONS` | client-radio-stations | | `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required | +| `CLOUDSYNC` | cloudsync | | `COLLECTIONS` | collections | | `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications | | `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv | | `COMPANIONS_SONOS` | companions_sonos | +| `CONTENT_FILTER` | content_filter | | `CUSTOM_HOME_REMOVAL` | custom-home-removal | | `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships | | `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships | +| `DOWNLOADS_GATING` | downloads-gating | | `DRM_SUPPORT` | drm_support | +| `DVR` | dvr | +| `DVR_BLOCK_UNSUPPORTED_COUNTRIES` | dvr-block-unsupported-countries | +| `EPG_RECENT_CHANNELS` | epg-recent-channels | | `EXCLUDE_RESTRICTIONS` | exclude restrictions | | `FEDERATED_AUTH` | federated-auth | | `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications | +| `GRANDFATHER_SYNC` | grandfather-sync | | `GUIDED_UPGRADE` | guided-upgrade | +| `HARDWARE_TRANSCODING` | hardware_transcoding | | `HOME` | home | +| `HWTRANSCODE` | hwtranscode | +| `IMAGGA_V2` | imagga-v2 | | `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity | | `IOS14_PRIVACY_BANNER` | ios14-privacy-banner | | `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens | +| `ITEM_CLUSTERS` | item_clusters | | `KEEP_PAYMENT_METHOD` | keep-payment-method | | `KEVIN_BACON` | kevin-bacon | | `KOREA_CONSENT` | korea-consent | @@ -42,25 +57,46 @@ | `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot | | `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments | | `LIVETV` | livetv | +| `LYRICS` | lyrics | | `METADATA_SEARCH` | metadata_search | +| `MUSIC_ANALYSIS` | music-analysis | +| `MUSIC_VIDEOS` | music_videos | | `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices | | `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal | +| `NOMINATIM` | nominatim | +| `PASS` | pass | | `PHOTOS_FAVORITES` | photos-favorites | | `PHOTOS_METADATA_EDITION` | photos-metadata-edition | +| `PHOTOS_V6_EDIT` | photosV6-edit | +| `PHOTOS_V6_TV_ALBUMS` | photosV6-tv-albums | | `PMS_HEALTH` | pms_health | +| `PREMIUM_DASHBOARD` | premium-dashboard | +| `PREMIUM_MUSIC_METADATA` | premium_music_metadata | | `RADIO` | radio | | `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token | | `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv | +| `SESSION_BANDWIDTH_RESTRICTIONS` | session_bandwidth_restrictions | +| `SESSION_KICK` | session_kick | | `SHARED_SERVER_NOTIFICATION` | shared_server_notification | | `SHARED_SOURCE_NOTIFICATION` | shared_source_notification | +| `SIGNIN_NOTIFICATION` | signin_notification | | `SIGNIN_WITH_APPLE` | signin_with_apple | +| `SILENCE_REMOVAL` | silence-removal | +| `SLEEP_TIMER` | sleep-timer | | `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider | +| `SYNC` | sync | +| `SWEET_FADES` | sweet-fades | | `TRANSCODER_CACHE` | transcoder_cache | +| `TRAILERS` | trailers | | `TUNER_SHARING` | tuner-sharing | | `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication | | `UNSUPPORTEDTUNERS` | unsupportedtuners | | `UPGRADE_3DS2` | upgrade-3ds2 | +| `VISUALIZERS` | visualizers | | `VOD_SCHEMA` | vod-schema | | `VOD_CLOUDFLARE` | vod_cloudflare | +| `VOLUME_LEVELING` | volume-leveling | | `WATCH_TOGETHER_INVITE` | watch-together-invite | -| `WEB_SERVER_DASHBOARD` | web_server_dashboard | \ No newline at end of file +| `WATCHLIST_RSS` | watchlist-rss | +| `WEB_SERVER_DASHBOARD` | web_server_dashboard | +| `WEBHOOKS` | webhooks | \ No newline at end of file diff --git a/docs/models/operations/getserverresourcesrequest.md b/docs/models/operations/getserverresourcesrequest.md index 890c0a6..adcb9e1 100644 --- a/docs/models/operations/getserverresourcesrequest.md +++ b/docs/models/operations/getserverresourcesrequest.md @@ -3,8 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `include_https` | [T.nilable(::PlexRubySDK::Operations::IncludeHttps)](../../models/operations/includehttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 | -| `include_relay` | [T.nilable(::PlexRubySDK::Operations::IncludeRelay)](../../models/operations/includerelay.md) | :heavy_minus_sign: | Include Relay addresses in the results
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
| 1 | -| `include_i_pv6` | [T.nilable(::PlexRubySDK::Operations::IncludeIPv6)](../../models/operations/includeipv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `include_https` | [T.nilable(::PlexRubySDK::Operations::IncludeHttps)](../../models/operations/includehttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 | +| `include_relay` | [T.nilable(::PlexRubySDK::Operations::IncludeRelay)](../../models/operations/includerelay.md) | :heavy_minus_sign: | Include Relay addresses in the results
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
| 1 | +| `include_i_pv6` | [T.nilable(::PlexRubySDK::Operations::IncludeIPv6)](../../models/operations/includeipv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 | +| `client_id` | *T.nilable(::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/operations/gettokendetailsfeatures.md b/docs/models/operations/gettokendetailsfeatures.md index dd9651c..6b7e750 100644 --- a/docs/models/operations/gettokendetailsfeatures.md +++ b/docs/models/operations/gettokendetailsfeatures.md @@ -12,28 +12,43 @@ | `TREBLE_SHOW_FEATURES` | TREBLE-show-features | | `AD_COUNTDOWN_TIMER` | ad-countdown-timer | | `ADAPTIVE_BITRATE` | adaptive_bitrate | +| `ALBUM_TYPES` | album-types | +| `ALLOW_DVR` | allow_dvr | | `AMAZON_LOOP_DEBUG` | amazon-loop-debug | | `AVOD_AD_ANALYSIS` | avod-ad-analysis | | `AVOD_NEW_MEDIA` | avod-new-media | | `BLACKLIST_GET_SIGNIN` | blacklist_get_signin | +| `BOOST_VOICES` | boost-voices | +| `CAMERA_UPLOAD` | camera_upload | | `CLIENT_RADIO_STATIONS` | client-radio-stations | | `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required | +| `CLOUDSYNC` | cloudsync | | `COLLECTIONS` | collections | | `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications | | `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv | | `COMPANIONS_SONOS` | companions_sonos | +| `CONTENT_FILTER` | content_filter | | `CUSTOM_HOME_REMOVAL` | custom-home-removal | | `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships | | `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships | +| `DOWNLOADS_GATING` | downloads-gating | | `DRM_SUPPORT` | drm_support | +| `DVR` | dvr | +| `DVR_BLOCK_UNSUPPORTED_COUNTRIES` | dvr-block-unsupported-countries | +| `EPG_RECENT_CHANNELS` | epg-recent-channels | | `EXCLUDE_RESTRICTIONS` | exclude restrictions | | `FEDERATED_AUTH` | federated-auth | | `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications | +| `GRANDFATHER_SYNC` | grandfather-sync | | `GUIDED_UPGRADE` | guided-upgrade | +| `HARDWARE_TRANSCODING` | hardware_transcoding | | `HOME` | home | +| `HWTRANSCODE` | hwtranscode | +| `IMAGGA_V2` | imagga-v2 | | `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity | | `IOS14_PRIVACY_BANNER` | ios14-privacy-banner | | `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens | +| `ITEM_CLUSTERS` | item_clusters | | `KEEP_PAYMENT_METHOD` | keep-payment-method | | `KEVIN_BACON` | kevin-bacon | | `KOREA_CONSENT` | korea-consent | @@ -42,25 +57,46 @@ | `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot | | `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments | | `LIVETV` | livetv | +| `LYRICS` | lyrics | | `METADATA_SEARCH` | metadata_search | +| `MUSIC_ANALYSIS` | music-analysis | +| `MUSIC_VIDEOS` | music_videos | | `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices | | `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal | +| `NOMINATIM` | nominatim | +| `PASS` | pass | | `PHOTOS_FAVORITES` | photos-favorites | | `PHOTOS_METADATA_EDITION` | photos-metadata-edition | +| `PHOTOS_V6_EDIT` | photosV6-edit | +| `PHOTOS_V6_TV_ALBUMS` | photosV6-tv-albums | | `PMS_HEALTH` | pms_health | +| `PREMIUM_DASHBOARD` | premium-dashboard | +| `PREMIUM_MUSIC_METADATA` | premium_music_metadata | | `RADIO` | radio | | `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token | | `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv | +| `SESSION_BANDWIDTH_RESTRICTIONS` | session_bandwidth_restrictions | +| `SESSION_KICK` | session_kick | | `SHARED_SERVER_NOTIFICATION` | shared_server_notification | | `SHARED_SOURCE_NOTIFICATION` | shared_source_notification | +| `SIGNIN_NOTIFICATION` | signin_notification | | `SIGNIN_WITH_APPLE` | signin_with_apple | +| `SILENCE_REMOVAL` | silence-removal | +| `SLEEP_TIMER` | sleep-timer | | `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider | +| `SYNC` | sync | +| `SWEET_FADES` | sweet-fades | | `TRANSCODER_CACHE` | transcoder_cache | +| `TRAILERS` | trailers | | `TUNER_SHARING` | tuner-sharing | | `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication | | `UNSUPPORTEDTUNERS` | unsupportedtuners | | `UPGRADE_3DS2` | upgrade-3ds2 | +| `VISUALIZERS` | visualizers | | `VOD_SCHEMA` | vod-schema | | `VOD_CLOUDFLARE` | vod_cloudflare | +| `VOLUME_LEVELING` | volume-leveling | | `WATCH_TOGETHER_INVITE` | watch-together-invite | -| `WEB_SERVER_DASHBOARD` | web_server_dashboard | \ No newline at end of file +| `WATCHLIST_RSS` | watchlist-rss | +| `WEB_SERVER_DASHBOARD` | web_server_dashboard | +| `WEBHOOKS` | webhooks | \ No newline at end of file diff --git a/docs/models/operations/postuserssignindataauthenticationfeatures.md b/docs/models/operations/postuserssignindataauthenticationfeatures.md index 48b4a79..39572d6 100644 --- a/docs/models/operations/postuserssignindataauthenticationfeatures.md +++ b/docs/models/operations/postuserssignindataauthenticationfeatures.md @@ -12,28 +12,43 @@ | `TREBLE_SHOW_FEATURES` | TREBLE-show-features | | `AD_COUNTDOWN_TIMER` | ad-countdown-timer | | `ADAPTIVE_BITRATE` | adaptive_bitrate | +| `ALBUM_TYPES` | album-types | +| `ALLOW_DVR` | allow_dvr | | `AMAZON_LOOP_DEBUG` | amazon-loop-debug | | `AVOD_AD_ANALYSIS` | avod-ad-analysis | | `AVOD_NEW_MEDIA` | avod-new-media | | `BLACKLIST_GET_SIGNIN` | blacklist_get_signin | +| `BOOST_VOICES` | boost-voices | +| `CAMERA_UPLOAD` | camera_upload | | `CLIENT_RADIO_STATIONS` | client-radio-stations | | `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required | +| `CLOUDSYNC` | cloudsync | | `COLLECTIONS` | collections | | `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications | | `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv | | `COMPANIONS_SONOS` | companions_sonos | +| `CONTENT_FILTER` | content_filter | | `CUSTOM_HOME_REMOVAL` | custom-home-removal | | `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships | | `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships | +| `DOWNLOADS_GATING` | downloads-gating | | `DRM_SUPPORT` | drm_support | +| `DVR` | dvr | +| `DVR_BLOCK_UNSUPPORTED_COUNTRIES` | dvr-block-unsupported-countries | +| `EPG_RECENT_CHANNELS` | epg-recent-channels | | `EXCLUDE_RESTRICTIONS` | exclude restrictions | | `FEDERATED_AUTH` | federated-auth | | `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications | +| `GRANDFATHER_SYNC` | grandfather-sync | | `GUIDED_UPGRADE` | guided-upgrade | +| `HARDWARE_TRANSCODING` | hardware_transcoding | | `HOME` | home | +| `HWTRANSCODE` | hwtranscode | +| `IMAGGA_V2` | imagga-v2 | | `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity | | `IOS14_PRIVACY_BANNER` | ios14-privacy-banner | | `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens | +| `ITEM_CLUSTERS` | item_clusters | | `KEEP_PAYMENT_METHOD` | keep-payment-method | | `KEVIN_BACON` | kevin-bacon | | `KOREA_CONSENT` | korea-consent | @@ -42,25 +57,46 @@ | `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot | | `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments | | `LIVETV` | livetv | +| `LYRICS` | lyrics | | `METADATA_SEARCH` | metadata_search | +| `MUSIC_ANALYSIS` | music-analysis | +| `MUSIC_VIDEOS` | music_videos | | `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices | | `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal | +| `NOMINATIM` | nominatim | +| `PASS` | pass | | `PHOTOS_FAVORITES` | photos-favorites | | `PHOTOS_METADATA_EDITION` | photos-metadata-edition | +| `PHOTOS_V6_EDIT` | photosV6-edit | +| `PHOTOS_V6_TV_ALBUMS` | photosV6-tv-albums | | `PMS_HEALTH` | pms_health | +| `PREMIUM_DASHBOARD` | premium-dashboard | +| `PREMIUM_MUSIC_METADATA` | premium_music_metadata | | `RADIO` | radio | | `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token | | `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv | +| `SESSION_BANDWIDTH_RESTRICTIONS` | session_bandwidth_restrictions | +| `SESSION_KICK` | session_kick | | `SHARED_SERVER_NOTIFICATION` | shared_server_notification | | `SHARED_SOURCE_NOTIFICATION` | shared_source_notification | +| `SIGNIN_NOTIFICATION` | signin_notification | | `SIGNIN_WITH_APPLE` | signin_with_apple | +| `SILENCE_REMOVAL` | silence-removal | +| `SLEEP_TIMER` | sleep-timer | | `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider | +| `SYNC` | sync | +| `SWEET_FADES` | sweet-fades | | `TRANSCODER_CACHE` | transcoder_cache | +| `TRAILERS` | trailers | | `TUNER_SHARING` | tuner-sharing | | `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication | | `UNSUPPORTEDTUNERS` | unsupportedtuners | | `UPGRADE_3DS2` | upgrade-3ds2 | +| `VISUALIZERS` | visualizers | | `VOD_SCHEMA` | vod-schema | | `VOD_CLOUDFLARE` | vod_cloudflare | +| `VOLUME_LEVELING` | volume-leveling | | `WATCH_TOGETHER_INVITE` | watch-together-invite | -| `WEB_SERVER_DASHBOARD` | web_server_dashboard | \ No newline at end of file +| `WATCHLIST_RSS` | watchlist-rss | +| `WEB_SERVER_DASHBOARD` | web_server_dashboard | +| `WEBHOOKS` | webhooks | \ No newline at end of file diff --git a/docs/models/operations/postuserssignindatafeatures.md b/docs/models/operations/postuserssignindatafeatures.md index 9f4209b..08a5646 100644 --- a/docs/models/operations/postuserssignindatafeatures.md +++ b/docs/models/operations/postuserssignindatafeatures.md @@ -12,28 +12,43 @@ | `TREBLE_SHOW_FEATURES` | TREBLE-show-features | | `AD_COUNTDOWN_TIMER` | ad-countdown-timer | | `ADAPTIVE_BITRATE` | adaptive_bitrate | +| `ALBUM_TYPES` | album-types | +| `ALLOW_DVR` | allow_dvr | | `AMAZON_LOOP_DEBUG` | amazon-loop-debug | | `AVOD_AD_ANALYSIS` | avod-ad-analysis | | `AVOD_NEW_MEDIA` | avod-new-media | | `BLACKLIST_GET_SIGNIN` | blacklist_get_signin | +| `BOOST_VOICES` | boost-voices | +| `CAMERA_UPLOAD` | camera_upload | | `CLIENT_RADIO_STATIONS` | client-radio-stations | | `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required | +| `CLOUDSYNC` | cloudsync | | `COLLECTIONS` | collections | | `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications | | `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv | | `COMPANIONS_SONOS` | companions_sonos | +| `CONTENT_FILTER` | content_filter | | `CUSTOM_HOME_REMOVAL` | custom-home-removal | | `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships | | `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships | +| `DOWNLOADS_GATING` | downloads-gating | | `DRM_SUPPORT` | drm_support | +| `DVR` | dvr | +| `DVR_BLOCK_UNSUPPORTED_COUNTRIES` | dvr-block-unsupported-countries | +| `EPG_RECENT_CHANNELS` | epg-recent-channels | | `EXCLUDE_RESTRICTIONS` | exclude restrictions | | `FEDERATED_AUTH` | federated-auth | | `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications | +| `GRANDFATHER_SYNC` | grandfather-sync | | `GUIDED_UPGRADE` | guided-upgrade | +| `HARDWARE_TRANSCODING` | hardware_transcoding | | `HOME` | home | +| `HWTRANSCODE` | hwtranscode | +| `IMAGGA_V2` | imagga-v2 | | `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity | | `IOS14_PRIVACY_BANNER` | ios14-privacy-banner | | `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens | +| `ITEM_CLUSTERS` | item_clusters | | `KEEP_PAYMENT_METHOD` | keep-payment-method | | `KEVIN_BACON` | kevin-bacon | | `KOREA_CONSENT` | korea-consent | @@ -42,25 +57,46 @@ | `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot | | `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments | | `LIVETV` | livetv | +| `LYRICS` | lyrics | | `METADATA_SEARCH` | metadata_search | +| `MUSIC_ANALYSIS` | music-analysis | +| `MUSIC_VIDEOS` | music_videos | | `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices | | `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal | +| `NOMINATIM` | nominatim | +| `PASS` | pass | | `PHOTOS_FAVORITES` | photos-favorites | | `PHOTOS_METADATA_EDITION` | photos-metadata-edition | +| `PHOTOS_V6_EDIT` | photosV6-edit | +| `PHOTOS_V6_TV_ALBUMS` | photosV6-tv-albums | | `PMS_HEALTH` | pms_health | +| `PREMIUM_DASHBOARD` | premium-dashboard | +| `PREMIUM_MUSIC_METADATA` | premium_music_metadata | | `RADIO` | radio | | `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token | | `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv | +| `SESSION_BANDWIDTH_RESTRICTIONS` | session_bandwidth_restrictions | +| `SESSION_KICK` | session_kick | | `SHARED_SERVER_NOTIFICATION` | shared_server_notification | | `SHARED_SOURCE_NOTIFICATION` | shared_source_notification | +| `SIGNIN_NOTIFICATION` | signin_notification | | `SIGNIN_WITH_APPLE` | signin_with_apple | +| `SILENCE_REMOVAL` | silence-removal | +| `SLEEP_TIMER` | sleep-timer | | `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider | +| `SYNC` | sync | +| `SWEET_FADES` | sweet-fades | | `TRANSCODER_CACHE` | transcoder_cache | +| `TRAILERS` | trailers | | `TUNER_SHARING` | tuner-sharing | | `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication | | `UNSUPPORTEDTUNERS` | unsupportedtuners | | `UPGRADE_3DS2` | upgrade-3ds2 | +| `VISUALIZERS` | visualizers | | `VOD_SCHEMA` | vod-schema | | `VOD_CLOUDFLARE` | vod_cloudflare | +| `VOLUME_LEVELING` | volume-leveling | | `WATCH_TOGETHER_INVITE` | watch-together-invite | -| `WEB_SERVER_DASHBOARD` | web_server_dashboard | \ No newline at end of file +| `WATCHLIST_RSS` | watchlist-rss | +| `WEB_SERVER_DASHBOARD` | 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 557359a..b025417 100644 --- a/docs/sdks/plex/README.md +++ b/docs/sdks/plex/README.md @@ -208,7 +208,7 @@ s.config_security( ) -res = s.plex.get_server_resources(include_https=::PlexRubySDK::Operations::IncludeHttps::ENABLE, include_relay=::PlexRubySDK::Operations::IncludeRelay::ENABLE, include_i_pv6=::PlexRubySDK::Operations::IncludeIPv6::ENABLE) +res = s.plex.get_server_resources(include_https=::PlexRubySDK::Operations::IncludeHttps::ENABLE, include_relay=::PlexRubySDK::Operations::IncludeRelay::ENABLE, include_i_pv6=::PlexRubySDK::Operations::IncludeIPv6::ENABLE, client_id="gcgzw5rz2xovp84b4vha3a40") if ! res.plex_devices.nil? # handle response @@ -218,12 +218,13 @@ end ### Parameters -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | -| `include_https` | [::PlexRubySDK::Operations::IncludeHttps](../../models/operations/includehttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 | -| `include_relay` | [::PlexRubySDK::Operations::IncludeRelay](../../models/operations/includerelay.md) | :heavy_minus_sign: | Include Relay addresses in the results
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
| 1 | -| `include_i_pv6` | [::PlexRubySDK::Operations::IncludeIPv6](../../models/operations/includeipv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 | -| `server_url` | *String* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 | +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `include_https` | [::PlexRubySDK::Operations::IncludeHttps](../../models/operations/includehttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 | +| `include_relay` | [::PlexRubySDK::Operations::IncludeRelay](../../models/operations/includerelay.md) | :heavy_minus_sign: | Include Relay addresses in the results
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
| 1 | +| `include_i_pv6` | [::PlexRubySDK::Operations::IncludeIPv6](../../models/operations/includeipv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 | +| `client_id` | *::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 | +| `server_url` | *String* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 | ### Response diff --git a/lib/plex_ruby_sdk/models/operations/features.rb b/lib/plex_ruby_sdk/models/operations/features.rb index 71c7093..c0f1a51 100644 --- a/lib/plex_ruby_sdk/models/operations/features.rb +++ b/lib/plex_ruby_sdk/models/operations/features.rb @@ -20,28 +20,43 @@ class Features < T::Enum TREBLE_SHOW_FEATURES = new('TREBLE-show-features') AD_COUNTDOWN_TIMER = new('ad-countdown-timer') ADAPTIVE_BITRATE = new('adaptive_bitrate') + ALBUM_TYPES = new('album-types') + ALLOW_DVR = new('allow_dvr') AMAZON_LOOP_DEBUG = new('amazon-loop-debug') AVOD_AD_ANALYSIS = new('avod-ad-analysis') AVOD_NEW_MEDIA = new('avod-new-media') BLACKLIST_GET_SIGNIN = new('blacklist_get_signin') + BOOST_VOICES = new('boost-voices') + CAMERA_UPLOAD = new('camera_upload') CLIENT_RADIO_STATIONS = new('client-radio-stations') CLOUDFLARE_TURNSTILE_REQUIRED = new('cloudflare-turnstile-required') + CLOUDSYNC = new('cloudsync') COLLECTIONS = new('collections') COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS = new('comments_and_replies_push_notifications') COMMUNITY_ACCESS_PLEX_TV = new('community_access_plex_tv') COMPANIONS_SONOS = new('companions_sonos') + CONTENT_FILTER = new('content_filter') CUSTOM_HOME_REMOVAL = new('custom-home-removal') DISABLE_HOME_USER_FRIENDSHIPS = new('disable_home_user_friendships') DISABLE_SHARING_FRIENDSHIPS = new('disable_sharing_friendships') + DOWNLOADS_GATING = new('downloads-gating') DRM_SUPPORT = new('drm_support') + DVR = new('dvr') + DVR_BLOCK_UNSUPPORTED_COUNTRIES = new('dvr-block-unsupported-countries') + EPG_RECENT_CHANNELS = new('epg-recent-channels') EXCLUDE_RESTRICTIONS = new('exclude restrictions') FEDERATED_AUTH = new('federated-auth') FRIEND_REQUEST_PUSH_NOTIFICATIONS = new('friend_request_push_notifications') + GRANDFATHER_SYNC = new('grandfather-sync') GUIDED_UPGRADE = new('guided-upgrade') + HARDWARE_TRANSCODING = new('hardware_transcoding') HOME = new('home') + HWTRANSCODE = new('hwtranscode') + IMAGGA_V2 = new('imagga-v2') INCREASE_PASSWORD_COMPLEXITY = new('increase-password-complexity') IOS14_PRIVACY_BANNER = new('ios14-privacy-banner') ITERABLE_NOTIFICATION_TOKENS = new('iterable-notification-tokens') + ITEM_CLUSTERS = new('item_clusters') KEEP_PAYMENT_METHOD = new('keep-payment-method') KEVIN_BACON = new('kevin-bacon') KOREA_CONSENT = new('korea-consent') @@ -50,28 +65,49 @@ class Features < T::Enum LIGHTNING_DVR_PIVOT = new('lightning-dvr-pivot') LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS = new('live-tv-support-incomplete-segments') LIVETV = new('livetv') + LYRICS = new('lyrics') METADATA_SEARCH = new('metadata_search') + MUSIC_ANALYSIS = new('music-analysis') + MUSIC_VIDEOS = new('music_videos') NEW_PLEX_PASS_PRICES = new('new_plex_pass_prices') NEWS_PROVIDER_SUNSET_MODAL = new('news-provider-sunset-modal') + NOMINATIM = new('nominatim') + PASS = new('pass') PHOTOS_FAVORITES = new('photos-favorites') PHOTOS_METADATA_EDITION = new('photos-metadata-edition') + PHOTOS_V6_EDIT = new('photosV6-edit') + PHOTOS_V6_TV_ALBUMS = new('photosV6-tv-albums') PMS_HEALTH = new('pms_health') + PREMIUM_DASHBOARD = new('premium-dashboard') + PREMIUM_MUSIC_METADATA = new('premium_music_metadata') RADIO = new('radio') RATE_LIMIT_CLIENT_TOKEN = new('rate-limit-client-token') SCROBBLING_SERVICE_PLEX_TV = new('scrobbling-service-plex-tv') + SESSION_BANDWIDTH_RESTRICTIONS = new('session_bandwidth_restrictions') + SESSION_KICK = new('session_kick') SHARED_SERVER_NOTIFICATION = new('shared_server_notification') SHARED_SOURCE_NOTIFICATION = new('shared_source_notification') + SIGNIN_NOTIFICATION = new('signin_notification') SIGNIN_WITH_APPLE = new('signin_with_apple') + SILENCE_REMOVAL = new('silence-removal') + SLEEP_TIMER = new('sleep-timer') SPRING_SERVE_AD_PROVIDER = new('spring_serve_ad_provider') + SYNC = new('sync') + SWEET_FADES = new('sweet-fades') TRANSCODER_CACHE = new('transcoder_cache') + TRAILERS = new('trailers') TUNER_SHARING = new('tuner-sharing') TWO_FACTOR_AUTHENTICATION = new('two-factor-authentication') UNSUPPORTEDTUNERS = new('unsupportedtuners') UPGRADE_3DS2 = new('upgrade-3ds2') + VISUALIZERS = new('visualizers') VOD_SCHEMA = new('vod-schema') VOD_CLOUDFLARE = new('vod_cloudflare') + VOLUME_LEVELING = new('volume-leveling') WATCH_TOGETHER_INVITE = new('watch-together-invite') + WATCHLIST_RSS = new('watchlist-rss') WEB_SERVER_DASHBOARD = new('web_server_dashboard') + WEBHOOKS = new('webhooks') end end end diff --git a/lib/plex_ruby_sdk/models/operations/get_server_resources_request.rb b/lib/plex_ruby_sdk/models/operations/get_server_resources_request.rb index 2895c80..c7c378a 100644 --- a/lib/plex_ruby_sdk/models/operations/get_server_resources_request.rb +++ b/lib/plex_ruby_sdk/models/operations/get_server_resources_request.rb @@ -14,6 +14,11 @@ module Operations class GetServerResourcesRequest < ::PlexRubySDK::Utils::FieldAugmented extend T::Sig + # 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) + # + field :client_id, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Client-Identifier', 'style': 'form', 'explode': true } } # Include Https entries in the results field :include_https, T.nilable(::PlexRubySDK::Operations::IncludeHttps), { 'query_param': { 'field_name': 'includeHttps', 'style': 'form', 'explode': true } } # Include IPv6 entries in the results @@ -24,8 +29,9 @@ class GetServerResourcesRequest < ::PlexRubySDK::Utils::FieldAugmented field :include_relay, T.nilable(::PlexRubySDK::Operations::IncludeRelay), { 'query_param': { 'field_name': 'includeRelay', 'style': 'form', 'explode': true } } - sig { params(include_https: T.nilable(::PlexRubySDK::Operations::IncludeHttps), include_i_pv6: T.nilable(::PlexRubySDK::Operations::IncludeIPv6), include_relay: T.nilable(::PlexRubySDK::Operations::IncludeRelay)).void } - def initialize(include_https: nil, include_i_pv6: nil, include_relay: nil) + sig { params(client_id: T.nilable(::String), include_https: T.nilable(::PlexRubySDK::Operations::IncludeHttps), include_i_pv6: T.nilable(::PlexRubySDK::Operations::IncludeIPv6), include_relay: T.nilable(::PlexRubySDK::Operations::IncludeRelay)).void } + def initialize(client_id: nil, include_https: nil, include_i_pv6: nil, include_relay: nil) + @client_id = client_id @include_https = include_https @include_i_pv6 = include_i_pv6 @include_relay = include_relay diff --git a/lib/plex_ruby_sdk/models/operations/gettokendetails_features.rb b/lib/plex_ruby_sdk/models/operations/gettokendetails_features.rb index 48c0561..581783e 100644 --- a/lib/plex_ruby_sdk/models/operations/gettokendetails_features.rb +++ b/lib/plex_ruby_sdk/models/operations/gettokendetails_features.rb @@ -20,28 +20,43 @@ class GetTokenDetailsFeatures < T::Enum TREBLE_SHOW_FEATURES = new('TREBLE-show-features') AD_COUNTDOWN_TIMER = new('ad-countdown-timer') ADAPTIVE_BITRATE = new('adaptive_bitrate') + ALBUM_TYPES = new('album-types') + ALLOW_DVR = new('allow_dvr') AMAZON_LOOP_DEBUG = new('amazon-loop-debug') AVOD_AD_ANALYSIS = new('avod-ad-analysis') AVOD_NEW_MEDIA = new('avod-new-media') BLACKLIST_GET_SIGNIN = new('blacklist_get_signin') + BOOST_VOICES = new('boost-voices') + CAMERA_UPLOAD = new('camera_upload') CLIENT_RADIO_STATIONS = new('client-radio-stations') CLOUDFLARE_TURNSTILE_REQUIRED = new('cloudflare-turnstile-required') + CLOUDSYNC = new('cloudsync') COLLECTIONS = new('collections') COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS = new('comments_and_replies_push_notifications') COMMUNITY_ACCESS_PLEX_TV = new('community_access_plex_tv') COMPANIONS_SONOS = new('companions_sonos') + CONTENT_FILTER = new('content_filter') CUSTOM_HOME_REMOVAL = new('custom-home-removal') DISABLE_HOME_USER_FRIENDSHIPS = new('disable_home_user_friendships') DISABLE_SHARING_FRIENDSHIPS = new('disable_sharing_friendships') + DOWNLOADS_GATING = new('downloads-gating') DRM_SUPPORT = new('drm_support') + DVR = new('dvr') + DVR_BLOCK_UNSUPPORTED_COUNTRIES = new('dvr-block-unsupported-countries') + EPG_RECENT_CHANNELS = new('epg-recent-channels') EXCLUDE_RESTRICTIONS = new('exclude restrictions') FEDERATED_AUTH = new('federated-auth') FRIEND_REQUEST_PUSH_NOTIFICATIONS = new('friend_request_push_notifications') + GRANDFATHER_SYNC = new('grandfather-sync') GUIDED_UPGRADE = new('guided-upgrade') + HARDWARE_TRANSCODING = new('hardware_transcoding') HOME = new('home') + HWTRANSCODE = new('hwtranscode') + IMAGGA_V2 = new('imagga-v2') INCREASE_PASSWORD_COMPLEXITY = new('increase-password-complexity') IOS14_PRIVACY_BANNER = new('ios14-privacy-banner') ITERABLE_NOTIFICATION_TOKENS = new('iterable-notification-tokens') + ITEM_CLUSTERS = new('item_clusters') KEEP_PAYMENT_METHOD = new('keep-payment-method') KEVIN_BACON = new('kevin-bacon') KOREA_CONSENT = new('korea-consent') @@ -50,28 +65,49 @@ class GetTokenDetailsFeatures < T::Enum LIGHTNING_DVR_PIVOT = new('lightning-dvr-pivot') LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS = new('live-tv-support-incomplete-segments') LIVETV = new('livetv') + LYRICS = new('lyrics') METADATA_SEARCH = new('metadata_search') + MUSIC_ANALYSIS = new('music-analysis') + MUSIC_VIDEOS = new('music_videos') NEW_PLEX_PASS_PRICES = new('new_plex_pass_prices') NEWS_PROVIDER_SUNSET_MODAL = new('news-provider-sunset-modal') + NOMINATIM = new('nominatim') + PASS = new('pass') PHOTOS_FAVORITES = new('photos-favorites') PHOTOS_METADATA_EDITION = new('photos-metadata-edition') + PHOTOS_V6_EDIT = new('photosV6-edit') + PHOTOS_V6_TV_ALBUMS = new('photosV6-tv-albums') PMS_HEALTH = new('pms_health') + PREMIUM_DASHBOARD = new('premium-dashboard') + PREMIUM_MUSIC_METADATA = new('premium_music_metadata') RADIO = new('radio') RATE_LIMIT_CLIENT_TOKEN = new('rate-limit-client-token') SCROBBLING_SERVICE_PLEX_TV = new('scrobbling-service-plex-tv') + SESSION_BANDWIDTH_RESTRICTIONS = new('session_bandwidth_restrictions') + SESSION_KICK = new('session_kick') SHARED_SERVER_NOTIFICATION = new('shared_server_notification') SHARED_SOURCE_NOTIFICATION = new('shared_source_notification') + SIGNIN_NOTIFICATION = new('signin_notification') SIGNIN_WITH_APPLE = new('signin_with_apple') + SILENCE_REMOVAL = new('silence-removal') + SLEEP_TIMER = new('sleep-timer') SPRING_SERVE_AD_PROVIDER = new('spring_serve_ad_provider') + SYNC = new('sync') + SWEET_FADES = new('sweet-fades') TRANSCODER_CACHE = new('transcoder_cache') + TRAILERS = new('trailers') TUNER_SHARING = new('tuner-sharing') TWO_FACTOR_AUTHENTICATION = new('two-factor-authentication') UNSUPPORTEDTUNERS = new('unsupportedtuners') UPGRADE_3DS2 = new('upgrade-3ds2') + VISUALIZERS = new('visualizers') VOD_SCHEMA = new('vod-schema') VOD_CLOUDFLARE = new('vod_cloudflare') + VOLUME_LEVELING = new('volume-leveling') WATCH_TOGETHER_INVITE = new('watch-together-invite') + WATCHLIST_RSS = new('watchlist-rss') WEB_SERVER_DASHBOARD = new('web_server_dashboard') + WEBHOOKS = new('webhooks') end end end diff --git a/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_authentication_features.rb b/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_authentication_features.rb index 75e0528..14da8a5 100644 --- a/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_authentication_features.rb +++ b/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_authentication_features.rb @@ -20,28 +20,43 @@ class PostUsersSignInDataAuthenticationFeatures < T::Enum TREBLE_SHOW_FEATURES = new('TREBLE-show-features') AD_COUNTDOWN_TIMER = new('ad-countdown-timer') ADAPTIVE_BITRATE = new('adaptive_bitrate') + ALBUM_TYPES = new('album-types') + ALLOW_DVR = new('allow_dvr') AMAZON_LOOP_DEBUG = new('amazon-loop-debug') AVOD_AD_ANALYSIS = new('avod-ad-analysis') AVOD_NEW_MEDIA = new('avod-new-media') BLACKLIST_GET_SIGNIN = new('blacklist_get_signin') + BOOST_VOICES = new('boost-voices') + CAMERA_UPLOAD = new('camera_upload') CLIENT_RADIO_STATIONS = new('client-radio-stations') CLOUDFLARE_TURNSTILE_REQUIRED = new('cloudflare-turnstile-required') + CLOUDSYNC = new('cloudsync') COLLECTIONS = new('collections') COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS = new('comments_and_replies_push_notifications') COMMUNITY_ACCESS_PLEX_TV = new('community_access_plex_tv') COMPANIONS_SONOS = new('companions_sonos') + CONTENT_FILTER = new('content_filter') CUSTOM_HOME_REMOVAL = new('custom-home-removal') DISABLE_HOME_USER_FRIENDSHIPS = new('disable_home_user_friendships') DISABLE_SHARING_FRIENDSHIPS = new('disable_sharing_friendships') + DOWNLOADS_GATING = new('downloads-gating') DRM_SUPPORT = new('drm_support') + DVR = new('dvr') + DVR_BLOCK_UNSUPPORTED_COUNTRIES = new('dvr-block-unsupported-countries') + EPG_RECENT_CHANNELS = new('epg-recent-channels') EXCLUDE_RESTRICTIONS = new('exclude restrictions') FEDERATED_AUTH = new('federated-auth') FRIEND_REQUEST_PUSH_NOTIFICATIONS = new('friend_request_push_notifications') + GRANDFATHER_SYNC = new('grandfather-sync') GUIDED_UPGRADE = new('guided-upgrade') + HARDWARE_TRANSCODING = new('hardware_transcoding') HOME = new('home') + HWTRANSCODE = new('hwtranscode') + IMAGGA_V2 = new('imagga-v2') INCREASE_PASSWORD_COMPLEXITY = new('increase-password-complexity') IOS14_PRIVACY_BANNER = new('ios14-privacy-banner') ITERABLE_NOTIFICATION_TOKENS = new('iterable-notification-tokens') + ITEM_CLUSTERS = new('item_clusters') KEEP_PAYMENT_METHOD = new('keep-payment-method') KEVIN_BACON = new('kevin-bacon') KOREA_CONSENT = new('korea-consent') @@ -50,28 +65,49 @@ class PostUsersSignInDataAuthenticationFeatures < T::Enum LIGHTNING_DVR_PIVOT = new('lightning-dvr-pivot') LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS = new('live-tv-support-incomplete-segments') LIVETV = new('livetv') + LYRICS = new('lyrics') METADATA_SEARCH = new('metadata_search') + MUSIC_ANALYSIS = new('music-analysis') + MUSIC_VIDEOS = new('music_videos') NEW_PLEX_PASS_PRICES = new('new_plex_pass_prices') NEWS_PROVIDER_SUNSET_MODAL = new('news-provider-sunset-modal') + NOMINATIM = new('nominatim') + PASS = new('pass') PHOTOS_FAVORITES = new('photos-favorites') PHOTOS_METADATA_EDITION = new('photos-metadata-edition') + PHOTOS_V6_EDIT = new('photosV6-edit') + PHOTOS_V6_TV_ALBUMS = new('photosV6-tv-albums') PMS_HEALTH = new('pms_health') + PREMIUM_DASHBOARD = new('premium-dashboard') + PREMIUM_MUSIC_METADATA = new('premium_music_metadata') RADIO = new('radio') RATE_LIMIT_CLIENT_TOKEN = new('rate-limit-client-token') SCROBBLING_SERVICE_PLEX_TV = new('scrobbling-service-plex-tv') + SESSION_BANDWIDTH_RESTRICTIONS = new('session_bandwidth_restrictions') + SESSION_KICK = new('session_kick') SHARED_SERVER_NOTIFICATION = new('shared_server_notification') SHARED_SOURCE_NOTIFICATION = new('shared_source_notification') + SIGNIN_NOTIFICATION = new('signin_notification') SIGNIN_WITH_APPLE = new('signin_with_apple') + SILENCE_REMOVAL = new('silence-removal') + SLEEP_TIMER = new('sleep-timer') SPRING_SERVE_AD_PROVIDER = new('spring_serve_ad_provider') + SYNC = new('sync') + SWEET_FADES = new('sweet-fades') TRANSCODER_CACHE = new('transcoder_cache') + TRAILERS = new('trailers') TUNER_SHARING = new('tuner-sharing') TWO_FACTOR_AUTHENTICATION = new('two-factor-authentication') UNSUPPORTEDTUNERS = new('unsupportedtuners') UPGRADE_3DS2 = new('upgrade-3ds2') + VISUALIZERS = new('visualizers') VOD_SCHEMA = new('vod-schema') VOD_CLOUDFLARE = new('vod_cloudflare') + VOLUME_LEVELING = new('volume-leveling') WATCH_TOGETHER_INVITE = new('watch-together-invite') + WATCHLIST_RSS = new('watchlist-rss') WEB_SERVER_DASHBOARD = new('web_server_dashboard') + WEBHOOKS = new('webhooks') end end end diff --git a/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_features.rb b/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_features.rb index dd0fb29..c3ecec6 100644 --- a/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_features.rb +++ b/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_features.rb @@ -20,28 +20,43 @@ class PostUsersSignInDataFeatures < T::Enum TREBLE_SHOW_FEATURES = new('TREBLE-show-features') AD_COUNTDOWN_TIMER = new('ad-countdown-timer') ADAPTIVE_BITRATE = new('adaptive_bitrate') + ALBUM_TYPES = new('album-types') + ALLOW_DVR = new('allow_dvr') AMAZON_LOOP_DEBUG = new('amazon-loop-debug') AVOD_AD_ANALYSIS = new('avod-ad-analysis') AVOD_NEW_MEDIA = new('avod-new-media') BLACKLIST_GET_SIGNIN = new('blacklist_get_signin') + BOOST_VOICES = new('boost-voices') + CAMERA_UPLOAD = new('camera_upload') CLIENT_RADIO_STATIONS = new('client-radio-stations') CLOUDFLARE_TURNSTILE_REQUIRED = new('cloudflare-turnstile-required') + CLOUDSYNC = new('cloudsync') COLLECTIONS = new('collections') COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS = new('comments_and_replies_push_notifications') COMMUNITY_ACCESS_PLEX_TV = new('community_access_plex_tv') COMPANIONS_SONOS = new('companions_sonos') + CONTENT_FILTER = new('content_filter') CUSTOM_HOME_REMOVAL = new('custom-home-removal') DISABLE_HOME_USER_FRIENDSHIPS = new('disable_home_user_friendships') DISABLE_SHARING_FRIENDSHIPS = new('disable_sharing_friendships') + DOWNLOADS_GATING = new('downloads-gating') DRM_SUPPORT = new('drm_support') + DVR = new('dvr') + DVR_BLOCK_UNSUPPORTED_COUNTRIES = new('dvr-block-unsupported-countries') + EPG_RECENT_CHANNELS = new('epg-recent-channels') EXCLUDE_RESTRICTIONS = new('exclude restrictions') FEDERATED_AUTH = new('federated-auth') FRIEND_REQUEST_PUSH_NOTIFICATIONS = new('friend_request_push_notifications') + GRANDFATHER_SYNC = new('grandfather-sync') GUIDED_UPGRADE = new('guided-upgrade') + HARDWARE_TRANSCODING = new('hardware_transcoding') HOME = new('home') + HWTRANSCODE = new('hwtranscode') + IMAGGA_V2 = new('imagga-v2') INCREASE_PASSWORD_COMPLEXITY = new('increase-password-complexity') IOS14_PRIVACY_BANNER = new('ios14-privacy-banner') ITERABLE_NOTIFICATION_TOKENS = new('iterable-notification-tokens') + ITEM_CLUSTERS = new('item_clusters') KEEP_PAYMENT_METHOD = new('keep-payment-method') KEVIN_BACON = new('kevin-bacon') KOREA_CONSENT = new('korea-consent') @@ -50,28 +65,49 @@ class PostUsersSignInDataFeatures < T::Enum LIGHTNING_DVR_PIVOT = new('lightning-dvr-pivot') LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS = new('live-tv-support-incomplete-segments') LIVETV = new('livetv') + LYRICS = new('lyrics') METADATA_SEARCH = new('metadata_search') + MUSIC_ANALYSIS = new('music-analysis') + MUSIC_VIDEOS = new('music_videos') NEW_PLEX_PASS_PRICES = new('new_plex_pass_prices') NEWS_PROVIDER_SUNSET_MODAL = new('news-provider-sunset-modal') + NOMINATIM = new('nominatim') + PASS = new('pass') PHOTOS_FAVORITES = new('photos-favorites') PHOTOS_METADATA_EDITION = new('photos-metadata-edition') + PHOTOS_V6_EDIT = new('photosV6-edit') + PHOTOS_V6_TV_ALBUMS = new('photosV6-tv-albums') PMS_HEALTH = new('pms_health') + PREMIUM_DASHBOARD = new('premium-dashboard') + PREMIUM_MUSIC_METADATA = new('premium_music_metadata') RADIO = new('radio') RATE_LIMIT_CLIENT_TOKEN = new('rate-limit-client-token') SCROBBLING_SERVICE_PLEX_TV = new('scrobbling-service-plex-tv') + SESSION_BANDWIDTH_RESTRICTIONS = new('session_bandwidth_restrictions') + SESSION_KICK = new('session_kick') SHARED_SERVER_NOTIFICATION = new('shared_server_notification') SHARED_SOURCE_NOTIFICATION = new('shared_source_notification') + SIGNIN_NOTIFICATION = new('signin_notification') SIGNIN_WITH_APPLE = new('signin_with_apple') + SILENCE_REMOVAL = new('silence-removal') + SLEEP_TIMER = new('sleep-timer') SPRING_SERVE_AD_PROVIDER = new('spring_serve_ad_provider') + SYNC = new('sync') + SWEET_FADES = new('sweet-fades') TRANSCODER_CACHE = new('transcoder_cache') + TRAILERS = new('trailers') TUNER_SHARING = new('tuner-sharing') TWO_FACTOR_AUTHENTICATION = new('two-factor-authentication') UNSUPPORTEDTUNERS = new('unsupportedtuners') UPGRADE_3DS2 = new('upgrade-3ds2') + VISUALIZERS = new('visualizers') VOD_SCHEMA = new('vod-schema') VOD_CLOUDFLARE = new('vod_cloudflare') + VOLUME_LEVELING = new('volume-leveling') WATCH_TOGETHER_INVITE = new('watch-together-invite') + WATCHLIST_RSS = new('watchlist-rss') WEB_SERVER_DASHBOARD = new('web_server_dashboard') + WEBHOOKS = new('webhooks') end end end diff --git a/lib/plex_ruby_sdk/plex.rb b/lib/plex_ruby_sdk/plex.rb index 622fa2d..bcf6503 100644 --- a/lib/plex_ruby_sdk/plex.rb +++ b/lib/plex_ruby_sdk/plex.rb @@ -216,15 +216,16 @@ def get_home_data end - sig { params(include_https: T.nilable(::PlexRubySDK::Operations::IncludeHttps), include_relay: T.nilable(::PlexRubySDK::Operations::IncludeRelay), include_i_pv6: T.nilable(::PlexRubySDK::Operations::IncludeIPv6), server_url: T.nilable(String)).returns(::PlexRubySDK::Operations::GetServerResourcesResponse) } - def get_server_resources(include_https = nil, include_relay = nil, include_i_pv6 = nil, server_url = nil) + sig { params(include_https: T.nilable(::PlexRubySDK::Operations::IncludeHttps), include_relay: T.nilable(::PlexRubySDK::Operations::IncludeRelay), include_i_pv6: T.nilable(::PlexRubySDK::Operations::IncludeIPv6), client_id: T.nilable(::String), server_url: T.nilable(String)).returns(::PlexRubySDK::Operations::GetServerResourcesResponse) } + def get_server_resources(include_https = nil, include_relay = nil, include_i_pv6 = nil, client_id = nil, server_url = nil) # get_server_resources - Get Server Resources # Get Plex server access tokens and server connections request = ::PlexRubySDK::Operations::GetServerResourcesRequest.new( include_https: include_https, include_relay: include_relay, - include_i_pv6: include_i_pv6 + include_i_pv6: include_i_pv6, + client_id: client_id ) base_url = Utils.template_url(GET_SERVER_RESOURCES_SERVERS[0], { }) diff --git a/lib/plex_ruby_sdk/sdkconfiguration.rb b/lib/plex_ruby_sdk/sdkconfiguration.rb index e674719..8963782 100644 --- a/lib/plex_ruby_sdk/sdkconfiguration.rb +++ b/lib/plex_ruby_sdk/sdkconfiguration.rb @@ -42,9 +42,9 @@ def initialize(client, security, server_url, server_idx, server_params, globals) @globals = globals.nil? ? {} : globals @language = 'ruby' @openapi_doc_version = '0.0.3' - @sdk_version = '0.4.4' + @sdk_version = '0.4.5' @gen_version = '2.426.2' - @user_agent = 'speakeasy-sdk/ruby 0.4.4 2.426.2 0.0.3 plex_ruby_sdk' + @user_agent = 'speakeasy-sdk/ruby 0.4.5 2.426.2 0.0.3 plex_ruby_sdk' end sig { returns([String, T::Hash[Symbol, String]]) } diff --git a/plex_ruby_sdk.gemspec b/plex_ruby_sdk.gemspec index e56d136..cb4fc0d 100644 --- a/plex_ruby_sdk.gemspec +++ b/plex_ruby_sdk.gemspec @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__) Gem::Specification.new do |s| s.name = 'plex_ruby_sdk' - s.version = '0.4.4' + s.version = '0.4.5' s.platform = Gem::Platform::RUBY s.licenses = ['Apache-2.0'] s.summary = ''