plex_ruby_sdk 0.3.6 → 0.4.0
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/autoselectsubtitle.rb +2 -2
- data/lib/plex_ruby_sdk/models/operations/connections.rb +10 -10
- 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/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_mediacontainer.rb +23 -19
- data/lib/plex_ruby_sdk/models/operations/get_library_items_metadata.rb +30 -26
- data/lib/plex_ruby_sdk/models/operations/get_library_items_operator.rb +27 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_sort.rb +39 -0
- data/lib/plex_ruby_sdk/models/operations/get_library_items_type.rb +42 -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 +2 -2
- data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_queryparam_type.rb +4 -4
- 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 +2 -2
- 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/type.rb +4 -4
- 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 +9 -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 +11 -3
- data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_request.rb +0 -33
@@ -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
|
@@ -201,6 +201,7 @@ module PlexRubySDK
|
|
201
201
|
autoload :GetServerResourcesUnauthorized, 'plex_ruby_sdk/models/operations/get_server_resources_unauthorized.rb'
|
202
202
|
autoload :GetServerResourcesErrors, 'plex_ruby_sdk/models/operations/get_server_resources_errors.rb'
|
203
203
|
autoload :GetServerResourcesBadRequest, 'plex_ruby_sdk/models/operations/get_server_resources_badrequest.rb'
|
204
|
+
autoload :Protocol, 'plex_ruby_sdk/models/operations/protocol.rb'
|
204
205
|
autoload :Connections, 'plex_ruby_sdk/models/operations/connections.rb'
|
205
206
|
autoload :PlexDevice, 'plex_ruby_sdk/models/operations/plexdevice.rb'
|
206
207
|
autoload :GetServerResourcesResponse, 'plex_ruby_sdk/models/operations/get_server_resources_response.rb'
|
@@ -345,7 +346,15 @@ module PlexRubySDK
|
|
345
346
|
autoload :GetLibraryItemsDirector, 'plex_ruby_sdk/models/operations/get_library_items_director.rb'
|
346
347
|
autoload :GetLibraryItemsWriter, 'plex_ruby_sdk/models/operations/get_library_items_writer.rb'
|
347
348
|
autoload :GetLibraryItemsRole, 'plex_ruby_sdk/models/operations/get_library_items_role.rb'
|
349
|
+
autoload :MediaGuid, 'plex_ruby_sdk/models/operations/mediaguid.rb'
|
348
350
|
autoload :GetLibraryItemsMetadata, 'plex_ruby_sdk/models/operations/get_library_items_metadata.rb'
|
351
|
+
autoload :GetLibraryItemsFilter, 'plex_ruby_sdk/models/operations/get_library_items_filter.rb'
|
352
|
+
autoload :GetLibraryItemsSort, 'plex_ruby_sdk/models/operations/get_library_items_sort.rb'
|
353
|
+
autoload :GetLibraryItemsField, 'plex_ruby_sdk/models/operations/get_library_items_field.rb'
|
354
|
+
autoload :GetLibraryItemsType, 'plex_ruby_sdk/models/operations/get_library_items_type.rb'
|
355
|
+
autoload :GetLibraryItemsOperator, 'plex_ruby_sdk/models/operations/get_library_items_operator.rb'
|
356
|
+
autoload :GetLibraryItemsFieldType, 'plex_ruby_sdk/models/operations/get_library_items_fieldtype.rb'
|
357
|
+
autoload :Meta, 'plex_ruby_sdk/models/operations/meta.rb'
|
349
358
|
autoload :GetLibraryItemsMediaContainer, 'plex_ruby_sdk/models/operations/get_library_items_mediacontainer.rb'
|
350
359
|
autoload :GetLibraryItemsResponseBody, 'plex_ruby_sdk/models/operations/get_library_items_responsebody.rb'
|
351
360
|
autoload :GetLibraryItemsResponse, 'plex_ruby_sdk/models/operations/get_library_items_response.rb'
|
@@ -571,7 +580,6 @@ module PlexRubySDK
|
|
571
580
|
autoload :GetTokenDetailsUserPlexAccount, 'plex_ruby_sdk/models/operations/gettokendetails_userplexaccount.rb'
|
572
581
|
autoload :GetTokenDetailsResponse, 'plex_ruby_sdk/models/operations/gettokendetails_response.rb'
|
573
582
|
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
583
|
autoload :PostUsersSignInDataAuthenticationErrors, 'plex_ruby_sdk/models/operations/post_users_sign_in_data_authentication_errors.rb'
|
576
584
|
autoload :PostUsersSignInDataUnauthorized, 'plex_ruby_sdk/models/operations/post_users_sign_in_data_unauthorized.rb'
|
577
585
|
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.0'
|
46
|
+
@gen_version = '2.421.3'
|
47
|
+
@user_agent = 'speakeasy-sdk/ruby 0.4.0 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.0
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -265,16 +265,22 @@ files:
|
|
265
265
|
- lib/plex_ruby_sdk/models/operations/get_library_items_country.rb
|
266
266
|
- lib/plex_ruby_sdk/models/operations/get_library_items_director.rb
|
267
267
|
- lib/plex_ruby_sdk/models/operations/get_library_items_errors.rb
|
268
|
+
- lib/plex_ruby_sdk/models/operations/get_library_items_field.rb
|
269
|
+
- lib/plex_ruby_sdk/models/operations/get_library_items_fieldtype.rb
|
270
|
+
- lib/plex_ruby_sdk/models/operations/get_library_items_filter.rb
|
268
271
|
- lib/plex_ruby_sdk/models/operations/get_library_items_genre.rb
|
269
272
|
- lib/plex_ruby_sdk/models/operations/get_library_items_library_errors.rb
|
270
273
|
- lib/plex_ruby_sdk/models/operations/get_library_items_media.rb
|
271
274
|
- lib/plex_ruby_sdk/models/operations/get_library_items_mediacontainer.rb
|
272
275
|
- lib/plex_ruby_sdk/models/operations/get_library_items_metadata.rb
|
276
|
+
- lib/plex_ruby_sdk/models/operations/get_library_items_operator.rb
|
273
277
|
- lib/plex_ruby_sdk/models/operations/get_library_items_part.rb
|
274
278
|
- lib/plex_ruby_sdk/models/operations/get_library_items_request.rb
|
275
279
|
- lib/plex_ruby_sdk/models/operations/get_library_items_response.rb
|
276
280
|
- lib/plex_ruby_sdk/models/operations/get_library_items_responsebody.rb
|
277
281
|
- lib/plex_ruby_sdk/models/operations/get_library_items_role.rb
|
282
|
+
- lib/plex_ruby_sdk/models/operations/get_library_items_sort.rb
|
283
|
+
- lib/plex_ruby_sdk/models/operations/get_library_items_type.rb
|
278
284
|
- lib/plex_ruby_sdk/models/operations/get_library_items_unauthorized.rb
|
279
285
|
- lib/plex_ruby_sdk/models/operations/get_library_items_writer.rb
|
280
286
|
- lib/plex_ruby_sdk/models/operations/get_media_providers_badrequest.rb
|
@@ -695,8 +701,10 @@ files:
|
|
695
701
|
- lib/plex_ruby_sdk/models/operations/markunplayed_unauthorized.rb
|
696
702
|
- lib/plex_ruby_sdk/models/operations/media.rb
|
697
703
|
- lib/plex_ruby_sdk/models/operations/mediacontainer.rb
|
704
|
+
- lib/plex_ruby_sdk/models/operations/mediaguid.rb
|
698
705
|
- lib/plex_ruby_sdk/models/operations/mediaprovider.rb
|
699
706
|
- lib/plex_ruby_sdk/models/operations/mediareviewsvisibility.rb
|
707
|
+
- lib/plex_ruby_sdk/models/operations/meta.rb
|
700
708
|
- lib/plex_ruby_sdk/models/operations/metadata.rb
|
701
709
|
- lib/plex_ruby_sdk/models/operations/minsize.rb
|
702
710
|
- lib/plex_ruby_sdk/models/operations/myplex.rb
|
@@ -734,7 +742,6 @@ files:
|
|
734
742
|
- lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_features.rb
|
735
743
|
- lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_mailingliststatus.rb
|
736
744
|
- 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
745
|
- lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_requestbody.rb
|
739
746
|
- lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_response.rb
|
740
747
|
- lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_services.rb
|
@@ -746,6 +753,7 @@ files:
|
|
746
753
|
- lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_userprofile.rb
|
747
754
|
- lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_watchedindicator.rb
|
748
755
|
- lib/plex_ruby_sdk/models/operations/producer.rb
|
756
|
+
- lib/plex_ruby_sdk/models/operations/protocol.rb
|
749
757
|
- lib/plex_ruby_sdk/models/operations/provider.rb
|
750
758
|
- lib/plex_ruby_sdk/models/operations/queryparam_filter.rb
|
751
759
|
- lib/plex_ruby_sdk/models/operations/queryparam_force.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
|