mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.305.0
This commit is contained in:
@@ -3,10 +3,10 @@ id: 16f22cbf-f23f-4419-8924-3a4b06381947
|
||||
management:
|
||||
docChecksum: 911d74baa0d06121d2ce2c71d94e977a
|
||||
docVersion: 0.0.3
|
||||
speakeasyVersion: 1.300.0
|
||||
generationVersion: 2.338.14
|
||||
releaseVersion: 0.16.4
|
||||
configChecksum: 1dd152d0b7683cd3ad5f8f7a08553e72
|
||||
speakeasyVersion: 1.305.0
|
||||
generationVersion: 2.340.3
|
||||
releaseVersion: 0.16.5
|
||||
configChecksum: 98aaab8d194d47882bda96340ed700a5
|
||||
repoURL: https://github.com/LukeHagar/plexjs.git
|
||||
repoSubDirectory: .
|
||||
installationURL: https://github.com/LukeHagar/plexjs
|
||||
@@ -15,7 +15,7 @@ features:
|
||||
typescript:
|
||||
additionalDependencies: 0.1.0
|
||||
constsAndDefaults: 0.1.5
|
||||
core: 3.9.12
|
||||
core: 3.9.13
|
||||
flattening: 2.81.1
|
||||
globalSecurity: 2.82.9
|
||||
globalSecurityCallbacks: 0.1.0
|
||||
|
||||
@@ -12,7 +12,7 @@ generation:
|
||||
auth:
|
||||
oAuth2ClientCredentialsEnabled: false
|
||||
typescript:
|
||||
version: 0.16.4
|
||||
version: 0.16.5
|
||||
additionalDependencies:
|
||||
dependencies: {}
|
||||
devDependencies: {}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
speakeasyVersion: 1.300.1
|
||||
speakeasyVersion: 1.305.0
|
||||
sources:
|
||||
my-source:
|
||||
sourceNamespace: my-source
|
||||
sourceRevisionDigest: sha256:9d0d908d84211b196f5f826d187e2198c4a0f5c3d455fdf5225db45460f97692
|
||||
sourceBlobDigest: sha256:ff6236e7b2254357a72dd0d200f3076fbf74a884c1a9c1aea6f23d90ee6457c1
|
||||
sourceRevisionDigest: sha256:3dc012bebc4b164472d5f589b49a3ad940d642475ed297c3047710cecb74b1a2
|
||||
sourceBlobDigest: sha256:c21d12547dbe3b1724d05c6cff7586b7f27ebf086d4448fba64b270138fa2499
|
||||
tags:
|
||||
- latest
|
||||
- main
|
||||
@@ -11,8 +11,8 @@ targets:
|
||||
plexjs:
|
||||
source: my-source
|
||||
sourceNamespace: my-source
|
||||
sourceRevisionDigest: sha256:9d0d908d84211b196f5f826d187e2198c4a0f5c3d455fdf5225db45460f97692
|
||||
sourceBlobDigest: sha256:ff6236e7b2254357a72dd0d200f3076fbf74a884c1a9c1aea6f23d90ee6457c1
|
||||
sourceRevisionDigest: sha256:3dc012bebc4b164472d5f589b49a3ad940d642475ed297c3047710cecb74b1a2
|
||||
sourceBlobDigest: sha256:c21d12547dbe3b1724d05c6cff7586b7f27ebf086d4448fba64b270138fa2499
|
||||
outLocation: /github/workspace/repo
|
||||
workflow:
|
||||
workflowVersion: 1.0.0
|
||||
|
||||
10
RELEASES.md
10
RELEASES.md
@@ -759,3 +759,13 @@ Based on:
|
||||
- [typescript v0.16.4] .
|
||||
### Releases
|
||||
- [NPM v0.16.4] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.16.4 - .
|
||||
|
||||
## 2024-06-12 00:28:55
|
||||
### Changes
|
||||
Based on:
|
||||
- OpenAPI Doc
|
||||
- Speakeasy CLI 1.305.0 (2.340.3) https://github.com/speakeasy-api/speakeasy
|
||||
### Generated
|
||||
- [typescript v0.16.5] .
|
||||
### Releases
|
||||
- [NPM v0.16.5] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.16.5 - .
|
||||
1566
codeSamples.yaml
1566
codeSamples.yaml
File diff suppressed because it is too large
Load Diff
2
jsr.json
2
jsr.json
@@ -2,7 +2,7 @@
|
||||
|
||||
{
|
||||
"name": "@lukehagar/plexjs",
|
||||
"version": "0.16.4",
|
||||
"version": "0.16.5",
|
||||
"exports": {
|
||||
".": "./src/index.ts",
|
||||
"./models/errors": "./src/models/errors/index.ts",
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@lukehagar/plexjs",
|
||||
"version": "0.16.4",
|
||||
"version": "0.16.5",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lukehagar/plexjs",
|
||||
"version": "0.16.4",
|
||||
"version": "0.16.5",
|
||||
"devDependencies": {
|
||||
"@types/jsonpath": "^0.2.4",
|
||||
"@typescript-eslint/eslint-plugin": "^7.7.1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@lukehagar/plexjs",
|
||||
"version": "0.16.4",
|
||||
"version": "0.16.5",
|
||||
"author": "LukeHagar",
|
||||
"main": "./index.js",
|
||||
"sideEffects": false,
|
||||
|
||||
@@ -87,7 +87,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
||||
export const SDK_METADATA = {
|
||||
language: "typescript",
|
||||
openapiDocVersion: "0.0.3",
|
||||
sdkVersion: "0.16.4",
|
||||
genVersion: "2.338.14",
|
||||
userAgent: "speakeasy-sdk/typescript 0.16.4 2.338.14 0.0.3 @lukehagar/plexjs",
|
||||
sdkVersion: "0.16.5",
|
||||
genVersion: "2.340.3",
|
||||
userAgent: "speakeasy-sdk/typescript 0.16.5 2.340.3 0.0.3 @lukehagar/plexjs",
|
||||
} as const;
|
||||
|
||||
@@ -383,3 +383,49 @@ function mapDefinedEntries<K, V, R>(
|
||||
|
||||
return acc;
|
||||
}
|
||||
|
||||
export function queryJoin(...args: string[]): string {
|
||||
return args.filter(Boolean).join("&");
|
||||
}
|
||||
|
||||
type QueryEncoderOptions = {
|
||||
explode?: boolean;
|
||||
charEncoding?: "percent" | "none";
|
||||
};
|
||||
|
||||
type QueryEncoder = (
|
||||
key: string,
|
||||
value: unknown,
|
||||
options?: QueryEncoderOptions,
|
||||
) => string;
|
||||
|
||||
type BulkQueryEncoder = (
|
||||
values: Record<string, unknown>,
|
||||
options?: QueryEncoderOptions,
|
||||
) => string;
|
||||
|
||||
export function queryEncoder(f: QueryEncoder): BulkQueryEncoder {
|
||||
const bulkEncode = function (
|
||||
values: Record<string, unknown>,
|
||||
options?: QueryEncoderOptions,
|
||||
): string {
|
||||
const opts: QueryEncoderOptions = {
|
||||
...options,
|
||||
explode: options?.explode ?? true,
|
||||
charEncoding: options?.charEncoding ?? "percent",
|
||||
};
|
||||
|
||||
const encoded = Object.entries(values).map(([key, value]) => {
|
||||
return f(key, value, opts);
|
||||
});
|
||||
return queryJoin(...encoded);
|
||||
};
|
||||
|
||||
return bulkEncode;
|
||||
}
|
||||
|
||||
export const encodeJSONQuery = queryEncoder(encodeJSON);
|
||||
export const encodeFormQuery = queryEncoder(encodeForm);
|
||||
export const encodeSpaceDelimitedQuery = queryEncoder(encodeSpaceDelimited);
|
||||
export const encodePipeDelimitedQuery = queryEncoder(encodePipeDelimited);
|
||||
export const encodeDeepObjectQuery = queryEncoder(encodeDeepObject);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import { SDKHooks } from "../hooks";
|
||||
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
|
||||
import * as enc$ from "../lib/encodings";
|
||||
import { encodeSimple as encodeSimple$ } from "../lib/encodings";
|
||||
import { HTTPClient } from "../lib/http";
|
||||
import * as schemas$ from "../lib/schemas";
|
||||
import { ClientSDK, RequestOptions } from "../lib/sdks";
|
||||
@@ -126,7 +126,7 @@ export class Activities extends ClientSDK {
|
||||
const body$ = null;
|
||||
|
||||
const pathParams$ = {
|
||||
activityUUID: enc$.encodeSimple("activityUUID", payload$.activityUUID, {
|
||||
activityUUID: encodeSimple$("activityUUID", payload$.activityUUID, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import { SDKHooks } from "../hooks";
|
||||
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
|
||||
import * as enc$ from "../lib/encodings";
|
||||
import { encodeFormQuery as encodeFormQuery$ } from "../lib/encodings";
|
||||
import { HTTPClient } from "../lib/http";
|
||||
import * as schemas$ from "../lib/schemas";
|
||||
import { ClientSDK, RequestOptions } from "../lib/sdks";
|
||||
@@ -67,12 +67,10 @@ export class Authentication extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/security/token")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("scope", payload$.scope, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("type", payload$.type, { explode: true, charEncoding: "percent" }),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
type: payload$.type,
|
||||
scope: payload$.scope,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
@@ -150,11 +148,9 @@ export class Authentication extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/security/resources")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("source", payload$.source, { explode: true, charEncoding: "percent" }),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
source: payload$.source,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import { SDKHooks } from "../hooks";
|
||||
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
|
||||
import * as enc$ from "../lib/encodings";
|
||||
import { encodeSimple as encodeSimple$ } from "../lib/encodings";
|
||||
import { HTTPClient } from "../lib/http";
|
||||
import * as schemas$ from "../lib/schemas";
|
||||
import { ClientSDK, RequestOptions } from "../lib/sdks";
|
||||
@@ -257,7 +257,7 @@ export class Butler extends ClientSDK {
|
||||
const body$ = null;
|
||||
|
||||
const pathParams$ = {
|
||||
taskName: enc$.encodeSimple("taskName", payload$.taskName, {
|
||||
taskName: encodeSimple$("taskName", payload$.taskName, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
@@ -339,7 +339,7 @@ export class Butler extends ClientSDK {
|
||||
const body$ = null;
|
||||
|
||||
const pathParams$ = {
|
||||
taskName: enc$.encodeSimple("taskName", payload$.taskName, {
|
||||
taskName: encodeSimple$("taskName", payload$.taskName, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
|
||||
@@ -4,7 +4,10 @@
|
||||
|
||||
import { SDKHooks } from "../hooks";
|
||||
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
|
||||
import * as enc$ from "../lib/encodings";
|
||||
import {
|
||||
encodeFormQuery as encodeFormQuery$,
|
||||
encodeSimple as encodeSimple$,
|
||||
} from "../lib/encodings";
|
||||
import { HTTPClient } from "../lib/http";
|
||||
import * as schemas$ from "../lib/schemas";
|
||||
import { ClientSDK, RequestOptions } from "../lib/sdks";
|
||||
@@ -66,15 +69,10 @@ export class Hubs extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/hubs")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("count", payload$.count, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("onlyTransient", payload$.onlyTransient, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
count: payload$.count,
|
||||
onlyTransient: payload$.onlyTransient,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
@@ -153,22 +151,17 @@ export class Hubs extends ClientSDK {
|
||||
const body$ = null;
|
||||
|
||||
const pathParams$ = {
|
||||
sectionId: enc$.encodeSimple("sectionId", payload$.sectionId, {
|
||||
sectionId: encodeSimple$("sectionId", payload$.sectionId, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
};
|
||||
const path$ = this.templateURLComponent("/hubs/sections/{sectionId}")(pathParams$);
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("count", payload$.count, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("onlyTransient", payload$.onlyTransient, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
count: payload$.count,
|
||||
onlyTransient: payload$.onlyTransient,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
|
||||
@@ -4,7 +4,10 @@
|
||||
|
||||
import { SDKHooks } from "../hooks";
|
||||
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
|
||||
import * as enc$ from "../lib/encodings";
|
||||
import {
|
||||
encodeFormQuery as encodeFormQuery$,
|
||||
encodeSimple as encodeSimple$,
|
||||
} from "../lib/encodings";
|
||||
import { HTTPClient } from "../lib/http";
|
||||
import * as schemas$ from "../lib/schemas";
|
||||
import { ClientSDK, RequestOptions } from "../lib/sdks";
|
||||
@@ -66,12 +69,10 @@ export class Library extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/library/hashes")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("type", payload$.type, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("url", payload$.url, { explode: true, charEncoding: "percent" }),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
url: payload$.url,
|
||||
type: payload$.type,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
@@ -315,21 +316,16 @@ export class Library extends ClientSDK {
|
||||
const body$ = null;
|
||||
|
||||
const pathParams$ = {
|
||||
sectionId: enc$.encodeSimple("sectionId", payload$.sectionId, {
|
||||
sectionId: encodeSimple$("sectionId", payload$.sectionId, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
};
|
||||
const path$ = this.templateURLComponent("/library/sections/{sectionId}")(pathParams$);
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("includeDetails", payload$.includeDetails, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
includeDetails: payload$.includeDetails,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
@@ -403,7 +399,7 @@ export class Library extends ClientSDK {
|
||||
const body$ = null;
|
||||
|
||||
const pathParams$ = {
|
||||
sectionId: enc$.encodeSimple("sectionId", payload$.sectionId, {
|
||||
sectionId: encodeSimple$("sectionId", payload$.sectionId, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
@@ -506,14 +502,11 @@ export class Library extends ClientSDK {
|
||||
const body$ = null;
|
||||
|
||||
const pathParams$ = {
|
||||
sectionId: enc$.encodeSimple("sectionId", payload$.sectionId, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
tag: enc$.encodeSimple("tag", payload$.tag, {
|
||||
sectionId: encodeSimple$("sectionId", payload$.sectionId, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
tag: encodeSimple$("tag", payload$.tag, { explode: false, charEncoding: "percent" }),
|
||||
};
|
||||
const path$ = this.templateURLComponent("/library/sections/{sectionId}/{tag}")(pathParams$);
|
||||
|
||||
@@ -592,7 +585,7 @@ export class Library extends ClientSDK {
|
||||
const body$ = null;
|
||||
|
||||
const pathParams$ = {
|
||||
sectionId: enc$.encodeSimple("sectionId", payload$.sectionId, {
|
||||
sectionId: encodeSimple$("sectionId", payload$.sectionId, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
@@ -695,7 +688,7 @@ export class Library extends ClientSDK {
|
||||
const body$ = null;
|
||||
|
||||
const pathParams$ = {
|
||||
sectionId: enc$.encodeSimple("sectionId", payload$.sectionId, {
|
||||
sectionId: encodeSimple$("sectionId", payload$.sectionId, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
@@ -704,11 +697,9 @@ export class Library extends ClientSDK {
|
||||
pathParams$
|
||||
);
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("type", payload$.type, { explode: true, charEncoding: "percent" }),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
type: payload$.type,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
@@ -783,7 +774,7 @@ export class Library extends ClientSDK {
|
||||
const body$ = null;
|
||||
|
||||
const pathParams$ = {
|
||||
ratingKey: enc$.encodeSimple("ratingKey", payload$.ratingKey, {
|
||||
ratingKey: encodeSimple$("ratingKey", payload$.ratingKey, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
@@ -865,7 +856,7 @@ export class Library extends ClientSDK {
|
||||
const body$ = null;
|
||||
|
||||
const pathParams$ = {
|
||||
ratingKey: enc$.encodeSimple("ratingKey", payload$.ratingKey, {
|
||||
ratingKey: encodeSimple$("ratingKey", payload$.ratingKey, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import { SDKHooks } from "../hooks";
|
||||
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
|
||||
import * as enc$ from "../lib/encodings";
|
||||
import { encodeFormQuery as encodeFormQuery$ } from "../lib/encodings";
|
||||
import { HTTPClient } from "../lib/http";
|
||||
import * as schemas$ from "../lib/schemas";
|
||||
import { ClientSDK, RequestOptions } from "../lib/sdks";
|
||||
@@ -70,16 +70,11 @@ export class Log extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/log")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("level", payload$.level, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("message", payload$.message, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("source", payload$.source, { explode: true, charEncoding: "percent" }),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
level: payload$.level,
|
||||
message: payload$.message,
|
||||
source: payload$.source,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import { SDKHooks } from "../hooks";
|
||||
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
|
||||
import * as enc$ from "../lib/encodings";
|
||||
import { encodeFormQuery as encodeFormQuery$ } from "../lib/encodings";
|
||||
import { HTTPClient } from "../lib/http";
|
||||
import * as schemas$ from "../lib/schemas";
|
||||
import { ClientSDK, RequestOptions } from "../lib/sdks";
|
||||
@@ -64,11 +64,9 @@ export class Media extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/:/scrobble")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
key: payload$.key,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
@@ -143,11 +141,9 @@ export class Media extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/:/unscrobble")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
key: payload$.key,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
@@ -227,13 +223,11 @@ export class Media extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/:/progress")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("state", payload$.state, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("time", payload$.time, { explode: true, charEncoding: "percent" }),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
key: payload$.key,
|
||||
time: payload$.time,
|
||||
state: payload$.state,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
|
||||
@@ -4,7 +4,10 @@
|
||||
|
||||
import { SDKHooks } from "../hooks";
|
||||
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
|
||||
import * as enc$ from "../lib/encodings";
|
||||
import {
|
||||
encodeFormQuery as encodeFormQuery$,
|
||||
encodeSimple as encodeSimple$,
|
||||
} from "../lib/encodings";
|
||||
import { HTTPClient } from "../lib/http";
|
||||
import * as schemas$ from "../lib/schemas";
|
||||
import { ClientSDK, RequestOptions } from "../lib/sdks";
|
||||
@@ -65,18 +68,13 @@ export class Playlists extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/playlists")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("playQueueID", payload$.playQueueID, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("smart", payload$.smart, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("title", payload$.title, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("type", payload$.type, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("uri", payload$.uri, { explode: true, charEncoding: "percent" }),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
uri: payload$.uri,
|
||||
playQueueID: payload$.playQueueID,
|
||||
title: payload$.title,
|
||||
type: payload$.type,
|
||||
smart: payload$.smart,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
@@ -153,15 +151,10 @@ export class Playlists extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/playlists")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("playlistType", payload$.playlistType, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("smart", payload$.smart, { explode: true, charEncoding: "percent" }),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
smart: payload$.smart,
|
||||
playlistType: payload$.playlistType,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
@@ -237,7 +230,7 @@ export class Playlists extends ClientSDK {
|
||||
const body$ = null;
|
||||
|
||||
const pathParams$ = {
|
||||
playlistID: enc$.encodeSimple("playlistID", payload$.playlistID, {
|
||||
playlistID: encodeSimple$("playlistID", payload$.playlistID, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
@@ -319,7 +312,7 @@ export class Playlists extends ClientSDK {
|
||||
const body$ = null;
|
||||
|
||||
const pathParams$ = {
|
||||
playlistID: enc$.encodeSimple("playlistID", payload$.playlistID, {
|
||||
playlistID: encodeSimple$("playlistID", payload$.playlistID, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
@@ -405,22 +398,17 @@ export class Playlists extends ClientSDK {
|
||||
const body$ = null;
|
||||
|
||||
const pathParams$ = {
|
||||
playlistID: enc$.encodeSimple("playlistID", payload$.playlistID, {
|
||||
playlistID: encodeSimple$("playlistID", payload$.playlistID, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
};
|
||||
const path$ = this.templateURLComponent("/playlists/{playlistID}")(pathParams$);
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("summary", payload$.summary, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("title", payload$.title, { explode: true, charEncoding: "percent" }),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
title: payload$.title,
|
||||
summary: payload$.summary,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
@@ -500,18 +488,16 @@ export class Playlists extends ClientSDK {
|
||||
const body$ = null;
|
||||
|
||||
const pathParams$ = {
|
||||
playlistID: enc$.encodeSimple("playlistID", payload$.playlistID, {
|
||||
playlistID: encodeSimple$("playlistID", payload$.playlistID, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
};
|
||||
const path$ = this.templateURLComponent("/playlists/{playlistID}/items")(pathParams$);
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("type", payload$.type, { explode: true, charEncoding: "percent" }),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
type: payload$.type,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
@@ -586,7 +572,7 @@ export class Playlists extends ClientSDK {
|
||||
const body$ = null;
|
||||
|
||||
const pathParams$ = {
|
||||
playlistID: enc$.encodeSimple("playlistID", payload$.playlistID, {
|
||||
playlistID: encodeSimple$("playlistID", payload$.playlistID, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
@@ -673,22 +659,17 @@ export class Playlists extends ClientSDK {
|
||||
const body$ = null;
|
||||
|
||||
const pathParams$ = {
|
||||
playlistID: enc$.encodeSimple("playlistID", payload$.playlistID, {
|
||||
playlistID: encodeSimple$("playlistID", payload$.playlistID, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
};
|
||||
const path$ = this.templateURLComponent("/playlists/{playlistID}/items")(pathParams$);
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("playQueueID", payload$.playQueueID, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("uri", payload$.uri, { explode: true, charEncoding: "percent" }),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
playQueueID: payload$.playQueueID,
|
||||
uri: payload$.uri,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
@@ -766,12 +747,10 @@ export class Playlists extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/playlists/upload")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("force", payload$.force, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("path", payload$.path, { explode: true, charEncoding: "percent" }),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
force: payload$.force,
|
||||
path: payload$.path,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
|
||||
@@ -4,7 +4,10 @@
|
||||
|
||||
import { SDKHooks } from "../hooks";
|
||||
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
|
||||
import * as enc$ from "../lib/encodings";
|
||||
import {
|
||||
encodeFormQuery as encodeFormQuery$,
|
||||
encodeSimple as encodeSimple$,
|
||||
} from "../lib/encodings";
|
||||
import { HTTPClient } from "../lib/http";
|
||||
import * as schemas$ from "../lib/schemas";
|
||||
import { ClientSDK, RequestOptions } from "../lib/sdks";
|
||||
@@ -71,15 +74,13 @@ export class Plex extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/pins")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("strong", payload$.strong, { explode: true, charEncoding: "percent" }),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
strong: payload$.strong,
|
||||
});
|
||||
|
||||
headers$.set(
|
||||
"X-Plex-Client-Identifier",
|
||||
enc$.encodeSimple(
|
||||
encodeSimple$(
|
||||
"X-Plex-Client-Identifier",
|
||||
payload$["X-Plex-Client-Identifier"] ?? this.options$.xPlexClientIdentifier,
|
||||
{ explode: false, charEncoding: "none" }
|
||||
@@ -151,7 +152,7 @@ export class Plex extends ClientSDK {
|
||||
})();
|
||||
|
||||
const pathParams$ = {
|
||||
pinID: enc$.encodeSimple("pinID", payload$.pinID, {
|
||||
pinID: encodeSimple$("pinID", payload$.pinID, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
@@ -162,7 +163,7 @@ export class Plex extends ClientSDK {
|
||||
|
||||
headers$.set(
|
||||
"X-Plex-Client-Identifier",
|
||||
enc$.encodeSimple(
|
||||
encodeSimple$(
|
||||
"X-Plex-Client-Identifier",
|
||||
payload$["X-Plex-Client-Identifier"] ?? this.options$.xPlexClientIdentifier,
|
||||
{ explode: false, charEncoding: "none" }
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import { SDKHooks } from "../hooks";
|
||||
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
|
||||
import * as enc$ from "../lib/encodings";
|
||||
import { encodeFormQuery as encodeFormQuery$ } from "../lib/encodings";
|
||||
import { HTTPClient } from "../lib/http";
|
||||
import * as schemas$ from "../lib/schemas";
|
||||
import { ClientSDK, RequestOptions } from "../lib/sdks";
|
||||
@@ -80,16 +80,11 @@ export class Search extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/hubs/search")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("limit", payload$.limit, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("query", payload$.query, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("sectionId", payload$.sectionId, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
query: payload$.query,
|
||||
sectionId: payload$.sectionId,
|
||||
limit: payload$.limit,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
@@ -172,16 +167,11 @@ export class Search extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/hubs/search/voice")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("limit", payload$.limit, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("query", payload$.query, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("sectionId", payload$.sectionId, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
query: payload$.query,
|
||||
sectionId: payload$.sectionId,
|
||||
limit: payload$.limit,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
@@ -256,11 +246,9 @@ export class Search extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/search")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("query", payload$.query, { explode: true, charEncoding: "percent" }),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
query: payload$.query,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import { SDKHooks } from "../hooks";
|
||||
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
|
||||
import * as enc$ from "../lib/encodings";
|
||||
import { encodeFormQuery as encodeFormQuery$ } from "../lib/encodings";
|
||||
import { HTTPClient } from "../lib/http";
|
||||
import * as schemas$ from "../lib/schemas";
|
||||
import { ClientSDK, RequestOptions } from "../lib/sdks";
|
||||
@@ -437,26 +437,15 @@ export class Server extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/photo/:/transcode")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("blur", payload$.blur, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("height", payload$.height, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("minSize", payload$.minSize, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("opacity", payload$.opacity, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("upscale", payload$.upscale, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("url", payload$.url, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("width", payload$.width, { explode: true, charEncoding: "percent" }),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
url: payload$.url,
|
||||
width: payload$.width,
|
||||
height: payload$.height,
|
||||
opacity: payload$.opacity,
|
||||
blur: payload$.blur,
|
||||
minSize: payload$.minSize,
|
||||
upscale: payload$.upscale,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import { SDKHooks } from "../hooks";
|
||||
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
|
||||
import * as enc$ from "../lib/encodings";
|
||||
import { encodeSimple as encodeSimple$ } from "../lib/encodings";
|
||||
import { HTTPClient } from "../lib/http";
|
||||
import * as schemas$ from "../lib/schemas";
|
||||
import { ClientSDK, RequestOptions } from "../lib/sdks";
|
||||
@@ -250,7 +250,7 @@ export class Sessions extends ClientSDK {
|
||||
const body$ = null;
|
||||
|
||||
const pathParams$ = {
|
||||
sessionKey: enc$.encodeSimple("sessionKey", payload$.sessionKey, {
|
||||
sessionKey: encodeSimple$("sessionKey", payload$.sessionKey, {
|
||||
explode: false,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import { SDKHooks } from "../hooks";
|
||||
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
|
||||
import * as enc$ from "../lib/encodings";
|
||||
import { encodeFormQuery as encodeFormQuery$ } from "../lib/encodings";
|
||||
import { HTTPClient } from "../lib/http";
|
||||
import * as schemas$ from "../lib/schemas";
|
||||
import { ClientSDK, RequestOptions } from "../lib/sdks";
|
||||
@@ -64,14 +64,9 @@ export class Statistics extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/statistics/media")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("Timespan", payload$.Timespan, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
Timespan: payload$.Timespan,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
import { SDKHooks } from "../hooks";
|
||||
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
|
||||
import * as enc$ from "../lib/encodings";
|
||||
import { encodeFormQuery as encodeFormQuery$ } from "../lib/encodings";
|
||||
import { HTTPClient } from "../lib/http";
|
||||
import * as schemas$ from "../lib/schemas";
|
||||
import { ClientSDK, RequestOptions } from "../lib/sdks";
|
||||
@@ -125,14 +125,9 @@ export class Updater extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/updater/check")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("download", payload$.download, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
download: payload$.download,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
@@ -210,15 +205,10 @@ export class Updater extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/updater/apply")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("skip", payload$.skip, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("tonight", payload$.tonight, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
tonight: payload$.tonight,
|
||||
skip: payload$.skip,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
|
||||
123
src/sdk/video.ts
123
src/sdk/video.ts
@@ -4,7 +4,7 @@
|
||||
|
||||
import { SDKHooks } from "../hooks";
|
||||
import { SDK_METADATA, SDKOptions, serverURLFromOptions } from "../lib/config";
|
||||
import * as enc$ from "../lib/encodings";
|
||||
import { encodeFormQuery as encodeFormQuery$ } from "../lib/encodings";
|
||||
import { HTTPClient } from "../lib/http";
|
||||
import * as schemas$ from "../lib/schemas";
|
||||
import { ClientSDK, RequestOptions } from "../lib/sdks";
|
||||
@@ -62,35 +62,18 @@ export class Video extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/:/timeline")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("context", payload$.context, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("duration", payload$.duration, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("hasMDE", payload$.hasMDE, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("playBackTime", payload$.playBackTime, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("playQueueItemID", payload$.playQueueItemID, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("ratingKey", payload$.ratingKey, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("row", payload$.row, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("state", payload$.state, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("time", payload$.time, { explode: true, charEncoding: "percent" }),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
ratingKey: payload$.ratingKey,
|
||||
hasMDE: payload$.hasMDE,
|
||||
time: payload$.time,
|
||||
playBackTime: payload$.playBackTime,
|
||||
playQueueItemID: payload$.playQueueItemID,
|
||||
row: payload$.row,
|
||||
key: payload$.key,
|
||||
state: payload$.state,
|
||||
duration: payload$.duration,
|
||||
context: payload$.context,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
@@ -163,68 +146,24 @@ export class Video extends ClientSDK {
|
||||
|
||||
const path$ = this.templateURLComponent("/video/:/transcode/universal/start.mpd")();
|
||||
|
||||
const query$ = [
|
||||
enc$.encodeForm("addDebugOverlay", payload$.addDebugOverlay, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("audioBoost", payload$.audioBoost, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("autoAdjustQuality", payload$.autoAdjustQuality, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("directPlay", payload$.directPlay, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("directStream", payload$.directStream, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("fastSeek", payload$.fastSeek, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("hasMDE", payload$.hasMDE, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("location", payload$.location, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("mediaBufferSize", payload$.mediaBufferSize, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("mediaIndex", payload$.mediaIndex, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("partIndex", payload$.partIndex, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("path", payload$.path, { explode: true, charEncoding: "percent" }),
|
||||
enc$.encodeForm("protocol", payload$.protocol, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("session", payload$.session, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("subtites", payload$.subtites, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
enc$.encodeForm("subtitleSize", payload$.subtitleSize, {
|
||||
explode: true,
|
||||
charEncoding: "percent",
|
||||
}),
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join("&");
|
||||
const query$ = encodeFormQuery$({
|
||||
path: payload$.path,
|
||||
directStream: payload$.directStream,
|
||||
audioBoost: payload$.audioBoost,
|
||||
location: payload$.location,
|
||||
mediaBufferSize: payload$.mediaBufferSize,
|
||||
addDebugOverlay: payload$.addDebugOverlay,
|
||||
partIndex: payload$.partIndex,
|
||||
fastSeek: payload$.fastSeek,
|
||||
subtitleSize: payload$.subtitleSize,
|
||||
session: payload$.session,
|
||||
mediaIndex: payload$.mediaIndex,
|
||||
autoAdjustQuality: payload$.autoAdjustQuality,
|
||||
hasMDE: payload$.hasMDE,
|
||||
protocol: payload$.protocol,
|
||||
directPlay: payload$.directPlay,
|
||||
subtites: payload$.subtites,
|
||||
});
|
||||
|
||||
let security$;
|
||||
if (typeof this.options$.accessToken === "function") {
|
||||
|
||||
Reference in New Issue
Block a user