plex_ruby_sdk 0.4.0 → 0.4.2

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.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/lib/plex_ruby_sdk/authentication.rb +4 -2
  3. data/lib/plex_ruby_sdk/hubs.rb +35 -0
  4. data/lib/plex_ruby_sdk/library.rb +9 -14
  5. data/lib/plex_ruby_sdk/models/operations/action.rb +27 -0
  6. data/lib/plex_ruby_sdk/models/operations/activedirection.rb +19 -0
  7. data/lib/plex_ruby_sdk/models/operations/collection.rb +24 -0
  8. data/lib/plex_ruby_sdk/models/operations/defaultdirection.rb +19 -0
  9. data/lib/plex_ruby_sdk/models/operations/feature.rb +16 -4
  10. data/lib/plex_ruby_sdk/models/operations/field.rb +7 -7
  11. data/lib/plex_ruby_sdk/models/operations/fieldtype.rb +3 -3
  12. data/lib/plex_ruby_sdk/models/operations/flattenseasons.rb +18 -0
  13. data/lib/plex_ruby_sdk/models/operations/get_all_libraries_directory.rb +1 -1
  14. data/lib/plex_ruby_sdk/models/operations/get_library_details_field.rb +33 -0
  15. data/lib/plex_ruby_sdk/models/operations/get_library_details_fieldtype.rb +27 -0
  16. data/lib/plex_ruby_sdk/models/operations/get_library_details_mediacontainer.rb +2 -2
  17. data/lib/plex_ruby_sdk/models/operations/get_library_details_operator.rb +27 -0
  18. data/lib/plex_ruby_sdk/models/operations/get_library_details_sort.rb +39 -0
  19. data/lib/plex_ruby_sdk/models/operations/get_library_details_type.rb +3 -3
  20. data/lib/plex_ruby_sdk/models/operations/get_library_items_activedirection.rb +19 -0
  21. data/lib/plex_ruby_sdk/models/operations/get_library_items_collection.rb +24 -0
  22. data/lib/plex_ruby_sdk/models/operations/get_library_items_defaultdirection.rb +19 -0
  23. data/lib/plex_ruby_sdk/models/operations/get_library_items_flattenseasons.rb +18 -0
  24. data/lib/plex_ruby_sdk/models/operations/get_library_items_hasthumbnail.rb +18 -0
  25. data/lib/plex_ruby_sdk/models/operations/get_library_items_image.rb +30 -0
  26. data/lib/plex_ruby_sdk/models/operations/get_library_items_library_activedirection.rb +19 -0
  27. data/lib/plex_ruby_sdk/models/operations/get_library_items_library_defaultdirection.rb +19 -0
  28. data/lib/plex_ruby_sdk/models/operations/get_library_items_library_field.rb +33 -0
  29. data/lib/plex_ruby_sdk/models/operations/get_library_items_library_fieldtype.rb +27 -0
  30. data/lib/plex_ruby_sdk/models/operations/get_library_items_library_filter.rb +36 -0
  31. data/lib/plex_ruby_sdk/models/operations/get_library_items_library_operator.rb +27 -0
  32. data/lib/plex_ruby_sdk/models/operations/get_library_items_library_response_200_type.rb +20 -0
  33. data/lib/plex_ruby_sdk/models/operations/get_library_items_library_response_type.rb +42 -0
  34. data/lib/plex_ruby_sdk/models/operations/get_library_items_library_sort.rb +47 -0
  35. data/lib/plex_ruby_sdk/models/operations/get_library_items_library_type.rb +21 -0
  36. data/lib/plex_ruby_sdk/models/operations/get_library_items_media.rb +28 -16
  37. data/lib/plex_ruby_sdk/models/operations/get_library_items_mediacontainer.rb +27 -8
  38. data/lib/plex_ruby_sdk/models/operations/get_library_items_mediaguid.rb +26 -0
  39. data/lib/plex_ruby_sdk/models/operations/get_library_items_meta.rb +28 -0
  40. data/lib/plex_ruby_sdk/models/operations/get_library_items_metadata.rb +78 -22
  41. data/lib/plex_ruby_sdk/models/operations/get_library_items_metadatarating.rb +30 -0
  42. data/lib/plex_ruby_sdk/models/operations/get_library_items_optimizedforstreaming.rb +18 -0
  43. data/lib/plex_ruby_sdk/models/operations/get_library_items_part.rb +28 -9
  44. data/lib/plex_ruby_sdk/models/operations/get_library_items_queryparam_includemeta.rb +19 -0
  45. data/lib/plex_ruby_sdk/models/operations/get_library_items_queryparam_type.rb +26 -0
  46. data/lib/plex_ruby_sdk/models/operations/get_library_items_request.rb +10 -10
  47. data/lib/plex_ruby_sdk/models/operations/get_library_items_role.rb +18 -3
  48. data/lib/plex_ruby_sdk/models/operations/get_library_items_showordering.rb +27 -0
  49. data/lib/plex_ruby_sdk/models/operations/get_library_items_sort.rb +12 -4
  50. data/lib/plex_ruby_sdk/models/operations/get_library_items_stream.rb +135 -0
  51. data/lib/plex_ruby_sdk/models/operations/get_library_items_ultrablurcolors.rb +33 -0
  52. data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_part.rb +2 -2
  53. data/lib/plex_ruby_sdk/models/operations/get_meta_data_by_rating_key_stream.rb +117 -0
  54. data/lib/plex_ruby_sdk/models/operations/get_recently_added_activedirection.rb +19 -0
  55. data/lib/plex_ruby_sdk/models/operations/get_recently_added_defaultdirection.rb +19 -0
  56. data/lib/plex_ruby_sdk/models/operations/get_recently_added_field.rb +33 -0
  57. data/lib/plex_ruby_sdk/models/operations/get_recently_added_fieldtype.rb +27 -0
  58. data/lib/plex_ruby_sdk/models/operations/get_recently_added_filter.rb +36 -0
  59. data/lib/plex_ruby_sdk/models/operations/get_recently_added_hubs_response_type.rb +20 -0
  60. data/lib/plex_ruby_sdk/models/operations/get_recently_added_hubs_type.rb +21 -0
  61. data/lib/plex_ruby_sdk/models/operations/get_recently_added_image.rb +30 -0
  62. data/lib/plex_ruby_sdk/models/operations/{getrecentlyadded_unauthorized.rb → get_recently_added_library_badrequest.rb} +2 -2
  63. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_country.rb +24 -0
  64. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_director.rb +24 -0
  65. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_filter.rb +36 -0
  66. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_genre.rb +24 -0
  67. data/lib/plex_ruby_sdk/models/operations/{getrecentlyadded_errors.rb → get_recently_added_library_library_errors.rb} +1 -1
  68. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_media.rb +69 -0
  69. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_mediacontainer.rb +49 -0
  70. data/lib/plex_ruby_sdk/models/operations/{getrecentlyadded_metadata.rb → get_recently_added_library_metadata.rb} +8 -8
  71. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_part.rb +51 -0
  72. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_request.rb +55 -0
  73. data/lib/plex_ruby_sdk/models/operations/{getrecentlyadded_response.rb → get_recently_added_library_response.rb} +5 -5
  74. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_responsebody.rb +24 -0
  75. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_role.rb +24 -0
  76. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_type.rb +42 -0
  77. data/lib/plex_ruby_sdk/models/operations/{getrecentlyadded_badrequest.rb → get_recently_added_library_unauthorized.rb} +4 -4
  78. data/lib/plex_ruby_sdk/models/operations/get_recently_added_library_writer.rb +24 -0
  79. data/lib/plex_ruby_sdk/models/operations/get_recently_added_mediacontainer.rb +43 -0
  80. data/lib/plex_ruby_sdk/models/operations/get_recently_added_metadata.rb +252 -0
  81. data/lib/plex_ruby_sdk/models/operations/get_recently_added_operator.rb +27 -0
  82. data/lib/plex_ruby_sdk/models/operations/get_recently_added_request.rb +55 -0
  83. data/lib/plex_ruby_sdk/models/operations/get_recently_added_response.rb +33 -0
  84. data/lib/plex_ruby_sdk/models/operations/{getrecentlyadded_responsebody.rb → get_recently_added_responsebody.rb} +1 -1
  85. data/lib/plex_ruby_sdk/models/operations/get_recently_added_sort.rb +47 -0
  86. data/lib/plex_ruby_sdk/models/operations/get_recently_added_type.rb +42 -0
  87. data/lib/plex_ruby_sdk/models/operations/get_search_library_queryparam_type.rb +26 -0
  88. data/lib/plex_ruby_sdk/models/operations/get_search_library_request.rb +2 -2
  89. data/lib/plex_ruby_sdk/models/operations/getpin_request.rb +8 -2
  90. data/lib/plex_ruby_sdk/models/operations/getplaylistcontents_queryparam_type.rb +1 -1
  91. data/lib/plex_ruby_sdk/models/operations/gettokendetails_userplexaccount.rb +5 -2
  92. data/lib/plex_ruby_sdk/models/operations/gettopwatchedcontent_queryparam_type.rb +1 -1
  93. data/lib/plex_ruby_sdk/models/operations/hasthumbnail.rb +18 -0
  94. data/lib/plex_ruby_sdk/models/operations/media.rb +26 -20
  95. data/lib/plex_ruby_sdk/models/operations/meta.rb +3 -3
  96. data/lib/plex_ruby_sdk/models/operations/metadatarating.rb +30 -0
  97. data/lib/plex_ruby_sdk/models/operations/operator.rb +3 -3
  98. data/lib/plex_ruby_sdk/models/operations/optimizedforstreaming.rb +18 -0
  99. data/lib/plex_ruby_sdk/models/operations/part.rb +25 -15
  100. data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_request.rb +45 -0
  101. data/lib/plex_ruby_sdk/models/operations/post_users_sign_in_data_userplexaccount.rb +5 -2
  102. data/lib/plex_ruby_sdk/models/operations/queryparam_includemeta.rb +19 -0
  103. data/lib/plex_ruby_sdk/models/operations/queryparam_type.rb +1 -1
  104. data/lib/plex_ruby_sdk/models/operations/role.rb +18 -3
  105. data/lib/plex_ruby_sdk/models/operations/showordering.rb +27 -0
  106. data/lib/plex_ruby_sdk/models/operations/sort.rb +19 -11
  107. data/lib/plex_ruby_sdk/models/operations/stream.rb +58 -40
  108. data/lib/plex_ruby_sdk/models/operations/type.rb +1 -1
  109. data/lib/plex_ruby_sdk/models/operations/ultrablurcolors.rb +33 -0
  110. data/lib/plex_ruby_sdk/models/operations.rb +100 -32
  111. data/lib/plex_ruby_sdk/sdkconfiguration.rb +3 -3
  112. metadata +79 -11
  113. data/lib/plex_ruby_sdk/models/operations/getrecentlyadded_mediacontainer.rb +0 -42
  114. data/lib/plex_ruby_sdk/models/operations/getrecentlyadded_request.rb +0 -33
  115. /data/lib/plex_ruby_sdk/models/operations/{getrecentlyadded_library_errors.rb → get_recently_added_library_errors.rb} +0 -0
@@ -11,24 +11,23 @@ module PlexRubySDK
11
11
  class GetLibraryItemsMetadata < ::PlexRubySDK::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
-
15
- field :duration, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
14
+ # Unix epoch datetime in seconds
15
+ field :added_at, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('addedAt') } }
16
16
 
17
17
  field :guid, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('guid') } }
18
18
 
19
19
  field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
20
-
21
- field :media, T::Array[::PlexRubySDK::Operations::GetLibraryItemsMedia], { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Media') } }
22
-
20
+ # The rating key (Media ID) of this media item.
21
+ # Note: This is always an integer, but is represented as a string in the API.
22
+ #
23
23
  field :rating_key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('ratingKey') } }
24
24
 
25
- field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
26
-
27
- field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
28
-
29
- field :year, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('year') } }
25
+ field :summary, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('summary') } }
30
26
 
31
- field :added_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('addedAt') } }
27
+ field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
28
+ # The type of media content
29
+ #
30
+ field :type, ::PlexRubySDK::Operations::GetLibraryItemsLibraryType, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::GetLibraryItemsLibraryType, false) } }
32
31
 
33
32
  field :art, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('art') } }
34
33
 
@@ -36,16 +35,24 @@ module PlexRubySDK
36
35
 
37
36
  field :audience_rating_image, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audienceRatingImage') } }
38
37
 
38
+ field :banner, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('banner') } }
39
+
39
40
  field :chapter_source, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('chapterSource') } }
40
41
 
41
42
  field :child_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('childCount') } }
42
43
 
44
+ field :collection, T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsCollection]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Collection') } }
45
+
43
46
  field :content_rating, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('contentRating') } }
44
47
 
45
48
  field :country, T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsCountry]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Country') } }
46
49
 
47
50
  field :director, T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsDirector]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Director') } }
48
51
 
52
+ field :duration, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
53
+
54
+ field :flatten_seasons, T.nilable(::PlexRubySDK::Operations::GetLibraryItemsFlattenSeasons), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('flattenSeasons'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::GetLibraryItemsFlattenSeasons, true) } }
55
+
49
56
  field :genre, T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsGenre]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Genre') } }
50
57
 
51
58
  field :grandparent_art, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentArt') } }
@@ -56,6 +63,8 @@ module PlexRubySDK
56
63
 
57
64
  field :grandparent_rating_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentRatingKey') } }
58
65
 
66
+ field :grandparent_slug, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentSlug') } }
67
+
59
68
  field :grandparent_theme, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentTheme') } }
60
69
 
61
70
  field :grandparent_thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('grandparentThumb') } }
@@ -66,14 +75,27 @@ module PlexRubySDK
66
75
 
67
76
  field :has_premium_primary_extra, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hasPremiumPrimaryExtra') } }
68
77
 
78
+ field :image, T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsImage]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Image') } }
79
+
69
80
  field :index, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('index') } }
70
81
 
71
82
  field :last_viewed_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('lastViewedAt') } }
72
83
 
73
84
  field :leaf_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('leafCount') } }
85
+
86
+ field :library_section_id, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionID') } }
87
+
88
+ field :library_section_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionKey') } }
89
+
90
+ field :library_section_title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('librarySectionTitle') } }
91
+ # The Media object is only included when type query is `4` or higher.
92
+ #
93
+ field :media, T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsMedia]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Media') } }
74
94
  # The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.
75
95
  #
76
- field :media_guid, T.nilable(T::Array[::PlexRubySDK::Operations::MediaGuid]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Guid') } }
96
+ field :media_guid, T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsMediaGuid]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Guid') } }
97
+
98
+ field :meta_data_rating, T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsMetaDataRating]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Rating') } }
77
99
 
78
100
  field :originally_available_at, T.nilable(::Date), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('originallyAvailableAt'), 'decoder': Utils.date_from_iso_format(true) } }
79
101
 
@@ -84,9 +106,12 @@ module PlexRubySDK
84
106
  field :parent_index, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentIndex') } }
85
107
 
86
108
  field :parent_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentKey') } }
87
-
109
+ # The rating key of the parent item.
110
+ #
88
111
  field :parent_rating_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentRatingKey') } }
89
112
 
113
+ field :parent_slug, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentSlug') } }
114
+
90
115
  field :parent_studio, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentStudio') } }
91
116
 
92
117
  field :parent_theme, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('parentTheme') } }
@@ -105,11 +130,23 @@ module PlexRubySDK
105
130
 
106
131
  field :role, T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsRole]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Role') } }
107
132
 
133
+ field :season_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('seasonCount') } }
134
+ # Setting that indicates the episode ordering for the show
135
+ # None = Library default,
136
+ # tmdbAiring = The Movie Database (Aired),
137
+ # aired = TheTVDB (Aired),
138
+ # dvd = TheTVDB (DVD),
139
+ # absolute = TheTVDB (Absolute)).
140
+ #
141
+ field :show_ordering, T.nilable(::PlexRubySDK::Operations::GetLibraryItemsShowOrdering), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('showOrdering'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::GetLibraryItemsShowOrdering, true) } }
142
+
143
+ field :skip_children, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('skipChildren') } }
144
+
108
145
  field :skip_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('skipCount') } }
109
146
 
110
- field :studio, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('studio') } }
147
+ field :slug, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('slug') } }
111
148
 
112
- field :summary, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('summary') } }
149
+ field :studio, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('studio') } }
113
150
 
114
151
  field :tagline, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagline') } }
115
152
 
@@ -119,6 +156,8 @@ module PlexRubySDK
119
156
 
120
157
  field :title_sort, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('titleSort') } }
121
158
 
159
+ field :ultra_blur_colors, T.nilable(::PlexRubySDK::Operations::GetLibraryItemsUltraBlurColors), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('UltraBlurColors') } }
160
+ # Unix epoch datetime in seconds
122
161
  field :updated_at, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('updatedAt') } }
123
162
 
124
163
  field :view_count, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('viewCount') } }
@@ -129,46 +168,58 @@ module PlexRubySDK
129
168
 
130
169
  field :writer, T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsWriter]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Writer') } }
131
170
 
171
+ field :year, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('year') } }
132
172
 
133
- sig { params(duration: ::Integer, guid: ::String, key: ::String, media: T::Array[::PlexRubySDK::Operations::GetLibraryItemsMedia], rating_key: ::String, title: ::String, type: ::String, year: ::Integer, added_at: T.nilable(::Integer), art: T.nilable(::String), audience_rating: T.nilable(::Float), audience_rating_image: T.nilable(::String), chapter_source: T.nilable(::String), child_count: T.nilable(::Integer), content_rating: T.nilable(::String), country: T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsCountry]), director: T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsDirector]), genre: T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsGenre]), grandparent_art: T.nilable(::String), grandparent_guid: T.nilable(::String), grandparent_key: T.nilable(::String), grandparent_rating_key: T.nilable(::String), grandparent_theme: T.nilable(::String), grandparent_thumb: T.nilable(::String), grandparent_title: T.nilable(::String), has_premium_extras: T.nilable(::String), has_premium_primary_extra: T.nilable(::String), index: T.nilable(::Integer), last_viewed_at: T.nilable(::Integer), leaf_count: T.nilable(::Integer), media_guid: T.nilable(T::Array[::PlexRubySDK::Operations::MediaGuid]), originally_available_at: T.nilable(::Date), original_title: T.nilable(::String), parent_guid: T.nilable(::String), parent_index: T.nilable(::Integer), parent_key: T.nilable(::String), parent_rating_key: T.nilable(::String), parent_studio: T.nilable(::String), parent_theme: T.nilable(::String), parent_thumb: T.nilable(::String), parent_title: T.nilable(::String), parent_year: T.nilable(::Integer), primary_extra_key: T.nilable(::String), rating: T.nilable(::Float), rating_image: T.nilable(::String), role: T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsRole]), skip_count: T.nilable(::Integer), studio: T.nilable(::String), summary: T.nilable(::String), tagline: T.nilable(::String), theme: T.nilable(::String), thumb: T.nilable(::String), title_sort: T.nilable(::String), updated_at: T.nilable(::Integer), view_count: T.nilable(::Integer), viewed_leaf_count: T.nilable(::Integer), view_offset: T.nilable(::Integer), writer: T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsWriter])).void }
134
- def initialize(duration: nil, guid: nil, key: nil, media: nil, rating_key: nil, title: nil, type: nil, year: nil, added_at: nil, art: nil, audience_rating: nil, audience_rating_image: nil, chapter_source: nil, child_count: nil, content_rating: nil, country: nil, director: nil, genre: nil, grandparent_art: nil, grandparent_guid: nil, grandparent_key: nil, grandparent_rating_key: nil, grandparent_theme: nil, grandparent_thumb: nil, grandparent_title: nil, has_premium_extras: nil, has_premium_primary_extra: nil, index: nil, last_viewed_at: nil, leaf_count: nil, media_guid: nil, originally_available_at: nil, original_title: nil, parent_guid: nil, parent_index: nil, parent_key: nil, parent_rating_key: nil, parent_studio: nil, parent_theme: nil, parent_thumb: nil, parent_title: nil, parent_year: nil, primary_extra_key: nil, rating: nil, rating_image: nil, role: nil, skip_count: nil, studio: nil, summary: nil, tagline: nil, theme: nil, thumb: nil, title_sort: nil, updated_at: nil, view_count: nil, viewed_leaf_count: nil, view_offset: nil, writer: nil)
135
- @duration = duration
173
+
174
+ sig { params(added_at: ::Integer, guid: ::String, key: ::String, rating_key: ::String, summary: ::String, title: ::String, type: ::PlexRubySDK::Operations::GetLibraryItemsLibraryType, art: T.nilable(::String), audience_rating: T.nilable(::Float), audience_rating_image: T.nilable(::String), banner: T.nilable(::String), chapter_source: T.nilable(::String), child_count: T.nilable(::Integer), collection: T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsCollection]), content_rating: T.nilable(::String), country: T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsCountry]), director: T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsDirector]), duration: T.nilable(::Integer), flatten_seasons: T.nilable(::PlexRubySDK::Operations::GetLibraryItemsFlattenSeasons), genre: T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsGenre]), grandparent_art: T.nilable(::String), grandparent_guid: T.nilable(::String), grandparent_key: T.nilable(::String), grandparent_rating_key: T.nilable(::String), grandparent_slug: T.nilable(::String), grandparent_theme: T.nilable(::String), grandparent_thumb: T.nilable(::String), grandparent_title: T.nilable(::String), has_premium_extras: T.nilable(::String), has_premium_primary_extra: T.nilable(::String), image: T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsImage]), index: T.nilable(::Integer), last_viewed_at: T.nilable(::Integer), leaf_count: T.nilable(::Integer), library_section_id: T.nilable(::Integer), library_section_key: T.nilable(::String), library_section_title: T.nilable(::String), media: T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsMedia]), media_guid: T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsMediaGuid]), meta_data_rating: T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsMetaDataRating]), originally_available_at: T.nilable(::Date), original_title: T.nilable(::String), parent_guid: T.nilable(::String), parent_index: T.nilable(::Integer), parent_key: T.nilable(::String), parent_rating_key: T.nilable(::String), parent_slug: T.nilable(::String), parent_studio: T.nilable(::String), parent_theme: T.nilable(::String), parent_thumb: T.nilable(::String), parent_title: T.nilable(::String), parent_year: T.nilable(::Integer), primary_extra_key: T.nilable(::String), rating: T.nilable(::Float), rating_image: T.nilable(::String), role: T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsRole]), season_count: T.nilable(::Integer), show_ordering: T.nilable(::PlexRubySDK::Operations::GetLibraryItemsShowOrdering), skip_children: T.nilable(T::Boolean), skip_count: T.nilable(::Integer), slug: T.nilable(::String), studio: T.nilable(::String), tagline: T.nilable(::String), theme: T.nilable(::String), thumb: T.nilable(::String), title_sort: T.nilable(::String), ultra_blur_colors: T.nilable(::PlexRubySDK::Operations::GetLibraryItemsUltraBlurColors), updated_at: T.nilable(::Integer), view_count: T.nilable(::Integer), viewed_leaf_count: T.nilable(::Integer), view_offset: T.nilable(::Integer), writer: T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsWriter]), year: T.nilable(::Integer)).void }
175
+ def initialize(added_at: nil, guid: nil, key: nil, rating_key: nil, summary: nil, title: nil, type: nil, art: nil, audience_rating: nil, audience_rating_image: nil, banner: nil, chapter_source: nil, child_count: nil, collection: nil, content_rating: nil, country: nil, director: nil, duration: nil, flatten_seasons: nil, genre: nil, grandparent_art: nil, grandparent_guid: nil, grandparent_key: nil, grandparent_rating_key: nil, grandparent_slug: nil, grandparent_theme: nil, grandparent_thumb: nil, grandparent_title: nil, has_premium_extras: nil, has_premium_primary_extra: nil, image: nil, index: nil, last_viewed_at: nil, leaf_count: nil, library_section_id: nil, library_section_key: nil, library_section_title: nil, media: nil, media_guid: nil, meta_data_rating: nil, originally_available_at: nil, original_title: nil, parent_guid: nil, parent_index: nil, parent_key: nil, parent_rating_key: nil, parent_slug: nil, parent_studio: nil, parent_theme: nil, parent_thumb: nil, parent_title: nil, parent_year: nil, primary_extra_key: nil, rating: nil, rating_image: nil, role: nil, season_count: nil, show_ordering: nil, skip_children: nil, skip_count: nil, slug: nil, studio: nil, tagline: nil, theme: nil, thumb: nil, title_sort: nil, ultra_blur_colors: nil, updated_at: nil, view_count: nil, viewed_leaf_count: nil, view_offset: nil, writer: nil, year: nil)
176
+ @added_at = added_at
136
177
  @guid = guid
137
178
  @key = key
138
- @media = media
139
179
  @rating_key = rating_key
180
+ @summary = summary
140
181
  @title = title
141
182
  @type = type
142
- @year = year
143
- @added_at = added_at
144
183
  @art = art
145
184
  @audience_rating = audience_rating
146
185
  @audience_rating_image = audience_rating_image
186
+ @banner = banner
147
187
  @chapter_source = chapter_source
148
188
  @child_count = child_count
189
+ @collection = collection
149
190
  @content_rating = content_rating
150
191
  @country = country
151
192
  @director = director
193
+ @duration = duration
194
+ @flatten_seasons = flatten_seasons
152
195
  @genre = genre
153
196
  @grandparent_art = grandparent_art
154
197
  @grandparent_guid = grandparent_guid
155
198
  @grandparent_key = grandparent_key
156
199
  @grandparent_rating_key = grandparent_rating_key
200
+ @grandparent_slug = grandparent_slug
157
201
  @grandparent_theme = grandparent_theme
158
202
  @grandparent_thumb = grandparent_thumb
159
203
  @grandparent_title = grandparent_title
160
204
  @has_premium_extras = has_premium_extras
161
205
  @has_premium_primary_extra = has_premium_primary_extra
206
+ @image = image
162
207
  @index = index
163
208
  @last_viewed_at = last_viewed_at
164
209
  @leaf_count = leaf_count
210
+ @library_section_id = library_section_id
211
+ @library_section_key = library_section_key
212
+ @library_section_title = library_section_title
213
+ @media = media
165
214
  @media_guid = media_guid
215
+ @meta_data_rating = meta_data_rating
166
216
  @originally_available_at = originally_available_at
167
217
  @original_title = original_title
168
218
  @parent_guid = parent_guid
169
219
  @parent_index = parent_index
170
220
  @parent_key = parent_key
171
221
  @parent_rating_key = parent_rating_key
222
+ @parent_slug = parent_slug
172
223
  @parent_studio = parent_studio
173
224
  @parent_theme = parent_theme
174
225
  @parent_thumb = parent_thumb
@@ -178,18 +229,23 @@ module PlexRubySDK
178
229
  @rating = rating
179
230
  @rating_image = rating_image
180
231
  @role = role
232
+ @season_count = season_count
233
+ @show_ordering = show_ordering
234
+ @skip_children = skip_children
181
235
  @skip_count = skip_count
236
+ @slug = slug
182
237
  @studio = studio
183
- @summary = summary
184
238
  @tagline = tagline
185
239
  @theme = theme
186
240
  @thumb = thumb
187
241
  @title_sort = title_sort
242
+ @ultra_blur_colors = ultra_blur_colors
188
243
  @updated_at = updated_at
189
244
  @view_count = view_count
190
245
  @viewed_leaf_count = viewed_leaf_count
191
246
  @view_offset = view_offset
192
247
  @writer = writer
248
+ @year = year
193
249
  end
194
250
  end
195
251
  end
@@ -0,0 +1,30 @@
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
+
10
+
11
+ class GetLibraryItemsMetaDataRating < ::PlexRubySDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # A URI or path to the rating image.
15
+ field :image, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('image') } }
16
+ # The type of rating (e.g., audience, critic).
17
+ field :type, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('type') } }
18
+ # The value of the rating.
19
+ field :value, ::Float, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('value') } }
20
+
21
+
22
+ sig { params(image: ::String, type: ::String, value: ::Float).void }
23
+ def initialize(image: nil, type: nil, value: nil)
24
+ @image = image
25
+ @type = type
26
+ @value = value
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,18 @@
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
+
10
+
11
+ class GetLibraryItemsOptimizedForStreaming < T::Enum
12
+ enums do
13
+ DISABLE = new(0)
14
+ ENABLE = new(1)
15
+ end
16
+ end
17
+ end
18
+ end
@@ -11,24 +11,37 @@ module PlexRubySDK
11
11
  class GetLibraryItemsPart < ::PlexRubySDK::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
+ # The container format of the media file.
15
+ #
16
+ field :container, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('container') } }
14
17
 
15
- field :container, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('container') } }
18
+ field :duration, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
16
19
 
17
- field :duration, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('duration') } }
20
+ field :file, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('file') } }
18
21
 
19
- field :file, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('file') } }
22
+ field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
20
23
 
21
- field :id, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
24
+ field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
22
25
 
23
- field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
26
+ field :size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
24
27
 
25
- field :size, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('size') } }
28
+ field :video_profile, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoProfile') } }
26
29
 
27
- field :video_profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('videoProfile') } }
30
+ field :audio_profile, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('audioProfile') } }
28
31
 
32
+ field :has64bit_offsets, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('has64bitOffsets') } }
29
33
 
30
- sig { params(container: T.nilable(::String), duration: T.nilable(::Integer), file: T.nilable(::String), id: T.nilable(::Integer), key: T.nilable(::String), size: T.nilable(::Integer), video_profile: T.nilable(::String)).void }
31
- def initialize(container: nil, duration: nil, file: nil, id: nil, key: nil, size: nil, video_profile: nil)
34
+ field :has_thumbnail, T.nilable(::PlexRubySDK::Operations::GetLibraryItemsHasThumbnail), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('hasThumbnail'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::GetLibraryItemsHasThumbnail, true) } }
35
+
36
+ field :indexes, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('indexes') } }
37
+
38
+ field :optimized_for_streaming, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('optimizedForStreaming') } }
39
+
40
+ field :stream, T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsStream]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Stream') } }
41
+
42
+
43
+ sig { params(container: ::String, duration: ::Integer, file: ::String, id: ::Integer, key: ::String, size: ::Integer, video_profile: ::String, audio_profile: T.nilable(::String), has64bit_offsets: T.nilable(T::Boolean), has_thumbnail: T.nilable(::PlexRubySDK::Operations::GetLibraryItemsHasThumbnail), indexes: T.nilable(::String), optimized_for_streaming: T.nilable(T::Boolean), stream: T.nilable(T::Array[::PlexRubySDK::Operations::GetLibraryItemsStream])).void }
44
+ def initialize(container: nil, duration: nil, file: nil, id: nil, key: nil, size: nil, video_profile: nil, audio_profile: nil, has64bit_offsets: nil, has_thumbnail: nil, indexes: nil, optimized_for_streaming: nil, stream: nil)
32
45
  @container = container
33
46
  @duration = duration
34
47
  @file = file
@@ -36,6 +49,12 @@ module PlexRubySDK
36
49
  @key = key
37
50
  @size = size
38
51
  @video_profile = video_profile
52
+ @audio_profile = audio_profile
53
+ @has64bit_offsets = has64bit_offsets
54
+ @has_thumbnail = has_thumbnail
55
+ @indexes = indexes
56
+ @optimized_for_streaming = optimized_for_streaming
57
+ @stream = stream
39
58
  end
40
59
  end
41
60
  end
@@ -0,0 +1,19 @@
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
+
10
+ # GetLibraryItemsQueryParamIncludeMeta - Adds the Meta object to the response
11
+ #
12
+ class GetLibraryItemsQueryParamIncludeMeta < T::Enum
13
+ enums do
14
+ DISABLE = new(0)
15
+ ENABLE = new(1)
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,26 @@
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
+
10
+ # GetLibraryItemsQueryParamType - The type of media to retrieve.
11
+ # 1 = movie
12
+ # 2 = show
13
+ # 3 = season
14
+ # 4 = episode
15
+ # E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
16
+ #
17
+ class GetLibraryItemsQueryParamType < T::Enum
18
+ enums do
19
+ MOVIE = new(1)
20
+ TV_SHOW = new(2)
21
+ SEASON = new(3)
22
+ EPISODE = new(4)
23
+ end
24
+ end
25
+ end
26
+ end
@@ -17,6 +17,12 @@ module PlexRubySDK
17
17
  field :section_key, ::Integer, { 'path_param': { 'field_name': 'sectionKey', 'style': 'simple', 'explode': false } }
18
18
  # A key representing a specific tag within the section.
19
19
  field :tag, ::PlexRubySDK::Operations::Tag, { 'path_param': { 'field_name': 'tag', 'style': 'simple', 'explode': false } }
20
+ # Adds the Guids object to the response
21
+ #
22
+ field :include_guids, T.nilable(::PlexRubySDK::Operations::IncludeGuids), { 'query_param': { 'field_name': 'includeGuids', 'style': 'form', 'explode': true } }
23
+ # Adds the Meta object to the response
24
+ #
25
+ field :include_meta, T.nilable(::PlexRubySDK::Operations::GetLibraryItemsQueryParamIncludeMeta), { 'query_param': { 'field_name': 'includeMeta', 'style': 'form', 'explode': true } }
20
26
  # The type of media to retrieve.
21
27
  # 1 = movie
22
28
  # 2 = show
@@ -24,13 +30,7 @@ module PlexRubySDK
24
30
  # 4 = episode
25
31
  # E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
26
32
  #
27
- field :type, ::PlexRubySDK::Operations::Type, { 'query_param': { 'field_name': 'type', 'style': 'form', 'explode': true } }
28
- # Adds the Guids object to the response
29
- #
30
- field :include_guids, T.nilable(::PlexRubySDK::Operations::IncludeGuids), { 'query_param': { 'field_name': 'includeGuids', 'style': 'form', 'explode': true } }
31
- # Adds the Meta object to the response
32
- #
33
- field :include_meta, T.nilable(::PlexRubySDK::Operations::IncludeMeta), { 'query_param': { 'field_name': 'includeMeta', 'style': 'form', 'explode': true } }
33
+ field :type, T.nilable(::PlexRubySDK::Operations::GetLibraryItemsQueryParamType), { 'query_param': { 'field_name': 'type', 'style': 'form', 'explode': true } }
34
34
  # The number of items to return. If not specified, all items will be returned.
35
35
  # If the number of items exceeds the limit, the response will be paginated.
36
36
  # By default this is 50
@@ -43,13 +43,13 @@ module PlexRubySDK
43
43
  field :x_plex_container_start, T.nilable(::Integer), { 'query_param': { 'field_name': 'X-Plex-Container-Start', 'style': 'form', 'explode': true } }
44
44
 
45
45
 
46
- sig { params(section_key: ::Integer, tag: ::PlexRubySDK::Operations::Tag, type: ::PlexRubySDK::Operations::Type, include_guids: T.nilable(::PlexRubySDK::Operations::IncludeGuids), include_meta: T.nilable(::PlexRubySDK::Operations::IncludeMeta), x_plex_container_size: T.nilable(::Integer), x_plex_container_start: T.nilable(::Integer)).void }
47
- def initialize(section_key: nil, tag: nil, type: nil, include_guids: nil, include_meta: nil, x_plex_container_size: nil, x_plex_container_start: nil)
46
+ sig { params(section_key: ::Integer, tag: ::PlexRubySDK::Operations::Tag, include_guids: T.nilable(::PlexRubySDK::Operations::IncludeGuids), include_meta: T.nilable(::PlexRubySDK::Operations::GetLibraryItemsQueryParamIncludeMeta), type: T.nilable(::PlexRubySDK::Operations::GetLibraryItemsQueryParamType), x_plex_container_size: T.nilable(::Integer), x_plex_container_start: T.nilable(::Integer)).void }
47
+ def initialize(section_key: nil, tag: nil, include_guids: nil, include_meta: nil, type: nil, x_plex_container_size: nil, x_plex_container_start: nil)
48
48
  @section_key = section_key
49
49
  @tag = tag
50
- @type = type
51
50
  @include_guids = include_guids
52
51
  @include_meta = include_meta
52
+ @type = type
53
53
  @x_plex_container_size = x_plex_container_size
54
54
  @x_plex_container_start = x_plex_container_start
55
55
  end
@@ -11,13 +11,28 @@ module PlexRubySDK
11
11
  class GetLibraryItemsRole < ::PlexRubySDK::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
-
14
+ # The filter used to find the actor or tag.
15
+ field :filter, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
16
+ # The ID of the tag or actor.
17
+ field :id, T.nilable(::Integer), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
18
+ # The role of the actor or tag in the media.
19
+ field :role, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('role') } }
20
+ # The name of the tag or actor.
15
21
  field :tag, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
22
+ # Unique identifier for the tag.
23
+ field :tag_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagKey') } }
24
+ # The thumbnail of the actor
25
+ field :thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
16
26
 
17
27
 
18
- sig { params(tag: T.nilable(::String)).void }
19
- def initialize(tag: nil)
28
+ sig { params(filter: T.nilable(::String), id: T.nilable(::Integer), role: T.nilable(::String), tag: T.nilable(::String), tag_key: T.nilable(::String), thumb: T.nilable(::String)).void }
29
+ def initialize(filter: nil, id: nil, role: nil, tag: nil, tag_key: nil, thumb: nil)
30
+ @filter = filter
31
+ @id = id
32
+ @role = role
20
33
  @tag = tag
34
+ @tag_key = tag_key
35
+ @thumb = thumb
21
36
  end
22
37
  end
23
38
  end
@@ -0,0 +1,27 @@
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
+
10
+ # GetLibraryItemsShowOrdering - Setting that indicates the episode ordering for the show
11
+ # None = Library default,
12
+ # tmdbAiring = The Movie Database (Aired),
13
+ # aired = TheTVDB (Aired),
14
+ # dvd = TheTVDB (DVD),
15
+ # absolute = TheTVDB (Absolute)).
16
+ #
17
+ class GetLibraryItemsShowOrdering < T::Enum
18
+ enums do
19
+ NONE = new('None')
20
+ TMDB_AIRING = new('tmdbAiring')
21
+ AIRED = new('aired')
22
+ DVD = new('dvd')
23
+ ABSOLUTE = new('absolute')
24
+ end
25
+ end
26
+ end
27
+ end
@@ -11,13 +11,19 @@ module PlexRubySDK
11
11
  class GetLibraryItemsSort < ::PlexRubySDK::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
-
15
- field :default_direction, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('defaultDirection') } }
14
+ # The direction of the sort. Can be either `asc` or `desc`.
15
+ #
16
+ field :default_direction, ::PlexRubySDK::Operations::GetLibraryItemsDefaultDirection, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('defaultDirection'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::GetLibraryItemsDefaultDirection, false) } }
16
17
 
17
18
  field :key, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('key') } }
18
19
 
19
20
  field :title, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
20
21
 
22
+ field :active, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('active') } }
23
+ # The direction of the sort. Can be either `asc` or `desc`.
24
+ #
25
+ field :active_direction, T.nilable(::PlexRubySDK::Operations::GetLibraryItemsActiveDirection), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('activeDirection'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::GetLibraryItemsActiveDirection, true) } }
26
+
21
27
  field :default, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('default') } }
22
28
 
23
29
  field :desc_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('descKey') } }
@@ -25,11 +31,13 @@ module PlexRubySDK
25
31
  field :first_character_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('firstCharacterKey') } }
26
32
 
27
33
 
28
- sig { params(default_direction: ::String, key: ::String, title: ::String, default: T.nilable(::String), desc_key: T.nilable(::String), first_character_key: T.nilable(::String)).void }
29
- def initialize(default_direction: nil, key: nil, title: nil, default: nil, desc_key: nil, first_character_key: nil)
34
+ sig { params(default_direction: ::PlexRubySDK::Operations::GetLibraryItemsDefaultDirection, key: ::String, title: ::String, active: T.nilable(T::Boolean), active_direction: T.nilable(::PlexRubySDK::Operations::GetLibraryItemsActiveDirection), default: T.nilable(::String), desc_key: T.nilable(::String), first_character_key: T.nilable(::String)).void }
35
+ def initialize(default_direction: nil, key: nil, title: nil, active: nil, active_direction: nil, default: nil, desc_key: nil, first_character_key: nil)
30
36
  @default_direction = default_direction
31
37
  @key = key
32
38
  @title = title
39
+ @active = active
40
+ @active_direction = active_direction
33
41
  @default = default
34
42
  @desc_key = desc_key
35
43
  @first_character_key = first_character_key