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