mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 12:37:46 +00:00
Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
13cd8a7fe5 | ||
|
|
cdcdc0ca8e | ||
|
|
b03cc6a609 | ||
|
|
4e989e0de3 | ||
|
|
c10e011a68 | ||
|
|
7e3dca8466 | ||
|
|
8a2d3e04ab | ||
|
|
6c8a73ae84 | ||
|
|
c839d9f6c7 | ||
|
|
77b0ef9507 | ||
|
|
1cfbd17f28 | ||
|
|
2492807c65 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,5 @@
|
|||||||
|
/.speakeasy/reports
|
||||||
|
/react-query
|
||||||
/sdk/models/errors
|
/sdk/models/errors
|
||||||
/sdk/types
|
/sdk/types
|
||||||
/__tests__
|
/__tests__
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
**/*
|
**/*
|
||||||
|
!/FUNCTIONS.md
|
||||||
|
!/RUNTIMES.md
|
||||||
|
!/REACT_QUERY.md
|
||||||
!/**/*.ts
|
!/**/*.ts
|
||||||
!/**/*.js
|
!/**/*.js
|
||||||
|
!/**/*.json
|
||||||
!/**/*.map
|
!/**/*.map
|
||||||
|
|
||||||
/.eslintrc.js
|
/.eslintrc.js
|
||||||
|
|||||||
1555
.speakeasy/gen.lock
1555
.speakeasy/gen.lock
File diff suppressed because one or more lines are too long
@@ -11,8 +11,9 @@ generation:
|
|||||||
requestResponseComponentNamesFeb2024: true
|
requestResponseComponentNamesFeb2024: true
|
||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: true
|
oAuth2ClientCredentialsEnabled: true
|
||||||
|
oAuth2PasswordEnabled: false
|
||||||
typescript:
|
typescript:
|
||||||
version: 0.24.0
|
version: 0.32.3
|
||||||
additionalDependencies:
|
additionalDependencies:
|
||||||
dependencies: {}
|
dependencies: {}
|
||||||
devDependencies: {}
|
devDependencies: {}
|
||||||
@@ -20,8 +21,12 @@ typescript:
|
|||||||
additionalPackageJSON: {}
|
additionalPackageJSON: {}
|
||||||
author: LukeHagar
|
author: LukeHagar
|
||||||
clientServerStatusCodesAsErrors: true
|
clientServerStatusCodesAsErrors: true
|
||||||
|
defaultErrorName: SDKError
|
||||||
|
enableCustomCodeRegions: false
|
||||||
|
enableReactQuery: false
|
||||||
enumFormat: enum
|
enumFormat: enum
|
||||||
flattenGlobalSecurity: true
|
flattenGlobalSecurity: true
|
||||||
|
flatteningOrder: body-first
|
||||||
imports:
|
imports:
|
||||||
option: openapi
|
option: openapi
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
speakeasyVersion: 1.405.6
|
speakeasyVersion: 1.476.1
|
||||||
sources:
|
sources:
|
||||||
my-source:
|
my-source:
|
||||||
sourceNamespace: my-source
|
sourceNamespace: my-source
|
||||||
@@ -9,26 +9,29 @@ sources:
|
|||||||
- main
|
- main
|
||||||
plexapi:
|
plexapi:
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:c52cde0b8d51e160f7b9f1a3d3ea4dbb1aca6d5caad714e549201fb757fadd57
|
sourceRevisionDigest: sha256:e73707dfae50d22dab2166b1661938446b9831bcee252ecd696a1172dfd6ae2c
|
||||||
sourceBlobDigest: sha256:f417b03ff71356808554313f24c3d06d670474bf51bc9a0631de1ad49c13a361
|
sourceBlobDigest: sha256:e06caa091ad527fd21714fc0d43e7ea385e181fbad8c4f60296457a89a23c696
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- main
|
- speakeasy-sdk-regen-1737936609
|
||||||
|
- 0.0.3
|
||||||
targets:
|
targets:
|
||||||
plexjs:
|
plexjs:
|
||||||
source: plexapi
|
source: plexapi
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:c52cde0b8d51e160f7b9f1a3d3ea4dbb1aca6d5caad714e549201fb757fadd57
|
sourceRevisionDigest: sha256:e73707dfae50d22dab2166b1661938446b9831bcee252ecd696a1172dfd6ae2c
|
||||||
sourceBlobDigest: sha256:f417b03ff71356808554313f24c3d06d670474bf51bc9a0631de1ad49c13a361
|
sourceBlobDigest: sha256:e06caa091ad527fd21714fc0d43e7ea385e181fbad8c4f60296457a89a23c696
|
||||||
codeSamplesNamespace: code-samples-typescript-plexjs
|
codeSamplesNamespace: code-samples-typescript-plexjs
|
||||||
codeSamplesRevisionDigest: sha256:0f48dbf8695dfd00a5ebd3fec72c0d71282b0d395790fe53811866c2756be38d
|
codeSamplesRevisionDigest: sha256:ceb94c490199e79d3092cc6c72e3bbc11694bf1bf4b0e57849ac2a857fe116cc
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: latest
|
speakeasyVersion: latest
|
||||||
sources:
|
sources:
|
||||||
plexapi:
|
plexapi:
|
||||||
inputs:
|
inputs:
|
||||||
- location: registry.speakeasyapi.dev/plexapi/plexapi/plexapi:main
|
- location: https://raw.githubusercontent.com/LukeHagar/plex-api-spec/refs/heads/main/output/plex-media-server-spec-dereferenced.yaml
|
||||||
|
registry:
|
||||||
|
location: registry.speakeasyapi.dev/plexapi/plexapi/plexapi
|
||||||
targets:
|
targets:
|
||||||
plexjs:
|
plexjs:
|
||||||
target: typescript
|
target: typescript
|
||||||
|
|||||||
@@ -3,7 +3,9 @@ speakeasyVersion: latest
|
|||||||
sources:
|
sources:
|
||||||
plexapi:
|
plexapi:
|
||||||
inputs:
|
inputs:
|
||||||
- location: registry.speakeasyapi.dev/plexapi/plexapi/plexapi:main
|
- location: https://raw.githubusercontent.com/LukeHagar/plex-api-spec/refs/heads/main/output/plex-media-server-spec-dereferenced.yaml
|
||||||
|
registry:
|
||||||
|
location: registry.speakeasyapi.dev/plexapi/plexapi/plexapi
|
||||||
targets:
|
targets:
|
||||||
plexjs:
|
plexjs:
|
||||||
target: typescript
|
target: typescript
|
||||||
|
|||||||
@@ -27,11 +27,6 @@ import { SDKValidationError } from "@lukehagar/plexjs/sdk/models/errors/sdkvalid
|
|||||||
// You can create one instance of it to use across an application.
|
// You can create one instance of it to use across an application.
|
||||||
const plexAPI = new PlexAPICore({
|
const plexAPI = new PlexAPICore({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
|
|||||||
365
README.md
365
README.md
@@ -40,19 +40,26 @@ The following SDKs are generated from the OpenAPI Specification. They are automa
|
|||||||
|
|
||||||
<!-- Start Table of Contents [toc] -->
|
<!-- Start Table of Contents [toc] -->
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
<!-- $toc-max-depth=2 -->
|
||||||
|
* [@lukehagar/plexjs](#lukehagarplexjs)
|
||||||
|
* [Plex Media Server OpenAPI Specification](#plex-media-server-openapi-specification)
|
||||||
|
* [Documentation](#documentation)
|
||||||
|
* [SDKs](#sdks)
|
||||||
|
* [SDK Installation](#sdk-installation)
|
||||||
|
* [SDK Example Usage](#sdk-example-usage)
|
||||||
|
* [Available Resources and Operations](#available-resources-and-operations)
|
||||||
|
* [Error Handling](#error-handling)
|
||||||
|
* [Server Selection](#server-selection)
|
||||||
|
* [Custom HTTP Client](#custom-http-client)
|
||||||
|
* [Authentication](#authentication)
|
||||||
|
* [Requirements](#requirements)
|
||||||
|
* [Standalone functions](#standalone-functions)
|
||||||
|
* [Retries](#retries)
|
||||||
|
* [Debugging](#debugging)
|
||||||
|
* [Development](#development)
|
||||||
|
* [Maturity](#maturity)
|
||||||
|
* [Contributions](#contributions)
|
||||||
|
|
||||||
* [SDK Installation](#sdk-installation)
|
|
||||||
* [Requirements](#requirements)
|
|
||||||
* [SDK Example Usage](#sdk-example-usage)
|
|
||||||
* [Available Resources and Operations](#available-resources-and-operations)
|
|
||||||
* [Standalone functions](#standalone-functions)
|
|
||||||
* [Global Parameters](#global-parameters)
|
|
||||||
* [Retries](#retries)
|
|
||||||
* [Error Handling](#error-handling)
|
|
||||||
* [Server Selection](#server-selection)
|
|
||||||
* [Custom HTTP Client](#custom-http-client)
|
|
||||||
* [Authentication](#authentication)
|
|
||||||
* [Debugging](#debugging)
|
|
||||||
<!-- End Table of Contents [toc] -->
|
<!-- End Table of Contents [toc] -->
|
||||||
|
|
||||||
<!-- Start SDK Installation [installation] -->
|
<!-- Start SDK Installation [installation] -->
|
||||||
@@ -98,11 +105,6 @@ import { PlexAPI } from "@lukehagar/plexjs";
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -159,6 +161,7 @@ run();
|
|||||||
* [getLibraryItems](docs/sdks/library/README.md#getlibraryitems) - Get Library Items
|
* [getLibraryItems](docs/sdks/library/README.md#getlibraryitems) - Get Library Items
|
||||||
* [getRefreshLibraryMetadata](docs/sdks/library/README.md#getrefreshlibrarymetadata) - Refresh Metadata Of The Library
|
* [getRefreshLibraryMetadata](docs/sdks/library/README.md#getrefreshlibrarymetadata) - Refresh Metadata Of The Library
|
||||||
* [getSearchLibrary](docs/sdks/library/README.md#getsearchlibrary) - Search Library
|
* [getSearchLibrary](docs/sdks/library/README.md#getsearchlibrary) - Search Library
|
||||||
|
* [getSearchAllLibraries](docs/sdks/library/README.md#getsearchalllibraries) - Search All Libraries
|
||||||
* [getMetaDataByRatingKey](docs/sdks/library/README.md#getmetadatabyratingkey) - Get Metadata by RatingKey
|
* [getMetaDataByRatingKey](docs/sdks/library/README.md#getmetadatabyratingkey) - Get Metadata by RatingKey
|
||||||
* [getMetadataChildren](docs/sdks/library/README.md#getmetadatachildren) - Get Items Children
|
* [getMetadataChildren](docs/sdks/library/README.md#getmetadatachildren) - Get Items Children
|
||||||
* [getTopWatchedContent](docs/sdks/library/README.md#gettopwatchedcontent) - Get Top Watched Content
|
* [getTopWatchedContent](docs/sdks/library/README.md#gettopwatchedcontent) - Get Top Watched Content
|
||||||
@@ -253,25 +256,15 @@ run();
|
|||||||
<!-- Start Error Handling [errors] -->
|
<!-- Start Error Handling [errors] -->
|
||||||
## Error Handling
|
## Error Handling
|
||||||
|
|
||||||
All SDK methods return a response object or throw an error. By default, an API error will throw a `errors.SDKError`.
|
Some methods specify known errors which can be thrown. All the known errors are enumerated in the `sdk/models/errors/errors.ts` module. The known errors for a method are documented under the *Errors* tables in SDK docs. For example, the `getServerCapabilities` method may throw the following errors:
|
||||||
|
|
||||||
If a HTTP request fails, an operation my also throw an error from the `sdk/models/errors/httpclienterrors.ts` module:
|
| Error Type | Status Code | Content Type |
|
||||||
|
| ---------------------------------------- | ----------- | ---------------- |
|
||||||
|
| errors.GetServerCapabilitiesBadRequest | 400 | application/json |
|
||||||
|
| errors.GetServerCapabilitiesUnauthorized | 401 | application/json |
|
||||||
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
||||||
|
|
||||||
| HTTP Client Error | Description |
|
If the method throws an error and it is not captured by the known errors, it will default to throwing a `SDKError`.
|
||||||
| ---------------------------------------------------- | ---------------------------------------------------- |
|
|
||||||
| RequestAbortedError | HTTP request was aborted by the client |
|
|
||||||
| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
|
|
||||||
| ConnectionError | HTTP client was unable to make a request to a server |
|
|
||||||
| InvalidRequestError | Any input used to create a request is invalid |
|
|
||||||
| UnexpectedClientError | Unrecognised or unexpected error |
|
|
||||||
|
|
||||||
In addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `getServerCapabilities` method may throw the following errors:
|
|
||||||
|
|
||||||
| Error Type | Status Code | Content Type |
|
|
||||||
| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- |
|
|
||||||
| errors.GetServerCapabilitiesBadRequest | 400 | application/json |
|
|
||||||
| errors.GetServerCapabilitiesUnauthorized | 401 | application/json |
|
|
||||||
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { PlexAPI } from "@lukehagar/plexjs";
|
import { PlexAPI } from "@lukehagar/plexjs";
|
||||||
@@ -283,11 +276,6 @@ import {
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -299,8 +287,9 @@ async function run() {
|
|||||||
console.log(result);
|
console.log(result);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
switch (true) {
|
switch (true) {
|
||||||
|
// The server response does not match the expected SDK schema
|
||||||
case (err instanceof SDKValidationError): {
|
case (err instanceof SDKValidationError): {
|
||||||
// Validation errors can be pretty-printed
|
// Pretty-print will provide a human-readable multi-line error message
|
||||||
console.error(err.pretty());
|
console.error(err.pretty());
|
||||||
// Raw value may also be inspected
|
// Raw value may also be inspected
|
||||||
console.error(err.rawValue);
|
console.error(err.rawValue);
|
||||||
@@ -317,6 +306,7 @@ async function run() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
// Other errors such as network errors, see HTTPClientErrors for more details
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -327,66 +317,38 @@ run();
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted string since validation errors can list many issues and the plain error string may be difficult read when debugging.
|
Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted multi-line string since validation errors can list many issues and the plain error string may be difficult read when debugging.
|
||||||
|
|
||||||
|
In some rare cases, the SDK can fail to get a response from the server or even make the request due to unexpected circumstances such as network conditions. These types of errors are captured in the `sdk/models/errors/httpclienterrors.ts` module:
|
||||||
|
|
||||||
|
| HTTP Client Error | Description |
|
||||||
|
| ---------------------------------------------------- | ---------------------------------------------------- |
|
||||||
|
| RequestAbortedError | HTTP request was aborted by the client |
|
||||||
|
| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
|
||||||
|
| ConnectionError | HTTP client was unable to make a request to a server |
|
||||||
|
| InvalidRequestError | Any input used to create a request is invalid |
|
||||||
|
| UnexpectedClientError | Unrecognised or unexpected error |
|
||||||
<!-- End Error Handling [errors] -->
|
<!-- End Error Handling [errors] -->
|
||||||
|
|
||||||
<!-- Start Server Selection [server] -->
|
<!-- Start Server Selection [server] -->
|
||||||
## Server Selection
|
## Server Selection
|
||||||
|
|
||||||
### Select Server by Index
|
### Server Variables
|
||||||
|
|
||||||
You can override the default server globally by passing a server index to the `serverIdx` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
|
The default server `{protocol}://{ip}:{port}` contains variables and is set to `https://10.10.10.47:32400` by default. To override default values, the following parameters are available when initializing the SDK client instance:
|
||||||
|
|
||||||
| # | Server | Variables |
|
|
||||||
| - | ------ | --------- |
|
|
||||||
| 0 | `{protocol}://{ip}:{port}` | `protocol` (default is `https`), `ip` (default is `10.10.10.47`), `port` (default is `32400`) |
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import { PlexAPI } from "@lukehagar/plexjs";
|
|
||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
|
||||||
serverIdx: 0,
|
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await plexAPI.server.getServerCapabilities();
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result);
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Variables
|
|
||||||
|
|
||||||
Some of the server options above contain variables. If you want to set the values of those variables, the following optional parameters are available when initializing the SDK client instance:
|
|
||||||
* `protocol: models.ServerProtocol`
|
* `protocol: models.ServerProtocol`
|
||||||
* `ip: string`
|
* `ip: string`
|
||||||
* `port: string`
|
* `port: string`
|
||||||
|
|
||||||
### Override Server URL Per-Client
|
### Override Server URL Per-Client
|
||||||
|
|
||||||
The default server can also be overridden globally by passing a URL to the `serverURL` optional parameter when initializing the SDK client instance. For example:
|
The default server can also be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example:
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { PlexAPI } from "@lukehagar/plexjs";
|
import { PlexAPI } from "@lukehagar/plexjs";
|
||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
serverURL: "{protocol}://{ip}:{port}",
|
serverURL: "https://10.10.10.47:32400",
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -399,20 +361,15 @@ async function run() {
|
|||||||
run();
|
run();
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Override Server URL Per-Operation
|
### Override Server URL Per-Operation
|
||||||
|
|
||||||
The server URL can also be overridden on a per-operation basis, provided a server list was specified for the operation. For example:
|
The server URL can also be overridden on a per-operation basis, provided a server list was specified for the operation. For example:
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { PlexAPI } from "@lukehagar/plexjs";
|
import { PlexAPI } from "@lukehagar/plexjs";
|
||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -485,9 +442,9 @@ const sdk = new PlexAPI({ httpClient });
|
|||||||
|
|
||||||
This SDK supports the following security scheme globally:
|
This SDK supports the following security scheme globally:
|
||||||
|
|
||||||
| Name | Type | Scheme |
|
| Name | Type | Scheme |
|
||||||
| ------------- | ------------- | ------------- |
|
| ------------- | ------ | ------- |
|
||||||
| `accessToken` | apiKey | API key |
|
| `accessToken` | apiKey | API key |
|
||||||
|
|
||||||
To authenticate with the API the `accessToken` parameter must be set when initializing the SDK client instance. For example:
|
To authenticate with the API the `accessToken` parameter must be set when initializing the SDK client instance. For example:
|
||||||
```typescript
|
```typescript
|
||||||
@@ -495,11 +452,6 @@ import { PlexAPI } from "@lukehagar/plexjs";
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -535,143 +487,86 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|||||||
|
|
||||||
<summary>Available standalone functions</summary>
|
<summary>Available standalone functions</summary>
|
||||||
|
|
||||||
- [activitiesCancelServerActivities](docs/sdks/activities/README.md#cancelserveractivities)
|
- [`activitiesCancelServerActivities`](docs/sdks/activities/README.md#cancelserveractivities) - Cancel Server Activities
|
||||||
- [activitiesGetServerActivities](docs/sdks/activities/README.md#getserveractivities)
|
- [`activitiesGetServerActivities`](docs/sdks/activities/README.md#getserveractivities) - Get Server Activities
|
||||||
- [authenticationGetSourceConnectionInformation](docs/sdks/authentication/README.md#getsourceconnectioninformation)
|
- [`authenticationGetSourceConnectionInformation`](docs/sdks/authentication/README.md#getsourceconnectioninformation) - Get Source Connection Information
|
||||||
- [authenticationGetTokenDetails](docs/sdks/authentication/README.md#gettokendetails)
|
- [`authenticationGetTokenDetails`](docs/sdks/authentication/README.md#gettokendetails) - Get Token Details
|
||||||
- [authenticationGetTransientToken](docs/sdks/authentication/README.md#gettransienttoken)
|
- [`authenticationGetTransientToken`](docs/sdks/authentication/README.md#gettransienttoken) - Get a Transient Token
|
||||||
- [authenticationPostUsersSignInData](docs/sdks/authentication/README.md#postuserssignindata)
|
- [`authenticationPostUsersSignInData`](docs/sdks/authentication/README.md#postuserssignindata) - Get User Sign In Data
|
||||||
- [butlerGetButlerTasks](docs/sdks/butler/README.md#getbutlertasks)
|
- [`butlerGetButlerTasks`](docs/sdks/butler/README.md#getbutlertasks) - Get Butler tasks
|
||||||
- [butlerStartAllTasks](docs/sdks/butler/README.md#startalltasks)
|
- [`butlerStartAllTasks`](docs/sdks/butler/README.md#startalltasks) - Start all Butler tasks
|
||||||
- [butlerStartTask](docs/sdks/butler/README.md#starttask)
|
- [`butlerStartTask`](docs/sdks/butler/README.md#starttask) - Start a single Butler task
|
||||||
- [butlerStopAllTasks](docs/sdks/butler/README.md#stopalltasks)
|
- [`butlerStopAllTasks`](docs/sdks/butler/README.md#stopalltasks) - Stop all Butler tasks
|
||||||
- [butlerStopTask](docs/sdks/butler/README.md#stoptask)
|
- [`butlerStopTask`](docs/sdks/butler/README.md#stoptask) - Stop a single Butler task
|
||||||
- [hubsGetGlobalHubs](docs/sdks/hubs/README.md#getglobalhubs)
|
- [`hubsGetGlobalHubs`](docs/sdks/hubs/README.md#getglobalhubs) - Get Global Hubs
|
||||||
- [hubsGetLibraryHubs](docs/sdks/hubs/README.md#getlibraryhubs)
|
- [`hubsGetLibraryHubs`](docs/sdks/hubs/README.md#getlibraryhubs) - Get library specific hubs
|
||||||
- [hubsGetRecentlyAdded](docs/sdks/hubs/README.md#getrecentlyadded)
|
- [`hubsGetRecentlyAdded`](docs/sdks/hubs/README.md#getrecentlyadded) - Get Recently Added
|
||||||
- [libraryDeleteLibrary](docs/sdks/library/README.md#deletelibrary)
|
- [`libraryDeleteLibrary`](docs/sdks/library/README.md#deletelibrary) - Delete Library Section
|
||||||
- [libraryGetAllLibraries](docs/sdks/library/README.md#getalllibraries)
|
- [`libraryGetAllLibraries`](docs/sdks/library/README.md#getalllibraries) - Get All Libraries
|
||||||
- [libraryGetFileHash](docs/sdks/library/README.md#getfilehash)
|
- [`libraryGetFileHash`](docs/sdks/library/README.md#getfilehash) - Get Hash Value
|
||||||
- [libraryGetLibraryDetails](docs/sdks/library/README.md#getlibrarydetails)
|
- [`libraryGetLibraryDetails`](docs/sdks/library/README.md#getlibrarydetails) - Get Library Details
|
||||||
- [libraryGetLibraryItems](docs/sdks/library/README.md#getlibraryitems)
|
- [`libraryGetLibraryItems`](docs/sdks/library/README.md#getlibraryitems) - Get Library Items
|
||||||
- [libraryGetMetaDataByRatingKey](docs/sdks/library/README.md#getmetadatabyratingkey)
|
- [`libraryGetMetaDataByRatingKey`](docs/sdks/library/README.md#getmetadatabyratingkey) - Get Metadata by RatingKey
|
||||||
- [libraryGetMetadataChildren](docs/sdks/library/README.md#getmetadatachildren)
|
- [`libraryGetMetadataChildren`](docs/sdks/library/README.md#getmetadatachildren) - Get Items Children
|
||||||
- [libraryGetOnDeck](docs/sdks/library/README.md#getondeck)
|
- [`libraryGetOnDeck`](docs/sdks/library/README.md#getondeck) - Get On Deck
|
||||||
- [libraryGetRecentlyAddedLibrary](docs/sdks/library/README.md#getrecentlyaddedlibrary)
|
- [`libraryGetRecentlyAddedLibrary`](docs/sdks/library/README.md#getrecentlyaddedlibrary) - Get Recently Added
|
||||||
- [libraryGetRefreshLibraryMetadata](docs/sdks/library/README.md#getrefreshlibrarymetadata)
|
- [`libraryGetRefreshLibraryMetadata`](docs/sdks/library/README.md#getrefreshlibrarymetadata) - Refresh Metadata Of The Library
|
||||||
- [libraryGetSearchLibrary](docs/sdks/library/README.md#getsearchlibrary)
|
- [`libraryGetSearchAllLibraries`](docs/sdks/library/README.md#getsearchalllibraries) - Search All Libraries
|
||||||
- [libraryGetTopWatchedContent](docs/sdks/library/README.md#gettopwatchedcontent)
|
- [`libraryGetSearchLibrary`](docs/sdks/library/README.md#getsearchlibrary) - Search Library
|
||||||
- [logEnablePaperTrail](docs/sdks/log/README.md#enablepapertrail)
|
- [`libraryGetTopWatchedContent`](docs/sdks/library/README.md#gettopwatchedcontent) - Get Top Watched Content
|
||||||
- [logLogLine](docs/sdks/log/README.md#logline)
|
- [`logEnablePaperTrail`](docs/sdks/log/README.md#enablepapertrail) - Enabling Papertrail
|
||||||
- [logLogMultiLine](docs/sdks/log/README.md#logmultiline)
|
- [`logLogLine`](docs/sdks/log/README.md#logline) - Logging a single line message.
|
||||||
- [mediaGetBannerImage](docs/sdks/media/README.md#getbannerimage)
|
- [`logLogMultiLine`](docs/sdks/log/README.md#logmultiline) - Logging a multi-line message
|
||||||
- [mediaGetThumbImage](docs/sdks/media/README.md#getthumbimage)
|
- [`mediaGetBannerImage`](docs/sdks/media/README.md#getbannerimage) - Get Banner Image
|
||||||
- [mediaMarkPlayed](docs/sdks/media/README.md#markplayed)
|
- [`mediaGetThumbImage`](docs/sdks/media/README.md#getthumbimage) - Get Thumb Image
|
||||||
- [mediaMarkUnplayed](docs/sdks/media/README.md#markunplayed)
|
- [`mediaMarkPlayed`](docs/sdks/media/README.md#markplayed) - Mark Media Played
|
||||||
- [mediaUpdatePlayProgress](docs/sdks/media/README.md#updateplayprogress)
|
- [`mediaMarkUnplayed`](docs/sdks/media/README.md#markunplayed) - Mark Media Unplayed
|
||||||
- [playlistsAddPlaylistContents](docs/sdks/playlists/README.md#addplaylistcontents)
|
- [`mediaUpdatePlayProgress`](docs/sdks/media/README.md#updateplayprogress) - Update Media Play Progress
|
||||||
- [playlistsClearPlaylistContents](docs/sdks/playlists/README.md#clearplaylistcontents)
|
- [`playlistsAddPlaylistContents`](docs/sdks/playlists/README.md#addplaylistcontents) - Adding to a Playlist
|
||||||
- [playlistsCreatePlaylist](docs/sdks/playlists/README.md#createplaylist)
|
- [`playlistsClearPlaylistContents`](docs/sdks/playlists/README.md#clearplaylistcontents) - Delete Playlist Contents
|
||||||
- [playlistsDeletePlaylist](docs/sdks/playlists/README.md#deleteplaylist)
|
- [`playlistsCreatePlaylist`](docs/sdks/playlists/README.md#createplaylist) - Create a Playlist
|
||||||
- [playlistsGetPlaylistContents](docs/sdks/playlists/README.md#getplaylistcontents)
|
- [`playlistsDeletePlaylist`](docs/sdks/playlists/README.md#deleteplaylist) - Deletes a Playlist
|
||||||
- [playlistsGetPlaylist](docs/sdks/playlists/README.md#getplaylist)
|
- [`playlistsGetPlaylist`](docs/sdks/playlists/README.md#getplaylist) - Retrieve Playlist
|
||||||
- [playlistsGetPlaylists](docs/sdks/playlists/README.md#getplaylists)
|
- [`playlistsGetPlaylistContents`](docs/sdks/playlists/README.md#getplaylistcontents) - Retrieve Playlist Contents
|
||||||
- [playlistsUpdatePlaylist](docs/sdks/playlists/README.md#updateplaylist)
|
- [`playlistsGetPlaylists`](docs/sdks/playlists/README.md#getplaylists) - Get All Playlists
|
||||||
- [playlistsUploadPlaylist](docs/sdks/playlists/README.md#uploadplaylist)
|
- [`playlistsUpdatePlaylist`](docs/sdks/playlists/README.md#updateplaylist) - Update a Playlist
|
||||||
- [plexGetCompanionsData](docs/sdks/plex/README.md#getcompanionsdata)
|
- [`playlistsUploadPlaylist`](docs/sdks/playlists/README.md#uploadplaylist) - Upload Playlist
|
||||||
- [plexGetGeoData](docs/sdks/plex/README.md#getgeodata)
|
- [`plexGetCompanionsData`](docs/sdks/plex/README.md#getcompanionsdata) - Get Companions Data
|
||||||
- [plexGetHomeData](docs/sdks/plex/README.md#gethomedata)
|
- [`plexGetGeoData`](docs/sdks/plex/README.md#getgeodata) - Get Geo Data
|
||||||
- [plexGetPin](docs/sdks/plex/README.md#getpin)
|
- [`plexGetHomeData`](docs/sdks/plex/README.md#gethomedata) - Get Plex Home Data
|
||||||
- [plexGetServerResources](docs/sdks/plex/README.md#getserverresources)
|
- [`plexGetPin`](docs/sdks/plex/README.md#getpin) - Get a Pin
|
||||||
- [plexGetTokenByPinId](docs/sdks/plex/README.md#gettokenbypinid)
|
- [`plexGetServerResources`](docs/sdks/plex/README.md#getserverresources) - Get Server Resources
|
||||||
- [plexGetUserFriends](docs/sdks/plex/README.md#getuserfriends)
|
- [`plexGetTokenByPinId`](docs/sdks/plex/README.md#gettokenbypinid) - Get Access Token by PinId
|
||||||
- [searchGetSearchResults](docs/sdks/search/README.md#getsearchresults)
|
- [`plexGetUserFriends`](docs/sdks/plex/README.md#getuserfriends) - Get list of friends of the user logged in
|
||||||
- [searchPerformSearch](docs/sdks/search/README.md#performsearch)
|
- [`searchGetSearchResults`](docs/sdks/search/README.md#getsearchresults) - Get Search Results
|
||||||
- [searchPerformVoiceSearch](docs/sdks/search/README.md#performvoicesearch)
|
- [`searchPerformSearch`](docs/sdks/search/README.md#performsearch) - Perform a search
|
||||||
- [serverGetAvailableClients](docs/sdks/server/README.md#getavailableclients)
|
- [`searchPerformVoiceSearch`](docs/sdks/search/README.md#performvoicesearch) - Perform a voice search
|
||||||
- [serverGetDevices](docs/sdks/server/README.md#getdevices)
|
- [`serverGetAvailableClients`](docs/sdks/server/README.md#getavailableclients) - Get Available Clients
|
||||||
- [serverGetMediaProviders](docs/sdks/server/README.md#getmediaproviders)
|
- [`serverGetDevices`](docs/sdks/server/README.md#getdevices) - Get Devices
|
||||||
- [serverGetMyPlexAccount](docs/sdks/server/README.md#getmyplexaccount)
|
- [`serverGetMediaProviders`](docs/sdks/server/README.md#getmediaproviders) - Get Media Providers
|
||||||
- [serverGetResizedPhoto](docs/sdks/server/README.md#getresizedphoto)
|
- [`serverGetMyPlexAccount`](docs/sdks/server/README.md#getmyplexaccount) - Get MyPlex Account
|
||||||
- [serverGetServerCapabilities](docs/sdks/server/README.md#getservercapabilities)
|
- [`serverGetResizedPhoto`](docs/sdks/server/README.md#getresizedphoto) - Get a Resized Photo
|
||||||
- [serverGetServerIdentity](docs/sdks/server/README.md#getserveridentity)
|
- [`serverGetServerCapabilities`](docs/sdks/server/README.md#getservercapabilities) - Get Server Capabilities
|
||||||
- [serverGetServerList](docs/sdks/server/README.md#getserverlist)
|
- [`serverGetServerIdentity`](docs/sdks/server/README.md#getserveridentity) - Get Server Identity
|
||||||
- [serverGetServerPreferences](docs/sdks/server/README.md#getserverpreferences)
|
- [`serverGetServerList`](docs/sdks/server/README.md#getserverlist) - Get Server List
|
||||||
- [sessionsGetSessionHistory](docs/sdks/sessions/README.md#getsessionhistory)
|
- [`serverGetServerPreferences`](docs/sdks/server/README.md#getserverpreferences) - Get Server Preferences
|
||||||
- [sessionsGetSessions](docs/sdks/sessions/README.md#getsessions)
|
- [`sessionsGetSessionHistory`](docs/sdks/sessions/README.md#getsessionhistory) - Get Session History
|
||||||
- [sessionsGetTranscodeSessions](docs/sdks/sessions/README.md#gettranscodesessions)
|
- [`sessionsGetSessions`](docs/sdks/sessions/README.md#getsessions) - Get Active Sessions
|
||||||
- [sessionsStopTranscodeSession](docs/sdks/sessions/README.md#stoptranscodesession)
|
- [`sessionsGetTranscodeSessions`](docs/sdks/sessions/README.md#gettranscodesessions) - Get Transcode Sessions
|
||||||
- [statisticsGetBandwidthStatistics](docs/sdks/statistics/README.md#getbandwidthstatistics)
|
- [`sessionsStopTranscodeSession`](docs/sdks/sessions/README.md#stoptranscodesession) - Stop a Transcode Session
|
||||||
- [statisticsGetResourcesStatistics](docs/sdks/statistics/README.md#getresourcesstatistics)
|
- [`statisticsGetBandwidthStatistics`](docs/sdks/statistics/README.md#getbandwidthstatistics) - Get Bandwidth Statistics
|
||||||
- [statisticsGetStatistics](docs/sdks/statistics/README.md#getstatistics)
|
- [`statisticsGetResourcesStatistics`](docs/sdks/statistics/README.md#getresourcesstatistics) - Get Resources Statistics
|
||||||
- [updaterApplyUpdates](docs/sdks/updater/README.md#applyupdates)
|
- [`statisticsGetStatistics`](docs/sdks/statistics/README.md#getstatistics) - Get Media Statistics
|
||||||
- [updaterCheckForUpdates](docs/sdks/updater/README.md#checkforupdates)
|
- [`updaterApplyUpdates`](docs/sdks/updater/README.md#applyupdates) - Apply Updates
|
||||||
- [updaterGetUpdateStatus](docs/sdks/updater/README.md#getupdatestatus)
|
- [`updaterCheckForUpdates`](docs/sdks/updater/README.md#checkforupdates) - Checking for updates
|
||||||
- [videoGetTimeline](docs/sdks/video/README.md#gettimeline)
|
- [`updaterGetUpdateStatus`](docs/sdks/updater/README.md#getupdatestatus) - Querying status of updates
|
||||||
- [videoStartUniversalTranscode](docs/sdks/video/README.md#startuniversaltranscode)
|
- [`videoGetTimeline`](docs/sdks/video/README.md#gettimeline) - Get the timeline for a media item
|
||||||
- [watchlistGetWatchList](docs/sdks/watchlist/README.md#getwatchlist)
|
- [`videoStartUniversalTranscode`](docs/sdks/video/README.md#startuniversaltranscode) - Start Universal Transcode
|
||||||
|
- [`watchlistGetWatchList`](docs/sdks/watchlist/README.md#getwatchlist) - Get User Watchlist
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
<!-- End Standalone functions [standalone-funcs] -->
|
<!-- End Standalone functions [standalone-funcs] -->
|
||||||
|
|
||||||
<!-- Start Global Parameters [global-parameters] -->
|
|
||||||
## Global Parameters
|
|
||||||
|
|
||||||
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 `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
|
|
||||||
|
|
||||||
The following global parameters are available.
|
|
||||||
|
|
||||||
| Name | Type | Required | Description |
|
|
||||||
| ---- | ---- |:--------:| ----------- |
|
|
||||||
| clientID | 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) |
|
|
||||||
| clientName | string | | The clientName parameter. |
|
|
||||||
| clientVersion | string | | The clientVersion parameter. |
|
|
||||||
| clientPlatform | string | | The clientPlatform parameter. |
|
|
||||||
| deviceName | string | | The deviceName parameter. |
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import { PlexAPI } from "@lukehagar/plexjs";
|
|
||||||
import {
|
|
||||||
IncludeHttps,
|
|
||||||
IncludeIPv6,
|
|
||||||
IncludeRelay,
|
|
||||||
} from "@lukehagar/plexjs/sdk/models/operations";
|
|
||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
|
||||||
const result = await plexAPI.plex.getServerResources(
|
|
||||||
IncludeHttps.Enable,
|
|
||||||
IncludeRelay.Enable,
|
|
||||||
IncludeIPv6.Enable,
|
|
||||||
"gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
);
|
|
||||||
|
|
||||||
// Handle the result
|
|
||||||
console.log(result);
|
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
|
|
||||||
```
|
|
||||||
<!-- End Global Parameters [global-parameters] -->
|
|
||||||
|
|
||||||
<!-- Start Retries [retries] -->
|
<!-- Start Retries [retries] -->
|
||||||
## Retries
|
## Retries
|
||||||
|
|
||||||
@@ -683,11 +578,6 @@ import { PlexAPI } from "@lukehagar/plexjs";
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -728,11 +618,6 @@ const plexAPI = new PlexAPI({
|
|||||||
retryConnectionErrors: false,
|
retryConnectionErrors: false,
|
||||||
},
|
},
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
|
|||||||
110
RELEASES.md
110
RELEASES.md
@@ -1079,3 +1079,113 @@ Based on:
|
|||||||
- [typescript v0.24.0] .
|
- [typescript v0.24.0] .
|
||||||
### Releases
|
### Releases
|
||||||
- [NPM v0.24.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.24.0 - .
|
- [NPM v0.24.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.24.0 - .
|
||||||
|
|
||||||
|
## 2024-10-01 15:35:33
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.405.6 (2.428.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.24.1] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.24.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.24.1 - .
|
||||||
|
|
||||||
|
## 2024-10-02 02:28:25
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.405.6 (2.428.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.24.2] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.24.2] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.24.2 - .
|
||||||
|
|
||||||
|
## 2024-10-03 00:09:30
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.406.0 (2.429.0) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.25.1] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.25.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.25.1 - .
|
||||||
|
|
||||||
|
## 2024-10-03 12:26:50
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.406.0 (2.429.0) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.26.1] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.26.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.26.1 - .
|
||||||
|
|
||||||
|
## 2024-11-11 20:28:21
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.405.6 (2.428.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.28.0] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.28.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.28.0 - .
|
||||||
|
|
||||||
|
## 2024-11-14 00:09:39
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.405.6 (2.428.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.30.0] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.30.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.30.0 - .
|
||||||
|
|
||||||
|
## 2024-12-16 22:17:52
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.405.6 (2.428.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.31.1] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.31.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.31.1 - .
|
||||||
|
|
||||||
|
## 2024-12-20 16:01:16
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.456.1 (2.481.0) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.32.0] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.32.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.32.0 - .
|
||||||
|
|
||||||
|
## 2024-12-22 00:10:48
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.459.2 (2.483.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.32.1] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.32.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.32.1 - .
|
||||||
|
|
||||||
|
## 2025-01-24 00:09:35
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.474.0 (2.495.0) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.32.2] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.32.2] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.32.2 - .
|
||||||
|
|
||||||
|
## 2025-01-27 00:09:48
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.476.1 (2.495.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.32.3] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.32.3] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.32.3 - .
|
||||||
28
RUNTIMES.md
28
RUNTIMES.md
@@ -1,6 +1,6 @@
|
|||||||
# Supported JavaScript runtimes
|
# Supported JavaScript runtimes
|
||||||
|
|
||||||
This SDK is intended to be used in JavaScript runtimes that support the following features:
|
This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features:
|
||||||
|
|
||||||
* [Web Fetch API][web-fetch]
|
* [Web Fetch API][web-fetch]
|
||||||
* [Web Streams API][web-streams] and in particular `ReadableStream`
|
* [Web Streams API][web-streams] and in particular `ReadableStream`
|
||||||
@@ -20,3 +20,29 @@ Runtime environments that are explicitly supported are:
|
|||||||
- Note that Deno does not currently have native support for streaming file uploads backed by the filesystem ([issue link][deno-file-streaming])
|
- Note that Deno does not currently have native support for streaming file uploads backed by the filesystem ([issue link][deno-file-streaming])
|
||||||
|
|
||||||
[deno-file-streaming]: https://github.com/denoland/deno/issues/11018
|
[deno-file-streaming]: https://github.com/denoland/deno/issues/11018
|
||||||
|
|
||||||
|
## Recommended TypeScript compiler options
|
||||||
|
|
||||||
|
The following `tsconfig.json` options are recommended for projects using this
|
||||||
|
SDK in order to get static type support for features like async iterables,
|
||||||
|
streams and `fetch`-related APIs ([`for await...of`][for-await-of],
|
||||||
|
[`AbortSignal`][abort-signal], [`Request`][request], [`Response`][response] and
|
||||||
|
so on):
|
||||||
|
|
||||||
|
[for-await-of]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of
|
||||||
|
[abort-signal]: https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
|
||||||
|
[request]: https://developer.mozilla.org/en-US/docs/Web/API/Request
|
||||||
|
[response]: https://developer.mozilla.org/en-US/docs/Web/API/Response
|
||||||
|
|
||||||
|
```jsonc
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "es2020", // or higher
|
||||||
|
"lib": ["es2020", "dom", "dom.iterable"],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
While `target` can be set to older ECMAScript versions, it may result in extra,
|
||||||
|
unnecessary compatibility code being generated if you are not targeting old
|
||||||
|
runtimes.
|
||||||
5
USAGE.md
5
USAGE.md
@@ -4,11 +4,6 @@ import { PlexAPI } from "@lukehagar/plexjs";
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
|
|||||||
452
codeSamples.yaml
452
codeSamples.yaml
@@ -13,11 +13,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -38,11 +33,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -63,11 +53,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -88,11 +73,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -114,11 +94,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -150,11 +125,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -175,11 +145,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -200,11 +165,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -225,11 +185,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -250,11 +205,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -275,11 +225,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -301,11 +246,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -327,11 +267,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -352,11 +287,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -377,11 +307,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -402,11 +327,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -427,11 +347,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -450,13 +365,7 @@ actions:
|
|||||||
source: |-
|
source: |-
|
||||||
import { PlexAPI } from "@lukehagar/plexjs";
|
import { PlexAPI } from "@lukehagar/plexjs";
|
||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI();
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await plexAPI.plex.getGeoData();
|
const result = await plexAPI.plex.getGeoData();
|
||||||
@@ -476,11 +385,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -501,11 +405,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -527,11 +426,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -559,11 +453,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -584,11 +473,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -609,11 +493,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -632,13 +511,7 @@ actions:
|
|||||||
source: |-
|
source: |-
|
||||||
import { PlexAPI } from "@lukehagar/plexjs";
|
import { PlexAPI } from "@lukehagar/plexjs";
|
||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI();
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await plexAPI.server.getServerIdentity();
|
const result = await plexAPI.server.getServerIdentity();
|
||||||
@@ -659,11 +532,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -684,11 +552,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -709,11 +572,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -734,11 +592,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -766,15 +619,10 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await plexAPI.library.getMetadataChildren(1539.15, "Stream");
|
const result = await plexAPI.library.getMetadataChildren(1539.14, "Stream");
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result);
|
console.log(result);
|
||||||
@@ -791,11 +639,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -823,11 +666,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -849,11 +687,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -884,6 +717,35 @@ actions:
|
|||||||
console.log(result);
|
console.log(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run();
|
||||||
|
- target: $["paths"]["/library/search"]["get"]
|
||||||
|
update:
|
||||||
|
x-codeSamples:
|
||||||
|
- lang: typescript
|
||||||
|
label: libraries
|
||||||
|
source: |-
|
||||||
|
import { PlexAPI } from "@lukehagar/plexjs";
|
||||||
|
import { QueryParamIncludeCollections, QueryParamIncludeExternalMedia, SearchTypes } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
const plexAPI = new PlexAPI({
|
||||||
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
|
});
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
const result = await plexAPI.library.getSearchAllLibraries({
|
||||||
|
query: "<value>",
|
||||||
|
clientID: "3381b62b-9ab7-4e37-827b-203e9809eb58",
|
||||||
|
searchTypes: [
|
||||||
|
SearchTypes.People,
|
||||||
|
],
|
||||||
|
includeCollections: QueryParamIncludeCollections.Enable,
|
||||||
|
includeExternalMedia: QueryParamIncludeExternalMedia.Enable,
|
||||||
|
});
|
||||||
|
|
||||||
|
// Handle the result
|
||||||
|
console.log(result);
|
||||||
|
}
|
||||||
|
|
||||||
run();
|
run();
|
||||||
- target: $["paths"]["/library/sections"]["get"]
|
- target: $["paths"]["/library/sections"]["get"]
|
||||||
update:
|
update:
|
||||||
@@ -895,11 +757,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -921,11 +778,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -951,11 +803,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -973,18 +820,14 @@ actions:
|
|||||||
label: details
|
label: details
|
||||||
source: |-
|
source: |-
|
||||||
import { PlexAPI } from "@lukehagar/plexjs";
|
import { PlexAPI } from "@lukehagar/plexjs";
|
||||||
|
import { IncludeDetails } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await plexAPI.library.getLibraryDetails(9518);
|
const result = await plexAPI.library.getLibraryDetails(9518, IncludeDetails.Zero);
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result);
|
console.log(result);
|
||||||
@@ -1002,11 +845,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1028,11 +866,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1059,19 +892,14 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await plexAPI.library.getLibraryItems({
|
const result = await plexAPI.library.getLibraryItems({
|
||||||
sectionKey: 9518,
|
|
||||||
tag: Tag.Edition,
|
tag: Tag.Edition,
|
||||||
includeGuids: IncludeGuids.Enable,
|
includeGuids: IncludeGuids.Enable,
|
||||||
type: GetLibraryItemsQueryParamType.TvShow,
|
type: GetLibraryItemsQueryParamType.TvShow,
|
||||||
|
sectionKey: 9518,
|
||||||
includeMeta: GetLibraryItemsQueryParamIncludeMeta.Enable,
|
includeMeta: GetLibraryItemsQueryParamIncludeMeta.Enable,
|
||||||
xPlexContainerStart: 0,
|
xPlexContainerStart: 0,
|
||||||
xPlexContainerSize: 50,
|
xPlexContainerSize: 50,
|
||||||
@@ -1093,11 +921,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1118,11 +941,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1145,11 +963,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1170,11 +983,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1195,11 +1003,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1221,11 +1024,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1252,16 +1050,17 @@ actions:
|
|||||||
source: |-
|
source: |-
|
||||||
import { PlexAPI } from "@lukehagar/plexjs";
|
import { PlexAPI } from "@lukehagar/plexjs";
|
||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI();
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await plexAPI.plex.getPin({});
|
const result = await plexAPI.plex.getPin({
|
||||||
|
strong: false,
|
||||||
|
clientID: "3381b62b-9ab7-4e37-827b-203e9809eb58",
|
||||||
|
clientName: "Plex for Roku",
|
||||||
|
deviceNickname: "Roku 3",
|
||||||
|
clientVersion: "2.4.1",
|
||||||
|
platform: "Roku",
|
||||||
|
});
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result);
|
console.log(result);
|
||||||
@@ -1276,17 +1075,16 @@ actions:
|
|||||||
source: |-
|
source: |-
|
||||||
import { PlexAPI } from "@lukehagar/plexjs";
|
import { PlexAPI } from "@lukehagar/plexjs";
|
||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI();
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await plexAPI.plex.getTokenByPinId({
|
const result = await plexAPI.plex.getTokenByPinId({
|
||||||
pinID: 408895,
|
pinID: 408895,
|
||||||
|
clientID: "3381b62b-9ab7-4e37-827b-203e9809eb58",
|
||||||
|
clientName: "Plex for Roku",
|
||||||
|
deviceNickname: "Roku 3",
|
||||||
|
clientVersion: "2.4.1",
|
||||||
|
platform: "Roku",
|
||||||
});
|
});
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
@@ -1304,11 +1102,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1330,11 +1123,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1361,11 +1149,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1386,11 +1169,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1411,11 +1189,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1436,15 +1209,10 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await plexAPI.playlists.updatePlaylist(3915.00);
|
const result = await plexAPI.playlists.updatePlaylist(3915);
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result);
|
console.log(result);
|
||||||
@@ -1461,11 +1229,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1487,11 +1250,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1512,15 +1270,10 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await plexAPI.playlists.addPlaylistContents(8502.00, "server://12345/com.plexapp.plugins.library/library/metadata/1", 123);
|
const result = await plexAPI.playlists.addPlaylistContents(8502.01, "server://12345/com.plexapp.plugins.library/library/metadata/1", 123);
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result);
|
console.log(result);
|
||||||
@@ -1538,15 +1291,10 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await plexAPI.plex.getServerResources(IncludeHttps.Enable, IncludeRelay.Enable, IncludeIPv6.Enable, "gcgzw5rz2xovp84b4vha3a40");
|
const result = await plexAPI.plex.getServerResources("3381b62b-9ab7-4e37-827b-203e9809eb58", IncludeHttps.Enable, IncludeRelay.Enable, IncludeIPv6.Enable);
|
||||||
|
|
||||||
// Handle the result
|
// Handle the result
|
||||||
console.log(result);
|
console.log(result);
|
||||||
@@ -1563,11 +1311,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1588,11 +1331,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1614,11 +1352,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1639,11 +1372,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1664,11 +1392,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1689,11 +1412,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1714,11 +1432,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1739,11 +1452,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1764,11 +1472,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1789,11 +1492,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1814,11 +1512,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1840,11 +1533,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1866,11 +1554,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1891,11 +1574,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1916,11 +1594,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -1939,19 +1612,19 @@ actions:
|
|||||||
source: |-
|
source: |-
|
||||||
import { PlexAPI } from "@lukehagar/plexjs";
|
import { PlexAPI } from "@lukehagar/plexjs";
|
||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI();
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const result = await plexAPI.authentication.postUsersSignInData({
|
const result = await plexAPI.authentication.postUsersSignInData({
|
||||||
|
clientID: "3381b62b-9ab7-4e37-827b-203e9809eb58",
|
||||||
|
clientName: "Plex for Roku",
|
||||||
|
deviceNickname: "Roku 3",
|
||||||
|
clientVersion: "2.4.1",
|
||||||
|
platform: "Roku",
|
||||||
requestBody: {
|
requestBody: {
|
||||||
login: "username@email.com",
|
login: "username@email.com",
|
||||||
password: "password123",
|
password: "password123",
|
||||||
|
rememberMe: false,
|
||||||
verificationCode: "123456",
|
verificationCode: "123456",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
@@ -1971,11 +1644,6 @@ actions:
|
|||||||
|
|
||||||
const plexAPI = new PlexAPI({
|
const plexAPI = new PlexAPI({
|
||||||
accessToken: "<YOUR_API_KEY_HERE>",
|
accessToken: "<YOUR_API_KEY_HERE>",
|
||||||
clientID: "gcgzw5rz2xovp84b4vha3a40",
|
|
||||||
clientName: "Plex Web",
|
|
||||||
clientVersion: "4.133.0",
|
|
||||||
clientPlatform: "Chrome",
|
|
||||||
deviceName: "Linux",
|
|
||||||
});
|
});
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
|
|||||||
18
docs/sdk/models/errors/getsearchalllibrariesbadrequest.md
Normal file
18
docs/sdk/models/errors/getsearchalllibrariesbadrequest.md
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# GetSearchAllLibrariesBadRequest
|
||||||
|
|
||||||
|
Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesBadRequest } from "@lukehagar/plexjs/sdk/models/errors";
|
||||||
|
|
||||||
|
// No examples available for this model
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
|
||||||
|
| `errors` | [errors.GetSearchAllLibrariesErrors](../../../sdk/models/errors/getsearchalllibrarieserrors.md)[] | :heavy_minus_sign: | N/A |
|
||||||
|
| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
|
||||||
21
docs/sdk/models/errors/getsearchalllibrarieserrors.md
Normal file
21
docs/sdk/models/errors/getsearchalllibrarieserrors.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# GetSearchAllLibrariesErrors
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesErrors } from "@lukehagar/plexjs/sdk/models/errors";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesErrors = {
|
||||||
|
code: 1000,
|
||||||
|
message: "X-Plex-Client-Identifier is missing",
|
||||||
|
status: 400,
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- |
|
||||||
|
| `code` | *number* | :heavy_minus_sign: | N/A | 1000 |
|
||||||
|
| `message` | *string* | :heavy_minus_sign: | N/A | X-Plex-Client-Identifier is missing |
|
||||||
|
| `status` | *number* | :heavy_minus_sign: | N/A | 400 |
|
||||||
21
docs/sdk/models/errors/getsearchalllibrarieslibraryerrors.md
Normal file
21
docs/sdk/models/errors/getsearchalllibrarieslibraryerrors.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# GetSearchAllLibrariesLibraryErrors
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesLibraryErrors } from "@lukehagar/plexjs/sdk/models/errors";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesLibraryErrors = {
|
||||||
|
code: 1001,
|
||||||
|
message: "User could not be authenticated",
|
||||||
|
status: 401,
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- | ------------------------------- |
|
||||||
|
| `code` | *number* | :heavy_minus_sign: | N/A | 1001 |
|
||||||
|
| `message` | *string* | :heavy_minus_sign: | N/A | User could not be authenticated |
|
||||||
|
| `status` | *number* | :heavy_minus_sign: | N/A | 401 |
|
||||||
18
docs/sdk/models/errors/getsearchalllibrariesunauthorized.md
Normal file
18
docs/sdk/models/errors/getsearchalllibrariesunauthorized.md
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# GetSearchAllLibrariesUnauthorized
|
||||||
|
|
||||||
|
Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesUnauthorized } from "@lukehagar/plexjs/sdk/models/errors";
|
||||||
|
|
||||||
|
// No examples available for this model
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `errors` | [errors.GetSearchAllLibrariesLibraryErrors](../../../sdk/models/errors/getsearchalllibrarieslibraryerrors.md)[] | :heavy_minus_sign: | N/A |
|
||||||
|
| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
import { AddPlaylistContentsRequest } from "@lukehagar/plexjs/sdk/models/operations";
|
import { AddPlaylistContentsRequest } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
let value: AddPlaylistContentsRequest = {
|
let value: AddPlaylistContentsRequest = {
|
||||||
playlistID: 8966.71,
|
playlistID: 6289.82,
|
||||||
uri: "server://12345/com.plexapp.plugins.library/library/metadata/1",
|
uri: "server://12345/com.plexapp.plugins.library/library/metadata/1",
|
||||||
playQueueID: 123,
|
playQueueID: 123,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { AddPlaylistContentsResponse } from "@lukehagar/plexjs/sdk/models/operat
|
|||||||
|
|
||||||
let value: AddPlaylistContentsResponse = {
|
let value: AddPlaylistContentsResponse = {
|
||||||
contentType: "<value>",
|
contentType: "<value>",
|
||||||
statusCode: 502,
|
statusCode: 503,
|
||||||
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { ApplyUpdatesResponse } from "@lukehagar/plexjs/sdk/models/operations";
|
|||||||
|
|
||||||
let value: ApplyUpdatesResponse = {
|
let value: ApplyUpdatesResponse = {
|
||||||
contentType: "<value>",
|
contentType: "<value>",
|
||||||
statusCode: 102,
|
statusCode: 103,
|
||||||
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { Billing } from "@lukehagar/plexjs/sdk/models/operations";
|
|||||||
|
|
||||||
let value: Billing = {
|
let value: Billing = {
|
||||||
internalPaymentMethod: {},
|
internalPaymentMethod: {},
|
||||||
paymentMethodId: 730856,
|
paymentMethodId: 374170,
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { CheckForUpdatesResponse } from "@lukehagar/plexjs/sdk/models/operations
|
|||||||
|
|
||||||
let value: CheckForUpdatesResponse = {
|
let value: CheckForUpdatesResponse = {
|
||||||
contentType: "<value>",
|
contentType: "<value>",
|
||||||
statusCode: 429,
|
statusCode: 201,
|
||||||
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
import { ClearPlaylistContentsRequest } from "@lukehagar/plexjs/sdk/models/operations";
|
import { ClearPlaylistContentsRequest } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
let value: ClearPlaylistContentsRequest = {
|
let value: ClearPlaylistContentsRequest = {
|
||||||
playlistID: 6793.93,
|
playlistID: 3834.64,
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { ClearPlaylistContentsResponse } from "@lukehagar/plexjs/sdk/models/oper
|
|||||||
|
|
||||||
let value: ClearPlaylistContentsResponse = {
|
let value: ClearPlaylistContentsResponse = {
|
||||||
contentType: "<value>",
|
contentType: "<value>",
|
||||||
statusCode: 304,
|
statusCode: 307,
|
||||||
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import { CreatePlaylistQueryParamType, CreatePlaylistRequest, Smart } from "@luk
|
|||||||
|
|
||||||
let value: CreatePlaylistRequest = {
|
let value: CreatePlaylistRequest = {
|
||||||
title: "<value>",
|
title: "<value>",
|
||||||
type: CreatePlaylistQueryParamType.Video,
|
type: CreatePlaylistQueryParamType.Photo,
|
||||||
smart: Smart.Zero,
|
smart: Smart.One,
|
||||||
uri: "https://pleased-lox.name",
|
uri: "https://enchanted-disclosure.com/",
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { CreatePlaylistResponse } from "@lukehagar/plexjs/sdk/models/operations"
|
|||||||
|
|
||||||
let value: CreatePlaylistResponse = {
|
let value: CreatePlaylistResponse = {
|
||||||
contentType: "<value>",
|
contentType: "<value>",
|
||||||
statusCode: 409,
|
statusCode: 302,
|
||||||
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
import { DeletePlaylistRequest } from "@lukehagar/plexjs/sdk/models/operations";
|
import { DeletePlaylistRequest } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
let value: DeletePlaylistRequest = {
|
let value: DeletePlaylistRequest = {
|
||||||
playlistID: 2543.56,
|
playlistID: 5365.79,
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { DeletePlaylistResponse } from "@lukehagar/plexjs/sdk/models/operations"
|
|||||||
|
|
||||||
let value: DeletePlaylistResponse = {
|
let value: DeletePlaylistResponse = {
|
||||||
contentType: "<value>",
|
contentType: "<value>",
|
||||||
statusCode: 101,
|
statusCode: 511,
|
||||||
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
}),
|
}),
|
||||||
|
|||||||
19
docs/sdk/models/operations/enablecreditsmarkergeneration.md
Normal file
19
docs/sdk/models/operations/enablecreditsmarkergeneration.md
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# EnableCreditsMarkerGeneration
|
||||||
|
|
||||||
|
Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { EnableCreditsMarkerGeneration } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: EnableCreditsMarkerGeneration =
|
||||||
|
EnableCreditsMarkerGeneration.LibraryDefault;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| ---------------- | ---------------- |
|
||||||
|
| `LibraryDefault` | -1 |
|
||||||
|
| `Disabled` | 0 |
|
||||||
@@ -7,7 +7,7 @@ import { EnablePaperTrailResponse } from "@lukehagar/plexjs/sdk/models/operation
|
|||||||
|
|
||||||
let value: EnablePaperTrailResponse = {
|
let value: EnablePaperTrailResponse = {
|
||||||
contentType: "<value>",
|
contentType: "<value>",
|
||||||
statusCode: 400,
|
statusCode: 203,
|
||||||
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
}),
|
}),
|
||||||
|
|||||||
19
docs/sdk/models/operations/episodesort.md
Normal file
19
docs/sdk/models/operations/episodesort.md
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# EpisodeSort
|
||||||
|
|
||||||
|
Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { EpisodeSort } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: EpisodeSort = EpisodeSort.OldestFirst;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| ---------------- | ---------------- |
|
||||||
|
| `LibraryDefault` | -1 |
|
||||||
|
| `OldestFirst` | 0 |
|
||||||
|
| `NewestFirst` | 1 |
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
# Features
|
|
||||||
|
|
||||||
## Example Usage
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import { Features } from "@lukehagar/plexjs/sdk/models/operations";
|
|
||||||
|
|
||||||
let value: Features = Features.Trailers;
|
|
||||||
```
|
|
||||||
|
|
||||||
## Values
|
|
||||||
|
|
||||||
This is an open enum. Unrecognized values will be captured as the `Unrecognized<string>` branded type.
|
|
||||||
|
|
||||||
| Name | Value |
|
|
||||||
| --------------------------------------- | --------------------------------------- |
|
|
||||||
| `AndroidDolbyVision` | Android - Dolby Vision |
|
|
||||||
| `AndroidPiP` | Android - PiP |
|
|
||||||
| `CUSunset` | CU Sunset |
|
|
||||||
| `HRKEnableEUR` | HRK_enable_EUR |
|
|
||||||
| `TREBLEShowFeatures` | TREBLE-show-features |
|
|
||||||
| `AdCountdownTimer` | ad-countdown-timer |
|
|
||||||
| `AdaptiveBitrate` | adaptive_bitrate |
|
|
||||||
| `AlbumTypes` | album-types |
|
|
||||||
| `AllowDvr` | allow_dvr |
|
|
||||||
| `AmazonLoopDebug` | amazon-loop-debug |
|
|
||||||
| `AvodAdAnalysis` | avod-ad-analysis |
|
|
||||||
| `AvodNewMedia` | avod-new-media |
|
|
||||||
| `BlacklistGetSignin` | blacklist_get_signin |
|
|
||||||
| `BoostVoices` | boost-voices |
|
|
||||||
| `CameraUpload` | camera_upload |
|
|
||||||
| `ClientRadioStations` | client-radio-stations |
|
|
||||||
| `CloudflareTurnstileRequired` | cloudflare-turnstile-required |
|
|
||||||
| `Cloudsync` | cloudsync |
|
|
||||||
| `Collections` | collections |
|
|
||||||
| `CommentsAndRepliesPushNotifications` | comments_and_replies_push_notifications |
|
|
||||||
| `CommunityAccessPlexTv` | community_access_plex_tv |
|
|
||||||
| `CompanionsSonos` | companions_sonos |
|
|
||||||
| `ContentFilter` | content_filter |
|
|
||||||
| `CustomHomeRemoval` | custom-home-removal |
|
|
||||||
| `DisableHomeUserFriendships` | disable_home_user_friendships |
|
|
||||||
| `DisableSharingFriendships` | disable_sharing_friendships |
|
|
||||||
| `DownloadsGating` | downloads-gating |
|
|
||||||
| `DrmSupport` | drm_support |
|
|
||||||
| `Dvr` | dvr |
|
|
||||||
| `DvrBlockUnsupportedCountries` | dvr-block-unsupported-countries |
|
|
||||||
| `EpgRecentChannels` | epg-recent-channels |
|
|
||||||
| `ExcludeRestrictions` | exclude restrictions |
|
|
||||||
| `FederatedAuth` | federated-auth |
|
|
||||||
| `FriendRequestPushNotifications` | friend_request_push_notifications |
|
|
||||||
| `GrandfatherSync` | grandfather-sync |
|
|
||||||
| `GuidedUpgrade` | guided-upgrade |
|
|
||||||
| `HardwareTranscoding` | hardware_transcoding |
|
|
||||||
| `Home` | home |
|
|
||||||
| `Hwtranscode` | hwtranscode |
|
|
||||||
| `ImaggaV2` | imagga-v2 |
|
|
||||||
| `IncreasePasswordComplexity` | increase-password-complexity |
|
|
||||||
| `Ios14PrivacyBanner` | ios14-privacy-banner |
|
|
||||||
| `IterableNotificationTokens` | iterable-notification-tokens |
|
|
||||||
| `ItemClusters` | item_clusters |
|
|
||||||
| `KeepPaymentMethod` | keep-payment-method |
|
|
||||||
| `KevinBacon` | kevin-bacon |
|
|
||||||
| `KoreaConsent` | korea-consent |
|
|
||||||
| `LeIsrgRootX1` | le_isrg_root_x1 |
|
|
||||||
| `LetsEncrypt` | lets_encrypt |
|
|
||||||
| `LightningDvrPivot` | lightning-dvr-pivot |
|
|
||||||
| `LiveTvSupportIncompleteSegments` | live-tv-support-incomplete-segments |
|
|
||||||
| `Livetv` | livetv |
|
|
||||||
| `Lyrics` | lyrics |
|
|
||||||
| `MetadataSearch` | metadata_search |
|
|
||||||
| `MusicAnalysis` | music-analysis |
|
|
||||||
| `MusicVideos` | music_videos |
|
|
||||||
| `NewPlexPassPrices` | new_plex_pass_prices |
|
|
||||||
| `NewsProviderSunsetModal` | news-provider-sunset-modal |
|
|
||||||
| `Nominatim` | nominatim |
|
|
||||||
| `Pass` | pass |
|
|
||||||
| `PhotosFavorites` | photos-favorites |
|
|
||||||
| `PhotosMetadataEdition` | photos-metadata-edition |
|
|
||||||
| `PhotosV6Edit` | photosV6-edit |
|
|
||||||
| `PhotosV6TvAlbums` | photosV6-tv-albums |
|
|
||||||
| `PmsHealth` | pms_health |
|
|
||||||
| `PremiumDashboard` | premium-dashboard |
|
|
||||||
| `PremiumMusicMetadata` | premium_music_metadata |
|
|
||||||
| `Radio` | radio |
|
|
||||||
| `RateLimitClientToken` | rate-limit-client-token |
|
|
||||||
| `ScrobblingServicePlexTv` | scrobbling-service-plex-tv |
|
|
||||||
| `SessionBandwidthRestrictions` | session_bandwidth_restrictions |
|
|
||||||
| `SessionKick` | session_kick |
|
|
||||||
| `SharedServerNotification` | shared_server_notification |
|
|
||||||
| `SharedSourceNotification` | shared_source_notification |
|
|
||||||
| `SigninNotification` | signin_notification |
|
|
||||||
| `SigninWithApple` | signin_with_apple |
|
|
||||||
| `SilenceRemoval` | silence-removal |
|
|
||||||
| `SleepTimer` | sleep-timer |
|
|
||||||
| `SpringServeAdProvider` | spring_serve_ad_provider |
|
|
||||||
| `Sync` | sync |
|
|
||||||
| `SweetFades` | sweet-fades |
|
|
||||||
| `TranscoderCache` | transcoder_cache |
|
|
||||||
| `Trailers` | trailers |
|
|
||||||
| `TunerSharing` | tuner-sharing |
|
|
||||||
| `TwoFactorAuthentication` | two-factor-authentication |
|
|
||||||
| `Unsupportedtuners` | unsupportedtuners |
|
|
||||||
| `Upgrade3ds2` | upgrade-3ds2 |
|
|
||||||
| `Visualizers` | visualizers |
|
|
||||||
| `VodSchema` | vod-schema |
|
|
||||||
| `VodCloudflare` | vod_cloudflare |
|
|
||||||
| `VolumeLeveling` | volume-leveling |
|
|
||||||
| `WatchTogetherInvite` | watch-together-invite |
|
|
||||||
| `WatchlistRss` | watchlist-rss |
|
|
||||||
| `WebServerDashboard` | web_server_dashboard |
|
|
||||||
| `Webhooks` | webhooks |
|
|
||||||
| - | `Unrecognized<string>` |
|
|
||||||
@@ -7,7 +7,7 @@ Filter
|
|||||||
```typescript
|
```typescript
|
||||||
import { Filter } from "@lukehagar/plexjs/sdk/models/operations";
|
import { Filter } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
let value: Filter = Filter.Released;
|
let value: Filter = Filter.Available;
|
||||||
```
|
```
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|||||||
@@ -1,16 +1,19 @@
|
|||||||
# FlattenSeasons
|
# FlattenSeasons
|
||||||
|
|
||||||
|
Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { FlattenSeasons } from "@lukehagar/plexjs/sdk/models/operations";
|
import { FlattenSeasons } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
let value: FlattenSeasons = FlattenSeasons.True;
|
let value: FlattenSeasons = FlattenSeasons.Show;
|
||||||
```
|
```
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ------- | ------- |
|
| ---------------- | ---------------- |
|
||||||
| `False` | 0 |
|
| `LibraryDefault` | -1 |
|
||||||
| `True` | 1 |
|
| `Hide` | 0 |
|
||||||
|
| `Show` | 1 |
|
||||||
@@ -11,12 +11,8 @@ let value: Friend = {
|
|||||||
home: true,
|
home: true,
|
||||||
id: 0,
|
id: 0,
|
||||||
restricted: false,
|
restricted: false,
|
||||||
sharedServers: [
|
sharedServers: [],
|
||||||
{},
|
sharedSources: [],
|
||||||
],
|
|
||||||
sharedSources: [
|
|
||||||
{},
|
|
||||||
],
|
|
||||||
status: Status.Accepted,
|
status: Status.Accepted,
|
||||||
thumb: "https://plex.tv/users/7d1916e0d8f6e76b/avatar?c=1694481578",
|
thumb: "https://plex.tv/users/7d1916e0d8f6e76b/avatar?c=1694481578",
|
||||||
title: "username123",
|
title: "username123",
|
||||||
|
|||||||
@@ -37,26 +37,26 @@ let value: GetAllLibrariesDirectory = {
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
|
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
|
||||||
| `allowSync` | *boolean* | :heavy_check_mark: | N/A | true |
|
| `allowSync` | *boolean* | :heavy_check_mark: | N/A | true |
|
||||||
| `art` | *string* | :heavy_check_mark: | N/A | /:/resources/movie-fanart.jpg |
|
| `art` | *string* | :heavy_check_mark: | N/A | /:/resources/movie-fanart.jpg |
|
||||||
| `composite` | *string* | :heavy_check_mark: | N/A | /library/sections/1/composite/1705615584 |
|
| `composite` | *string* | :heavy_check_mark: | N/A | /library/sections/1/composite/1705615584 |
|
||||||
| `filters` | *boolean* | :heavy_check_mark: | N/A | true |
|
| `filters` | *boolean* | :heavy_check_mark: | N/A | true |
|
||||||
| `refreshing` | *boolean* | :heavy_check_mark: | N/A | false |
|
| `refreshing` | *boolean* | :heavy_check_mark: | N/A | false |
|
||||||
| `thumb` | *string* | :heavy_check_mark: | N/A | /:/resources/movie.png |
|
| `thumb` | *string* | :heavy_check_mark: | N/A | /:/resources/movie.png |
|
||||||
| `key` | *string* | :heavy_check_mark: | N/A | 1 |
|
| `key` | *string* | :heavy_check_mark: | N/A | 1 |
|
||||||
| `type` | *string* | :heavy_check_mark: | N/A | movie |
|
| `type` | *string* | :heavy_check_mark: | N/A | movie |
|
||||||
| `title` | *string* | :heavy_check_mark: | N/A | Movies |
|
| `title` | *string* | :heavy_check_mark: | N/A | Movies |
|
||||||
| `agent` | *string* | :heavy_check_mark: | N/A | tv.plex.agents.movie |
|
| `agent` | *string* | :heavy_check_mark: | N/A | tv.plex.agents.movie |
|
||||||
| `scanner` | *string* | :heavy_check_mark: | N/A | Plex Movie |
|
| `scanner` | *string* | :heavy_check_mark: | N/A | Plex Movie |
|
||||||
| `language` | *string* | :heavy_check_mark: | N/A | en-US |
|
| `language` | *string* | :heavy_check_mark: | N/A | en-US |
|
||||||
| `uuid` | *string* | :heavy_check_mark: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 |
|
| `uuid` | *string* | :heavy_check_mark: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 |
|
||||||
| `updatedAt` | *number* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
| `updatedAt` | *number* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
||||||
| `createdAt` | *number* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
| `createdAt` | *number* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
||||||
| `scannedAt` | *number* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
| `scannedAt` | *number* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
||||||
| `content` | *boolean* | :heavy_check_mark: | N/A | true |
|
| `content` | *boolean* | :heavy_check_mark: | N/A | true |
|
||||||
| `directory` | *boolean* | :heavy_check_mark: | N/A | true |
|
| `directory` | *boolean* | :heavy_check_mark: | N/A | true |
|
||||||
| `contentChangedAt` | *number* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
| `contentChangedAt` | *number* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
||||||
| `hidden` | *number* | :heavy_check_mark: | N/A | 0 |
|
| `hidden` | *number* | :heavy_check_mark: | N/A | 0 |
|
||||||
| `location` | [operations.Location](../../../sdk/models/operations/location.md)[] | :heavy_check_mark: | N/A | |
|
| `location` | [operations.GetAllLibrariesLocation](../../../sdk/models/operations/getalllibrarieslocation.md)[] | :heavy_check_mark: | N/A | |
|
||||||
19
docs/sdk/models/operations/getalllibrarieslocation.md
Normal file
19
docs/sdk/models/operations/getalllibrarieslocation.md
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# GetAllLibrariesLocation
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetAllLibrariesLocation } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetAllLibrariesLocation = {
|
||||||
|
id: 1,
|
||||||
|
path: "/movies",
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
||||||
|
| `id` | *number* | :heavy_check_mark: | N/A | 1 |
|
||||||
|
| `path` | *string* | :heavy_check_mark: | N/A | /movies |
|
||||||
@@ -7,7 +7,7 @@ import { GetBandwidthStatisticsResponse } from "@lukehagar/plexjs/sdk/models/ope
|
|||||||
|
|
||||||
let value: GetBandwidthStatisticsResponse = {
|
let value: GetBandwidthStatisticsResponse = {
|
||||||
contentType: "<value>",
|
contentType: "<value>",
|
||||||
statusCode: 102,
|
statusCode: 101,
|
||||||
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -24,4 +24,4 @@ let value: GetBannerImageRequest = {
|
|||||||
| `height` | *number* | :heavy_check_mark: | N/A | 396 |
|
| `height` | *number* | :heavy_check_mark: | N/A | 396 |
|
||||||
| `minSize` | *number* | :heavy_check_mark: | N/A | 1 |
|
| `minSize` | *number* | :heavy_check_mark: | N/A | 1 |
|
||||||
| `upscale` | *number* | :heavy_check_mark: | N/A | 1 |
|
| `upscale` | *number* | :heavy_check_mark: | N/A | 1 |
|
||||||
| `xPlexToken` | *string* | :heavy_check_mark: | Plex Authentication Token | CV5xoxjTpFKUzBTShsaf |
|
| `xPlexToken` | *string* | :heavy_check_mark: | An authentication token, obtained from plex.tv | CV5xoxjTpFKUzBTShsaf |
|
||||||
@@ -14,5 +14,5 @@ let value: GetLibraryDetailsRequest = {
|
|||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
| `sectionKey` | *number* | :heavy_check_mark: | The unique key of the Plex library. <br/>Note: This is unique in the context of the Plex server.<br/> | 9518 |
|
|
||||||
| `includeDetails` | [operations.IncludeDetails](../../../sdk/models/operations/includedetails.md) | :heavy_minus_sign: | Whether or not to include details for a section (types, filters, and sorts). <br/>Only exists for backwards compatibility, media providers other than the server libraries have it on always.<br/> | |
|
| `includeDetails` | [operations.IncludeDetails](../../../sdk/models/operations/includedetails.md) | :heavy_minus_sign: | Whether or not to include details for a section (types, filters, and sorts). <br/>Only exists for backwards compatibility, media providers other than the server libraries have it on always.<br/> | |
|
||||||
|
| `sectionKey` | *number* | :heavy_check_mark: | The unique key of the Plex library. <br/>Note: This is unique in the context of the Plex server.<br/> | 9518 |
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# GetLibraryItemsEnableCreditsMarkerGeneration
|
||||||
|
|
||||||
|
Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetLibraryItemsEnableCreditsMarkerGeneration } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetLibraryItemsEnableCreditsMarkerGeneration =
|
||||||
|
GetLibraryItemsEnableCreditsMarkerGeneration.LibraryDefault;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| ---------------- | ---------------- |
|
||||||
|
| `LibraryDefault` | -1 |
|
||||||
|
| `Disabled` | 0 |
|
||||||
19
docs/sdk/models/operations/getlibraryitemsepisodesort.md
Normal file
19
docs/sdk/models/operations/getlibraryitemsepisodesort.md
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# GetLibraryItemsEpisodeSort
|
||||||
|
|
||||||
|
Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetLibraryItemsEpisodeSort } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetLibraryItemsEpisodeSort = GetLibraryItemsEpisodeSort.OldestFirst;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| ---------------- | ---------------- |
|
||||||
|
| `LibraryDefault` | -1 |
|
||||||
|
| `OldestFirst` | 0 |
|
||||||
|
| `NewestFirst` | 1 |
|
||||||
@@ -1,16 +1,19 @@
|
|||||||
# GetLibraryItemsFlattenSeasons
|
# GetLibraryItemsFlattenSeasons
|
||||||
|
|
||||||
|
Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
|
||||||
## Example Usage
|
## Example Usage
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { GetLibraryItemsFlattenSeasons } from "@lukehagar/plexjs/sdk/models/operations";
|
import { GetLibraryItemsFlattenSeasons } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
let value: GetLibraryItemsFlattenSeasons = GetLibraryItemsFlattenSeasons.True;
|
let value: GetLibraryItemsFlattenSeasons = GetLibraryItemsFlattenSeasons.Show;
|
||||||
```
|
```
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ------- | ------- |
|
| ---------------- | ---------------- |
|
||||||
| `False` | 0 |
|
| `LibraryDefault` | -1 |
|
||||||
| `True` | 1 |
|
| `Hide` | 0 |
|
||||||
|
| `Show` | 1 |
|
||||||
17
docs/sdk/models/operations/getlibraryitemslocation.md
Normal file
17
docs/sdk/models/operations/getlibraryitemslocation.md
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# GetLibraryItemsLocation
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetLibraryItemsLocation } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetLibraryItemsLocation = {
|
||||||
|
path: "/TV Shows/House",
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
||||||
|
| `path` | *string* | :heavy_minus_sign: | N/A | /TV Shows/House |
|
||||||
@@ -94,19 +94,19 @@ let value: GetLibraryItemsMedia = {
|
|||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
|
| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `id` | *number* | :heavy_check_mark: | N/A | 119534 |
|
| `id` | *number* | :heavy_check_mark: | N/A | 119534 |
|
||||||
| `duration` | *number* | :heavy_check_mark: | N/A | 11558112 |
|
| `duration` | *number* | :heavy_minus_sign: | N/A | 11558112 |
|
||||||
| `bitrate` | *number* | :heavy_check_mark: | N/A | 25025 |
|
| `bitrate` | *number* | :heavy_minus_sign: | N/A | 25025 |
|
||||||
| `width` | *number* | :heavy_check_mark: | N/A | 3840 |
|
| `width` | *number* | :heavy_minus_sign: | N/A | 3840 |
|
||||||
| `height` | *number* | :heavy_check_mark: | N/A | 2072 |
|
| `height` | *number* | :heavy_minus_sign: | N/A | 2072 |
|
||||||
| `aspectRatio` | *number* | :heavy_check_mark: | N/A | 1.85 |
|
| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 1.85 |
|
||||||
| `audioProfile` | *string* | :heavy_minus_sign: | N/A | dts |
|
| `audioProfile` | *string* | :heavy_minus_sign: | N/A | dts |
|
||||||
| `audioChannels` | *number* | :heavy_check_mark: | N/A | 6 |
|
| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 6 |
|
||||||
| `audioCodec` | *string* | :heavy_check_mark: | N/A | eac3 |
|
| `audioCodec` | *string* | :heavy_minus_sign: | N/A | eac3 |
|
||||||
| `videoCodec` | *string* | :heavy_check_mark: | N/A | hevc |
|
| `videoCodec` | *string* | :heavy_minus_sign: | N/A | hevc |
|
||||||
| `videoResolution` | *string* | :heavy_check_mark: | N/A | 4k |
|
| `videoResolution` | *string* | :heavy_minus_sign: | N/A | 4k |
|
||||||
| `container` | *string* | :heavy_check_mark: | N/A | mkv |
|
| `container` | *string* | :heavy_check_mark: | N/A | mkv |
|
||||||
| `videoFrameRate` | *string* | :heavy_check_mark: | N/A | 24p |
|
| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | 24p |
|
||||||
| `videoProfile` | *string* | :heavy_check_mark: | N/A | main 10 |
|
| `videoProfile` | *string* | :heavy_minus_sign: | N/A | main 10 |
|
||||||
| `hasVoiceActivity` | *boolean* | :heavy_minus_sign: | N/A | false |
|
| `hasVoiceActivity` | *boolean* | :heavy_minus_sign: | N/A | false |
|
||||||
| `optimizedForStreaming` | [operations.GetLibraryItemsOptimizedForStreaming](../../../sdk/models/operations/getlibraryitemsoptimizedforstreaming.md) | :heavy_minus_sign: | N/A | 1 |
|
| `optimizedForStreaming` | [operations.GetLibraryItemsOptimizedForStreaming](../../../sdk/models/operations/getlibraryitemsoptimizedforstreaming.md) | :heavy_minus_sign: | N/A | 1 |
|
||||||
| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false |
|
| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false |
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ The Meta object is only included in the response if the `includeMeta` parameter
|
|||||||
import {
|
import {
|
||||||
GetLibraryItemsActiveDirection,
|
GetLibraryItemsActiveDirection,
|
||||||
GetLibraryItemsDefaultDirection,
|
GetLibraryItemsDefaultDirection,
|
||||||
|
GetLibraryItemsEnableCreditsMarkerGeneration,
|
||||||
|
GetLibraryItemsEpisodeSort,
|
||||||
GetLibraryItemsFlattenSeasons,
|
GetLibraryItemsFlattenSeasons,
|
||||||
GetLibraryItemsHasThumbnail,
|
GetLibraryItemsHasThumbnail,
|
||||||
GetLibraryItemsLibraryActiveDirection,
|
GetLibraryItemsLibraryActiveDirection,
|
||||||
@@ -110,8 +112,11 @@ let value: GetLibraryItemsMediaContainer = {
|
|||||||
year: 2022,
|
year: 2022,
|
||||||
seasonCount: 2022,
|
seasonCount: 2022,
|
||||||
tagline: "Return to Pandora.",
|
tagline: "Return to Pandora.",
|
||||||
flattenSeasons: GetLibraryItemsFlattenSeasons.True,
|
flattenSeasons: GetLibraryItemsFlattenSeasons.Show,
|
||||||
showOrdering: GetLibraryItemsShowOrdering.Dvd,
|
episodeSort: GetLibraryItemsEpisodeSort.OldestFirst,
|
||||||
|
enableCreditsMarkerGeneration:
|
||||||
|
GetLibraryItemsEnableCreditsMarkerGeneration.LibraryDefault,
|
||||||
|
showOrdering: GetLibraryItemsShowOrdering.TvdbAbsolute,
|
||||||
thumb: "/library/metadata/58683/thumb/1703239236",
|
thumb: "/library/metadata/58683/thumb/1703239236",
|
||||||
art: "/library/metadata/58683/art/1703239236",
|
art: "/library/metadata/58683/art/1703239236",
|
||||||
banner: "/library/metadata/58683/banner/1703239236",
|
banner: "/library/metadata/58683/banner/1703239236",
|
||||||
@@ -248,6 +253,11 @@ let value: GetLibraryItemsMediaContainer = {
|
|||||||
role: "Self",
|
role: "Self",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
location: [
|
||||||
|
{
|
||||||
|
path: "/TV Shows/House",
|
||||||
|
},
|
||||||
|
],
|
||||||
mediaGuid: [
|
mediaGuid: [
|
||||||
{
|
{
|
||||||
id: "imdb://tt13015952",
|
id: "imdb://tt13015952",
|
||||||
@@ -375,5 +385,5 @@ let value: GetLibraryItemsMediaContainer = {
|
|||||||
| `viewGroup` | *string* | :heavy_check_mark: | N/A | movie |
|
| `viewGroup` | *string* | :heavy_check_mark: | N/A | movie |
|
||||||
| `viewMode` | *number* | :heavy_minus_sign: | N/A | 65592 |
|
| `viewMode` | *number* | :heavy_minus_sign: | N/A | 65592 |
|
||||||
| `mixedParents` | *boolean* | :heavy_minus_sign: | N/A | true |
|
| `mixedParents` | *boolean* | :heavy_minus_sign: | N/A | true |
|
||||||
| `metadata` | [operations.GetLibraryItemsMetadata](../../../sdk/models/operations/getlibraryitemsmetadata.md)[] | :heavy_check_mark: | N/A | |
|
| `metadata` | [operations.GetLibraryItemsMetadata](../../../sdk/models/operations/getlibraryitemsmetadata.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
| `meta` | [operations.GetLibraryItemsMeta](../../../sdk/models/operations/getlibraryitemsmeta.md) | :heavy_minus_sign: | The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.<br/> | |
|
| `meta` | [operations.GetLibraryItemsMeta](../../../sdk/models/operations/getlibraryitemsmeta.md) | :heavy_minus_sign: | The Meta object is only included in the response if the `includeMeta` parameter is set to `1`.<br/> | |
|
||||||
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import {
|
import {
|
||||||
|
GetLibraryItemsEnableCreditsMarkerGeneration,
|
||||||
|
GetLibraryItemsEpisodeSort,
|
||||||
GetLibraryItemsFlattenSeasons,
|
GetLibraryItemsFlattenSeasons,
|
||||||
GetLibraryItemsHasThumbnail,
|
GetLibraryItemsHasThumbnail,
|
||||||
GetLibraryItemsLibraryResponse200Type,
|
GetLibraryItemsLibraryResponse200Type,
|
||||||
@@ -34,8 +36,11 @@ let value: GetLibraryItemsMetadata = {
|
|||||||
year: 2022,
|
year: 2022,
|
||||||
seasonCount: 2022,
|
seasonCount: 2022,
|
||||||
tagline: "Return to Pandora.",
|
tagline: "Return to Pandora.",
|
||||||
flattenSeasons: GetLibraryItemsFlattenSeasons.True,
|
flattenSeasons: GetLibraryItemsFlattenSeasons.Show,
|
||||||
showOrdering: GetLibraryItemsShowOrdering.Dvd,
|
episodeSort: GetLibraryItemsEpisodeSort.OldestFirst,
|
||||||
|
enableCreditsMarkerGeneration:
|
||||||
|
GetLibraryItemsEnableCreditsMarkerGeneration.LibraryDefault,
|
||||||
|
showOrdering: GetLibraryItemsShowOrdering.TvdbAbsolute,
|
||||||
thumb: "/library/metadata/58683/thumb/1703239236",
|
thumb: "/library/metadata/58683/thumb/1703239236",
|
||||||
art: "/library/metadata/58683/art/1703239236",
|
art: "/library/metadata/58683/art/1703239236",
|
||||||
banner: "/library/metadata/58683/banner/1703239236",
|
banner: "/library/metadata/58683/banner/1703239236",
|
||||||
@@ -172,6 +177,11 @@ let value: GetLibraryItemsMetadata = {
|
|||||||
role: "Self",
|
role: "Self",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
location: [
|
||||||
|
{
|
||||||
|
path: "/TV Shows/House",
|
||||||
|
},
|
||||||
|
],
|
||||||
mediaGuid: [
|
mediaGuid: [
|
||||||
{
|
{
|
||||||
id: "imdb://tt13015952",
|
id: "imdb://tt13015952",
|
||||||
@@ -244,8 +254,10 @@ let value: GetLibraryItemsMetadata = {
|
|||||||
| `year` | *number* | :heavy_minus_sign: | N/A | 2022 |
|
| `year` | *number* | :heavy_minus_sign: | N/A | 2022 |
|
||||||
| `seasonCount` | *number* | :heavy_minus_sign: | N/A | 2022 |
|
| `seasonCount` | *number* | :heavy_minus_sign: | N/A | 2022 |
|
||||||
| `tagline` | *string* | :heavy_minus_sign: | N/A | Return to Pandora. |
|
| `tagline` | *string* | :heavy_minus_sign: | N/A | Return to Pandora. |
|
||||||
| `flattenSeasons` | [operations.GetLibraryItemsFlattenSeasons](../../../sdk/models/operations/getlibraryitemsflattenseasons.md) | :heavy_minus_sign: | N/A | 1 |
|
| `flattenSeasons` | [operations.GetLibraryItemsFlattenSeasons](../../../sdk/models/operations/getlibraryitemsflattenseasons.md) | :heavy_minus_sign: | Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show). | 1 |
|
||||||
| `showOrdering` | [operations.GetLibraryItemsShowOrdering](../../../sdk/models/operations/getlibraryitemsshowordering.md) | :heavy_minus_sign: | Setting that indicates the episode ordering for the show <br/>None = Library default, <br/>tmdbAiring = The Movie Database (Aired), <br/>aired = TheTVDB (Aired), <br/>dvd = TheTVDB (DVD), <br/>absolute = TheTVDB (Absolute)).<br/> | dvd |
|
| `episodeSort` | [operations.GetLibraryItemsEpisodeSort](../../../sdk/models/operations/getlibraryitemsepisodesort.md) | :heavy_minus_sign: | Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first). | 0 |
|
||||||
|
| `enableCreditsMarkerGeneration` | [operations.GetLibraryItemsEnableCreditsMarkerGeneration](../../../sdk/models/operations/getlibraryitemsenablecreditsmarkergeneration.md) | :heavy_minus_sign: | Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled). | -1 |
|
||||||
|
| `showOrdering` | [operations.GetLibraryItemsShowOrdering](../../../sdk/models/operations/getlibraryitemsshowordering.md) | :heavy_minus_sign: | Setting that indicates the episode ordering for the show.<br/>None = Library default,<br/>tmdbAiring = The Movie Database (Aired),<br/>aired = TheTVDB (Aired),<br/>dvd = TheTVDB (DVD),<br/>absolute = TheTVDB (Absolute)).<br/> | absolute |
|
||||||
| `thumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 |
|
| `thumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 |
|
||||||
| `art` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 |
|
| `art` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 |
|
||||||
| `banner` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/banner/1703239236 |
|
| `banner` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/banner/1703239236 |
|
||||||
@@ -273,6 +285,7 @@ let value: GetLibraryItemsMetadata = {
|
|||||||
| `writer` | [operations.GetLibraryItemsWriter](../../../sdk/models/operations/getlibraryitemswriter.md)[] | :heavy_minus_sign: | N/A | |
|
| `writer` | [operations.GetLibraryItemsWriter](../../../sdk/models/operations/getlibraryitemswriter.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
| `collection` | [operations.GetLibraryItemsCollection](../../../sdk/models/operations/getlibraryitemscollection.md)[] | :heavy_minus_sign: | N/A | |
|
| `collection` | [operations.GetLibraryItemsCollection](../../../sdk/models/operations/getlibraryitemscollection.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
| `role` | [operations.GetLibraryItemsRole](../../../sdk/models/operations/getlibraryitemsrole.md)[] | :heavy_minus_sign: | N/A | |
|
| `role` | [operations.GetLibraryItemsRole](../../../sdk/models/operations/getlibraryitemsrole.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
|
| `location` | [operations.GetLibraryItemsLocation](../../../sdk/models/operations/getlibraryitemslocation.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
| `mediaGuid` | [operations.GetLibraryItemsMediaGuid](../../../sdk/models/operations/getlibraryitemsmediaguid.md)[] | :heavy_minus_sign: | The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.<br/> | |
|
| `mediaGuid` | [operations.GetLibraryItemsMediaGuid](../../../sdk/models/operations/getlibraryitemsmediaguid.md)[] | :heavy_minus_sign: | The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.<br/> | |
|
||||||
| `ultraBlurColors` | [operations.GetLibraryItemsUltraBlurColors](../../../sdk/models/operations/getlibraryitemsultrablurcolors.md) | :heavy_minus_sign: | N/A | |
|
| `ultraBlurColors` | [operations.GetLibraryItemsUltraBlurColors](../../../sdk/models/operations/getlibraryitemsultrablurcolors.md) | :heavy_minus_sign: | N/A | |
|
||||||
| `metaDataRating` | [operations.GetLibraryItemsMetaDataRating](../../../sdk/models/operations/getlibraryitemsmetadatarating.md)[] | :heavy_minus_sign: | N/A | |
|
| `metaDataRating` | [operations.GetLibraryItemsMetaDataRating](../../../sdk/models/operations/getlibraryitemsmetadatarating.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
|
|||||||
@@ -70,14 +70,14 @@ let value: GetLibraryItemsPart = {
|
|||||||
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
|
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `id` | *number* | :heavy_check_mark: | N/A | 119542 |
|
| `id` | *number* | :heavy_check_mark: | N/A | 119542 |
|
||||||
| `key` | *string* | :heavy_check_mark: | N/A | /library/parts/119542/1680457526/file.mkv |
|
| `key` | *string* | :heavy_check_mark: | N/A | /library/parts/119542/1680457526/file.mkv |
|
||||||
| `duration` | *number* | :heavy_check_mark: | N/A | 11558112 |
|
| `duration` | *number* | :heavy_minus_sign: | N/A | 11558112 |
|
||||||
| `file` | *string* | :heavy_check_mark: | N/A | /movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv |
|
| `file` | *string* | :heavy_check_mark: | N/A | /movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv |
|
||||||
| `size` | *number* | :heavy_check_mark: | N/A | 36158371307 |
|
| `size` | *number* | :heavy_check_mark: | N/A | 36158371307 |
|
||||||
| `container` | *string* | :heavy_check_mark: | The container format of the media file.<br/> | mkv |
|
| `container` | *string* | :heavy_check_mark: | The container format of the media file.<br/> | mkv |
|
||||||
| `audioProfile` | *string* | :heavy_minus_sign: | N/A | dts |
|
| `audioProfile` | *string* | :heavy_minus_sign: | N/A | dts |
|
||||||
| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false |
|
| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false |
|
||||||
| `optimizedForStreaming` | *boolean* | :heavy_minus_sign: | N/A | false |
|
| `optimizedForStreaming` | *boolean* | :heavy_minus_sign: | N/A | false |
|
||||||
| `videoProfile` | *string* | :heavy_check_mark: | N/A | main 10 |
|
| `videoProfile` | *string* | :heavy_minus_sign: | N/A | main 10 |
|
||||||
| `indexes` | *string* | :heavy_minus_sign: | N/A | sd |
|
| `indexes` | *string* | :heavy_minus_sign: | N/A | sd |
|
||||||
| `hasThumbnail` | [operations.GetLibraryItemsHasThumbnail](../../../sdk/models/operations/getlibraryitemshasthumbnail.md) | :heavy_minus_sign: | N/A | 1 |
|
| `hasThumbnail` | [operations.GetLibraryItemsHasThumbnail](../../../sdk/models/operations/getlibraryitemshasthumbnail.md) | :heavy_minus_sign: | N/A | 1 |
|
||||||
| `stream` | [operations.GetLibraryItemsStream](../../../sdk/models/operations/getlibraryitemsstream.md)[] | :heavy_minus_sign: | N/A | |
|
| `stream` | [operations.GetLibraryItemsStream](../../../sdk/models/operations/getlibraryitemsstream.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
@@ -24,3 +24,6 @@ let value: GetLibraryItemsQueryParamType = GetLibraryItemsQueryParamType.TvShow;
|
|||||||
| `TvShow` | 2 |
|
| `TvShow` | 2 |
|
||||||
| `Season` | 3 |
|
| `Season` | 3 |
|
||||||
| `Episode` | 4 |
|
| `Episode` | 4 |
|
||||||
|
| `Audio` | 8 |
|
||||||
|
| `Album` | 9 |
|
||||||
|
| `Track` | 10 |
|
||||||
@@ -12,10 +12,10 @@ import {
|
|||||||
} from "@lukehagar/plexjs/sdk/models/operations";
|
} from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
let value: GetLibraryItemsRequest = {
|
let value: GetLibraryItemsRequest = {
|
||||||
sectionKey: 9518,
|
tag: Tag.Folder,
|
||||||
tag: Tag.FirstCharacter,
|
|
||||||
includeGuids: IncludeGuids.Enable,
|
includeGuids: IncludeGuids.Enable,
|
||||||
type: GetLibraryItemsQueryParamType.TvShow,
|
type: GetLibraryItemsQueryParamType.TvShow,
|
||||||
|
sectionKey: 9518,
|
||||||
includeMeta: GetLibraryItemsQueryParamIncludeMeta.Enable,
|
includeMeta: GetLibraryItemsQueryParamIncludeMeta.Enable,
|
||||||
xPlexContainerStart: 0,
|
xPlexContainerStart: 0,
|
||||||
xPlexContainerSize: 50,
|
xPlexContainerSize: 50,
|
||||||
@@ -26,10 +26,10 @@ let value: GetLibraryItemsRequest = {
|
|||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `sectionKey` | *number* | :heavy_check_mark: | The unique key of the Plex library. <br/>Note: This is unique in the context of the Plex server.<br/> | 9518 |
|
|
||||||
| `tag` | [operations.Tag](../../../sdk/models/operations/tag.md) | :heavy_check_mark: | A key representing a specific tag within the section. | |
|
| `tag` | [operations.Tag](../../../sdk/models/operations/tag.md) | :heavy_check_mark: | A key representing a specific tag within the section. | |
|
||||||
| `includeGuids` | [operations.IncludeGuids](../../../sdk/models/operations/includeguids.md) | :heavy_minus_sign: | Adds the Guids object to the response<br/> | 1 |
|
| `includeGuids` | [operations.IncludeGuids](../../../sdk/models/operations/includeguids.md) | :heavy_minus_sign: | Adds the Guids object to the response<br/> | 1 |
|
||||||
| `type` | [operations.GetLibraryItemsQueryParamType](../../../sdk/models/operations/getlibraryitemsqueryparamtype.md) | :heavy_minus_sign: | The type of media to retrieve.<br/>1 = movie<br/>2 = show<br/>3 = season<br/>4 = episode<br/>E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries<br/> | 2 |
|
| `type` | [operations.GetLibraryItemsQueryParamType](../../../sdk/models/operations/getlibraryitemsqueryparamtype.md) | :heavy_minus_sign: | The type of media to retrieve.<br/>1 = movie<br/>2 = show<br/>3 = season<br/>4 = episode<br/>E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries<br/> | 2 |
|
||||||
|
| `sectionKey` | *number* | :heavy_check_mark: | The unique key of the Plex library. <br/>Note: This is unique in the context of the Plex server.<br/> | 9518 |
|
||||||
| `includeMeta` | [operations.GetLibraryItemsQueryParamIncludeMeta](../../../sdk/models/operations/getlibraryitemsqueryparamincludemeta.md) | :heavy_minus_sign: | Adds the Meta object to the response<br/> | 1 |
|
| `includeMeta` | [operations.GetLibraryItemsQueryParamIncludeMeta](../../../sdk/models/operations/getlibraryitemsqueryparamincludemeta.md) | :heavy_minus_sign: | Adds the Meta object to the response<br/> | 1 |
|
||||||
| `xPlexContainerStart` | *number* | :heavy_minus_sign: | The index of the first item to return. If not specified, the first item will be returned.<br/>If the number of items exceeds the limit, the response will be paginated.<br/>By default this is 0<br/> | 0 |
|
| `xPlexContainerStart` | *number* | :heavy_minus_sign: | The index of the first item to return. If not specified, the first item will be returned.<br/>If the number of items exceeds the limit, the response will be paginated.<br/>By default this is 0<br/> | 0 |
|
||||||
| `xPlexContainerSize` | *number* | :heavy_minus_sign: | The number of items to return. If not specified, all items will be returned.<br/>If the number of items exceeds the limit, the response will be paginated.<br/>By default this is 50<br/> | 50 |
|
| `xPlexContainerSize` | *number* | :heavy_minus_sign: | The number of items to return. If not specified, all items will be returned.<br/>If the number of items exceeds the limit, the response will be paginated.<br/>By default this is 50<br/> | 50 |
|
||||||
@@ -6,6 +6,8 @@
|
|||||||
import {
|
import {
|
||||||
GetLibraryItemsActiveDirection,
|
GetLibraryItemsActiveDirection,
|
||||||
GetLibraryItemsDefaultDirection,
|
GetLibraryItemsDefaultDirection,
|
||||||
|
GetLibraryItemsEnableCreditsMarkerGeneration,
|
||||||
|
GetLibraryItemsEpisodeSort,
|
||||||
GetLibraryItemsFlattenSeasons,
|
GetLibraryItemsFlattenSeasons,
|
||||||
GetLibraryItemsHasThumbnail,
|
GetLibraryItemsHasThumbnail,
|
||||||
GetLibraryItemsLibraryActiveDirection,
|
GetLibraryItemsLibraryActiveDirection,
|
||||||
@@ -114,8 +116,11 @@ let value: GetLibraryItemsResponse = {
|
|||||||
year: 2022,
|
year: 2022,
|
||||||
seasonCount: 2022,
|
seasonCount: 2022,
|
||||||
tagline: "Return to Pandora.",
|
tagline: "Return to Pandora.",
|
||||||
flattenSeasons: GetLibraryItemsFlattenSeasons.True,
|
flattenSeasons: GetLibraryItemsFlattenSeasons.Show,
|
||||||
showOrdering: GetLibraryItemsShowOrdering.Dvd,
|
episodeSort: GetLibraryItemsEpisodeSort.OldestFirst,
|
||||||
|
enableCreditsMarkerGeneration:
|
||||||
|
GetLibraryItemsEnableCreditsMarkerGeneration.LibraryDefault,
|
||||||
|
showOrdering: GetLibraryItemsShowOrdering.TvdbAbsolute,
|
||||||
thumb: "/library/metadata/58683/thumb/1703239236",
|
thumb: "/library/metadata/58683/thumb/1703239236",
|
||||||
art: "/library/metadata/58683/art/1703239236",
|
art: "/library/metadata/58683/art/1703239236",
|
||||||
banner: "/library/metadata/58683/banner/1703239236",
|
banner: "/library/metadata/58683/banner/1703239236",
|
||||||
@@ -253,6 +258,11 @@ let value: GetLibraryItemsResponse = {
|
|||||||
role: "Self",
|
role: "Self",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
location: [
|
||||||
|
{
|
||||||
|
path: "/TV Shows/House",
|
||||||
|
},
|
||||||
|
],
|
||||||
mediaGuid: [
|
mediaGuid: [
|
||||||
{
|
{
|
||||||
id: "imdb://tt13015952",
|
id: "imdb://tt13015952",
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ The contents of the library by section and tag
|
|||||||
import {
|
import {
|
||||||
GetLibraryItemsActiveDirection,
|
GetLibraryItemsActiveDirection,
|
||||||
GetLibraryItemsDefaultDirection,
|
GetLibraryItemsDefaultDirection,
|
||||||
|
GetLibraryItemsEnableCreditsMarkerGeneration,
|
||||||
|
GetLibraryItemsEpisodeSort,
|
||||||
GetLibraryItemsFlattenSeasons,
|
GetLibraryItemsFlattenSeasons,
|
||||||
GetLibraryItemsHasThumbnail,
|
GetLibraryItemsHasThumbnail,
|
||||||
GetLibraryItemsLibraryActiveDirection,
|
GetLibraryItemsLibraryActiveDirection,
|
||||||
@@ -110,8 +112,11 @@ let value: GetLibraryItemsResponseBody = {
|
|||||||
year: 2022,
|
year: 2022,
|
||||||
seasonCount: 2022,
|
seasonCount: 2022,
|
||||||
tagline: "Return to Pandora.",
|
tagline: "Return to Pandora.",
|
||||||
flattenSeasons: GetLibraryItemsFlattenSeasons.True,
|
flattenSeasons: GetLibraryItemsFlattenSeasons.Show,
|
||||||
showOrdering: GetLibraryItemsShowOrdering.Dvd,
|
episodeSort: GetLibraryItemsEpisodeSort.OldestFirst,
|
||||||
|
enableCreditsMarkerGeneration:
|
||||||
|
GetLibraryItemsEnableCreditsMarkerGeneration.LibraryDefault,
|
||||||
|
showOrdering: GetLibraryItemsShowOrdering.TvdbAbsolute,
|
||||||
thumb: "/library/metadata/58683/thumb/1703239236",
|
thumb: "/library/metadata/58683/thumb/1703239236",
|
||||||
art: "/library/metadata/58683/art/1703239236",
|
art: "/library/metadata/58683/art/1703239236",
|
||||||
banner: "/library/metadata/58683/banner/1703239236",
|
banner: "/library/metadata/58683/banner/1703239236",
|
||||||
@@ -248,6 +253,11 @@ let value: GetLibraryItemsResponseBody = {
|
|||||||
role: "Self",
|
role: "Self",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
location: [
|
||||||
|
{
|
||||||
|
path: "/TV Shows/House",
|
||||||
|
},
|
||||||
|
],
|
||||||
mediaGuid: [
|
mediaGuid: [
|
||||||
{
|
{
|
||||||
id: "imdb://tt13015952",
|
id: "imdb://tt13015952",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# GetLibraryItemsShowOrdering
|
# GetLibraryItemsShowOrdering
|
||||||
|
|
||||||
Setting that indicates the episode ordering for the show
|
Setting that indicates the episode ordering for the show.
|
||||||
None = Library default,
|
None = Library default,
|
||||||
tmdbAiring = The Movie Database (Aired),
|
tmdbAiring = The Movie Database (Aired),
|
||||||
aired = TheTVDB (Aired),
|
aired = TheTVDB (Aired),
|
||||||
@@ -13,15 +13,16 @@ absolute = TheTVDB (Absolute)).
|
|||||||
```typescript
|
```typescript
|
||||||
import { GetLibraryItemsShowOrdering } from "@lukehagar/plexjs/sdk/models/operations";
|
import { GetLibraryItemsShowOrdering } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
let value: GetLibraryItemsShowOrdering = GetLibraryItemsShowOrdering.Dvd;
|
let value: GetLibraryItemsShowOrdering =
|
||||||
|
GetLibraryItemsShowOrdering.TvdbAbsolute;
|
||||||
```
|
```
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Name | Value |
|
| Name | Value |
|
||||||
| ------------ | ------------ |
|
| -------------- | -------------- |
|
||||||
| `None` | None |
|
| `None` | None |
|
||||||
| `TmdbAiring` | tmdbAiring |
|
| `TmdbAiring` | tmdbAiring |
|
||||||
| `Aired` | aired |
|
| `TvdbAired` | aired |
|
||||||
| `Dvd` | dvd |
|
| `TvdbDvd` | dvd |
|
||||||
| `Absolute` | absolute |
|
| `TvdbAbsolute` | absolute |
|
||||||
@@ -12,6 +12,6 @@ let value: GetMediaProvidersRequest = {
|
|||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ------------------------- | ------------------------- | ------------------------- | ------------------------- | ------------------------- |
|
| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- |
|
||||||
| `xPlexToken` | *string* | :heavy_check_mark: | Plex Authentication Token | CV5xoxjTpFKUzBTShsaf |
|
| `xPlexToken` | *string* | :heavy_check_mark: | An authentication token, obtained from plex.tv | CV5xoxjTpFKUzBTShsaf |
|
||||||
@@ -185,6 +185,11 @@ let value: GetMetaDataByRatingKeyMetadata = {
|
|||||||
| `librarySectionTitle` | *string* | :heavy_minus_sign: | N/A | Movies |
|
| `librarySectionTitle` | *string* | :heavy_minus_sign: | N/A | Movies |
|
||||||
| `librarySectionID` | *number* | :heavy_minus_sign: | N/A | 1 |
|
| `librarySectionID` | *number* | :heavy_minus_sign: | N/A | 1 |
|
||||||
| `librarySectionKey` | *string* | :heavy_minus_sign: | N/A | /library/sections/1 |
|
| `librarySectionKey` | *string* | :heavy_minus_sign: | N/A | /library/sections/1 |
|
||||||
|
| `grandparentTitle` | *string* | :heavy_minus_sign: | The name of the album artist for the track when audio, and the name of the TV show for the episode when video. | |
|
||||||
|
| `parentTitle` | *string* | :heavy_minus_sign: | The name of the album for the track when audio, and the name of the season for the episode when TV show. | |
|
||||||
|
| `originalTitle` | *string* | :heavy_minus_sign: | The orginal untranslated name of the media item when non-english. | |
|
||||||
|
| `index` | *number* | :heavy_minus_sign: | The index starting from 0 of this media item in the MetaData array. | |
|
||||||
|
| `parentIndex` | *number* | :heavy_minus_sign: | The parent index starting from 0 of this media item in the parent MetaData array. | |
|
||||||
| `contentRating` | *string* | :heavy_minus_sign: | N/A | PG-13 |
|
| `contentRating` | *string* | :heavy_minus_sign: | N/A | PG-13 |
|
||||||
| `summary` | *string* | :heavy_minus_sign: | N/A | Serenity continues the story of the TV series it was based upon ("Firefly"). River Tam had a secret - one in which she's not even aware - so dangerous, no one's safe, as an Alliance operative's sent to capture her, and all others are considered irrelevant to his job. |
|
| `summary` | *string* | :heavy_minus_sign: | N/A | Serenity continues the story of the TV series it was based upon ("Firefly"). River Tam had a secret - one in which she's not even aware - so dangerous, no one's safe, as an Alliance operative's sent to capture her, and all others are considered irrelevant to his job. |
|
||||||
| `rating` | *number* | :heavy_minus_sign: | N/A | 8.2 |
|
| `rating` | *number* | :heavy_minus_sign: | N/A | 8.2 |
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { RFCDate } from "@lukehagar/plexjs/sdk/types";
|
|||||||
|
|
||||||
let value: GetMetaDataByRatingKeyResponse = {
|
let value: GetMetaDataByRatingKeyResponse = {
|
||||||
contentType: "<value>",
|
contentType: "<value>",
|
||||||
statusCode: 506,
|
statusCode: 207,
|
||||||
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ let value: GetMetadataChildrenMediaContainer = {
|
|||||||
parentKey: "/library/metadata/30072",
|
parentKey: "/library/metadata/30072",
|
||||||
parentTitle: "Reacher",
|
parentTitle: "Reacher",
|
||||||
summary:
|
summary:
|
||||||
"Based on\"Bad Luck and Trouble,\" when members of Reacher's old military unit start turning up dead, Reacher has just one thing on his mind—revenge.",
|
"Based on\"Bad Luck and Trouble,\" when members of Reacher's old military unit start turning up dead, Reacher has just one thing on his mind-revenge.",
|
||||||
index: 2,
|
index: 2,
|
||||||
parentIndex: 1,
|
parentIndex: 1,
|
||||||
viewCount: 11,
|
viewCount: 11,
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ let value: GetMetadataChildrenMetadata = {
|
|||||||
parentKey: "/library/metadata/30072",
|
parentKey: "/library/metadata/30072",
|
||||||
parentTitle: "Reacher",
|
parentTitle: "Reacher",
|
||||||
summary:
|
summary:
|
||||||
"Based on\"Bad Luck and Trouble,\" when members of Reacher's old military unit start turning up dead, Reacher has just one thing on his mind—revenge.",
|
"Based on\"Bad Luck and Trouble,\" when members of Reacher's old military unit start turning up dead, Reacher has just one thing on his mind-revenge.",
|
||||||
index: 2,
|
index: 2,
|
||||||
parentIndex: 1,
|
parentIndex: 1,
|
||||||
viewCount: 11,
|
viewCount: 11,
|
||||||
@@ -51,7 +51,7 @@ let value: GetMetadataChildrenMetadata = {
|
|||||||
| `title` | *string* | :heavy_minus_sign: | N/A | Season 2 |
|
| `title` | *string* | :heavy_minus_sign: | N/A | Season 2 |
|
||||||
| `parentKey` | *string* | :heavy_minus_sign: | N/A | /library/metadata/30072 |
|
| `parentKey` | *string* | :heavy_minus_sign: | N/A | /library/metadata/30072 |
|
||||||
| `parentTitle` | *string* | :heavy_minus_sign: | N/A | Reacher |
|
| `parentTitle` | *string* | :heavy_minus_sign: | N/A | Reacher |
|
||||||
| `summary` | *string* | :heavy_minus_sign: | N/A | Based on"Bad Luck and Trouble," when members of Reacher's old military unit start turning up dead, Reacher has just one thing on his mind—revenge. |
|
| `summary` | *string* | :heavy_minus_sign: | N/A | Based on"Bad Luck and Trouble," when members of Reacher's old military unit start turning up dead, Reacher has just one thing on his mind-revenge. |
|
||||||
| `index` | *number* | :heavy_minus_sign: | N/A | 2 |
|
| `index` | *number* | :heavy_minus_sign: | N/A | 2 |
|
||||||
| `parentIndex` | *number* | :heavy_minus_sign: | N/A | 1 |
|
| `parentIndex` | *number* | :heavy_minus_sign: | N/A | 1 |
|
||||||
| `viewCount` | *number* | :heavy_minus_sign: | N/A | 11 |
|
| `viewCount` | *number* | :heavy_minus_sign: | N/A | 11 |
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
import { GetMetadataChildrenRequest } from "@lukehagar/plexjs/sdk/models/operations";
|
import { GetMetadataChildrenRequest } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
let value: GetMetadataChildrenRequest = {
|
let value: GetMetadataChildrenRequest = {
|
||||||
ratingKey: 4071.83,
|
ratingKey: 1716.29,
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { GetMetadataChildrenResponse } from "@lukehagar/plexjs/sdk/models/operat
|
|||||||
|
|
||||||
let value: GetMetadataChildrenResponse = {
|
let value: GetMetadataChildrenResponse = {
|
||||||
contentType: "<value>",
|
contentType: "<value>",
|
||||||
statusCode: 102,
|
statusCode: 300,
|
||||||
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
}),
|
}),
|
||||||
@@ -57,7 +57,7 @@ let value: GetMetadataChildrenResponse = {
|
|||||||
parentKey: "/library/metadata/30072",
|
parentKey: "/library/metadata/30072",
|
||||||
parentTitle: "Reacher",
|
parentTitle: "Reacher",
|
||||||
summary:
|
summary:
|
||||||
"Based on\"Bad Luck and Trouble,\" when members of Reacher's old military unit start turning up dead, Reacher has just one thing on his mind—revenge.",
|
"Based on\"Bad Luck and Trouble,\" when members of Reacher's old military unit start turning up dead, Reacher has just one thing on his mind-revenge.",
|
||||||
index: 2,
|
index: 2,
|
||||||
parentIndex: 1,
|
parentIndex: 1,
|
||||||
viewCount: 11,
|
viewCount: 11,
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ let value: GetMetadataChildrenResponseBody = {
|
|||||||
parentKey: "/library/metadata/30072",
|
parentKey: "/library/metadata/30072",
|
||||||
parentTitle: "Reacher",
|
parentTitle: "Reacher",
|
||||||
summary:
|
summary:
|
||||||
"Based on\"Bad Luck and Trouble,\" when members of Reacher's old military unit start turning up dead, Reacher has just one thing on his mind—revenge.",
|
"Based on\"Bad Luck and Trouble,\" when members of Reacher's old military unit start turning up dead, Reacher has just one thing on his mind-revenge.",
|
||||||
index: 2,
|
index: 2,
|
||||||
parentIndex: 1,
|
parentIndex: 1,
|
||||||
viewCount: 11,
|
viewCount: 11,
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { GetOnDeckResponse } from "@lukehagar/plexjs/sdk/models/operations";
|
|||||||
|
|
||||||
let value: GetOnDeckResponse = {
|
let value: GetOnDeckResponse = {
|
||||||
contentType: "<value>",
|
contentType: "<value>",
|
||||||
statusCode: 511,
|
statusCode: 406,
|
||||||
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
# GetPinGlobals
|
|
||||||
|
|
||||||
## Example Usage
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
import { GetPinGlobals } from "@lukehagar/plexjs/sdk/models/operations";
|
|
||||||
|
|
||||||
let value: GetPinGlobals = {};
|
|
||||||
```
|
|
||||||
|
|
||||||
## Fields
|
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
|
||||||
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
||||||
| `clientID` | *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` | *string* | :heavy_minus_sign: | N/A | Plex Web |
|
|
||||||
| `deviceName` | *string* | :heavy_minus_sign: | N/A | Linux |
|
|
||||||
| `clientVersion` | *string* | :heavy_minus_sign: | N/A | 4.133.0 |
|
|
||||||
| `clientPlatform` | *string* | :heavy_minus_sign: | N/A | Chrome |
|
|
||||||
@@ -5,16 +5,22 @@
|
|||||||
```typescript
|
```typescript
|
||||||
import { GetPinRequest } from "@lukehagar/plexjs/sdk/models/operations";
|
import { GetPinRequest } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
let value: GetPinRequest = {};
|
let value: GetPinRequest = {
|
||||||
|
clientID: "3381b62b-9ab7-4e37-827b-203e9809eb58",
|
||||||
|
clientName: "Plex for Roku",
|
||||||
|
deviceNickname: "Roku 3",
|
||||||
|
clientVersion: "2.4.1",
|
||||||
|
platform: "Roku",
|
||||||
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `strong` | *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` | *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` | *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 |
|
| `clientID` | *string* | :heavy_check_mark: | An opaque identifier unique to the client (UUID, serial number, or other unique device ID) | 3381b62b-9ab7-4e37-827b-203e9809eb58 |
|
||||||
| `clientName` | *string* | :heavy_minus_sign: | N/A | Plex Web |
|
| `clientName` | *string* | :heavy_minus_sign: | The name of the client application. (Plex Web, Plex Media Server, etc.) | Plex for Roku |
|
||||||
| `deviceName` | *string* | :heavy_minus_sign: | N/A | Linux |
|
| `deviceNickname` | *string* | :heavy_minus_sign: | A relatively friendly name for the client device | Roku 3 |
|
||||||
| `clientVersion` | *string* | :heavy_minus_sign: | N/A | 4.133.0 |
|
| `clientVersion` | *string* | :heavy_minus_sign: | The version of the client application. | 2.4.1 |
|
||||||
| `clientPlatform` | *string* | :heavy_minus_sign: | N/A | Chrome |
|
| `platform` | *string* | :heavy_minus_sign: | The platform of the client application. | Roku |
|
||||||
@@ -25,3 +25,6 @@ let value: GetPlaylistContentsQueryParamType =
|
|||||||
| `TvShow` | 2 |
|
| `TvShow` | 2 |
|
||||||
| `Season` | 3 |
|
| `Season` | 3 |
|
||||||
| `Episode` | 4 |
|
| `Episode` | 4 |
|
||||||
|
| `Audio` | 8 |
|
||||||
|
| `Album` | 9 |
|
||||||
|
| `Track` | 10 |
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
import { GetPlaylistContentsQueryParamType, GetPlaylistContentsRequest } from "@lukehagar/plexjs/sdk/models/operations";
|
import { GetPlaylistContentsQueryParamType, GetPlaylistContentsRequest } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
let value: GetPlaylistContentsRequest = {
|
let value: GetPlaylistContentsRequest = {
|
||||||
playlistID: 1796.04,
|
playlistID: 206.51,
|
||||||
type: GetPlaylistContentsQueryParamType.TvShow,
|
type: GetPlaylistContentsQueryParamType.TvShow,
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { RFCDate } from "@lukehagar/plexjs/sdk/types";
|
|||||||
|
|
||||||
let value: GetPlaylistContentsResponse = {
|
let value: GetPlaylistContentsResponse = {
|
||||||
contentType: "<value>",
|
contentType: "<value>",
|
||||||
statusCode: 100,
|
statusCode: 409,
|
||||||
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
import { GetPlaylistRequest } from "@lukehagar/plexjs/sdk/models/operations";
|
import { GetPlaylistRequest } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
let value: GetPlaylistRequest = {
|
let value: GetPlaylistRequest = {
|
||||||
playlistID: 7395.51,
|
playlistID: 672.49,
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { GetPlaylistResponse } from "@lukehagar/plexjs/sdk/models/operations";
|
|||||||
|
|
||||||
let value: GetPlaylistResponse = {
|
let value: GetPlaylistResponse = {
|
||||||
contentType: "<value>",
|
contentType: "<value>",
|
||||||
statusCode: 302,
|
statusCode: 413,
|
||||||
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { GetPlaylistsResponse } from "@lukehagar/plexjs/sdk/models/operations";
|
|||||||
|
|
||||||
let value: GetPlaylistsResponse = {
|
let value: GetPlaylistsResponse = {
|
||||||
contentType: "<value>",
|
contentType: "<value>",
|
||||||
statusCode: 103,
|
statusCode: 100,
|
||||||
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import {
|
import {
|
||||||
|
EnableCreditsMarkerGeneration,
|
||||||
|
EpisodeSort,
|
||||||
FlattenSeasons,
|
FlattenSeasons,
|
||||||
GetRecentlyAddedActiveDirection,
|
GetRecentlyAddedActiveDirection,
|
||||||
GetRecentlyAddedDefaultDirection,
|
GetRecentlyAddedDefaultDirection,
|
||||||
@@ -90,8 +92,11 @@ let value: GetRecentlyAddedMediaContainer = {
|
|||||||
year: 2022,
|
year: 2022,
|
||||||
seasonCount: 2022,
|
seasonCount: 2022,
|
||||||
tagline: "Return to Pandora.",
|
tagline: "Return to Pandora.",
|
||||||
flattenSeasons: FlattenSeasons.True,
|
flattenSeasons: FlattenSeasons.Show,
|
||||||
showOrdering: ShowOrdering.Dvd,
|
episodeSort: EpisodeSort.OldestFirst,
|
||||||
|
enableCreditsMarkerGeneration:
|
||||||
|
EnableCreditsMarkerGeneration.LibraryDefault,
|
||||||
|
showOrdering: ShowOrdering.TvdbAbsolute,
|
||||||
thumb: "/library/metadata/58683/thumb/1703239236",
|
thumb: "/library/metadata/58683/thumb/1703239236",
|
||||||
art: "/library/metadata/58683/art/1703239236",
|
art: "/library/metadata/58683/art/1703239236",
|
||||||
banner: "/library/metadata/58683/banner/1703239236",
|
banner: "/library/metadata/58683/banner/1703239236",
|
||||||
@@ -228,6 +233,11 @@ let value: GetRecentlyAddedMediaContainer = {
|
|||||||
role: "Self",
|
role: "Self",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
location: [
|
||||||
|
{
|
||||||
|
path: "/TV Shows/House",
|
||||||
|
},
|
||||||
|
],
|
||||||
mediaGuid: [
|
mediaGuid: [
|
||||||
{
|
{
|
||||||
id: "imdb://tt13015952",
|
id: "imdb://tt13015952",
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import {
|
import {
|
||||||
|
EnableCreditsMarkerGeneration,
|
||||||
|
EpisodeSort,
|
||||||
FlattenSeasons,
|
FlattenSeasons,
|
||||||
GetRecentlyAddedHubsResponseType,
|
GetRecentlyAddedHubsResponseType,
|
||||||
GetRecentlyAddedHubsType,
|
GetRecentlyAddedHubsType,
|
||||||
@@ -34,8 +36,10 @@ let value: GetRecentlyAddedMetadata = {
|
|||||||
year: 2022,
|
year: 2022,
|
||||||
seasonCount: 2022,
|
seasonCount: 2022,
|
||||||
tagline: "Return to Pandora.",
|
tagline: "Return to Pandora.",
|
||||||
flattenSeasons: FlattenSeasons.True,
|
flattenSeasons: FlattenSeasons.Show,
|
||||||
showOrdering: ShowOrdering.Dvd,
|
episodeSort: EpisodeSort.OldestFirst,
|
||||||
|
enableCreditsMarkerGeneration: EnableCreditsMarkerGeneration.LibraryDefault,
|
||||||
|
showOrdering: ShowOrdering.TvdbAbsolute,
|
||||||
thumb: "/library/metadata/58683/thumb/1703239236",
|
thumb: "/library/metadata/58683/thumb/1703239236",
|
||||||
art: "/library/metadata/58683/art/1703239236",
|
art: "/library/metadata/58683/art/1703239236",
|
||||||
banner: "/library/metadata/58683/banner/1703239236",
|
banner: "/library/metadata/58683/banner/1703239236",
|
||||||
@@ -172,6 +176,11 @@ let value: GetRecentlyAddedMetadata = {
|
|||||||
role: "Self",
|
role: "Self",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
location: [
|
||||||
|
{
|
||||||
|
path: "/TV Shows/House",
|
||||||
|
},
|
||||||
|
],
|
||||||
mediaGuid: [
|
mediaGuid: [
|
||||||
{
|
{
|
||||||
id: "imdb://tt13015952",
|
id: "imdb://tt13015952",
|
||||||
@@ -244,8 +253,10 @@ let value: GetRecentlyAddedMetadata = {
|
|||||||
| `year` | *number* | :heavy_minus_sign: | N/A | 2022 |
|
| `year` | *number* | :heavy_minus_sign: | N/A | 2022 |
|
||||||
| `seasonCount` | *number* | :heavy_minus_sign: | N/A | 2022 |
|
| `seasonCount` | *number* | :heavy_minus_sign: | N/A | 2022 |
|
||||||
| `tagline` | *string* | :heavy_minus_sign: | N/A | Return to Pandora. |
|
| `tagline` | *string* | :heavy_minus_sign: | N/A | Return to Pandora. |
|
||||||
| `flattenSeasons` | [operations.FlattenSeasons](../../../sdk/models/operations/flattenseasons.md) | :heavy_minus_sign: | N/A | 1 |
|
| `flattenSeasons` | [operations.FlattenSeasons](../../../sdk/models/operations/flattenseasons.md) | :heavy_minus_sign: | Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show). | 1 |
|
||||||
| `showOrdering` | [operations.ShowOrdering](../../../sdk/models/operations/showordering.md) | :heavy_minus_sign: | Setting that indicates the episode ordering for the show <br/>None = Library default, <br/>tmdbAiring = The Movie Database (Aired), <br/>aired = TheTVDB (Aired), <br/>dvd = TheTVDB (DVD), <br/>absolute = TheTVDB (Absolute)).<br/> | dvd |
|
| `episodeSort` | [operations.EpisodeSort](../../../sdk/models/operations/episodesort.md) | :heavy_minus_sign: | Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first). | 0 |
|
||||||
|
| `enableCreditsMarkerGeneration` | [operations.EnableCreditsMarkerGeneration](../../../sdk/models/operations/enablecreditsmarkergeneration.md) | :heavy_minus_sign: | Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled). | -1 |
|
||||||
|
| `showOrdering` | [operations.ShowOrdering](../../../sdk/models/operations/showordering.md) | :heavy_minus_sign: | Setting that indicates the episode ordering for the show.<br/>None = Library default,<br/>tmdbAiring = The Movie Database (Aired),<br/>aired = TheTVDB (Aired),<br/>dvd = TheTVDB (DVD),<br/>absolute = TheTVDB (Absolute)).<br/> | absolute |
|
||||||
| `thumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 |
|
| `thumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 |
|
||||||
| `art` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 |
|
| `art` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 |
|
||||||
| `banner` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/banner/1703239236 |
|
| `banner` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/banner/1703239236 |
|
||||||
@@ -273,6 +284,7 @@ let value: GetRecentlyAddedMetadata = {
|
|||||||
| `writer` | [operations.Writer](../../../sdk/models/operations/writer.md)[] | :heavy_minus_sign: | N/A | |
|
| `writer` | [operations.Writer](../../../sdk/models/operations/writer.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
| `collection` | [operations.Collection](../../../sdk/models/operations/collection.md)[] | :heavy_minus_sign: | N/A | |
|
| `collection` | [operations.Collection](../../../sdk/models/operations/collection.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
| `role` | [operations.Role](../../../sdk/models/operations/role.md)[] | :heavy_minus_sign: | N/A | |
|
| `role` | [operations.Role](../../../sdk/models/operations/role.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
|
| `location` | [operations.Location](../../../sdk/models/operations/location.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
| `mediaGuid` | [operations.MediaGuid](../../../sdk/models/operations/mediaguid.md)[] | :heavy_minus_sign: | The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.<br/> | |
|
| `mediaGuid` | [operations.MediaGuid](../../../sdk/models/operations/mediaguid.md)[] | :heavy_minus_sign: | The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.<br/> | |
|
||||||
| `ultraBlurColors` | [operations.UltraBlurColors](../../../sdk/models/operations/ultrablurcolors.md) | :heavy_minus_sign: | N/A | |
|
| `ultraBlurColors` | [operations.UltraBlurColors](../../../sdk/models/operations/ultrablurcolors.md) | :heavy_minus_sign: | N/A | |
|
||||||
| `metaDataRating` | [operations.MetaDataRating](../../../sdk/models/operations/metadatarating.md)[] | :heavy_minus_sign: | N/A | |
|
| `metaDataRating` | [operations.MetaDataRating](../../../sdk/models/operations/metadatarating.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import {
|
import {
|
||||||
|
EnableCreditsMarkerGeneration,
|
||||||
|
EpisodeSort,
|
||||||
FlattenSeasons,
|
FlattenSeasons,
|
||||||
GetRecentlyAddedActiveDirection,
|
GetRecentlyAddedActiveDirection,
|
||||||
GetRecentlyAddedDefaultDirection,
|
GetRecentlyAddedDefaultDirection,
|
||||||
@@ -97,8 +99,11 @@ let value: GetRecentlyAddedResponse = {
|
|||||||
year: 2022,
|
year: 2022,
|
||||||
seasonCount: 2022,
|
seasonCount: 2022,
|
||||||
tagline: "Return to Pandora.",
|
tagline: "Return to Pandora.",
|
||||||
flattenSeasons: FlattenSeasons.True,
|
flattenSeasons: FlattenSeasons.Show,
|
||||||
showOrdering: ShowOrdering.Dvd,
|
episodeSort: EpisodeSort.OldestFirst,
|
||||||
|
enableCreditsMarkerGeneration:
|
||||||
|
EnableCreditsMarkerGeneration.LibraryDefault,
|
||||||
|
showOrdering: ShowOrdering.TvdbAbsolute,
|
||||||
thumb: "/library/metadata/58683/thumb/1703239236",
|
thumb: "/library/metadata/58683/thumb/1703239236",
|
||||||
art: "/library/metadata/58683/art/1703239236",
|
art: "/library/metadata/58683/art/1703239236",
|
||||||
banner: "/library/metadata/58683/banner/1703239236",
|
banner: "/library/metadata/58683/banner/1703239236",
|
||||||
@@ -235,6 +240,11 @@ let value: GetRecentlyAddedResponse = {
|
|||||||
role: "Self",
|
role: "Self",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
location: [
|
||||||
|
{
|
||||||
|
path: "/TV Shows/House",
|
||||||
|
},
|
||||||
|
],
|
||||||
mediaGuid: [
|
mediaGuid: [
|
||||||
{
|
{
|
||||||
id: "imdb://tt13015952",
|
id: "imdb://tt13015952",
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ A successful response with recently added content.
|
|||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import {
|
import {
|
||||||
|
EnableCreditsMarkerGeneration,
|
||||||
|
EpisodeSort,
|
||||||
FlattenSeasons,
|
FlattenSeasons,
|
||||||
GetRecentlyAddedActiveDirection,
|
GetRecentlyAddedActiveDirection,
|
||||||
GetRecentlyAddedDefaultDirection,
|
GetRecentlyAddedDefaultDirection,
|
||||||
@@ -93,8 +95,11 @@ let value: GetRecentlyAddedResponseBody = {
|
|||||||
year: 2022,
|
year: 2022,
|
||||||
seasonCount: 2022,
|
seasonCount: 2022,
|
||||||
tagline: "Return to Pandora.",
|
tagline: "Return to Pandora.",
|
||||||
flattenSeasons: FlattenSeasons.True,
|
flattenSeasons: FlattenSeasons.Show,
|
||||||
showOrdering: ShowOrdering.Dvd,
|
episodeSort: EpisodeSort.OldestFirst,
|
||||||
|
enableCreditsMarkerGeneration:
|
||||||
|
EnableCreditsMarkerGeneration.LibraryDefault,
|
||||||
|
showOrdering: ShowOrdering.TvdbAbsolute,
|
||||||
thumb: "/library/metadata/58683/thumb/1703239236",
|
thumb: "/library/metadata/58683/thumb/1703239236",
|
||||||
art: "/library/metadata/58683/art/1703239236",
|
art: "/library/metadata/58683/art/1703239236",
|
||||||
banner: "/library/metadata/58683/banner/1703239236",
|
banner: "/library/metadata/58683/banner/1703239236",
|
||||||
@@ -231,6 +236,11 @@ let value: GetRecentlyAddedResponseBody = {
|
|||||||
role: "Self",
|
role: "Self",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
location: [
|
||||||
|
{
|
||||||
|
path: "/TV Shows/House",
|
||||||
|
},
|
||||||
|
],
|
||||||
mediaGuid: [
|
mediaGuid: [
|
||||||
{
|
{
|
||||||
id: "imdb://tt13015952",
|
id: "imdb://tt13015952",
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
import { Force, GetRefreshLibraryMetadataRequest } from "@lukehagar/plexjs/sdk/models/operations";
|
import { Force, GetRefreshLibraryMetadataRequest } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
let value: GetRefreshLibraryMetadataRequest = {
|
let value: GetRefreshLibraryMetadataRequest = {
|
||||||
sectionKey: 9518,
|
|
||||||
force: Force.One,
|
force: Force.One,
|
||||||
|
sectionKey: 9518,
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -15,5 +15,5 @@ let value: GetRefreshLibraryMetadataRequest = {
|
|||||||
|
|
||||||
| Field | Type | Required | Description | Example |
|
| Field | Type | Required | Description | Example |
|
||||||
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
||||||
| `sectionKey` | *number* | :heavy_check_mark: | The unique key of the Plex library. <br/>Note: This is unique in the context of the Plex server.<br/> | 9518 |
|
|
||||||
| `force` | [operations.Force](../../../sdk/models/operations/force.md) | :heavy_minus_sign: | Force the refresh even if the library is already being refreshed. | 0 |
|
| `force` | [operations.Force](../../../sdk/models/operations/force.md) | :heavy_minus_sign: | Force the refresh even if the library is already being refreshed. | 0 |
|
||||||
|
| `sectionKey` | *number* | :heavy_check_mark: | The unique key of the Plex library. <br/>Note: This is unique in the context of the Plex server.<br/> | 9518 |
|
||||||
@@ -7,7 +7,7 @@ import { GetResourcesStatisticsResponse } from "@lukehagar/plexjs/sdk/models/ope
|
|||||||
|
|
||||||
let value: GetResourcesStatisticsResponse = {
|
let value: GetResourcesStatisticsResponse = {
|
||||||
contentType: "<value>",
|
contentType: "<value>",
|
||||||
statusCode: 307,
|
statusCode: 301,
|
||||||
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
# GetSearchAllLibrariesCollection
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesCollection } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesCollection = {
|
||||||
|
tag: "Working NL Subs",
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
||||||
|
| `tag` | *string* | :heavy_minus_sign: | N/A | Working NL Subs |
|
||||||
17
docs/sdk/models/operations/getsearchalllibrariescountry.md
Normal file
17
docs/sdk/models/operations/getsearchalllibrariescountry.md
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# GetSearchAllLibrariesCountry
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesCountry } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesCountry = {
|
||||||
|
tag: "United States of America",
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------------ | ------------------------ | ------------------------ | ------------------------ | ------------------------ |
|
||||||
|
| `tag` | *string* | :heavy_minus_sign: | N/A | United States of America |
|
||||||
17
docs/sdk/models/operations/getsearchalllibrariesdirector.md
Normal file
17
docs/sdk/models/operations/getsearchalllibrariesdirector.md
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# GetSearchAllLibrariesDirector
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesDirector } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesDirector = {
|
||||||
|
tag: "James Cameron",
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
||||||
|
| `tag` | *string* | :heavy_minus_sign: | N/A | James Cameron |
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# GetSearchAllLibrariesEnableCreditsMarkerGeneration
|
||||||
|
|
||||||
|
Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesEnableCreditsMarkerGeneration } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesEnableCreditsMarkerGeneration =
|
||||||
|
GetSearchAllLibrariesEnableCreditsMarkerGeneration.LibraryDefault;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| ---------------- | ---------------- |
|
||||||
|
| `LibraryDefault` | -1 |
|
||||||
|
| `Disabled` | 0 |
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
# GetSearchAllLibrariesEpisodeSort
|
||||||
|
|
||||||
|
Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesEpisodeSort } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesEpisodeSort =
|
||||||
|
GetSearchAllLibrariesEpisodeSort.OldestFirst;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| ---------------- | ---------------- |
|
||||||
|
| `LibraryDefault` | -1 |
|
||||||
|
| `OldestFirst` | 0 |
|
||||||
|
| `NewestFirst` | 1 |
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
# GetSearchAllLibrariesFlattenSeasons
|
||||||
|
|
||||||
|
Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesFlattenSeasons } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesFlattenSeasons =
|
||||||
|
GetSearchAllLibrariesFlattenSeasons.Show;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| ---------------- | ---------------- |
|
||||||
|
| `LibraryDefault` | -1 |
|
||||||
|
| `Hide` | 0 |
|
||||||
|
| `Show` | 1 |
|
||||||
17
docs/sdk/models/operations/getsearchalllibrariesgenre.md
Normal file
17
docs/sdk/models/operations/getsearchalllibrariesgenre.md
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# GetSearchAllLibrariesGenre
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesGenre } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesGenre = {
|
||||||
|
tag: "Adventure",
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
||||||
|
| `tag` | *string* | :heavy_minus_sign: | N/A | Adventure |
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
# GetSearchAllLibrariesHasThumbnail
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesHasThumbnail } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesHasThumbnail =
|
||||||
|
GetSearchAllLibrariesHasThumbnail.True;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| ------- | ------- |
|
||||||
|
| `False` | 0 |
|
||||||
|
| `True` | 1 |
|
||||||
21
docs/sdk/models/operations/getsearchalllibrariesimage.md
Normal file
21
docs/sdk/models/operations/getsearchalllibrariesimage.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# GetSearchAllLibrariesImage
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesImage, GetSearchAllLibrariesLibraryType } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesImage = {
|
||||||
|
alt: "Episode 1",
|
||||||
|
type: GetSearchAllLibrariesLibraryType.Background,
|
||||||
|
url: "/library/metadata/45521/thumb/1644710589",
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `alt` | *string* | :heavy_check_mark: | N/A | Episode 1 |
|
||||||
|
| `type` | [operations.GetSearchAllLibrariesLibraryType](../../../sdk/models/operations/getsearchalllibrarieslibrarytype.md) | :heavy_check_mark: | N/A | background |
|
||||||
|
| `url` | *string* | :heavy_check_mark: | N/A | /library/metadata/45521/thumb/1644710589 |
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# GetSearchAllLibrariesLibraryType
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesLibraryType } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesLibraryType =
|
||||||
|
GetSearchAllLibrariesLibraryType.Background;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| ------------- | ------------- |
|
||||||
|
| `CoverPoster` | coverPoster |
|
||||||
|
| `Background` | background |
|
||||||
|
| `Snapshot` | snapshot |
|
||||||
|
| `ClearLogo` | clearLogo |
|
||||||
17
docs/sdk/models/operations/getsearchalllibrarieslocation.md
Normal file
17
docs/sdk/models/operations/getsearchalllibrarieslocation.md
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# GetSearchAllLibrariesLocation
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesLocation } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesLocation = {
|
||||||
|
path: "/TV Shows/House",
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
||||||
|
| `path` | *string* | :heavy_minus_sign: | N/A | /TV Shows/House |
|
||||||
113
docs/sdk/models/operations/getsearchalllibrariesmedia.md
Normal file
113
docs/sdk/models/operations/getsearchalllibrariesmedia.md
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
# GetSearchAllLibrariesMedia
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import {
|
||||||
|
GetSearchAllLibrariesHasThumbnail,
|
||||||
|
GetSearchAllLibrariesMedia,
|
||||||
|
GetSearchAllLibrariesOptimizedForStreaming,
|
||||||
|
} from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesMedia = {
|
||||||
|
id: 119534,
|
||||||
|
duration: 11558112,
|
||||||
|
bitrate: 25025,
|
||||||
|
width: 3840,
|
||||||
|
height: 2072,
|
||||||
|
aspectRatio: 1.85,
|
||||||
|
audioProfile: "dts",
|
||||||
|
audioChannels: 6,
|
||||||
|
audioCodec: "eac3",
|
||||||
|
videoCodec: "hevc",
|
||||||
|
videoResolution: "4k",
|
||||||
|
container: "mkv",
|
||||||
|
videoFrameRate: "24p",
|
||||||
|
videoProfile: "main 10",
|
||||||
|
hasVoiceActivity: false,
|
||||||
|
optimizedForStreaming: GetSearchAllLibrariesOptimizedForStreaming.Enable,
|
||||||
|
has64bitOffsets: false,
|
||||||
|
part: [
|
||||||
|
{
|
||||||
|
id: 119542,
|
||||||
|
key: "/library/parts/119542/1680457526/file.mkv",
|
||||||
|
duration: 11558112,
|
||||||
|
file:
|
||||||
|
"/movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv",
|
||||||
|
size: 36158371307,
|
||||||
|
container: "mkv",
|
||||||
|
audioProfile: "dts",
|
||||||
|
has64bitOffsets: false,
|
||||||
|
optimizedForStreaming: false,
|
||||||
|
videoProfile: "main 10",
|
||||||
|
indexes: "sd",
|
||||||
|
hasThumbnail: GetSearchAllLibrariesHasThumbnail.True,
|
||||||
|
stream: [
|
||||||
|
{
|
||||||
|
id: 272796,
|
||||||
|
streamType: 1,
|
||||||
|
default: true,
|
||||||
|
selected: true,
|
||||||
|
codec: "h264",
|
||||||
|
index: 0,
|
||||||
|
bitrate: 6273,
|
||||||
|
colorPrimaries: "bt709",
|
||||||
|
colorRange: "tv",
|
||||||
|
colorSpace: "bt709",
|
||||||
|
colorTrc: "bt709",
|
||||||
|
bitDepth: 8,
|
||||||
|
chromaLocation: "left",
|
||||||
|
streamIdentifier: "2",
|
||||||
|
chromaSubsampling: "4:2:0",
|
||||||
|
codedHeight: 1088,
|
||||||
|
codedWidth: 1920,
|
||||||
|
frameRate: 29.97,
|
||||||
|
hasScalingMatrix: false,
|
||||||
|
hearingImpaired: false,
|
||||||
|
closedCaptions: false,
|
||||||
|
embeddedInVideo: "1",
|
||||||
|
height: 1080,
|
||||||
|
level: 40,
|
||||||
|
profile: "main",
|
||||||
|
refFrames: 4,
|
||||||
|
scanType: "progressive",
|
||||||
|
width: 1920,
|
||||||
|
displayTitle: "1080p (H.264)",
|
||||||
|
extendedDisplayTitle: "1080p (H.264)",
|
||||||
|
channels: 2,
|
||||||
|
language: "English",
|
||||||
|
languageTag: "en",
|
||||||
|
languageCode: "eng",
|
||||||
|
audioChannelLayout: "stereo",
|
||||||
|
samplingRate: 48000,
|
||||||
|
title: "English",
|
||||||
|
canAutoSync: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `id` | *number* | :heavy_check_mark: | N/A | 119534 |
|
||||||
|
| `duration` | *number* | :heavy_minus_sign: | N/A | 11558112 |
|
||||||
|
| `bitrate` | *number* | :heavy_minus_sign: | N/A | 25025 |
|
||||||
|
| `width` | *number* | :heavy_minus_sign: | N/A | 3840 |
|
||||||
|
| `height` | *number* | :heavy_minus_sign: | N/A | 2072 |
|
||||||
|
| `aspectRatio` | *number* | :heavy_minus_sign: | N/A | 1.85 |
|
||||||
|
| `audioProfile` | *string* | :heavy_minus_sign: | N/A | dts |
|
||||||
|
| `audioChannels` | *number* | :heavy_minus_sign: | N/A | 6 |
|
||||||
|
| `audioCodec` | *string* | :heavy_minus_sign: | N/A | eac3 |
|
||||||
|
| `videoCodec` | *string* | :heavy_minus_sign: | N/A | hevc |
|
||||||
|
| `videoResolution` | *string* | :heavy_minus_sign: | N/A | 4k |
|
||||||
|
| `container` | *string* | :heavy_check_mark: | N/A | mkv |
|
||||||
|
| `videoFrameRate` | *string* | :heavy_minus_sign: | N/A | 24p |
|
||||||
|
| `videoProfile` | *string* | :heavy_minus_sign: | N/A | main 10 |
|
||||||
|
| `hasVoiceActivity` | *boolean* | :heavy_minus_sign: | N/A | false |
|
||||||
|
| `optimizedForStreaming` | [operations.GetSearchAllLibrariesOptimizedForStreaming](../../../sdk/models/operations/getsearchalllibrariesoptimizedforstreaming.md) | :heavy_minus_sign: | N/A | 1 |
|
||||||
|
| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false |
|
||||||
|
| `part` | [operations.GetSearchAllLibrariesPart](../../../sdk/models/operations/getsearchalllibrariespart.md)[] | :heavy_check_mark: | N/A | |
|
||||||
@@ -0,0 +1,249 @@
|
|||||||
|
# GetSearchAllLibrariesMediaContainer
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import {
|
||||||
|
GetSearchAllLibrariesEnableCreditsMarkerGeneration,
|
||||||
|
GetSearchAllLibrariesEpisodeSort,
|
||||||
|
GetSearchAllLibrariesFlattenSeasons,
|
||||||
|
GetSearchAllLibrariesHasThumbnail,
|
||||||
|
GetSearchAllLibrariesLibraryType,
|
||||||
|
GetSearchAllLibrariesMediaContainer,
|
||||||
|
GetSearchAllLibrariesOptimizedForStreaming,
|
||||||
|
GetSearchAllLibrariesShowOrdering,
|
||||||
|
GetSearchAllLibrariesType,
|
||||||
|
} from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
import { RFCDate } from "@lukehagar/plexjs/sdk/types";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesMediaContainer = {
|
||||||
|
size: 691.67,
|
||||||
|
searchResult: [
|
||||||
|
{
|
||||||
|
score: 6974.29,
|
||||||
|
metadata: {
|
||||||
|
ratingKey: "58683",
|
||||||
|
key: "/library/metadata/58683",
|
||||||
|
guid: "plex://movie/5d7768ba96b655001fdc0408",
|
||||||
|
studio: "20th Century Studios",
|
||||||
|
skipChildren: false,
|
||||||
|
librarySectionID: 1,
|
||||||
|
librarySectionTitle: "Movies",
|
||||||
|
librarySectionKey: "/library/sections/1",
|
||||||
|
type: GetSearchAllLibrariesType.Movie,
|
||||||
|
title: "Avatar: The Way of Water",
|
||||||
|
slug: "4-for-texas",
|
||||||
|
contentRating: "PG-13",
|
||||||
|
summary:
|
||||||
|
"Jake Sully lives with his newfound family formed on the extrasolar moon Pandora. Once a familiar threat returns to finish what was previously started, Jake must work with Neytiri and the army of the Na'vi race to protect their home.",
|
||||||
|
rating: 7.6,
|
||||||
|
audienceRating: 9.2,
|
||||||
|
year: 2022,
|
||||||
|
seasonCount: 2022,
|
||||||
|
tagline: "Return to Pandora.",
|
||||||
|
flattenSeasons: GetSearchAllLibrariesFlattenSeasons.Show,
|
||||||
|
episodeSort: GetSearchAllLibrariesEpisodeSort.OldestFirst,
|
||||||
|
enableCreditsMarkerGeneration:
|
||||||
|
GetSearchAllLibrariesEnableCreditsMarkerGeneration.LibraryDefault,
|
||||||
|
showOrdering: GetSearchAllLibrariesShowOrdering.TvdbAbsolute,
|
||||||
|
thumb: "/library/metadata/58683/thumb/1703239236",
|
||||||
|
art: "/library/metadata/58683/art/1703239236",
|
||||||
|
banner: "/library/metadata/58683/banner/1703239236",
|
||||||
|
duration: 11558112,
|
||||||
|
originallyAvailableAt: new RFCDate("2022-12-14T00:00:00Z"),
|
||||||
|
addedAt: 1556281940,
|
||||||
|
updatedAt: 1556281940,
|
||||||
|
audienceRatingImage: "rottentomatoes://image.rating.upright",
|
||||||
|
chapterSource: "media",
|
||||||
|
primaryExtraKey: "/library/metadata/58684",
|
||||||
|
ratingImage: "rottentomatoes://image.rating.ripe",
|
||||||
|
grandparentRatingKey: "66",
|
||||||
|
grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4",
|
||||||
|
grandparentKey: "/library/metadata/66",
|
||||||
|
grandparentTitle: "Caprica",
|
||||||
|
grandparentThumb: "/library/metadata/66/thumb/1705716261",
|
||||||
|
parentSlug: "alice-in-borderland-2020",
|
||||||
|
grandparentSlug: "alice-in-borderland-2020",
|
||||||
|
grandparentArt: "/library/metadata/66/art/1705716261",
|
||||||
|
grandparentTheme: "/library/metadata/66/theme/1705716261",
|
||||||
|
media: [
|
||||||
|
{
|
||||||
|
id: 119534,
|
||||||
|
duration: 11558112,
|
||||||
|
bitrate: 25025,
|
||||||
|
width: 3840,
|
||||||
|
height: 2072,
|
||||||
|
aspectRatio: 1.85,
|
||||||
|
audioProfile: "dts",
|
||||||
|
audioChannels: 6,
|
||||||
|
audioCodec: "eac3",
|
||||||
|
videoCodec: "hevc",
|
||||||
|
videoResolution: "4k",
|
||||||
|
container: "mkv",
|
||||||
|
videoFrameRate: "24p",
|
||||||
|
videoProfile: "main 10",
|
||||||
|
hasVoiceActivity: false,
|
||||||
|
optimizedForStreaming:
|
||||||
|
GetSearchAllLibrariesOptimizedForStreaming.Enable,
|
||||||
|
has64bitOffsets: false,
|
||||||
|
part: [
|
||||||
|
{
|
||||||
|
id: 119542,
|
||||||
|
key: "/library/parts/119542/1680457526/file.mkv",
|
||||||
|
duration: 11558112,
|
||||||
|
file:
|
||||||
|
"/movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv",
|
||||||
|
size: 36158371307,
|
||||||
|
container: "mkv",
|
||||||
|
audioProfile: "dts",
|
||||||
|
has64bitOffsets: false,
|
||||||
|
optimizedForStreaming: false,
|
||||||
|
videoProfile: "main 10",
|
||||||
|
indexes: "sd",
|
||||||
|
hasThumbnail: GetSearchAllLibrariesHasThumbnail.True,
|
||||||
|
stream: [
|
||||||
|
{
|
||||||
|
id: 272796,
|
||||||
|
streamType: 1,
|
||||||
|
default: true,
|
||||||
|
selected: true,
|
||||||
|
codec: "h264",
|
||||||
|
index: 0,
|
||||||
|
bitrate: 6273,
|
||||||
|
colorPrimaries: "bt709",
|
||||||
|
colorRange: "tv",
|
||||||
|
colorSpace: "bt709",
|
||||||
|
colorTrc: "bt709",
|
||||||
|
bitDepth: 8,
|
||||||
|
chromaLocation: "left",
|
||||||
|
streamIdentifier: "2",
|
||||||
|
chromaSubsampling: "4:2:0",
|
||||||
|
codedHeight: 1088,
|
||||||
|
codedWidth: 1920,
|
||||||
|
frameRate: 29.97,
|
||||||
|
hasScalingMatrix: false,
|
||||||
|
hearingImpaired: false,
|
||||||
|
closedCaptions: false,
|
||||||
|
embeddedInVideo: "1",
|
||||||
|
height: 1080,
|
||||||
|
level: 40,
|
||||||
|
profile: "main",
|
||||||
|
refFrames: 4,
|
||||||
|
scanType: "progressive",
|
||||||
|
width: 1920,
|
||||||
|
displayTitle: "1080p (H.264)",
|
||||||
|
extendedDisplayTitle: "1080p (H.264)",
|
||||||
|
channels: 2,
|
||||||
|
language: "English",
|
||||||
|
languageTag: "en",
|
||||||
|
languageCode: "eng",
|
||||||
|
audioChannelLayout: "stereo",
|
||||||
|
samplingRate: 48000,
|
||||||
|
title: "English",
|
||||||
|
canAutoSync: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
genre: [
|
||||||
|
{
|
||||||
|
tag: "Adventure",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
country: [
|
||||||
|
{
|
||||||
|
tag: "United States of America",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
director: [
|
||||||
|
{
|
||||||
|
tag: "James Cameron",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
writer: [
|
||||||
|
{
|
||||||
|
tag: "James Cameron",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
collection: [
|
||||||
|
{
|
||||||
|
tag: "Working NL Subs",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
role: [
|
||||||
|
{
|
||||||
|
id: 294129,
|
||||||
|
filter: "actor=294129",
|
||||||
|
thumb:
|
||||||
|
"https://metadata-static.plex.tv/2/people/27b85844536c39f3f9ac943aaad46608.jpg",
|
||||||
|
tag: "Mike Smith",
|
||||||
|
tagKey: "668e7e7b22bcad9064350c91",
|
||||||
|
role: "Self",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
location: [
|
||||||
|
{
|
||||||
|
path: "/TV Shows/House",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
mediaGuid: [
|
||||||
|
{
|
||||||
|
id: "imdb://tt13015952",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
ultraBlurColors: {
|
||||||
|
topLeft: "11333b",
|
||||||
|
topRight: "0a232d",
|
||||||
|
bottomRight: "73958",
|
||||||
|
bottomLeft: "1f5066",
|
||||||
|
},
|
||||||
|
metaDataRating: [
|
||||||
|
{
|
||||||
|
image: "themoviedb://image.rating",
|
||||||
|
value: 3,
|
||||||
|
type: "audience",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
image: [
|
||||||
|
{
|
||||||
|
alt: "Episode 1",
|
||||||
|
type: GetSearchAllLibrariesLibraryType.Background,
|
||||||
|
url: "/library/metadata/45521/thumb/1644710589",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
titleSort: "Whale",
|
||||||
|
viewCount: 1,
|
||||||
|
lastViewedAt: 1682752242,
|
||||||
|
originalTitle: "映画 ブラッククローバー 魔法帝の剣",
|
||||||
|
viewOffset: 5222500,
|
||||||
|
skipCount: 1,
|
||||||
|
index: 1,
|
||||||
|
theme: "/library/metadata/1/theme/1705636920",
|
||||||
|
leafCount: 14,
|
||||||
|
viewedLeafCount: 0,
|
||||||
|
childCount: 1,
|
||||||
|
hasPremiumExtras: "1",
|
||||||
|
hasPremiumPrimaryExtra: "1",
|
||||||
|
parentRatingKey: "66",
|
||||||
|
parentGuid: "plex://show/5d9c081b170e24001f2a7be4",
|
||||||
|
parentStudio: "UCP",
|
||||||
|
parentKey: "/library/metadata/66",
|
||||||
|
parentTitle: "Caprica",
|
||||||
|
parentIndex: 1,
|
||||||
|
parentYear: 2010,
|
||||||
|
parentThumb: "/library/metadata/66/thumb/1705716261",
|
||||||
|
parentTheme: "/library/metadata/66/theme/1705716261",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
|
||||||
|
| `size` | *number* | :heavy_check_mark: | N/A |
|
||||||
|
| `searchResult` | [operations.SearchResult](../../../sdk/models/operations/searchresult.md)[] | :heavy_check_mark: | N/A |
|
||||||
17
docs/sdk/models/operations/getsearchalllibrariesmediaguid.md
Normal file
17
docs/sdk/models/operations/getsearchalllibrariesmediaguid.md
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# GetSearchAllLibrariesMediaGuid
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesMediaGuid } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesMediaGuid = {
|
||||||
|
id: "imdb://tt13015952",
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
|
||||||
|
| `id` | *string* | :heavy_check_mark: | Can be one of the following formats:<br/>imdb://tt13015952, tmdb://2434012, tvdb://7945991<br/> | imdb://tt13015952 |
|
||||||
314
docs/sdk/models/operations/getsearchalllibrariesmetadata.md
Normal file
314
docs/sdk/models/operations/getsearchalllibrariesmetadata.md
Normal file
@@ -0,0 +1,314 @@
|
|||||||
|
# GetSearchAllLibrariesMetadata
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import {
|
||||||
|
GetSearchAllLibrariesEnableCreditsMarkerGeneration,
|
||||||
|
GetSearchAllLibrariesEpisodeSort,
|
||||||
|
GetSearchAllLibrariesFlattenSeasons,
|
||||||
|
GetSearchAllLibrariesHasThumbnail,
|
||||||
|
GetSearchAllLibrariesLibraryType,
|
||||||
|
GetSearchAllLibrariesMetadata,
|
||||||
|
GetSearchAllLibrariesOptimizedForStreaming,
|
||||||
|
GetSearchAllLibrariesShowOrdering,
|
||||||
|
GetSearchAllLibrariesType,
|
||||||
|
} from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
import { RFCDate } from "@lukehagar/plexjs/sdk/types";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesMetadata = {
|
||||||
|
ratingKey: "58683",
|
||||||
|
key: "/library/metadata/58683",
|
||||||
|
guid: "plex://movie/5d7768ba96b655001fdc0408",
|
||||||
|
studio: "20th Century Studios",
|
||||||
|
skipChildren: false,
|
||||||
|
librarySectionID: 1,
|
||||||
|
librarySectionTitle: "Movies",
|
||||||
|
librarySectionKey: "/library/sections/1",
|
||||||
|
type: GetSearchAllLibrariesType.Movie,
|
||||||
|
title: "Avatar: The Way of Water",
|
||||||
|
slug: "4-for-texas",
|
||||||
|
contentRating: "PG-13",
|
||||||
|
summary:
|
||||||
|
"Jake Sully lives with his newfound family formed on the extrasolar moon Pandora. Once a familiar threat returns to finish what was previously started, Jake must work with Neytiri and the army of the Na'vi race to protect their home.",
|
||||||
|
rating: 7.6,
|
||||||
|
audienceRating: 9.2,
|
||||||
|
year: 2022,
|
||||||
|
seasonCount: 2022,
|
||||||
|
tagline: "Return to Pandora.",
|
||||||
|
flattenSeasons: GetSearchAllLibrariesFlattenSeasons.Show,
|
||||||
|
episodeSort: GetSearchAllLibrariesEpisodeSort.OldestFirst,
|
||||||
|
enableCreditsMarkerGeneration:
|
||||||
|
GetSearchAllLibrariesEnableCreditsMarkerGeneration.LibraryDefault,
|
||||||
|
showOrdering: GetSearchAllLibrariesShowOrdering.TvdbAbsolute,
|
||||||
|
thumb: "/library/metadata/58683/thumb/1703239236",
|
||||||
|
art: "/library/metadata/58683/art/1703239236",
|
||||||
|
banner: "/library/metadata/58683/banner/1703239236",
|
||||||
|
duration: 11558112,
|
||||||
|
originallyAvailableAt: new RFCDate("2022-12-14T00:00:00Z"),
|
||||||
|
addedAt: 1556281940,
|
||||||
|
updatedAt: 1556281940,
|
||||||
|
audienceRatingImage: "rottentomatoes://image.rating.upright",
|
||||||
|
chapterSource: "media",
|
||||||
|
primaryExtraKey: "/library/metadata/58684",
|
||||||
|
ratingImage: "rottentomatoes://image.rating.ripe",
|
||||||
|
grandparentRatingKey: "66",
|
||||||
|
grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4",
|
||||||
|
grandparentKey: "/library/metadata/66",
|
||||||
|
grandparentTitle: "Caprica",
|
||||||
|
grandparentThumb: "/library/metadata/66/thumb/1705716261",
|
||||||
|
parentSlug: "alice-in-borderland-2020",
|
||||||
|
grandparentSlug: "alice-in-borderland-2020",
|
||||||
|
grandparentArt: "/library/metadata/66/art/1705716261",
|
||||||
|
grandparentTheme: "/library/metadata/66/theme/1705716261",
|
||||||
|
media: [
|
||||||
|
{
|
||||||
|
id: 119534,
|
||||||
|
duration: 11558112,
|
||||||
|
bitrate: 25025,
|
||||||
|
width: 3840,
|
||||||
|
height: 2072,
|
||||||
|
aspectRatio: 1.85,
|
||||||
|
audioProfile: "dts",
|
||||||
|
audioChannels: 6,
|
||||||
|
audioCodec: "eac3",
|
||||||
|
videoCodec: "hevc",
|
||||||
|
videoResolution: "4k",
|
||||||
|
container: "mkv",
|
||||||
|
videoFrameRate: "24p",
|
||||||
|
videoProfile: "main 10",
|
||||||
|
hasVoiceActivity: false,
|
||||||
|
optimizedForStreaming: GetSearchAllLibrariesOptimizedForStreaming.Enable,
|
||||||
|
has64bitOffsets: false,
|
||||||
|
part: [
|
||||||
|
{
|
||||||
|
id: 119542,
|
||||||
|
key: "/library/parts/119542/1680457526/file.mkv",
|
||||||
|
duration: 11558112,
|
||||||
|
file:
|
||||||
|
"/movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv",
|
||||||
|
size: 36158371307,
|
||||||
|
container: "mkv",
|
||||||
|
audioProfile: "dts",
|
||||||
|
has64bitOffsets: false,
|
||||||
|
optimizedForStreaming: false,
|
||||||
|
videoProfile: "main 10",
|
||||||
|
indexes: "sd",
|
||||||
|
hasThumbnail: GetSearchAllLibrariesHasThumbnail.True,
|
||||||
|
stream: [
|
||||||
|
{
|
||||||
|
id: 272796,
|
||||||
|
streamType: 1,
|
||||||
|
default: true,
|
||||||
|
selected: true,
|
||||||
|
codec: "h264",
|
||||||
|
index: 0,
|
||||||
|
bitrate: 6273,
|
||||||
|
colorPrimaries: "bt709",
|
||||||
|
colorRange: "tv",
|
||||||
|
colorSpace: "bt709",
|
||||||
|
colorTrc: "bt709",
|
||||||
|
bitDepth: 8,
|
||||||
|
chromaLocation: "left",
|
||||||
|
streamIdentifier: "2",
|
||||||
|
chromaSubsampling: "4:2:0",
|
||||||
|
codedHeight: 1088,
|
||||||
|
codedWidth: 1920,
|
||||||
|
frameRate: 29.97,
|
||||||
|
hasScalingMatrix: false,
|
||||||
|
hearingImpaired: false,
|
||||||
|
closedCaptions: false,
|
||||||
|
embeddedInVideo: "1",
|
||||||
|
height: 1080,
|
||||||
|
level: 40,
|
||||||
|
profile: "main",
|
||||||
|
refFrames: 4,
|
||||||
|
scanType: "progressive",
|
||||||
|
width: 1920,
|
||||||
|
displayTitle: "1080p (H.264)",
|
||||||
|
extendedDisplayTitle: "1080p (H.264)",
|
||||||
|
channels: 2,
|
||||||
|
language: "English",
|
||||||
|
languageTag: "en",
|
||||||
|
languageCode: "eng",
|
||||||
|
audioChannelLayout: "stereo",
|
||||||
|
samplingRate: 48000,
|
||||||
|
title: "English",
|
||||||
|
canAutoSync: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
genre: [
|
||||||
|
{
|
||||||
|
tag: "Adventure",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
country: [
|
||||||
|
{
|
||||||
|
tag: "United States of America",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
director: [
|
||||||
|
{
|
||||||
|
tag: "James Cameron",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
writer: [
|
||||||
|
{
|
||||||
|
tag: "James Cameron",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
collection: [
|
||||||
|
{
|
||||||
|
tag: "Working NL Subs",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
role: [
|
||||||
|
{
|
||||||
|
id: 294129,
|
||||||
|
filter: "actor=294129",
|
||||||
|
thumb:
|
||||||
|
"https://metadata-static.plex.tv/2/people/27b85844536c39f3f9ac943aaad46608.jpg",
|
||||||
|
tag: "Mike Smith",
|
||||||
|
tagKey: "668e7e7b22bcad9064350c91",
|
||||||
|
role: "Self",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
location: [
|
||||||
|
{
|
||||||
|
path: "/TV Shows/House",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
mediaGuid: [
|
||||||
|
{
|
||||||
|
id: "imdb://tt13015952",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
ultraBlurColors: {
|
||||||
|
topLeft: "11333b",
|
||||||
|
topRight: "0a232d",
|
||||||
|
bottomRight: "73958",
|
||||||
|
bottomLeft: "1f5066",
|
||||||
|
},
|
||||||
|
metaDataRating: [
|
||||||
|
{
|
||||||
|
image: "themoviedb://image.rating",
|
||||||
|
value: 3,
|
||||||
|
type: "audience",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
image: [
|
||||||
|
{
|
||||||
|
alt: "Episode 1",
|
||||||
|
type: GetSearchAllLibrariesLibraryType.Background,
|
||||||
|
url: "/library/metadata/45521/thumb/1644710589",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
titleSort: "Whale",
|
||||||
|
viewCount: 1,
|
||||||
|
lastViewedAt: 1682752242,
|
||||||
|
originalTitle: "映画 ブラッククローバー 魔法帝の剣",
|
||||||
|
viewOffset: 5222500,
|
||||||
|
skipCount: 1,
|
||||||
|
index: 1,
|
||||||
|
theme: "/library/metadata/1/theme/1705636920",
|
||||||
|
leafCount: 14,
|
||||||
|
viewedLeafCount: 0,
|
||||||
|
childCount: 1,
|
||||||
|
hasPremiumExtras: "1",
|
||||||
|
hasPremiumPrimaryExtra: "1",
|
||||||
|
parentRatingKey: "66",
|
||||||
|
parentGuid: "plex://show/5d9c081b170e24001f2a7be4",
|
||||||
|
parentStudio: "UCP",
|
||||||
|
parentKey: "/library/metadata/66",
|
||||||
|
parentTitle: "Caprica",
|
||||||
|
parentIndex: 1,
|
||||||
|
parentYear: 2010,
|
||||||
|
parentThumb: "/library/metadata/66/thumb/1705716261",
|
||||||
|
parentTheme: "/library/metadata/66/theme/1705716261",
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `ratingKey` | *string* | :heavy_check_mark: | The rating key (Media ID) of this media item.<br/>Note: This is always an integer, but is represented as a string in the API.<br/> | 58683 |
|
||||||
|
| `key` | *string* | :heavy_check_mark: | N/A | /library/metadata/58683 |
|
||||||
|
| `guid` | *string* | :heavy_check_mark: | N/A | plex://movie/5d7768ba96b655001fdc0408 |
|
||||||
|
| `studio` | *string* | :heavy_minus_sign: | N/A | 20th Century Studios |
|
||||||
|
| `skipChildren` | *boolean* | :heavy_minus_sign: | N/A | false |
|
||||||
|
| `librarySectionID` | *number* | :heavy_minus_sign: | N/A | 1 |
|
||||||
|
| `librarySectionTitle` | *string* | :heavy_minus_sign: | N/A | Movies |
|
||||||
|
| `librarySectionKey` | *string* | :heavy_minus_sign: | N/A | /library/sections/1 |
|
||||||
|
| `type` | [operations.GetSearchAllLibrariesType](../../../sdk/models/operations/getsearchalllibrariestype.md) | :heavy_check_mark: | The type of media content<br/> | movie |
|
||||||
|
| `title` | *string* | :heavy_check_mark: | N/A | Avatar: The Way of Water |
|
||||||
|
| `slug` | *string* | :heavy_minus_sign: | N/A | 4-for-texas |
|
||||||
|
| `contentRating` | *string* | :heavy_minus_sign: | N/A | PG-13 |
|
||||||
|
| `summary` | *string* | :heavy_check_mark: | N/A | Jake Sully lives with his newfound family formed on the extrasolar moon Pandora. Once a familiar threat returns to finish what was previously started, Jake must work with Neytiri and the army of the Na'vi race to protect their home. |
|
||||||
|
| `rating` | *number* | :heavy_minus_sign: | N/A | 7.6 |
|
||||||
|
| `audienceRating` | *number* | :heavy_minus_sign: | N/A | 9.2 |
|
||||||
|
| `year` | *number* | :heavy_minus_sign: | N/A | 2022 |
|
||||||
|
| `seasonCount` | *number* | :heavy_minus_sign: | N/A | 2022 |
|
||||||
|
| `tagline` | *string* | :heavy_minus_sign: | N/A | Return to Pandora. |
|
||||||
|
| `flattenSeasons` | [operations.GetSearchAllLibrariesFlattenSeasons](../../../sdk/models/operations/getsearchalllibrariesflattenseasons.md) | :heavy_minus_sign: | Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show). | 1 |
|
||||||
|
| `episodeSort` | [operations.GetSearchAllLibrariesEpisodeSort](../../../sdk/models/operations/getsearchalllibrariesepisodesort.md) | :heavy_minus_sign: | Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first). | 0 |
|
||||||
|
| `enableCreditsMarkerGeneration` | [operations.GetSearchAllLibrariesEnableCreditsMarkerGeneration](../../../sdk/models/operations/getsearchalllibrariesenablecreditsmarkergeneration.md) | :heavy_minus_sign: | Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled). | -1 |
|
||||||
|
| `showOrdering` | [operations.GetSearchAllLibrariesShowOrdering](../../../sdk/models/operations/getsearchalllibrariesshowordering.md) | :heavy_minus_sign: | Setting that indicates the episode ordering for the show.<br/>None = Library default,<br/>tmdbAiring = The Movie Database (Aired),<br/>aired = TheTVDB (Aired),<br/>dvd = TheTVDB (DVD),<br/>absolute = TheTVDB (Absolute)).<br/> | absolute |
|
||||||
|
| `thumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/thumb/1703239236 |
|
||||||
|
| `art` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/art/1703239236 |
|
||||||
|
| `banner` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58683/banner/1703239236 |
|
||||||
|
| `duration` | *number* | :heavy_minus_sign: | N/A | 11558112 |
|
||||||
|
| `originallyAvailableAt` | [RFCDate](../../../types/rfcdate.md) | :heavy_minus_sign: | N/A | 2022-12-14 00:00:00 +0000 UTC |
|
||||||
|
| `addedAt` | *number* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 |
|
||||||
|
| `updatedAt` | *number* | :heavy_minus_sign: | Unix epoch datetime in seconds | 1556281940 |
|
||||||
|
| `audienceRatingImage` | *string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.upright |
|
||||||
|
| `chapterSource` | *string* | :heavy_minus_sign: | N/A | media |
|
||||||
|
| `primaryExtraKey` | *string* | :heavy_minus_sign: | N/A | /library/metadata/58684 |
|
||||||
|
| `ratingImage` | *string* | :heavy_minus_sign: | N/A | rottentomatoes://image.rating.ripe |
|
||||||
|
| `grandparentRatingKey` | *string* | :heavy_minus_sign: | N/A | 66 |
|
||||||
|
| `grandparentGuid` | *string* | :heavy_minus_sign: | N/A | plex://show/5d9c081b170e24001f2a7be4 |
|
||||||
|
| `grandparentKey` | *string* | :heavy_minus_sign: | N/A | /library/metadata/66 |
|
||||||
|
| `grandparentTitle` | *string* | :heavy_minus_sign: | N/A | Caprica |
|
||||||
|
| `grandparentThumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/66/thumb/1705716261 |
|
||||||
|
| `parentSlug` | *string* | :heavy_minus_sign: | N/A | alice-in-borderland-2020 |
|
||||||
|
| `grandparentSlug` | *string* | :heavy_minus_sign: | N/A | alice-in-borderland-2020 |
|
||||||
|
| `grandparentArt` | *string* | :heavy_minus_sign: | N/A | /library/metadata/66/art/1705716261 |
|
||||||
|
| `grandparentTheme` | *string* | :heavy_minus_sign: | N/A | /library/metadata/66/theme/1705716261 |
|
||||||
|
| `media` | [operations.GetSearchAllLibrariesMedia](../../../sdk/models/operations/getsearchalllibrariesmedia.md)[] | :heavy_minus_sign: | The Media object is only included when type query is `4` or higher.<br/> | |
|
||||||
|
| `genre` | [operations.GetSearchAllLibrariesGenre](../../../sdk/models/operations/getsearchalllibrariesgenre.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
|
| `country` | [operations.GetSearchAllLibrariesCountry](../../../sdk/models/operations/getsearchalllibrariescountry.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
|
| `director` | [operations.GetSearchAllLibrariesDirector](../../../sdk/models/operations/getsearchalllibrariesdirector.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
|
| `writer` | [operations.GetSearchAllLibrariesWriter](../../../sdk/models/operations/getsearchalllibrarieswriter.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
|
| `collection` | [operations.GetSearchAllLibrariesCollection](../../../sdk/models/operations/getsearchalllibrariescollection.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
|
| `role` | [operations.GetSearchAllLibrariesRole](../../../sdk/models/operations/getsearchalllibrariesrole.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
|
| `location` | [operations.GetSearchAllLibrariesLocation](../../../sdk/models/operations/getsearchalllibrarieslocation.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
|
| `mediaGuid` | [operations.GetSearchAllLibrariesMediaGuid](../../../sdk/models/operations/getsearchalllibrariesmediaguid.md)[] | :heavy_minus_sign: | The Guid object is only included in the response if the `includeGuids` parameter is set to `1`.<br/> | |
|
||||||
|
| `ultraBlurColors` | [operations.GetSearchAllLibrariesUltraBlurColors](../../../sdk/models/operations/getsearchalllibrariesultrablurcolors.md) | :heavy_minus_sign: | N/A | |
|
||||||
|
| `metaDataRating` | [operations.GetSearchAllLibrariesMetaDataRating](../../../sdk/models/operations/getsearchalllibrariesmetadatarating.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
|
| `image` | [operations.GetSearchAllLibrariesImage](../../../sdk/models/operations/getsearchalllibrariesimage.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
|
| `titleSort` | *string* | :heavy_minus_sign: | N/A | Whale |
|
||||||
|
| `viewCount` | *number* | :heavy_minus_sign: | N/A | 1 |
|
||||||
|
| `lastViewedAt` | *number* | :heavy_minus_sign: | N/A | 1682752242 |
|
||||||
|
| `originalTitle` | *string* | :heavy_minus_sign: | N/A | 映画 ブラッククローバー 魔法帝の剣 |
|
||||||
|
| `viewOffset` | *number* | :heavy_minus_sign: | N/A | 5222500 |
|
||||||
|
| `skipCount` | *number* | :heavy_minus_sign: | N/A | 1 |
|
||||||
|
| `index` | *number* | :heavy_minus_sign: | N/A | 1 |
|
||||||
|
| `theme` | *string* | :heavy_minus_sign: | N/A | /library/metadata/1/theme/1705636920 |
|
||||||
|
| `leafCount` | *number* | :heavy_minus_sign: | N/A | 14 |
|
||||||
|
| `viewedLeafCount` | *number* | :heavy_minus_sign: | N/A | 0 |
|
||||||
|
| `childCount` | *number* | :heavy_minus_sign: | N/A | 1 |
|
||||||
|
| `hasPremiumExtras` | *string* | :heavy_minus_sign: | N/A | 1 |
|
||||||
|
| `hasPremiumPrimaryExtra` | *string* | :heavy_minus_sign: | N/A | 1 |
|
||||||
|
| `parentRatingKey` | *string* | :heavy_minus_sign: | The rating key of the parent item.<br/> | 66 |
|
||||||
|
| `parentGuid` | *string* | :heavy_minus_sign: | N/A | plex://show/5d9c081b170e24001f2a7be4 |
|
||||||
|
| `parentStudio` | *string* | :heavy_minus_sign: | N/A | UCP |
|
||||||
|
| `parentKey` | *string* | :heavy_minus_sign: | N/A | /library/metadata/66 |
|
||||||
|
| `parentTitle` | *string* | :heavy_minus_sign: | N/A | Caprica |
|
||||||
|
| `parentIndex` | *number* | :heavy_minus_sign: | N/A | 1 |
|
||||||
|
| `parentYear` | *number* | :heavy_minus_sign: | N/A | 2010 |
|
||||||
|
| `parentThumb` | *string* | :heavy_minus_sign: | N/A | /library/metadata/66/thumb/1705716261 |
|
||||||
|
| `parentTheme` | *string* | :heavy_minus_sign: | N/A | /library/metadata/66/theme/1705716261 |
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
# GetSearchAllLibrariesMetaDataRating
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesMetaDataRating } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesMetaDataRating = {
|
||||||
|
image: "themoviedb://image.rating",
|
||||||
|
value: 3,
|
||||||
|
type: "audience",
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
|
||||||
|
| `image` | *string* | :heavy_check_mark: | A URI or path to the rating image. | themoviedb://image.rating |
|
||||||
|
| `value` | *number* | :heavy_check_mark: | The value of the rating. | 3 |
|
||||||
|
| `type` | *string* | :heavy_check_mark: | The type of rating (e.g., audience, critic). | audience |
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
# GetSearchAllLibrariesOptimizedForStreaming
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesOptimizedForStreaming } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesOptimizedForStreaming =
|
||||||
|
GetSearchAllLibrariesOptimizedForStreaming.Enable;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| --------- | --------- |
|
||||||
|
| `Disable` | 0 |
|
||||||
|
| `Enable` | 1 |
|
||||||
83
docs/sdk/models/operations/getsearchalllibrariespart.md
Normal file
83
docs/sdk/models/operations/getsearchalllibrariespart.md
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
# GetSearchAllLibrariesPart
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesHasThumbnail, GetSearchAllLibrariesPart } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesPart = {
|
||||||
|
id: 119542,
|
||||||
|
key: "/library/parts/119542/1680457526/file.mkv",
|
||||||
|
duration: 11558112,
|
||||||
|
file:
|
||||||
|
"/movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv",
|
||||||
|
size: 36158371307,
|
||||||
|
container: "mkv",
|
||||||
|
audioProfile: "dts",
|
||||||
|
has64bitOffsets: false,
|
||||||
|
optimizedForStreaming: false,
|
||||||
|
videoProfile: "main 10",
|
||||||
|
indexes: "sd",
|
||||||
|
hasThumbnail: GetSearchAllLibrariesHasThumbnail.True,
|
||||||
|
stream: [
|
||||||
|
{
|
||||||
|
id: 272796,
|
||||||
|
streamType: 1,
|
||||||
|
default: true,
|
||||||
|
selected: true,
|
||||||
|
codec: "h264",
|
||||||
|
index: 0,
|
||||||
|
bitrate: 6273,
|
||||||
|
colorPrimaries: "bt709",
|
||||||
|
colorRange: "tv",
|
||||||
|
colorSpace: "bt709",
|
||||||
|
colorTrc: "bt709",
|
||||||
|
bitDepth: 8,
|
||||||
|
chromaLocation: "left",
|
||||||
|
streamIdentifier: "2",
|
||||||
|
chromaSubsampling: "4:2:0",
|
||||||
|
codedHeight: 1088,
|
||||||
|
codedWidth: 1920,
|
||||||
|
frameRate: 29.97,
|
||||||
|
hasScalingMatrix: false,
|
||||||
|
hearingImpaired: false,
|
||||||
|
closedCaptions: false,
|
||||||
|
embeddedInVideo: "1",
|
||||||
|
height: 1080,
|
||||||
|
level: 40,
|
||||||
|
profile: "main",
|
||||||
|
refFrames: 4,
|
||||||
|
scanType: "progressive",
|
||||||
|
width: 1920,
|
||||||
|
displayTitle: "1080p (H.264)",
|
||||||
|
extendedDisplayTitle: "1080p (H.264)",
|
||||||
|
channels: 2,
|
||||||
|
language: "English",
|
||||||
|
languageTag: "en",
|
||||||
|
languageCode: "eng",
|
||||||
|
audioChannelLayout: "stereo",
|
||||||
|
samplingRate: 48000,
|
||||||
|
title: "English",
|
||||||
|
canAutoSync: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `id` | *number* | :heavy_check_mark: | N/A | 119542 |
|
||||||
|
| `key` | *string* | :heavy_check_mark: | N/A | /library/parts/119542/1680457526/file.mkv |
|
||||||
|
| `duration` | *number* | :heavy_minus_sign: | N/A | 11558112 |
|
||||||
|
| `file` | *string* | :heavy_check_mark: | N/A | /movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv |
|
||||||
|
| `size` | *number* | :heavy_check_mark: | N/A | 36158371307 |
|
||||||
|
| `container` | *string* | :heavy_check_mark: | The container format of the media file.<br/> | mkv |
|
||||||
|
| `audioProfile` | *string* | :heavy_minus_sign: | N/A | dts |
|
||||||
|
| `has64bitOffsets` | *boolean* | :heavy_minus_sign: | N/A | false |
|
||||||
|
| `optimizedForStreaming` | *boolean* | :heavy_minus_sign: | N/A | false |
|
||||||
|
| `videoProfile` | *string* | :heavy_minus_sign: | N/A | main 10 |
|
||||||
|
| `indexes` | *string* | :heavy_minus_sign: | N/A | sd |
|
||||||
|
| `hasThumbnail` | [operations.GetSearchAllLibrariesHasThumbnail](../../../sdk/models/operations/getsearchalllibrarieshasthumbnail.md) | :heavy_minus_sign: | N/A | 1 |
|
||||||
|
| `stream` | [operations.GetSearchAllLibrariesStream](../../../sdk/models/operations/getsearchalllibrariesstream.md)[] | :heavy_minus_sign: | N/A | |
|
||||||
33
docs/sdk/models/operations/getsearchalllibrariesrequest.md
Normal file
33
docs/sdk/models/operations/getsearchalllibrariesrequest.md
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# GetSearchAllLibrariesRequest
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import {
|
||||||
|
GetSearchAllLibrariesRequest,
|
||||||
|
QueryParamIncludeCollections,
|
||||||
|
QueryParamIncludeExternalMedia,
|
||||||
|
SearchTypes,
|
||||||
|
} from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesRequest = {
|
||||||
|
query: "<value>",
|
||||||
|
clientID: "3381b62b-9ab7-4e37-827b-203e9809eb58",
|
||||||
|
searchTypes: [
|
||||||
|
SearchTypes.OtherVideos,
|
||||||
|
],
|
||||||
|
includeCollections: QueryParamIncludeCollections.Enable,
|
||||||
|
includeExternalMedia: QueryParamIncludeExternalMedia.Enable,
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `query` | *string* | :heavy_check_mark: | The search query term. | |
|
||||||
|
| `clientID` | *string* | :heavy_check_mark: | An opaque identifier unique to the client (UUID, serial number, or other unique device ID) | 3381b62b-9ab7-4e37-827b-203e9809eb58 |
|
||||||
|
| `limit` | *number* | :heavy_minus_sign: | Limit the number of results returned. | |
|
||||||
|
| `searchTypes` | [operations.SearchTypes](../../../sdk/models/operations/searchtypes.md)[] | :heavy_minus_sign: | A comma-separated list of search types to include. Valid values are: movies, music, otherVideos, people, tv.<br/> | movies,music,otherVideos,people,tv |
|
||||||
|
| `includeCollections` | [operations.QueryParamIncludeCollections](../../../sdk/models/operations/queryparamincludecollections.md) | :heavy_minus_sign: | Whether to include collections in the search results. | 1 |
|
||||||
|
| `includeExternalMedia` | [operations.QueryParamIncludeExternalMedia](../../../sdk/models/operations/queryparamincludeexternalmedia.md) | :heavy_minus_sign: | Whether to include external media in the search results. | 1 |
|
||||||
260
docs/sdk/models/operations/getsearchalllibrariesresponse.md
Normal file
260
docs/sdk/models/operations/getsearchalllibrariesresponse.md
Normal file
@@ -0,0 +1,260 @@
|
|||||||
|
# GetSearchAllLibrariesResponse
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import {
|
||||||
|
GetSearchAllLibrariesEnableCreditsMarkerGeneration,
|
||||||
|
GetSearchAllLibrariesEpisodeSort,
|
||||||
|
GetSearchAllLibrariesFlattenSeasons,
|
||||||
|
GetSearchAllLibrariesHasThumbnail,
|
||||||
|
GetSearchAllLibrariesLibraryType,
|
||||||
|
GetSearchAllLibrariesOptimizedForStreaming,
|
||||||
|
GetSearchAllLibrariesResponse,
|
||||||
|
GetSearchAllLibrariesShowOrdering,
|
||||||
|
GetSearchAllLibrariesType,
|
||||||
|
} from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
import { RFCDate } from "@lukehagar/plexjs/sdk/types";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesResponse = {
|
||||||
|
contentType: "<value>",
|
||||||
|
statusCode: 511,
|
||||||
|
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
||||||
|
headers: { "Content-Type": "application/json" },
|
||||||
|
}),
|
||||||
|
object: {
|
||||||
|
mediaContainer: {
|
||||||
|
size: 8558.04,
|
||||||
|
searchResult: [
|
||||||
|
{
|
||||||
|
score: 117.14,
|
||||||
|
metadata: {
|
||||||
|
ratingKey: "58683",
|
||||||
|
key: "/library/metadata/58683",
|
||||||
|
guid: "plex://movie/5d7768ba96b655001fdc0408",
|
||||||
|
studio: "20th Century Studios",
|
||||||
|
skipChildren: false,
|
||||||
|
librarySectionID: 1,
|
||||||
|
librarySectionTitle: "Movies",
|
||||||
|
librarySectionKey: "/library/sections/1",
|
||||||
|
type: GetSearchAllLibrariesType.Movie,
|
||||||
|
title: "Avatar: The Way of Water",
|
||||||
|
slug: "4-for-texas",
|
||||||
|
contentRating: "PG-13",
|
||||||
|
summary:
|
||||||
|
"Jake Sully lives with his newfound family formed on the extrasolar moon Pandora. Once a familiar threat returns to finish what was previously started, Jake must work with Neytiri and the army of the Na'vi race to protect their home.",
|
||||||
|
rating: 7.6,
|
||||||
|
audienceRating: 9.2,
|
||||||
|
year: 2022,
|
||||||
|
seasonCount: 2022,
|
||||||
|
tagline: "Return to Pandora.",
|
||||||
|
flattenSeasons: GetSearchAllLibrariesFlattenSeasons.Show,
|
||||||
|
episodeSort: GetSearchAllLibrariesEpisodeSort.OldestFirst,
|
||||||
|
enableCreditsMarkerGeneration:
|
||||||
|
GetSearchAllLibrariesEnableCreditsMarkerGeneration.LibraryDefault,
|
||||||
|
showOrdering: GetSearchAllLibrariesShowOrdering.TvdbAbsolute,
|
||||||
|
thumb: "/library/metadata/58683/thumb/1703239236",
|
||||||
|
art: "/library/metadata/58683/art/1703239236",
|
||||||
|
banner: "/library/metadata/58683/banner/1703239236",
|
||||||
|
duration: 11558112,
|
||||||
|
originallyAvailableAt: new RFCDate("2022-12-14T00:00:00Z"),
|
||||||
|
addedAt: 1556281940,
|
||||||
|
updatedAt: 1556281940,
|
||||||
|
audienceRatingImage: "rottentomatoes://image.rating.upright",
|
||||||
|
chapterSource: "media",
|
||||||
|
primaryExtraKey: "/library/metadata/58684",
|
||||||
|
ratingImage: "rottentomatoes://image.rating.ripe",
|
||||||
|
grandparentRatingKey: "66",
|
||||||
|
grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4",
|
||||||
|
grandparentKey: "/library/metadata/66",
|
||||||
|
grandparentTitle: "Caprica",
|
||||||
|
grandparentThumb: "/library/metadata/66/thumb/1705716261",
|
||||||
|
parentSlug: "alice-in-borderland-2020",
|
||||||
|
grandparentSlug: "alice-in-borderland-2020",
|
||||||
|
grandparentArt: "/library/metadata/66/art/1705716261",
|
||||||
|
grandparentTheme: "/library/metadata/66/theme/1705716261",
|
||||||
|
media: [
|
||||||
|
{
|
||||||
|
id: 119534,
|
||||||
|
duration: 11558112,
|
||||||
|
bitrate: 25025,
|
||||||
|
width: 3840,
|
||||||
|
height: 2072,
|
||||||
|
aspectRatio: 1.85,
|
||||||
|
audioProfile: "dts",
|
||||||
|
audioChannels: 6,
|
||||||
|
audioCodec: "eac3",
|
||||||
|
videoCodec: "hevc",
|
||||||
|
videoResolution: "4k",
|
||||||
|
container: "mkv",
|
||||||
|
videoFrameRate: "24p",
|
||||||
|
videoProfile: "main 10",
|
||||||
|
hasVoiceActivity: false,
|
||||||
|
optimizedForStreaming:
|
||||||
|
GetSearchAllLibrariesOptimizedForStreaming.Enable,
|
||||||
|
has64bitOffsets: false,
|
||||||
|
part: [
|
||||||
|
{
|
||||||
|
id: 119542,
|
||||||
|
key: "/library/parts/119542/1680457526/file.mkv",
|
||||||
|
duration: 11558112,
|
||||||
|
file:
|
||||||
|
"/movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv",
|
||||||
|
size: 36158371307,
|
||||||
|
container: "mkv",
|
||||||
|
audioProfile: "dts",
|
||||||
|
has64bitOffsets: false,
|
||||||
|
optimizedForStreaming: false,
|
||||||
|
videoProfile: "main 10",
|
||||||
|
indexes: "sd",
|
||||||
|
hasThumbnail: GetSearchAllLibrariesHasThumbnail.True,
|
||||||
|
stream: [
|
||||||
|
{
|
||||||
|
id: 272796,
|
||||||
|
streamType: 1,
|
||||||
|
default: true,
|
||||||
|
selected: true,
|
||||||
|
codec: "h264",
|
||||||
|
index: 0,
|
||||||
|
bitrate: 6273,
|
||||||
|
colorPrimaries: "bt709",
|
||||||
|
colorRange: "tv",
|
||||||
|
colorSpace: "bt709",
|
||||||
|
colorTrc: "bt709",
|
||||||
|
bitDepth: 8,
|
||||||
|
chromaLocation: "left",
|
||||||
|
streamIdentifier: "2",
|
||||||
|
chromaSubsampling: "4:2:0",
|
||||||
|
codedHeight: 1088,
|
||||||
|
codedWidth: 1920,
|
||||||
|
frameRate: 29.97,
|
||||||
|
hasScalingMatrix: false,
|
||||||
|
hearingImpaired: false,
|
||||||
|
closedCaptions: false,
|
||||||
|
embeddedInVideo: "1",
|
||||||
|
height: 1080,
|
||||||
|
level: 40,
|
||||||
|
profile: "main",
|
||||||
|
refFrames: 4,
|
||||||
|
scanType: "progressive",
|
||||||
|
width: 1920,
|
||||||
|
displayTitle: "1080p (H.264)",
|
||||||
|
extendedDisplayTitle: "1080p (H.264)",
|
||||||
|
channels: 2,
|
||||||
|
language: "English",
|
||||||
|
languageTag: "en",
|
||||||
|
languageCode: "eng",
|
||||||
|
audioChannelLayout: "stereo",
|
||||||
|
samplingRate: 48000,
|
||||||
|
title: "English",
|
||||||
|
canAutoSync: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
genre: [
|
||||||
|
{
|
||||||
|
tag: "Adventure",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
country: [
|
||||||
|
{
|
||||||
|
tag: "United States of America",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
director: [
|
||||||
|
{
|
||||||
|
tag: "James Cameron",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
writer: [
|
||||||
|
{
|
||||||
|
tag: "James Cameron",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
collection: [
|
||||||
|
{
|
||||||
|
tag: "Working NL Subs",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
role: [
|
||||||
|
{
|
||||||
|
id: 294129,
|
||||||
|
filter: "actor=294129",
|
||||||
|
thumb:
|
||||||
|
"https://metadata-static.plex.tv/2/people/27b85844536c39f3f9ac943aaad46608.jpg",
|
||||||
|
tag: "Mike Smith",
|
||||||
|
tagKey: "668e7e7b22bcad9064350c91",
|
||||||
|
role: "Self",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
location: [
|
||||||
|
{
|
||||||
|
path: "/TV Shows/House",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
mediaGuid: [
|
||||||
|
{
|
||||||
|
id: "imdb://tt13015952",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
ultraBlurColors: {
|
||||||
|
topLeft: "11333b",
|
||||||
|
topRight: "0a232d",
|
||||||
|
bottomRight: "73958",
|
||||||
|
bottomLeft: "1f5066",
|
||||||
|
},
|
||||||
|
metaDataRating: [
|
||||||
|
{
|
||||||
|
image: "themoviedb://image.rating",
|
||||||
|
value: 3,
|
||||||
|
type: "audience",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
image: [
|
||||||
|
{
|
||||||
|
alt: "Episode 1",
|
||||||
|
type: GetSearchAllLibrariesLibraryType.Background,
|
||||||
|
url: "/library/metadata/45521/thumb/1644710589",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
titleSort: "Whale",
|
||||||
|
viewCount: 1,
|
||||||
|
lastViewedAt: 1682752242,
|
||||||
|
originalTitle: "映画 ブラッククローバー 魔法帝の剣",
|
||||||
|
viewOffset: 5222500,
|
||||||
|
skipCount: 1,
|
||||||
|
index: 1,
|
||||||
|
theme: "/library/metadata/1/theme/1705636920",
|
||||||
|
leafCount: 14,
|
||||||
|
viewedLeafCount: 0,
|
||||||
|
childCount: 1,
|
||||||
|
hasPremiumExtras: "1",
|
||||||
|
hasPremiumPrimaryExtra: "1",
|
||||||
|
parentRatingKey: "66",
|
||||||
|
parentGuid: "plex://show/5d9c081b170e24001f2a7be4",
|
||||||
|
parentStudio: "UCP",
|
||||||
|
parentKey: "/library/metadata/66",
|
||||||
|
parentTitle: "Caprica",
|
||||||
|
parentIndex: 1,
|
||||||
|
parentYear: 2010,
|
||||||
|
parentThumb: "/library/metadata/66/thumb/1705716261",
|
||||||
|
parentTheme: "/library/metadata/66/theme/1705716261",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
||||||
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
||||||
|
| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
||||||
|
| `object` | [operations.GetSearchAllLibrariesResponseBody](../../../sdk/models/operations/getsearchalllibrariesresponsebody.md) | :heavy_minus_sign: | The libraries available on the Server |
|
||||||
252
docs/sdk/models/operations/getsearchalllibrariesresponsebody.md
Normal file
252
docs/sdk/models/operations/getsearchalllibrariesresponsebody.md
Normal file
@@ -0,0 +1,252 @@
|
|||||||
|
# GetSearchAllLibrariesResponseBody
|
||||||
|
|
||||||
|
The libraries available on the Server
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import {
|
||||||
|
GetSearchAllLibrariesEnableCreditsMarkerGeneration,
|
||||||
|
GetSearchAllLibrariesEpisodeSort,
|
||||||
|
GetSearchAllLibrariesFlattenSeasons,
|
||||||
|
GetSearchAllLibrariesHasThumbnail,
|
||||||
|
GetSearchAllLibrariesLibraryType,
|
||||||
|
GetSearchAllLibrariesOptimizedForStreaming,
|
||||||
|
GetSearchAllLibrariesResponseBody,
|
||||||
|
GetSearchAllLibrariesShowOrdering,
|
||||||
|
GetSearchAllLibrariesType,
|
||||||
|
} from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
import { RFCDate } from "@lukehagar/plexjs/sdk/types";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesResponseBody = {
|
||||||
|
mediaContainer: {
|
||||||
|
size: 4535.43,
|
||||||
|
searchResult: [
|
||||||
|
{
|
||||||
|
score: 7220.56,
|
||||||
|
metadata: {
|
||||||
|
ratingKey: "58683",
|
||||||
|
key: "/library/metadata/58683",
|
||||||
|
guid: "plex://movie/5d7768ba96b655001fdc0408",
|
||||||
|
studio: "20th Century Studios",
|
||||||
|
skipChildren: false,
|
||||||
|
librarySectionID: 1,
|
||||||
|
librarySectionTitle: "Movies",
|
||||||
|
librarySectionKey: "/library/sections/1",
|
||||||
|
type: GetSearchAllLibrariesType.Movie,
|
||||||
|
title: "Avatar: The Way of Water",
|
||||||
|
slug: "4-for-texas",
|
||||||
|
contentRating: "PG-13",
|
||||||
|
summary:
|
||||||
|
"Jake Sully lives with his newfound family formed on the extrasolar moon Pandora. Once a familiar threat returns to finish what was previously started, Jake must work with Neytiri and the army of the Na'vi race to protect their home.",
|
||||||
|
rating: 7.6,
|
||||||
|
audienceRating: 9.2,
|
||||||
|
year: 2022,
|
||||||
|
seasonCount: 2022,
|
||||||
|
tagline: "Return to Pandora.",
|
||||||
|
flattenSeasons: GetSearchAllLibrariesFlattenSeasons.Show,
|
||||||
|
episodeSort: GetSearchAllLibrariesEpisodeSort.OldestFirst,
|
||||||
|
enableCreditsMarkerGeneration:
|
||||||
|
GetSearchAllLibrariesEnableCreditsMarkerGeneration.LibraryDefault,
|
||||||
|
showOrdering: GetSearchAllLibrariesShowOrdering.TvdbAbsolute,
|
||||||
|
thumb: "/library/metadata/58683/thumb/1703239236",
|
||||||
|
art: "/library/metadata/58683/art/1703239236",
|
||||||
|
banner: "/library/metadata/58683/banner/1703239236",
|
||||||
|
duration: 11558112,
|
||||||
|
originallyAvailableAt: new RFCDate("2022-12-14T00:00:00Z"),
|
||||||
|
addedAt: 1556281940,
|
||||||
|
updatedAt: 1556281940,
|
||||||
|
audienceRatingImage: "rottentomatoes://image.rating.upright",
|
||||||
|
chapterSource: "media",
|
||||||
|
primaryExtraKey: "/library/metadata/58684",
|
||||||
|
ratingImage: "rottentomatoes://image.rating.ripe",
|
||||||
|
grandparentRatingKey: "66",
|
||||||
|
grandparentGuid: "plex://show/5d9c081b170e24001f2a7be4",
|
||||||
|
grandparentKey: "/library/metadata/66",
|
||||||
|
grandparentTitle: "Caprica",
|
||||||
|
grandparentThumb: "/library/metadata/66/thumb/1705716261",
|
||||||
|
parentSlug: "alice-in-borderland-2020",
|
||||||
|
grandparentSlug: "alice-in-borderland-2020",
|
||||||
|
grandparentArt: "/library/metadata/66/art/1705716261",
|
||||||
|
grandparentTheme: "/library/metadata/66/theme/1705716261",
|
||||||
|
media: [
|
||||||
|
{
|
||||||
|
id: 119534,
|
||||||
|
duration: 11558112,
|
||||||
|
bitrate: 25025,
|
||||||
|
width: 3840,
|
||||||
|
height: 2072,
|
||||||
|
aspectRatio: 1.85,
|
||||||
|
audioProfile: "dts",
|
||||||
|
audioChannels: 6,
|
||||||
|
audioCodec: "eac3",
|
||||||
|
videoCodec: "hevc",
|
||||||
|
videoResolution: "4k",
|
||||||
|
container: "mkv",
|
||||||
|
videoFrameRate: "24p",
|
||||||
|
videoProfile: "main 10",
|
||||||
|
hasVoiceActivity: false,
|
||||||
|
optimizedForStreaming:
|
||||||
|
GetSearchAllLibrariesOptimizedForStreaming.Enable,
|
||||||
|
has64bitOffsets: false,
|
||||||
|
part: [
|
||||||
|
{
|
||||||
|
id: 119542,
|
||||||
|
key: "/library/parts/119542/1680457526/file.mkv",
|
||||||
|
duration: 11558112,
|
||||||
|
file:
|
||||||
|
"/movies/Avatar The Way of Water (2022)/Avatar.The.Way.of.Water.2022.2160p.WEB-DL.DDP5.1.Atmos.DV.HDR10.HEVC-CMRG.mkv",
|
||||||
|
size: 36158371307,
|
||||||
|
container: "mkv",
|
||||||
|
audioProfile: "dts",
|
||||||
|
has64bitOffsets: false,
|
||||||
|
optimizedForStreaming: false,
|
||||||
|
videoProfile: "main 10",
|
||||||
|
indexes: "sd",
|
||||||
|
hasThumbnail: GetSearchAllLibrariesHasThumbnail.True,
|
||||||
|
stream: [
|
||||||
|
{
|
||||||
|
id: 272796,
|
||||||
|
streamType: 1,
|
||||||
|
default: true,
|
||||||
|
selected: true,
|
||||||
|
codec: "h264",
|
||||||
|
index: 0,
|
||||||
|
bitrate: 6273,
|
||||||
|
colorPrimaries: "bt709",
|
||||||
|
colorRange: "tv",
|
||||||
|
colorSpace: "bt709",
|
||||||
|
colorTrc: "bt709",
|
||||||
|
bitDepth: 8,
|
||||||
|
chromaLocation: "left",
|
||||||
|
streamIdentifier: "2",
|
||||||
|
chromaSubsampling: "4:2:0",
|
||||||
|
codedHeight: 1088,
|
||||||
|
codedWidth: 1920,
|
||||||
|
frameRate: 29.97,
|
||||||
|
hasScalingMatrix: false,
|
||||||
|
hearingImpaired: false,
|
||||||
|
closedCaptions: false,
|
||||||
|
embeddedInVideo: "1",
|
||||||
|
height: 1080,
|
||||||
|
level: 40,
|
||||||
|
profile: "main",
|
||||||
|
refFrames: 4,
|
||||||
|
scanType: "progressive",
|
||||||
|
width: 1920,
|
||||||
|
displayTitle: "1080p (H.264)",
|
||||||
|
extendedDisplayTitle: "1080p (H.264)",
|
||||||
|
channels: 2,
|
||||||
|
language: "English",
|
||||||
|
languageTag: "en",
|
||||||
|
languageCode: "eng",
|
||||||
|
audioChannelLayout: "stereo",
|
||||||
|
samplingRate: 48000,
|
||||||
|
title: "English",
|
||||||
|
canAutoSync: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
genre: [
|
||||||
|
{
|
||||||
|
tag: "Adventure",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
country: [
|
||||||
|
{
|
||||||
|
tag: "United States of America",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
director: [
|
||||||
|
{
|
||||||
|
tag: "James Cameron",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
writer: [
|
||||||
|
{
|
||||||
|
tag: "James Cameron",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
collection: [
|
||||||
|
{
|
||||||
|
tag: "Working NL Subs",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
role: [
|
||||||
|
{
|
||||||
|
id: 294129,
|
||||||
|
filter: "actor=294129",
|
||||||
|
thumb:
|
||||||
|
"https://metadata-static.plex.tv/2/people/27b85844536c39f3f9ac943aaad46608.jpg",
|
||||||
|
tag: "Mike Smith",
|
||||||
|
tagKey: "668e7e7b22bcad9064350c91",
|
||||||
|
role: "Self",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
location: [
|
||||||
|
{
|
||||||
|
path: "/TV Shows/House",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
mediaGuid: [
|
||||||
|
{
|
||||||
|
id: "imdb://tt13015952",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
ultraBlurColors: {
|
||||||
|
topLeft: "11333b",
|
||||||
|
topRight: "0a232d",
|
||||||
|
bottomRight: "73958",
|
||||||
|
bottomLeft: "1f5066",
|
||||||
|
},
|
||||||
|
metaDataRating: [
|
||||||
|
{
|
||||||
|
image: "themoviedb://image.rating",
|
||||||
|
value: 3,
|
||||||
|
type: "audience",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
image: [
|
||||||
|
{
|
||||||
|
alt: "Episode 1",
|
||||||
|
type: GetSearchAllLibrariesLibraryType.Background,
|
||||||
|
url: "/library/metadata/45521/thumb/1644710589",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
titleSort: "Whale",
|
||||||
|
viewCount: 1,
|
||||||
|
lastViewedAt: 1682752242,
|
||||||
|
originalTitle: "映画 ブラッククローバー 魔法帝の剣",
|
||||||
|
viewOffset: 5222500,
|
||||||
|
skipCount: 1,
|
||||||
|
index: 1,
|
||||||
|
theme: "/library/metadata/1/theme/1705636920",
|
||||||
|
leafCount: 14,
|
||||||
|
viewedLeafCount: 0,
|
||||||
|
childCount: 1,
|
||||||
|
hasPremiumExtras: "1",
|
||||||
|
hasPremiumPrimaryExtra: "1",
|
||||||
|
parentRatingKey: "66",
|
||||||
|
parentGuid: "plex://show/5d9c081b170e24001f2a7be4",
|
||||||
|
parentStudio: "UCP",
|
||||||
|
parentKey: "/library/metadata/66",
|
||||||
|
parentTitle: "Caprica",
|
||||||
|
parentIndex: 1,
|
||||||
|
parentYear: 2010,
|
||||||
|
parentThumb: "/library/metadata/66/thumb/1705716261",
|
||||||
|
parentTheme: "/library/metadata/66/theme/1705716261",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description |
|
||||||
|
| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `mediaContainer` | [operations.GetSearchAllLibrariesMediaContainer](../../../sdk/models/operations/getsearchalllibrariesmediacontainer.md) | :heavy_check_mark: | N/A |
|
||||||
28
docs/sdk/models/operations/getsearchalllibrariesrole.md
Normal file
28
docs/sdk/models/operations/getsearchalllibrariesrole.md
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# GetSearchAllLibrariesRole
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesRole } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesRole = {
|
||||||
|
id: 294129,
|
||||||
|
filter: "actor=294129",
|
||||||
|
thumb:
|
||||||
|
"https://metadata-static.plex.tv/2/people/27b85844536c39f3f9ac943aaad46608.jpg",
|
||||||
|
tag: "Mike Smith",
|
||||||
|
tagKey: "668e7e7b22bcad9064350c91",
|
||||||
|
role: "Self",
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
||||||
|
| `id` | *number* | :heavy_minus_sign: | The ID of the tag or actor. | 294129 |
|
||||||
|
| `filter` | *string* | :heavy_minus_sign: | The filter used to find the actor or tag. | actor=294129 |
|
||||||
|
| `thumb` | *string* | :heavy_minus_sign: | The thumbnail of the actor | https://metadata-static.plex.tv/2/people/27b85844536c39f3f9ac943aaad46608.jpg |
|
||||||
|
| `tag` | *string* | :heavy_minus_sign: | The name of the tag or actor. | Mike Smith |
|
||||||
|
| `tagKey` | *string* | :heavy_minus_sign: | Unique identifier for the tag. | 668e7e7b22bcad9064350c91 |
|
||||||
|
| `role` | *string* | :heavy_minus_sign: | The role of the actor or tag in the media. | Self |
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
# GetSearchAllLibrariesShowOrdering
|
||||||
|
|
||||||
|
Setting that indicates the episode ordering for the show.
|
||||||
|
None = Library default,
|
||||||
|
tmdbAiring = The Movie Database (Aired),
|
||||||
|
aired = TheTVDB (Aired),
|
||||||
|
dvd = TheTVDB (DVD),
|
||||||
|
absolute = TheTVDB (Absolute)).
|
||||||
|
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesShowOrdering } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesShowOrdering =
|
||||||
|
GetSearchAllLibrariesShowOrdering.TvdbAbsolute;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| -------------- | -------------- |
|
||||||
|
| `None` | None |
|
||||||
|
| `TmdbAiring` | tmdbAiring |
|
||||||
|
| `TvdbAired` | aired |
|
||||||
|
| `TvdbDvd` | dvd |
|
||||||
|
| `TvdbAbsolute` | absolute |
|
||||||
91
docs/sdk/models/operations/getsearchalllibrariesstream.md
Normal file
91
docs/sdk/models/operations/getsearchalllibrariesstream.md
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
# GetSearchAllLibrariesStream
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesStream } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesStream = {
|
||||||
|
id: 272796,
|
||||||
|
streamType: 1,
|
||||||
|
default: true,
|
||||||
|
selected: true,
|
||||||
|
codec: "h264",
|
||||||
|
index: 0,
|
||||||
|
bitrate: 6273,
|
||||||
|
colorPrimaries: "bt709",
|
||||||
|
colorRange: "tv",
|
||||||
|
colorSpace: "bt709",
|
||||||
|
colorTrc: "bt709",
|
||||||
|
bitDepth: 8,
|
||||||
|
chromaLocation: "left",
|
||||||
|
streamIdentifier: "2",
|
||||||
|
chromaSubsampling: "4:2:0",
|
||||||
|
codedHeight: 1088,
|
||||||
|
codedWidth: 1920,
|
||||||
|
frameRate: 29.97,
|
||||||
|
hasScalingMatrix: false,
|
||||||
|
hearingImpaired: false,
|
||||||
|
closedCaptions: false,
|
||||||
|
embeddedInVideo: "1",
|
||||||
|
height: 1080,
|
||||||
|
level: 40,
|
||||||
|
profile: "main",
|
||||||
|
refFrames: 4,
|
||||||
|
scanType: "progressive",
|
||||||
|
width: 1920,
|
||||||
|
displayTitle: "1080p (H.264)",
|
||||||
|
extendedDisplayTitle: "1080p (H.264)",
|
||||||
|
channels: 2,
|
||||||
|
language: "English",
|
||||||
|
languageTag: "en",
|
||||||
|
languageCode: "eng",
|
||||||
|
audioChannelLayout: "stereo",
|
||||||
|
samplingRate: 48000,
|
||||||
|
title: "English",
|
||||||
|
canAutoSync: false,
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
## Fields
|
||||||
|
|
||||||
|
| Field | Type | Required | Description | Example |
|
||||||
|
| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- |
|
||||||
|
| `id` | *number* | :heavy_check_mark: | N/A | 272796 |
|
||||||
|
| `streamType` | *number* | :heavy_check_mark: | Type of stream (1 = video, 2 = audio, 3 = subtitle) | 1 |
|
||||||
|
| `default` | *boolean* | :heavy_minus_sign: | Indicates if this is the default stream | true |
|
||||||
|
| `selected` | *boolean* | :heavy_minus_sign: | Indicates if the stream is selected | true |
|
||||||
|
| `codec` | *string* | :heavy_check_mark: | Codec used by the stream | h264 |
|
||||||
|
| `index` | *number* | :heavy_check_mark: | The index of the stream | 0 |
|
||||||
|
| `bitrate` | *number* | :heavy_minus_sign: | The bitrate of the stream in kbps | 6273 |
|
||||||
|
| `colorPrimaries` | *string* | :heavy_minus_sign: | The color primaries of the video stream | bt709 |
|
||||||
|
| `colorRange` | *string* | :heavy_minus_sign: | The color range of the video stream | tv |
|
||||||
|
| `colorSpace` | *string* | :heavy_minus_sign: | The color space of the video stream | bt709 |
|
||||||
|
| `colorTrc` | *string* | :heavy_minus_sign: | The transfer characteristics (TRC) of the video stream | bt709 |
|
||||||
|
| `bitDepth` | *number* | :heavy_minus_sign: | The bit depth of the video stream | 8 |
|
||||||
|
| `chromaLocation` | *string* | :heavy_minus_sign: | The chroma location of the video stream | left |
|
||||||
|
| `streamIdentifier` | *string* | :heavy_minus_sign: | The identifier of the video stream | 2 |
|
||||||
|
| `chromaSubsampling` | *string* | :heavy_minus_sign: | The chroma subsampling format | 4:2:0 |
|
||||||
|
| `codedHeight` | *number* | :heavy_minus_sign: | The coded height of the video stream | 1088 |
|
||||||
|
| `codedWidth` | *number* | :heavy_minus_sign: | The coded width of the video stream | 1920 |
|
||||||
|
| `frameRate` | *number* | :heavy_minus_sign: | The frame rate of the video stream | 29.97 |
|
||||||
|
| `hasScalingMatrix` | *boolean* | :heavy_minus_sign: | Indicates if the stream has a scaling matrix | false |
|
||||||
|
| `hearingImpaired` | *boolean* | :heavy_minus_sign: | N/A | false |
|
||||||
|
| `closedCaptions` | *boolean* | :heavy_minus_sign: | N/A | false |
|
||||||
|
| `embeddedInVideo` | *string* | :heavy_minus_sign: | N/A | 1 |
|
||||||
|
| `height` | *number* | :heavy_minus_sign: | The height of the video stream | 1080 |
|
||||||
|
| `level` | *number* | :heavy_minus_sign: | The level of the video codec | 40 |
|
||||||
|
| `profile` | *string* | :heavy_minus_sign: | The profile of the video codec | main |
|
||||||
|
| `refFrames` | *number* | :heavy_minus_sign: | Number of reference frames | 4 |
|
||||||
|
| `scanType` | *string* | :heavy_minus_sign: | The scan type (progressive or interlaced) | progressive |
|
||||||
|
| `width` | *number* | :heavy_minus_sign: | The width of the video stream | 1920 |
|
||||||
|
| `displayTitle` | *string* | :heavy_minus_sign: | Display title of the stream | 1080p (H.264) |
|
||||||
|
| `extendedDisplayTitle` | *string* | :heavy_minus_sign: | Extended display title of the stream | 1080p (H.264) |
|
||||||
|
| `channels` | *number* | :heavy_minus_sign: | Number of audio channels (for audio streams) | 2 |
|
||||||
|
| `language` | *string* | :heavy_minus_sign: | The language of the stream (for audio/subtitle streams) | English |
|
||||||
|
| `languageTag` | *string* | :heavy_minus_sign: | Language tag of the stream | en |
|
||||||
|
| `languageCode` | *string* | :heavy_minus_sign: | Language code of the stream | eng |
|
||||||
|
| `audioChannelLayout` | *string* | :heavy_minus_sign: | The audio channel layout | stereo |
|
||||||
|
| `samplingRate` | *number* | :heavy_minus_sign: | Sampling rate of the audio stream in Hz | 48000 |
|
||||||
|
| `title` | *string* | :heavy_minus_sign: | Title of the subtitle track (for subtitle streams) | English |
|
||||||
|
| `canAutoSync` | *boolean* | :heavy_minus_sign: | Indicates if the subtitle stream can auto-sync | false |
|
||||||
21
docs/sdk/models/operations/getsearchalllibrariestype.md
Normal file
21
docs/sdk/models/operations/getsearchalllibrariestype.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# GetSearchAllLibrariesType
|
||||||
|
|
||||||
|
The type of media content
|
||||||
|
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
import { GetSearchAllLibrariesType } from "@lukehagar/plexjs/sdk/models/operations";
|
||||||
|
|
||||||
|
let value: GetSearchAllLibrariesType = GetSearchAllLibrariesType.Movie;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Values
|
||||||
|
|
||||||
|
| Name | Value |
|
||||||
|
| --------- | --------- |
|
||||||
|
| `Movie` | movie |
|
||||||
|
| `TvShow` | show |
|
||||||
|
| `Season` | season |
|
||||||
|
| `Episode` | episode |
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user