plex_ruby_sdk 0.3.6 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/plex_ruby_sdk/authentication.rb +3 -10
- data/lib/plex_ruby_sdk/models/operations/action.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/activedirection.rb +19 -0
- data/lib/plex_ruby_sdk/models/operations/autoselectsubtitle.rb +2 -2
- data/lib/plex_ruby_sdk/models/operations/collection.rb +24 -0
- data/lib/plex_ruby_sdk/models/operations/connections.rb +10 -10
- data/lib/plex_ruby_sdk/models/operations/defaultdirection.rb +19 -0
- data/lib/plex_ruby_sdk/models/operations/defaultsubtitleaccessibility.rb +3 -3
- data/lib/plex_ruby_sdk/models/operations/defaultsubtitleforced.rb +2 -2
- data/lib/plex_ruby_sdk/models/operations/feature.rb +16 -4
- data/lib/plex_ruby_sdk/models/operations/flattenseasons.rb +18 -0
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_directory.rb +25 -25
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_mediacontainer.rb +5 -5
- data/lib/plex_ruby_sdk/models/operations/get_all_libraries_responsebody.rb +2 -2
- data/lib/plex_ruby_sdk/models/operations/get_library_items_field.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_fieldtype.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_filter.rb +36 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_image.rb +30 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_response_type.rb +20 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_library_type.rb +42 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_media.rb +22 -16
- data/lib/plex_ruby_sdk/models/operations/get_library_items_mediacontainer.rb +34 -18
- data/lib/plex_ruby_sdk/models/operations/get_library_items_metadata.rb +68 -23
- data/lib/plex_ruby_sdk/models/operations/get_library_items_operator.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_part.rb +19 -9
- data/lib/plex_ruby_sdk/models/operations/get_library_items_request.rb +10 -10
- data/lib/plex_ruby_sdk/models/operations/get_library_items_sort.rb +47 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_type.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/get_server_resources_request.rb +2 -8
- data/lib/plex_ruby_sdk/models/operations/getpin_request.rb +2 -8
- data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_queryparam_type.rb +4 -4
- data/lib/plex_ruby_sdk/models/operations/gettokenbypinid_request.rb +2 -8
- data/lib/plex_ruby_sdk/models/operations/gettokendetails_userplexaccount.rb +7 -4
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_queryparam_type.rb +4 -4
- data/lib/plex_ruby_sdk/models/operations/hasthumbnail.rb +18 -0
- data/lib/plex_ruby_sdk/models/operations/includeguids.rb +2 -2
- data/lib/plex_ruby_sdk/models/operations/includehttps.rb +2 -2
- data/lib/plex_ruby_sdk/models/operations/includeipv6.rb +2 -2
- data/lib/plex_ruby_sdk/models/operations/includemeta.rb +2 -2
- data/lib/plex_ruby_sdk/models/operations/includerelay.rb +2 -2
- data/lib/plex_ruby_sdk/models/operations/location.rb +3 -3
- data/lib/plex_ruby_sdk/models/operations/mediaguid.rb +26 -0
- data/lib/plex_ruby_sdk/models/operations/mediareviewsvisibility.rb +3 -3
- data/lib/plex_ruby_sdk/models/operations/meta.rb +28 -0
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_autoselectsubtitle.rb +2 -2
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_defaultsubtitleaccessibility.rb +3 -3
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_defaultsubtitleforced.rb +2 -2
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_mediareviewsvisibility.rb +3 -3
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_userplexaccount.rb +7 -4
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_userprofile.rb +14 -14
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_watchedindicator.rb +3 -3
- data/lib/plex_ruby_sdk/models/operations/protocol.rb +21 -0
- data/lib/plex_ruby_sdk/models/operations/queryparam_type.rb +4 -4
- data/lib/plex_ruby_sdk/models/operations/showordering.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/type.rb +4 -4
- data/lib/plex_ruby_sdk/models/operations/ultrablurcolors.rb +33 -0
- data/lib/plex_ruby_sdk/models/operations/uploadplaylist_request.rb +5 -2
- data/lib/plex_ruby_sdk/models/operations/userprofile.rb +14 -14
- data/lib/plex_ruby_sdk/models/operations/watchedindicator.rb +3 -3
- data/lib/plex_ruby_sdk/models/operations.rb +20 -1
- data/lib/plex_ruby_sdk/models/shared/security.rb +1 -1
- data/lib/plex_ruby_sdk/playlists.rb +4 -3
- data/lib/plex_ruby_sdk/plex.rb +5 -9
- data/lib/plex_ruby_sdk/sdkconfiguration.rb +3 -3
- metadata +22 -3
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_request.rb +0 -33
@@ -14,32 +14,32 @@ module PlexRubySDK
|
|
14
14
|
class UserProfile < ::PlexRubySDK::Utils::FieldAugmented
|
15
15
|
extend T::Sig
|
16
16
|
|
17
|
+
# If the account has automatically select audio and subtitle tracks enabled
|
18
|
+
field :auto_select_audio, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('autoSelectAudio') } }
|
19
|
+
|
20
|
+
field :auto_select_subtitle, ::PlexRubySDK::Operations::AutoSelectSubtitle, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('autoSelectSubtitle'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::AutoSelectSubtitle, false) } }
|
17
21
|
# The preferred audio language for the account
|
18
22
|
field :default_audio_language, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('defaultAudioLanguage') } }
|
23
|
+
|
24
|
+
field :default_subtitle_accessibility, ::PlexRubySDK::Operations::DefaultSubtitleAccessibility, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('defaultSubtitleAccessibility'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::DefaultSubtitleAccessibility, false) } }
|
25
|
+
|
26
|
+
field :default_subtitle_forced, ::PlexRubySDK::Operations::DefaultSubtitleForced, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('defaultSubtitleForced'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::DefaultSubtitleForced, false) } }
|
19
27
|
# The preferred subtitle language for the account
|
20
28
|
field :default_subtitle_language, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('defaultSubtitleLanguage') } }
|
21
|
-
# If the account has automatically select audio and subtitle tracks enabled
|
22
|
-
field :auto_select_audio, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('autoSelectAudio') } }
|
23
|
-
# The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
24
|
-
field :auto_select_subtitle, T.nilable(::PlexRubySDK::Operations::AutoSelectSubtitle), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('autoSelectSubtitle'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::AutoSelectSubtitle, true) } }
|
25
|
-
# The subtitles for the deaf or hard-of-hearing (SDH) searches mode (0 = Prefer non-SDH subtitles, 1 = Prefer SDH subtitles, 2 = Only show SDH subtitles, 3 = Only shown non-SDH subtitles)
|
26
|
-
field :default_subtitle_accessibility, T.nilable(::PlexRubySDK::Operations::DefaultSubtitleAccessibility), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('defaultSubtitleAccessibility'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::DefaultSubtitleAccessibility, true) } }
|
27
|
-
# The forced subtitles searches mode (0 = Prefer non-forced subtitles, 1 = Prefer forced subtitles, 2 = Only show forced subtitles, 3 = Only show non-forced subtitles)
|
28
|
-
field :default_subtitle_forced, T.nilable(::PlexRubySDK::Operations::DefaultSubtitleForced), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('defaultSubtitleForced'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::DefaultSubtitleForced, true) } }
|
29
29
|
|
30
|
-
field :media_reviews_visibility,
|
30
|
+
field :media_reviews_visibility, ::PlexRubySDK::Operations::MediaReviewsVisibility, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mediaReviewsVisibility'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::MediaReviewsVisibility, false) } }
|
31
31
|
|
32
|
-
field :watched_indicator,
|
32
|
+
field :watched_indicator, ::PlexRubySDK::Operations::WatchedIndicator, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('watchedIndicator'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::WatchedIndicator, false) } }
|
33
33
|
|
34
34
|
|
35
|
-
sig { params(
|
36
|
-
def initialize(
|
37
|
-
@default_audio_language = default_audio_language
|
38
|
-
@default_subtitle_language = default_subtitle_language
|
35
|
+
sig { params(auto_select_audio: T::Boolean, auto_select_subtitle: ::PlexRubySDK::Operations::AutoSelectSubtitle, default_audio_language: ::String, default_subtitle_accessibility: ::PlexRubySDK::Operations::DefaultSubtitleAccessibility, default_subtitle_forced: ::PlexRubySDK::Operations::DefaultSubtitleForced, default_subtitle_language: ::String, media_reviews_visibility: ::PlexRubySDK::Operations::MediaReviewsVisibility, watched_indicator: ::PlexRubySDK::Operations::WatchedIndicator).void }
|
36
|
+
def initialize(auto_select_audio: nil, auto_select_subtitle: nil, default_audio_language: nil, default_subtitle_accessibility: nil, default_subtitle_forced: nil, default_subtitle_language: nil, media_reviews_visibility: nil, watched_indicator: nil)
|
39
37
|
@auto_select_audio = auto_select_audio
|
40
38
|
@auto_select_subtitle = auto_select_subtitle
|
39
|
+
@default_audio_language = default_audio_language
|
41
40
|
@default_subtitle_accessibility = default_subtitle_accessibility
|
42
41
|
@default_subtitle_forced = default_subtitle_forced
|
42
|
+
@default_subtitle_language = default_subtitle_language
|
43
43
|
@media_reviews_visibility = media_reviews_visibility
|
44
44
|
@watched_indicator = watched_indicator
|
45
45
|
end
|
@@ -10,11 +10,11 @@ module PlexRubySDK
|
|
10
10
|
'https://plex.tv/api/v2/'
|
11
11
|
].freeze
|
12
12
|
|
13
|
-
|
13
|
+
# WatchedIndicator - Whether or not media watched indicators are enabled (little orange dot on media)
|
14
14
|
class WatchedIndicator < T::Enum
|
15
15
|
enums do
|
16
|
-
|
17
|
-
|
16
|
+
DISABLE = new(0)
|
17
|
+
ENABLE = new(1)
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
@@ -63,6 +63,7 @@ module PlexRubySDK
|
|
63
63
|
autoload :GetMediaProvidersBadRequest, 'plex_ruby_sdk/models/operations/get_media_providers_badrequest.rb'
|
64
64
|
autoload :Pivot, 'plex_ruby_sdk/models/operations/pivot.rb'
|
65
65
|
autoload :GetMediaProvidersDirectory, 'plex_ruby_sdk/models/operations/get_media_providers_directory.rb'
|
66
|
+
autoload :Action, 'plex_ruby_sdk/models/operations/action.rb'
|
66
67
|
autoload :Feature, 'plex_ruby_sdk/models/operations/feature.rb'
|
67
68
|
autoload :MediaProvider, 'plex_ruby_sdk/models/operations/mediaprovider.rb'
|
68
69
|
autoload :GetMediaProvidersMediaContainer, 'plex_ruby_sdk/models/operations/get_media_providers_mediacontainer.rb'
|
@@ -201,6 +202,7 @@ module PlexRubySDK
|
|
201
202
|
autoload :GetServerResourcesUnauthorized, 'plex_ruby_sdk/models/operations/get_server_resources_unauthorized.rb'
|
202
203
|
autoload :GetServerResourcesErrors, 'plex_ruby_sdk/models/operations/get_server_resources_errors.rb'
|
203
204
|
autoload :GetServerResourcesBadRequest, 'plex_ruby_sdk/models/operations/get_server_resources_badrequest.rb'
|
205
|
+
autoload :Protocol, 'plex_ruby_sdk/models/operations/protocol.rb'
|
204
206
|
autoload :Connections, 'plex_ruby_sdk/models/operations/connections.rb'
|
205
207
|
autoload :PlexDevice, 'plex_ruby_sdk/models/operations/plexdevice.rb'
|
206
208
|
autoload :GetServerResourcesResponse, 'plex_ruby_sdk/models/operations/get_server_resources_response.rb'
|
@@ -338,14 +340,32 @@ module PlexRubySDK
|
|
338
340
|
autoload :GetLibraryItemsUnauthorized, 'plex_ruby_sdk/models/operations/get_library_items_unauthorized.rb'
|
339
341
|
autoload :GetLibraryItemsErrors, 'plex_ruby_sdk/models/operations/get_library_items_errors.rb'
|
340
342
|
autoload :GetLibraryItemsBadRequest, 'plex_ruby_sdk/models/operations/get_library_items_badrequest.rb'
|
343
|
+
autoload :GetLibraryItemsType, 'plex_ruby_sdk/models/operations/get_library_items_type.rb'
|
344
|
+
autoload :FlattenSeasons, 'plex_ruby_sdk/models/operations/flattenseasons.rb'
|
345
|
+
autoload :ShowOrdering, 'plex_ruby_sdk/models/operations/showordering.rb'
|
346
|
+
autoload :HasThumbnail, 'plex_ruby_sdk/models/operations/hasthumbnail.rb'
|
341
347
|
autoload :GetLibraryItemsPart, 'plex_ruby_sdk/models/operations/get_library_items_part.rb'
|
342
348
|
autoload :GetLibraryItemsMedia, 'plex_ruby_sdk/models/operations/get_library_items_media.rb'
|
343
349
|
autoload :GetLibraryItemsGenre, 'plex_ruby_sdk/models/operations/get_library_items_genre.rb'
|
344
350
|
autoload :GetLibraryItemsCountry, 'plex_ruby_sdk/models/operations/get_library_items_country.rb'
|
345
351
|
autoload :GetLibraryItemsDirector, 'plex_ruby_sdk/models/operations/get_library_items_director.rb'
|
346
352
|
autoload :GetLibraryItemsWriter, 'plex_ruby_sdk/models/operations/get_library_items_writer.rb'
|
353
|
+
autoload :Collection, 'plex_ruby_sdk/models/operations/collection.rb'
|
347
354
|
autoload :GetLibraryItemsRole, 'plex_ruby_sdk/models/operations/get_library_items_role.rb'
|
355
|
+
autoload :MediaGuid, 'plex_ruby_sdk/models/operations/mediaguid.rb'
|
356
|
+
autoload :UltraBlurColors, 'plex_ruby_sdk/models/operations/ultrablurcolors.rb'
|
357
|
+
autoload :GetLibraryItemsLibraryResponseType, 'plex_ruby_sdk/models/operations/get_library_items_library_response_type.rb'
|
358
|
+
autoload :GetLibraryItemsImage, 'plex_ruby_sdk/models/operations/get_library_items_image.rb'
|
348
359
|
autoload :GetLibraryItemsMetadata, 'plex_ruby_sdk/models/operations/get_library_items_metadata.rb'
|
360
|
+
autoload :GetLibraryItemsFilter, 'plex_ruby_sdk/models/operations/get_library_items_filter.rb'
|
361
|
+
autoload :ActiveDirection, 'plex_ruby_sdk/models/operations/activedirection.rb'
|
362
|
+
autoload :DefaultDirection, 'plex_ruby_sdk/models/operations/defaultdirection.rb'
|
363
|
+
autoload :GetLibraryItemsSort, 'plex_ruby_sdk/models/operations/get_library_items_sort.rb'
|
364
|
+
autoload :GetLibraryItemsField, 'plex_ruby_sdk/models/operations/get_library_items_field.rb'
|
365
|
+
autoload :GetLibraryItemsLibraryType, 'plex_ruby_sdk/models/operations/get_library_items_library_type.rb'
|
366
|
+
autoload :GetLibraryItemsOperator, 'plex_ruby_sdk/models/operations/get_library_items_operator.rb'
|
367
|
+
autoload :GetLibraryItemsFieldType, 'plex_ruby_sdk/models/operations/get_library_items_fieldtype.rb'
|
368
|
+
autoload :Meta, 'plex_ruby_sdk/models/operations/meta.rb'
|
349
369
|
autoload :GetLibraryItemsMediaContainer, 'plex_ruby_sdk/models/operations/get_library_items_mediacontainer.rb'
|
350
370
|
autoload :GetLibraryItemsResponseBody, 'plex_ruby_sdk/models/operations/get_library_items_responsebody.rb'
|
351
371
|
autoload :GetLibraryItemsResponse, 'plex_ruby_sdk/models/operations/get_library_items_response.rb'
|
@@ -571,7 +591,6 @@ module PlexRubySDK
|
|
571
591
|
autoload :GetTokenDetailsUserPlexAccount, 'plex_ruby_sdk/models/operations/gettokendetails_userplexaccount.rb'
|
572
592
|
autoload :GetTokenDetailsResponse, 'plex_ruby_sdk/models/operations/gettokendetails_response.rb'
|
573
593
|
autoload :PostUsersSignInDataRequestBody, 'plex_ruby_sdk/models/operations/post_users_sign_in_data_requestbody.rb'
|
574
|
-
autoload :PostUsersSignInDataRequest, 'plex_ruby_sdk/models/operations/post_users_sign_in_data_request.rb'
|
575
594
|
autoload :PostUsersSignInDataAuthenticationErrors, 'plex_ruby_sdk/models/operations/post_users_sign_in_data_authentication_errors.rb'
|
576
595
|
autoload :PostUsersSignInDataUnauthorized, 'plex_ruby_sdk/models/operations/post_users_sign_in_data_unauthorized.rb'
|
577
596
|
autoload :PostUsersSignInDataErrors, 'plex_ruby_sdk/models/operations/post_users_sign_in_data_errors.rb'
|
@@ -12,7 +12,7 @@ module PlexRubySDK
|
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
|
15
|
-
field :access_token, T.nilable(::String), { 'security': { 'scheme': true, 'type': 'apiKey', 'sub_type': '
|
15
|
+
field :access_token, T.nilable(::String), { 'security': { 'scheme': true, 'type': 'apiKey', 'sub_type': 'header', 'field_name': 'X-Plex-Token' } }
|
16
16
|
|
17
17
|
|
18
18
|
sig { params(access_token: T.nilable(::String)).void }
|
@@ -433,15 +433,16 @@ module PlexRubySDK
|
|
433
433
|
end
|
434
434
|
|
435
435
|
|
436
|
-
sig { params(path: ::String, force: ::PlexRubySDK::Operations::QueryParamForce).returns(::PlexRubySDK::Operations::UploadPlaylistResponse) }
|
437
|
-
def upload_playlist(path, force)
|
436
|
+
sig { params(path: ::String, force: ::PlexRubySDK::Operations::QueryParamForce, section_id: ::Integer).returns(::PlexRubySDK::Operations::UploadPlaylistResponse) }
|
437
|
+
def upload_playlist(path, force, section_id)
|
438
438
|
# upload_playlist - Upload Playlist
|
439
439
|
# Imports m3u playlists by passing a path on the server to scan for m3u-formatted playlist files, or a path to a single playlist file.
|
440
440
|
#
|
441
441
|
request = ::PlexRubySDK::Operations::UploadPlaylistRequest.new(
|
442
442
|
|
443
443
|
path: path,
|
444
|
-
force: force
|
444
|
+
force: force,
|
445
|
+
section_id: section_id
|
445
446
|
)
|
446
447
|
url, params = @sdk_configuration.get_server_details
|
447
448
|
base_url = Utils.template_url(url, params)
|
data/lib/plex_ruby_sdk/plex.rb
CHANGED
@@ -216,13 +216,12 @@ module PlexRubySDK
|
|
216
216
|
end
|
217
217
|
|
218
218
|
|
219
|
-
sig { params(
|
220
|
-
def get_server_resources(
|
219
|
+
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) }
|
220
|
+
def get_server_resources(include_https = nil, include_relay = nil, include_i_pv6 = nil, server_url = nil)
|
221
221
|
# get_server_resources - Get Server Resources
|
222
222
|
# Get Plex server access tokens and server connections
|
223
223
|
request = ::PlexRubySDK::Operations::GetServerResourcesRequest.new(
|
224
224
|
|
225
|
-
client_id: client_id,
|
226
225
|
include_https: include_https,
|
227
226
|
include_relay: include_relay,
|
228
227
|
include_i_pv6: include_i_pv6
|
@@ -305,14 +304,13 @@ module PlexRubySDK
|
|
305
304
|
end
|
306
305
|
|
307
306
|
|
308
|
-
sig { params(pin_id: ::Integer,
|
309
|
-
def get_token_by_pin_id(pin_id,
|
307
|
+
sig { params(pin_id: ::Integer, server_url: T.nilable(String)).returns(::PlexRubySDK::Operations::GetTokenByPinIdResponse) }
|
308
|
+
def get_token_by_pin_id(pin_id, server_url = nil)
|
310
309
|
# get_token_by_pin_id - Get Access Token by PinId
|
311
310
|
# Retrieve an Access Token from Plex.tv after the Pin has been authenticated
|
312
311
|
request = ::PlexRubySDK::Operations::GetTokenByPinIdRequest.new(
|
313
312
|
|
314
|
-
pin_id: pin_id
|
315
|
-
client_id: client_id
|
313
|
+
pin_id: pin_id
|
316
314
|
)
|
317
315
|
base_url = Utils.template_url(GET_TOKEN_BY_PIN_ID_SERVERS[0], {
|
318
316
|
})
|
@@ -325,13 +323,11 @@ module PlexRubySDK
|
|
325
323
|
@sdk_configuration.globals
|
326
324
|
)
|
327
325
|
headers = {}
|
328
|
-
query_params = Utils.get_query_params(::PlexRubySDK::Operations::GetTokenByPinIdRequest, request, @sdk_configuration.globals)
|
329
326
|
headers['Accept'] = 'application/json'
|
330
327
|
headers['user-agent'] = @sdk_configuration.user_agent
|
331
328
|
|
332
329
|
r = @sdk_configuration.client.get(url) do |req|
|
333
330
|
req.headers = headers
|
334
|
-
req.params = query_params
|
335
331
|
end
|
336
332
|
|
337
333
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -42,9 +42,9 @@ module PlexRubySDK
|
|
42
42
|
@globals = globals.nil? ? {} : globals
|
43
43
|
@language = 'ruby'
|
44
44
|
@openapi_doc_version = '0.0.3'
|
45
|
-
@sdk_version = '0.
|
46
|
-
@gen_version = '2.
|
47
|
-
@user_agent = 'speakeasy-sdk/ruby 0.
|
45
|
+
@sdk_version = '0.4.1'
|
46
|
+
@gen_version = '2.421.3'
|
47
|
+
@user_agent = 'speakeasy-sdk/ruby 0.4.1 2.421.3 0.0.3 plex_ruby_sdk'
|
48
48
|
end
|
49
49
|
|
50
50
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plex_ruby_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LukeHagar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -152,6 +152,8 @@ files:
|
|
152
152
|
- lib/plex_ruby_sdk/media.rb
|
153
153
|
- lib/plex_ruby_sdk/models/operations.rb
|
154
154
|
- lib/plex_ruby_sdk/models/operations/account.rb
|
155
|
+
- lib/plex_ruby_sdk/models/operations/action.rb
|
156
|
+
- lib/plex_ruby_sdk/models/operations/activedirection.rb
|
155
157
|
- lib/plex_ruby_sdk/models/operations/activity.rb
|
156
158
|
- lib/plex_ruby_sdk/models/operations/addplaylistcontents_badrequest.rb
|
157
159
|
- lib/plex_ruby_sdk/models/operations/addplaylistcontents_errors.rb
|
@@ -190,6 +192,7 @@ files:
|
|
190
192
|
- lib/plex_ruby_sdk/models/operations/clearplaylistcontents_request.rb
|
191
193
|
- lib/plex_ruby_sdk/models/operations/clearplaylistcontents_response.rb
|
192
194
|
- lib/plex_ruby_sdk/models/operations/clearplaylistcontents_unauthorized.rb
|
195
|
+
- lib/plex_ruby_sdk/models/operations/collection.rb
|
193
196
|
- lib/plex_ruby_sdk/models/operations/connections.rb
|
194
197
|
- lib/plex_ruby_sdk/models/operations/context.rb
|
195
198
|
- lib/plex_ruby_sdk/models/operations/country.rb
|
@@ -203,6 +206,7 @@ files:
|
|
203
206
|
- lib/plex_ruby_sdk/models/operations/createplaylist_response.rb
|
204
207
|
- lib/plex_ruby_sdk/models/operations/createplaylist_responsebody.rb
|
205
208
|
- lib/plex_ruby_sdk/models/operations/createplaylist_unauthorized.rb
|
209
|
+
- lib/plex_ruby_sdk/models/operations/defaultdirection.rb
|
206
210
|
- lib/plex_ruby_sdk/models/operations/defaultsubtitleaccessibility.rb
|
207
211
|
- lib/plex_ruby_sdk/models/operations/defaultsubtitleforced.rb
|
208
212
|
- lib/plex_ruby_sdk/models/operations/deletelibrary_badrequest.rb
|
@@ -232,6 +236,7 @@ files:
|
|
232
236
|
- lib/plex_ruby_sdk/models/operations/field.rb
|
233
237
|
- lib/plex_ruby_sdk/models/operations/fieldtype.rb
|
234
238
|
- lib/plex_ruby_sdk/models/operations/filter.rb
|
239
|
+
- lib/plex_ruby_sdk/models/operations/flattenseasons.rb
|
235
240
|
- lib/plex_ruby_sdk/models/operations/force.rb
|
236
241
|
- lib/plex_ruby_sdk/models/operations/friend.rb
|
237
242
|
- lib/plex_ruby_sdk/models/operations/genre.rb
|
@@ -265,16 +270,25 @@ files:
|
|
265
270
|
- lib/plex_ruby_sdk/models/operations/get_library_items_country.rb
|
266
271
|
- lib/plex_ruby_sdk/models/operations/get_library_items_director.rb
|
267
272
|
- lib/plex_ruby_sdk/models/operations/get_library_items_errors.rb
|
273
|
+
- lib/plex_ruby_sdk/models/operations/get_library_items_field.rb
|
274
|
+
- lib/plex_ruby_sdk/models/operations/get_library_items_fieldtype.rb
|
275
|
+
- lib/plex_ruby_sdk/models/operations/get_library_items_filter.rb
|
268
276
|
- lib/plex_ruby_sdk/models/operations/get_library_items_genre.rb
|
277
|
+
- lib/plex_ruby_sdk/models/operations/get_library_items_image.rb
|
269
278
|
- lib/plex_ruby_sdk/models/operations/get_library_items_library_errors.rb
|
279
|
+
- lib/plex_ruby_sdk/models/operations/get_library_items_library_response_type.rb
|
280
|
+
- lib/plex_ruby_sdk/models/operations/get_library_items_library_type.rb
|
270
281
|
- lib/plex_ruby_sdk/models/operations/get_library_items_media.rb
|
271
282
|
- lib/plex_ruby_sdk/models/operations/get_library_items_mediacontainer.rb
|
272
283
|
- lib/plex_ruby_sdk/models/operations/get_library_items_metadata.rb
|
284
|
+
- lib/plex_ruby_sdk/models/operations/get_library_items_operator.rb
|
273
285
|
- lib/plex_ruby_sdk/models/operations/get_library_items_part.rb
|
274
286
|
- lib/plex_ruby_sdk/models/operations/get_library_items_request.rb
|
275
287
|
- lib/plex_ruby_sdk/models/operations/get_library_items_response.rb
|
276
288
|
- lib/plex_ruby_sdk/models/operations/get_library_items_responsebody.rb
|
277
289
|
- lib/plex_ruby_sdk/models/operations/get_library_items_role.rb
|
290
|
+
- lib/plex_ruby_sdk/models/operations/get_library_items_sort.rb
|
291
|
+
- lib/plex_ruby_sdk/models/operations/get_library_items_type.rb
|
278
292
|
- lib/plex_ruby_sdk/models/operations/get_library_items_unauthorized.rb
|
279
293
|
- lib/plex_ruby_sdk/models/operations/get_library_items_writer.rb
|
280
294
|
- lib/plex_ruby_sdk/models/operations/get_media_providers_badrequest.rb
|
@@ -655,6 +669,7 @@ files:
|
|
655
669
|
- lib/plex_ruby_sdk/models/operations/getuserfriends_response.rb
|
656
670
|
- lib/plex_ruby_sdk/models/operations/getuserfriends_unauthorized.rb
|
657
671
|
- lib/plex_ruby_sdk/models/operations/guids.rb
|
672
|
+
- lib/plex_ruby_sdk/models/operations/hasthumbnail.rb
|
658
673
|
- lib/plex_ruby_sdk/models/operations/hub.rb
|
659
674
|
- lib/plex_ruby_sdk/models/operations/image.rb
|
660
675
|
- lib/plex_ruby_sdk/models/operations/includecollections.rb
|
@@ -695,8 +710,10 @@ files:
|
|
695
710
|
- lib/plex_ruby_sdk/models/operations/markunplayed_unauthorized.rb
|
696
711
|
- lib/plex_ruby_sdk/models/operations/media.rb
|
697
712
|
- lib/plex_ruby_sdk/models/operations/mediacontainer.rb
|
713
|
+
- lib/plex_ruby_sdk/models/operations/mediaguid.rb
|
698
714
|
- lib/plex_ruby_sdk/models/operations/mediaprovider.rb
|
699
715
|
- lib/plex_ruby_sdk/models/operations/mediareviewsvisibility.rb
|
716
|
+
- lib/plex_ruby_sdk/models/operations/meta.rb
|
700
717
|
- lib/plex_ruby_sdk/models/operations/metadata.rb
|
701
718
|
- lib/plex_ruby_sdk/models/operations/minsize.rb
|
702
719
|
- lib/plex_ruby_sdk/models/operations/myplex.rb
|
@@ -734,7 +751,6 @@ files:
|
|
734
751
|
- lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_features.rb
|
735
752
|
- lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_mailingliststatus.rb
|
736
753
|
- lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_mediareviewsvisibility.rb
|
737
|
-
- lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_request.rb
|
738
754
|
- lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_requestbody.rb
|
739
755
|
- lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_response.rb
|
740
756
|
- lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_services.rb
|
@@ -746,6 +762,7 @@ files:
|
|
746
762
|
- lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_userprofile.rb
|
747
763
|
- lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_watchedindicator.rb
|
748
764
|
- lib/plex_ruby_sdk/models/operations/producer.rb
|
765
|
+
- lib/plex_ruby_sdk/models/operations/protocol.rb
|
749
766
|
- lib/plex_ruby_sdk/models/operations/provider.rb
|
750
767
|
- lib/plex_ruby_sdk/models/operations/queryparam_filter.rb
|
751
768
|
- lib/plex_ruby_sdk/models/operations/queryparam_force.rb
|
@@ -763,6 +780,7 @@ files:
|
|
763
780
|
- lib/plex_ruby_sdk/models/operations/setting.rb
|
764
781
|
- lib/plex_ruby_sdk/models/operations/sharedservers.rb
|
765
782
|
- lib/plex_ruby_sdk/models/operations/sharedsources.rb
|
783
|
+
- lib/plex_ruby_sdk/models/operations/showordering.rb
|
766
784
|
- lib/plex_ruby_sdk/models/operations/skip.rb
|
767
785
|
- lib/plex_ruby_sdk/models/operations/smart.rb
|
768
786
|
- lib/plex_ruby_sdk/models/operations/sort.rb
|
@@ -813,6 +831,7 @@ files:
|
|
813
831
|
- lib/plex_ruby_sdk/models/operations/transcodesession.rb
|
814
832
|
- lib/plex_ruby_sdk/models/operations/trials.rb
|
815
833
|
- lib/plex_ruby_sdk/models/operations/type.rb
|
834
|
+
- lib/plex_ruby_sdk/models/operations/ultrablurcolors.rb
|
816
835
|
- lib/plex_ruby_sdk/models/operations/updateplaylist_badrequest.rb
|
817
836
|
- lib/plex_ruby_sdk/models/operations/updateplaylist_errors.rb
|
818
837
|
- lib/plex_ruby_sdk/models/operations/updateplaylist_playlists_errors.rb
|
@@ -1,33 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
|
7
|
-
module PlexRubySDK
|
8
|
-
module Operations
|
9
|
-
POST_USERS_SIGN_IN_DATA_REQUEST_SERVERS = [
|
10
|
-
'https://plex.tv/api/v2/'
|
11
|
-
].freeze
|
12
|
-
|
13
|
-
|
14
|
-
class PostUsersSignInDataRequest < ::PlexRubySDK::Utils::FieldAugmented
|
15
|
-
extend T::Sig
|
16
|
-
|
17
|
-
# The unique identifier for the client application
|
18
|
-
# This is used to track the client application and its usage
|
19
|
-
# (UUID, serial number, or other number unique per device)
|
20
|
-
#
|
21
|
-
field :client_id, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Client-Identifier', 'style': 'form', 'explode': true } }
|
22
|
-
# Login credentials
|
23
|
-
field :request_body, T.nilable(::PlexRubySDK::Operations::PostUsersSignInDataRequestBody), { 'request': { 'media_type': 'application/x-www-form-urlencoded' } }
|
24
|
-
|
25
|
-
|
26
|
-
sig { params(client_id: T.nilable(::String), request_body: T.nilable(::PlexRubySDK::Operations::PostUsersSignInDataRequestBody)).void }
|
27
|
-
def initialize(client_id: nil, request_body: nil)
|
28
|
-
@client_id = client_id
|
29
|
-
@request_body = request_body
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|