mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 20:47:46 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff9f3dc489 | ||
|
|
b9629abe33 |
@@ -4,16 +4,16 @@ management:
|
|||||||
docChecksum: 34d22936f2456c2c461abdfc773e3fc4
|
docChecksum: 34d22936f2456c2c461abdfc773e3fc4
|
||||||
docVersion: 0.0.3
|
docVersion: 0.0.3
|
||||||
speakeasyVersion: internal
|
speakeasyVersion: internal
|
||||||
generationVersion: 2.228.1
|
generationVersion: 2.230.3
|
||||||
releaseVersion: 0.3.1
|
releaseVersion: 0.3.3
|
||||||
configChecksum: 708deaec8a7918d4523ce16e1e18874a
|
configChecksum: 0746fdeae11f375609eda58acff68018
|
||||||
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
|
||||||
published: true
|
published: true
|
||||||
features:
|
features:
|
||||||
typescript:
|
typescript:
|
||||||
core: 3.4.2
|
core: 3.4.5
|
||||||
flattening: 2.81.1
|
flattening: 2.81.1
|
||||||
globalSecurity: 2.82.2
|
globalSecurity: 2.82.2
|
||||||
globalServerURLs: 2.82.1
|
globalServerURLs: 2.82.1
|
||||||
|
|||||||
20
RELEASES.md
20
RELEASES.md
@@ -49,3 +49,23 @@ Based on:
|
|||||||
- [typescript v0.3.1] .
|
- [typescript v0.3.1] .
|
||||||
### Releases
|
### Releases
|
||||||
- [NPM v0.3.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.3.1 - .
|
- [NPM v0.3.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.3.1 - .
|
||||||
|
|
||||||
|
## 2024-01-09 00:28:08
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc 0.0.3
|
||||||
|
- Speakeasy CLI 1.134.0 (2.230.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.3.2] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.3.2] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.3.2 - .
|
||||||
|
|
||||||
|
## 2024-01-10 00:27:58
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc 0.0.3
|
||||||
|
- Speakeasy CLI 1.134.1 (2.230.3) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.3.3] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.3.3] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.3.3 - .
|
||||||
2
gen.yaml
2
gen.yaml
@@ -8,7 +8,7 @@ generation:
|
|||||||
fixes:
|
fixes:
|
||||||
nameResolutionDec2023: false
|
nameResolutionDec2023: false
|
||||||
typescript:
|
typescript:
|
||||||
version: 0.3.1
|
version: 0.3.3
|
||||||
author: LukeHagar
|
author: LukeHagar
|
||||||
clientServerStatusCodesAsErrors: true
|
clientServerStatusCodesAsErrors: true
|
||||||
flattenGlobalSecurity: true
|
flattenGlobalSecurity: true
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@lukehagar/plexjs",
|
"name": "@lukehagar/plexjs",
|
||||||
"version": "0.3.1",
|
"version": "0.3.3",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@lukehagar/plexjs",
|
"name": "@lukehagar/plexjs",
|
||||||
"version": "0.3.1",
|
"version": "0.3.3",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"decimal.js": "^10.4.3",
|
"decimal.js": "^10.4.3",
|
||||||
"jsonpath": "^1.1.1"
|
"jsonpath": "^1.1.1"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"name": "@lukehagar/plexjs",
|
"name": "@lukehagar/plexjs",
|
||||||
"version": "0.3.1",
|
"version": "0.3.3",
|
||||||
"author": "LukeHagar",
|
"author": "LukeHagar",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ export function serverURLFromOptions(options: SDKOptions): URL {
|
|||||||
export const SDK_METADATA = Object.freeze({
|
export const SDK_METADATA = Object.freeze({
|
||||||
language: "typescript",
|
language: "typescript",
|
||||||
openapiDocVersion: "0.0.3",
|
openapiDocVersion: "0.0.3",
|
||||||
sdkVersion: "0.3.1",
|
sdkVersion: "0.3.3",
|
||||||
genVersion: "2.228.1",
|
genVersion: "2.230.3",
|
||||||
userAgent: "speakeasy-sdk/typescript 0.3.1 2.228.1 0.0.3 @lukehagar/plexjs",
|
userAgent: "speakeasy-sdk/typescript 0.3.3 2.230.3 0.0.3 @lukehagar/plexjs",
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -201,7 +201,12 @@ export function encodeDeepObject(
|
|||||||
value: unknown,
|
value: unknown,
|
||||||
options?: { charEncoding?: "percent" | "none" },
|
options?: { charEncoding?: "percent" | "none" },
|
||||||
) {
|
) {
|
||||||
|
if (value == null) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
let out = "";
|
let out = "";
|
||||||
|
|
||||||
const encodeString = (v: string) => {
|
const encodeString = (v: string) => {
|
||||||
return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
|
return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ export class Activities extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -119,7 +119,7 @@ export class Activities extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "delete",
|
method: "DELETE",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export class Butler extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -104,7 +104,7 @@ export class Butler extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "post", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "POST", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -156,7 +156,7 @@ export class Butler extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "delete", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "DELETE", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -230,7 +230,7 @@ export class Butler extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "post",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
@@ -304,7 +304,7 @@ export class Butler extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "delete",
|
method: "DELETE",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ export class Hubs extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -157,7 +157,7 @@ export class Hubs extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ export class Library extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -122,7 +122,7 @@ export class Library extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -182,7 +182,7 @@ export class Library extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -281,7 +281,7 @@ export class Library extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -355,7 +355,7 @@ export class Library extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "delete",
|
method: "DELETE",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
@@ -440,7 +440,7 @@ export class Library extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -517,7 +517,7 @@ export class Library extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
@@ -604,7 +604,7 @@ export class Library extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -692,7 +692,7 @@ export class Library extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -767,7 +767,7 @@ export class Library extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
@@ -843,7 +843,7 @@ export class Library extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
@@ -899,7 +899,7 @@ export class Library extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ export class Log extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -129,7 +129,7 @@ export class Log extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "post", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "POST", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -181,7 +181,7 @@ export class Log extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ export class Media extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -135,7 +135,7 @@ export class Media extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -215,7 +215,7 @@ export class Media extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "post",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ export class Playlists extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "post",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -148,7 +148,7 @@ export class Playlists extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -224,7 +224,7 @@ export class Playlists extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
@@ -298,7 +298,7 @@ export class Playlists extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "delete",
|
method: "DELETE",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
@@ -372,7 +372,7 @@ export class Playlists extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "put",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
@@ -457,7 +457,7 @@ export class Playlists extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -532,7 +532,7 @@ export class Playlists extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "delete",
|
method: "DELETE",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
@@ -621,7 +621,7 @@ export class Playlists extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "put",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -698,7 +698,7 @@ export class Playlists extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "post",
|
method: "POST",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ export class Search extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -169,7 +169,7 @@ export class Search extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -242,7 +242,7 @@ export class Search extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ export class Security extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -142,7 +142,7 @@ export class Security extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ export class Server extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -103,7 +103,7 @@ export class Server extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -156,7 +156,7 @@ export class Server extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -210,7 +210,7 @@ export class Server extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -266,7 +266,7 @@ export class Server extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -320,7 +320,7 @@ export class Server extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -404,7 +404,7 @@ export class Server extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -460,7 +460,7 @@ export class Server extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export class Sessions extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -98,7 +98,7 @@ export class Sessions extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -151,7 +151,7 @@ export class Sessions extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -223,7 +223,7 @@ export class Sessions extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "delete",
|
method: "DELETE",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
body: body$,
|
body: body$,
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export class Updater extends ClientSDK {
|
|||||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||||
|
|
||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -116,7 +116,7 @@ export class Updater extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "put",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -196,7 +196,7 @@ export class Updater extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "put",
|
method: "PUT",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ export class Video extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
@@ -210,7 +210,7 @@ export class Video extends ClientSDK {
|
|||||||
const response = await this.fetch$(
|
const response = await this.fetch$(
|
||||||
{
|
{
|
||||||
security: securitySettings$,
|
security: securitySettings$,
|
||||||
method: "get",
|
method: "GET",
|
||||||
path: path$,
|
path: path$,
|
||||||
headers: headers$,
|
headers: headers$,
|
||||||
query: query$,
|
query: query$,
|
||||||
|
|||||||
@@ -5,4 +5,5 @@
|
|||||||
export { Decimal } from "./decimal";
|
export { Decimal } from "./decimal";
|
||||||
export { RFCDate } from "./rfcdate";
|
export { RFCDate } from "./rfcdate";
|
||||||
export { blobLikeSchema, isBlobLike } from "./blobs";
|
export { blobLikeSchema, isBlobLike } from "./blobs";
|
||||||
export type { Paginated, Paginator } from "./operations";
|
export type { Paginator, PageIterator } from "./operations";
|
||||||
|
export { createPageIterator } from "./operations";
|
||||||
|
|||||||
@@ -2,5 +2,24 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export type Paginated<Result> = Result & { next: Paginator<Result> };
|
export type Paginator<Result> = () => Promise<PageIterator<Result>> | null;
|
||||||
export type Paginator<Result> = () => Promise<Paginated<Result>> | null;
|
|
||||||
|
export type PageIterator<Result> = Result & {
|
||||||
|
next: Paginator<Result>;
|
||||||
|
[Symbol.asyncIterator]: () => AsyncIterableIterator<Result>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export function createPageIterator<Result>(
|
||||||
|
page: Result & { next: Paginator<Result> },
|
||||||
|
) {
|
||||||
|
return {
|
||||||
|
[Symbol.asyncIterator]: async function* paginator() {
|
||||||
|
yield page;
|
||||||
|
|
||||||
|
let p: typeof page | null = page;
|
||||||
|
for (p = await p.next(); p != null; p = await p.next()) {
|
||||||
|
yield p;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user