Compare commits

...

1 Commits

Author SHA1 Message Date
speakeasybot
45ee7680a7 ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.161.0 2024-02-01 00:28:42 +00:00
11 changed files with 40 additions and 30 deletions

View File

@@ -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

View File

@@ -159,3 +159,13 @@ Based on:
- [typescript v0.6.0] .
### Releases
- [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 - .

View File

@@ -4,6 +4,6 @@
## 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 |
| `type` | [operations.Type](../../models/operations/type.md) | :heavy_check_mark: | Plex content type to search for |

View File

@@ -1,4 +1,4 @@
# TypeT
# Type
Plex content type to search for

View File

@@ -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. |

View File

@@ -8,7 +8,7 @@ generation:
fixes:
nameResolutionDec2023: false
typescript:
version: 0.6.0
version: 0.6.1
author: LukeHagar
clientServerStatusCodesAsErrors: true
flattenGlobalSecurity: true

4
package-lock.json generated
View File

@@ -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"

View File

@@ -1,7 +1,7 @@
{
"type": "commonjs",
"name": "@lukehagar/plexjs",
"version": "0.6.0",
"version": "0.6.1",
"author": "LukeHagar",
"main": "./index.js",
"sideEffects": false,

View File

@@ -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",
});

View File

@@ -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<SearchLibraryRequest, z.ZodTypeDef, Inbound> = 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<Outbound, z.ZodTypeDef, SearchLibraryRequest> = z
.object({
sectionId: z.number().int(),
type: TypeT$,
type: Type$,
})
.transform((v) => {
return {

View File

@@ -609,7 +609,7 @@ export class Library extends ClientSDK {
*/
async searchLibrary(
sectionId: number,
type: operations.TypeT,
type: operations.Type,
options?: RequestOptions
): Promise<operations.SearchLibraryResponse> {
const input$: operations.SearchLibraryRequest = {