From 45ee7680a73132b88e7d779faeee0d0fb4cde86d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 1 Feb 2024 00:28:42 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.161.0 --- .speakeasy/gen.lock | 12 ++++++------ RELEASES.md | 12 +++++++++++- docs/models/operations/searchlibraryrequest.md | 8 ++++---- docs/models/operations/{typet.md => type.md} | 2 +- docs/sdks/library/README.md | 6 +++--- gen.yaml | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/lib/config.ts | 6 +++--- src/models/operations/searchlibrary.ts | 14 +++++++------- src/sdk/library.ts | 2 +- 11 files changed, 40 insertions(+), 30 deletions(-) rename docs/models/operations/{typet.md => type.md} (95%) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index bccc2521..33934159 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -4,9 +4,9 @@ management: docChecksum: 94439465ae5d544f0e52b00719af05ee docVersion: 0.0.3 speakeasyVersion: internal - generationVersion: 2.239.4 - releaseVersion: 0.6.0 - configChecksum: 42a58e9ba53ecd70c05120ba0c5c2d36 + generationVersion: 2.245.1 + releaseVersion: 0.6.1 + configChecksum: 17b196f8440d03f46824f0af095f9927 repoURL: https://github.com/LukeHagar/plexjs.git repoSubDirectory: . installationURL: https://github.com/LukeHagar/plexjs @@ -14,13 +14,13 @@ management: features: typescript: constsAndDefaults: 0.1.1 - core: 3.4.7 + core: 3.4.8 flattening: 2.81.1 globalSecurity: 2.82.2 globalServerURLs: 2.82.1 methodServerURLs: 2.82.1 nameOverrides: 2.81.1 - unions: 2.85.0 + unions: 2.85.1 generatedFiles: - src/sdk/server.ts - src/sdk/media.ts @@ -324,7 +324,7 @@ generatedFiles: - docs/models/operations/getlibraryitemsresponse.md - docs/models/operations/refreshlibraryrequest.md - docs/models/operations/refreshlibraryresponse.md - - docs/models/operations/typet.md + - docs/models/operations/type.md - docs/models/operations/searchlibraryrequest.md - docs/models/operations/searchlibrarymetadata.md - docs/models/operations/searchlibrarymediacontainer.md diff --git a/RELEASES.md b/RELEASES.md index 7ef16b4a..72addc7f 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -158,4 +158,14 @@ Based on: ### Generated - [typescript v0.6.0] . ### Releases -- [NPM v0.6.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.6.0 - . \ No newline at end of file +- [NPM v0.6.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.6.0 - . + +## 2024-02-01 00:27:20 +### Changes +Based on: +- OpenAPI Doc 0.0.3 +- Speakeasy CLI 1.161.0 (2.245.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.6.1] . +### Releases +- [NPM v0.6.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.6.1 - . \ No newline at end of file diff --git a/docs/models/operations/searchlibraryrequest.md b/docs/models/operations/searchlibraryrequest.md index 517c9e39..11761aa9 100644 --- a/docs/models/operations/searchlibraryrequest.md +++ b/docs/models/operations/searchlibraryrequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | -| `sectionId` | *number* | :heavy_check_mark: | the Id of the library to query | -| `type` | [operations.TypeT](../../models/operations/typet.md) | :heavy_check_mark: | Plex content type to search for | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `sectionId` | *number* | :heavy_check_mark: | the Id of the library to query | +| `type` | [operations.Type](../../models/operations/type.md) | :heavy_check_mark: | Plex content type to search for | \ No newline at end of file diff --git a/docs/models/operations/typet.md b/docs/models/operations/type.md similarity index 95% rename from docs/models/operations/typet.md rename to docs/models/operations/type.md index a4344f73..19bb07cd 100644 --- a/docs/models/operations/typet.md +++ b/docs/models/operations/type.md @@ -1,4 +1,4 @@ -# TypeT +# Type Plex content type to search for diff --git a/docs/sdks/library/README.md b/docs/sdks/library/README.md index c3436b6f..e4d4ee5c 100644 --- a/docs/sdks/library/README.md +++ b/docs/sdks/library/README.md @@ -422,7 +422,7 @@ Each type in the library comes with a set of filters and sorts, aiding in buildi ```typescript import { PlexAPI } from "@lukehagar/plexjs"; -import { TypeT } from "@lukehagar/plexjs/models/operations"; +import { Type } from "@lukehagar/plexjs/models/operations"; async function run() { const sdk = new PlexAPI({ @@ -430,7 +430,7 @@ async function run() { }); const sectionId = 933505; - const type = TypeT.Four; + const type = Type.Four; const result = await sdk.library.searchLibrary(sectionId, type); @@ -446,7 +446,7 @@ run(); | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `sectionId` | *number* | :heavy_check_mark: | the Id of the library to query | -| `type` | [operations.TypeT](../../models/operations/typet.md) | :heavy_check_mark: | Plex content type to search for | +| `type` | [operations.Type](../../models/operations/type.md) | :heavy_check_mark: | Plex content type to search for | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | diff --git a/gen.yaml b/gen.yaml index 1d23055e..a7b0102b 100755 --- a/gen.yaml +++ b/gen.yaml @@ -8,7 +8,7 @@ generation: fixes: nameResolutionDec2023: false typescript: - version: 0.6.0 + version: 0.6.1 author: LukeHagar clientServerStatusCodesAsErrors: true flattenGlobalSecurity: true diff --git a/package-lock.json b/package-lock.json index 214f3644..bd362bc7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lukehagar/plexjs", - "version": "0.6.0", + "version": "0.6.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@lukehagar/plexjs", - "version": "0.6.0", + "version": "0.6.1", "dependencies": { "decimal.js": "^10.4.3", "jsonpath": "^1.1.1" diff --git a/package.json b/package.json index e9f50138..64342602 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "type": "commonjs", "name": "@lukehagar/plexjs", - "version": "0.6.0", + "version": "0.6.1", "author": "LukeHagar", "main": "./index.js", "sideEffects": false, diff --git a/src/lib/config.ts b/src/lib/config.ts index f06cd9d6..af32bd70 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -79,7 +79,7 @@ export function serverURLFromOptions(options: SDKOptions): URL { export const SDK_METADATA = Object.freeze({ language: "typescript", openapiDocVersion: "0.0.3", - sdkVersion: "0.6.0", - genVersion: "2.239.4", - userAgent: "speakeasy-sdk/typescript 0.6.0 2.239.4 0.0.3 @lukehagar/plexjs", + sdkVersion: "0.6.1", + genVersion: "2.245.1", + userAgent: "speakeasy-sdk/typescript 0.6.1 2.245.1 0.0.3 @lukehagar/plexjs", }); diff --git a/src/models/operations/searchlibrary.ts b/src/models/operations/searchlibrary.ts index ce953851..7ef48874 100644 --- a/src/models/operations/searchlibrary.ts +++ b/src/models/operations/searchlibrary.ts @@ -7,7 +7,7 @@ import { z } from "zod"; /** * Plex content type to search for */ -export enum TypeT { +export enum Type { One = 1, Two = 2, Three = 3, @@ -22,7 +22,7 @@ export type SearchLibraryRequest = { /** * Plex content type to search for */ - type: TypeT; + type: Type; }; export type SearchLibraryMetadata = { @@ -91,19 +91,19 @@ export type SearchLibraryResponse = { }; /** @internal */ -export const TypeT$ = z.nativeEnum(TypeT); +export const Type$ = z.nativeEnum(Type); /** @internal */ export namespace SearchLibraryRequest$ { export type Inbound = { sectionId: number; - type: TypeT; + type: Type; }; export const inboundSchema: z.ZodType = z .object({ sectionId: z.number().int(), - type: TypeT$, + type: Type$, }) .transform((v) => { return { @@ -114,13 +114,13 @@ export namespace SearchLibraryRequest$ { export type Outbound = { sectionId: number; - type: TypeT; + type: Type; }; export const outboundSchema: z.ZodType = z .object({ sectionId: z.number().int(), - type: TypeT$, + type: Type$, }) .transform((v) => { return { diff --git a/src/sdk/library.ts b/src/sdk/library.ts index 3cf49378..1a49ebd9 100644 --- a/src/sdk/library.ts +++ b/src/sdk/library.ts @@ -609,7 +609,7 @@ export class Library extends ClientSDK { */ async searchLibrary( sectionId: number, - type: operations.TypeT, + type: operations.Type, options?: RequestOptions ): Promise { const input$: operations.SearchLibraryRequest = {