mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-06 04:20:52 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.404.5
This commit is contained in:
@@ -14,12 +14,12 @@ module PlexRubySDK
|
||||
|
||||
# GET_TOKEN_DETAILS_SERVERS contains the list of server urls available to the SDK.
|
||||
GET_TOKEN_DETAILS_SERVERS = [
|
||||
'https://plex.tv/api/v2/',
|
||||
'https://plex.tv/api/v2',
|
||||
].freeze
|
||||
|
||||
# POST_USERS_SIGN_IN_DATA_SERVERS contains the list of server urls available to the SDK.
|
||||
POST_USERS_SIGN_IN_DATA_SERVERS = [
|
||||
'https://plex.tv/api/v2/',
|
||||
'https://plex.tv/api/v2',
|
||||
].freeze
|
||||
# API Calls regarding authentication for Plex Media Server
|
||||
#
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
AUTO_SELECT_SUBTITLE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# AutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
BILLING_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
CONNECTIONS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
DEFAULT_SUBTITLE_ACCESSIBILITY_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# DefaultSubtitleAccessibility - 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 show non-SDH subtitles)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
DEFAULT_SUBTITLE_FORCED_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# DefaultSubtitleForced - 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)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
FEATURES_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
FRIEND_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GEO_DATA_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Geo location data
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_SERVER_RESOURCES_BAD_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_SERVER_RESOURCES_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_SERVER_RESOURCES_PLEX_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_SERVER_RESOURCES_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_SERVER_RESOURCES_RESPONSE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_SERVER_RESOURCES_UNAUTHORIZED_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_COMPANIONS_DATA_BAD_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_COMPANIONS_DATA_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_COMPANIONS_DATA_PLEX_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_COMPANIONS_DATA_RESPONSE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_COMPANIONS_DATA_UNAUTHORIZED_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_GEO_DATA_BAD_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_GEO_DATA_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_GEO_DATA_GEO_DATA_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Geo location data
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_GEO_DATA_PLEX_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_GEO_DATA_RESPONSE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_GEO_DATA_UNAUTHORIZED_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_PIN_AUTH_PIN_CONTAINER_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Requests a new pin id used in the authentication flow
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_PIN_BAD_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_PIN_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_PIN_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_PIN_RESPONSE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_BY_PIN_ID_AUTH_PIN_CONTAINER_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# The Pin with a non-null authToken when it has been verified by the user
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_BY_PIN_ID_BAD_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_BY_PIN_ID_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_BY_PIN_ID_GEO_DATA_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Geo location data
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_BY_PIN_ID_PLEX_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_BY_PIN_ID_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
@@ -16,11 +16,29 @@ module PlexRubySDK
|
||||
|
||||
# The PinID to retrieve an access token for
|
||||
field :pin_id, ::Integer, { 'path_param': { 'field_name': 'pinID', 'style': 'simple', 'explode': false } }
|
||||
# The unique identifier for the client application
|
||||
# This is used to track the client application and its usage
|
||||
# (UUID, serial number, or other number unique per device)
|
||||
#
|
||||
field :client_id, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Client-Identifier', 'style': 'form', 'explode': true } }
|
||||
|
||||
field :client_name, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Product', 'style': 'form', 'explode': true } }
|
||||
|
||||
field :client_platform, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Platform', 'style': 'form', 'explode': true } }
|
||||
|
||||
field :client_version, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Version', 'style': 'form', 'explode': true } }
|
||||
|
||||
field :device_name, T.nilable(::String), { 'query_param': { 'field_name': 'X-Plex-Device', 'style': 'form', 'explode': true } }
|
||||
|
||||
|
||||
sig { params(pin_id: ::Integer).void }
|
||||
def initialize(pin_id: nil)
|
||||
sig { params(pin_id: ::Integer, client_id: T.nilable(::String), client_name: T.nilable(::String), client_platform: T.nilable(::String), client_version: T.nilable(::String), device_name: T.nilable(::String)).void }
|
||||
def initialize(pin_id: nil, client_id: nil, client_name: nil, client_platform: nil, client_version: nil, device_name: nil)
|
||||
@pin_id = pin_id
|
||||
@client_id = client_id
|
||||
@client_name = client_name
|
||||
@client_platform = client_platform
|
||||
@client_version = client_version
|
||||
@device_name = device_name
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_BY_PIN_ID_RESPONSE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_BY_PIN_ID_RESPONSE_BODY_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Not Found or Expired
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_AUTHENTICATION_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_AUTHENTICATION_RESPONSE_STATUS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# GetTokenDetailsAuthenticationResponseStatus - String representation of subscriptionActive
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_AUTHENTICATION_STATUS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# GetTokenDetailsAuthenticationStatus - String representation of subscriptionActive
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_BAD_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_FEATURES_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_RESPONSE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_STATUS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_SUBSCRIPTION_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_UNAUTHORIZED_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_TOKEN_DETAILS_USER_PLEX_ACCOUNT_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Logged in user details
|
||||
@@ -60,7 +60,7 @@ module PlexRubySDK
|
||||
field :locale, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('locale') } }
|
||||
# If you are subscribed to the Plex newsletter
|
||||
field :mailing_list_active, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mailingListActive') } }
|
||||
# Your current mailing list status
|
||||
# Your current mailing list status (active or unsubscribed)
|
||||
field :mailing_list_status, ::PlexRubySDK::Operations::MailingListStatus, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mailingListStatus'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::MailingListStatus, false) } }
|
||||
# The maximum number of accounts allowed in the Plex Home
|
||||
field :max_home_size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('maxHomeSize') } }
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_USER_FRIENDS_BAD_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_USER_FRIENDS_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_USER_FRIENDS_PLEX_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_USER_FRIENDS_RESPONSE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
GET_USER_FRIENDS_UNAUTHORIZED_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
INCLUDE_HTTPS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# IncludeHttps - Include Https entries in the results
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
INCLUDE_I_PV6_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# IncludeIPv6 - Include IPv6 entries in the results
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
INCLUDE_RELAY_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# IncludeRelay - Include Relay addresses in the results
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
INTERNAL_PAYMENT_METHOD_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
MAILING_LIST_STATUS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# MailingListStatus - Your current mailing list status
|
||||
# MailingListStatus - Your current mailing list status (active or unsubscribed)
|
||||
class MailingListStatus < T::Enum
|
||||
enums do
|
||||
ACTIVE = new('active')
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
MEDIA_REVIEWS_VISIBILITY_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# MediaReviewsVisibility - Whether or not the account has media reviews visibility enabled
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
PAST_SUBSCRIPTION_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
PLEX_DEVICE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_AUTHENTICATION_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_AUTHENTICATION_FEATURES_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_AUTHENTICATION_RESPONSE_STATUS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# PostUsersSignInDataAuthenticationResponseStatus - String representation of subscriptionActive
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_AUTHENTICATION_STATUS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# PostUsersSignInDataAuthenticationStatus - String representation of subscriptionActive
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_AUTHENTICATION_SUBSCRIPTION_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_AUTO_SELECT_SUBTITLE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# PostUsersSignInDataAutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_BAD_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_DEFAULT_SUBTITLE_ACCESSIBILITY_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# PostUsersSignInDataDefaultSubtitleAccessibility - 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 show non-SDH subtitles)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_DEFAULT_SUBTITLE_FORCED_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# PostUsersSignInDataDefaultSubtitleForced - 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)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_ERRORS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_FEATURES_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_MAILING_LIST_STATUS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# PostUsersSignInDataMailingListStatus - Your current mailing list status
|
||||
# PostUsersSignInDataMailingListStatus - Your current mailing list status (active or unsubscribed)
|
||||
class PostUsersSignInDataMailingListStatus < T::Enum
|
||||
enums do
|
||||
ACTIVE = new('active')
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_MEDIA_REVIEWS_VISIBILITY_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# PostUsersSignInDataMediaReviewsVisibility - Whether or not the account has media reviews visibility enabled
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_REQUEST_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_REQUEST_BODY_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Login credentials
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_RESPONSE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_SERVICES_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_STATE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_STATUS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_SUBSCRIPTION_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# If the account’s Plex Pass subscription is active
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_UNAUTHORIZED_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_USER_PLEX_ACCOUNT_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Returns the user account data with a valid auth token
|
||||
@@ -60,7 +60,7 @@ module PlexRubySDK
|
||||
field :locale, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('locale') } }
|
||||
# If you are subscribed to the Plex newsletter
|
||||
field :mailing_list_active, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mailingListActive') } }
|
||||
# Your current mailing list status
|
||||
# Your current mailing list status (active or unsubscribed)
|
||||
field :mailing_list_status, ::PlexRubySDK::Operations::PostUsersSignInDataMailingListStatus, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mailingListStatus'), 'decoder': Utils.enum_from_string(::PlexRubySDK::Operations::PostUsersSignInDataMailingListStatus, false) } }
|
||||
# The maximum number of accounts allowed in the Plex Home
|
||||
field :max_home_size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('maxHomeSize') } }
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_USER_PROFILE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
POST_USERS_SIGN_IN_DATA_WATCHED_INDICATOR_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# PostUsersSignInDataWatchedIndicator - Whether or not media watched indicators are enabled (little orange dot on media)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
PROTOCOL_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Protocol - The protocol used for the connection (http, https, etc)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
RESPONSE_BODY_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
SERVICES_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
SHARED_SERVERS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
SHARED_SOURCES_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
STATUS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# Status - Current friend request status
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
SUBSCRIPTION_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# If the account’s Plex Pass subscription is active
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
TRIALS_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
USER_PROFILE_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
module PlexRubySDK
|
||||
module Operations
|
||||
WATCHED_INDICATOR_SERVERS = [
|
||||
'https://plex.tv/api/v2/'
|
||||
'https://plex.tv/api/v2'
|
||||
].freeze
|
||||
|
||||
# WatchedIndicator - Whether or not media watched indicators are enabled (little orange dot on media)
|
||||
|
||||
@@ -14,32 +14,32 @@ module PlexRubySDK
|
||||
|
||||
# GET_COMPANIONS_DATA_SERVERS contains the list of server urls available to the SDK.
|
||||
GET_COMPANIONS_DATA_SERVERS = [
|
||||
'https://plex.tv/api/v2/',
|
||||
'https://plex.tv/api/v2',
|
||||
].freeze
|
||||
|
||||
# GET_USER_FRIENDS_SERVERS contains the list of server urls available to the SDK.
|
||||
GET_USER_FRIENDS_SERVERS = [
|
||||
'https://plex.tv/api/v2/',
|
||||
'https://plex.tv/api/v2',
|
||||
].freeze
|
||||
|
||||
# GET_GEO_DATA_SERVERS contains the list of server urls available to the SDK.
|
||||
GET_GEO_DATA_SERVERS = [
|
||||
'https://plex.tv/api/v2/',
|
||||
'https://plex.tv/api/v2',
|
||||
].freeze
|
||||
|
||||
# GET_SERVER_RESOURCES_SERVERS contains the list of server urls available to the SDK.
|
||||
GET_SERVER_RESOURCES_SERVERS = [
|
||||
'https://plex.tv/api/v2/',
|
||||
'https://plex.tv/api/v2',
|
||||
].freeze
|
||||
|
||||
# GET_PIN_SERVERS contains the list of server urls available to the SDK.
|
||||
GET_PIN_SERVERS = [
|
||||
'https://plex.tv/api/v2/',
|
||||
'https://plex.tv/api/v2',
|
||||
].freeze
|
||||
|
||||
# GET_TOKEN_BY_PIN_ID_SERVERS contains the list of server urls available to the SDK.
|
||||
GET_TOKEN_BY_PIN_ID_SERVERS = [
|
||||
'https://plex.tv/api/v2/',
|
||||
'https://plex.tv/api/v2',
|
||||
].freeze
|
||||
# API Calls that perform operations directly against https://Plex.tv
|
||||
#
|
||||
@@ -304,14 +304,10 @@ module PlexRubySDK
|
||||
end
|
||||
|
||||
|
||||
sig { params(pin_id: ::Integer, server_url: T.nilable(String)).returns(::PlexRubySDK::Operations::GetTokenByPinIdResponse) }
|
||||
def get_token_by_pin_id(pin_id, server_url = nil)
|
||||
sig { params(request: T.nilable(::PlexRubySDK::Operations::GetTokenByPinIdRequest), server_url: T.nilable(String)).returns(::PlexRubySDK::Operations::GetTokenByPinIdResponse) }
|
||||
def get_token_by_pin_id(request, server_url = nil)
|
||||
# get_token_by_pin_id - Get Access Token by PinId
|
||||
# Retrieve an Access Token from Plex.tv after the Pin has been authenticated
|
||||
request = ::PlexRubySDK::Operations::GetTokenByPinIdRequest.new(
|
||||
|
||||
pin_id: pin_id
|
||||
)
|
||||
base_url = Utils.template_url(GET_TOKEN_BY_PIN_ID_SERVERS[0], {
|
||||
})
|
||||
base_url = server_url if !server_url.nil?
|
||||
@@ -323,11 +319,13 @@ module PlexRubySDK
|
||||
@sdk_configuration.globals
|
||||
)
|
||||
headers = {}
|
||||
query_params = Utils.get_query_params(::PlexRubySDK::Operations::GetTokenByPinIdRequest, request, @sdk_configuration.globals)
|
||||
headers['Accept'] = 'application/json'
|
||||
headers['user-agent'] = @sdk_configuration.user_agent
|
||||
|
||||
r = @sdk_configuration.client.get(url) do |req|
|
||||
req.headers = headers
|
||||
req.params = query_params
|
||||
end
|
||||
|
||||
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
||||
|
||||
@@ -42,9 +42,9 @@ module PlexRubySDK
|
||||
@globals = globals.nil? ? {} : globals
|
||||
@language = 'ruby'
|
||||
@openapi_doc_version = '0.0.3'
|
||||
@sdk_version = '0.4.2'
|
||||
@gen_version = '2.422.22'
|
||||
@user_agent = 'speakeasy-sdk/ruby 0.4.2 2.422.22 0.0.3 plex_ruby_sdk'
|
||||
@sdk_version = '0.4.3'
|
||||
@gen_version = '2.426.2'
|
||||
@user_agent = 'speakeasy-sdk/ruby 0.4.3 2.426.2 0.0.3 plex_ruby_sdk'
|
||||
end
|
||||
|
||||
sig { returns([String, T::Hash[Symbol, String]]) }
|
||||
|
||||
Reference in New Issue
Block a user