Compare commits

..

4 Commits

Author SHA1 Message Date
speakeasybot
fa542f04e1 ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.405.6 2024-10-01 00:30:18 +00:00
speakeasybot
64bc159be2 ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.404.5 2024-09-30 00:28:31 +00:00
speakeasybot
8100bcbf96 ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.404.5 2024-09-29 00:30:08 +00:00
speakeasybot
10a61122c2 ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.404.5 2024-09-28 00:26:45 +00:00
56 changed files with 1045 additions and 407 deletions

View File

@@ -1,23 +1,23 @@
lockVersion: 2.0.0 lockVersion: 2.0.0
id: 1732900d-e173-47c1-a90d-d45182eb35d9 id: 1732900d-e173-47c1-a90d-d45182eb35d9
management: management:
docChecksum: 5e039359563b41bbe118fc6701ba22dc docChecksum: f12b653820ae77ca3b2820bc9459d866
docVersion: 0.0.3 docVersion: 0.0.3
speakeasyVersion: 1.402.14 speakeasyVersion: 1.405.6
generationVersion: 2.422.22 generationVersion: 2.428.1
releaseVersion: 0.5.0 releaseVersion: 0.7.0
configChecksum: 1e077922ecb4295a2f75526fffe0b239 configChecksum: 778e40a6f6ea35580b5da4c033f0b08f
repoURL: https://github.com/LukeHagar/plexjava.git repoURL: https://github.com/LukeHagar/plexjava.git
published: true published: true
features: features:
java: java:
additionalDependencies: 0.1.0 additionalDependencies: 0.1.0
constsAndDefaults: 0.1.1 constsAndDefaults: 0.1.1
core: 3.30.2 core: 3.30.4
deprecations: 2.81.1 deprecations: 2.81.1
downloadStreams: 0.1.1 downloadStreams: 0.1.1
enums: 2.81.2 enums: 2.81.2
errors: 0.1.3 errors: 0.1.4
flattening: 2.81.1 flattening: 2.81.1
globalSecurity: 2.82.7 globalSecurity: 2.82.7
globalSecurityCallbacks: 0.1.0 globalSecurityCallbacks: 0.1.0
@@ -2017,6 +2017,7 @@ examples:
includeHttps: 1 includeHttps: 1
includeRelay: 1 includeRelay: 1
includeIPv6: 1 includeIPv6: 1
X-Plex-Client-Identifier: "gcgzw5rz2xovp84b4vha3a40"
responses: responses:
"401": "401":
application/json: {"errors": []} application/json: {"errors": []}
@@ -2045,7 +2046,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:
"200": "200":
application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": 802, "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null} application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": 802, "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null}
@@ -2687,7 +2693,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: true oAuth2ClientCredentialsEnabled: true
java: java:
version: 0.5.0 version: 0.7.0
additionalDependencies: [] additionalDependencies: []
additionalPlugins: [] additionalPlugins: []
artifactID: plexapi artifactID: plexapi

View File

@@ -1,4 +1,4 @@
speakeasyVersion: 1.402.14 speakeasyVersion: 1.405.6
sources: sources:
my-source: my-source:
sourceNamespace: my-source sourceNamespace: my-source
@@ -8,8 +8,8 @@ sources:
- latest - latest
plexapi: plexapi:
sourceNamespace: plexapi sourceNamespace: plexapi
sourceRevisionDigest: sha256:b7081644a59eca24a22b8009506fcf459bf18b07dce0462b39bc36c40d94862e sourceRevisionDigest: sha256:b377f79289070406b0d4adcf59fa6886c6c90cb13a7893c07b44cae956ee25e4
sourceBlobDigest: sha256:6b822f23afbc630bbc0fc12299316ea03d3671a2c2a81241ad4caa49022b430e sourceBlobDigest: sha256:92072097f693005146db1ceb5728eee08693d61bb5578b26c32dcbe1cc32927f
tags: tags:
- latest - latest
- main - main
@@ -17,10 +17,10 @@ targets:
plexjava: plexjava:
source: plexapi source: plexapi
sourceNamespace: plexapi sourceNamespace: plexapi
sourceRevisionDigest: sha256:b7081644a59eca24a22b8009506fcf459bf18b07dce0462b39bc36c40d94862e sourceRevisionDigest: sha256:b377f79289070406b0d4adcf59fa6886c6c90cb13a7893c07b44cae956ee25e4
sourceBlobDigest: sha256:6b822f23afbc630bbc0fc12299316ea03d3671a2c2a81241ad4caa49022b430e sourceBlobDigest: sha256:92072097f693005146db1ceb5728eee08693d61bb5578b26c32dcbe1cc32927f
codeSamplesNamespace: code-samples-java-plexjava codeSamplesNamespace: code-samples-java-plexjava
codeSamplesRevisionDigest: sha256:2b2011bee7f3ca4e29ec8c4fad1295a7c10ae37f6f6da7034d7aa919591f58ca codeSamplesRevisionDigest: sha256:ad2e918f9c50ecf860a405c94410f64a3ad90197c672258c177fd2e9d1f3d9a6
workflow: workflow:
workflowVersion: 1.0.0 workflowVersion: 1.0.0
speakeasyVersion: latest speakeasyVersion: latest

View File

@@ -12,6 +12,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 [main specification Repository](https://github.com/LukeHagar/plex-api-spec).
| 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] -->
@@ -37,7 +62,7 @@ The samples below show how a published SDK artifact is used:
Gradle: Gradle:
```groovy ```groovy
implementation 'dev.plexapi:plexapi:0.5.0' implementation 'dev.plexapi:plexapi:0.7.0'
``` ```
Maven: Maven:
@@ -45,7 +70,7 @@ Maven:
<dependency> <dependency>
<groupId>dev.plexapi</groupId> <groupId>dev.plexapi</groupId>
<artifactId>plexapi</artifactId> <artifactId>plexapi</artifactId>
<version>0.5.0</version> <version>0.7.0</version>
</dependency> </dependency>
``` ```
@@ -240,7 +265,7 @@ public class Application {
Certain parameters are configured globally. These parameters may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed. Certain parameters are configured globally. These parameters may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, These global values will be used as defaults on the operations that use them. When such operations are called, there is a place in each to override the global value, if needed.
For example, you can set `ClientID` to `"gcgzw5rz2xovp84b4vha3a40"` at SDK initialization and then you do not have to pass the same value on calls to operations like `getPin`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. For example, you can set `ClientID` to `"gcgzw5rz2xovp84b4vha3a40"` at SDK initialization and then you do not have to pass the same value on calls to operations like `getServerResources`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
### Available Globals ### Available Globals
@@ -249,10 +274,7 @@ The following global parameters are available.
| Name | Type | Required | Description | | Name | Type | Required | Description |
| ---- | ---- |:--------:| ----------- | | ---- | ---- |:--------:| ----------- |
| clientID | java.lang.String | | The unique identifier for the client application | clientID | java.lang.String | | 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) |
This is used to track the client application and its usage
(UUID, serial number, or other number unique per device)
|
| clientName | java.lang.String | | The clientName parameter. | | clientName | java.lang.String | | The clientName parameter. |
| clientVersion | java.lang.String | | The clientVersion parameter. | | clientVersion | java.lang.String | | The clientVersion parameter. |
| clientPlatform | java.lang.String | | The clientPlatform parameter. | | clientPlatform | java.lang.String | | The clientPlatform parameter. |
@@ -265,16 +287,20 @@ This is used to track the client application and its usage
package hello.world; package hello.world;
import dev.plexapi.sdk.PlexAPI; import dev.plexapi.sdk.PlexAPI;
import dev.plexapi.sdk.models.errors.GetPinBadRequest; import dev.plexapi.sdk.models.errors.GetServerResourcesBadRequest;
import dev.plexapi.sdk.models.operations.GetPinRequest; import dev.plexapi.sdk.models.errors.GetServerResourcesUnauthorized;
import dev.plexapi.sdk.models.operations.GetPinResponse; import dev.plexapi.sdk.models.operations.GetServerResourcesResponse;
import dev.plexapi.sdk.models.operations.IncludeHttps;
import dev.plexapi.sdk.models.operations.IncludeIPv6;
import dev.plexapi.sdk.models.operations.IncludeRelay;
import java.lang.Exception; import java.lang.Exception;
public class Application { public class Application {
public static void main(String[] args) throws GetPinBadRequest, Exception { public static void main(String[] args) throws GetServerResourcesBadRequest, GetServerResourcesUnauthorized, Exception {
PlexAPI sdk = PlexAPI.builder() PlexAPI sdk = PlexAPI.builder()
.accessToken("<YOUR_API_KEY_HERE>")
.clientID("gcgzw5rz2xovp84b4vha3a40") .clientID("gcgzw5rz2xovp84b4vha3a40")
.clientName("Plex Web") .clientName("Plex Web")
.clientVersion("4.133.0") .clientVersion("4.133.0")
@@ -282,14 +308,14 @@ public class Application {
.deviceName("Linux") .deviceName("Linux")
.build(); .build();
GetPinRequest req = GetPinRequest.builder() GetServerResourcesResponse res = sdk.plex().getServerResources()
.build(); .includeHttps(IncludeHttps.Enable)
.includeRelay(IncludeRelay.Enable)
GetPinResponse res = sdk.plex().getPin() .includeIPv6(IncludeIPv6.Enable)
.request(req) .clientID("gcgzw5rz2xovp84b4vha3a40")
.call(); .call();
if (res.authPinContainer().isPresent()) { if (res.plexDevices().isPresent()) {
// handle response // handle response
} }
} }
@@ -300,13 +326,15 @@ public class Application {
<!-- Start Error Handling [errors] --> <!-- Start Error Handling [errors] -->
## Error Handling ## Error Handling
Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an error. If Error objects are specified in your OpenAPI Spec, the SDK will throw the appropriate Exception type. Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an exception.
| Error Object | Status Code | Content Type | By default, an API error will throw a `models/errors/SDKError` exception. When custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `getServerCapabilities` method throws the following exceptions:
| Error Type | Status Code | Content Type |
| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- |
| models/errors/GetServerCapabilitiesBadRequest | 400 | application/json | | models/errors/GetServerCapabilitiesBadRequest | 400 | application/json |
| models/errors/GetServerCapabilitiesUnauthorized | 401 | application/json | | models/errors/GetServerCapabilitiesUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
### Example ### Example
@@ -458,7 +486,7 @@ public class Application {
.build(); .build();
GetCompanionsDataResponse res = sdk.plex().getCompanionsData() GetCompanionsDataResponse res = sdk.plex().getCompanionsData()
.serverURL("https://plex.tv/api/v2/") .serverURL("https://plex.tv/api/v2")
.call(); .call();
if (res.responseBodies().isPresent()) { if (res.responseBodies().isPresent()) {

View File

@@ -99,3 +99,43 @@ Based on:
- [java v0.5.0] . - [java v0.5.0] .
### Releases ### Releases
- [Maven Central v0.5.0] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.5.0 - . - [Maven Central v0.5.0] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.5.0 - .
## 2024-09-28 00:25:08
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.404.5 (2.426.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.6.0] .
### Releases
- [Maven Central v0.6.0] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.6.0 - .
## 2024-09-29 00:28:35
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.404.5 (2.426.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.6.1] .
### Releases
- [Maven Central v0.6.1] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.6.1 - .
## 2024-09-30 00:26:54
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.404.5 (2.426.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.6.2] .
### Releases
- [Maven Central v0.6.2] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.6.2 - .
## 2024-10-01 00:28:45
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.405.6 (2.428.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.7.0] .
### Releases
- [Maven Central v0.7.0] https://central.sonatype.com/artifact/dev.plexapi/plexapi/0.7.0 - .

View File

@@ -63,7 +63,7 @@ tasks.withType(Javadoc) {
} }
group = "dev.plexapi" group = "dev.plexapi"
version = "0.5.0" version = "0.7.0"
sourcesJar { sourcesJar {
archiveBaseName = "plexapi" archiveBaseName = "plexapi"
@@ -101,7 +101,7 @@ publishing {
maven(MavenPublication) { maven(MavenPublication) {
groupId = 'dev.plexapi' groupId = 'dev.plexapi'
artifactId = 'plexapi' artifactId = 'plexapi'
version = '0.5.0' version = '0.7.0'
from components.java from components.java

View File

@@ -1790,6 +1790,7 @@ actions:
import dev.plexapi.plexapi.PlexAPI; import dev.plexapi.plexapi.PlexAPI;
import dev.plexapi.plexapi.models.errors.GetTokenByPinIdBadRequest; import dev.plexapi.plexapi.models.errors.GetTokenByPinIdBadRequest;
import dev.plexapi.plexapi.models.errors.GetTokenByPinIdResponseBody; import dev.plexapi.plexapi.models.errors.GetTokenByPinIdResponseBody;
import dev.plexapi.plexapi.models.operations.GetTokenByPinIdRequest;
import dev.plexapi.plexapi.models.operations.GetTokenByPinIdResponse; import dev.plexapi.plexapi.models.operations.GetTokenByPinIdResponse;
import java.lang.Exception; import java.lang.Exception;
@@ -1805,8 +1806,12 @@ actions:
.deviceName("Linux") .deviceName("Linux")
.build(); .build();
GetTokenByPinIdResponse res = sdk.plex().getTokenByPinId() GetTokenByPinIdRequest req = GetTokenByPinIdRequest.builder()
.pinID(408895L) .pinID(408895L)
.build();
GetTokenByPinIdResponse res = sdk.plex().getTokenByPinId()
.request(req)
.call(); .call();
if (res.authPinContainer().isPresent()) { if (res.authPinContainer().isPresent()) {
@@ -2186,6 +2191,7 @@ actions:
.includeHttps(IncludeHttps.Enable) .includeHttps(IncludeHttps.Enable)
.includeRelay(IncludeRelay.Enable) .includeRelay(IncludeRelay.Enable)
.includeIPv6(IncludeIPv6.Enable) .includeIPv6(IncludeIPv6.Enable)
.clientID("gcgzw5rz2xovp84b4vha3a40")
.call(); .call();
if (res.plexDevices().isPresent()) { if (res.plexDevices().isPresent()) {

View File

@@ -3,12 +3,12 @@
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description | Example |
| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- |
| `protocol` | [Protocol](../../models/operations/Protocol.md) | :heavy_check_mark: | The protocol used for the connection (http, https, etc) | | `protocol` | [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` | *int* | :heavy_check_mark: | The port used for the connection | | `port` | *int* | :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` | *boolean* | :heavy_check_mark: | If the connection is local address | | `local` | *boolean* | :heavy_check_mark: | If the connection is local address | |
| `relay` | *boolean* | :heavy_check_mark: | If the connection is relayed through plex.direct | | `relay` | *boolean* | :heavy_check_mark: | If the connection is relayed through plex.direct | |
| `iPv6` | *boolean* | :heavy_check_mark: | If the connection is using IPv6 | | `iPv6` | *boolean* | :heavy_check_mark: | If the connection is using IPv6 | |

View File

@@ -12,28 +12,43 @@
| `TREBLE_SHOW_FEATURES` | TREBLE-show-features | | `TREBLE_SHOW_FEATURES` | TREBLE-show-features |
| `AD_COUNTDOWN_TIMER` | ad-countdown-timer | | `AD_COUNTDOWN_TIMER` | ad-countdown-timer |
| `ADAPTIVE_BITRATE` | adaptive_bitrate | | `ADAPTIVE_BITRATE` | adaptive_bitrate |
| `ALBUM_TYPES` | album-types |
| `ALLOW_DVR` | allow_dvr |
| `AMAZON_LOOP_DEBUG` | amazon-loop-debug | | `AMAZON_LOOP_DEBUG` | amazon-loop-debug |
| `AVOD_AD_ANALYSIS` | avod-ad-analysis | | `AVOD_AD_ANALYSIS` | avod-ad-analysis |
| `AVOD_NEW_MEDIA` | avod-new-media | | `AVOD_NEW_MEDIA` | avod-new-media |
| `BLACKLIST_GET_SIGNIN` | blacklist_get_signin | | `BLACKLIST_GET_SIGNIN` | blacklist_get_signin |
| `BOOST_VOICES` | boost-voices |
| `CAMERA_UPLOAD` | camera_upload |
| `CLIENT_RADIO_STATIONS` | client-radio-stations | | `CLIENT_RADIO_STATIONS` | client-radio-stations |
| `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required | | `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required |
| `CLOUDSYNC` | cloudsync |
| `COLLECTIONS` | collections | | `COLLECTIONS` | collections |
| `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications | | `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications |
| `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv | | `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv |
| `COMPANIONS_SONOS` | companions_sonos | | `COMPANIONS_SONOS` | companions_sonos |
| `CONTENT_FILTER` | content_filter |
| `CUSTOM_HOME_REMOVAL` | custom-home-removal | | `CUSTOM_HOME_REMOVAL` | custom-home-removal |
| `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships | | `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships |
| `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships | | `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships |
| `DOWNLOADS_GATING` | downloads-gating |
| `DRM_SUPPORT` | drm_support | | `DRM_SUPPORT` | drm_support |
| `DVR` | dvr |
| `DVR_BLOCK_UNSUPPORTED_COUNTRIES` | dvr-block-unsupported-countries |
| `EPG_RECENT_CHANNELS` | epg-recent-channels |
| `EXCLUDE_RESTRICTIONS` | exclude restrictions | | `EXCLUDE_RESTRICTIONS` | exclude restrictions |
| `FEDERATED_AUTH` | federated-auth | | `FEDERATED_AUTH` | federated-auth |
| `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications | | `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications |
| `GRANDFATHER_SYNC` | grandfather-sync |
| `GUIDED_UPGRADE` | guided-upgrade | | `GUIDED_UPGRADE` | guided-upgrade |
| `HARDWARE_TRANSCODING` | hardware_transcoding |
| `HOME` | home | | `HOME` | home |
| `HWTRANSCODE` | hwtranscode |
| `IMAGGA_V2` | imagga-v2 |
| `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity | | `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity |
| `IOS14_PRIVACY_BANNER` | ios14-privacy-banner | | `IOS14_PRIVACY_BANNER` | ios14-privacy-banner |
| `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens | | `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens |
| `ITEM_CLUSTERS` | item_clusters |
| `KEEP_PAYMENT_METHOD` | keep-payment-method | | `KEEP_PAYMENT_METHOD` | keep-payment-method |
| `KEVIN_BACON` | kevin-bacon | | `KEVIN_BACON` | kevin-bacon |
| `KOREA_CONSENT` | korea-consent | | `KOREA_CONSENT` | korea-consent |
@@ -42,25 +57,46 @@
| `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot | | `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot |
| `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments | | `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments |
| `LIVETV` | livetv | | `LIVETV` | livetv |
| `LYRICS` | lyrics |
| `METADATA_SEARCH` | metadata_search | | `METADATA_SEARCH` | metadata_search |
| `MUSIC_ANALYSIS` | music-analysis |
| `MUSIC_VIDEOS` | music_videos |
| `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices | | `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices |
| `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal | | `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal |
| `NOMINATIM` | nominatim |
| `PASS` | pass |
| `PHOTOS_FAVORITES` | photos-favorites | | `PHOTOS_FAVORITES` | photos-favorites |
| `PHOTOS_METADATA_EDITION` | photos-metadata-edition | | `PHOTOS_METADATA_EDITION` | photos-metadata-edition |
| `PHOTOS_V6_EDIT` | photosV6-edit |
| `PHOTOS_V6_TV_ALBUMS` | photosV6-tv-albums |
| `PMS_HEALTH` | pms_health | | `PMS_HEALTH` | pms_health |
| `PREMIUM_DASHBOARD` | premium-dashboard |
| `PREMIUM_MUSIC_METADATA` | premium_music_metadata |
| `RADIO` | radio | | `RADIO` | radio |
| `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token | | `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token |
| `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv | | `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv |
| `SESSION_BANDWIDTH_RESTRICTIONS` | session_bandwidth_restrictions |
| `SESSION_KICK` | session_kick |
| `SHARED_SERVER_NOTIFICATION` | shared_server_notification | | `SHARED_SERVER_NOTIFICATION` | shared_server_notification |
| `SHARED_SOURCE_NOTIFICATION` | shared_source_notification | | `SHARED_SOURCE_NOTIFICATION` | shared_source_notification |
| `SIGNIN_NOTIFICATION` | signin_notification |
| `SIGNIN_WITH_APPLE` | signin_with_apple | | `SIGNIN_WITH_APPLE` | signin_with_apple |
| `SILENCE_REMOVAL` | silence-removal |
| `SLEEP_TIMER` | sleep-timer |
| `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider | | `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider |
| `SYNC` | sync |
| `SWEET_FADES` | sweet-fades |
| `TRANSCODER_CACHE` | transcoder_cache | | `TRANSCODER_CACHE` | transcoder_cache |
| `TRAILERS` | trailers |
| `TUNER_SHARING` | tuner-sharing | | `TUNER_SHARING` | tuner-sharing |
| `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication | | `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication |
| `UNSUPPORTEDTUNERS` | unsupportedtuners | | `UNSUPPORTEDTUNERS` | unsupportedtuners |
| `UPGRADE3DS2` | upgrade-3ds2 | | `UPGRADE3DS2` | upgrade-3ds2 |
| `VISUALIZERS` | visualizers |
| `VOD_SCHEMA` | vod-schema | | `VOD_SCHEMA` | vod-schema |
| `VOD_CLOUDFLARE` | vod_cloudflare | | `VOD_CLOUDFLARE` | vod_cloudflare |
| `VOLUME_LEVELING` | volume-leveling |
| `WATCH_TOGETHER_INVITE` | watch-together-invite | | `WATCH_TOGETHER_INVITE` | watch-together-invite |
| `WATCHLIST_RSS` | watchlist-rss |
| `WEB_SERVER_DASHBOARD` | web_server_dashboard | | `WEB_SERVER_DASHBOARD` | web_server_dashboard |
| `WEBHOOKS` | webhooks |

View File

@@ -3,11 +3,11 @@
## Fields ## Fields
| Field | Type | Required | Description | Example | | Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `strong` | *Optional<Boolean>* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> | | | `strong` | *Optional<Boolean>* | :heavy_minus_sign: | Determines the kind of code returned by the API call<br/>Strong codes are used for Pin authentication flows<br/>Non-Strong codes are used for `Plex.tv/link`<br/> | |
| `clientID` | *Optional<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 | | `clientID` | *Optional<String>* | :heavy_minus_sign: | 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) | gcgzw5rz2xovp84b4vha3a40 |
| `clientName` | *Optional<String>* | :heavy_minus_sign: | N/A | Plex Web | | `clientName` | *Optional<String>* | :heavy_minus_sign: | N/A | Plex Web |
| `deviceName` | *Optional<String>* | :heavy_minus_sign: | N/A | Linux | | `deviceName` | *Optional<String>* | :heavy_minus_sign: | N/A | Linux |
| `clientVersion` | *Optional<String>* | :heavy_minus_sign: | N/A | 4.133.0 | | `clientVersion` | *Optional<String>* | :heavy_minus_sign: | N/A | 4.133.0 |
| `clientPlatform` | *Optional<String>* | :heavy_minus_sign: | N/A | Chrome | | `clientPlatform` | *Optional<String>* | :heavy_minus_sign: | N/A | Chrome |

View File

@@ -3,8 +3,9 @@
## Fields ## Fields
| Field | Type | Required | Description | Example | | Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `includeHttps` | [Optional<IncludeHttps>](../../models/operations/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 | | `includeHttps` | [Optional<IncludeHttps>](../../models/operations/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
| `includeRelay` | [Optional<IncludeRelay>](../../models/operations/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 | | `includeRelay` | [Optional<IncludeRelay>](../../models/operations/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
| `includeIPv6` | [Optional<IncludeIPv6>](../../models/operations/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 | | `includeIPv6` | [Optional<IncludeIPv6>](../../models/operations/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
| `clientID` | *Optional<String>* | :heavy_minus_sign: | 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) | gcgzw5rz2xovp84b4vha3a40 |

View File

@@ -3,6 +3,11 @@
## Fields ## Fields
| Field | Type | Required | Description | | Field | Type | Required | Description | Example |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `pinID` | *long* | :heavy_check_mark: | The PinID to retrieve an access token for | | `pinID` | *long* | :heavy_check_mark: | The PinID to retrieve an access token for | |
| `clientID` | *Optional<String>* | :heavy_minus_sign: | 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) | gcgzw5rz2xovp84b4vha3a40 |
| `clientName` | *Optional<String>* | :heavy_minus_sign: | N/A | Plex Web |
| `deviceName` | *Optional<String>* | :heavy_minus_sign: | N/A | Linux |
| `clientVersion` | *Optional<String>* | :heavy_minus_sign: | N/A | 4.133.0 |
| `clientPlatform` | *Optional<String>* | :heavy_minus_sign: | N/A | Chrome |

View File

@@ -12,28 +12,43 @@
| `TREBLE_SHOW_FEATURES` | TREBLE-show-features | | `TREBLE_SHOW_FEATURES` | TREBLE-show-features |
| `AD_COUNTDOWN_TIMER` | ad-countdown-timer | | `AD_COUNTDOWN_TIMER` | ad-countdown-timer |
| `ADAPTIVE_BITRATE` | adaptive_bitrate | | `ADAPTIVE_BITRATE` | adaptive_bitrate |
| `ALBUM_TYPES` | album-types |
| `ALLOW_DVR` | allow_dvr |
| `AMAZON_LOOP_DEBUG` | amazon-loop-debug | | `AMAZON_LOOP_DEBUG` | amazon-loop-debug |
| `AVOD_AD_ANALYSIS` | avod-ad-analysis | | `AVOD_AD_ANALYSIS` | avod-ad-analysis |
| `AVOD_NEW_MEDIA` | avod-new-media | | `AVOD_NEW_MEDIA` | avod-new-media |
| `BLACKLIST_GET_SIGNIN` | blacklist_get_signin | | `BLACKLIST_GET_SIGNIN` | blacklist_get_signin |
| `BOOST_VOICES` | boost-voices |
| `CAMERA_UPLOAD` | camera_upload |
| `CLIENT_RADIO_STATIONS` | client-radio-stations | | `CLIENT_RADIO_STATIONS` | client-radio-stations |
| `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required | | `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required |
| `CLOUDSYNC` | cloudsync |
| `COLLECTIONS` | collections | | `COLLECTIONS` | collections |
| `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications | | `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications |
| `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv | | `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv |
| `COMPANIONS_SONOS` | companions_sonos | | `COMPANIONS_SONOS` | companions_sonos |
| `CONTENT_FILTER` | content_filter |
| `CUSTOM_HOME_REMOVAL` | custom-home-removal | | `CUSTOM_HOME_REMOVAL` | custom-home-removal |
| `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships | | `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships |
| `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships | | `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships |
| `DOWNLOADS_GATING` | downloads-gating |
| `DRM_SUPPORT` | drm_support | | `DRM_SUPPORT` | drm_support |
| `DVR` | dvr |
| `DVR_BLOCK_UNSUPPORTED_COUNTRIES` | dvr-block-unsupported-countries |
| `EPG_RECENT_CHANNELS` | epg-recent-channels |
| `EXCLUDE_RESTRICTIONS` | exclude restrictions | | `EXCLUDE_RESTRICTIONS` | exclude restrictions |
| `FEDERATED_AUTH` | federated-auth | | `FEDERATED_AUTH` | federated-auth |
| `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications | | `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications |
| `GRANDFATHER_SYNC` | grandfather-sync |
| `GUIDED_UPGRADE` | guided-upgrade | | `GUIDED_UPGRADE` | guided-upgrade |
| `HARDWARE_TRANSCODING` | hardware_transcoding |
| `HOME` | home | | `HOME` | home |
| `HWTRANSCODE` | hwtranscode |
| `IMAGGA_V2` | imagga-v2 |
| `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity | | `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity |
| `IOS14_PRIVACY_BANNER` | ios14-privacy-banner | | `IOS14_PRIVACY_BANNER` | ios14-privacy-banner |
| `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens | | `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens |
| `ITEM_CLUSTERS` | item_clusters |
| `KEEP_PAYMENT_METHOD` | keep-payment-method | | `KEEP_PAYMENT_METHOD` | keep-payment-method |
| `KEVIN_BACON` | kevin-bacon | | `KEVIN_BACON` | kevin-bacon |
| `KOREA_CONSENT` | korea-consent | | `KOREA_CONSENT` | korea-consent |
@@ -42,25 +57,46 @@
| `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot | | `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot |
| `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments | | `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments |
| `LIVETV` | livetv | | `LIVETV` | livetv |
| `LYRICS` | lyrics |
| `METADATA_SEARCH` | metadata_search | | `METADATA_SEARCH` | metadata_search |
| `MUSIC_ANALYSIS` | music-analysis |
| `MUSIC_VIDEOS` | music_videos |
| `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices | | `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices |
| `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal | | `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal |
| `NOMINATIM` | nominatim |
| `PASS` | pass |
| `PHOTOS_FAVORITES` | photos-favorites | | `PHOTOS_FAVORITES` | photos-favorites |
| `PHOTOS_METADATA_EDITION` | photos-metadata-edition | | `PHOTOS_METADATA_EDITION` | photos-metadata-edition |
| `PHOTOS_V6_EDIT` | photosV6-edit |
| `PHOTOS_V6_TV_ALBUMS` | photosV6-tv-albums |
| `PMS_HEALTH` | pms_health | | `PMS_HEALTH` | pms_health |
| `PREMIUM_DASHBOARD` | premium-dashboard |
| `PREMIUM_MUSIC_METADATA` | premium_music_metadata |
| `RADIO` | radio | | `RADIO` | radio |
| `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token | | `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token |
| `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv | | `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv |
| `SESSION_BANDWIDTH_RESTRICTIONS` | session_bandwidth_restrictions |
| `SESSION_KICK` | session_kick |
| `SHARED_SERVER_NOTIFICATION` | shared_server_notification | | `SHARED_SERVER_NOTIFICATION` | shared_server_notification |
| `SHARED_SOURCE_NOTIFICATION` | shared_source_notification | | `SHARED_SOURCE_NOTIFICATION` | shared_source_notification |
| `SIGNIN_NOTIFICATION` | signin_notification |
| `SIGNIN_WITH_APPLE` | signin_with_apple | | `SIGNIN_WITH_APPLE` | signin_with_apple |
| `SILENCE_REMOVAL` | silence-removal |
| `SLEEP_TIMER` | sleep-timer |
| `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider | | `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider |
| `SYNC` | sync |
| `SWEET_FADES` | sweet-fades |
| `TRANSCODER_CACHE` | transcoder_cache | | `TRANSCODER_CACHE` | transcoder_cache |
| `TRAILERS` | trailers |
| `TUNER_SHARING` | tuner-sharing | | `TUNER_SHARING` | tuner-sharing |
| `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication | | `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication |
| `UNSUPPORTEDTUNERS` | unsupportedtuners | | `UNSUPPORTEDTUNERS` | unsupportedtuners |
| `UPGRADE3DS2` | upgrade-3ds2 | | `UPGRADE3DS2` | upgrade-3ds2 |
| `VISUALIZERS` | visualizers |
| `VOD_SCHEMA` | vod-schema | | `VOD_SCHEMA` | vod-schema |
| `VOD_CLOUDFLARE` | vod_cloudflare | | `VOD_CLOUDFLARE` | vod_cloudflare |
| `VOLUME_LEVELING` | volume-leveling |
| `WATCH_TOGETHER_INVITE` | watch-together-invite | | `WATCH_TOGETHER_INVITE` | watch-together-invite |
| `WATCHLIST_RSS` | watchlist-rss |
| `WEB_SERVER_DASHBOARD` | web_server_dashboard | | `WEB_SERVER_DASHBOARD` | web_server_dashboard |
| `WEBHOOKS` | webhooks |

View File

@@ -29,7 +29,7 @@ Logged in user details
| `joinedAt` | *long* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | | `joinedAt` | *long* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
| `locale` | *Optional<String>* | :heavy_check_mark: | The account locale | | | `locale` | *Optional<String>* | :heavy_check_mark: | The account locale | |
| `mailingListActive` | *Optional<Boolean>* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | | | `mailingListActive` | *Optional<Boolean>* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | |
| `mailingListStatus` | [MailingListStatus](../../models/operations/MailingListStatus.md) | :heavy_check_mark: | Your current mailing list status | | | `mailingListStatus` | [MailingListStatus](../../models/operations/MailingListStatus.md) | :heavy_check_mark: | Your current mailing list status (active or unsubscribed) | active |
| `maxHomeSize` | *int* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 | | `maxHomeSize` | *int* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 |
| ~~`pin`~~ | *Optional<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`~~ | *Optional<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` | [UserProfile](../../models/operations/UserProfile.md) | :heavy_check_mark: | N/A | | | `profile` | [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

@@ -12,28 +12,43 @@
| `TREBLE_SHOW_FEATURES` | TREBLE-show-features | | `TREBLE_SHOW_FEATURES` | TREBLE-show-features |
| `AD_COUNTDOWN_TIMER` | ad-countdown-timer | | `AD_COUNTDOWN_TIMER` | ad-countdown-timer |
| `ADAPTIVE_BITRATE` | adaptive_bitrate | | `ADAPTIVE_BITRATE` | adaptive_bitrate |
| `ALBUM_TYPES` | album-types |
| `ALLOW_DVR` | allow_dvr |
| `AMAZON_LOOP_DEBUG` | amazon-loop-debug | | `AMAZON_LOOP_DEBUG` | amazon-loop-debug |
| `AVOD_AD_ANALYSIS` | avod-ad-analysis | | `AVOD_AD_ANALYSIS` | avod-ad-analysis |
| `AVOD_NEW_MEDIA` | avod-new-media | | `AVOD_NEW_MEDIA` | avod-new-media |
| `BLACKLIST_GET_SIGNIN` | blacklist_get_signin | | `BLACKLIST_GET_SIGNIN` | blacklist_get_signin |
| `BOOST_VOICES` | boost-voices |
| `CAMERA_UPLOAD` | camera_upload |
| `CLIENT_RADIO_STATIONS` | client-radio-stations | | `CLIENT_RADIO_STATIONS` | client-radio-stations |
| `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required | | `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required |
| `CLOUDSYNC` | cloudsync |
| `COLLECTIONS` | collections | | `COLLECTIONS` | collections |
| `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications | | `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications |
| `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv | | `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv |
| `COMPANIONS_SONOS` | companions_sonos | | `COMPANIONS_SONOS` | companions_sonos |
| `CONTENT_FILTER` | content_filter |
| `CUSTOM_HOME_REMOVAL` | custom-home-removal | | `CUSTOM_HOME_REMOVAL` | custom-home-removal |
| `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships | | `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships |
| `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships | | `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships |
| `DOWNLOADS_GATING` | downloads-gating |
| `DRM_SUPPORT` | drm_support | | `DRM_SUPPORT` | drm_support |
| `DVR` | dvr |
| `DVR_BLOCK_UNSUPPORTED_COUNTRIES` | dvr-block-unsupported-countries |
| `EPG_RECENT_CHANNELS` | epg-recent-channels |
| `EXCLUDE_RESTRICTIONS` | exclude restrictions | | `EXCLUDE_RESTRICTIONS` | exclude restrictions |
| `FEDERATED_AUTH` | federated-auth | | `FEDERATED_AUTH` | federated-auth |
| `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications | | `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications |
| `GRANDFATHER_SYNC` | grandfather-sync |
| `GUIDED_UPGRADE` | guided-upgrade | | `GUIDED_UPGRADE` | guided-upgrade |
| `HARDWARE_TRANSCODING` | hardware_transcoding |
| `HOME` | home | | `HOME` | home |
| `HWTRANSCODE` | hwtranscode |
| `IMAGGA_V2` | imagga-v2 |
| `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity | | `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity |
| `IOS14_PRIVACY_BANNER` | ios14-privacy-banner | | `IOS14_PRIVACY_BANNER` | ios14-privacy-banner |
| `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens | | `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens |
| `ITEM_CLUSTERS` | item_clusters |
| `KEEP_PAYMENT_METHOD` | keep-payment-method | | `KEEP_PAYMENT_METHOD` | keep-payment-method |
| `KEVIN_BACON` | kevin-bacon | | `KEVIN_BACON` | kevin-bacon |
| `KOREA_CONSENT` | korea-consent | | `KOREA_CONSENT` | korea-consent |
@@ -42,25 +57,46 @@
| `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot | | `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot |
| `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments | | `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments |
| `LIVETV` | livetv | | `LIVETV` | livetv |
| `LYRICS` | lyrics |
| `METADATA_SEARCH` | metadata_search | | `METADATA_SEARCH` | metadata_search |
| `MUSIC_ANALYSIS` | music-analysis |
| `MUSIC_VIDEOS` | music_videos |
| `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices | | `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices |
| `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal | | `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal |
| `NOMINATIM` | nominatim |
| `PASS` | pass |
| `PHOTOS_FAVORITES` | photos-favorites | | `PHOTOS_FAVORITES` | photos-favorites |
| `PHOTOS_METADATA_EDITION` | photos-metadata-edition | | `PHOTOS_METADATA_EDITION` | photos-metadata-edition |
| `PHOTOS_V6_EDIT` | photosV6-edit |
| `PHOTOS_V6_TV_ALBUMS` | photosV6-tv-albums |
| `PMS_HEALTH` | pms_health | | `PMS_HEALTH` | pms_health |
| `PREMIUM_DASHBOARD` | premium-dashboard |
| `PREMIUM_MUSIC_METADATA` | premium_music_metadata |
| `RADIO` | radio | | `RADIO` | radio |
| `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token | | `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token |
| `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv | | `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv |
| `SESSION_BANDWIDTH_RESTRICTIONS` | session_bandwidth_restrictions |
| `SESSION_KICK` | session_kick |
| `SHARED_SERVER_NOTIFICATION` | shared_server_notification | | `SHARED_SERVER_NOTIFICATION` | shared_server_notification |
| `SHARED_SOURCE_NOTIFICATION` | shared_source_notification | | `SHARED_SOURCE_NOTIFICATION` | shared_source_notification |
| `SIGNIN_NOTIFICATION` | signin_notification |
| `SIGNIN_WITH_APPLE` | signin_with_apple | | `SIGNIN_WITH_APPLE` | signin_with_apple |
| `SILENCE_REMOVAL` | silence-removal |
| `SLEEP_TIMER` | sleep-timer |
| `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider | | `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider |
| `SYNC` | sync |
| `SWEET_FADES` | sweet-fades |
| `TRANSCODER_CACHE` | transcoder_cache | | `TRANSCODER_CACHE` | transcoder_cache |
| `TRAILERS` | trailers |
| `TUNER_SHARING` | tuner-sharing | | `TUNER_SHARING` | tuner-sharing |
| `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication | | `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication |
| `UNSUPPORTEDTUNERS` | unsupportedtuners | | `UNSUPPORTEDTUNERS` | unsupportedtuners |
| `UPGRADE3DS2` | upgrade-3ds2 | | `UPGRADE3DS2` | upgrade-3ds2 |
| `VISUALIZERS` | visualizers |
| `VOD_SCHEMA` | vod-schema | | `VOD_SCHEMA` | vod-schema |
| `VOD_CLOUDFLARE` | vod_cloudflare | | `VOD_CLOUDFLARE` | vod_cloudflare |
| `VOLUME_LEVELING` | volume-leveling |
| `WATCH_TOGETHER_INVITE` | watch-together-invite | | `WATCH_TOGETHER_INVITE` | watch-together-invite |
| `WATCHLIST_RSS` | watchlist-rss |
| `WEB_SERVER_DASHBOARD` | web_server_dashboard | | `WEB_SERVER_DASHBOARD` | web_server_dashboard |
| `WEBHOOKS` | webhooks |

View File

@@ -12,28 +12,43 @@
| `TREBLE_SHOW_FEATURES` | TREBLE-show-features | | `TREBLE_SHOW_FEATURES` | TREBLE-show-features |
| `AD_COUNTDOWN_TIMER` | ad-countdown-timer | | `AD_COUNTDOWN_TIMER` | ad-countdown-timer |
| `ADAPTIVE_BITRATE` | adaptive_bitrate | | `ADAPTIVE_BITRATE` | adaptive_bitrate |
| `ALBUM_TYPES` | album-types |
| `ALLOW_DVR` | allow_dvr |
| `AMAZON_LOOP_DEBUG` | amazon-loop-debug | | `AMAZON_LOOP_DEBUG` | amazon-loop-debug |
| `AVOD_AD_ANALYSIS` | avod-ad-analysis | | `AVOD_AD_ANALYSIS` | avod-ad-analysis |
| `AVOD_NEW_MEDIA` | avod-new-media | | `AVOD_NEW_MEDIA` | avod-new-media |
| `BLACKLIST_GET_SIGNIN` | blacklist_get_signin | | `BLACKLIST_GET_SIGNIN` | blacklist_get_signin |
| `BOOST_VOICES` | boost-voices |
| `CAMERA_UPLOAD` | camera_upload |
| `CLIENT_RADIO_STATIONS` | client-radio-stations | | `CLIENT_RADIO_STATIONS` | client-radio-stations |
| `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required | | `CLOUDFLARE_TURNSTILE_REQUIRED` | cloudflare-turnstile-required |
| `CLOUDSYNC` | cloudsync |
| `COLLECTIONS` | collections | | `COLLECTIONS` | collections |
| `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications | | `COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS` | comments_and_replies_push_notifications |
| `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv | | `COMMUNITY_ACCESS_PLEX_TV` | community_access_plex_tv |
| `COMPANIONS_SONOS` | companions_sonos | | `COMPANIONS_SONOS` | companions_sonos |
| `CONTENT_FILTER` | content_filter |
| `CUSTOM_HOME_REMOVAL` | custom-home-removal | | `CUSTOM_HOME_REMOVAL` | custom-home-removal |
| `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships | | `DISABLE_HOME_USER_FRIENDSHIPS` | disable_home_user_friendships |
| `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships | | `DISABLE_SHARING_FRIENDSHIPS` | disable_sharing_friendships |
| `DOWNLOADS_GATING` | downloads-gating |
| `DRM_SUPPORT` | drm_support | | `DRM_SUPPORT` | drm_support |
| `DVR` | dvr |
| `DVR_BLOCK_UNSUPPORTED_COUNTRIES` | dvr-block-unsupported-countries |
| `EPG_RECENT_CHANNELS` | epg-recent-channels |
| `EXCLUDE_RESTRICTIONS` | exclude restrictions | | `EXCLUDE_RESTRICTIONS` | exclude restrictions |
| `FEDERATED_AUTH` | federated-auth | | `FEDERATED_AUTH` | federated-auth |
| `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications | | `FRIEND_REQUEST_PUSH_NOTIFICATIONS` | friend_request_push_notifications |
| `GRANDFATHER_SYNC` | grandfather-sync |
| `GUIDED_UPGRADE` | guided-upgrade | | `GUIDED_UPGRADE` | guided-upgrade |
| `HARDWARE_TRANSCODING` | hardware_transcoding |
| `HOME` | home | | `HOME` | home |
| `HWTRANSCODE` | hwtranscode |
| `IMAGGA_V2` | imagga-v2 |
| `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity | | `INCREASE_PASSWORD_COMPLEXITY` | increase-password-complexity |
| `IOS14_PRIVACY_BANNER` | ios14-privacy-banner | | `IOS14_PRIVACY_BANNER` | ios14-privacy-banner |
| `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens | | `ITERABLE_NOTIFICATION_TOKENS` | iterable-notification-tokens |
| `ITEM_CLUSTERS` | item_clusters |
| `KEEP_PAYMENT_METHOD` | keep-payment-method | | `KEEP_PAYMENT_METHOD` | keep-payment-method |
| `KEVIN_BACON` | kevin-bacon | | `KEVIN_BACON` | kevin-bacon |
| `KOREA_CONSENT` | korea-consent | | `KOREA_CONSENT` | korea-consent |
@@ -42,25 +57,46 @@
| `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot | | `LIGHTNING_DVR_PIVOT` | lightning-dvr-pivot |
| `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments | | `LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS` | live-tv-support-incomplete-segments |
| `LIVETV` | livetv | | `LIVETV` | livetv |
| `LYRICS` | lyrics |
| `METADATA_SEARCH` | metadata_search | | `METADATA_SEARCH` | metadata_search |
| `MUSIC_ANALYSIS` | music-analysis |
| `MUSIC_VIDEOS` | music_videos |
| `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices | | `NEW_PLEX_PASS_PRICES` | new_plex_pass_prices |
| `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal | | `NEWS_PROVIDER_SUNSET_MODAL` | news-provider-sunset-modal |
| `NOMINATIM` | nominatim |
| `PASS` | pass |
| `PHOTOS_FAVORITES` | photos-favorites | | `PHOTOS_FAVORITES` | photos-favorites |
| `PHOTOS_METADATA_EDITION` | photos-metadata-edition | | `PHOTOS_METADATA_EDITION` | photos-metadata-edition |
| `PHOTOS_V6_EDIT` | photosV6-edit |
| `PHOTOS_V6_TV_ALBUMS` | photosV6-tv-albums |
| `PMS_HEALTH` | pms_health | | `PMS_HEALTH` | pms_health |
| `PREMIUM_DASHBOARD` | premium-dashboard |
| `PREMIUM_MUSIC_METADATA` | premium_music_metadata |
| `RADIO` | radio | | `RADIO` | radio |
| `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token | | `RATE_LIMIT_CLIENT_TOKEN` | rate-limit-client-token |
| `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv | | `SCROBBLING_SERVICE_PLEX_TV` | scrobbling-service-plex-tv |
| `SESSION_BANDWIDTH_RESTRICTIONS` | session_bandwidth_restrictions |
| `SESSION_KICK` | session_kick |
| `SHARED_SERVER_NOTIFICATION` | shared_server_notification | | `SHARED_SERVER_NOTIFICATION` | shared_server_notification |
| `SHARED_SOURCE_NOTIFICATION` | shared_source_notification | | `SHARED_SOURCE_NOTIFICATION` | shared_source_notification |
| `SIGNIN_NOTIFICATION` | signin_notification |
| `SIGNIN_WITH_APPLE` | signin_with_apple | | `SIGNIN_WITH_APPLE` | signin_with_apple |
| `SILENCE_REMOVAL` | silence-removal |
| `SLEEP_TIMER` | sleep-timer |
| `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider | | `SPRING_SERVE_AD_PROVIDER` | spring_serve_ad_provider |
| `SYNC` | sync |
| `SWEET_FADES` | sweet-fades |
| `TRANSCODER_CACHE` | transcoder_cache | | `TRANSCODER_CACHE` | transcoder_cache |
| `TRAILERS` | trailers |
| `TUNER_SHARING` | tuner-sharing | | `TUNER_SHARING` | tuner-sharing |
| `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication | | `TWO_FACTOR_AUTHENTICATION` | two-factor-authentication |
| `UNSUPPORTEDTUNERS` | unsupportedtuners | | `UNSUPPORTEDTUNERS` | unsupportedtuners |
| `UPGRADE3DS2` | upgrade-3ds2 | | `UPGRADE3DS2` | upgrade-3ds2 |
| `VISUALIZERS` | visualizers |
| `VOD_SCHEMA` | vod-schema | | `VOD_SCHEMA` | vod-schema |
| `VOD_CLOUDFLARE` | vod_cloudflare | | `VOD_CLOUDFLARE` | vod_cloudflare |
| `VOLUME_LEVELING` | volume-leveling |
| `WATCH_TOGETHER_INVITE` | watch-together-invite | | `WATCH_TOGETHER_INVITE` | watch-together-invite |
| `WATCHLIST_RSS` | watchlist-rss |
| `WEB_SERVER_DASHBOARD` | web_server_dashboard | | `WEB_SERVER_DASHBOARD` | web_server_dashboard |
| `WEBHOOKS` | webhooks |

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

@@ -3,11 +3,11 @@
## Fields ## Fields
| Field | Type | Required | Description | Example | | Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `clientID` | *Optional<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 | | `clientID` | *Optional<String>* | :heavy_minus_sign: | 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) | gcgzw5rz2xovp84b4vha3a40 |
| `clientName` | *Optional<String>* | :heavy_minus_sign: | N/A | Plex Web | | `clientName` | *Optional<String>* | :heavy_minus_sign: | N/A | Plex Web |
| `deviceName` | *Optional<String>* | :heavy_minus_sign: | N/A | Linux | | `deviceName` | *Optional<String>* | :heavy_minus_sign: | N/A | Linux |
| `clientVersion` | *Optional<String>* | :heavy_minus_sign: | N/A | 4.133.0 | | `clientVersion` | *Optional<String>* | :heavy_minus_sign: | N/A | 4.133.0 |
| `clientPlatform` | *Optional<String>* | :heavy_minus_sign: | N/A | Chrome | | `clientPlatform` | *Optional<String>* | :heavy_minus_sign: | N/A | Chrome |
| `requestBody` | [Optional<PostUsersSignInDataRequestBody>](../../models/operations/PostUsersSignInDataRequestBody.md) | :heavy_minus_sign: | Login credentials | | | `requestBody` | [Optional<PostUsersSignInDataRequestBody>](../../models/operations/PostUsersSignInDataRequestBody.md) | :heavy_minus_sign: | Login credentials | |

View File

@@ -29,7 +29,7 @@ Returns the user account data with a valid auth token
| `joinedAt` | *long* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | | `joinedAt` | *long* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
| `locale` | *Optional<String>* | :heavy_check_mark: | The account locale | | | `locale` | *Optional<String>* | :heavy_check_mark: | The account locale | |
| `mailingListActive` | *Optional<Boolean>* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | | | `mailingListActive` | *Optional<Boolean>* | :heavy_minus_sign: | If you are subscribed to the Plex newsletter | |
| `mailingListStatus` | [PostUsersSignInDataMailingListStatus](../../models/operations/PostUsersSignInDataMailingListStatus.md) | :heavy_check_mark: | Your current mailing list status | | | `mailingListStatus` | [PostUsersSignInDataMailingListStatus](../../models/operations/PostUsersSignInDataMailingListStatus.md) | :heavy_check_mark: | Your current mailing list status (active or unsubscribed) | active |
| `maxHomeSize` | *int* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 | | `maxHomeSize` | *int* | :heavy_check_mark: | The maximum number of accounts allowed in the Plex Home | 15 |
| ~~`pin`~~ | *Optional<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`~~ | *Optional<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` | [PostUsersSignInDataUserProfile](../../models/operations/PostUsersSignInDataUserProfile.md) | :heavy_check_mark: | N/A | | | `profile` | [PostUsersSignInDataUserProfile](../../models/operations/PostUsersSignInDataUserProfile.md) | :heavy_check_mark: | N/A | |

View File

@@ -61,12 +61,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- |
| models/errors/GetServerActivitiesBadRequest | 400 | application/json | | models/errors/GetServerActivitiesBadRequest | 400 | application/json |
| models/errors/GetServerActivitiesUnauthorized | 401 | application/json | | models/errors/GetServerActivitiesUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## cancelServerActivities ## cancelServerActivities
@@ -117,8 +116,8 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ |
| models/errors/CancelServerActivitiesBadRequest | 400 | application/json | | models/errors/CancelServerActivitiesBadRequest | 400 | application/json |
| models/errors/CancelServerActivitiesUnauthorized | 401 | application/json | | models/errors/CancelServerActivitiesUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |

View File

@@ -67,12 +67,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- |
| models/errors/GetTransientTokenBadRequest | 400 | application/json | | models/errors/GetTransientTokenBadRequest | 400 | application/json |
| models/errors/GetTransientTokenUnauthorized | 401 | application/json | | models/errors/GetTransientTokenUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getSourceConnectionInformation ## getSourceConnectionInformation
@@ -125,12 +124,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- |
| models/errors/GetSourceConnectionInformationBadRequest | 400 | application/json | | models/errors/GetSourceConnectionInformationBadRequest | 400 | application/json |
| models/errors/GetSourceConnectionInformationUnauthorized | 401 | application/json | | models/errors/GetSourceConnectionInformationUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getTokenDetails ## getTokenDetails
@@ -182,12 +180,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
| models/errors/GetTokenDetailsBadRequest | 400 | application/json | | models/errors/GetTokenDetailsBadRequest | 400 | application/json |
| models/errors/GetTokenDetailsUnauthorized | 401 | application/json | | models/errors/GetTokenDetailsUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## postUsersSignInData ## postUsersSignInData
@@ -250,8 +247,8 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- |
| models/errors/PostUsersSignInDataBadRequest | 400 | application/json | | models/errors/PostUsersSignInDataBadRequest | 400 | application/json |
| models/errors/PostUsersSignInDataUnauthorized | 401 | application/json | | models/errors/PostUsersSignInDataUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |

View File

@@ -58,12 +58,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| models/errors/GetButlerTasksBadRequest | 400 | application/json | | models/errors/GetButlerTasksBadRequest | 400 | application/json |
| models/errors/GetButlerTasksUnauthorized | 401 | application/json | | models/errors/GetButlerTasksUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## startAllTasks ## startAllTasks
@@ -112,12 +111,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------- | --------------------------------------- | --------------------------------------- | | --------------------------------------- | --------------------------------------- | --------------------------------------- |
| models/errors/StartAllTasksBadRequest | 400 | application/json | | models/errors/StartAllTasksBadRequest | 400 | application/json |
| models/errors/StartAllTasksUnauthorized | 401 | application/json | | models/errors/StartAllTasksUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## stopAllTasks ## stopAllTasks
@@ -162,12 +160,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------------- | -------------------------------------- | -------------------------------------- | | -------------------------------------- | -------------------------------------- | -------------------------------------- |
| models/errors/StopAllTasksBadRequest | 400 | application/json | | models/errors/StopAllTasksBadRequest | 400 | application/json |
| models/errors/StopAllTasksUnauthorized | 401 | application/json | | models/errors/StopAllTasksUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## startTask ## startTask
@@ -224,12 +221,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------- | ----------------------------------- | ----------------------------------- | | ----------------------------------- | ----------------------------------- | ----------------------------------- |
| models/errors/StartTaskBadRequest | 400 | application/json | | models/errors/StartTaskBadRequest | 400 | application/json |
| models/errors/StartTaskUnauthorized | 401 | application/json | | models/errors/StartTaskUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## stopTask ## stopTask
@@ -282,8 +278,8 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------- | ---------------------------------- | ---------------------------------- | | ---------------------------------- | ---------------------------------- | ---------------------------------- |
| models/errors/StopTaskBadRequest | 400 | application/json | | models/errors/StopTaskBadRequest | 400 | application/json |
| models/errors/StopTaskUnauthorized | 401 | application/json | | models/errors/StopTaskUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |

View File

@@ -66,12 +66,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------- | --------------------------------------- | --------------------------------------- | | --------------------------------------- | --------------------------------------- | --------------------------------------- |
| models/errors/GetGlobalHubsBadRequest | 400 | application/json | | models/errors/GetGlobalHubsBadRequest | 400 | application/json |
| models/errors/GetGlobalHubsUnauthorized | 401 | application/json | | models/errors/GetGlobalHubsUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getRecentlyAdded ## getRecentlyAdded
@@ -135,10 +134,9 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------- | ---------------------- | ---------------------- | | ---------------------- | ---------------------- | ---------------------- |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getLibraryHubs ## getLibraryHubs
@@ -197,8 +195,8 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| models/errors/GetLibraryHubsBadRequest | 400 | application/json | | models/errors/GetLibraryHubsBadRequest | 400 | application/json |
| models/errors/GetLibraryHubsUnauthorized | 401 | application/json | | models/errors/GetLibraryHubsUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |

View File

@@ -72,12 +72,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------- | ------------------------------------- | ------------------------------------- | | ------------------------------------- | ------------------------------------- | ------------------------------------- |
| models/errors/GetFileHashBadRequest | 400 | application/json | | models/errors/GetFileHashBadRequest | 400 | application/json |
| models/errors/GetFileHashUnauthorized | 401 | application/json | | models/errors/GetFileHashUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getRecentlyAddedLibrary ## getRecentlyAddedLibrary
@@ -157,12 +156,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- |
| models/errors/GetRecentlyAddedLibraryBadRequest | 400 | application/json | | models/errors/GetRecentlyAddedLibraryBadRequest | 400 | application/json |
| models/errors/GetRecentlyAddedLibraryUnauthorized | 401 | application/json | | models/errors/GetRecentlyAddedLibraryUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getAllLibraries ## getAllLibraries
@@ -214,12 +212,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
| models/errors/GetAllLibrariesBadRequest | 400 | application/json | | models/errors/GetAllLibrariesBadRequest | 400 | application/json |
| models/errors/GetAllLibrariesUnauthorized | 401 | application/json | | models/errors/GetAllLibrariesUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getLibraryDetails ## getLibraryDetails
@@ -314,12 +311,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- |
| models/errors/GetLibraryDetailsBadRequest | 400 | application/json | | models/errors/GetLibraryDetailsBadRequest | 400 | application/json |
| models/errors/GetLibraryDetailsUnauthorized | 401 | application/json | | models/errors/GetLibraryDetailsUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## deleteLibrary ## deleteLibrary
@@ -370,12 +366,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------- | --------------------------------------- | --------------------------------------- | | --------------------------------------- | --------------------------------------- | --------------------------------------- |
| models/errors/DeleteLibraryBadRequest | 400 | application/json | | models/errors/DeleteLibraryBadRequest | 400 | application/json |
| models/errors/DeleteLibraryUnauthorized | 401 | application/json | | models/errors/DeleteLibraryUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getLibraryItems ## getLibraryItems
@@ -463,12 +458,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
| models/errors/GetLibraryItemsBadRequest | 400 | application/json | | models/errors/GetLibraryItemsBadRequest | 400 | application/json |
| models/errors/GetLibraryItemsUnauthorized | 401 | application/json | | models/errors/GetLibraryItemsUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getRefreshLibraryMetadata ## getRefreshLibraryMetadata
@@ -523,12 +517,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- |
| models/errors/GetRefreshLibraryMetadataBadRequest | 400 | application/json | | models/errors/GetRefreshLibraryMetadataBadRequest | 400 | application/json |
| models/errors/GetRefreshLibraryMetadataUnauthorized | 401 | application/json | | models/errors/GetRefreshLibraryMetadataUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getSearchLibrary ## getSearchLibrary
@@ -602,12 +595,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
| models/errors/GetSearchLibraryBadRequest | 400 | application/json | | models/errors/GetSearchLibraryBadRequest | 400 | application/json |
| models/errors/GetSearchLibraryUnauthorized | 401 | application/json | | models/errors/GetSearchLibraryUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getMetaDataByRatingKey ## getMetaDataByRatingKey
@@ -661,12 +653,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ |
| models/errors/GetMetaDataByRatingKeyBadRequest | 400 | application/json | | models/errors/GetMetaDataByRatingKeyBadRequest | 400 | application/json |
| models/errors/GetMetaDataByRatingKeyUnauthorized | 401 | application/json | | models/errors/GetMetaDataByRatingKeyUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getMetadataChildren ## getMetadataChildren
@@ -722,12 +713,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- |
| models/errors/GetMetadataChildrenBadRequest | 400 | application/json | | models/errors/GetMetadataChildrenBadRequest | 400 | application/json |
| models/errors/GetMetadataChildrenUnauthorized | 401 | application/json | | models/errors/GetMetadataChildrenUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getTopWatchedContent ## getTopWatchedContent
@@ -784,12 +774,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- |
| models/errors/GetTopWatchedContentBadRequest | 400 | application/json | | models/errors/GetTopWatchedContentBadRequest | 400 | application/json |
| models/errors/GetTopWatchedContentUnauthorized | 401 | application/json | | models/errors/GetTopWatchedContentUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getOnDeck ## getOnDeck
@@ -836,8 +825,8 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------- | ----------------------------------- | ----------------------------------- | | ----------------------------------- | ----------------------------------- | ----------------------------------- |
| models/errors/GetOnDeckBadRequest | 400 | application/json | | models/errors/GetOnDeckBadRequest | 400 | application/json |
| models/errors/GetOnDeckUnauthorized | 401 | application/json | | models/errors/GetOnDeckUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |

View File

@@ -67,12 +67,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------- | --------------------------------- | --------------------------------- | | --------------------------------- | --------------------------------- | --------------------------------- |
| models/errors/LogLineBadRequest | 400 | application/json | | models/errors/LogLineBadRequest | 400 | application/json |
| models/errors/LogLineUnauthorized | 401 | application/json | | models/errors/LogLineUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## logMultiLine ## logMultiLine
@@ -148,12 +147,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------------- | -------------------------------------- | -------------------------------------- | | -------------------------------------- | -------------------------------------- | -------------------------------------- |
| models/errors/LogMultiLineBadRequest | 400 | application/json | | models/errors/LogMultiLineBadRequest | 400 | application/json |
| models/errors/LogMultiLineUnauthorized | 401 | application/json | | models/errors/LogMultiLineUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## enablePaperTrail ## enablePaperTrail
@@ -198,8 +196,8 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
| models/errors/EnablePaperTrailBadRequest | 400 | application/json | | models/errors/EnablePaperTrailBadRequest | 400 | application/json |
| models/errors/EnablePaperTrailUnauthorized | 401 | application/json | | models/errors/EnablePaperTrailUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |

View File

@@ -63,12 +63,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------ | ------------------------------------ | ------------------------------------ | | ------------------------------------ | ------------------------------------ | ------------------------------------ |
| models/errors/MarkPlayedBadRequest | 400 | application/json | | models/errors/MarkPlayedBadRequest | 400 | application/json |
| models/errors/MarkPlayedUnauthorized | 401 | application/json | | models/errors/MarkPlayedUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## markUnplayed ## markUnplayed
@@ -119,12 +118,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------------- | -------------------------------------- | -------------------------------------- | | -------------------------------------- | -------------------------------------- | -------------------------------------- |
| models/errors/MarkUnplayedBadRequest | 400 | application/json | | models/errors/MarkUnplayedBadRequest | 400 | application/json |
| models/errors/MarkUnplayedUnauthorized | 401 | application/json | | models/errors/MarkUnplayedUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## updatePlayProgress ## updatePlayProgress
@@ -180,12 +178,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
| models/errors/UpdatePlayProgressBadRequest | 400 | application/json | | models/errors/UpdatePlayProgressBadRequest | 400 | application/json |
| models/errors/UpdatePlayProgressUnauthorized | 401 | application/json | | models/errors/UpdatePlayProgressUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getBannerImage ## getBannerImage
@@ -248,12 +245,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| models/errors/GetBannerImageBadRequest | 400 | application/json | | models/errors/GetBannerImageBadRequest | 400 | application/json |
| models/errors/GetBannerImageUnauthorized | 401 | application/json | | models/errors/GetBannerImageUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getThumbImage ## getThumbImage
@@ -316,8 +312,8 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------- | --------------------------------------- | --------------------------------------- | | --------------------------------------- | --------------------------------------- | --------------------------------------- |
| models/errors/GetThumbImageBadRequest | 400 | application/json | | models/errors/GetThumbImageBadRequest | 400 | application/json |
| models/errors/GetThumbImageUnauthorized | 401 | application/json | | models/errors/GetThumbImageUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |

View File

@@ -85,12 +85,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| models/errors/CreatePlaylistBadRequest | 400 | application/json | | models/errors/CreatePlaylistBadRequest | 400 | application/json |
| models/errors/CreatePlaylistUnauthorized | 401 | application/json | | models/errors/CreatePlaylistUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getPlaylists ## getPlaylists
@@ -147,12 +146,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------------- | -------------------------------------- | -------------------------------------- | | -------------------------------------- | -------------------------------------- | -------------------------------------- |
| models/errors/GetPlaylistsBadRequest | 400 | application/json | | models/errors/GetPlaylistsBadRequest | 400 | application/json |
| models/errors/GetPlaylistsUnauthorized | 401 | application/json | | models/errors/GetPlaylistsUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getPlaylist ## getPlaylist
@@ -207,12 +205,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------- | ------------------------------------- | ------------------------------------- | | ------------------------------------- | ------------------------------------- | ------------------------------------- |
| models/errors/GetPlaylistBadRequest | 400 | application/json | | models/errors/GetPlaylistBadRequest | 400 | application/json |
| models/errors/GetPlaylistUnauthorized | 401 | application/json | | models/errors/GetPlaylistUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## deletePlaylist ## deletePlaylist
@@ -264,12 +261,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| models/errors/DeletePlaylistBadRequest | 400 | application/json | | models/errors/DeletePlaylistBadRequest | 400 | application/json |
| models/errors/DeletePlaylistUnauthorized | 401 | application/json | | models/errors/DeletePlaylistUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## updatePlaylist ## updatePlaylist
@@ -325,12 +321,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| models/errors/UpdatePlaylistBadRequest | 400 | application/json | | models/errors/UpdatePlaylistBadRequest | 400 | application/json |
| models/errors/UpdatePlaylistUnauthorized | 401 | application/json | | models/errors/UpdatePlaylistUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getPlaylistContents ## getPlaylistContents
@@ -390,12 +385,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- |
| models/errors/GetPlaylistContentsBadRequest | 400 | application/json | | models/errors/GetPlaylistContentsBadRequest | 400 | application/json |
| models/errors/GetPlaylistContentsUnauthorized | 401 | application/json | | models/errors/GetPlaylistContentsUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## clearPlaylistContents ## clearPlaylistContents
@@ -447,12 +441,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- |
| models/errors/ClearPlaylistContentsBadRequest | 400 | application/json | | models/errors/ClearPlaylistContentsBadRequest | 400 | application/json |
| models/errors/ClearPlaylistContentsUnauthorized | 401 | application/json | | models/errors/ClearPlaylistContentsUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## addPlaylistContents ## addPlaylistContents
@@ -511,12 +504,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- |
| models/errors/AddPlaylistContentsBadRequest | 400 | application/json | | models/errors/AddPlaylistContentsBadRequest | 400 | application/json |
| models/errors/AddPlaylistContentsUnauthorized | 401 | application/json | | models/errors/AddPlaylistContentsUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## uploadPlaylist ## uploadPlaylist
@@ -573,8 +565,8 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| models/errors/UploadPlaylistBadRequest | 400 | application/json | | models/errors/UploadPlaylistBadRequest | 400 | application/json |
| models/errors/UploadPlaylistUnauthorized | 401 | application/json | | models/errors/UploadPlaylistUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |

View File

@@ -66,12 +66,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- |
| models/errors/GetCompanionsDataBadRequest | 400 | application/json | | models/errors/GetCompanionsDataBadRequest | 400 | application/json |
| models/errors/GetCompanionsDataUnauthorized | 401 | application/json | | models/errors/GetCompanionsDataUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getUserFriends ## getUserFriends
@@ -123,12 +122,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
| models/errors/GetUserFriendsBadRequest | 400 | application/json | | models/errors/GetUserFriendsBadRequest | 400 | application/json |
| models/errors/GetUserFriendsUnauthorized | 401 | application/json | | models/errors/GetUserFriendsUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getGeoData ## getGeoData
@@ -179,12 +177,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------ | ------------------------------------ | ------------------------------------ | | ------------------------------------ | ------------------------------------ | ------------------------------------ |
| models/errors/GetGeoDataBadRequest | 400 | application/json | | models/errors/GetGeoDataBadRequest | 400 | application/json |
| models/errors/GetGeoDataUnauthorized | 401 | application/json | | models/errors/GetGeoDataUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getHomeData ## getHomeData
@@ -230,12 +227,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------- | ------------------------------------- | ------------------------------------- | | ------------------------------------- | ------------------------------------- | ------------------------------------- |
| models/errors/GetHomeDataBadRequest | 400 | application/json | | models/errors/GetHomeDataBadRequest | 400 | application/json |
| models/errors/GetHomeDataUnauthorized | 401 | application/json | | models/errors/GetHomeDataUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getServerResources ## getServerResources
@@ -272,6 +268,7 @@ public class Application {
.includeHttps(IncludeHttps.Enable) .includeHttps(IncludeHttps.Enable)
.includeRelay(IncludeRelay.Enable) .includeRelay(IncludeRelay.Enable)
.includeIPv6(IncludeIPv6.Enable) .includeIPv6(IncludeIPv6.Enable)
.clientID("gcgzw5rz2xovp84b4vha3a40")
.call(); .call();
if (res.plexDevices().isPresent()) { if (res.plexDevices().isPresent()) {
@@ -283,12 +280,13 @@ public class Application {
### Parameters ### Parameters
| Parameter | Type | Required | Description | Example | | Parameter | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `includeHttps` | [Optional<IncludeHttps>](../../models/operations/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 | | `includeHttps` | [Optional<IncludeHttps>](../../models/operations/IncludeHttps.md) | :heavy_minus_sign: | Include Https entries in the results | 1 |
| `includeRelay` | [Optional<IncludeRelay>](../../models/operations/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 | | `includeRelay` | [Optional<IncludeRelay>](../../models/operations/IncludeRelay.md) | :heavy_minus_sign: | Include Relay addresses in the results <br/>E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400<br/> | 1 |
| `includeIPv6` | [Optional<IncludeIPv6>](../../models/operations/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 | | `includeIPv6` | [Optional<IncludeIPv6>](../../models/operations/IncludeIPv6.md) | :heavy_minus_sign: | Include IPv6 entries in the results | 1 |
| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 | | `clientID` | *Optional<String>* | :heavy_minus_sign: | 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) | gcgzw5rz2xovp84b4vha3a40 |
| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | http://localhost:8080 |
### Response ### Response
@@ -296,12 +294,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
| models/errors/GetServerResourcesBadRequest | 400 | application/json | | models/errors/GetServerResourcesBadRequest | 400 | application/json |
| models/errors/GetServerResourcesUnauthorized | 401 | application/json | | models/errors/GetServerResourcesUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getPin ## getPin
@@ -357,11 +354,10 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------ | ------------------------------ | ------------------------------ | | ------------------------------ | ------------------------------ | ------------------------------ |
| models/errors/GetPinBadRequest | 400 | application/json | | models/errors/GetPinBadRequest | 400 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getTokenByPinId ## getTokenByPinId
@@ -375,6 +371,7 @@ package hello.world;
import dev.plexapi.sdk.PlexAPI; import dev.plexapi.sdk.PlexAPI;
import dev.plexapi.sdk.models.errors.GetTokenByPinIdBadRequest; import dev.plexapi.sdk.models.errors.GetTokenByPinIdBadRequest;
import dev.plexapi.sdk.models.errors.GetTokenByPinIdResponseBody; import dev.plexapi.sdk.models.errors.GetTokenByPinIdResponseBody;
import dev.plexapi.sdk.models.operations.GetTokenByPinIdRequest;
import dev.plexapi.sdk.models.operations.GetTokenByPinIdResponse; import dev.plexapi.sdk.models.operations.GetTokenByPinIdResponse;
import java.lang.Exception; import java.lang.Exception;
@@ -390,8 +387,12 @@ public class Application {
.deviceName("Linux") .deviceName("Linux")
.build(); .build();
GetTokenByPinIdResponse res = sdk.plex().getTokenByPinId() GetTokenByPinIdRequest req = GetTokenByPinIdRequest.builder()
.pinID(408895L) .pinID(408895L)
.build();
GetTokenByPinIdResponse res = sdk.plex().getTokenByPinId()
.request(req)
.call(); .call();
if (res.authPinContainer().isPresent()) { if (res.authPinContainer().isPresent()) {
@@ -403,10 +404,10 @@ public class Application {
### Parameters ### Parameters
| Parameter | Type | Required | Description | | Parameter | Type | Required | Description |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| `pinID` | *long* | :heavy_check_mark: | The PinID to retrieve an access token for | | `request` | [GetTokenByPinIdRequest](../../models/operations/GetTokenByPinIdRequest.md) | :heavy_check_mark: | The request object to use for the request. |
| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | | `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. |
### Response ### Response
@@ -414,8 +415,8 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
| models/errors/GetTokenByPinIdBadRequest | 400 | application/json | | models/errors/GetTokenByPinIdBadRequest | 400 | application/json |
| models/errors/GetTokenByPinIdResponseBody | 404 | application/json | | models/errors/GetTokenByPinIdResponseBody | 404 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |

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 [main specification Repository](https://github.com/LukeHagar/plex-api-spec).
| 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

@@ -77,12 +77,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------- | --------------------------------------- | --------------------------------------- | | --------------------------------------- | --------------------------------------- | --------------------------------------- |
| models/errors/PerformSearchBadRequest | 400 | application/json | | models/errors/PerformSearchBadRequest | 400 | application/json |
| models/errors/PerformSearchUnauthorized | 401 | application/json | | models/errors/PerformSearchUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## performVoiceSearch ## performVoiceSearch
@@ -141,12 +140,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
| models/errors/PerformVoiceSearchBadRequest | 400 | application/json | | models/errors/PerformVoiceSearchBadRequest | 400 | application/json |
| models/errors/PerformVoiceSearchUnauthorized | 401 | application/json | | models/errors/PerformVoiceSearchUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getSearchResults ## getSearchResults
@@ -199,8 +197,8 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
| models/errors/GetSearchResultsBadRequest | 400 | application/json | | models/errors/GetSearchResultsBadRequest | 400 | application/json |
| models/errors/GetSearchResultsUnauthorized | 401 | application/json | | models/errors/GetSearchResultsUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |

View File

@@ -62,12 +62,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- |
| models/errors/GetServerCapabilitiesBadRequest | 400 | application/json | | models/errors/GetServerCapabilitiesBadRequest | 400 | application/json |
| models/errors/GetServerCapabilitiesUnauthorized | 401 | application/json | | models/errors/GetServerCapabilitiesUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getServerPreferences ## getServerPreferences
@@ -113,12 +112,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- |
| models/errors/GetServerPreferencesBadRequest | 400 | application/json | | models/errors/GetServerPreferencesBadRequest | 400 | application/json |
| models/errors/GetServerPreferencesUnauthorized | 401 | application/json | | models/errors/GetServerPreferencesUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getAvailableClients ## getAvailableClients
@@ -164,12 +162,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- |
| models/errors/GetAvailableClientsBadRequest | 400 | application/json | | models/errors/GetAvailableClientsBadRequest | 400 | application/json |
| models/errors/GetAvailableClientsUnauthorized | 401 | application/json | | models/errors/GetAvailableClientsUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getDevices ## getDevices
@@ -215,12 +212,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------ | ------------------------------------ | ------------------------------------ | | ------------------------------------ | ------------------------------------ | ------------------------------------ |
| models/errors/GetDevicesBadRequest | 400 | application/json | | models/errors/GetDevicesBadRequest | 400 | application/json |
| models/errors/GetDevicesUnauthorized | 401 | application/json | | models/errors/GetDevicesUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getServerIdentity ## getServerIdentity
@@ -264,11 +260,10 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- |
| models/errors/GetServerIdentityRequestTimeout | 408 | application/json | | models/errors/GetServerIdentityRequestTimeout | 408 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getMyPlexAccount ## getMyPlexAccount
@@ -314,12 +309,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ |
| models/errors/GetMyPlexAccountBadRequest | 400 | application/json | | models/errors/GetMyPlexAccountBadRequest | 400 | application/json |
| models/errors/GetMyPlexAccountUnauthorized | 401 | application/json | | models/errors/GetMyPlexAccountUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getResizedPhoto ## getResizedPhoto
@@ -384,12 +378,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
| models/errors/GetResizedPhotoBadRequest | 400 | application/json | | models/errors/GetResizedPhotoBadRequest | 400 | application/json |
| models/errors/GetResizedPhotoUnauthorized | 401 | application/json | | models/errors/GetResizedPhotoUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getMediaProviders ## getMediaProviders
@@ -442,12 +435,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- |
| models/errors/GetMediaProvidersBadRequest | 400 | application/json | | models/errors/GetMediaProvidersBadRequest | 400 | application/json |
| models/errors/GetMediaProvidersUnauthorized | 401 | application/json | | models/errors/GetMediaProvidersUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getServerList ## getServerList
@@ -493,8 +485,8 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------- | --------------------------------------- | --------------------------------------- | | --------------------------------------- | --------------------------------------- | --------------------------------------- |
| models/errors/GetServerListBadRequest | 400 | application/json | | models/errors/GetServerListBadRequest | 400 | application/json |
| models/errors/GetServerListUnauthorized | 401 | application/json | | models/errors/GetServerListUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |

View File

@@ -57,12 +57,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------- | ------------------------------------- | ------------------------------------- | | ------------------------------------- | ------------------------------------- | ------------------------------------- |
| models/errors/GetSessionsBadRequest | 400 | application/json | | models/errors/GetSessionsBadRequest | 400 | application/json |
| models/errors/GetSessionsUnauthorized | 401 | application/json | | models/errors/GetSessionsUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getSessionHistory ## getSessionHistory
@@ -123,12 +122,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- |
| models/errors/GetSessionHistoryBadRequest | 400 | application/json | | models/errors/GetSessionHistoryBadRequest | 400 | application/json |
| models/errors/GetSessionHistoryUnauthorized | 401 | application/json | | models/errors/GetSessionHistoryUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getTranscodeSessions ## getTranscodeSessions
@@ -174,12 +172,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- |
| models/errors/GetTranscodeSessionsBadRequest | 400 | application/json | | models/errors/GetTranscodeSessionsBadRequest | 400 | application/json |
| models/errors/GetTranscodeSessionsUnauthorized | 401 | application/json | | models/errors/GetTranscodeSessionsUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## stopTranscodeSession ## stopTranscodeSession
@@ -230,8 +227,8 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- |
| models/errors/StopTranscodeSessionBadRequest | 400 | application/json | | models/errors/StopTranscodeSessionBadRequest | 400 | application/json |
| models/errors/StopTranscodeSessionUnauthorized | 401 | application/json | | models/errors/StopTranscodeSessionUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |

View File

@@ -63,12 +63,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| --------------------------------------- | --------------------------------------- | --------------------------------------- | | --------------------------------------- | --------------------------------------- | --------------------------------------- |
| models/errors/GetStatisticsBadRequest | 400 | application/json | | models/errors/GetStatisticsBadRequest | 400 | application/json |
| models/errors/GetStatisticsUnauthorized | 401 | application/json | | models/errors/GetStatisticsUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getResourcesStatistics ## getResourcesStatistics
@@ -121,12 +120,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ |
| models/errors/GetResourcesStatisticsBadRequest | 400 | application/json | | models/errors/GetResourcesStatisticsBadRequest | 400 | application/json |
| models/errors/GetResourcesStatisticsUnauthorized | 401 | application/json | | models/errors/GetResourcesStatisticsUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## getBandwidthStatistics ## getBandwidthStatistics
@@ -179,8 +177,8 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ |
| models/errors/GetBandwidthStatisticsBadRequest | 400 | application/json | | models/errors/GetBandwidthStatisticsBadRequest | 400 | application/json |
| models/errors/GetBandwidthStatisticsUnauthorized | 401 | application/json | | models/errors/GetBandwidthStatisticsUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |

View File

@@ -57,12 +57,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
| models/errors/GetUpdateStatusBadRequest | 400 | application/json | | models/errors/GetUpdateStatusBadRequest | 400 | application/json |
| models/errors/GetUpdateStatusUnauthorized | 401 | application/json | | models/errors/GetUpdateStatusUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## checkForUpdates ## checkForUpdates
@@ -114,12 +113,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
| models/errors/CheckForUpdatesBadRequest | 400 | application/json | | models/errors/CheckForUpdatesBadRequest | 400 | application/json |
| models/errors/CheckForUpdatesUnauthorized | 401 | application/json | | models/errors/CheckForUpdatesUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## applyUpdates ## applyUpdates
@@ -175,8 +173,8 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------------- | -------------------------------------- | -------------------------------------- | | -------------------------------------- | -------------------------------------- | -------------------------------------- |
| models/errors/ApplyUpdatesBadRequest | 400 | application/json | | models/errors/ApplyUpdatesBadRequest | 400 | application/json |
| models/errors/ApplyUpdatesUnauthorized | 401 | application/json | | models/errors/ApplyUpdatesUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |

View File

@@ -75,12 +75,11 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------- | ------------------------------------- | ------------------------------------- | | ------------------------------------- | ------------------------------------- | ------------------------------------- |
| models/errors/GetTimelineBadRequest | 400 | application/json | | models/errors/GetTimelineBadRequest | 400 | application/json |
| models/errors/GetTimelineUnauthorized | 401 | application/json | | models/errors/GetTimelineUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |
## startUniversalTranscode ## startUniversalTranscode
@@ -151,8 +150,8 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- |
| models/errors/StartUniversalTranscodeBadRequest | 400 | application/json | | models/errors/StartUniversalTranscodeBadRequest | 400 | application/json |
| models/errors/StartUniversalTranscodeUnauthorized | 401 | application/json | | models/errors/StartUniversalTranscodeUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |

View File

@@ -71,8 +71,8 @@ public class Application {
### Errors ### Errors
| Error Object | Status Code | Content Type | | Error Type | Status Code | Content Type |
| -------------------------------------- | -------------------------------------- | -------------------------------------- | | -------------------------------------- | -------------------------------------- | -------------------------------------- |
| models/errors/GetWatchListBadRequest | 400 | application/json | | models/errors/GetWatchListBadRequest | 400 | application/json |
| models/errors/GetWatchListUnauthorized | 401 | application/json | | models/errors/GetWatchListUnauthorized | 401 | application/json |
| models/errors/SDKError | 4xx-5xx | \*\/* | | models/errors/SDKError | 4XX, 5XX | \*/\* |

View File

@@ -62,14 +62,14 @@ public class Authentication implements
* 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.
*/ */
public static final String[] GET_TOKEN_DETAILS_SERVERS = { public static final String[] GET_TOKEN_DETAILS_SERVERS = {
"https://plex.tv/api/v2/", "https://plex.tv/api/v2",
}; };
/** /**
* 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.
*/ */
public static final String[] POST_USERS_SIGN_IN_DATA_SERVERS = { public static final String[] POST_USERS_SIGN_IN_DATA_SERVERS = {
"https://plex.tv/api/v2/", "https://plex.tv/api/v2",
}; };
private final SDKConfiguration sdkConfiguration; private final SDKConfiguration sdkConfiguration;

View File

@@ -79,42 +79,42 @@ public class Plex implements
* GET_COMPANIONS_DATA_SERVERS contains the list of server urls available to the SDK. * GET_COMPANIONS_DATA_SERVERS contains the list of server urls available to the SDK.
*/ */
public static final String[] GET_COMPANIONS_DATA_SERVERS = { public static final String[] GET_COMPANIONS_DATA_SERVERS = {
"https://plex.tv/api/v2/", "https://plex.tv/api/v2",
}; };
/** /**
* GET_USER_FRIENDS_SERVERS contains the list of server urls available to the SDK. * GET_USER_FRIENDS_SERVERS contains the list of server urls available to the SDK.
*/ */
public static final String[] GET_USER_FRIENDS_SERVERS = { public static final String[] GET_USER_FRIENDS_SERVERS = {
"https://plex.tv/api/v2/", "https://plex.tv/api/v2",
}; };
/** /**
* GET_GEO_DATA_SERVERS contains the list of server urls available to the SDK. * GET_GEO_DATA_SERVERS contains the list of server urls available to the SDK.
*/ */
public static final String[] GET_GEO_DATA_SERVERS = { public static final String[] GET_GEO_DATA_SERVERS = {
"https://plex.tv/api/v2/", "https://plex.tv/api/v2",
}; };
/** /**
* GET_SERVER_RESOURCES_SERVERS contains the list of server urls available to the SDK. * GET_SERVER_RESOURCES_SERVERS contains the list of server urls available to the SDK.
*/ */
public static final String[] GET_SERVER_RESOURCES_SERVERS = { public static final String[] GET_SERVER_RESOURCES_SERVERS = {
"https://plex.tv/api/v2/", "https://plex.tv/api/v2",
}; };
/** /**
* GET_PIN_SERVERS contains the list of server urls available to the SDK. * GET_PIN_SERVERS contains the list of server urls available to the SDK.
*/ */
public static final String[] GET_PIN_SERVERS = { public static final String[] GET_PIN_SERVERS = {
"https://plex.tv/api/v2/", "https://plex.tv/api/v2",
}; };
/** /**
* GET_TOKEN_BY_PIN_ID_SERVERS contains the list of server urls available to the SDK. * GET_TOKEN_BY_PIN_ID_SERVERS contains the list of server urls available to the SDK.
*/ */
public static final String[] GET_TOKEN_BY_PIN_ID_SERVERS = { public static final String[] GET_TOKEN_BY_PIN_ID_SERVERS = {
"https://plex.tv/api/v2/", "https://plex.tv/api/v2",
}; };
private final SDKConfiguration sdkConfiguration; private final SDKConfiguration sdkConfiguration;
@@ -767,7 +767,7 @@ public class Plex implements
* @throws Exception if the API call fails * @throws Exception if the API call fails
*/ */
public GetServerResourcesResponse getServerResourcesDirect() throws Exception { public GetServerResourcesResponse getServerResourcesDirect() throws Exception {
return getServerResources(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); return getServerResources(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
} }
/** /**
@@ -778,6 +778,7 @@ public class Plex implements
E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400 E.g: https://10-0-0-25.bbf8e10c7fa20447cacee74cd9914cde.plex.direct:32400
* @param includeIPv6 Include IPv6 entries in the results * @param includeIPv6 Include IPv6 entries in the results
* @param clientID 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)
* @param serverURL Overrides the server URL. * @param serverURL Overrides the server URL.
* @return The response from the API call * @return The response from the API call
* @throws Exception if the API call fails * @throws Exception if the API call fails
@@ -786,6 +787,7 @@ public class Plex implements
Optional<? extends IncludeHttps> includeHttps, Optional<? extends IncludeHttps> includeHttps,
Optional<? extends IncludeRelay> includeRelay, Optional<? extends IncludeRelay> includeRelay,
Optional<? extends IncludeIPv6> includeIPv6, Optional<? extends IncludeIPv6> includeIPv6,
Optional<String> clientID,
Optional<String> serverURL) throws Exception { Optional<String> serverURL) throws Exception {
GetServerResourcesRequest request = GetServerResourcesRequest request =
GetServerResourcesRequest GetServerResourcesRequest
@@ -793,6 +795,7 @@ public class Plex implements
.includeHttps(includeHttps) .includeHttps(includeHttps)
.includeRelay(includeRelay) .includeRelay(includeRelay)
.includeIPv6(includeIPv6) .includeIPv6(includeIPv6)
.clientID(clientID)
.build(); .build();
String _baseUrl = Utils.templateUrl(GET_SERVER_RESOURCES_SERVERS[0], new HashMap<String, String>()); String _baseUrl = Utils.templateUrl(GET_SERVER_RESOURCES_SERVERS[0], new HashMap<String, String>());
@@ -1096,32 +1099,26 @@ public class Plex implements
/** /**
* Get Access Token by PinId * Get Access Token by PinId
* Retrieve an Access Token from Plex.tv after the Pin has been authenticated * Retrieve an Access Token from Plex.tv after the Pin has been authenticated
* @param pinID The PinID to retrieve an access token for * @param request The request object containing all of the parameters for the API call.
* @return The response from the API call * @return The response from the API call
* @throws Exception if the API call fails * @throws Exception if the API call fails
*/ */
public GetTokenByPinIdResponse getTokenByPinId( public GetTokenByPinIdResponse getTokenByPinId(
long pinID) throws Exception { GetTokenByPinIdRequest request) throws Exception {
return getTokenByPinId(pinID, Optional.empty()); return getTokenByPinId(request, Optional.empty());
} }
/** /**
* Get Access Token by PinId * Get Access Token by PinId
* Retrieve an Access Token from Plex.tv after the Pin has been authenticated * Retrieve an Access Token from Plex.tv after the Pin has been authenticated
* @param pinID The PinID to retrieve an access token for * @param request The request object containing all of the parameters for the API call.
* @param serverURL Overrides the server URL. * @param serverURL Overrides the server URL.
* @return The response from the API call * @return The response from the API call
* @throws Exception if the API call fails * @throws Exception if the API call fails
*/ */
public GetTokenByPinIdResponse getTokenByPinId( public GetTokenByPinIdResponse getTokenByPinId(
long pinID, GetTokenByPinIdRequest request,
Optional<String> serverURL) throws Exception { Optional<String> serverURL) throws Exception {
GetTokenByPinIdRequest request =
GetTokenByPinIdRequest
.builder()
.pinID(pinID)
.build();
String _baseUrl = Utils.templateUrl(GET_TOKEN_BY_PIN_ID_SERVERS[0], new HashMap<String, String>()); String _baseUrl = Utils.templateUrl(GET_TOKEN_BY_PIN_ID_SERVERS[0], new HashMap<String, String>());
if (serverURL.isPresent() && !serverURL.get().isBlank()) { if (serverURL.isPresent() && !serverURL.get().isBlank()) {
_baseUrl = serverURL.get(); _baseUrl = serverURL.get();
@@ -1137,6 +1134,11 @@ public class Plex implements
.addHeader("user-agent", .addHeader("user-agent",
SDKConfiguration.USER_AGENT); SDKConfiguration.USER_AGENT);
_req.addQueryParams(Utils.getQueryParams(
GetTokenByPinIdRequest.class,
request,
this.sdkConfiguration.globals));
HTTPClient _client = this.sdkConfiguration.defaultClient; HTTPClient _client = this.sdkConfiguration.defaultClient;
HttpRequest _r = HttpRequest _r =
sdkConfiguration.hooks() sdkConfiguration.hooks()

View File

@@ -16,6 +16,31 @@ import java.util.Optional;
/** /**
* 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 [main specification Repository](https://github.com/LukeHagar/plex-api-spec).
*
* | 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) | -
*
*/ */
public class PlexAPI { public class PlexAPI {

View File

@@ -36,8 +36,8 @@ class SDKConfiguration {
} }; } };
private static final String LANGUAGE = "java"; private static final String LANGUAGE = "java";
public static final String OPENAPI_DOC_VERSION = "0.0.3"; public static final String OPENAPI_DOC_VERSION = "0.0.3";
public static final String SDK_VERSION = "0.5.0"; public static final String SDK_VERSION = "0.7.0";
public static final String GEN_VERSION = "2.422.22"; public static final String GEN_VERSION = "2.428.1";
private static final String BASE_PACKAGE = "dev.plexapi.sdk"; private static final String BASE_PACKAGE = "dev.plexapi.sdk";
public static final String USER_AGENT = public static final String USER_AGENT =
String.format("speakeasy-sdk/%s %s %s %s %s", String.format("speakeasy-sdk/%s %s %s %s %s",

View File

@@ -15,28 +15,43 @@ public enum Features {
TREBLE_SHOW_FEATURES("TREBLE-show-features"), TREBLE_SHOW_FEATURES("TREBLE-show-features"),
AD_COUNTDOWN_TIMER("ad-countdown-timer"), AD_COUNTDOWN_TIMER("ad-countdown-timer"),
ADAPTIVE_BITRATE("adaptive_bitrate"), ADAPTIVE_BITRATE("adaptive_bitrate"),
ALBUM_TYPES("album-types"),
ALLOW_DVR("allow_dvr"),
AMAZON_LOOP_DEBUG("amazon-loop-debug"), AMAZON_LOOP_DEBUG("amazon-loop-debug"),
AVOD_AD_ANALYSIS("avod-ad-analysis"), AVOD_AD_ANALYSIS("avod-ad-analysis"),
AVOD_NEW_MEDIA("avod-new-media"), AVOD_NEW_MEDIA("avod-new-media"),
BLACKLIST_GET_SIGNIN("blacklist_get_signin"), BLACKLIST_GET_SIGNIN("blacklist_get_signin"),
BOOST_VOICES("boost-voices"),
CAMERA_UPLOAD("camera_upload"),
CLIENT_RADIO_STATIONS("client-radio-stations"), CLIENT_RADIO_STATIONS("client-radio-stations"),
CLOUDFLARE_TURNSTILE_REQUIRED("cloudflare-turnstile-required"), CLOUDFLARE_TURNSTILE_REQUIRED("cloudflare-turnstile-required"),
CLOUDSYNC("cloudsync"),
COLLECTIONS("collections"), COLLECTIONS("collections"),
COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS("comments_and_replies_push_notifications"), COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS("comments_and_replies_push_notifications"),
COMMUNITY_ACCESS_PLEX_TV("community_access_plex_tv"), COMMUNITY_ACCESS_PLEX_TV("community_access_plex_tv"),
COMPANIONS_SONOS("companions_sonos"), COMPANIONS_SONOS("companions_sonos"),
CONTENT_FILTER("content_filter"),
CUSTOM_HOME_REMOVAL("custom-home-removal"), CUSTOM_HOME_REMOVAL("custom-home-removal"),
DISABLE_HOME_USER_FRIENDSHIPS("disable_home_user_friendships"), DISABLE_HOME_USER_FRIENDSHIPS("disable_home_user_friendships"),
DISABLE_SHARING_FRIENDSHIPS("disable_sharing_friendships"), DISABLE_SHARING_FRIENDSHIPS("disable_sharing_friendships"),
DOWNLOADS_GATING("downloads-gating"),
DRM_SUPPORT("drm_support"), DRM_SUPPORT("drm_support"),
DVR("dvr"),
DVR_BLOCK_UNSUPPORTED_COUNTRIES("dvr-block-unsupported-countries"),
EPG_RECENT_CHANNELS("epg-recent-channels"),
EXCLUDE_RESTRICTIONS("exclude restrictions"), EXCLUDE_RESTRICTIONS("exclude restrictions"),
FEDERATED_AUTH("federated-auth"), FEDERATED_AUTH("federated-auth"),
FRIEND_REQUEST_PUSH_NOTIFICATIONS("friend_request_push_notifications"), FRIEND_REQUEST_PUSH_NOTIFICATIONS("friend_request_push_notifications"),
GRANDFATHER_SYNC("grandfather-sync"),
GUIDED_UPGRADE("guided-upgrade"), GUIDED_UPGRADE("guided-upgrade"),
HARDWARE_TRANSCODING("hardware_transcoding"),
HOME("home"), HOME("home"),
HWTRANSCODE("hwtranscode"),
IMAGGA_V2("imagga-v2"),
INCREASE_PASSWORD_COMPLEXITY("increase-password-complexity"), INCREASE_PASSWORD_COMPLEXITY("increase-password-complexity"),
IOS14_PRIVACY_BANNER("ios14-privacy-banner"), IOS14_PRIVACY_BANNER("ios14-privacy-banner"),
ITERABLE_NOTIFICATION_TOKENS("iterable-notification-tokens"), ITERABLE_NOTIFICATION_TOKENS("iterable-notification-tokens"),
ITEM_CLUSTERS("item_clusters"),
KEEP_PAYMENT_METHOD("keep-payment-method"), KEEP_PAYMENT_METHOD("keep-payment-method"),
KEVIN_BACON("kevin-bacon"), KEVIN_BACON("kevin-bacon"),
KOREA_CONSENT("korea-consent"), KOREA_CONSENT("korea-consent"),
@@ -45,28 +60,49 @@ public enum Features {
LIGHTNING_DVR_PIVOT("lightning-dvr-pivot"), LIGHTNING_DVR_PIVOT("lightning-dvr-pivot"),
LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS("live-tv-support-incomplete-segments"), LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS("live-tv-support-incomplete-segments"),
LIVETV("livetv"), LIVETV("livetv"),
LYRICS("lyrics"),
METADATA_SEARCH("metadata_search"), METADATA_SEARCH("metadata_search"),
MUSIC_ANALYSIS("music-analysis"),
MUSIC_VIDEOS("music_videos"),
NEW_PLEX_PASS_PRICES("new_plex_pass_prices"), NEW_PLEX_PASS_PRICES("new_plex_pass_prices"),
NEWS_PROVIDER_SUNSET_MODAL("news-provider-sunset-modal"), NEWS_PROVIDER_SUNSET_MODAL("news-provider-sunset-modal"),
NOMINATIM("nominatim"),
PASS("pass"),
PHOTOS_FAVORITES("photos-favorites"), PHOTOS_FAVORITES("photos-favorites"),
PHOTOS_METADATA_EDITION("photos-metadata-edition"), PHOTOS_METADATA_EDITION("photos-metadata-edition"),
PHOTOS_V6_EDIT("photosV6-edit"),
PHOTOS_V6_TV_ALBUMS("photosV6-tv-albums"),
PMS_HEALTH("pms_health"), PMS_HEALTH("pms_health"),
PREMIUM_DASHBOARD("premium-dashboard"),
PREMIUM_MUSIC_METADATA("premium_music_metadata"),
RADIO("radio"), RADIO("radio"),
RATE_LIMIT_CLIENT_TOKEN("rate-limit-client-token"), RATE_LIMIT_CLIENT_TOKEN("rate-limit-client-token"),
SCROBBLING_SERVICE_PLEX_TV("scrobbling-service-plex-tv"), SCROBBLING_SERVICE_PLEX_TV("scrobbling-service-plex-tv"),
SESSION_BANDWIDTH_RESTRICTIONS("session_bandwidth_restrictions"),
SESSION_KICK("session_kick"),
SHARED_SERVER_NOTIFICATION("shared_server_notification"), SHARED_SERVER_NOTIFICATION("shared_server_notification"),
SHARED_SOURCE_NOTIFICATION("shared_source_notification"), SHARED_SOURCE_NOTIFICATION("shared_source_notification"),
SIGNIN_NOTIFICATION("signin_notification"),
SIGNIN_WITH_APPLE("signin_with_apple"), SIGNIN_WITH_APPLE("signin_with_apple"),
SILENCE_REMOVAL("silence-removal"),
SLEEP_TIMER("sleep-timer"),
SPRING_SERVE_AD_PROVIDER("spring_serve_ad_provider"), SPRING_SERVE_AD_PROVIDER("spring_serve_ad_provider"),
SYNC("sync"),
SWEET_FADES("sweet-fades"),
TRANSCODER_CACHE("transcoder_cache"), TRANSCODER_CACHE("transcoder_cache"),
TRAILERS("trailers"),
TUNER_SHARING("tuner-sharing"), TUNER_SHARING("tuner-sharing"),
TWO_FACTOR_AUTHENTICATION("two-factor-authentication"), TWO_FACTOR_AUTHENTICATION("two-factor-authentication"),
UNSUPPORTEDTUNERS("unsupportedtuners"), UNSUPPORTEDTUNERS("unsupportedtuners"),
UPGRADE3DS2("upgrade-3ds2"), UPGRADE3DS2("upgrade-3ds2"),
VISUALIZERS("visualizers"),
VOD_SCHEMA("vod-schema"), VOD_SCHEMA("vod-schema"),
VOD_CLOUDFLARE("vod_cloudflare"), VOD_CLOUDFLARE("vod_cloudflare"),
VOLUME_LEVELING("volume-leveling"),
WATCH_TOGETHER_INVITE("watch-together-invite"), WATCH_TOGETHER_INVITE("watch-together-invite"),
WEB_SERVER_DASHBOARD("web_server_dashboard"); WATCHLIST_RSS("watchlist-rss"),
WEB_SERVER_DASHBOARD("web_server_dashboard"),
WEBHOOKS("webhooks");
@JsonValue @JsonValue
private final String value; private final String value;

View File

@@ -30,10 +30,7 @@ public class GetPinRequest {
private Optional<Boolean> strong; private Optional<Boolean> strong;
/** /**
* The unique identifier for the client application * 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)
* This is used to track the client application and its usage
* (UUID, serial number, or other number unique per device)
*
*/ */
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier") @SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")
private Optional<String> clientID; private Optional<String> clientID;
@@ -88,10 +85,7 @@ public class GetPinRequest {
} }
/** /**
* The unique identifier for the client application * 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)
* This is used to track the client application and its usage
* (UUID, serial number, or other number unique per device)
*
*/ */
@JsonIgnore @JsonIgnore
public Optional<String> clientID() { public Optional<String> clientID() {
@@ -147,10 +141,7 @@ public class GetPinRequest {
} }
/** /**
* The unique identifier for the client application * 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)
* This is used to track the client application and its usage
* (UUID, serial number, or other number unique per device)
*
*/ */
public GetPinRequest withClientID(String clientID) { public GetPinRequest withClientID(String clientID) {
Utils.checkNotNull(clientID, "clientID"); Utils.checkNotNull(clientID, "clientID");
@@ -159,10 +150,7 @@ public class GetPinRequest {
} }
/** /**
* The unique identifier for the client application * 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)
* This is used to track the client application and its usage
* (UUID, serial number, or other number unique per device)
*
*/ */
public GetPinRequest withClientID(Optional<String> clientID) { public GetPinRequest withClientID(Optional<String> clientID) {
Utils.checkNotNull(clientID, "clientID"); Utils.checkNotNull(clientID, "clientID");
@@ -301,10 +289,7 @@ public class GetPinRequest {
} }
/** /**
* The unique identifier for the client application * 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)
* This is used to track the client application and its usage
* (UUID, serial number, or other number unique per device)
*
*/ */
public Builder clientID(String clientID) { public Builder clientID(String clientID) {
Utils.checkNotNull(clientID, "clientID"); Utils.checkNotNull(clientID, "clientID");
@@ -313,10 +298,7 @@ public class GetPinRequest {
} }
/** /**
* The unique identifier for the client application * 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)
* This is used to track the client application and its usage
* (UUID, serial number, or other number unique per device)
*
*/ */
public Builder clientID(Optional<String> clientID) { public Builder clientID(Optional<String> clientID) {
Utils.checkNotNull(clientID, "clientID"); Utils.checkNotNull(clientID, "clientID");

View File

@@ -40,21 +40,30 @@ public class GetServerResourcesRequest {
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeIPv6") @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeIPv6")
private Optional<? extends IncludeIPv6> includeIPv6; private Optional<? extends IncludeIPv6> includeIPv6;
/**
* 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)
*/
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")
private Optional<String> clientID;
@JsonCreator @JsonCreator
public GetServerResourcesRequest( public GetServerResourcesRequest(
Optional<? extends IncludeHttps> includeHttps, Optional<? extends IncludeHttps> includeHttps,
Optional<? extends IncludeRelay> includeRelay, Optional<? extends IncludeRelay> includeRelay,
Optional<? extends IncludeIPv6> includeIPv6) { Optional<? extends IncludeIPv6> includeIPv6,
Optional<String> clientID) {
Utils.checkNotNull(includeHttps, "includeHttps"); Utils.checkNotNull(includeHttps, "includeHttps");
Utils.checkNotNull(includeRelay, "includeRelay"); Utils.checkNotNull(includeRelay, "includeRelay");
Utils.checkNotNull(includeIPv6, "includeIPv6"); Utils.checkNotNull(includeIPv6, "includeIPv6");
Utils.checkNotNull(clientID, "clientID");
this.includeHttps = includeHttps; this.includeHttps = includeHttps;
this.includeRelay = includeRelay; this.includeRelay = includeRelay;
this.includeIPv6 = includeIPv6; this.includeIPv6 = includeIPv6;
this.clientID = clientID;
} }
public GetServerResourcesRequest() { public GetServerResourcesRequest() {
this(Optional.empty(), Optional.empty(), Optional.empty()); this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
} }
/** /**
@@ -86,6 +95,14 @@ public class GetServerResourcesRequest {
return (Optional<IncludeIPv6>) includeIPv6; return (Optional<IncludeIPv6>) includeIPv6;
} }
/**
* 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)
*/
@JsonIgnore
public Optional<String> clientID() {
return clientID;
}
public final static Builder builder() { public final static Builder builder() {
return new Builder(); return new Builder();
} }
@@ -148,6 +165,24 @@ public class GetServerResourcesRequest {
return this; return this;
} }
/**
* 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)
*/
public GetServerResourcesRequest withClientID(String clientID) {
Utils.checkNotNull(clientID, "clientID");
this.clientID = Optional.ofNullable(clientID);
return this;
}
/**
* 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)
*/
public GetServerResourcesRequest withClientID(Optional<String> clientID) {
Utils.checkNotNull(clientID, "clientID");
this.clientID = clientID;
return this;
}
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@@ -160,7 +195,8 @@ public class GetServerResourcesRequest {
return return
Objects.deepEquals(this.includeHttps, other.includeHttps) && Objects.deepEquals(this.includeHttps, other.includeHttps) &&
Objects.deepEquals(this.includeRelay, other.includeRelay) && Objects.deepEquals(this.includeRelay, other.includeRelay) &&
Objects.deepEquals(this.includeIPv6, other.includeIPv6); Objects.deepEquals(this.includeIPv6, other.includeIPv6) &&
Objects.deepEquals(this.clientID, other.clientID);
} }
@Override @Override
@@ -168,7 +204,8 @@ public class GetServerResourcesRequest {
return Objects.hash( return Objects.hash(
includeHttps, includeHttps,
includeRelay, includeRelay,
includeIPv6); includeIPv6,
clientID);
} }
@Override @Override
@@ -176,7 +213,8 @@ public class GetServerResourcesRequest {
return Utils.toString(GetServerResourcesRequest.class, return Utils.toString(GetServerResourcesRequest.class,
"includeHttps", includeHttps, "includeHttps", includeHttps,
"includeRelay", includeRelay, "includeRelay", includeRelay,
"includeIPv6", includeIPv6); "includeIPv6", includeIPv6,
"clientID", clientID);
} }
public final static class Builder { public final static class Builder {
@@ -187,6 +225,8 @@ public class GetServerResourcesRequest {
private Optional<? extends IncludeIPv6> includeIPv6; private Optional<? extends IncludeIPv6> includeIPv6;
private Optional<String> clientID = Optional.empty();
private Builder() { private Builder() {
// force use of static builder() method // force use of static builder() method
} }
@@ -249,6 +289,24 @@ public class GetServerResourcesRequest {
return this; return this;
} }
/**
* 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)
*/
public Builder clientID(String clientID) {
Utils.checkNotNull(clientID, "clientID");
this.clientID = Optional.ofNullable(clientID);
return this;
}
/**
* 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)
*/
public Builder clientID(Optional<String> clientID) {
Utils.checkNotNull(clientID, "clientID");
this.clientID = clientID;
return this;
}
public GetServerResourcesRequest build() { public GetServerResourcesRequest build() {
if (includeHttps == null) { if (includeHttps == null) {
includeHttps = _SINGLETON_VALUE_IncludeHttps.value(); includeHttps = _SINGLETON_VALUE_IncludeHttps.value();
@@ -261,7 +319,8 @@ public class GetServerResourcesRequest {
} return new GetServerResourcesRequest( } return new GetServerResourcesRequest(
includeHttps, includeHttps,
includeRelay, includeRelay,
includeIPv6); includeIPv6,
clientID);
} }
private static final LazySingletonValue<Optional<? extends IncludeHttps>> _SINGLETON_VALUE_IncludeHttps = private static final LazySingletonValue<Optional<? extends IncludeHttps>> _SINGLETON_VALUE_IncludeHttps =

View File

@@ -24,6 +24,7 @@ public class GetServerResourcesRequestBuilder {
"includeIPv6", "includeIPv6",
"0", "0",
new TypeReference<Optional<? extends IncludeIPv6>>() {}); new TypeReference<Optional<? extends IncludeIPv6>>() {});
private Optional<String> clientID = Optional.empty();
private Optional<String> serverURL = Optional.empty(); private Optional<String> serverURL = Optional.empty();
private final SDKMethodInterfaces.MethodCallGetServerResources sdk; private final SDKMethodInterfaces.MethodCallGetServerResources sdk;
@@ -67,6 +68,18 @@ public class GetServerResourcesRequestBuilder {
return this; return this;
} }
public GetServerResourcesRequestBuilder clientID(String clientID) {
Utils.checkNotNull(clientID, "clientID");
this.clientID = Optional.of(clientID);
return this;
}
public GetServerResourcesRequestBuilder clientID(Optional<String> clientID) {
Utils.checkNotNull(clientID, "clientID");
this.clientID = clientID;
return this;
}
public GetServerResourcesRequestBuilder serverURL(String serverURL) { public GetServerResourcesRequestBuilder serverURL(String serverURL) {
Utils.checkNotNull(serverURL, "serverURL"); Utils.checkNotNull(serverURL, "serverURL");
this.serverURL = Optional.of(serverURL); this.serverURL = Optional.of(serverURL);
@@ -93,6 +106,7 @@ public class GetServerResourcesRequestBuilder {
includeHttps, includeHttps,
includeRelay, includeRelay,
includeIPv6, includeIPv6,
clientID,
serverURL); serverURL);
} }

View File

@@ -13,6 +13,7 @@ import java.lang.Long;
import java.lang.Override; import java.lang.Override;
import java.lang.String; import java.lang.String;
import java.util.Objects; import java.util.Objects;
import java.util.Optional;
public class GetTokenByPinIdRequest { public class GetTokenByPinIdRequest {
@@ -23,11 +24,49 @@ public class GetTokenByPinIdRequest {
@SpeakeasyMetadata("pathParam:style=simple,explode=false,name=pinID") @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=pinID")
private long pinID; private long pinID;
/**
* 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)
*/
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")
private Optional<String> clientID;
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Product")
private Optional<String> clientName;
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Device")
private Optional<String> deviceName;
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Version")
private Optional<String> clientVersion;
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Platform")
private Optional<String> clientPlatform;
@JsonCreator @JsonCreator
public GetTokenByPinIdRequest( public GetTokenByPinIdRequest(
long pinID) { long pinID,
Optional<String> clientID,
Optional<String> clientName,
Optional<String> deviceName,
Optional<String> clientVersion,
Optional<String> clientPlatform) {
Utils.checkNotNull(pinID, "pinID"); Utils.checkNotNull(pinID, "pinID");
Utils.checkNotNull(clientID, "clientID");
Utils.checkNotNull(clientName, "clientName");
Utils.checkNotNull(deviceName, "deviceName");
Utils.checkNotNull(clientVersion, "clientVersion");
Utils.checkNotNull(clientPlatform, "clientPlatform");
this.pinID = pinID; this.pinID = pinID;
this.clientID = clientID;
this.clientName = clientName;
this.deviceName = deviceName;
this.clientVersion = clientVersion;
this.clientPlatform = clientPlatform;
}
public GetTokenByPinIdRequest(
long pinID) {
this(pinID, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty());
} }
/** /**
@@ -38,6 +77,34 @@ public class GetTokenByPinIdRequest {
return pinID; return pinID;
} }
/**
* 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)
*/
@JsonIgnore
public Optional<String> clientID() {
return clientID;
}
@JsonIgnore
public Optional<String> clientName() {
return clientName;
}
@JsonIgnore
public Optional<String> deviceName() {
return deviceName;
}
@JsonIgnore
public Optional<String> clientVersion() {
return clientVersion;
}
@JsonIgnore
public Optional<String> clientPlatform() {
return clientPlatform;
}
public final static Builder builder() { public final static Builder builder() {
return new Builder(); return new Builder();
} }
@@ -51,6 +118,72 @@ public class GetTokenByPinIdRequest {
return this; return this;
} }
/**
* 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)
*/
public GetTokenByPinIdRequest withClientID(String clientID) {
Utils.checkNotNull(clientID, "clientID");
this.clientID = Optional.ofNullable(clientID);
return this;
}
/**
* 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)
*/
public GetTokenByPinIdRequest withClientID(Optional<String> clientID) {
Utils.checkNotNull(clientID, "clientID");
this.clientID = clientID;
return this;
}
public GetTokenByPinIdRequest withClientName(String clientName) {
Utils.checkNotNull(clientName, "clientName");
this.clientName = Optional.ofNullable(clientName);
return this;
}
public GetTokenByPinIdRequest withClientName(Optional<String> clientName) {
Utils.checkNotNull(clientName, "clientName");
this.clientName = clientName;
return this;
}
public GetTokenByPinIdRequest withDeviceName(String deviceName) {
Utils.checkNotNull(deviceName, "deviceName");
this.deviceName = Optional.ofNullable(deviceName);
return this;
}
public GetTokenByPinIdRequest withDeviceName(Optional<String> deviceName) {
Utils.checkNotNull(deviceName, "deviceName");
this.deviceName = deviceName;
return this;
}
public GetTokenByPinIdRequest withClientVersion(String clientVersion) {
Utils.checkNotNull(clientVersion, "clientVersion");
this.clientVersion = Optional.ofNullable(clientVersion);
return this;
}
public GetTokenByPinIdRequest withClientVersion(Optional<String> clientVersion) {
Utils.checkNotNull(clientVersion, "clientVersion");
this.clientVersion = clientVersion;
return this;
}
public GetTokenByPinIdRequest withClientPlatform(String clientPlatform) {
Utils.checkNotNull(clientPlatform, "clientPlatform");
this.clientPlatform = Optional.ofNullable(clientPlatform);
return this;
}
public GetTokenByPinIdRequest withClientPlatform(Optional<String> clientPlatform) {
Utils.checkNotNull(clientPlatform, "clientPlatform");
this.clientPlatform = clientPlatform;
return this;
}
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
@@ -61,25 +194,50 @@ public class GetTokenByPinIdRequest {
} }
GetTokenByPinIdRequest other = (GetTokenByPinIdRequest) o; GetTokenByPinIdRequest other = (GetTokenByPinIdRequest) o;
return return
Objects.deepEquals(this.pinID, other.pinID); Objects.deepEquals(this.pinID, other.pinID) &&
Objects.deepEquals(this.clientID, other.clientID) &&
Objects.deepEquals(this.clientName, other.clientName) &&
Objects.deepEquals(this.deviceName, other.deviceName) &&
Objects.deepEquals(this.clientVersion, other.clientVersion) &&
Objects.deepEquals(this.clientPlatform, other.clientPlatform);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash( return Objects.hash(
pinID); pinID,
clientID,
clientName,
deviceName,
clientVersion,
clientPlatform);
} }
@Override @Override
public String toString() { public String toString() {
return Utils.toString(GetTokenByPinIdRequest.class, return Utils.toString(GetTokenByPinIdRequest.class,
"pinID", pinID); "pinID", pinID,
"clientID", clientID,
"clientName", clientName,
"deviceName", deviceName,
"clientVersion", clientVersion,
"clientPlatform", clientPlatform);
} }
public final static class Builder { public final static class Builder {
private Long pinID; private Long pinID;
private Optional<String> clientID = Optional.empty();
private Optional<String> clientName = Optional.empty();
private Optional<String> deviceName = Optional.empty();
private Optional<String> clientVersion = Optional.empty();
private Optional<String> clientPlatform = Optional.empty();
private Builder() { private Builder() {
// force use of static builder() method // force use of static builder() method
} }
@@ -93,9 +251,80 @@ public class GetTokenByPinIdRequest {
return this; return this;
} }
/**
* 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)
*/
public Builder clientID(String clientID) {
Utils.checkNotNull(clientID, "clientID");
this.clientID = Optional.ofNullable(clientID);
return this;
}
/**
* 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)
*/
public Builder clientID(Optional<String> clientID) {
Utils.checkNotNull(clientID, "clientID");
this.clientID = clientID;
return this;
}
public Builder clientName(String clientName) {
Utils.checkNotNull(clientName, "clientName");
this.clientName = Optional.ofNullable(clientName);
return this;
}
public Builder clientName(Optional<String> clientName) {
Utils.checkNotNull(clientName, "clientName");
this.clientName = clientName;
return this;
}
public Builder deviceName(String deviceName) {
Utils.checkNotNull(deviceName, "deviceName");
this.deviceName = Optional.ofNullable(deviceName);
return this;
}
public Builder deviceName(Optional<String> deviceName) {
Utils.checkNotNull(deviceName, "deviceName");
this.deviceName = deviceName;
return this;
}
public Builder clientVersion(String clientVersion) {
Utils.checkNotNull(clientVersion, "clientVersion");
this.clientVersion = Optional.ofNullable(clientVersion);
return this;
}
public Builder clientVersion(Optional<String> clientVersion) {
Utils.checkNotNull(clientVersion, "clientVersion");
this.clientVersion = clientVersion;
return this;
}
public Builder clientPlatform(String clientPlatform) {
Utils.checkNotNull(clientPlatform, "clientPlatform");
this.clientPlatform = Optional.ofNullable(clientPlatform);
return this;
}
public Builder clientPlatform(Optional<String> clientPlatform) {
Utils.checkNotNull(clientPlatform, "clientPlatform");
this.clientPlatform = clientPlatform;
return this;
}
public GetTokenByPinIdRequest build() { public GetTokenByPinIdRequest build() {
return new GetTokenByPinIdRequest( return new GetTokenByPinIdRequest(
pinID); pinID,
clientID,
clientName,
deviceName,
clientVersion,
clientPlatform);
} }
} }
} }

View File

@@ -5,13 +5,12 @@
package dev.plexapi.sdk.models.operations; package dev.plexapi.sdk.models.operations;
import dev.plexapi.sdk.utils.Utils; import dev.plexapi.sdk.utils.Utils;
import java.lang.Long;
import java.lang.String; import java.lang.String;
import java.util.Optional; import java.util.Optional;
public class GetTokenByPinIdRequestBuilder { public class GetTokenByPinIdRequestBuilder {
private Long pinID; private GetTokenByPinIdRequest request;
private Optional<String> serverURL = Optional.empty(); private Optional<String> serverURL = Optional.empty();
private final SDKMethodInterfaces.MethodCallGetTokenByPinId sdk; private final SDKMethodInterfaces.MethodCallGetTokenByPinId sdk;
@@ -19,9 +18,9 @@ public class GetTokenByPinIdRequestBuilder {
this.sdk = sdk; this.sdk = sdk;
} }
public GetTokenByPinIdRequestBuilder pinID(long pinID) { public GetTokenByPinIdRequestBuilder request(GetTokenByPinIdRequest request) {
Utils.checkNotNull(pinID, "pinID"); Utils.checkNotNull(request, "request");
this.pinID = pinID; this.request = request;
return this; return this;
} }
@@ -40,7 +39,7 @@ public class GetTokenByPinIdRequestBuilder {
public GetTokenByPinIdResponse call() throws Exception { public GetTokenByPinIdResponse call() throws Exception {
return sdk.getTokenByPinId( return sdk.getTokenByPinId(
pinID, request,
serverURL); serverURL);
} }
} }

View File

@@ -15,28 +15,43 @@ public enum GetTokenDetailsFeatures {
TREBLE_SHOW_FEATURES("TREBLE-show-features"), TREBLE_SHOW_FEATURES("TREBLE-show-features"),
AD_COUNTDOWN_TIMER("ad-countdown-timer"), AD_COUNTDOWN_TIMER("ad-countdown-timer"),
ADAPTIVE_BITRATE("adaptive_bitrate"), ADAPTIVE_BITRATE("adaptive_bitrate"),
ALBUM_TYPES("album-types"),
ALLOW_DVR("allow_dvr"),
AMAZON_LOOP_DEBUG("amazon-loop-debug"), AMAZON_LOOP_DEBUG("amazon-loop-debug"),
AVOD_AD_ANALYSIS("avod-ad-analysis"), AVOD_AD_ANALYSIS("avod-ad-analysis"),
AVOD_NEW_MEDIA("avod-new-media"), AVOD_NEW_MEDIA("avod-new-media"),
BLACKLIST_GET_SIGNIN("blacklist_get_signin"), BLACKLIST_GET_SIGNIN("blacklist_get_signin"),
BOOST_VOICES("boost-voices"),
CAMERA_UPLOAD("camera_upload"),
CLIENT_RADIO_STATIONS("client-radio-stations"), CLIENT_RADIO_STATIONS("client-radio-stations"),
CLOUDFLARE_TURNSTILE_REQUIRED("cloudflare-turnstile-required"), CLOUDFLARE_TURNSTILE_REQUIRED("cloudflare-turnstile-required"),
CLOUDSYNC("cloudsync"),
COLLECTIONS("collections"), COLLECTIONS("collections"),
COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS("comments_and_replies_push_notifications"), COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS("comments_and_replies_push_notifications"),
COMMUNITY_ACCESS_PLEX_TV("community_access_plex_tv"), COMMUNITY_ACCESS_PLEX_TV("community_access_plex_tv"),
COMPANIONS_SONOS("companions_sonos"), COMPANIONS_SONOS("companions_sonos"),
CONTENT_FILTER("content_filter"),
CUSTOM_HOME_REMOVAL("custom-home-removal"), CUSTOM_HOME_REMOVAL("custom-home-removal"),
DISABLE_HOME_USER_FRIENDSHIPS("disable_home_user_friendships"), DISABLE_HOME_USER_FRIENDSHIPS("disable_home_user_friendships"),
DISABLE_SHARING_FRIENDSHIPS("disable_sharing_friendships"), DISABLE_SHARING_FRIENDSHIPS("disable_sharing_friendships"),
DOWNLOADS_GATING("downloads-gating"),
DRM_SUPPORT("drm_support"), DRM_SUPPORT("drm_support"),
DVR("dvr"),
DVR_BLOCK_UNSUPPORTED_COUNTRIES("dvr-block-unsupported-countries"),
EPG_RECENT_CHANNELS("epg-recent-channels"),
EXCLUDE_RESTRICTIONS("exclude restrictions"), EXCLUDE_RESTRICTIONS("exclude restrictions"),
FEDERATED_AUTH("federated-auth"), FEDERATED_AUTH("federated-auth"),
FRIEND_REQUEST_PUSH_NOTIFICATIONS("friend_request_push_notifications"), FRIEND_REQUEST_PUSH_NOTIFICATIONS("friend_request_push_notifications"),
GRANDFATHER_SYNC("grandfather-sync"),
GUIDED_UPGRADE("guided-upgrade"), GUIDED_UPGRADE("guided-upgrade"),
HARDWARE_TRANSCODING("hardware_transcoding"),
HOME("home"), HOME("home"),
HWTRANSCODE("hwtranscode"),
IMAGGA_V2("imagga-v2"),
INCREASE_PASSWORD_COMPLEXITY("increase-password-complexity"), INCREASE_PASSWORD_COMPLEXITY("increase-password-complexity"),
IOS14_PRIVACY_BANNER("ios14-privacy-banner"), IOS14_PRIVACY_BANNER("ios14-privacy-banner"),
ITERABLE_NOTIFICATION_TOKENS("iterable-notification-tokens"), ITERABLE_NOTIFICATION_TOKENS("iterable-notification-tokens"),
ITEM_CLUSTERS("item_clusters"),
KEEP_PAYMENT_METHOD("keep-payment-method"), KEEP_PAYMENT_METHOD("keep-payment-method"),
KEVIN_BACON("kevin-bacon"), KEVIN_BACON("kevin-bacon"),
KOREA_CONSENT("korea-consent"), KOREA_CONSENT("korea-consent"),
@@ -45,28 +60,49 @@ public enum GetTokenDetailsFeatures {
LIGHTNING_DVR_PIVOT("lightning-dvr-pivot"), LIGHTNING_DVR_PIVOT("lightning-dvr-pivot"),
LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS("live-tv-support-incomplete-segments"), LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS("live-tv-support-incomplete-segments"),
LIVETV("livetv"), LIVETV("livetv"),
LYRICS("lyrics"),
METADATA_SEARCH("metadata_search"), METADATA_SEARCH("metadata_search"),
MUSIC_ANALYSIS("music-analysis"),
MUSIC_VIDEOS("music_videos"),
NEW_PLEX_PASS_PRICES("new_plex_pass_prices"), NEW_PLEX_PASS_PRICES("new_plex_pass_prices"),
NEWS_PROVIDER_SUNSET_MODAL("news-provider-sunset-modal"), NEWS_PROVIDER_SUNSET_MODAL("news-provider-sunset-modal"),
NOMINATIM("nominatim"),
PASS("pass"),
PHOTOS_FAVORITES("photos-favorites"), PHOTOS_FAVORITES("photos-favorites"),
PHOTOS_METADATA_EDITION("photos-metadata-edition"), PHOTOS_METADATA_EDITION("photos-metadata-edition"),
PHOTOS_V6_EDIT("photosV6-edit"),
PHOTOS_V6_TV_ALBUMS("photosV6-tv-albums"),
PMS_HEALTH("pms_health"), PMS_HEALTH("pms_health"),
PREMIUM_DASHBOARD("premium-dashboard"),
PREMIUM_MUSIC_METADATA("premium_music_metadata"),
RADIO("radio"), RADIO("radio"),
RATE_LIMIT_CLIENT_TOKEN("rate-limit-client-token"), RATE_LIMIT_CLIENT_TOKEN("rate-limit-client-token"),
SCROBBLING_SERVICE_PLEX_TV("scrobbling-service-plex-tv"), SCROBBLING_SERVICE_PLEX_TV("scrobbling-service-plex-tv"),
SESSION_BANDWIDTH_RESTRICTIONS("session_bandwidth_restrictions"),
SESSION_KICK("session_kick"),
SHARED_SERVER_NOTIFICATION("shared_server_notification"), SHARED_SERVER_NOTIFICATION("shared_server_notification"),
SHARED_SOURCE_NOTIFICATION("shared_source_notification"), SHARED_SOURCE_NOTIFICATION("shared_source_notification"),
SIGNIN_NOTIFICATION("signin_notification"),
SIGNIN_WITH_APPLE("signin_with_apple"), SIGNIN_WITH_APPLE("signin_with_apple"),
SILENCE_REMOVAL("silence-removal"),
SLEEP_TIMER("sleep-timer"),
SPRING_SERVE_AD_PROVIDER("spring_serve_ad_provider"), SPRING_SERVE_AD_PROVIDER("spring_serve_ad_provider"),
SYNC("sync"),
SWEET_FADES("sweet-fades"),
TRANSCODER_CACHE("transcoder_cache"), TRANSCODER_CACHE("transcoder_cache"),
TRAILERS("trailers"),
TUNER_SHARING("tuner-sharing"), TUNER_SHARING("tuner-sharing"),
TWO_FACTOR_AUTHENTICATION("two-factor-authentication"), TWO_FACTOR_AUTHENTICATION("two-factor-authentication"),
UNSUPPORTEDTUNERS("unsupportedtuners"), UNSUPPORTEDTUNERS("unsupportedtuners"),
UPGRADE3DS2("upgrade-3ds2"), UPGRADE3DS2("upgrade-3ds2"),
VISUALIZERS("visualizers"),
VOD_SCHEMA("vod-schema"), VOD_SCHEMA("vod-schema"),
VOD_CLOUDFLARE("vod_cloudflare"), VOD_CLOUDFLARE("vod_cloudflare"),
VOLUME_LEVELING("volume-leveling"),
WATCH_TOGETHER_INVITE("watch-together-invite"), WATCH_TOGETHER_INVITE("watch-together-invite"),
WEB_SERVER_DASHBOARD("web_server_dashboard"); WATCHLIST_RSS("watchlist-rss"),
WEB_SERVER_DASHBOARD("web_server_dashboard"),
WEBHOOKS("webhooks");
@JsonValue @JsonValue
private final String value; private final String value;

View File

@@ -179,7 +179,7 @@ public class GetTokenDetailsUserPlexAccount {
private Optional<Boolean> mailingListActive; private Optional<Boolean> mailingListActive;
/** /**
* Your current mailing list status * Your current mailing list status (active or unsubscribed)
*/ */
@JsonProperty("mailingListStatus") @JsonProperty("mailingListStatus")
private MailingListStatus mailingListStatus; private MailingListStatus mailingListStatus;
@@ -617,7 +617,7 @@ public class GetTokenDetailsUserPlexAccount {
} }
/** /**
* Your current mailing list status * Your current mailing list status (active or unsubscribed)
*/ */
@JsonIgnore @JsonIgnore
public MailingListStatus mailingListStatus() { public MailingListStatus mailingListStatus() {
@@ -1088,7 +1088,7 @@ public class GetTokenDetailsUserPlexAccount {
} }
/** /**
* Your current mailing list status * Your current mailing list status (active or unsubscribed)
*/ */
public GetTokenDetailsUserPlexAccount withMailingListStatus(MailingListStatus mailingListStatus) { public GetTokenDetailsUserPlexAccount withMailingListStatus(MailingListStatus mailingListStatus) {
Utils.checkNotNull(mailingListStatus, "mailingListStatus"); Utils.checkNotNull(mailingListStatus, "mailingListStatus");
@@ -1869,7 +1869,7 @@ public class GetTokenDetailsUserPlexAccount {
} }
/** /**
* Your current mailing list status * Your current mailing list status (active or unsubscribed)
*/ */
public Builder mailingListStatus(MailingListStatus mailingListStatus) { public Builder mailingListStatus(MailingListStatus mailingListStatus) {
Utils.checkNotNull(mailingListStatus, "mailingListStatus"); Utils.checkNotNull(mailingListStatus, "mailingListStatus");

View File

@@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonValue;
import java.lang.String; import java.lang.String;
/** /**
* MailingListStatus - Your current mailing list status * MailingListStatus - Your current mailing list status (active or unsubscribed)
*/ */
public enum MailingListStatus { public enum MailingListStatus {
ACTIVE("active"), ACTIVE("active"),

View File

@@ -15,28 +15,43 @@ public enum PostUsersSignInDataAuthenticationFeatures {
TREBLE_SHOW_FEATURES("TREBLE-show-features"), TREBLE_SHOW_FEATURES("TREBLE-show-features"),
AD_COUNTDOWN_TIMER("ad-countdown-timer"), AD_COUNTDOWN_TIMER("ad-countdown-timer"),
ADAPTIVE_BITRATE("adaptive_bitrate"), ADAPTIVE_BITRATE("adaptive_bitrate"),
ALBUM_TYPES("album-types"),
ALLOW_DVR("allow_dvr"),
AMAZON_LOOP_DEBUG("amazon-loop-debug"), AMAZON_LOOP_DEBUG("amazon-loop-debug"),
AVOD_AD_ANALYSIS("avod-ad-analysis"), AVOD_AD_ANALYSIS("avod-ad-analysis"),
AVOD_NEW_MEDIA("avod-new-media"), AVOD_NEW_MEDIA("avod-new-media"),
BLACKLIST_GET_SIGNIN("blacklist_get_signin"), BLACKLIST_GET_SIGNIN("blacklist_get_signin"),
BOOST_VOICES("boost-voices"),
CAMERA_UPLOAD("camera_upload"),
CLIENT_RADIO_STATIONS("client-radio-stations"), CLIENT_RADIO_STATIONS("client-radio-stations"),
CLOUDFLARE_TURNSTILE_REQUIRED("cloudflare-turnstile-required"), CLOUDFLARE_TURNSTILE_REQUIRED("cloudflare-turnstile-required"),
CLOUDSYNC("cloudsync"),
COLLECTIONS("collections"), COLLECTIONS("collections"),
COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS("comments_and_replies_push_notifications"), COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS("comments_and_replies_push_notifications"),
COMMUNITY_ACCESS_PLEX_TV("community_access_plex_tv"), COMMUNITY_ACCESS_PLEX_TV("community_access_plex_tv"),
COMPANIONS_SONOS("companions_sonos"), COMPANIONS_SONOS("companions_sonos"),
CONTENT_FILTER("content_filter"),
CUSTOM_HOME_REMOVAL("custom-home-removal"), CUSTOM_HOME_REMOVAL("custom-home-removal"),
DISABLE_HOME_USER_FRIENDSHIPS("disable_home_user_friendships"), DISABLE_HOME_USER_FRIENDSHIPS("disable_home_user_friendships"),
DISABLE_SHARING_FRIENDSHIPS("disable_sharing_friendships"), DISABLE_SHARING_FRIENDSHIPS("disable_sharing_friendships"),
DOWNLOADS_GATING("downloads-gating"),
DRM_SUPPORT("drm_support"), DRM_SUPPORT("drm_support"),
DVR("dvr"),
DVR_BLOCK_UNSUPPORTED_COUNTRIES("dvr-block-unsupported-countries"),
EPG_RECENT_CHANNELS("epg-recent-channels"),
EXCLUDE_RESTRICTIONS("exclude restrictions"), EXCLUDE_RESTRICTIONS("exclude restrictions"),
FEDERATED_AUTH("federated-auth"), FEDERATED_AUTH("federated-auth"),
FRIEND_REQUEST_PUSH_NOTIFICATIONS("friend_request_push_notifications"), FRIEND_REQUEST_PUSH_NOTIFICATIONS("friend_request_push_notifications"),
GRANDFATHER_SYNC("grandfather-sync"),
GUIDED_UPGRADE("guided-upgrade"), GUIDED_UPGRADE("guided-upgrade"),
HARDWARE_TRANSCODING("hardware_transcoding"),
HOME("home"), HOME("home"),
HWTRANSCODE("hwtranscode"),
IMAGGA_V2("imagga-v2"),
INCREASE_PASSWORD_COMPLEXITY("increase-password-complexity"), INCREASE_PASSWORD_COMPLEXITY("increase-password-complexity"),
IOS14_PRIVACY_BANNER("ios14-privacy-banner"), IOS14_PRIVACY_BANNER("ios14-privacy-banner"),
ITERABLE_NOTIFICATION_TOKENS("iterable-notification-tokens"), ITERABLE_NOTIFICATION_TOKENS("iterable-notification-tokens"),
ITEM_CLUSTERS("item_clusters"),
KEEP_PAYMENT_METHOD("keep-payment-method"), KEEP_PAYMENT_METHOD("keep-payment-method"),
KEVIN_BACON("kevin-bacon"), KEVIN_BACON("kevin-bacon"),
KOREA_CONSENT("korea-consent"), KOREA_CONSENT("korea-consent"),
@@ -45,28 +60,49 @@ public enum PostUsersSignInDataAuthenticationFeatures {
LIGHTNING_DVR_PIVOT("lightning-dvr-pivot"), LIGHTNING_DVR_PIVOT("lightning-dvr-pivot"),
LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS("live-tv-support-incomplete-segments"), LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS("live-tv-support-incomplete-segments"),
LIVETV("livetv"), LIVETV("livetv"),
LYRICS("lyrics"),
METADATA_SEARCH("metadata_search"), METADATA_SEARCH("metadata_search"),
MUSIC_ANALYSIS("music-analysis"),
MUSIC_VIDEOS("music_videos"),
NEW_PLEX_PASS_PRICES("new_plex_pass_prices"), NEW_PLEX_PASS_PRICES("new_plex_pass_prices"),
NEWS_PROVIDER_SUNSET_MODAL("news-provider-sunset-modal"), NEWS_PROVIDER_SUNSET_MODAL("news-provider-sunset-modal"),
NOMINATIM("nominatim"),
PASS("pass"),
PHOTOS_FAVORITES("photos-favorites"), PHOTOS_FAVORITES("photos-favorites"),
PHOTOS_METADATA_EDITION("photos-metadata-edition"), PHOTOS_METADATA_EDITION("photos-metadata-edition"),
PHOTOS_V6_EDIT("photosV6-edit"),
PHOTOS_V6_TV_ALBUMS("photosV6-tv-albums"),
PMS_HEALTH("pms_health"), PMS_HEALTH("pms_health"),
PREMIUM_DASHBOARD("premium-dashboard"),
PREMIUM_MUSIC_METADATA("premium_music_metadata"),
RADIO("radio"), RADIO("radio"),
RATE_LIMIT_CLIENT_TOKEN("rate-limit-client-token"), RATE_LIMIT_CLIENT_TOKEN("rate-limit-client-token"),
SCROBBLING_SERVICE_PLEX_TV("scrobbling-service-plex-tv"), SCROBBLING_SERVICE_PLEX_TV("scrobbling-service-plex-tv"),
SESSION_BANDWIDTH_RESTRICTIONS("session_bandwidth_restrictions"),
SESSION_KICK("session_kick"),
SHARED_SERVER_NOTIFICATION("shared_server_notification"), SHARED_SERVER_NOTIFICATION("shared_server_notification"),
SHARED_SOURCE_NOTIFICATION("shared_source_notification"), SHARED_SOURCE_NOTIFICATION("shared_source_notification"),
SIGNIN_NOTIFICATION("signin_notification"),
SIGNIN_WITH_APPLE("signin_with_apple"), SIGNIN_WITH_APPLE("signin_with_apple"),
SILENCE_REMOVAL("silence-removal"),
SLEEP_TIMER("sleep-timer"),
SPRING_SERVE_AD_PROVIDER("spring_serve_ad_provider"), SPRING_SERVE_AD_PROVIDER("spring_serve_ad_provider"),
SYNC("sync"),
SWEET_FADES("sweet-fades"),
TRANSCODER_CACHE("transcoder_cache"), TRANSCODER_CACHE("transcoder_cache"),
TRAILERS("trailers"),
TUNER_SHARING("tuner-sharing"), TUNER_SHARING("tuner-sharing"),
TWO_FACTOR_AUTHENTICATION("two-factor-authentication"), TWO_FACTOR_AUTHENTICATION("two-factor-authentication"),
UNSUPPORTEDTUNERS("unsupportedtuners"), UNSUPPORTEDTUNERS("unsupportedtuners"),
UPGRADE3DS2("upgrade-3ds2"), UPGRADE3DS2("upgrade-3ds2"),
VISUALIZERS("visualizers"),
VOD_SCHEMA("vod-schema"), VOD_SCHEMA("vod-schema"),
VOD_CLOUDFLARE("vod_cloudflare"), VOD_CLOUDFLARE("vod_cloudflare"),
VOLUME_LEVELING("volume-leveling"),
WATCH_TOGETHER_INVITE("watch-together-invite"), WATCH_TOGETHER_INVITE("watch-together-invite"),
WEB_SERVER_DASHBOARD("web_server_dashboard"); WATCHLIST_RSS("watchlist-rss"),
WEB_SERVER_DASHBOARD("web_server_dashboard"),
WEBHOOKS("webhooks");
@JsonValue @JsonValue
private final String value; private final String value;

View File

@@ -15,28 +15,43 @@ public enum PostUsersSignInDataFeatures {
TREBLE_SHOW_FEATURES("TREBLE-show-features"), TREBLE_SHOW_FEATURES("TREBLE-show-features"),
AD_COUNTDOWN_TIMER("ad-countdown-timer"), AD_COUNTDOWN_TIMER("ad-countdown-timer"),
ADAPTIVE_BITRATE("adaptive_bitrate"), ADAPTIVE_BITRATE("adaptive_bitrate"),
ALBUM_TYPES("album-types"),
ALLOW_DVR("allow_dvr"),
AMAZON_LOOP_DEBUG("amazon-loop-debug"), AMAZON_LOOP_DEBUG("amazon-loop-debug"),
AVOD_AD_ANALYSIS("avod-ad-analysis"), AVOD_AD_ANALYSIS("avod-ad-analysis"),
AVOD_NEW_MEDIA("avod-new-media"), AVOD_NEW_MEDIA("avod-new-media"),
BLACKLIST_GET_SIGNIN("blacklist_get_signin"), BLACKLIST_GET_SIGNIN("blacklist_get_signin"),
BOOST_VOICES("boost-voices"),
CAMERA_UPLOAD("camera_upload"),
CLIENT_RADIO_STATIONS("client-radio-stations"), CLIENT_RADIO_STATIONS("client-radio-stations"),
CLOUDFLARE_TURNSTILE_REQUIRED("cloudflare-turnstile-required"), CLOUDFLARE_TURNSTILE_REQUIRED("cloudflare-turnstile-required"),
CLOUDSYNC("cloudsync"),
COLLECTIONS("collections"), COLLECTIONS("collections"),
COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS("comments_and_replies_push_notifications"), COMMENTS_AND_REPLIES_PUSH_NOTIFICATIONS("comments_and_replies_push_notifications"),
COMMUNITY_ACCESS_PLEX_TV("community_access_plex_tv"), COMMUNITY_ACCESS_PLEX_TV("community_access_plex_tv"),
COMPANIONS_SONOS("companions_sonos"), COMPANIONS_SONOS("companions_sonos"),
CONTENT_FILTER("content_filter"),
CUSTOM_HOME_REMOVAL("custom-home-removal"), CUSTOM_HOME_REMOVAL("custom-home-removal"),
DISABLE_HOME_USER_FRIENDSHIPS("disable_home_user_friendships"), DISABLE_HOME_USER_FRIENDSHIPS("disable_home_user_friendships"),
DISABLE_SHARING_FRIENDSHIPS("disable_sharing_friendships"), DISABLE_SHARING_FRIENDSHIPS("disable_sharing_friendships"),
DOWNLOADS_GATING("downloads-gating"),
DRM_SUPPORT("drm_support"), DRM_SUPPORT("drm_support"),
DVR("dvr"),
DVR_BLOCK_UNSUPPORTED_COUNTRIES("dvr-block-unsupported-countries"),
EPG_RECENT_CHANNELS("epg-recent-channels"),
EXCLUDE_RESTRICTIONS("exclude restrictions"), EXCLUDE_RESTRICTIONS("exclude restrictions"),
FEDERATED_AUTH("federated-auth"), FEDERATED_AUTH("federated-auth"),
FRIEND_REQUEST_PUSH_NOTIFICATIONS("friend_request_push_notifications"), FRIEND_REQUEST_PUSH_NOTIFICATIONS("friend_request_push_notifications"),
GRANDFATHER_SYNC("grandfather-sync"),
GUIDED_UPGRADE("guided-upgrade"), GUIDED_UPGRADE("guided-upgrade"),
HARDWARE_TRANSCODING("hardware_transcoding"),
HOME("home"), HOME("home"),
HWTRANSCODE("hwtranscode"),
IMAGGA_V2("imagga-v2"),
INCREASE_PASSWORD_COMPLEXITY("increase-password-complexity"), INCREASE_PASSWORD_COMPLEXITY("increase-password-complexity"),
IOS14_PRIVACY_BANNER("ios14-privacy-banner"), IOS14_PRIVACY_BANNER("ios14-privacy-banner"),
ITERABLE_NOTIFICATION_TOKENS("iterable-notification-tokens"), ITERABLE_NOTIFICATION_TOKENS("iterable-notification-tokens"),
ITEM_CLUSTERS("item_clusters"),
KEEP_PAYMENT_METHOD("keep-payment-method"), KEEP_PAYMENT_METHOD("keep-payment-method"),
KEVIN_BACON("kevin-bacon"), KEVIN_BACON("kevin-bacon"),
KOREA_CONSENT("korea-consent"), KOREA_CONSENT("korea-consent"),
@@ -45,28 +60,49 @@ public enum PostUsersSignInDataFeatures {
LIGHTNING_DVR_PIVOT("lightning-dvr-pivot"), LIGHTNING_DVR_PIVOT("lightning-dvr-pivot"),
LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS("live-tv-support-incomplete-segments"), LIVE_TV_SUPPORT_INCOMPLETE_SEGMENTS("live-tv-support-incomplete-segments"),
LIVETV("livetv"), LIVETV("livetv"),
LYRICS("lyrics"),
METADATA_SEARCH("metadata_search"), METADATA_SEARCH("metadata_search"),
MUSIC_ANALYSIS("music-analysis"),
MUSIC_VIDEOS("music_videos"),
NEW_PLEX_PASS_PRICES("new_plex_pass_prices"), NEW_PLEX_PASS_PRICES("new_plex_pass_prices"),
NEWS_PROVIDER_SUNSET_MODAL("news-provider-sunset-modal"), NEWS_PROVIDER_SUNSET_MODAL("news-provider-sunset-modal"),
NOMINATIM("nominatim"),
PASS("pass"),
PHOTOS_FAVORITES("photos-favorites"), PHOTOS_FAVORITES("photos-favorites"),
PHOTOS_METADATA_EDITION("photos-metadata-edition"), PHOTOS_METADATA_EDITION("photos-metadata-edition"),
PHOTOS_V6_EDIT("photosV6-edit"),
PHOTOS_V6_TV_ALBUMS("photosV6-tv-albums"),
PMS_HEALTH("pms_health"), PMS_HEALTH("pms_health"),
PREMIUM_DASHBOARD("premium-dashboard"),
PREMIUM_MUSIC_METADATA("premium_music_metadata"),
RADIO("radio"), RADIO("radio"),
RATE_LIMIT_CLIENT_TOKEN("rate-limit-client-token"), RATE_LIMIT_CLIENT_TOKEN("rate-limit-client-token"),
SCROBBLING_SERVICE_PLEX_TV("scrobbling-service-plex-tv"), SCROBBLING_SERVICE_PLEX_TV("scrobbling-service-plex-tv"),
SESSION_BANDWIDTH_RESTRICTIONS("session_bandwidth_restrictions"),
SESSION_KICK("session_kick"),
SHARED_SERVER_NOTIFICATION("shared_server_notification"), SHARED_SERVER_NOTIFICATION("shared_server_notification"),
SHARED_SOURCE_NOTIFICATION("shared_source_notification"), SHARED_SOURCE_NOTIFICATION("shared_source_notification"),
SIGNIN_NOTIFICATION("signin_notification"),
SIGNIN_WITH_APPLE("signin_with_apple"), SIGNIN_WITH_APPLE("signin_with_apple"),
SILENCE_REMOVAL("silence-removal"),
SLEEP_TIMER("sleep-timer"),
SPRING_SERVE_AD_PROVIDER("spring_serve_ad_provider"), SPRING_SERVE_AD_PROVIDER("spring_serve_ad_provider"),
SYNC("sync"),
SWEET_FADES("sweet-fades"),
TRANSCODER_CACHE("transcoder_cache"), TRANSCODER_CACHE("transcoder_cache"),
TRAILERS("trailers"),
TUNER_SHARING("tuner-sharing"), TUNER_SHARING("tuner-sharing"),
TWO_FACTOR_AUTHENTICATION("two-factor-authentication"), TWO_FACTOR_AUTHENTICATION("two-factor-authentication"),
UNSUPPORTEDTUNERS("unsupportedtuners"), UNSUPPORTEDTUNERS("unsupportedtuners"),
UPGRADE3DS2("upgrade-3ds2"), UPGRADE3DS2("upgrade-3ds2"),
VISUALIZERS("visualizers"),
VOD_SCHEMA("vod-schema"), VOD_SCHEMA("vod-schema"),
VOD_CLOUDFLARE("vod_cloudflare"), VOD_CLOUDFLARE("vod_cloudflare"),
VOLUME_LEVELING("volume-leveling"),
WATCH_TOGETHER_INVITE("watch-together-invite"), WATCH_TOGETHER_INVITE("watch-together-invite"),
WEB_SERVER_DASHBOARD("web_server_dashboard"); WATCHLIST_RSS("watchlist-rss"),
WEB_SERVER_DASHBOARD("web_server_dashboard"),
WEBHOOKS("webhooks");
@JsonValue @JsonValue
private final String value; private final String value;

View File

@@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonValue;
import java.lang.String; import java.lang.String;
/** /**
* PostUsersSignInDataMailingListStatus - Your current mailing list status * PostUsersSignInDataMailingListStatus - Your current mailing list status (active or unsubscribed)
*/ */
public enum PostUsersSignInDataMailingListStatus { public enum PostUsersSignInDataMailingListStatus {
ACTIVE("active"), ACTIVE("active"),

View File

@@ -19,10 +19,7 @@ import java.util.Optional;
public class PostUsersSignInDataRequest { public class PostUsersSignInDataRequest {
/** /**
* The unique identifier for the client application * 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)
* This is used to track the client application and its usage
* (UUID, serial number, or other number unique per device)
*
*/ */
@SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier") @SpeakeasyMetadata("queryParam:style=form,explode=true,name=X-Plex-Client-Identifier")
private Optional<String> clientID; private Optional<String> clientID;
@@ -72,10 +69,7 @@ public class PostUsersSignInDataRequest {
} }
/** /**
* The unique identifier for the client application * 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)
* This is used to track the client application and its usage
* (UUID, serial number, or other number unique per device)
*
*/ */
@JsonIgnore @JsonIgnore
public Optional<String> clientID() { public Optional<String> clientID() {
@@ -116,10 +110,7 @@ public class PostUsersSignInDataRequest {
} }
/** /**
* The unique identifier for the client application * 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)
* This is used to track the client application and its usage
* (UUID, serial number, or other number unique per device)
*
*/ */
public PostUsersSignInDataRequest withClientID(String clientID) { public PostUsersSignInDataRequest withClientID(String clientID) {
Utils.checkNotNull(clientID, "clientID"); Utils.checkNotNull(clientID, "clientID");
@@ -128,10 +119,7 @@ public class PostUsersSignInDataRequest {
} }
/** /**
* The unique identifier for the client application * 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)
* This is used to track the client application and its usage
* (UUID, serial number, or other number unique per device)
*
*/ */
public PostUsersSignInDataRequest withClientID(Optional<String> clientID) { public PostUsersSignInDataRequest withClientID(Optional<String> clientID) {
Utils.checkNotNull(clientID, "clientID"); Utils.checkNotNull(clientID, "clientID");
@@ -264,10 +252,7 @@ public class PostUsersSignInDataRequest {
} }
/** /**
* The unique identifier for the client application * 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)
* This is used to track the client application and its usage
* (UUID, serial number, or other number unique per device)
*
*/ */
public Builder clientID(String clientID) { public Builder clientID(String clientID) {
Utils.checkNotNull(clientID, "clientID"); Utils.checkNotNull(clientID, "clientID");
@@ -276,10 +261,7 @@ public class PostUsersSignInDataRequest {
} }
/** /**
* The unique identifier for the client application * 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)
* This is used to track the client application and its usage
* (UUID, serial number, or other number unique per device)
*
*/ */
public Builder clientID(Optional<String> clientID) { public Builder clientID(Optional<String> clientID) {
Utils.checkNotNull(clientID, "clientID"); Utils.checkNotNull(clientID, "clientID");

View File

@@ -179,7 +179,7 @@ public class PostUsersSignInDataUserPlexAccount {
private Optional<Boolean> mailingListActive; private Optional<Boolean> mailingListActive;
/** /**
* Your current mailing list status * Your current mailing list status (active or unsubscribed)
*/ */
@JsonProperty("mailingListStatus") @JsonProperty("mailingListStatus")
private PostUsersSignInDataMailingListStatus mailingListStatus; private PostUsersSignInDataMailingListStatus mailingListStatus;
@@ -631,7 +631,7 @@ public class PostUsersSignInDataUserPlexAccount {
} }
/** /**
* Your current mailing list status * Your current mailing list status (active or unsubscribed)
*/ */
@JsonIgnore @JsonIgnore
public PostUsersSignInDataMailingListStatus mailingListStatus() { public PostUsersSignInDataMailingListStatus mailingListStatus() {
@@ -1112,7 +1112,7 @@ public class PostUsersSignInDataUserPlexAccount {
} }
/** /**
* Your current mailing list status * Your current mailing list status (active or unsubscribed)
*/ */
public PostUsersSignInDataUserPlexAccount withMailingListStatus(PostUsersSignInDataMailingListStatus mailingListStatus) { public PostUsersSignInDataUserPlexAccount withMailingListStatus(PostUsersSignInDataMailingListStatus mailingListStatus) {
Utils.checkNotNull(mailingListStatus, "mailingListStatus"); Utils.checkNotNull(mailingListStatus, "mailingListStatus");
@@ -1915,7 +1915,7 @@ public class PostUsersSignInDataUserPlexAccount {
} }
/** /**
* Your current mailing list status * Your current mailing list status (active or unsubscribed)
*/ */
public Builder mailingListStatus(PostUsersSignInDataMailingListStatus mailingListStatus) { public Builder mailingListStatus(PostUsersSignInDataMailingListStatus mailingListStatus) {
Utils.checkNotNull(mailingListStatus, "mailingListStatus"); Utils.checkNotNull(mailingListStatus, "mailingListStatus");

View File

@@ -170,6 +170,7 @@ public class SDKMethodInterfaces {
Optional<? extends IncludeHttps> includeHttps, Optional<? extends IncludeHttps> includeHttps,
Optional<? extends IncludeRelay> includeRelay, Optional<? extends IncludeRelay> includeRelay,
Optional<? extends IncludeIPv6> includeIPv6, Optional<? extends IncludeIPv6> includeIPv6,
Optional<String> clientID,
Optional<String> serverURL) throws Exception; Optional<String> serverURL) throws Exception;
} }
@@ -183,7 +184,7 @@ public class SDKMethodInterfaces {
public interface MethodCallGetTokenByPinId { public interface MethodCallGetTokenByPinId {
GetTokenByPinIdResponse getTokenByPinId( GetTokenByPinIdResponse getTokenByPinId(
long pinID, GetTokenByPinIdRequest request,
Optional<String> serverURL) throws Exception; Optional<String> serverURL) throws Exception;
} }