Compare commits

...

2 Commits

Author SHA1 Message Date
speakeasybot
8a2d3e04ab ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.405.6 2024-11-14 00:11:57 +00:00
speakeasybot
6c8a73ae84 ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.405.6 2024-11-11 20:30:45 +00:00
26 changed files with 67 additions and 55 deletions

View File

@@ -1,12 +1,12 @@
lockVersion: 2.0.0 lockVersion: 2.0.0
id: 16f22cbf-f23f-4419-8924-3a4b06381947 id: 16f22cbf-f23f-4419-8924-3a4b06381947
management: management:
docChecksum: 23094f3a9fe02710a8628ad5456f5d42 docChecksum: 2554ade61ed4d42b8e095168765d7dc0
docVersion: 0.0.3 docVersion: 0.0.3
speakeasyVersion: 1.405.6 speakeasyVersion: 1.405.6
generationVersion: 2.428.1 generationVersion: 2.428.1
releaseVersion: 0.26.1 releaseVersion: 0.30.0
configChecksum: 60271a6e5ece5e9400f671595bbf9013 configChecksum: 6c1d7aea15d07bcbf6bfd6eb62f11e35
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
@@ -1995,6 +1995,7 @@ examples:
parameters: parameters:
query: query:
Timespan: 4 Timespan: 4
timespan: 4
responses: responses:
"200": "200":
application/json: {"MediaContainer": {"size": 5497, "Device": [], "Account": [], "StatisticsMedia": []}} application/json: {"MediaContainer": {"size": 5497, "Device": [], "Account": [], "StatisticsMedia": []}}
@@ -2007,6 +2008,7 @@ examples:
parameters: parameters:
query: query:
Timespan: 4 Timespan: 4
timespan: 4
responses: responses:
"200": "200":
application/json: {"MediaContainer": {"size": 5497, "StatisticsResources": []}} application/json: {"MediaContainer": {"size": 5497, "StatisticsResources": []}}
@@ -2019,6 +2021,7 @@ examples:
parameters: parameters:
query: query:
Timespan: 4 Timespan: 4
timespan: 4
responses: responses:
"200": "200":
application/json: {"MediaContainer": {"size": 5497, "Device": [], "Account": [], "StatisticsBandwidth": []}} application/json: {"MediaContainer": {"size": 5497, "Device": [], "Account": [], "StatisticsBandwidth": []}}

View File

@@ -12,7 +12,7 @@ generation:
auth: auth:
oAuth2ClientCredentialsEnabled: true oAuth2ClientCredentialsEnabled: true
typescript: typescript:
version: 0.26.1 version: 0.30.0
additionalDependencies: additionalDependencies:
dependencies: {} dependencies: {}
devDependencies: {} devDependencies: {}
@@ -20,6 +20,7 @@ typescript:
additionalPackageJSON: {} additionalPackageJSON: {}
author: LukeHagar author: LukeHagar
clientServerStatusCodesAsErrors: true clientServerStatusCodesAsErrors: true
defaultErrorName: SDKError
enumFormat: enum enumFormat: enum
flattenGlobalSecurity: true flattenGlobalSecurity: true
flatteningOrder: body-first flatteningOrder: body-first

View File

@@ -9,8 +9,8 @@ sources:
- main - main
plexapi: plexapi:
sourceNamespace: plexapi sourceNamespace: plexapi
sourceRevisionDigest: sha256:8d2eb3adbd97ce5976291c4b123d1eadfef62d1f6bf86c6a18bcd89443f2f390 sourceRevisionDigest: sha256:37c6bfb15f4154eb89b112465107f20757411f22bd1cc7d0a04335df7127fcb4
sourceBlobDigest: sha256:3e48471b7e058840fc598ccd75b2cbf8187961c7e625fe7b606555ce9a9bf109 sourceBlobDigest: sha256:290473ebc909cada80ff428c685b897f4621cf121397e1417355e06d334e7206
tags: tags:
- latest - latest
- main - main
@@ -18,10 +18,10 @@ targets:
plexjs: plexjs:
source: plexapi source: plexapi
sourceNamespace: plexapi sourceNamespace: plexapi
sourceRevisionDigest: sha256:8d2eb3adbd97ce5976291c4b123d1eadfef62d1f6bf86c6a18bcd89443f2f390 sourceRevisionDigest: sha256:37c6bfb15f4154eb89b112465107f20757411f22bd1cc7d0a04335df7127fcb4
sourceBlobDigest: sha256:3e48471b7e058840fc598ccd75b2cbf8187961c7e625fe7b606555ce9a9bf109 sourceBlobDigest: sha256:290473ebc909cada80ff428c685b897f4621cf121397e1417355e06d334e7206
codeSamplesNamespace: code-samples-typescript-plexjs codeSamplesNamespace: code-samples-typescript-plexjs
codeSamplesRevisionDigest: sha256:6779ea8c16885c3e316919f2863535016f3af48a91e8ab4c3eed79c26b4615d3 codeSamplesRevisionDigest: sha256:1360b0489d1911ecbe6a0e2bcea617dc8c8d8cba49f2d3b505cef056dd668081
workflow: workflow:
workflowVersion: 1.0.0 workflowVersion: 1.0.0
speakeasyVersion: latest speakeasyVersion: latest

View File

@@ -1119,3 +1119,23 @@ Based on:
- [typescript v0.26.1] . - [typescript v0.26.1] .
### Releases ### Releases
- [NPM v0.26.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.26.1 - . - [NPM v0.26.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.26.1 - .
## 2024-11-11 20:28:21
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.405.6 (2.428.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.28.0] .
### Releases
- [NPM v0.28.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.28.0 - .
## 2024-11-14 00:09:39
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.405.6 (2.428.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.30.0] .
### Releases
- [NPM v0.30.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.30.0 - .

View File

@@ -24,3 +24,4 @@ let value: GetLibraryItemsQueryParamType = GetLibraryItemsQueryParamType.TvShow;
| `TvShow` | 2 | | `TvShow` | 2 |
| `Season` | 3 | | `Season` | 3 |
| `Episode` | 4 | | `Episode` | 4 |
| `Audio` | 8 |

View File

@@ -25,3 +25,4 @@ let value: GetPlaylistContentsQueryParamType =
| `TvShow` | 2 | | `TvShow` | 2 |
| `Season` | 3 | | `Season` | 3 |
| `Episode` | 4 | | `Episode` | 4 |
| `Audio` | 8 |

View File

@@ -25,3 +25,4 @@ let value: GetSearchLibraryQueryParamType =
| `TvShow` | 2 | | `TvShow` | 2 |
| `Season` | 3 | | `Season` | 3 |
| `Episode` | 4 | | `Episode` | 4 |
| `Audio` | 8 |

View File

@@ -25,3 +25,4 @@ let value: GetTopWatchedContentQueryParamType =
| `TvShow` | 2 | | `TvShow` | 2 |
| `Season` | 3 | | `Season` | 3 |
| `Episode` | 4 | | `Episode` | 4 |
| `Audio` | 8 |

View File

@@ -24,3 +24,4 @@ let value: QueryParamType = QueryParamType.TvShow;
| `TvShow` | 2 | | `TvShow` | 2 |
| `Season` | 3 | | `Season` | 3 |
| `Episode` | 4 | | `Episode` | 4 |
| `Audio` | 8 |

View File

@@ -24,3 +24,4 @@ let value: Type = Type.TvShow;
| `TvShow` | 2 | | `TvShow` | 2 |
| `Season` | 3 | | `Season` | 3 |
| `Episode` | 4 | | `Episode` | 4 |
| `Audio` | 8 |

View File

@@ -2,7 +2,7 @@
{ {
"name": "@lukehagar/plexjs", "name": "@lukehagar/plexjs",
"version": "0.26.1", "version": "0.30.0",
"exports": { "exports": {
".": "./src/index.ts", ".": "./src/index.ts",
"./sdk/models/errors": "./src/sdk/models/errors/index.ts", "./sdk/models/errors": "./src/sdk/models/errors/index.ts",

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@lukehagar/plexjs", "name": "@lukehagar/plexjs",
"version": "0.26.1", "version": "0.30.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lukehagar/plexjs", "name": "@lukehagar/plexjs",
"version": "0.26.1", "version": "0.30.0",
"devDependencies": { "devDependencies": {
"@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1", "@typescript-eslint/parser": "^7.7.1",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@lukehagar/plexjs", "name": "@lukehagar/plexjs",
"version": "0.26.1", "version": "0.30.0",
"author": "LukeHagar", "author": "LukeHagar",
"main": "./index.js", "main": "./index.js",
"sideEffects": false, "sideEffects": false,

View File

@@ -65,7 +65,7 @@ export async function statisticsGetBandwidthStatistics(
const path = pathToFunc("/statistics/bandwidth")(); const path = pathToFunc("/statistics/bandwidth")();
const query = encodeFormQuery({ const query = encodeFormQuery({
"Timespan": payload.Timespan, "timespan": payload.timespan,
}); });
const headers = new Headers({ const headers = new Headers({

View File

@@ -65,7 +65,7 @@ export async function statisticsGetResourcesStatistics(
const path = pathToFunc("/statistics/resources")(); const path = pathToFunc("/statistics/resources")();
const query = encodeFormQuery({ const query = encodeFormQuery({
"Timespan": payload.Timespan, "timespan": payload.timespan,
}); });
const headers = new Headers({ const headers = new Headers({

View File

@@ -64,7 +64,7 @@ export async function statisticsGetStatistics(
const path = pathToFunc("/statistics/media")(); const path = pathToFunc("/statistics/media")();
const query = encodeFormQuery({ const query = encodeFormQuery({
"Timespan": payload.Timespan, "timespan": payload.timespan,
}); });
const headers = new Headers({ const headers = new Headers({

View File

@@ -115,7 +115,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.26.1", sdkVersion: "0.30.0",
genVersion: "2.428.1", genVersion: "2.428.1",
userAgent: "speakeasy-sdk/typescript 0.26.1 2.428.1 0.0.3 @lukehagar/plexjs", userAgent: "speakeasy-sdk/typescript 0.30.0 2.428.1 0.0.3 @lukehagar/plexjs",
} as const; } as const;

View File

@@ -82,16 +82,12 @@ export const GetBandwidthStatisticsRequest$inboundSchema: z.ZodType<
z.ZodTypeDef, z.ZodTypeDef,
unknown unknown
> = z.object({ > = z.object({
Timespan: z.number().int().optional(), timespan: z.number().int().optional(),
}).transform((v) => {
return remap$(v, {
"Timespan": "timespan",
});
}); });
/** @internal */ /** @internal */
export type GetBandwidthStatisticsRequest$Outbound = { export type GetBandwidthStatisticsRequest$Outbound = {
Timespan?: number | undefined; timespan?: number | undefined;
}; };
/** @internal */ /** @internal */
@@ -101,10 +97,6 @@ export const GetBandwidthStatisticsRequest$outboundSchema: z.ZodType<
GetBandwidthStatisticsRequest GetBandwidthStatisticsRequest
> = z.object({ > = z.object({
timespan: z.number().int().optional(), timespan: z.number().int().optional(),
}).transform((v) => {
return remap$(v, {
timespan: "Timespan",
});
}); });
/** /**

View File

@@ -56,6 +56,7 @@ export enum GetLibraryItemsQueryParamType {
TvShow = 2, TvShow = 2,
Season = 3, Season = 3,
Episode = 4, Episode = 4,
Audio = 8,
} }
/** /**

View File

@@ -21,6 +21,7 @@ export enum GetPlaylistContentsQueryParamType {
TvShow = 2, TvShow = 2,
Season = 3, Season = 3,
Episode = 4, Episode = 4,
Audio = 8,
} }
export type GetPlaylistContentsRequest = { export type GetPlaylistContentsRequest = {

View File

@@ -21,6 +21,7 @@ export enum Type {
TvShow = 2, TvShow = 2,
Season = 3, Season = 3,
Episode = 4, Episode = 4,
Audio = 8,
} }
/** /**

View File

@@ -20,6 +20,7 @@ export enum QueryParamType {
TvShow = 2, TvShow = 2,
Season = 3, Season = 3,
Episode = 4, Episode = 4,
Audio = 8,
} }
/** /**

View File

@@ -61,16 +61,12 @@ export const GetResourcesStatisticsRequest$inboundSchema: z.ZodType<
z.ZodTypeDef, z.ZodTypeDef,
unknown unknown
> = z.object({ > = z.object({
Timespan: z.number().int().optional(), timespan: z.number().int().optional(),
}).transform((v) => {
return remap$(v, {
"Timespan": "timespan",
});
}); });
/** @internal */ /** @internal */
export type GetResourcesStatisticsRequest$Outbound = { export type GetResourcesStatisticsRequest$Outbound = {
Timespan?: number | undefined; timespan?: number | undefined;
}; };
/** @internal */ /** @internal */
@@ -80,10 +76,6 @@ export const GetResourcesStatisticsRequest$outboundSchema: z.ZodType<
GetResourcesStatisticsRequest GetResourcesStatisticsRequest
> = z.object({ > = z.object({
timespan: z.number().int().optional(), timespan: z.number().int().optional(),
}).transform((v) => {
return remap$(v, {
timespan: "Timespan",
});
}); });
/** /**

View File

@@ -20,6 +20,7 @@ export enum GetSearchLibraryQueryParamType {
TvShow = 2, TvShow = 2,
Season = 3, Season = 3,
Episode = 4, Episode = 4,
Audio = 8,
} }
export type GetSearchLibraryRequest = { export type GetSearchLibraryRequest = {

View File

@@ -83,16 +83,12 @@ export const GetStatisticsRequest$inboundSchema: z.ZodType<
z.ZodTypeDef, z.ZodTypeDef,
unknown unknown
> = z.object({ > = z.object({
Timespan: z.number().int().optional(), timespan: z.number().int().optional(),
}).transform((v) => {
return remap$(v, {
"Timespan": "timespan",
});
}); });
/** @internal */ /** @internal */
export type GetStatisticsRequest$Outbound = { export type GetStatisticsRequest$Outbound = {
Timespan?: number | undefined; timespan?: number | undefined;
}; };
/** @internal */ /** @internal */
@@ -102,10 +98,6 @@ export const GetStatisticsRequest$outboundSchema: z.ZodType<
GetStatisticsRequest GetStatisticsRequest
> = z.object({ > = z.object({
timespan: z.number().int().optional(), timespan: z.number().int().optional(),
}).transform((v) => {
return remap$(v, {
timespan: "Timespan",
});
}); });
/** /**

View File

@@ -21,6 +21,7 @@ export enum GetTopWatchedContentQueryParamType {
TvShow = 2, TvShow = 2,
Season = 3, Season = 3,
Episode = 4, Episode = 4,
Audio = 8,
} }
export type GetTopWatchedContentRequest = { export type GetTopWatchedContentRequest = {