mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-09 04:20:52 +00:00
ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.207.1
This commit is contained in:
@@ -3,10 +3,10 @@ id: 16f22cbf-f23f-4419-8924-3a4b06381947
|
||||
management:
|
||||
docChecksum: e34dac84738ebf2d447ea2b9055a6eeb
|
||||
docVersion: 0.0.3
|
||||
speakeasyVersion: 1.204.1
|
||||
generationVersion: 2.279.1
|
||||
releaseVersion: 0.10.0
|
||||
configChecksum: c2caa0bd788a98a059e51f793eff1525
|
||||
speakeasyVersion: 1.207.1
|
||||
generationVersion: 2.280.6
|
||||
releaseVersion: 0.10.1
|
||||
configChecksum: 726b0f7d4f020a007a232a1cfe026ef0
|
||||
repoURL: https://github.com/LukeHagar/plexjs.git
|
||||
repoSubDirectory: .
|
||||
installationURL: https://github.com/LukeHagar/plexjs
|
||||
@@ -17,10 +17,10 @@ features:
|
||||
core: 3.6.1
|
||||
flattening: 2.81.1
|
||||
globalSecurity: 2.82.4
|
||||
globalServerURLs: 2.82.3
|
||||
globalServerURLs: 2.82.4
|
||||
methodServerURLs: 2.82.1
|
||||
nameOverrides: 2.81.1
|
||||
responseFormat: 0.2.0
|
||||
responseFormat: 0.2.1
|
||||
generatedFiles:
|
||||
- src/sdk/server.ts
|
||||
- src/sdk/media.ts
|
||||
@@ -46,7 +46,6 @@ generatedFiles:
|
||||
- src/lib/base64.ts
|
||||
- src/lib/config.ts
|
||||
- src/lib/encodings.ts
|
||||
- src/lib/event-streams.ts
|
||||
- src/lib/http.ts
|
||||
- src/lib/retries.ts
|
||||
- src/lib/schemas.ts
|
||||
@@ -57,7 +56,6 @@ generatedFiles:
|
||||
- src/models/errors/sdkerror.ts
|
||||
- src/models/errors/sdkvalidationerror.ts
|
||||
- src/types/blobs.ts
|
||||
- src/types/decimal.ts
|
||||
- src/types/index.ts
|
||||
- src/types/operations.ts
|
||||
- src/types/rfcdate.ts
|
||||
|
||||
10
RELEASES.md
10
RELEASES.md
@@ -229,3 +229,13 @@ Based on:
|
||||
- [typescript v0.10.0] .
|
||||
### Releases
|
||||
- [NPM v0.10.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.10.0 - .
|
||||
|
||||
## 2024-03-13 00:25:35
|
||||
### Changes
|
||||
Based on:
|
||||
- OpenAPI Doc 0.0.3
|
||||
- Speakeasy CLI 1.207.1 (2.280.6) https://github.com/speakeasy-api/speakeasy
|
||||
### Generated
|
||||
- [typescript v0.10.1] .
|
||||
### Releases
|
||||
- [NPM v0.10.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.10.1 - .
|
||||
2
gen.yaml
2
gen.yaml
@@ -12,7 +12,7 @@ generation:
|
||||
auth:
|
||||
oAuth2ClientCredentialsEnabled: false
|
||||
typescript:
|
||||
version: 0.10.0
|
||||
version: 0.10.1
|
||||
additionalDependencies:
|
||||
dependencies: {}
|
||||
devDependencies: {}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@lukehagar/plexjs",
|
||||
"version": "0.10.0",
|
||||
"version": "0.10.1",
|
||||
"author": "LukeHagar",
|
||||
"main": "./index.js",
|
||||
"sideEffects": false,
|
||||
@@ -29,7 +29,6 @@
|
||||
"zod": "^3.22.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"decimal.js": "^10.4.3",
|
||||
"jsonpath": "^1.1.1"
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,9 +65,12 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
||||
},
|
||||
];
|
||||
let params: Record<string, string> = {};
|
||||
const serverIdx = options.serverIdx ?? 0;
|
||||
|
||||
if (!serverURL) {
|
||||
const serverIdx = options.serverIdx ?? 0;
|
||||
if (serverIdx < 0 || serverIdx >= ServerList.length) {
|
||||
throw new Error(`Invalid server index ${serverIdx}`);
|
||||
}
|
||||
serverURL = ServerList[serverIdx] || "";
|
||||
params = serverParams[serverIdx] || {};
|
||||
}
|
||||
@@ -79,7 +82,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
||||
export const SDK_METADATA = Object.freeze({
|
||||
language: "typescript",
|
||||
openapiDocVersion: "0.0.3",
|
||||
sdkVersion: "0.10.0",
|
||||
genVersion: "2.279.1",
|
||||
userAgent: "speakeasy-sdk/typescript 0.10.0 2.279.1 0.0.3 @lukehagar/plexjs",
|
||||
sdkVersion: "0.10.1",
|
||||
genVersion: "2.280.6",
|
||||
userAgent: "speakeasy-sdk/typescript 0.10.1 2.280.6 0.0.3 @lukehagar/plexjs",
|
||||
});
|
||||
|
||||
@@ -1,192 +0,0 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
export type ServerEvent<T> = {
|
||||
data?: T | undefined;
|
||||
event?: string | undefined;
|
||||
retry?: number | undefined;
|
||||
id?: string | undefined;
|
||||
};
|
||||
const LF = 0x0a;
|
||||
const CR = 0x0d;
|
||||
const NEWLINE_CHARS = new Set([LF, CR]);
|
||||
const MESSAGE_BOUNDARIES = [
|
||||
new Uint8Array([CR, LF, CR, LF]),
|
||||
new Uint8Array([CR, CR]),
|
||||
new Uint8Array([LF, LF]),
|
||||
];
|
||||
|
||||
export class EventStream<Event extends ServerEvent<unknown>> {
|
||||
private readonly stream: ReadableStream<Uint8Array>;
|
||||
private readonly decoder: (rawEvent: ServerEvent<string>) => Event;
|
||||
|
||||
constructor(init: {
|
||||
stream: ReadableStream<Uint8Array>;
|
||||
decoder: (rawEvent: ServerEvent<string>) => Event;
|
||||
}) {
|
||||
this.stream = init.stream;
|
||||
this.decoder = init.decoder;
|
||||
}
|
||||
|
||||
async *[Symbol.asyncIterator]() {
|
||||
const reader = this.stream.getReader();
|
||||
let buffer = new Uint8Array([]);
|
||||
let position = 0;
|
||||
|
||||
try {
|
||||
while (true) {
|
||||
const { done, value } = await reader.read();
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
|
||||
const newBuffer = new Uint8Array(buffer.length + value.length);
|
||||
newBuffer.set(buffer);
|
||||
newBuffer.set(value, buffer.length);
|
||||
buffer = newBuffer;
|
||||
|
||||
for (let i = position; i < buffer.length; i++) {
|
||||
const boundary = findBoundary(buffer, i);
|
||||
if (boundary == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const chunk = buffer.slice(position, i);
|
||||
position = i + boundary.length;
|
||||
const event = parseEvent(chunk, this.decoder);
|
||||
if (event != null) {
|
||||
yield event;
|
||||
}
|
||||
}
|
||||
|
||||
if (position > 0) {
|
||||
buffer = buffer.slice(position);
|
||||
position = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (buffer.length > 0) {
|
||||
const event = parseEvent(buffer, this.decoder);
|
||||
if (event != null) {
|
||||
yield event;
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
reader.releaseLock();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function findBoundary(buffer: Uint8Array, start: number): Uint8Array | null {
|
||||
const char1 = buffer[start];
|
||||
const char2 = buffer[start + 1];
|
||||
|
||||
// Don't bother checking if the first two characters are not new line
|
||||
// characters.
|
||||
if (
|
||||
char1 == null ||
|
||||
char2 == null ||
|
||||
!NEWLINE_CHARS.has(char1) ||
|
||||
!NEWLINE_CHARS.has(char2)
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
|
||||
for (const s of MESSAGE_BOUNDARIES) {
|
||||
const seq = peekSequence(start, buffer, s);
|
||||
if (seq != null) {
|
||||
return seq;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
function peekSequence(
|
||||
position: number,
|
||||
buffer: Uint8Array,
|
||||
sequence: Uint8Array,
|
||||
): Uint8Array | null {
|
||||
if (sequence.length > buffer.length - position) {
|
||||
return null;
|
||||
}
|
||||
|
||||
for (let i = 0; i < sequence.length; i++) {
|
||||
if (buffer[position + i] !== sequence[i]) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
return sequence;
|
||||
}
|
||||
|
||||
function parseEvent<Event extends ServerEvent<unknown>>(
|
||||
chunk: Uint8Array,
|
||||
decoder: (rawEvent: ServerEvent<string>) => Event,
|
||||
) {
|
||||
if (!chunk.length) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const td = new TextDecoder();
|
||||
const raw = td.decode(chunk);
|
||||
const lines = raw.split(/\r?\n|\r/g);
|
||||
let publish = false;
|
||||
const rawEvent: ServerEvent<string> = {};
|
||||
|
||||
for (const line of lines) {
|
||||
if (!line) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const delim = line.indexOf(":");
|
||||
// Lines starting with a colon are ignored.
|
||||
if (delim === 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const field = delim > 0 ? line.substring(0, delim) : "";
|
||||
let value = delim > 0 ? line.substring(delim + 1) : "";
|
||||
if (value.charAt(0) === " ") {
|
||||
value = value.substring(1);
|
||||
}
|
||||
|
||||
switch (field) {
|
||||
case "event": {
|
||||
publish = true;
|
||||
rawEvent.event = value;
|
||||
break;
|
||||
}
|
||||
case "data": {
|
||||
publish = true;
|
||||
rawEvent.data ??= "";
|
||||
rawEvent.data += value + "\n";
|
||||
break;
|
||||
}
|
||||
case "id": {
|
||||
publish = true;
|
||||
rawEvent.id = value;
|
||||
break;
|
||||
}
|
||||
case "retry": {
|
||||
const r = parseInt(value, 10);
|
||||
if (!Number.isNaN(r)) {
|
||||
publish = true;
|
||||
rawEvent.retry = r;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!publish) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (rawEvent.data != null) {
|
||||
rawEvent.data = rawEvent.data.slice(0, -1);
|
||||
}
|
||||
|
||||
return decoder(rawEvent);
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type Security = {
|
||||
accessToken: string;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type AddPlaylistContentsErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type ApplyUpdatesErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type CancelServerActivitiesErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type CheckForUpdatesErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type ClearPlaylistContentsErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type CreatePlaylistErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type DeleteLibraryErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type DeletePlaylistErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type EnablePaperTrailErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetAvailableClientsErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetButlerTasksErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetDevicesErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetFileHashErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetGlobalHubsErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetLibrariesErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetLibraryErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetLibraryHubsErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetMetadataErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetMetadataChildrenErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetMyPlexAccountErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetOnDeckErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetPinErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetPlaylistErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetPlaylistContentsErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetPlaylistsErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetRecentlyAddedErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetResizedPhotoErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetSearchResultsErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetServerActivitiesErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type Errors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetServerIdentityErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetServerListErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetServerPreferencesErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetSessionHistoryErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetSessionsErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetSourceConnectionInformationErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetStatisticsErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetTimelineErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetTokenErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetTranscodeSessionsErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetTransientTokenErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetUpdateStatusErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type LogLineErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type LogMultiLineErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type MarkPlayedErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type MarkUnplayedErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type PerformSearchErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type PerformVoiceSearchErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type RefreshLibraryErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type StartAllTasksErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type StartTaskErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type StartUniversalTranscodeErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type StopAllTasksErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type StopTaskErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type StopTranscodeSessionErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type UpdatePlaylistErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type UpdatePlayProgressErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type UploadPlaylistErrors = {
|
||||
code?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type AddPlaylistContentsRequest = {
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
* Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type CancelServerActivitiesRequest = {
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
* Indicate that you want to start download any updates found.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type ClearPlaylistContentsRequest = {
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
* type of playlist to create
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type DeleteLibraryRequest = {
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type DeletePlaylistRequest = {
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type EnablePaperTrailResponse = {
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type Server = {
|
||||
name?: string | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type ButlerTask = {
|
||||
name?: string | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type Device = {
|
||||
id?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetFileHashRequest = {
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
* Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added).
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetLibrariesLocation = {
|
||||
id?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
* Whether or not to include details for a section (types, filters, and sorts).
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import { RFCDate } from "../../types";
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
* Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added).
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import { RFCDate } from "../../types";
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
* A key representing a specific tag within the section.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import { RFCDate } from "../../types";
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetMetadataRequest = {
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetMetadataChildrenRequest = {
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type MyPlex = {
|
||||
authToken?: string | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetOnDeckStream = {
|
||||
id?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export const GetPinServerList = ["https://plex.tv/api/v2"] as const;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetPlaylistRequest = {
|
||||
/**
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import { RFCDate } from "../../types";
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetPlaylistContentsRequest = {
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
* limit to a type of playlist.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type Part = {
|
||||
id?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
* images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetSearchResultsRequest = {
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type Context = {
|
||||
librarySectionID?: string | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type Directory = {
|
||||
count?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetServerIdentityMediaContainer = {
|
||||
size?: number | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetServerListServer = {
|
||||
name?: string | undefined;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type Setting = {
|
||||
id?: string | undefined;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
import { RFCDate } from "../../types";
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
export type GetSessionHistoryMetadata = {
|
||||
historyKey?: string | undefined;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user