mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 12:37:46 +00:00
ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.161.0
This commit is contained in:
@@ -4,9 +4,9 @@ management:
|
|||||||
docChecksum: 94439465ae5d544f0e52b00719af05ee
|
docChecksum: 94439465ae5d544f0e52b00719af05ee
|
||||||
docVersion: 0.0.3
|
docVersion: 0.0.3
|
||||||
speakeasyVersion: internal
|
speakeasyVersion: internal
|
||||||
generationVersion: 2.239.4
|
generationVersion: 2.245.1
|
||||||
releaseVersion: 0.6.0
|
releaseVersion: 0.6.1
|
||||||
configChecksum: 42a58e9ba53ecd70c05120ba0c5c2d36
|
configChecksum: 17b196f8440d03f46824f0af095f9927
|
||||||
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
|
||||||
@@ -14,13 +14,13 @@ management:
|
|||||||
features:
|
features:
|
||||||
typescript:
|
typescript:
|
||||||
constsAndDefaults: 0.1.1
|
constsAndDefaults: 0.1.1
|
||||||
core: 3.4.7
|
core: 3.4.8
|
||||||
flattening: 2.81.1
|
flattening: 2.81.1
|
||||||
globalSecurity: 2.82.2
|
globalSecurity: 2.82.2
|
||||||
globalServerURLs: 2.82.1
|
globalServerURLs: 2.82.1
|
||||||
methodServerURLs: 2.82.1
|
methodServerURLs: 2.82.1
|
||||||
nameOverrides: 2.81.1
|
nameOverrides: 2.81.1
|
||||||
unions: 2.85.0
|
unions: 2.85.1
|
||||||
generatedFiles:
|
generatedFiles:
|
||||||
- src/sdk/server.ts
|
- src/sdk/server.ts
|
||||||
- src/sdk/media.ts
|
- src/sdk/media.ts
|
||||||
@@ -324,7 +324,7 @@ generatedFiles:
|
|||||||
- docs/models/operations/getlibraryitemsresponse.md
|
- docs/models/operations/getlibraryitemsresponse.md
|
||||||
- docs/models/operations/refreshlibraryrequest.md
|
- docs/models/operations/refreshlibraryrequest.md
|
||||||
- docs/models/operations/refreshlibraryresponse.md
|
- docs/models/operations/refreshlibraryresponse.md
|
||||||
- docs/models/operations/typet.md
|
- docs/models/operations/type.md
|
||||||
- docs/models/operations/searchlibraryrequest.md
|
- docs/models/operations/searchlibraryrequest.md
|
||||||
- docs/models/operations/searchlibrarymetadata.md
|
- docs/models/operations/searchlibrarymetadata.md
|
||||||
- docs/models/operations/searchlibrarymediacontainer.md
|
- docs/models/operations/searchlibrarymediacontainer.md
|
||||||
|
|||||||
10
RELEASES.md
10
RELEASES.md
@@ -159,3 +159,13 @@ Based on:
|
|||||||
- [typescript v0.6.0] .
|
- [typescript v0.6.0] .
|
||||||
### Releases
|
### Releases
|
||||||
- [NPM v0.6.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.6.0 - .
|
- [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 - .
|
||||||
@@ -4,6 +4,6 @@
|
|||||||
## Fields
|
## Fields
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
|
| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- |
|
||||||
| `sectionId` | *number* | :heavy_check_mark: | the Id of the library to query |
|
| `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 |
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# TypeT
|
# Type
|
||||||
|
|
||||||
Plex content type to search for
|
Plex content type to search for
|
||||||
|
|
||||||
@@ -422,7 +422,7 @@ Each type in the library comes with a set of filters and sorts, aiding in buildi
|
|||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { PlexAPI } from "@lukehagar/plexjs";
|
import { PlexAPI } from "@lukehagar/plexjs";
|
||||||
import { TypeT } from "@lukehagar/plexjs/models/operations";
|
import { Type } from "@lukehagar/plexjs/models/operations";
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
const sdk = new PlexAPI({
|
const sdk = new PlexAPI({
|
||||||
@@ -430,7 +430,7 @@ async function run() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const sectionId = 933505;
|
const sectionId = 933505;
|
||||||
const type = TypeT.Four;
|
const type = Type.Four;
|
||||||
|
|
||||||
const result = await sdk.library.searchLibrary(sectionId, type);
|
const result = await sdk.library.searchLibrary(sectionId, type);
|
||||||
|
|
||||||
@@ -446,7 +446,7 @@ run();
|
|||||||
| Parameter | Type | Required | Description |
|
| Parameter | Type | Required | Description |
|
||||||
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
| `sectionId` | *number* | :heavy_check_mark: | the Id of the library to query |
|
| `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` | 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. |
|
| `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. |
|
||||||
|
|
||||||
|
|||||||
2
gen.yaml
2
gen.yaml
@@ -8,7 +8,7 @@ generation:
|
|||||||
fixes:
|
fixes:
|
||||||
nameResolutionDec2023: false
|
nameResolutionDec2023: false
|
||||||
typescript:
|
typescript:
|
||||||
version: 0.6.0
|
version: 0.6.1
|
||||||
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.6.0",
|
"version": "0.6.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@lukehagar/plexjs",
|
"name": "@lukehagar/plexjs",
|
||||||
"version": "0.6.0",
|
"version": "0.6.1",
|
||||||
"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.6.0",
|
"version": "0.6.1",
|
||||||
"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.6.0",
|
sdkVersion: "0.6.1",
|
||||||
genVersion: "2.239.4",
|
genVersion: "2.245.1",
|
||||||
userAgent: "speakeasy-sdk/typescript 0.6.0 2.239.4 0.0.3 @lukehagar/plexjs",
|
userAgent: "speakeasy-sdk/typescript 0.6.1 2.245.1 0.0.3 @lukehagar/plexjs",
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { z } from "zod";
|
|||||||
/**
|
/**
|
||||||
* Plex content type to search for
|
* Plex content type to search for
|
||||||
*/
|
*/
|
||||||
export enum TypeT {
|
export enum Type {
|
||||||
One = 1,
|
One = 1,
|
||||||
Two = 2,
|
Two = 2,
|
||||||
Three = 3,
|
Three = 3,
|
||||||
@@ -22,7 +22,7 @@ export type SearchLibraryRequest = {
|
|||||||
/**
|
/**
|
||||||
* Plex content type to search for
|
* Plex content type to search for
|
||||||
*/
|
*/
|
||||||
type: TypeT;
|
type: Type;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type SearchLibraryMetadata = {
|
export type SearchLibraryMetadata = {
|
||||||
@@ -91,19 +91,19 @@ export type SearchLibraryResponse = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export const TypeT$ = z.nativeEnum(TypeT);
|
export const Type$ = z.nativeEnum(Type);
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace SearchLibraryRequest$ {
|
export namespace SearchLibraryRequest$ {
|
||||||
export type Inbound = {
|
export type Inbound = {
|
||||||
sectionId: number;
|
sectionId: number;
|
||||||
type: TypeT;
|
type: Type;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const inboundSchema: z.ZodType<SearchLibraryRequest, z.ZodTypeDef, Inbound> = z
|
export const inboundSchema: z.ZodType<SearchLibraryRequest, z.ZodTypeDef, Inbound> = z
|
||||||
.object({
|
.object({
|
||||||
sectionId: z.number().int(),
|
sectionId: z.number().int(),
|
||||||
type: TypeT$,
|
type: Type$,
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return {
|
||||||
@@ -114,13 +114,13 @@ export namespace SearchLibraryRequest$ {
|
|||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
sectionId: number;
|
sectionId: number;
|
||||||
type: TypeT;
|
type: Type;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SearchLibraryRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SearchLibraryRequest> = z
|
||||||
.object({
|
.object({
|
||||||
sectionId: z.number().int(),
|
sectionId: z.number().int(),
|
||||||
type: TypeT$,
|
type: Type$,
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -609,7 +609,7 @@ export class Library extends ClientSDK {
|
|||||||
*/
|
*/
|
||||||
async searchLibrary(
|
async searchLibrary(
|
||||||
sectionId: number,
|
sectionId: number,
|
||||||
type: operations.TypeT,
|
type: operations.Type,
|
||||||
options?: RequestOptions
|
options?: RequestOptions
|
||||||
): Promise<operations.SearchLibraryResponse> {
|
): Promise<operations.SearchLibraryResponse> {
|
||||||
const input$: operations.SearchLibraryRequest = {
|
const input$: operations.SearchLibraryRequest = {
|
||||||
|
|||||||
Reference in New Issue
Block a user