mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9629abe33 |
@@ -4,16 +4,16 @@ management:
|
||||
docChecksum: 34d22936f2456c2c461abdfc773e3fc4
|
||||
docVersion: 0.0.3
|
||||
speakeasyVersion: internal
|
||||
generationVersion: 2.228.1
|
||||
releaseVersion: 0.3.1
|
||||
configChecksum: 708deaec8a7918d4523ce16e1e18874a
|
||||
generationVersion: 2.230.1
|
||||
releaseVersion: 0.3.2
|
||||
configChecksum: 86f0aaf69f4406cb299c83cad9dc94fe
|
||||
repoURL: https://github.com/LukeHagar/plexjs.git
|
||||
repoSubDirectory: .
|
||||
installationURL: https://github.com/LukeHagar/plexjs
|
||||
published: true
|
||||
features:
|
||||
typescript:
|
||||
core: 3.4.2
|
||||
core: 3.4.3
|
||||
flattening: 2.81.1
|
||||
globalSecurity: 2.82.2
|
||||
globalServerURLs: 2.82.1
|
||||
|
||||
12
RELEASES.md
12
RELEASES.md
@@ -48,4 +48,14 @@ Based on:
|
||||
### Generated
|
||||
- [typescript v0.3.1] .
|
||||
### 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 - .
|
||||
2
gen.yaml
2
gen.yaml
@@ -8,7 +8,7 @@ generation:
|
||||
fixes:
|
||||
nameResolutionDec2023: false
|
||||
typescript:
|
||||
version: 0.3.1
|
||||
version: 0.3.2
|
||||
author: LukeHagar
|
||||
clientServerStatusCodesAsErrors: true
|
||||
flattenGlobalSecurity: true
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@lukehagar/plexjs",
|
||||
"version": "0.3.1",
|
||||
"version": "0.3.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lukehagar/plexjs",
|
||||
"version": "0.3.1",
|
||||
"version": "0.3.2",
|
||||
"dependencies": {
|
||||
"decimal.js": "^10.4.3",
|
||||
"jsonpath": "^1.1.1"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "commonjs",
|
||||
"name": "@lukehagar/plexjs",
|
||||
"version": "0.3.1",
|
||||
"version": "0.3.2",
|
||||
"author": "LukeHagar",
|
||||
"main": "./index.js",
|
||||
"sideEffects": false,
|
||||
|
||||
@@ -79,7 +79,7 @@ export function serverURLFromOptions(options: SDKOptions): URL {
|
||||
export const SDK_METADATA = Object.freeze({
|
||||
language: "typescript",
|
||||
openapiDocVersion: "0.0.3",
|
||||
sdkVersion: "0.3.1",
|
||||
genVersion: "2.228.1",
|
||||
userAgent: "speakeasy-sdk/typescript 0.3.1 2.228.1 0.0.3 @lukehagar/plexjs",
|
||||
sdkVersion: "0.3.2",
|
||||
genVersion: "2.230.1",
|
||||
userAgent: "speakeasy-sdk/typescript 0.3.2 2.230.1 0.0.3 @lukehagar/plexjs",
|
||||
});
|
||||
|
||||
@@ -47,7 +47,7 @@ export class Activities extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
@@ -119,7 +119,7 @@ export class Activities extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "delete",
|
||||
method: "DELETE",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
body: body$,
|
||||
|
||||
@@ -45,7 +45,7 @@ export class Butler extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
@@ -104,7 +104,7 @@ export class Butler extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "post", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "POST", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
@@ -156,7 +156,7 @@ export class Butler extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "delete", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "DELETE", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
@@ -230,7 +230,7 @@ export class Butler extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "post",
|
||||
method: "POST",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
body: body$,
|
||||
@@ -304,7 +304,7 @@ export class Butler extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "delete",
|
||||
method: "DELETE",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
body: body$,
|
||||
|
||||
@@ -68,7 +68,7 @@ export class Hubs extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
@@ -157,7 +157,7 @@ export class Hubs extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
|
||||
@@ -65,7 +65,7 @@ export class Library extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
@@ -122,7 +122,7 @@ export class Library extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
@@ -182,7 +182,7 @@ export class Library extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
@@ -281,7 +281,7 @@ export class Library extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
@@ -355,7 +355,7 @@ export class Library extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "delete",
|
||||
method: "DELETE",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
body: body$,
|
||||
@@ -440,7 +440,7 @@ export class Library extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
@@ -517,7 +517,7 @@ export class Library extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
body: body$,
|
||||
@@ -604,7 +604,7 @@ export class Library extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
@@ -692,7 +692,7 @@ export class Library extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
@@ -767,7 +767,7 @@ export class Library extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
body: body$,
|
||||
@@ -843,7 +843,7 @@ export class Library extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
body: body$,
|
||||
@@ -899,7 +899,7 @@ export class Library extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ export class Log extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
@@ -129,7 +129,7 @@ export class Log extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "post", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "POST", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
@@ -181,7 +181,7 @@ export class Log extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ export class Media extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
@@ -135,7 +135,7 @@ export class Media extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
@@ -215,7 +215,7 @@ export class Media extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "post",
|
||||
method: "POST",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
|
||||
@@ -69,7 +69,7 @@ export class Playlists extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "post",
|
||||
method: "POST",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
@@ -148,7 +148,7 @@ export class Playlists extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
@@ -224,7 +224,7 @@ export class Playlists extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
body: body$,
|
||||
@@ -298,7 +298,7 @@ export class Playlists extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "delete",
|
||||
method: "DELETE",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
body: body$,
|
||||
@@ -372,7 +372,7 @@ export class Playlists extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "put",
|
||||
method: "PUT",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
body: body$,
|
||||
@@ -457,7 +457,7 @@ export class Playlists extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
@@ -532,7 +532,7 @@ export class Playlists extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "delete",
|
||||
method: "DELETE",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
body: body$,
|
||||
@@ -621,7 +621,7 @@ export class Playlists extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "put",
|
||||
method: "PUT",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
@@ -698,7 +698,7 @@ export class Playlists extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "post",
|
||||
method: "POST",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
|
||||
@@ -83,7 +83,7 @@ export class Search extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
@@ -169,7 +169,7 @@ export class Search extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
@@ -242,7 +242,7 @@ export class Search extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
|
||||
@@ -66,7 +66,7 @@ export class Security extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
@@ -142,7 +142,7 @@ export class Security extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
|
||||
@@ -47,7 +47,7 @@ export class Server extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
@@ -103,7 +103,7 @@ export class Server extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
@@ -156,7 +156,7 @@ export class Server extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
@@ -210,7 +210,7 @@ export class Server extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
@@ -266,7 +266,7 @@ export class Server extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
@@ -320,7 +320,7 @@ export class Server extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
@@ -404,7 +404,7 @@ export class Server extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
@@ -460,7 +460,7 @@ export class Server extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ export class Sessions extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
@@ -98,7 +98,7 @@ export class Sessions extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
@@ -151,7 +151,7 @@ export class Sessions extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
@@ -223,7 +223,7 @@ export class Sessions extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "delete",
|
||||
method: "DELETE",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
body: body$,
|
||||
|
||||
@@ -45,7 +45,7 @@ export class Updater extends ClientSDK {
|
||||
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
||||
|
||||
const response = await this.fetch$(
|
||||
{ security: securitySettings$, method: "get", path: path$, headers: headers$ },
|
||||
{ security: securitySettings$, method: "GET", path: path$, headers: headers$ },
|
||||
options
|
||||
);
|
||||
|
||||
@@ -116,7 +116,7 @@ export class Updater extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "put",
|
||||
method: "PUT",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
@@ -196,7 +196,7 @@ export class Updater extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "put",
|
||||
method: "PUT",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
|
||||
@@ -116,7 +116,7 @@ export class Video extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
@@ -210,7 +210,7 @@ export class Video extends ClientSDK {
|
||||
const response = await this.fetch$(
|
||||
{
|
||||
security: securitySettings$,
|
||||
method: "get",
|
||||
method: "GET",
|
||||
path: path$,
|
||||
headers: headers$,
|
||||
query: query$,
|
||||
|
||||
@@ -5,4 +5,5 @@
|
||||
export { Decimal } from "./decimal";
|
||||
export { RFCDate } from "./rfcdate";
|
||||
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.
|
||||
*/
|
||||
|
||||
export type Paginated<Result> = Result & { next: Paginator<Result> };
|
||||
export type Paginator<Result> = () => Promise<Paginated<Result>> | null;
|
||||
export type Paginator<Result> = () => Promise<PageIterator<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