Compare commits

...

6 Commits

Author SHA1 Message Date
speakeasybot
7a950ea773 ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.531.4 2025-04-14 00:12:56 +00:00
speakeasybot
379a408d74 ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.529.1 2025-04-06 00:12:51 +00:00
speakeasybot
2712820397 ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.528.1 2025-04-03 00:12:07 +00:00
speakeasybot
c895213ae8 ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.526.6 2025-03-31 19:44:01 +00:00
Luke Hagar
c473c9d326 Update workflow.yaml 2025-03-31 14:41:40 -05:00
speakeasybot
3c13bba9de ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.526.6 2025-03-31 19:35:21 +00:00
165 changed files with 3602 additions and 462 deletions

File diff suppressed because one or more lines are too long

View File

@@ -15,7 +15,7 @@ generation:
oAuth2ClientCredentialsEnabled: true oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false oAuth2PasswordEnabled: false
typescript: typescript:
version: 0.35.2 version: 0.36.2
additionalDependencies: additionalDependencies:
dependencies: {} dependencies: {}
devDependencies: {} devDependencies: {}

View File

@@ -1,4 +1,4 @@
speakeasyVersion: 1.526.6 speakeasyVersion: 1.531.4
sources: sources:
my-source: my-source:
sourceNamespace: my-source sourceNamespace: my-source
@@ -9,20 +9,20 @@ sources:
- main - main
plexapi: plexapi:
sourceNamespace: plexapi sourceNamespace: plexapi
sourceRevisionDigest: sha256:cffb18feaa0523b300655a6f0073caad99133b143f5a420fddbb1e1efe47bcaf sourceRevisionDigest: sha256:db75a06885b897418dcb580679b5f744348573ad317155172346d32442420e5e
sourceBlobDigest: sha256:1737023e29cd9cf36c07ccd8c8c48c47e14f47ce22b4d6ba9ee241afbbd8f351 sourceBlobDigest: sha256:ac0a3c3a6df002378b3522325c2330ba4309fbbbfa503a04b8267398f20033f5
tags: tags:
- latest - latest
- speakeasy-sdk-regen-1743438725 - speakeasy-sdk-regen-1744589502
- 0.0.3 - 0.0.3
targets: targets:
plexjs: plexjs:
source: plexapi source: plexapi
sourceNamespace: plexapi sourceNamespace: plexapi
sourceRevisionDigest: sha256:cffb18feaa0523b300655a6f0073caad99133b143f5a420fddbb1e1efe47bcaf sourceRevisionDigest: sha256:db75a06885b897418dcb580679b5f744348573ad317155172346d32442420e5e
sourceBlobDigest: sha256:1737023e29cd9cf36c07ccd8c8c48c47e14f47ce22b4d6ba9ee241afbbd8f351 sourceBlobDigest: sha256:ac0a3c3a6df002378b3522325c2330ba4309fbbbfa503a04b8267398f20033f5
codeSamplesNamespace: code-samples-typescript-plexjs codeSamplesNamespace: code-samples-typescript-plexjs
codeSamplesRevisionDigest: sha256:1e82144ee5f8b57f2ee0633b982f4dd97305e92b7810d3ea83a6960fb89390cf codeSamplesRevisionDigest: sha256:2542621903a932e966c28b4970e8b3a9e7f8b459e42d63ebebdc3940e551cd76
workflow: workflow:
workflowVersion: 1.0.0 workflowVersion: 1.0.0
speakeasyVersion: latest speakeasyVersion: latest
@@ -43,6 +43,5 @@ workflow:
output: codeSamples.yaml output: codeSamples.yaml
registry: registry:
location: registry.speakeasyapi.dev/plexapi/plexapi/code-samples-typescript-plexjs location: registry.speakeasyapi.dev/plexapi/plexapi/code-samples-typescript-plexjs
langOverride: TypeScript
labelOverride: labelOverride:
fixedValue: PlexJS fixedValue: PlexJS

View File

@@ -17,6 +17,5 @@ targets:
output: codeSamples.yaml output: codeSamples.yaml
registry: registry:
location: registry.speakeasyapi.dev/plexapi/plexapi/code-samples-typescript-plexjs location: registry.speakeasyapi.dev/plexapi/plexapi/code-samples-typescript-plexjs
langOverride: TypeScript
labelOverride: labelOverride:
fixedValue: PlexJS fixedValue: PlexJS

View File

@@ -54,6 +54,7 @@ The following SDKs are generated from the OpenAPI Specification. They are automa
* [Authentication](#authentication) * [Authentication](#authentication)
* [Requirements](#requirements) * [Requirements](#requirements)
* [Standalone functions](#standalone-functions) * [Standalone functions](#standalone-functions)
* [File uploads](#file-uploads)
* [Retries](#retries) * [Retries](#retries)
* [Debugging](#debugging) * [Debugging](#debugging)
* [Development](#development) * [Development](#development)
@@ -167,6 +168,10 @@ run();
* [getActorsLibrary](docs/sdks/library/README.md#getactorslibrary) - Get Actors of library media * [getActorsLibrary](docs/sdks/library/README.md#getactorslibrary) - Get Actors of library media
* [getSearchAllLibraries](docs/sdks/library/README.md#getsearchalllibraries) - Search All Libraries * [getSearchAllLibraries](docs/sdks/library/README.md#getsearchalllibraries) - Search All Libraries
* [getMediaMetaData](docs/sdks/library/README.md#getmediametadata) - Get Media Metadata * [getMediaMetaData](docs/sdks/library/README.md#getmediametadata) - Get Media Metadata
* [getMediaArts](docs/sdks/library/README.md#getmediaarts) - Get Media Background Artwork
* [postMediaArts](docs/sdks/library/README.md#postmediaarts) - Upload Media Background Artwork
* [getMediaPosters](docs/sdks/library/README.md#getmediaposters) - Get Media Posters
* [postMediaPoster](docs/sdks/library/README.md#postmediaposter) - Upload Media Poster
* [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
@@ -543,13 +548,17 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
- [`libraryGetGenresLibrary`](docs/sdks/library/README.md#getgenreslibrary) - Get Genres of library media - [`libraryGetGenresLibrary`](docs/sdks/library/README.md#getgenreslibrary) - Get Genres of library media
- [`libraryGetLibraryDetails`](docs/sdks/library/README.md#getlibrarydetails) - Get Library Details - [`libraryGetLibraryDetails`](docs/sdks/library/README.md#getlibrarydetails) - Get Library Details
- [`libraryGetLibraryItems`](docs/sdks/library/README.md#getlibraryitems) - Get Library Items - [`libraryGetLibraryItems`](docs/sdks/library/README.md#getlibraryitems) - Get Library Items
- [`libraryGetMediaArts`](docs/sdks/library/README.md#getmediaarts) - Get Media Background Artwork
- [`libraryGetMediaMetaData`](docs/sdks/library/README.md#getmediametadata) - Get Media Metadata - [`libraryGetMediaMetaData`](docs/sdks/library/README.md#getmediametadata) - Get Media Metadata
- [`libraryGetMediaPosters`](docs/sdks/library/README.md#getmediaposters) - Get Media Posters
- [`libraryGetMetadataChildren`](docs/sdks/library/README.md#getmetadatachildren) - Get Items Children - [`libraryGetMetadataChildren`](docs/sdks/library/README.md#getmetadatachildren) - Get Items Children
- [`libraryGetRecentlyAddedLibrary`](docs/sdks/library/README.md#getrecentlyaddedlibrary) - Get Recently Added - [`libraryGetRecentlyAddedLibrary`](docs/sdks/library/README.md#getrecentlyaddedlibrary) - Get Recently Added
- [`libraryGetRefreshLibraryMetadata`](docs/sdks/library/README.md#getrefreshlibrarymetadata) - Refresh Metadata Of The Library - [`libraryGetRefreshLibraryMetadata`](docs/sdks/library/README.md#getrefreshlibrarymetadata) - Refresh Metadata Of The Library
- [`libraryGetSearchAllLibraries`](docs/sdks/library/README.md#getsearchalllibraries) - Search All Libraries - [`libraryGetSearchAllLibraries`](docs/sdks/library/README.md#getsearchalllibraries) - Search All Libraries
- [`libraryGetSearchLibrary`](docs/sdks/library/README.md#getsearchlibrary) - Search Library - [`libraryGetSearchLibrary`](docs/sdks/library/README.md#getsearchlibrary) - Search Library
- [`libraryGetTopWatchedContent`](docs/sdks/library/README.md#gettopwatchedcontent) - Get Top Watched Content - [`libraryGetTopWatchedContent`](docs/sdks/library/README.md#gettopwatchedcontent) - Get Top Watched Content
- [`libraryPostMediaArts`](docs/sdks/library/README.md#postmediaarts) - Upload Media Background Artwork
- [`libraryPostMediaPoster`](docs/sdks/library/README.md#postmediaposter) - Upload Media Poster
- [`logEnablePaperTrail`](docs/sdks/log/README.md#enablepapertrail) - Enabling Papertrail - [`logEnablePaperTrail`](docs/sdks/log/README.md#enablepapertrail) - Enabling Papertrail
- [`logLogLine`](docs/sdks/log/README.md#logline) - Logging a single line message. - [`logLogLine`](docs/sdks/log/README.md#logline) - Logging a single line message.
- [`logLogMultiLine`](docs/sdks/log/README.md#logmultiline) - Logging a multi-line message - [`logLogMultiLine`](docs/sdks/log/README.md#logmultiline) - Logging a multi-line message
@@ -604,6 +613,42 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
</details> </details>
<!-- End Standalone functions [standalone-funcs] --> <!-- End Standalone functions [standalone-funcs] -->
<!-- Start File uploads [file-upload] -->
## File uploads
Certain SDK methods accept files as part of a multi-part request. It is possible and typically recommended to upload files as a stream rather than reading the entire contents into memory. This avoids excessive memory consumption and potentially crashing with out-of-memory errors when working with very large files. The following example demonstrates how to attach a file stream to a request.
> [!TIP]
>
> Depending on your JavaScript runtime, there are convenient utilities that return a handle to a file without reading the entire contents into memory:
>
> - **Node.js v20+:** Since v20, Node.js comes with a native `openAsBlob` function in [`node:fs`](https://nodejs.org/docs/latest-v20.x/api/fs.html#fsopenasblobpath-options).
> - **Bun:** The native [`Bun.file`](https://bun.sh/docs/api/file-io#reading-files-bun-file) function produces a file handle that can be used for streaming file uploads.
> - **Browsers:** All supported browsers return an instance to a [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) when reading the value from an `<input type="file">` element.
> - **Node.js v18:** A file stream can be created using the `fileFrom` helper from [`fetch-blob/from.js`](https://www.npmjs.com/package/fetch-blob).
```typescript
import { PlexAPI } from "@lukehagar/plexjs";
const plexAPI = new PlexAPI({
accessToken: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await plexAPI.library.postMediaArts(
2268,
"https://api.mediux.pro/assets/fcfdc487-dd07-4993-a0c1-0a3015362e5b",
);
// Handle the result
console.log(result);
}
run();
```
<!-- End File uploads [file-upload] -->
<!-- Start Retries [retries] --> <!-- Start Retries [retries] -->
## Retries ## Retries

View File

@@ -1259,3 +1259,53 @@ Based on:
- [typescript v0.35.2] . - [typescript v0.35.2] .
### Releases ### Releases
- [NPM v0.35.2] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.35.2 - . - [NPM v0.35.2] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.35.2 - .
## 2025-03-31 19:33:46
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.526.6 (2.563.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.35.3] .
### Releases
- [NPM v0.35.3] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.35.3 - .
## 2025-03-31 19:42:25
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.526.6 (2.563.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.35.4] .
### Releases
- [NPM v0.35.4] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.35.4 - .
## 2025-04-03 00:10:29
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.528.1 (2.565.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.36.0] .
### Releases
- [NPM v0.36.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.36.0 - .
## 2025-04-06 00:11:19
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.529.1 (2.566.5) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.36.1] .
### Releases
- [NPM v0.36.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.36.1 - .
## 2025-04-14 00:11:23
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.531.4 (2.570.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.36.2] .
### Releases
- [NPM v0.36.2] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.36.2 - .

View File

@@ -6,7 +6,7 @@ actions:
- target: $["paths"]["/"]["get"] - target: $["paths"]["/"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -26,7 +26,7 @@ actions:
- target: $["paths"]["/:/prefs"]["get"] - target: $["paths"]["/:/prefs"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -46,7 +46,7 @@ actions:
- target: $["paths"]["/:/progress"]["post"] - target: $["paths"]["/:/progress"]["post"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -66,7 +66,7 @@ actions:
- target: $["paths"]["/:/scrobble"]["get"] - target: $["paths"]["/:/scrobble"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -86,7 +86,7 @@ actions:
- target: $["paths"]["/:/timeline"]["get"] - target: $["paths"]["/:/timeline"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -118,7 +118,7 @@ actions:
- target: $["paths"]["/:/unscrobble"]["get"] - target: $["paths"]["/:/unscrobble"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -138,7 +138,7 @@ actions:
- target: $["paths"]["/activities"]["get"] - target: $["paths"]["/activities"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -158,7 +158,7 @@ actions:
- target: $["paths"]["/activities/{activityUUID}"]["delete"] - target: $["paths"]["/activities/{activityUUID}"]["delete"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -178,7 +178,7 @@ actions:
- target: $["paths"]["/butler"]["delete"] - target: $["paths"]["/butler"]["delete"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -198,7 +198,7 @@ actions:
- target: $["paths"]["/butler"]["get"] - target: $["paths"]["/butler"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -218,7 +218,7 @@ actions:
- target: $["paths"]["/butler"]["post"] - target: $["paths"]["/butler"]["post"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -238,7 +238,7 @@ actions:
- target: $["paths"]["/butler/{taskName}"]["delete"] - target: $["paths"]["/butler/{taskName}"]["delete"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -259,7 +259,7 @@ actions:
- target: $["paths"]["/butler/{taskName}"]["post"] - target: $["paths"]["/butler/{taskName}"]["post"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -280,7 +280,7 @@ actions:
- target: $["paths"]["/clients"]["get"] - target: $["paths"]["/clients"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -300,7 +300,7 @@ actions:
- target: $["paths"]["/companions"]["get"] - target: $["paths"]["/companions"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -320,7 +320,7 @@ actions:
- target: $["paths"]["/devices"]["get"] - target: $["paths"]["/devices"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -340,7 +340,7 @@ actions:
- target: $["paths"]["/friends"]["get"] - target: $["paths"]["/friends"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -360,7 +360,7 @@ actions:
- target: $["paths"]["/geoip"]["get"] - target: $["paths"]["/geoip"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -378,7 +378,7 @@ actions:
- target: $["paths"]["/home"]["get"] - target: $["paths"]["/home"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -398,7 +398,7 @@ actions:
- target: $["paths"]["/hubs"]["get"] - target: $["paths"]["/hubs"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -418,7 +418,7 @@ actions:
- target: $["paths"]["/hubs/home/recentlyAdded"]["get"] - target: $["paths"]["/hubs/home/recentlyAdded"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -443,7 +443,7 @@ actions:
- target: $["paths"]["/hubs/search"]["get"] - target: $["paths"]["/hubs/search"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -463,7 +463,7 @@ actions:
- target: $["paths"]["/hubs/search/voice"]["get"] - target: $["paths"]["/hubs/search/voice"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -483,7 +483,7 @@ actions:
- target: $["paths"]["/hubs/sections/{sectionId}"]["get"] - target: $["paths"]["/hubs/sections/{sectionId}"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -503,7 +503,7 @@ actions:
- target: $["paths"]["/identity"]["get"] - target: $["paths"]["/identity"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -521,7 +521,7 @@ actions:
- target: $["paths"]["/library/all/top"]["get"] - target: $["paths"]["/library/all/top"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -542,7 +542,7 @@ actions:
- target: $["paths"]["/library/hashes"]["get"] - target: $["paths"]["/library/hashes"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -562,7 +562,7 @@ actions:
- target: $["paths"]["/library/metadata/{ratingKey}"]["get"] - target: $["paths"]["/library/metadata/{ratingKey}"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -593,11 +593,51 @@ actions:
console.log(result); console.log(result);
} }
run();
- target: $["paths"]["/library/metadata/{ratingKey}/arts"]["get"]
update:
x-codeSamples:
- lang: typescript
label: PlexJS
source: |-
import { PlexAPI } from "@lukehagar/plexjs";
const plexAPI = new PlexAPI({
accessToken: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await plexAPI.library.getMediaArts(16099);
// Handle the result
console.log(result);
}
run();
- target: $["paths"]["/library/metadata/{ratingKey}/arts"]["post"]
update:
x-codeSamples:
- lang: typescript
label: PlexJS
source: |-
import { PlexAPI } from "@lukehagar/plexjs";
const plexAPI = new PlexAPI({
accessToken: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await plexAPI.library.postMediaArts(2268, "https://api.mediux.pro/assets/fcfdc487-dd07-4993-a0c1-0a3015362e5b");
// Handle the result
console.log(result);
}
run(); run();
- target: $["paths"]["/library/metadata/{ratingKey}/banner"]["get"] - target: $["paths"]["/library/metadata/{ratingKey}/banner"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -624,7 +664,7 @@ actions:
- target: $["paths"]["/library/metadata/{ratingKey}/children"]["get"] - target: $["paths"]["/library/metadata/{ratingKey}/children"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -640,11 +680,51 @@ actions:
console.log(result); console.log(result);
} }
run();
- target: $["paths"]["/library/metadata/{ratingKey}/posters"]["get"]
update:
x-codeSamples:
- lang: typescript
label: PlexJS
source: |-
import { PlexAPI } from "@lukehagar/plexjs";
const plexAPI = new PlexAPI({
accessToken: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await plexAPI.library.getMediaPosters(16099);
// Handle the result
console.log(result);
}
run();
- target: $["paths"]["/library/metadata/{ratingKey}/posters"]["post"]
update:
x-codeSamples:
- lang: typescript
label: PlexJS
source: |-
import { PlexAPI } from "@lukehagar/plexjs";
const plexAPI = new PlexAPI({
accessToken: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await plexAPI.library.postMediaPoster(2268, "https://api.mediux.pro/assets/fcfdc487-dd07-4993-a0c1-0a3015362e5b");
// Handle the result
console.log(result);
}
run(); run();
- target: $["paths"]["/library/metadata/{ratingKey}/thumb"]["get"] - target: $["paths"]["/library/metadata/{ratingKey}/thumb"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -671,7 +751,7 @@ actions:
- target: $["paths"]["/library/recentlyAdded"]["get"] - target: $["paths"]["/library/recentlyAdded"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -710,7 +790,7 @@ actions:
- target: $["paths"]["/library/search"]["get"] - target: $["paths"]["/library/search"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -737,7 +817,7 @@ actions:
- target: $["paths"]["/library/sections"]["get"] - target: $["paths"]["/library/sections"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -757,7 +837,7 @@ actions:
- target: $["paths"]["/library/sections/watchlist/{filter}"]["get"] - target: $["paths"]["/library/sections/watchlist/{filter}"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -781,7 +861,7 @@ actions:
- target: $["paths"]["/library/sections/{sectionKey}"]["delete"] - target: $["paths"]["/library/sections/{sectionKey}"]["delete"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -801,7 +881,7 @@ actions:
- target: $["paths"]["/library/sections/{sectionKey}"]["get"] - target: $["paths"]["/library/sections/{sectionKey}"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -821,7 +901,7 @@ actions:
- target: $["paths"]["/library/sections/{sectionKey}/actor"]["get"] - target: $["paths"]["/library/sections/{sectionKey}/actor"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -842,7 +922,7 @@ actions:
- target: $["paths"]["/library/sections/{sectionKey}/all"]["get"] - target: $["paths"]["/library/sections/{sectionKey}/all"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -866,7 +946,7 @@ actions:
- target: $["paths"]["/library/sections/{sectionKey}/country"]["get"] - target: $["paths"]["/library/sections/{sectionKey}/country"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -887,7 +967,7 @@ actions:
- target: $["paths"]["/library/sections/{sectionKey}/genre"]["get"] - target: $["paths"]["/library/sections/{sectionKey}/genre"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -908,7 +988,7 @@ actions:
- target: $["paths"]["/library/sections/{sectionKey}/refresh"]["get"] - target: $["paths"]["/library/sections/{sectionKey}/refresh"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -929,7 +1009,7 @@ actions:
- target: $["paths"]["/library/sections/{sectionKey}/search"]["get"] - target: $["paths"]["/library/sections/{sectionKey}/search"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -950,7 +1030,7 @@ actions:
- target: $["paths"]["/library/sections/{sectionKey}/{tag}"]["get"] - target: $["paths"]["/library/sections/{sectionKey}/{tag}"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -975,7 +1055,7 @@ actions:
- target: $["paths"]["/log"]["get"] - target: $["paths"]["/log"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -996,7 +1076,7 @@ actions:
- target: $["paths"]["/log"]["post"] - target: $["paths"]["/log"]["post"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1018,7 +1098,7 @@ actions:
- target: $["paths"]["/log/networked"]["get"] - target: $["paths"]["/log/networked"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1038,7 +1118,7 @@ actions:
- target: $["paths"]["/media/providers"]["get"] - target: $["paths"]["/media/providers"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1058,7 +1138,7 @@ actions:
- target: $["paths"]["/myplex/account"]["get"] - target: $["paths"]["/myplex/account"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1078,7 +1158,7 @@ actions:
- target: $["paths"]["/photo/:/transcode"]["get"] - target: $["paths"]["/photo/:/transcode"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1107,7 +1187,7 @@ actions:
- target: $["paths"]["/pins"]["post"] - target: $["paths"]["/pins"]["post"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1131,7 +1211,7 @@ actions:
- target: $["paths"]["/pins/{pinID}"]["get"] - target: $["paths"]["/pins/{pinID}"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1156,7 +1236,7 @@ actions:
- target: $["paths"]["/playlists"]["get"] - target: $["paths"]["/playlists"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1176,7 +1256,7 @@ actions:
- target: $["paths"]["/playlists"]["post"] - target: $["paths"]["/playlists"]["post"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1202,7 +1282,7 @@ actions:
- target: $["paths"]["/playlists/upload"]["post"] - target: $["paths"]["/playlists/upload"]["post"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1223,7 +1303,7 @@ actions:
- target: $["paths"]["/playlists/{playlistID}"]["delete"] - target: $["paths"]["/playlists/{playlistID}"]["delete"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1243,7 +1323,7 @@ actions:
- target: $["paths"]["/playlists/{playlistID}"]["get"] - target: $["paths"]["/playlists/{playlistID}"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1263,7 +1343,7 @@ actions:
- target: $["paths"]["/playlists/{playlistID}"]["put"] - target: $["paths"]["/playlists/{playlistID}"]["put"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1283,7 +1363,7 @@ actions:
- target: $["paths"]["/playlists/{playlistID}/items"]["delete"] - target: $["paths"]["/playlists/{playlistID}/items"]["delete"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1303,7 +1383,7 @@ actions:
- target: $["paths"]["/playlists/{playlistID}/items"]["get"] - target: $["paths"]["/playlists/{playlistID}/items"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1324,7 +1404,7 @@ actions:
- target: $["paths"]["/playlists/{playlistID}/items"]["put"] - target: $["paths"]["/playlists/{playlistID}/items"]["put"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1344,7 +1424,7 @@ actions:
- target: $["paths"]["/resources"]["get"] - target: $["paths"]["/resources"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1364,7 +1444,7 @@ actions:
- target: $["paths"]["/search"]["get"] - target: $["paths"]["/search"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1384,7 +1464,7 @@ actions:
- target: $["paths"]["/security/resources"]["get"] - target: $["paths"]["/security/resources"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1404,7 +1484,7 @@ actions:
- target: $["paths"]["/security/token"]["get"] - target: $["paths"]["/security/token"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1425,7 +1505,7 @@ actions:
- target: $["paths"]["/servers"]["get"] - target: $["paths"]["/servers"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1445,7 +1525,7 @@ actions:
- target: $["paths"]["/statistics/bandwidth"]["get"] - target: $["paths"]["/statistics/bandwidth"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1465,7 +1545,7 @@ actions:
- target: $["paths"]["/statistics/media"]["get"] - target: $["paths"]["/statistics/media"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1485,7 +1565,7 @@ actions:
- target: $["paths"]["/statistics/resources"]["get"] - target: $["paths"]["/statistics/resources"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1505,7 +1585,7 @@ actions:
- target: $["paths"]["/status/sessions"]["get"] - target: $["paths"]["/status/sessions"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1525,7 +1605,7 @@ actions:
- target: $["paths"]["/status/sessions/history/all"]["get"] - target: $["paths"]["/status/sessions/history/all"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1545,7 +1625,7 @@ actions:
- target: $["paths"]["/transcode/sessions"]["get"] - target: $["paths"]["/transcode/sessions"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1565,7 +1645,7 @@ actions:
- target: $["paths"]["/transcode/sessions/{sessionKey}"]["delete"] - target: $["paths"]["/transcode/sessions/{sessionKey}"]["delete"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1585,7 +1665,7 @@ actions:
- target: $["paths"]["/updater/apply"]["put"] - target: $["paths"]["/updater/apply"]["put"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1606,7 +1686,7 @@ actions:
- target: $["paths"]["/updater/check"]["put"] - target: $["paths"]["/updater/check"]["put"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1627,7 +1707,7 @@ actions:
- target: $["paths"]["/updater/status"]["get"] - target: $["paths"]["/updater/status"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1647,7 +1727,7 @@ actions:
- target: $["paths"]["/user"]["get"] - target: $["paths"]["/user"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1667,7 +1747,7 @@ actions:
- target: $["paths"]["/users"]["get"] - target: $["paths"]["/users"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1699,7 +1779,7 @@ actions:
- target: $["paths"]["/users/signin"]["post"] - target: $["paths"]["/users/signin"]["post"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";
@@ -1728,7 +1808,7 @@ actions:
- target: $["paths"]["/video/:/transcode/universal/start.mpd"]["get"] - target: $["paths"]["/video/:/transcode/universal/start.mpd"]["get"]
update: update:
x-codeSamples: x-codeSamples:
- lang: TypeScript - lang: typescript
label: PlexJS label: PlexJS
source: |- source: |-
import { PlexAPI } from "@lukehagar/plexjs"; import { PlexAPI } from "@lukehagar/plexjs";

View File

@@ -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: 2776.28, playlistID: 1207.42,
uri: "server://12345/com.plexapp.plugins.library/library/metadata/1", uri: "server://12345/com.plexapp.plugins.library/library/metadata/1",
playQueueID: 123, playQueueID: 123,
}; };

View File

@@ -7,7 +7,7 @@ import { AddPlaylistContentsResponse } from "@lukehagar/plexjs/sdk/models/operat
let value: AddPlaylistContentsResponse = { let value: AddPlaylistContentsResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 307, statusCode: 207,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { ApplyUpdatesResponse } from "@lukehagar/plexjs/sdk/models/operations";
let value: ApplyUpdatesResponse = { let value: ApplyUpdatesResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 208, statusCode: 200,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { Billing } from "@lukehagar/plexjs/sdk/models/operations";
let value: Billing = { let value: Billing = {
internalPaymentMethod: {}, internalPaymentMethod: {},
paymentMethodId: 903720, paymentMethodId: 395427,
}; };
``` ```

View File

@@ -7,7 +7,7 @@ import { CancelServerActivitiesResponse } from "@lukehagar/plexjs/sdk/models/ope
let value: CancelServerActivitiesResponse = { let value: CancelServerActivitiesResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 417, statusCode: 405,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { CheckForUpdatesResponse } from "@lukehagar/plexjs/sdk/models/operations
let value: CheckForUpdatesResponse = { let value: CheckForUpdatesResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 428, statusCode: 504,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -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: 4246.85, playlistID: 5077.01,
}; };
``` ```

View File

@@ -7,7 +7,7 @@ import { ClearPlaylistContentsResponse } from "@lukehagar/plexjs/sdk/models/oper
let value: ClearPlaylistContentsResponse = { let value: ClearPlaylistContentsResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 204, statusCode: 504,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,9 +7,9 @@ import { Connections, Protocol } from "@lukehagar/plexjs/sdk/models/operations";
let value: Connections = { let value: Connections = {
protocol: Protocol.Http, protocol: Protocol.Http,
address: "21611 Schuster Cliffs", address: "84577 W 9th Street",
port: 54915, port: 40036,
uri: "https://wobbly-instance.org/", uri: "https://dearest-custom.net",
local: false, local: false,
relay: false, relay: false,
iPv6: false, iPv6: false,

View File

@@ -8,8 +8,8 @@ import { CreatePlaylistQueryParamType, CreatePlaylistRequest, Smart } from "@luk
let value: CreatePlaylistRequest = { let value: CreatePlaylistRequest = {
title: "<value>", title: "<value>",
type: CreatePlaylistQueryParamType.Audio, type: CreatePlaylistQueryParamType.Audio,
smart: Smart.One, smart: Smart.Zero,
uri: "https://ajar-reward.biz/", uri: "https://courageous-futon.net",
}; };
``` ```

View File

@@ -7,7 +7,7 @@ import { CreatePlaylistResponse } from "@lukehagar/plexjs/sdk/models/operations"
let value: CreatePlaylistResponse = { let value: CreatePlaylistResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 205, statusCode: 510,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { DeleteLibraryResponse } from "@lukehagar/plexjs/sdk/models/operations";
let value: DeleteLibraryResponse = { let value: DeleteLibraryResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 451, statusCode: 102,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -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: 6874.88, playlistID: 5840.32,
}; };
``` ```

View File

@@ -7,7 +7,7 @@ import { DeletePlaylistResponse } from "@lukehagar/plexjs/sdk/models/operations"
let value: DeletePlaylistResponse = { let value: DeletePlaylistResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 226, statusCode: 101,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { EnablePaperTrailResponse } from "@lukehagar/plexjs/sdk/models/operation
let value: EnablePaperTrailResponse = { let value: EnablePaperTrailResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 304, statusCode: 416,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -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

View File

@@ -7,7 +7,7 @@ Force the refresh even if the library is already being refreshed.
```typescript ```typescript
import { Force } from "@lukehagar/plexjs/sdk/models/operations"; import { Force } from "@lukehagar/plexjs/sdk/models/operations";
let value: Force = Force.One; let value: Force = Force.Zero;
``` ```
## Values ## Values

View File

@@ -7,7 +7,7 @@ import { GetActorsLibraryResponse } from "@lukehagar/plexjs/sdk/models/operation
let value: GetActorsLibraryResponse = { let value: GetActorsLibraryResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 300, statusCode: 101,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -3,33 +3,32 @@
## Example Usage ## Example Usage
```typescript ```typescript
import { GetAllLibrariesDirectory } from "@lukehagar/plexjs/sdk/models/operations"; import { GetAllLibrariesDirectory, GetAllLibrariesType } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetAllLibrariesDirectory = { let value: GetAllLibrariesDirectory = {
allowSync: true, allowSync: false,
art: "/:/resources/movie-fanart.jpg", art: "/:/resources/show-fanart.jpg",
composite: "/library/sections/1/composite/1705615584", composite: "/library/sections/1/composite/1743824484",
filters: true, filters: true,
refreshing: false, refreshing: true,
thumb: "/:/resources/movie.png", thumb: "/:/resources/show.png",
key: "1", key: "1",
type: "movie", type: GetAllLibrariesType.Movie,
title: "Movies", title: "Movies",
agent: "tv.plex.agents.movie", agent: "tv.plex.agents.movie",
scanner: "Plex Movie", scanner: "Plex Movie",
language: "en-US", language: "en-US",
uuid: "322a231a-b7f7-49f5-920f-14c61199cd30", uuid: "e69655a2-ef48-4aba-bb19-01e7d3cc34d6",
updatedAt: 1556281940, updatedAt: 1556281940,
createdAt: 1556281940, createdAt: 1556281940,
scannedAt: 1556281940, scannedAt: 1556281940,
content: true, content: true,
directory: true, directory: true,
contentChangedAt: 1556281940, contentChangedAt: 9173960,
hidden: 0,
location: [ location: [
{ {
id: 1, id: 1,
path: "/movies", path: "/Movies",
}, },
], ],
}; };
@@ -37,26 +36,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: | Indicates whether syncing is allowed. | false |
| `art` | *string* | :heavy_check_mark: | N/A | /:/resources/movie-fanart.jpg | | `art` | *string* | :heavy_check_mark: | URL for the background artwork of the media container. | /:/resources/show-fanart.jpg |
| `composite` | *string* | :heavy_check_mark: | N/A | /library/sections/1/composite/1705615584 | | `composite` | *string* | :heavy_check_mark: | The relative path to the composite media item. | /library/sections/1/composite/1743824484 |
| `filters` | *boolean* | :heavy_check_mark: | N/A | true | | `filters` | *boolean* | :heavy_check_mark: | UNKNOWN | true |
| `refreshing` | *boolean* | :heavy_check_mark: | N/A | false | | `refreshing` | *boolean* | :heavy_check_mark: | Indicates whether the library is currently being refreshed or updated | true |
| `thumb` | *string* | :heavy_check_mark: | N/A | /:/resources/movie.png | | `thumb` | *string* | :heavy_check_mark: | URL for the thumbnail image of the media container. | /:/resources/show.png |
| `key` | *string* | :heavy_check_mark: | N/A | 1 | | `key` | *string* | :heavy_check_mark: | The library key representing the unique identifier | 1 |
| `type` | *string* | :heavy_check_mark: | N/A | movie | | `type` | [operations.GetAllLibrariesType](../../../sdk/models/operations/getalllibrariestype.md) | :heavy_check_mark: | N/A | movie |
| `title` | *string* | :heavy_check_mark: | N/A | Movies | | `title` | *string* | :heavy_check_mark: | The title of the library | Movies |
| `agent` | *string* | :heavy_check_mark: | N/A | tv.plex.agents.movie | | `agent` | *string* | :heavy_check_mark: | The Plex agent used to match and retrieve media metadata. | tv.plex.agents.movie |
| `scanner` | *string* | :heavy_check_mark: | N/A | Plex Movie | | `scanner` | *string* | :heavy_check_mark: | UNKNOWN | Plex Movie |
| `language` | *string* | :heavy_check_mark: | N/A | en-US | | `language` | *string* | :heavy_check_mark: | The Plex library language that has been set | en-US |
| `uuid` | *string* | :heavy_check_mark: | N/A | 322a231a-b7f7-49f5-920f-14c61199cd30 | | `uuid` | *string* | :heavy_check_mark: | The universally unique identifier for the library. | e69655a2-ef48-4aba-bb19-01e7d3cc34d6 |
| `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_minus_sign: | N/A | 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: | UNKNOWN | true |
| `directory` | *boolean* | :heavy_check_mark: | N/A | true | | `directory` | *boolean* | :heavy_check_mark: | UNKNOWN | true |
| `contentChangedAt` | *number* | :heavy_check_mark: | Unix epoch datetime in seconds | 1556281940 | | `contentChangedAt` | *number* | :heavy_check_mark: | Timestamp (in seconds) representing the last time the content was modified.<br/>NOTE: Some Plex server have some absurd values for this field, like 8457612157633039800 so it should be int64<br/> | 9173960 |
| `hidden` | *number* | :heavy_check_mark: | N/A | 0 | | `hidden` | [operations.Hidden](../../../sdk/models/operations/hidden.md) | :heavy_minus_sign: | N/A | 1 |
| `location` | [operations.GetAllLibrariesLocation](../../../sdk/models/operations/getalllibrarieslocation.md)[] | :heavy_check_mark: | N/A | | | `location` | [operations.GetAllLibrariesLocation](../../../sdk/models/operations/getalllibrarieslocation.md)[] | :heavy_check_mark: | N/A | |

View File

@@ -7,13 +7,13 @@ import { GetAllLibrariesLocation } from "@lukehagar/plexjs/sdk/models/operations
let value: GetAllLibrariesLocation = { let value: GetAllLibrariesLocation = {
id: 1, id: 1,
path: "/movies", path: "/Movies",
}; };
``` ```
## Fields ## Fields
| Field | Type | Required | Description | Example | | Field | Type | Required | Description | Example |
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | | --------------------------- | --------------------------- | --------------------------- | --------------------------- | --------------------------- |
| `id` | *number* | :heavy_check_mark: | N/A | 1 | | `id` | *number* | :heavy_check_mark: | The ID of the location. | 1 |
| `path` | *string* | :heavy_check_mark: | N/A | /movies | | `path` | *string* | :heavy_check_mark: | The path to the media item. | /Movies |

View File

@@ -3,38 +3,37 @@
## Example Usage ## Example Usage
```typescript ```typescript
import { GetAllLibrariesMediaContainer } from "@lukehagar/plexjs/sdk/models/operations"; import { GetAllLibrariesMediaContainer, GetAllLibrariesType } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetAllLibrariesMediaContainer = { let value: GetAllLibrariesMediaContainer = {
size: 5, size: 50,
allowSync: false, allowSync: false,
title1: "Plex Library", title1: "TV Series",
directory: [ directory: [
{ {
allowSync: true, allowSync: false,
art: "/:/resources/movie-fanart.jpg", art: "/:/resources/show-fanart.jpg",
composite: "/library/sections/1/composite/1705615584", composite: "/library/sections/1/composite/1743824484",
filters: true, filters: true,
refreshing: false, refreshing: true,
thumb: "/:/resources/movie.png", thumb: "/:/resources/show.png",
key: "1", key: "1",
type: "movie", type: GetAllLibrariesType.Movie,
title: "Movies", title: "Movies",
agent: "tv.plex.agents.movie", agent: "tv.plex.agents.movie",
scanner: "Plex Movie", scanner: "Plex Movie",
language: "en-US", language: "en-US",
uuid: "322a231a-b7f7-49f5-920f-14c61199cd30", uuid: "e69655a2-ef48-4aba-bb19-01e7d3cc34d6",
updatedAt: 1556281940, updatedAt: 1556281940,
createdAt: 1556281940, createdAt: 1556281940,
scannedAt: 1556281940, scannedAt: 1556281940,
content: true, content: true,
directory: true, directory: true,
contentChangedAt: 1556281940, contentChangedAt: 9173960,
hidden: 0,
location: [ location: [
{ {
id: 1, id: 1,
path: "/movies", path: "/Movies",
}, },
], ],
}, },
@@ -46,7 +45,7 @@ let value: GetAllLibrariesMediaContainer = {
| Field | Type | Required | Description | Example | | Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| `size` | *number* | :heavy_check_mark: | N/A | 5 | | `size` | *number* | :heavy_check_mark: | Number of media items returned in this response. | 50 |
| `allowSync` | *boolean* | :heavy_check_mark: | N/A | false | | `allowSync` | *boolean* | :heavy_check_mark: | Indicates whether syncing is allowed. | false |
| `title1` | *string* | :heavy_check_mark: | N/A | Plex Library | | `title1` | *string* | :heavy_check_mark: | The primary title of the media container. | TV Series |
| `directory` | [operations.GetAllLibrariesDirectory](../../../sdk/models/operations/getalllibrariesdirectory.md)[] | :heavy_check_mark: | N/A | | | `directory` | [operations.GetAllLibrariesDirectory](../../../sdk/models/operations/getalllibrariesdirectory.md)[] | :heavy_minus_sign: | N/A | |

View File

@@ -3,45 +3,44 @@
## Example Usage ## Example Usage
```typescript ```typescript
import { GetAllLibrariesResponse } from "@lukehagar/plexjs/sdk/models/operations"; import { GetAllLibrariesResponse, GetAllLibrariesType } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetAllLibrariesResponse = { let value: GetAllLibrariesResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 508, statusCode: 101,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),
object: { object: {
mediaContainer: { mediaContainer: {
size: 5, size: 50,
allowSync: false, allowSync: false,
title1: "Plex Library", title1: "TV Series",
directory: [ directory: [
{ {
allowSync: true, allowSync: false,
art: "/:/resources/movie-fanart.jpg", art: "/:/resources/show-fanart.jpg",
composite: "/library/sections/1/composite/1705615584", composite: "/library/sections/1/composite/1743824484",
filters: true, filters: true,
refreshing: false, refreshing: true,
thumb: "/:/resources/movie.png", thumb: "/:/resources/show.png",
key: "1", key: "1",
type: "movie", type: GetAllLibrariesType.Movie,
title: "Movies", title: "Movies",
agent: "tv.plex.agents.movie", agent: "tv.plex.agents.movie",
scanner: "Plex Movie", scanner: "Plex Movie",
language: "en-US", language: "en-US",
uuid: "322a231a-b7f7-49f5-920f-14c61199cd30", uuid: "e69655a2-ef48-4aba-bb19-01e7d3cc34d6",
updatedAt: 1556281940, updatedAt: 1556281940,
createdAt: 1556281940, createdAt: 1556281940,
scannedAt: 1556281940, scannedAt: 1556281940,
content: true, content: true,
directory: true, directory: true,
contentChangedAt: 1556281940, contentChangedAt: 9173960,
hidden: 0,
location: [ location: [
{ {
id: 1, id: 1,
path: "/movies", path: "/Movies",
}, },
], ],
}, },

View File

@@ -5,39 +5,38 @@ The libraries available on the Server
## Example Usage ## Example Usage
```typescript ```typescript
import { GetAllLibrariesResponseBody } from "@lukehagar/plexjs/sdk/models/operations"; import { GetAllLibrariesResponseBody, GetAllLibrariesType } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetAllLibrariesResponseBody = { let value: GetAllLibrariesResponseBody = {
mediaContainer: { mediaContainer: {
size: 5, size: 50,
allowSync: false, allowSync: false,
title1: "Plex Library", title1: "TV Series",
directory: [ directory: [
{ {
allowSync: true, allowSync: false,
art: "/:/resources/movie-fanart.jpg", art: "/:/resources/show-fanart.jpg",
composite: "/library/sections/1/composite/1705615584", composite: "/library/sections/1/composite/1743824484",
filters: true, filters: true,
refreshing: false, refreshing: true,
thumb: "/:/resources/movie.png", thumb: "/:/resources/show.png",
key: "1", key: "1",
type: "movie", type: GetAllLibrariesType.Movie,
title: "Movies", title: "Movies",
agent: "tv.plex.agents.movie", agent: "tv.plex.agents.movie",
scanner: "Plex Movie", scanner: "Plex Movie",
language: "en-US", language: "en-US",
uuid: "322a231a-b7f7-49f5-920f-14c61199cd30", uuid: "e69655a2-ef48-4aba-bb19-01e7d3cc34d6",
updatedAt: 1556281940, updatedAt: 1556281940,
createdAt: 1556281940, createdAt: 1556281940,
scannedAt: 1556281940, scannedAt: 1556281940,
content: true, content: true,
directory: true, directory: true,
contentChangedAt: 1556281940, contentChangedAt: 9173960,
hidden: 0,
location: [ location: [
{ {
id: 1, id: 1,
path: "/movies", path: "/Movies",
}, },
], ],
}, },
@@ -50,4 +49,4 @@ let value: GetAllLibrariesResponseBody = {
| Field | Type | Required | Description | | Field | Type | Required | Description |
| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| `mediaContainer` | [operations.GetAllLibrariesMediaContainer](../../../sdk/models/operations/getalllibrariesmediacontainer.md) | :heavy_check_mark: | N/A | | `mediaContainer` | [operations.GetAllLibrariesMediaContainer](../../../sdk/models/operations/getalllibrariesmediacontainer.md) | :heavy_minus_sign: | N/A |

View File

@@ -0,0 +1,22 @@
# GetAllLibrariesType
The library type
## Example Usage
```typescript
import { GetAllLibrariesType } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetAllLibrariesType = GetAllLibrariesType.Movie;
```
## Values
| Name | Value |
| --------- | --------- |
| `Movie` | movie |
| `TvShow` | show |
| `Season` | season |
| `Episode` | episode |
| `Artist` | artist |
| `Album` | album |

View File

@@ -12,7 +12,7 @@ import { RFCDate } from "@lukehagar/plexjs/sdk/types";
let value: GetAllMediaLibraryResponse = { let value: GetAllMediaLibraryResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 300, statusCode: 505,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetAvailableClientsResponse } from "@lukehagar/plexjs/sdk/models/operat
let value: GetAvailableClientsResponse = { let value: GetAvailableClientsResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 305, statusCode: 308,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetBandwidthStatisticsResponse } from "@lukehagar/plexjs/sdk/models/ope
let value: GetBandwidthStatisticsResponse = { let value: GetBandwidthStatisticsResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 205, statusCode: 101,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetButlerTasksResponse } from "@lukehagar/plexjs/sdk/models/operations"
let value: GetButlerTasksResponse = { let value: GetButlerTasksResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 431, statusCode: 402,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetCompanionsDataResponse } from "@lukehagar/plexjs/sdk/models/operatio
let value: GetCompanionsDataResponse = { let value: GetCompanionsDataResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 308, statusCode: 301,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetDevicesResponse } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetDevicesResponse = { let value: GetDevicesResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 308, statusCode: 301,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetFileHashResponse } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetFileHashResponse = { let value: GetFileHashResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 308, statusCode: 102,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetGenresLibraryResponse } from "@lukehagar/plexjs/sdk/models/operation
let value: GetGenresLibraryResponse = { let value: GetGenresLibraryResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 101, statusCode: 301,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetGeoDataResponse } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetGeoDataResponse = { let value: GetGeoDataResponse = {
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" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetGlobalHubsResponse } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetGlobalHubsResponse = { let value: GetGlobalHubsResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 423, statusCode: 306,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetHomeDataResponse } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetHomeDataResponse = { let value: GetHomeDataResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 204, statusCode: 404,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetLibraryDetailsResponse } from "@lukehagar/plexjs/sdk/models/operatio
let value: GetLibraryDetailsResponse = { let value: GetLibraryDetailsResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 103, statusCode: 206,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -6,7 +6,7 @@
import { GetLibraryHubsRequest } from "@lukehagar/plexjs/sdk/models/operations"; import { GetLibraryHubsRequest } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetLibraryHubsRequest = { let value: GetLibraryHubsRequest = {
sectionId: 2900.77, sectionId: 7247.75,
}; };
``` ```

View File

@@ -8,7 +8,7 @@ import { RFCDate } from "@lukehagar/plexjs/sdk/types";
let value: GetLibraryHubsResponse = { let value: GetLibraryHubsResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 412, statusCode: 304,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -6,7 +6,7 @@
import { GetLibraryItemsQueryParamType, GetLibraryItemsRequest, Tag } from "@lukehagar/plexjs/sdk/models/operations"; import { GetLibraryItemsQueryParamType, GetLibraryItemsRequest, Tag } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetLibraryItemsRequest = { let value: GetLibraryItemsRequest = {
tag: Tag.FirstCharacter, tag: Tag.OnDeck,
type: GetLibraryItemsQueryParamType.TvShow, type: GetLibraryItemsQueryParamType.TvShow,
sectionKey: 9518, sectionKey: 9518,
}; };

View File

@@ -0,0 +1,36 @@
# GetMediaArtsMediaContainer
## Example Usage
```typescript
import { GetMediaArtsMediaContainer } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetMediaArtsMediaContainer = {
size: 50,
mediaTagVersion: 1734362201,
mediaTagPrefix: "/system/bundle/media/flags/",
identifier: "com.plexapp.plugins.library",
metadata: [
{
key:
"https://image.tmdb.org/t/p/original/ixgFmf1X59PUZam2qbAfskx2gQr.jpg",
provider: "tmdb",
ratingKey:
"https://image.tmdb.org/t/p/original/ixgFmf1X59PUZam2qbAfskx2gQr.jpg",
selected: true,
thumb:
"https://images.plex.tv/photo?height=270&width=480&minSize=1&upscale=1&url=https%3A%2F%2Fimage%2Etmdb%2Eorg%2Ft%2Fp%2Foriginal%2FixgFmf1X59PUZam2qbAfskx2gQr%2Ejpg",
},
],
};
```
## Fields
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| `size` | *number* | :heavy_check_mark: | Number of media items returned in this response. | 50 |
| `mediaTagVersion` | *number* | :heavy_check_mark: | The version number for media tags. | 1734362201 |
| `mediaTagPrefix` | *string* | :heavy_check_mark: | The prefix used for media tag resource paths. | /system/bundle/media/flags/ |
| `identifier` | *string* | :heavy_check_mark: | An plugin identifier for the media container. | com.plexapp.plugins.library |
| `metadata` | [operations.GetMediaArtsMetadata](../../../sdk/models/operations/getmediaartsmetadata.md)[] | :heavy_check_mark: | N/A | |

View File

@@ -0,0 +1,27 @@
# GetMediaArtsMetadata
## Example Usage
```typescript
import { GetMediaArtsMetadata } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetMediaArtsMetadata = {
key: "https://image.tmdb.org/t/p/original/ixgFmf1X59PUZam2qbAfskx2gQr.jpg",
provider: "tmdb",
ratingKey:
"https://image.tmdb.org/t/p/original/ixgFmf1X59PUZam2qbAfskx2gQr.jpg",
selected: true,
thumb:
"https://images.plex.tv/photo?height=270&width=480&minSize=1&upscale=1&url=https%3A%2F%2Fimage%2Etmdb%2Eorg%2Ft%2Fp%2Foriginal%2FixgFmf1X59PUZam2qbAfskx2gQr%2Ejpg",
};
```
## Fields
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `key` | *string* | :heavy_check_mark: | The URL of the artwork. | https://image.tmdb.org/t/p/original/ixgFmf1X59PUZam2qbAfskx2gQr.jpg |
| `provider` | *string* | :heavy_minus_sign: | The provider of the artwork. | tmdb |
| `ratingKey` | *string* | :heavy_check_mark: | The URL of the artwork. | https://image.tmdb.org/t/p/original/ixgFmf1X59PUZam2qbAfskx2gQr.jpg |
| `selected` | *boolean* | :heavy_check_mark: | Whether this is the selected artwork. | true |
| `thumb` | *string* | :heavy_check_mark: | The URL of the artwork thumbnail. | https://images.plex.tv/photo?height=270&width=480&minSize=1&upscale=1&url=https%3A%2F%2Fimage%2Etmdb%2Eorg%2Ft%2Fp%2Foriginal%2FixgFmf1X59PUZam2qbAfskx2gQr%2Ejpg |

View File

@@ -0,0 +1,17 @@
# GetMediaArtsRequest
## Example Usage
```typescript
import { GetMediaArtsRequest } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetMediaArtsRequest = {
ratingKey: 16099,
};
```
## Fields
| Field | Type | Required | Description | Example |
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
| `ratingKey` | *number* | :heavy_check_mark: | the id of the library item to return the artwork of. | 16099 |

View File

@@ -0,0 +1,44 @@
# GetMediaArtsResponse
## Example Usage
```typescript
import { GetMediaArtsResponse } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetMediaArtsResponse = {
contentType: "<value>",
statusCode: 301,
rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" },
}),
object: {
mediaContainer: {
size: 50,
mediaTagVersion: 1734362201,
mediaTagPrefix: "/system/bundle/media/flags/",
identifier: "com.plexapp.plugins.library",
metadata: [
{
key:
"https://image.tmdb.org/t/p/original/ixgFmf1X59PUZam2qbAfskx2gQr.jpg",
provider: "tmdb",
ratingKey:
"https://image.tmdb.org/t/p/original/ixgFmf1X59PUZam2qbAfskx2gQr.jpg",
selected: true,
thumb:
"https://images.plex.tv/photo?height=270&width=480&minSize=1&upscale=1&url=https%3A%2F%2Fimage%2Etmdb%2Eorg%2Ft%2Fp%2Foriginal%2FixgFmf1X59PUZam2qbAfskx2gQr%2Ejpg",
},
],
},
},
};
```
## 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.GetMediaArtsResponseBody](../../../sdk/models/operations/getmediaartsresponsebody.md) | :heavy_minus_sign: | The available background artwork for the library item. |

View File

@@ -0,0 +1,36 @@
# GetMediaArtsResponseBody
The available background artwork for the library item.
## Example Usage
```typescript
import { GetMediaArtsResponseBody } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetMediaArtsResponseBody = {
mediaContainer: {
size: 50,
mediaTagVersion: 1734362201,
mediaTagPrefix: "/system/bundle/media/flags/",
identifier: "com.plexapp.plugins.library",
metadata: [
{
key:
"https://image.tmdb.org/t/p/original/ixgFmf1X59PUZam2qbAfskx2gQr.jpg",
provider: "tmdb",
ratingKey:
"https://image.tmdb.org/t/p/original/ixgFmf1X59PUZam2qbAfskx2gQr.jpg",
selected: true,
thumb:
"https://images.plex.tv/photo?height=270&width=480&minSize=1&upscale=1&url=https%3A%2F%2Fimage%2Etmdb%2Eorg%2Ft%2Fp%2Foriginal%2FixgFmf1X59PUZam2qbAfskx2gQr%2Ejpg",
},
],
},
};
```
## Fields
| Field | Type | Required | Description |
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| `mediaContainer` | [operations.GetMediaArtsMediaContainer](../../../sdk/models/operations/getmediaartsmediacontainer.md) | :heavy_minus_sign: | N/A |

View File

@@ -9,7 +9,7 @@ Has this media been optimized for streaming. NOTE: This can be 0, 1, false or tr
```typescript ```typescript
const value: operations.GetMediaMetaDataOptimizedForStreamingLibrary1 = const value: operations.GetMediaMetaDataOptimizedForStreamingLibrary1 =
GetMediaMetaDataOptimizedForStreamingLibrary1.One; GetMediaMetaDataOptimizedForStreamingLibrary1.Zero;
``` ```
### `boolean` ### `boolean`

View File

@@ -6,7 +6,7 @@
import { GetMediaMetaDataOptimizedForStreaming1 } from "@lukehagar/plexjs/sdk/models/operations"; import { GetMediaMetaDataOptimizedForStreaming1 } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetMediaMetaDataOptimizedForStreaming1 = let value: GetMediaMetaDataOptimizedForStreaming1 =
GetMediaMetaDataOptimizedForStreaming1.Zero; GetMediaMetaDataOptimizedForStreaming1.One;
``` ```
## Values ## Values

View File

@@ -6,7 +6,7 @@
import { GetMediaMetaDataOptimizedForStreamingLibrary1 } from "@lukehagar/plexjs/sdk/models/operations"; import { GetMediaMetaDataOptimizedForStreamingLibrary1 } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetMediaMetaDataOptimizedForStreamingLibrary1 = let value: GetMediaMetaDataOptimizedForStreamingLibrary1 =
GetMediaMetaDataOptimizedForStreamingLibrary1.One; GetMediaMetaDataOptimizedForStreamingLibrary1.Zero;
``` ```
## Values ## Values

View File

@@ -8,7 +8,7 @@ import { RFCDate } from "@lukehagar/plexjs/sdk/types";
let value: GetMediaMetaDataResponse = { let value: GetMediaMetaDataResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 306, statusCode: 100,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -0,0 +1,36 @@
# GetMediaPostersMediaContainer
## Example Usage
```typescript
import { GetMediaPostersMediaContainer } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetMediaPostersMediaContainer = {
size: 50,
mediaTagVersion: 1734362201,
mediaTagPrefix: "/system/bundle/media/flags/",
identifier: "com.plexapp.plugins.library",
metadata: [
{
key:
"https://image.tmdb.org/t/p/original/hntBJjqbv4m0Iyniqaztv9xaudI.jpg",
provider: "tmdb",
ratingKey:
"https://image.tmdb.org/t/p/original/hntBJjqbv4m0Iyniqaztv9xaudI.jpg",
selected: true,
thumb:
"https://images.plex.tv/photo?height=336&width=225&minSize=1&upscale=1&url=https%3A%2F%2Fimage%2Etmdb%2Eorg%2Ft%2Fp%2Foriginal%2FhntBJjqbv4m0Iyniqaztv9xaudI%2Ejpg",
},
],
};
```
## Fields
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| `size` | *number* | :heavy_check_mark: | Number of media items returned in this response. | 50 |
| `mediaTagVersion` | *number* | :heavy_check_mark: | The version number for media tags. | 1734362201 |
| `mediaTagPrefix` | *string* | :heavy_check_mark: | The prefix used for media tag resource paths. | /system/bundle/media/flags/ |
| `identifier` | *string* | :heavy_check_mark: | An plugin identifier for the media container. | com.plexapp.plugins.library |
| `metadata` | [operations.GetMediaPostersMetadata](../../../sdk/models/operations/getmediapostersmetadata.md)[] | :heavy_check_mark: | N/A | |

View File

@@ -0,0 +1,27 @@
# GetMediaPostersMetadata
## Example Usage
```typescript
import { GetMediaPostersMetadata } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetMediaPostersMetadata = {
key: "https://image.tmdb.org/t/p/original/hntBJjqbv4m0Iyniqaztv9xaudI.jpg",
provider: "tmdb",
ratingKey:
"https://image.tmdb.org/t/p/original/hntBJjqbv4m0Iyniqaztv9xaudI.jpg",
selected: true,
thumb:
"https://images.plex.tv/photo?height=336&width=225&minSize=1&upscale=1&url=https%3A%2F%2Fimage%2Etmdb%2Eorg%2Ft%2Fp%2Foriginal%2FhntBJjqbv4m0Iyniqaztv9xaudI%2Ejpg",
};
```
## Fields
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `key` | *string* | :heavy_check_mark: | The URL of the poster. | https://image.tmdb.org/t/p/original/hntBJjqbv4m0Iyniqaztv9xaudI.jpg |
| `provider` | *string* | :heavy_minus_sign: | The provider of the poster. | tmdb |
| `ratingKey` | *string* | :heavy_check_mark: | The URL of the poster. | https://image.tmdb.org/t/p/original/hntBJjqbv4m0Iyniqaztv9xaudI.jpg |
| `selected` | *boolean* | :heavy_check_mark: | Whether this is the selected poster. | true |
| `thumb` | *string* | :heavy_check_mark: | The URL of the poster thumbnail. | https://images.plex.tv/photo?height=336&width=225&minSize=1&upscale=1&url=https%3A%2F%2Fimage%2Etmdb%2Eorg%2Ft%2Fp%2Foriginal%2FhntBJjqbv4m0Iyniqaztv9xaudI%2Ejpg |

View File

@@ -0,0 +1,17 @@
# GetMediaPostersRequest
## Example Usage
```typescript
import { GetMediaPostersRequest } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetMediaPostersRequest = {
ratingKey: 16099,
};
```
## Fields
| Field | Type | Required | Description | Example |
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
| `ratingKey` | *number* | :heavy_check_mark: | the id of the library item to return the posters of. | 16099 |

View File

@@ -0,0 +1,44 @@
# GetMediaPostersResponse
## Example Usage
```typescript
import { GetMediaPostersResponse } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetMediaPostersResponse = {
contentType: "<value>",
statusCode: 307,
rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" },
}),
object: {
mediaContainer: {
size: 50,
mediaTagVersion: 1734362201,
mediaTagPrefix: "/system/bundle/media/flags/",
identifier: "com.plexapp.plugins.library",
metadata: [
{
key:
"https://image.tmdb.org/t/p/original/hntBJjqbv4m0Iyniqaztv9xaudI.jpg",
provider: "tmdb",
ratingKey:
"https://image.tmdb.org/t/p/original/hntBJjqbv4m0Iyniqaztv9xaudI.jpg",
selected: true,
thumb:
"https://images.plex.tv/photo?height=336&width=225&minSize=1&upscale=1&url=https%3A%2F%2Fimage%2Etmdb%2Eorg%2Ft%2Fp%2Foriginal%2FhntBJjqbv4m0Iyniqaztv9xaudI%2Ejpg",
},
],
},
},
};
```
## 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.GetMediaPostersResponseBody](../../../sdk/models/operations/getmediapostersresponsebody.md) | :heavy_minus_sign: | The available posters for the library item. |

View File

@@ -0,0 +1,36 @@
# GetMediaPostersResponseBody
The available posters for the library item.
## Example Usage
```typescript
import { GetMediaPostersResponseBody } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetMediaPostersResponseBody = {
mediaContainer: {
size: 50,
mediaTagVersion: 1734362201,
mediaTagPrefix: "/system/bundle/media/flags/",
identifier: "com.plexapp.plugins.library",
metadata: [
{
key:
"https://image.tmdb.org/t/p/original/hntBJjqbv4m0Iyniqaztv9xaudI.jpg",
provider: "tmdb",
ratingKey:
"https://image.tmdb.org/t/p/original/hntBJjqbv4m0Iyniqaztv9xaudI.jpg",
selected: true,
thumb:
"https://images.plex.tv/photo?height=336&width=225&minSize=1&upscale=1&url=https%3A%2F%2Fimage%2Etmdb%2Eorg%2Ft%2Fp%2Foriginal%2FhntBJjqbv4m0Iyniqaztv9xaudI%2Ejpg",
},
],
},
};
```
## Fields
| Field | Type | Required | Description |
| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| `mediaContainer` | [operations.GetMediaPostersMediaContainer](../../../sdk/models/operations/getmediapostersmediacontainer.md) | :heavy_minus_sign: | N/A |

View File

@@ -7,7 +7,7 @@ import { GetMediaProvidersResponse } from "@lukehagar/plexjs/sdk/models/operatio
let value: GetMediaProvidersResponse = { let value: GetMediaProvidersResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 511, statusCode: 102,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -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: 3119.45, ratingKey: 786.26,
}; };
``` ```

View File

@@ -7,7 +7,7 @@ import { GetMetadataChildrenResponse } from "@lukehagar/plexjs/sdk/models/operat
let value: GetMetadataChildrenResponse = { let value: GetMetadataChildrenResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 202, statusCode: 305,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetMyPlexAccountResponse } from "@lukehagar/plexjs/sdk/models/operation
let value: GetMyPlexAccountResponse = { let value: GetMyPlexAccountResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 415, statusCode: 504,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetPinResponse } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetPinResponse = { let value: GetPinResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 208, statusCode: 101,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -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: 5182.01, playlistID: 4951.47,
type: GetPlaylistContentsQueryParamType.TvShow, type: GetPlaylistContentsQueryParamType.TvShow,
}; };
``` ```

View File

@@ -8,7 +8,7 @@ import { RFCDate } from "@lukehagar/plexjs/sdk/types";
let value: GetPlaylistContentsResponse = { let value: GetPlaylistContentsResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 100, statusCode: 426,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -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: 7980.47, playlistID: 7763.65,
}; };
``` ```

View File

@@ -7,7 +7,7 @@ import { GetPlaylistResponse } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetPlaylistResponse = { let value: GetPlaylistResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 103, statusCode: 307,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetPlaylistsResponse } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetPlaylistsResponse = { let value: GetPlaylistsResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 503, statusCode: 306,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetRecentlyAddedLibraryResponse } from "@lukehagar/plexjs/sdk/models/op
let value: GetRecentlyAddedLibraryResponse = { let value: GetRecentlyAddedLibraryResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 204, statusCode: 208,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -9,7 +9,7 @@ Has this media been optimized for streaming. NOTE: This can be 0, 1, false or tr
```typescript ```typescript
const value: operations.GetRecentlyAddedOptimizedForStreaming1 = const value: operations.GetRecentlyAddedOptimizedForStreaming1 =
GetRecentlyAddedOptimizedForStreaming1.One; GetRecentlyAddedOptimizedForStreaming1.Zero;
``` ```
### `boolean` ### `boolean`

View File

@@ -6,7 +6,7 @@
import { GetRecentlyAddedRequest, Type } from "@lukehagar/plexjs/sdk/models/operations"; import { GetRecentlyAddedRequest, Type } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetRecentlyAddedRequest = { let value: GetRecentlyAddedRequest = {
contentDirectoryID: 501324, contentDirectoryID: 995290,
sectionID: 2, sectionID: 2,
type: Type.TvShow, type: Type.TvShow,
}; };

View File

@@ -12,7 +12,7 @@ import { RFCDate } from "@lukehagar/plexjs/sdk/types";
let value: GetRecentlyAddedResponse = { let value: GetRecentlyAddedResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 101, statusCode: 301,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetRefreshLibraryMetadataResponse } from "@lukehagar/plexjs/sdk/models/
let value: GetRefreshLibraryMetadataResponse = { let value: GetRefreshLibraryMetadataResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 428, statusCode: 204,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -9,9 +9,9 @@ let value: GetResizedPhotoRequest = {
width: 110, width: 110,
height: 165, height: 165,
opacity: 100, opacity: 100,
blur: 0, blur: 20,
minSize: MinSize.Zero, minSize: MinSize.Zero,
upscale: Upscale.Zero, upscale: Upscale.One,
url: "/library/metadata/49564/thumb/1654258204", url: "/library/metadata/49564/thumb/1654258204",
}; };
``` ```

View File

@@ -7,7 +7,7 @@ import { GetResourcesStatisticsResponse } from "@lukehagar/plexjs/sdk/models/ope
let value: GetResourcesStatisticsResponse = { let value: GetResourcesStatisticsResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 424, statusCode: 226,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -15,10 +15,10 @@ import {
import { RFCDate } from "@lukehagar/plexjs/sdk/types"; import { RFCDate } from "@lukehagar/plexjs/sdk/types";
let value: GetSearchAllLibrariesMediaContainer = { let value: GetSearchAllLibrariesMediaContainer = {
size: 2239.24, size: 1598.12,
searchResult: [ searchResult: [
{ {
score: 3453.52, score: 1566.25,
metadata: { metadata: {
ratingKey: "58683", ratingKey: "58683",
key: "/library/metadata/58683", key: "/library/metadata/58683",

View File

@@ -9,7 +9,7 @@ let value: GetSearchAllLibrariesRequest = {
query: "<value>", query: "<value>",
clientID: "3381b62b-9ab7-4e37-827b-203e9809eb58", clientID: "3381b62b-9ab7-4e37-827b-203e9809eb58",
searchTypes: [ searchTypes: [
SearchTypes.Movies, SearchTypes.People,
], ],
}; };
``` ```

View File

@@ -16,16 +16,16 @@ import { RFCDate } from "@lukehagar/plexjs/sdk/types";
let value: GetSearchAllLibrariesResponse = { let value: GetSearchAllLibrariesResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 100, statusCode: 101,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),
object: { object: {
mediaContainer: { mediaContainer: {
size: 6214.79, size: 9603.99,
searchResult: [ searchResult: [
{ {
score: 5772.29, score: 6503,
metadata: { metadata: {
ratingKey: "58683", ratingKey: "58683",
key: "/library/metadata/58683", key: "/library/metadata/58683",

View File

@@ -18,10 +18,10 @@ import { RFCDate } from "@lukehagar/plexjs/sdk/types";
let value: GetSearchAllLibrariesResponseBody = { let value: GetSearchAllLibrariesResponseBody = {
mediaContainer: { mediaContainer: {
size: 9280.82, size: 8897.34,
searchResult: [ searchResult: [
{ {
score: 7044.15, score: 1602.08,
metadata: { metadata: {
ratingKey: "58683", ratingKey: "58683",
key: "/library/metadata/58683", key: "/library/metadata/58683",

View File

@@ -7,7 +7,7 @@ import { GetSearchLibraryResponse } from "@lukehagar/plexjs/sdk/models/operation
let value: GetSearchLibraryResponse = { let value: GetSearchLibraryResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 510, statusCode: 401,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetSearchResultsResponse } from "@lukehagar/plexjs/sdk/models/operation
let value: GetSearchResultsResponse = { let value: GetSearchResultsResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 418, statusCode: 301,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetServerActivitiesResponse } from "@lukehagar/plexjs/sdk/models/operat
let value: GetServerActivitiesResponse = { let value: GetServerActivitiesResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 300, statusCode: 428,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetServerCapabilitiesResponse } from "@lukehagar/plexjs/sdk/models/oper
let value: GetServerCapabilitiesResponse = { let value: GetServerCapabilitiesResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 306, statusCode: 503,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetServerIdentityResponse } from "@lukehagar/plexjs/sdk/models/operatio
let value: GetServerIdentityResponse = { let value: GetServerIdentityResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 504, statusCode: 426,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetServerListResponse } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetServerListResponse = { let value: GetServerListResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 413, statusCode: 451,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetServerPreferencesResponse } from "@lukehagar/plexjs/sdk/models/opera
let value: GetServerPreferencesResponse = { let value: GetServerPreferencesResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 415, statusCode: 304,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,14 +7,14 @@ import { GetServerResourcesResponse, Protocol } from "@lukehagar/plexjs/sdk/mode
let value: GetServerResourcesResponse = { let value: GetServerResourcesResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 102, statusCode: 303,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),
plexDevices: [ plexDevices: [
{ {
name: "<value>", name: "<value>",
product: "Generic Cotton Pants", product: "Gorgeous Steel Chair",
productVersion: "<value>", productVersion: "<value>",
platform: "<value>", platform: "<value>",
platformVersion: "<value>", platformVersion: "<value>",
@@ -23,7 +23,7 @@ let value: GetServerResourcesResponse = {
createdAt: new Date("2019-06-24T11:38:02Z"), createdAt: new Date("2019-06-24T11:38:02Z"),
lastSeenAt: new Date("2019-06-24T11:38:02Z"), lastSeenAt: new Date("2019-06-24T11:38:02Z"),
provides: "<value>", provides: "<value>",
ownerId: 828940, ownerId: 399166,
sourceTitle: "<value>", sourceTitle: "<value>",
publicAddress: "<value>", publicAddress: "<value>",
accessToken: "<value>", accessToken: "<value>",
@@ -39,9 +39,9 @@ let value: GetServerResourcesResponse = {
connections: [ connections: [
{ {
protocol: Protocol.Http, protocol: Protocol.Http,
address: "72792 Medhurst Mountains", address: "29059 Ward Lake",
port: 14619, port: 52102,
uri: "https://kaleidoscopic-status.net", uri: "https://old-validity.info",
local: false, local: false,
relay: false, relay: false,
iPv6: false, iPv6: false,

View File

@@ -8,7 +8,7 @@ import { RFCDate } from "@lukehagar/plexjs/sdk/types";
let value: GetSessionHistoryResponse = { let value: GetSessionHistoryResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 510, statusCode: 425,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetSessionsResponse } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetSessionsResponse = { let value: GetSessionsResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 101, statusCode: 207,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -6,7 +6,7 @@
import { GetSourceConnectionInformationRequest } from "@lukehagar/plexjs/sdk/models/operations"; import { GetSourceConnectionInformationRequest } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetSourceConnectionInformationRequest = { let value: GetSourceConnectionInformationRequest = {
source: "server://client-identifier", source: "provider://provider-identifier",
}; };
``` ```

View File

@@ -7,7 +7,7 @@ import { GetSourceConnectionInformationResponse } from "@lukehagar/plexjs/sdk/mo
let value: GetSourceConnectionInformationResponse = { let value: GetSourceConnectionInformationResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 101, statusCode: 103,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetStatisticsResponse } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetStatisticsResponse = { let value: GetStatisticsResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 103, statusCode: 101,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -7,7 +7,7 @@ import { GetTimelineResponse } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetTimelineResponse = { let value: GetTimelineResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 302, statusCode: 502,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -6,7 +6,7 @@
import { GetTokenByPinIdRequest } from "@lukehagar/plexjs/sdk/models/operations"; import { GetTokenByPinIdRequest } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetTokenByPinIdRequest = { let value: GetTokenByPinIdRequest = {
pinID: 396506, pinID: 721343,
clientID: "3381b62b-9ab7-4e37-827b-203e9809eb58", clientID: "3381b62b-9ab7-4e37-827b-203e9809eb58",
clientName: "Plex for Roku", clientName: "Plex for Roku",
deviceNickname: "Roku 3", deviceNickname: "Roku 3",

View File

@@ -7,7 +7,7 @@ import { GetTokenByPinIdResponse } from "@lukehagar/plexjs/sdk/models/operations
let value: GetTokenByPinIdResponse = { let value: GetTokenByPinIdResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 506, statusCode: 100,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

View File

@@ -13,7 +13,7 @@ import {
let value: GetTokenDetailsResponse = { let value: GetTokenDetailsResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 508, statusCode: 200,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),
@@ -31,7 +31,7 @@ let value: GetTokenDetailsResponse = {
homeSize: 1, homeSize: 1,
id: 13692262, id: 13692262,
joinedAt: 1556281940, joinedAt: 1556281940,
locale: "pl", locale: "nl",
mailingListStatus: MailingListStatus.Active, mailingListStatus: MailingListStatus.Active,
maxHomeSize: 15, maxHomeSize: 15,
profile: { profile: {

View File

@@ -27,7 +27,7 @@ let value: GetTokenDetailsUserPlexAccount = {
homeSize: 1, homeSize: 1,
id: 13692262, id: 13692262,
joinedAt: 1556281940, joinedAt: 1556281940,
locale: "ja", locale: "zh",
mailingListStatus: MailingListStatus.Active, mailingListStatus: MailingListStatus.Active,
maxHomeSize: 15, maxHomeSize: 15,
profile: { profile: {

View File

@@ -8,7 +8,7 @@ import { RFCDate } from "@lukehagar/plexjs/sdk/types";
let value: GetTopWatchedContentResponse = { let value: GetTopWatchedContentResponse = {
contentType: "<value>", contentType: "<value>",
statusCode: 103, statusCode: 413,
rawResponse: new Response("{\"message\": \"hello world\"}", { rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}), }),

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