ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.404.5

This commit is contained in:
speakeasybot
2024-09-28 00:09:32 +00:00
parent 40e6afeb04
commit c21edf4600
116 changed files with 252 additions and 161 deletions

View File

@@ -6,6 +6,9 @@ Metrics:
Enabled: false Enabled: false
Style/IfInsideElse: Style/IfInsideElse:
Enabled: false Enabled: false
# Temporary until Ruby deals with empty responses correctly
Style/EmptyElse:
Enabled: false
Style/GuardClause: Style/GuardClause:
Enabled: false Enabled: false
Style/ConditionalAssignment: Style/ConditionalAssignment:

View File

@@ -1,19 +1,19 @@
lockVersion: 2.0.0 lockVersion: 2.0.0
id: aa9449e7-c19d-411d-b8e2-f9c5fe982f6f id: aa9449e7-c19d-411d-b8e2-f9c5fe982f6f
management: management:
docChecksum: 5e039359563b41bbe118fc6701ba22dc docChecksum: e7673f3f46e5b0bf495c378378aa7ad6
docVersion: 0.0.3 docVersion: 0.0.3
speakeasyVersion: 1.402.14 speakeasyVersion: 1.404.5
generationVersion: 2.422.22 generationVersion: 2.426.2
releaseVersion: 0.4.2 releaseVersion: 0.4.3
configChecksum: bf8c6debe1b811f37b69f20b78e3900b configChecksum: 99bb289a2dc7a206fe4ee310195b2359
repoURL: https://github.com/LukeHagar/plexruby.git repoURL: https://github.com/LukeHagar/plexruby.git
repoSubDirectory: . repoSubDirectory: .
installationURL: https://github.com/LukeHagar/plexruby installationURL: https://github.com/LukeHagar/plexruby
published: true published: true
features: features:
ruby: ruby:
core: 3.2.24 core: 3.2.25
deprecations: 2.81.1 deprecations: 2.81.1
enums: 2.81.1 enums: 2.81.1
flattening: 2.81.1 flattening: 2.81.1
@@ -1971,7 +1971,12 @@ examples:
parameters: parameters:
path: path:
pinID: 408895 pinID: 408895
query: {} query:
X-Plex-Client-Identifier: "gcgzw5rz2xovp84b4vha3a40"
X-Plex-Product: "Plex Web"
X-Plex-Device: "Linux"
X-Plex-Version: "4.133.0"
X-Plex-Platform: "Chrome"
responses: responses:
"404": "404":
application/json: {"errors": [{"code": 1020, "message": "Code not found or expired"}]} application/json: {"errors": [{"code": 1020, "message": "Code not found or expired"}]}
@@ -2399,7 +2404,7 @@ examples:
speakeasy-default-get-token-details: speakeasy-default-get-token-details:
responses: responses:
"200": "200":
application/json: {"adsConsent": true, "adsConsentReminderAt": "2019-08-24T14:15:22Z", "adsConsentSetAt": "2019-08-24T14:15:22Z", "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": ["[]"], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1556281940, "locale": null, "mailingListActive": false, "mailingListStatus": "unsubscribed", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": 1, "defaultSubtitleAccessibility": 1, "defaultSubtitleForced": 1, "watchedIndicator": 1, "mediaReviewsVisibility": 1}, "protected": false, "rememberExpiresAt": 1556281940, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f", "attributionPartner": null} application/json: {"adsConsent": true, "adsConsentReminderAt": "2019-08-24T14:15:22Z", "adsConsentSetAt": "2019-08-24T14:15:22Z", "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": ["[]"], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1556281940, "locale": null, "mailingListActive": false, "mailingListStatus": "active", "maxHomeSize": 15, "pin": "string", "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": 1, "defaultSubtitleAccessibility": 1, "defaultSubtitleForced": 1, "watchedIndicator": 1, "mediaReviewsVisibility": 1}, "protected": false, "rememberExpiresAt": 1556281940, "restricted": false, "roles": ["string"], "scrobbleTypes": "", "services": [{"identifier": "metadata-dev", "endpoint": "https://epg.provider.plex.tv", "token": "DjoMtqFAGRL1uVtCyF1dKIorTbShJeqv", "secret": "string", "status": "online"}], "subscription": {"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}, "subscriptionDescription": "string", "subscriptions": [{"features": ["Android - Dolby Vision"], "active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive", "paymentService": "string", "plan": "string"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f", "attributionPartner": null}
"400": "400":
application/json: {"errors": []} application/json: {"errors": []}
"401": "401":

View File

@@ -12,7 +12,7 @@ generation:
auth: auth:
oAuth2ClientCredentialsEnabled: false oAuth2ClientCredentialsEnabled: false
ruby: ruby:
version: 0.4.2 version: 0.4.3
author: LukeHagar author: LukeHagar
description: Ruby Client SDK Generated by Speakeasy description: Ruby Client SDK Generated by Speakeasy
imports: imports:

View File

@@ -1,4 +1,4 @@
speakeasyVersion: 1.402.14 speakeasyVersion: 1.404.5
sources: sources:
my-source: my-source:
sourceNamespace: my-source sourceNamespace: my-source
@@ -9,8 +9,8 @@ sources:
- main - main
plexapi: plexapi:
sourceNamespace: plexapi sourceNamespace: plexapi
sourceRevisionDigest: sha256:b7081644a59eca24a22b8009506fcf459bf18b07dce0462b39bc36c40d94862e sourceRevisionDigest: sha256:276a31ab98595ebaf2b1fac4b4f5c3c1c7b55e0431f9074c89b8fbcb55b52d3f
sourceBlobDigest: sha256:6b822f23afbc630bbc0fc12299316ea03d3671a2c2a81241ad4caa49022b430e sourceBlobDigest: sha256:2bc9e816db669d609d8a5988ebb629578dc5cbbaff191d260b5c63b7ba1bd59b
tags: tags:
- latest - latest
- main - main
@@ -18,10 +18,10 @@ targets:
plexruby: plexruby:
source: plexapi source: plexapi
sourceNamespace: plexapi sourceNamespace: plexapi
sourceRevisionDigest: sha256:b7081644a59eca24a22b8009506fcf459bf18b07dce0462b39bc36c40d94862e sourceRevisionDigest: sha256:276a31ab98595ebaf2b1fac4b4f5c3c1c7b55e0431f9074c89b8fbcb55b52d3f
sourceBlobDigest: sha256:6b822f23afbc630bbc0fc12299316ea03d3671a2c2a81241ad4caa49022b430e sourceBlobDigest: sha256:2bc9e816db669d609d8a5988ebb629578dc5cbbaff191d260b5c63b7ba1bd59b
codeSamplesNamespace: code-samples-ruby-plexruby codeSamplesNamespace: code-samples-ruby-plexruby
codeSamplesRevisionDigest: sha256:2e926a14a71aa699533691b1e736837f18fd9d63fb94993e442e01cc4391a075 codeSamplesRevisionDigest: sha256:dcfb147640b3379a713f9855e3861b8961efb0ee80eda4ebbed95619e43b47c3
workflow: workflow:
workflowVersion: 1.0.0 workflowVersion: 1.0.0
speakeasyVersion: latest speakeasyVersion: latest

View File

@@ -1,7 +1,7 @@
PATH PATH
remote: . remote: .
specs: specs:
plex_ruby_sdk (0.4.2) plex_ruby_sdk (0.4.3)
faraday faraday
faraday-multipart faraday-multipart
rack rack

View File

@@ -11,6 +11,31 @@
## Summary ## Summary
Plex-API: An Open API Spec for interacting with Plex.tv and Plex Media Server Plex-API: An Open API Spec for interacting with Plex.tv and Plex Media Server
# Plex Media Server OpenAPI Specification
An Open Source OpenAPI Specification for Plex Media Server
Automation and SDKs provided by [Speakeasy](https://speakeasyapi.dev/)
## Documentation
[API Documentation](https://plexapi.dev)
## SDKs
The following SDKs are generated from the OpenAPI Specification. They are automatically generated and may not be fully tested. If you find any issues, please open an issue on the respective repository.
| Language | Repository | Releases | Other |
| --------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------- |
| Python | [GitHub](https://github.com/LukeHagar/plexpy) | [PyPI](https://pypi.org/project/plex-api-client/) | - |
| JavaScript/TypeScript | [GitHub](https://github.com/LukeHagar/plexjs) | [NPM](https://www.npmjs.com/package/@lukehagar/plexjs) \ [JSR](https://jsr.io/@lukehagar/plexjs) | - |
| Go | [GitHub](https://github.com/LukeHagar/plexgo) | [Releases](https://github.com/LukeHagar/plexgo/releases) | [GoDoc](https://pkg.go.dev/github.com/LukeHagar/plexgo) |
| Ruby | [GitHub](https://github.com/LukeHagar/plexruby) | [Releases](https://github.com/LukeHagar/plexruby/releases) | - |
| Swift | [GitHub](https://github.com/LukeHagar/plexswift) | [Releases](https://github.com/LukeHagar/plexswift/releases) | - |
| PHP | [GitHub](https://github.com/LukeHagar/plexphp) | [Releases](https://github.com/LukeHagar/plexphp/releases) | - |
| Java | [GitHub](https://github.com/LukeHagar/plexjava) | [Releases](https://github.com/LukeHagar/plexjava/releases) | - |
| C# | [GitHub](https://github.com/LukeHagar/plexcsharp) | [Releases](https://github.com/LukeHagar/plexcsharp/releases) | -
<!-- End Summary [summary] --> <!-- End Summary [summary] -->
<!-- Start Table of Contents [toc] --> <!-- Start Table of Contents [toc] -->
@@ -246,7 +271,7 @@ s.config_security(
) )
res = s.plex.get_companions_data(server_url: "https://plex.tv/api/v2/") res = s.plex.get_companions_data(server_url: "https://plex.tv/api/v2")
if ! res.response_bodies.nil? if ! res.response_bodies.nil?
# handle response # handle response

View File

@@ -566,4 +566,14 @@ Based on:
### Generated ### Generated
- [ruby v0.4.2] . - [ruby v0.4.2] .
### Releases ### Releases
- [Ruby Gems v0.4.2] https://rubygems.org/gems/plex_ruby_sdk/versions/0.4.2 - . - [Ruby Gems v0.4.2] https://rubygems.org/gems/plex_ruby_sdk/versions/0.4.2 - .
## 2024-09-28 00:07:44
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.404.5 (2.426.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [ruby v0.4.3] .
### Releases
- [Ruby Gems v0.4.3] https://rubygems.org/gems/plex_ruby_sdk/versions/0.4.3 - .

View File

@@ -290,7 +290,7 @@ actions:
x-codeSamples: x-codeSamples:
- lang: ruby - lang: ruby
label: getTokenByPinId label: getTokenByPinId
source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n client_id: \"gcgzw5rz2xovp84b4vha3a40\",\n client_name: \"Plex Web\",\n client_version: \"4.133.0\",\n client_platform: \"Chrome\",\n device_name: \"Linux\",\n )\n\n \nres = s.plex.get_token_by_pin_id(pin_id=408895)\n\nif ! res.auth_pin_container.nil?\n # handle response\nend" source: "require 'plex_ruby_sdk'\n\n\ns = ::PlexRubySDK::PlexAPI.new(\n client_id: \"gcgzw5rz2xovp84b4vha3a40\",\n client_name: \"Plex Web\",\n client_version: \"4.133.0\",\n client_platform: \"Chrome\",\n device_name: \"Linux\",\n )\n\n\nreq = ::PlexRubySDK::Operations::GetTokenByPinIdRequest.new(\n pin_id: 408895,\n)\n \nres = s.plex.get_token_by_pin_id(req)\n\nif ! res.auth_pin_container.nil?\n # handle response\nend"
- target: $["paths"]["/playlists"]["get"] - target: $["paths"]["/playlists"]["get"]
update: update:
x-codeSamples: x-codeSamples:

View File

@@ -3,12 +3,12 @@
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description | Example |
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| `protocol` | [::PlexRubySDK::Operations::Protocol](../../models/operations/protocol.md) | :heavy_check_mark: | The protocol used for the connection (http, https, etc) | | `protocol` | [::PlexRubySDK::Operations::Protocol](../../models/operations/protocol.md) | :heavy_check_mark: | The protocol used for the connection (http, https, etc) | http |
| `address` | *::String* | :heavy_check_mark: | The (ip) address or domain name used for the connection | | `address` | *::String* | :heavy_check_mark: | The (ip) address or domain name used for the connection | |
| `port` | *::Integer* | :heavy_check_mark: | The port used for the connection | | `port` | *::Integer* | :heavy_check_mark: | The port used for the connection | |
| `uri` | *::String* | :heavy_check_mark: | The full URI of the connection | | `uri` | *::String* | :heavy_check_mark: | The full URI of the connection | |
| `local` | *T::Boolean* | :heavy_check_mark: | If the connection is local address | | `local` | *T::Boolean* | :heavy_check_mark: | If the connection is local address | |
| `relay` | *T::Boolean* | :heavy_check_mark: | If the connection is relayed through plex.direct | | `relay` | *T::Boolean* | :heavy_check_mark: | If the connection is relayed through plex.direct | |
| `i_pv6` | *T::Boolean* | :heavy_check_mark: | If the connection is using IPv6 | | `i_pv6` | *T::Boolean* | :heavy_check_mark: | If the connection is using IPv6 | |

View File

@@ -3,6 +3,11 @@
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description | Example |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `pin_id` | *::Integer* | :heavy_check_mark: | The PinID to retrieve an access token for | | `pin_id` | *::Integer* | :heavy_check_mark: | The PinID to retrieve an access token for | |
| `client_id` | *T.nilable(::String)* | :heavy_minus_sign: | The unique identifier for the client application<br/>This is used to track the client application and its usage<br/>(UUID, serial number, or other number unique per device)<br/> | gcgzw5rz2xovp84b4vha3a40 |
| `client_name` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | Plex Web |
| `device_name` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | Linux |
| `client_version` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | 4.133.0 |
| `client_platform` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | Chrome |

View File

@@ -29,7 +29,7 @@ Logged in user details
| `joined_at` | *::Integer* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | | `joined_at` | *::Integer* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
| `locale` | *::String* | :heavy_check_mark: | The account locale | | | `locale` | *::String* | :heavy_check_mark: | The account locale | |
| `mailing_list_active` | *T::Boolean* | :heavy_check_mark: | If you are subscribed to the Plex newsletter | | | `mailing_list_active` | *T::Boolean* | :heavy_check_mark: | If you are subscribed to the Plex newsletter | |
| `mailing_list_status` | [::PlexRubySDK::Operations::MailingListStatus](../../models/operations/mailingliststatus.md) | :heavy_check_mark: | Your current mailing list status | | | `mailing_list_status` | [::PlexRubySDK::Operations::MailingListStatus](../../models/operations/mailingliststatus.md) | :heavy_check_mark: | Your current mailing list status (active or unsubscribed) | active |
| `max_home_size` | *::Integer* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 | | `max_home_size` | *::Integer* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 |
| ~~`pin`~~ | *T.nilable(::String)* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>[Might be removed] The hashed Plex Home PIN | | | ~~`pin`~~ | *T.nilable(::String)* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>[Might be removed] The hashed Plex Home PIN | |
| `profile` | [::PlexRubySDK::Operations::UserProfile](../../models/operations/userprofile.md) | :heavy_check_mark: | N/A | | | `profile` | [::PlexRubySDK::Operations::UserProfile](../../models/operations/userprofile.md) | :heavy_check_mark: | N/A | |

View File

@@ -1,6 +1,6 @@
# MailingListStatus # MailingListStatus
Your current mailing list status Your current mailing list status (active or unsubscribed)
## Values ## Values

View File

@@ -1,6 +1,6 @@
# PostUsersSignInDataMailingListStatus # PostUsersSignInDataMailingListStatus
Your current mailing list status Your current mailing list status (active or unsubscribed)
## Values ## Values

View File

@@ -29,7 +29,7 @@ Returns the user account data with a valid auth token
| `joined_at` | *::Integer* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | | `joined_at` | *::Integer* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
| `locale` | *::String* | :heavy_check_mark: | The account locale | | | `locale` | *::String* | :heavy_check_mark: | The account locale | |
| `mailing_list_active` | *T::Boolean* | :heavy_check_mark: | If you are subscribed to the Plex newsletter | | | `mailing_list_active` | *T::Boolean* | :heavy_check_mark: | If you are subscribed to the Plex newsletter | |
| `mailing_list_status` | [::PlexRubySDK::Operations::PostUsersSignInDataMailingListStatus](../../models/operations/postuserssignindatamailingliststatus.md) | :heavy_check_mark: | Your current mailing list status | | | `mailing_list_status` | [::PlexRubySDK::Operations::PostUsersSignInDataMailingListStatus](../../models/operations/postuserssignindatamailingliststatus.md) | :heavy_check_mark: | Your current mailing list status (active or unsubscribed) | active |
| `max_home_size` | *::Integer* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 | | `max_home_size` | *::Integer* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 |
| ~~`pin`~~ | *T.nilable(::String)* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>[Might be removed] The hashed Plex Home PIN | | | ~~`pin`~~ | *T.nilable(::String)* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>[Might be removed] The hashed Plex Home PIN | |
| `profile` | [::PlexRubySDK::Operations::PostUsersSignInDataUserProfile](../../models/operations/postuserssignindatauserprofile.md) | :heavy_check_mark: | N/A | | | `profile` | [::PlexRubySDK::Operations::PostUsersSignInDataUserProfile](../../models/operations/postuserssignindatauserprofile.md) | :heavy_check_mark: | N/A | |

View File

@@ -293,8 +293,12 @@ s = ::PlexRubySDK::PlexAPI.new(
device_name: "Linux", device_name: "Linux",
) )
req = ::PlexRubySDK::Operations::GetTokenByPinIdRequest.new(
pin_id: 408895,
)
res = s.plex.get_token_by_pin_id(pin_id=408895) res = s.plex.get_token_by_pin_id(req)
if ! res.auth_pin_container.nil? if ! res.auth_pin_container.nil?
# handle response # handle response
@@ -304,10 +308,10 @@ end
### Parameters ### Parameters
| Parameter | Type | Required | Description | | Parameter | Type | Required | Description |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
| `pin_id` | *::Integer* | :heavy_check_mark: | The PinID to retrieve an access token for | | `request` | [::PlexRubySDK::Operations::GetTokenByPinIdRequest](../../models/operations/gettokenbypinidrequest.md) | :heavy_check_mark: | The request object to use for the request. |
| `server_url` | *String* | :heavy_minus_sign: | An optional server URL to use. | | `server_url` | *String* | :heavy_minus_sign: | An optional server URL to use. |
### Response ### Response

View File

@@ -2,4 +2,27 @@
## Overview ## Overview
Plex-API: An Open API Spec for interacting with Plex.tv and Plex Media Server # Plex Media Server OpenAPI Specification
An Open Source OpenAPI Specification for Plex Media Server
Automation and SDKs provided by [Speakeasy](https://speakeasyapi.dev/)
## Documentation
[API Documentation](https://plexapi.dev)
## SDKs
The following SDKs are generated from the OpenAPI Specification. They are automatically generated and may not be fully tested. If you find any issues, please open an issue on the respective repository.
| Language | Repository | Releases | Other |
| --------------------- | ------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------- |
| Python | [GitHub](https://github.com/LukeHagar/plexpy) | [PyPI](https://pypi.org/project/plex-api-client/) | - |
| JavaScript/TypeScript | [GitHub](https://github.com/LukeHagar/plexjs) | [NPM](https://www.npmjs.com/package/@lukehagar/plexjs) \ [JSR](https://jsr.io/@lukehagar/plexjs) | - |
| Go | [GitHub](https://github.com/LukeHagar/plexgo) | [Releases](https://github.com/LukeHagar/plexgo/releases) | [GoDoc](https://pkg.go.dev/github.com/LukeHagar/plexgo) |
| Ruby | [GitHub](https://github.com/LukeHagar/plexruby) | [Releases](https://github.com/LukeHagar/plexruby/releases) | - |
| Swift | [GitHub](https://github.com/LukeHagar/plexswift) | [Releases](https://github.com/LukeHagar/plexswift/releases) | - |
| PHP | [GitHub](https://github.com/LukeHagar/plexphp) | [Releases](https://github.com/LukeHagar/plexphp/releases) | - |
| Java | [GitHub](https://github.com/LukeHagar/plexjava) | [Releases](https://github.com/LukeHagar/plexjava/releases) | - |
| C# | [GitHub](https://github.com/LukeHagar/plexcsharp) | [Releases](https://github.com/LukeHagar/plexcsharp/releases) | -

View File

@@ -14,12 +14,12 @@ module PlexRubySDK
# GET_TOKEN_DETAILS_SERVERS contains the list of server urls available to the SDK. # GET_TOKEN_DETAILS_SERVERS contains the list of server urls available to the SDK.
GET_TOKEN_DETAILS_SERVERS = [ GET_TOKEN_DETAILS_SERVERS = [
'https://plex.tv/api/v2/', 'https://plex.tv/api/v2',
].freeze ].freeze
# POST_USERS_SIGN_IN_DATA_SERVERS contains the list of server urls available to the SDK. # POST_USERS_SIGN_IN_DATA_SERVERS contains the list of server urls available to the SDK.
POST_USERS_SIGN_IN_DATA_SERVERS = [ POST_USERS_SIGN_IN_DATA_SERVERS = [
'https://plex.tv/api/v2/', 'https://plex.tv/api/v2',
].freeze ].freeze
# API Calls regarding authentication for Plex Media Server # API Calls regarding authentication for Plex Media Server
# #

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
AUTO_SELECT_SUBTITLE_SERVERS = [ AUTO_SELECT_SUBTITLE_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# AutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) # AutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
BILLING_SERVERS = [ BILLING_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
CONNECTIONS_SERVERS = [ CONNECTIONS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
DEFAULT_SUBTITLE_ACCESSIBILITY_SERVERS = [ DEFAULT_SUBTITLE_ACCESSIBILITY_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].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) # 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)

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
DEFAULT_SUBTITLE_FORCED_SERVERS = [ DEFAULT_SUBTITLE_FORCED_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].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) # 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)

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
FEATURES_SERVERS = [ FEATURES_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
FRIEND_SERVERS = [ FRIEND_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GEO_DATA_SERVERS = [ GEO_DATA_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Geo location data # Geo location data

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_SERVER_RESOURCES_BAD_REQUEST_SERVERS = [ GET_SERVER_RESOURCES_BAD_REQUEST_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Bad Request - A parameter was not specified, or was specified incorrectly. # Bad Request - A parameter was not specified, or was specified incorrectly.

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_SERVER_RESOURCES_ERRORS_SERVERS = [ GET_SERVER_RESOURCES_ERRORS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_SERVER_RESOURCES_PLEX_ERRORS_SERVERS = [ GET_SERVER_RESOURCES_PLEX_ERRORS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_SERVER_RESOURCES_REQUEST_SERVERS = [ GET_SERVER_RESOURCES_REQUEST_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_SERVER_RESOURCES_RESPONSE_SERVERS = [ GET_SERVER_RESOURCES_RESPONSE_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_SERVER_RESOURCES_UNAUTHORIZED_SERVERS = [ GET_SERVER_RESOURCES_UNAUTHORIZED_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query. # Unauthorized - Returned if the X-Plex-Token is missing from the header or query.

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_COMPANIONS_DATA_BAD_REQUEST_SERVERS = [ GET_COMPANIONS_DATA_BAD_REQUEST_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Bad Request - A parameter was not specified, or was specified incorrectly. # Bad Request - A parameter was not specified, or was specified incorrectly.

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_COMPANIONS_DATA_ERRORS_SERVERS = [ GET_COMPANIONS_DATA_ERRORS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_COMPANIONS_DATA_PLEX_ERRORS_SERVERS = [ GET_COMPANIONS_DATA_PLEX_ERRORS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_COMPANIONS_DATA_RESPONSE_SERVERS = [ GET_COMPANIONS_DATA_RESPONSE_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_COMPANIONS_DATA_UNAUTHORIZED_SERVERS = [ GET_COMPANIONS_DATA_UNAUTHORIZED_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query. # Unauthorized - Returned if the X-Plex-Token is missing from the header or query.

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_GEO_DATA_BAD_REQUEST_SERVERS = [ GET_GEO_DATA_BAD_REQUEST_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Bad Request - A parameter was not specified, or was specified incorrectly. # Bad Request - A parameter was not specified, or was specified incorrectly.

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_GEO_DATA_ERRORS_SERVERS = [ GET_GEO_DATA_ERRORS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_GEO_DATA_GEO_DATA_SERVERS = [ GET_GEO_DATA_GEO_DATA_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Geo location data # Geo location data

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_GEO_DATA_PLEX_ERRORS_SERVERS = [ GET_GEO_DATA_PLEX_ERRORS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_GEO_DATA_RESPONSE_SERVERS = [ GET_GEO_DATA_RESPONSE_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_GEO_DATA_UNAUTHORIZED_SERVERS = [ GET_GEO_DATA_UNAUTHORIZED_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query. # Unauthorized - Returned if the X-Plex-Token is missing from the header or query.

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_PIN_AUTH_PIN_CONTAINER_SERVERS = [ GET_PIN_AUTH_PIN_CONTAINER_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Requests a new pin id used in the authentication flow # Requests a new pin id used in the authentication flow

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_PIN_BAD_REQUEST_SERVERS = [ GET_PIN_BAD_REQUEST_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Bad Request - A parameter was not specified, or was specified incorrectly. # Bad Request - A parameter was not specified, or was specified incorrectly.

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_PIN_ERRORS_SERVERS = [ GET_PIN_ERRORS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_PIN_REQUEST_SERVERS = [ GET_PIN_REQUEST_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_PIN_RESPONSE_SERVERS = [ GET_PIN_RESPONSE_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_TOKEN_BY_PIN_ID_AUTH_PIN_CONTAINER_SERVERS = [ GET_TOKEN_BY_PIN_ID_AUTH_PIN_CONTAINER_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# The Pin with a non-null authToken when it has been verified by the user # The Pin with a non-null authToken when it has been verified by the user

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_TOKEN_BY_PIN_ID_BAD_REQUEST_SERVERS = [ GET_TOKEN_BY_PIN_ID_BAD_REQUEST_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Bad Request - A parameter was not specified, or was specified incorrectly. # Bad Request - A parameter was not specified, or was specified incorrectly.

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_TOKEN_BY_PIN_ID_ERRORS_SERVERS = [ GET_TOKEN_BY_PIN_ID_ERRORS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_TOKEN_BY_PIN_ID_GEO_DATA_SERVERS = [ GET_TOKEN_BY_PIN_ID_GEO_DATA_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Geo location data # Geo location data

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_TOKEN_BY_PIN_ID_PLEX_ERRORS_SERVERS = [ GET_TOKEN_BY_PIN_ID_PLEX_ERRORS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_TOKEN_BY_PIN_ID_REQUEST_SERVERS = [ GET_TOKEN_BY_PIN_ID_REQUEST_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
@@ -16,11 +16,29 @@ module PlexRubySDK
# The PinID to retrieve an access token for # The PinID to retrieve an access token for
field :pin_id, ::Integer, { 'path_param': { 'field_name': 'pinID', 'style': 'simple', 'explode': false } } 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 } 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) def initialize(pin_id: nil, client_id: nil, client_name: nil, client_platform: nil, client_version: nil, device_name: nil)
@pin_id = pin_id @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 end
end end

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_TOKEN_BY_PIN_ID_RESPONSE_SERVERS = [ GET_TOKEN_BY_PIN_ID_RESPONSE_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_TOKEN_BY_PIN_ID_RESPONSE_BODY_SERVERS = [ GET_TOKEN_BY_PIN_ID_RESPONSE_BODY_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Not Found or Expired # Not Found or Expired

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_TOKEN_DETAILS_AUTHENTICATION_ERRORS_SERVERS = [ GET_TOKEN_DETAILS_AUTHENTICATION_ERRORS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_TOKEN_DETAILS_AUTHENTICATION_RESPONSE_STATUS_SERVERS = [ GET_TOKEN_DETAILS_AUTHENTICATION_RESPONSE_STATUS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# GetTokenDetailsAuthenticationResponseStatus - String representation of subscriptionActive # GetTokenDetailsAuthenticationResponseStatus - String representation of subscriptionActive

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_TOKEN_DETAILS_AUTHENTICATION_STATUS_SERVERS = [ GET_TOKEN_DETAILS_AUTHENTICATION_STATUS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# GetTokenDetailsAuthenticationStatus - String representation of subscriptionActive # GetTokenDetailsAuthenticationStatus - String representation of subscriptionActive

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_TOKEN_DETAILS_BAD_REQUEST_SERVERS = [ GET_TOKEN_DETAILS_BAD_REQUEST_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Bad Request - A parameter was not specified, or was specified incorrectly. # Bad Request - A parameter was not specified, or was specified incorrectly.

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_TOKEN_DETAILS_ERRORS_SERVERS = [ GET_TOKEN_DETAILS_ERRORS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_TOKEN_DETAILS_FEATURES_SERVERS = [ GET_TOKEN_DETAILS_FEATURES_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_TOKEN_DETAILS_RESPONSE_SERVERS = [ GET_TOKEN_DETAILS_RESPONSE_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_TOKEN_DETAILS_STATUS_SERVERS = [ GET_TOKEN_DETAILS_STATUS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_TOKEN_DETAILS_SUBSCRIPTION_SERVERS = [ GET_TOKEN_DETAILS_SUBSCRIPTION_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_TOKEN_DETAILS_UNAUTHORIZED_SERVERS = [ GET_TOKEN_DETAILS_UNAUTHORIZED_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query. # Unauthorized - Returned if the X-Plex-Token is missing from the header or query.

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_TOKEN_DETAILS_USER_PLEX_ACCOUNT_SERVERS = [ GET_TOKEN_DETAILS_USER_PLEX_ACCOUNT_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Logged in user details # Logged in user details
@@ -60,7 +60,7 @@ module PlexRubySDK
field :locale, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('locale') } } field :locale, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('locale') } }
# If you are subscribed to the Plex newsletter # If you are subscribed to the Plex newsletter
field :mailing_list_active, T::Boolean, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('mailingListActive') } } 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) } } 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 # The maximum number of accounts allowed in the Plex Home
field :max_home_size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('maxHomeSize') } } field :max_home_size, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('maxHomeSize') } }

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_USER_FRIENDS_BAD_REQUEST_SERVERS = [ GET_USER_FRIENDS_BAD_REQUEST_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Bad Request - A parameter was not specified, or was specified incorrectly. # Bad Request - A parameter was not specified, or was specified incorrectly.

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_USER_FRIENDS_ERRORS_SERVERS = [ GET_USER_FRIENDS_ERRORS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_USER_FRIENDS_PLEX_ERRORS_SERVERS = [ GET_USER_FRIENDS_PLEX_ERRORS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_USER_FRIENDS_RESPONSE_SERVERS = [ GET_USER_FRIENDS_RESPONSE_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
GET_USER_FRIENDS_UNAUTHORIZED_SERVERS = [ GET_USER_FRIENDS_UNAUTHORIZED_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query. # Unauthorized - Returned if the X-Plex-Token is missing from the header or query.

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
INCLUDE_HTTPS_SERVERS = [ INCLUDE_HTTPS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# IncludeHttps - Include Https entries in the results # IncludeHttps - Include Https entries in the results

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
INCLUDE_I_PV6_SERVERS = [ INCLUDE_I_PV6_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# IncludeIPv6 - Include IPv6 entries in the results # IncludeIPv6 - Include IPv6 entries in the results

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
INCLUDE_RELAY_SERVERS = [ INCLUDE_RELAY_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# IncludeRelay - Include Relay addresses in the results # IncludeRelay - Include Relay addresses in the results

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
INTERNAL_PAYMENT_METHOD_SERVERS = [ INTERNAL_PAYMENT_METHOD_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,10 +7,10 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
MAILING_LIST_STATUS_SERVERS = [ MAILING_LIST_STATUS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# MailingListStatus - Your current mailing list status # MailingListStatus - Your current mailing list status (active or unsubscribed)
class MailingListStatus < T::Enum class MailingListStatus < T::Enum
enums do enums do
ACTIVE = new('active') ACTIVE = new('active')

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
MEDIA_REVIEWS_VISIBILITY_SERVERS = [ MEDIA_REVIEWS_VISIBILITY_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# MediaReviewsVisibility - Whether or not the account has media reviews visibility enabled # MediaReviewsVisibility - Whether or not the account has media reviews visibility enabled

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
PAST_SUBSCRIPTION_SERVERS = [ PAST_SUBSCRIPTION_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
PLEX_DEVICE_SERVERS = [ PLEX_DEVICE_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_AUTHENTICATION_ERRORS_SERVERS = [ POST_USERS_SIGN_IN_DATA_AUTHENTICATION_ERRORS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_AUTHENTICATION_FEATURES_SERVERS = [ POST_USERS_SIGN_IN_DATA_AUTHENTICATION_FEATURES_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_AUTHENTICATION_RESPONSE_STATUS_SERVERS = [ POST_USERS_SIGN_IN_DATA_AUTHENTICATION_RESPONSE_STATUS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# PostUsersSignInDataAuthenticationResponseStatus - String representation of subscriptionActive # PostUsersSignInDataAuthenticationResponseStatus - String representation of subscriptionActive

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_AUTHENTICATION_STATUS_SERVERS = [ POST_USERS_SIGN_IN_DATA_AUTHENTICATION_STATUS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# PostUsersSignInDataAuthenticationStatus - String representation of subscriptionActive # PostUsersSignInDataAuthenticationStatus - String representation of subscriptionActive

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_AUTHENTICATION_SUBSCRIPTION_SERVERS = [ POST_USERS_SIGN_IN_DATA_AUTHENTICATION_SUBSCRIPTION_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_AUTO_SELECT_SUBTITLE_SERVERS = [ POST_USERS_SIGN_IN_DATA_AUTO_SELECT_SUBTITLE_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# PostUsersSignInDataAutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled) # PostUsersSignInDataAutoSelectSubtitle - The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_BAD_REQUEST_SERVERS = [ POST_USERS_SIGN_IN_DATA_BAD_REQUEST_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Bad Request - A parameter was not specified, or was specified incorrectly. # Bad Request - A parameter was not specified, or was specified incorrectly.

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_DEFAULT_SUBTITLE_ACCESSIBILITY_SERVERS = [ POST_USERS_SIGN_IN_DATA_DEFAULT_SUBTITLE_ACCESSIBILITY_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].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) # 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)

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_DEFAULT_SUBTITLE_FORCED_SERVERS = [ POST_USERS_SIGN_IN_DATA_DEFAULT_SUBTITLE_FORCED_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].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) # 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)

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_ERRORS_SERVERS = [ POST_USERS_SIGN_IN_DATA_ERRORS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_FEATURES_SERVERS = [ POST_USERS_SIGN_IN_DATA_FEATURES_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,10 +7,10 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_MAILING_LIST_STATUS_SERVERS = [ POST_USERS_SIGN_IN_DATA_MAILING_LIST_STATUS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# PostUsersSignInDataMailingListStatus - Your current mailing list status # PostUsersSignInDataMailingListStatus - Your current mailing list status (active or unsubscribed)
class PostUsersSignInDataMailingListStatus < T::Enum class PostUsersSignInDataMailingListStatus < T::Enum
enums do enums do
ACTIVE = new('active') ACTIVE = new('active')

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_MEDIA_REVIEWS_VISIBILITY_SERVERS = [ POST_USERS_SIGN_IN_DATA_MEDIA_REVIEWS_VISIBILITY_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# PostUsersSignInDataMediaReviewsVisibility - Whether or not the account has media reviews visibility enabled # PostUsersSignInDataMediaReviewsVisibility - Whether or not the account has media reviews visibility enabled

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_REQUEST_SERVERS = [ POST_USERS_SIGN_IN_DATA_REQUEST_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_REQUEST_BODY_SERVERS = [ POST_USERS_SIGN_IN_DATA_REQUEST_BODY_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Login credentials # Login credentials

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_RESPONSE_SERVERS = [ POST_USERS_SIGN_IN_DATA_RESPONSE_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_SERVICES_SERVERS = [ POST_USERS_SIGN_IN_DATA_SERVICES_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_STATE_SERVERS = [ POST_USERS_SIGN_IN_DATA_STATE_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_STATUS_SERVERS = [ POST_USERS_SIGN_IN_DATA_STATUS_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_SUBSCRIPTION_SERVERS = [ POST_USERS_SIGN_IN_DATA_SUBSCRIPTION_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# If the accounts Plex Pass subscription is active # If the accounts Plex Pass subscription is active

View File

@@ -7,7 +7,7 @@
module PlexRubySDK module PlexRubySDK
module Operations module Operations
POST_USERS_SIGN_IN_DATA_UNAUTHORIZED_SERVERS = [ POST_USERS_SIGN_IN_DATA_UNAUTHORIZED_SERVERS = [
'https://plex.tv/api/v2/' 'https://plex.tv/api/v2'
].freeze ].freeze
# Unauthorized - Returned if the X-Plex-Token is missing from the header or query. # Unauthorized - Returned if the X-Plex-Token is missing from the header or query.

Some files were not shown because too many files have changed in this diff Show More