ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.535.1

This commit is contained in:
speakeasybot
2025-04-19 00:12:04 +00:00
parent 7a950ea773
commit 763aa8e800
102 changed files with 1864 additions and 713 deletions

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -16,6 +21,12 @@ export enum CreatePlaylistQueryParamType {
Video = "video",
Photo = "photo",
}
/**
* type of playlist to create
*/
export type CreatePlaylistQueryParamTypeOpen = OpenEnum<
typeof CreatePlaylistQueryParamType
>;
/**
* whether the playlist is smart or not
@@ -33,7 +44,7 @@ export type CreatePlaylistRequest = {
/**
* type of playlist to create
*/
type: CreatePlaylistQueryParamType;
type: CreatePlaylistQueryParamTypeOpen;
/**
* whether the playlist is smart or not
*/
@@ -99,14 +110,25 @@ export type CreatePlaylistResponse = {
};
/** @internal */
export const CreatePlaylistQueryParamType$inboundSchema: z.ZodNativeEnum<
typeof CreatePlaylistQueryParamType
> = z.nativeEnum(CreatePlaylistQueryParamType);
export const CreatePlaylistQueryParamType$inboundSchema: z.ZodType<
CreatePlaylistQueryParamTypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(CreatePlaylistQueryParamType),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const CreatePlaylistQueryParamType$outboundSchema: z.ZodNativeEnum<
typeof CreatePlaylistQueryParamType
> = CreatePlaylistQueryParamType$inboundSchema;
export const CreatePlaylistQueryParamType$outboundSchema: z.ZodType<
CreatePlaylistQueryParamTypeOpen,
z.ZodTypeDef,
CreatePlaylistQueryParamTypeOpen
> = z.union([
z.nativeEnum(CreatePlaylistQueryParamType),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -27,6 +32,19 @@ export enum GetActorsLibraryQueryParamType {
Album = 9,
Track = 10,
}
/**
* The type of media to retrieve or filter by.
*
* @remarks
* 1 = movie
* 2 = show
* 3 = season
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
export type GetActorsLibraryQueryParamTypeOpen = OpenEnum<
typeof GetActorsLibraryQueryParamType
>;
export type GetActorsLibraryRequest = {
/**
@@ -46,7 +64,7 @@ export type GetActorsLibraryRequest = {
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
type: GetActorsLibraryQueryParamType;
type: GetActorsLibraryQueryParamTypeOpen;
};
export type GetActorsLibraryDirectory = {
@@ -150,14 +168,25 @@ export type GetActorsLibraryResponse = {
};
/** @internal */
export const GetActorsLibraryQueryParamType$inboundSchema: z.ZodNativeEnum<
typeof GetActorsLibraryQueryParamType
> = z.nativeEnum(GetActorsLibraryQueryParamType);
export const GetActorsLibraryQueryParamType$inboundSchema: z.ZodType<
GetActorsLibraryQueryParamTypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetActorsLibraryQueryParamType),
z.number().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetActorsLibraryQueryParamType$outboundSchema: z.ZodNativeEnum<
typeof GetActorsLibraryQueryParamType
> = GetActorsLibraryQueryParamType$inboundSchema;
export const GetActorsLibraryQueryParamType$outboundSchema: z.ZodType<
GetActorsLibraryQueryParamTypeOpen,
z.ZodTypeDef,
GetActorsLibraryQueryParamTypeOpen
> = z.union([
z.nativeEnum(GetActorsLibraryQueryParamType),
z.number().and(z.custom<Unrecognized<number>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -19,6 +24,10 @@ export enum GetAllLibrariesType {
Artist = "artist",
Album = "album",
}
/**
* The library type
*/
export type GetAllLibrariesTypeOpen = OpenEnum<typeof GetAllLibrariesType>;
/**
* UNKNOWN
@@ -68,7 +77,7 @@ export type GetAllLibrariesDirectory = {
* The library key representing the unique identifier
*/
key: string;
type: GetAllLibrariesType;
type: GetAllLibrariesTypeOpen;
/**
* The title of the library
*/
@@ -160,14 +169,25 @@ export type GetAllLibrariesResponse = {
};
/** @internal */
export const GetAllLibrariesType$inboundSchema: z.ZodNativeEnum<
typeof GetAllLibrariesType
> = z.nativeEnum(GetAllLibrariesType);
export const GetAllLibrariesType$inboundSchema: z.ZodType<
GetAllLibrariesTypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetAllLibrariesType),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetAllLibrariesType$outboundSchema: z.ZodNativeEnum<
typeof GetAllLibrariesType
> = GetAllLibrariesType$inboundSchema;
export const GetAllLibrariesType$outboundSchema: z.ZodType<
GetAllLibrariesTypeOpen,
z.ZodTypeDef,
GetAllLibrariesTypeOpen
> = z.union([
z.nativeEnum(GetAllLibrariesType),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { RFCDate } from "../../types/rfcdate.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -28,6 +33,19 @@ export enum GetAllMediaLibraryQueryParamType {
Album = 9,
Track = 10,
}
/**
* The type of media to retrieve or filter by.
*
* @remarks
* 1 = movie
* 2 = show
* 3 = season
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
export type GetAllMediaLibraryQueryParamTypeOpen = OpenEnum<
typeof GetAllMediaLibraryQueryParamType
>;
/**
* Adds the Meta object to the response
@@ -82,7 +100,7 @@ export type GetAllMediaLibraryRequest = {
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
type: GetAllMediaLibraryQueryParamType;
type: GetAllMediaLibraryQueryParamTypeOpen;
/**
* Adds the Meta object to the response
*
@@ -217,6 +235,14 @@ export enum GetAllMediaLibraryLibraryType {
Artist = "artist",
Album = "album",
}
/**
* The type of media content
*
* @remarks
*/
export type GetAllMediaLibraryLibraryTypeOpen = OpenEnum<
typeof GetAllMediaLibraryLibraryType
>;
export enum GetAllMediaLibraryLibraryResponseType {
CoverPoster = "coverPoster",
@@ -224,10 +250,13 @@ export enum GetAllMediaLibraryLibraryResponseType {
Snapshot = "snapshot",
ClearLogo = "clearLogo",
}
export type GetAllMediaLibraryLibraryResponseTypeOpen = OpenEnum<
typeof GetAllMediaLibraryLibraryResponseType
>;
export type GetAllMediaLibraryImage = {
alt: string;
type: GetAllMediaLibraryLibraryResponseType;
type: GetAllMediaLibraryLibraryResponseTypeOpen;
url: string;
};
@@ -666,7 +695,7 @@ export type GetAllMediaLibraryMetadata = {
* The studio that produced the media item.
*/
studio?: string | undefined;
type: GetAllMediaLibraryLibraryType;
type: GetAllMediaLibraryLibraryTypeOpen;
/**
* The title of the media item.
*/
@@ -976,14 +1005,25 @@ export type GetAllMediaLibraryResponse = {
};
/** @internal */
export const GetAllMediaLibraryQueryParamType$inboundSchema: z.ZodNativeEnum<
typeof GetAllMediaLibraryQueryParamType
> = z.nativeEnum(GetAllMediaLibraryQueryParamType);
export const GetAllMediaLibraryQueryParamType$inboundSchema: z.ZodType<
GetAllMediaLibraryQueryParamTypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetAllMediaLibraryQueryParamType),
z.number().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetAllMediaLibraryQueryParamType$outboundSchema: z.ZodNativeEnum<
typeof GetAllMediaLibraryQueryParamType
> = GetAllMediaLibraryQueryParamType$inboundSchema;
export const GetAllMediaLibraryQueryParamType$outboundSchema: z.ZodType<
GetAllMediaLibraryQueryParamTypeOpen,
z.ZodTypeDef,
GetAllMediaLibraryQueryParamTypeOpen
> = z.union([
z.nativeEnum(GetAllMediaLibraryQueryParamType),
z.number().and(z.custom<Unrecognized<number>>()),
]);
/**
* @internal
@@ -1745,14 +1785,25 @@ export function getAllMediaLibraryMetaFromJSON(
}
/** @internal */
export const GetAllMediaLibraryLibraryType$inboundSchema: z.ZodNativeEnum<
typeof GetAllMediaLibraryLibraryType
> = z.nativeEnum(GetAllMediaLibraryLibraryType);
export const GetAllMediaLibraryLibraryType$inboundSchema: z.ZodType<
GetAllMediaLibraryLibraryTypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetAllMediaLibraryLibraryType),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetAllMediaLibraryLibraryType$outboundSchema: z.ZodNativeEnum<
typeof GetAllMediaLibraryLibraryType
> = GetAllMediaLibraryLibraryType$inboundSchema;
export const GetAllMediaLibraryLibraryType$outboundSchema: z.ZodType<
GetAllMediaLibraryLibraryTypeOpen,
z.ZodTypeDef,
GetAllMediaLibraryLibraryTypeOpen
> = z.union([
z.nativeEnum(GetAllMediaLibraryLibraryType),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -1766,15 +1817,25 @@ export namespace GetAllMediaLibraryLibraryType$ {
}
/** @internal */
export const GetAllMediaLibraryLibraryResponseType$inboundSchema:
z.ZodNativeEnum<typeof GetAllMediaLibraryLibraryResponseType> = z.nativeEnum(
GetAllMediaLibraryLibraryResponseType,
);
export const GetAllMediaLibraryLibraryResponseType$inboundSchema: z.ZodType<
GetAllMediaLibraryLibraryResponseTypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetAllMediaLibraryLibraryResponseType),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetAllMediaLibraryLibraryResponseType$outboundSchema:
z.ZodNativeEnum<typeof GetAllMediaLibraryLibraryResponseType> =
GetAllMediaLibraryLibraryResponseType$inboundSchema;
export const GetAllMediaLibraryLibraryResponseType$outboundSchema: z.ZodType<
GetAllMediaLibraryLibraryResponseTypeOpen,
z.ZodTypeDef,
GetAllMediaLibraryLibraryResponseTypeOpen
> = z.union([
z.nativeEnum(GetAllMediaLibraryLibraryResponseType),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -27,6 +32,19 @@ export enum GetCountriesLibraryQueryParamType {
Album = 9,
Track = 10,
}
/**
* The type of media to retrieve or filter by.
*
* @remarks
* 1 = movie
* 2 = show
* 3 = season
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
export type GetCountriesLibraryQueryParamTypeOpen = OpenEnum<
typeof GetCountriesLibraryQueryParamType
>;
export type GetCountriesLibraryRequest = {
/**
@@ -46,7 +64,7 @@ export type GetCountriesLibraryRequest = {
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
type: GetCountriesLibraryQueryParamType;
type: GetCountriesLibraryQueryParamTypeOpen;
};
export type GetCountriesLibraryDirectory = {
@@ -134,14 +152,25 @@ export type GetCountriesLibraryResponse = {
};
/** @internal */
export const GetCountriesLibraryQueryParamType$inboundSchema: z.ZodNativeEnum<
typeof GetCountriesLibraryQueryParamType
> = z.nativeEnum(GetCountriesLibraryQueryParamType);
export const GetCountriesLibraryQueryParamType$inboundSchema: z.ZodType<
GetCountriesLibraryQueryParamTypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetCountriesLibraryQueryParamType),
z.number().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetCountriesLibraryQueryParamType$outboundSchema: z.ZodNativeEnum<
typeof GetCountriesLibraryQueryParamType
> = GetCountriesLibraryQueryParamType$inboundSchema;
export const GetCountriesLibraryQueryParamType$outboundSchema: z.ZodType<
GetCountriesLibraryQueryParamTypeOpen,
z.ZodTypeDef,
GetCountriesLibraryQueryParamTypeOpen
> = z.union([
z.nativeEnum(GetCountriesLibraryQueryParamType),
z.number().and(z.custom<Unrecognized<number>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -27,6 +32,19 @@ export enum GetGenresLibraryQueryParamType {
Album = 9,
Track = 10,
}
/**
* The type of media to retrieve or filter by.
*
* @remarks
* 1 = movie
* 2 = show
* 3 = season
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
export type GetGenresLibraryQueryParamTypeOpen = OpenEnum<
typeof GetGenresLibraryQueryParamType
>;
export type GetGenresLibraryRequest = {
/**
@@ -46,7 +64,7 @@ export type GetGenresLibraryRequest = {
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
type: GetGenresLibraryQueryParamType;
type: GetGenresLibraryQueryParamTypeOpen;
};
export type GetGenresLibraryDirectory = {
@@ -135,14 +153,25 @@ export type GetGenresLibraryResponse = {
};
/** @internal */
export const GetGenresLibraryQueryParamType$inboundSchema: z.ZodNativeEnum<
typeof GetGenresLibraryQueryParamType
> = z.nativeEnum(GetGenresLibraryQueryParamType);
export const GetGenresLibraryQueryParamType$inboundSchema: z.ZodType<
GetGenresLibraryQueryParamTypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetGenresLibraryQueryParamType),
z.number().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetGenresLibraryQueryParamType$outboundSchema: z.ZodNativeEnum<
typeof GetGenresLibraryQueryParamType
> = GetGenresLibraryQueryParamType$inboundSchema;
export const GetGenresLibraryQueryParamType$outboundSchema: z.ZodType<
GetGenresLibraryQueryParamTypeOpen,
z.ZodTypeDef,
GetGenresLibraryQueryParamTypeOpen
> = z.union([
z.nativeEnum(GetGenresLibraryQueryParamType),
z.number().and(z.custom<Unrecognized<number>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { RFCDate } from "../../types/rfcdate.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -30,6 +35,10 @@ export enum Tag {
Folder = "folder",
Albums = "albums",
}
/**
* A key representing a specific tag within the section.
*/
export type TagOpen = OpenEnum<typeof Tag>;
/**
* Adds the Guids object to the response
@@ -60,6 +69,19 @@ export enum GetLibraryItemsQueryParamType {
Album = 9,
Track = 10,
}
/**
* The type of media to retrieve or filter by.
*
* @remarks
* 1 = movie
* 2 = show
* 3 = season
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
export type GetLibraryItemsQueryParamTypeOpen = OpenEnum<
typeof GetLibraryItemsQueryParamType
>;
/**
* Adds the Meta object to the response
@@ -75,7 +97,7 @@ export type GetLibraryItemsRequest = {
/**
* A key representing a specific tag within the section.
*/
tag: Tag;
tag: TagOpen;
/**
* Adds the Guids object to the response
*
@@ -92,7 +114,7 @@ export type GetLibraryItemsRequest = {
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
type: GetLibraryItemsQueryParamType;
type: GetLibraryItemsQueryParamTypeOpen;
/**
* The unique key of the Plex library.
*
@@ -215,6 +237,14 @@ export enum GetLibraryItemsLibraryType {
Artist = "artist",
Album = "album",
}
/**
* The type of media content
*
* @remarks
*/
export type GetLibraryItemsLibraryTypeOpen = OpenEnum<
typeof GetLibraryItemsLibraryType
>;
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
@@ -224,6 +254,10 @@ export enum FlattenSeasons {
Hide = "0",
Show = "1",
}
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
export type FlattenSeasonsOpen = OpenEnum<typeof FlattenSeasons>;
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
@@ -233,6 +267,10 @@ export enum EpisodeSort {
OldestFirst = "0",
NewestFirst = "1",
}
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
export type EpisodeSortOpen = OpenEnum<typeof EpisodeSort>;
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
@@ -241,6 +279,12 @@ export enum EnableCreditsMarkerGeneration {
LibraryDefault = "-1",
Disabled = "0",
}
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
export type EnableCreditsMarkerGenerationOpen = OpenEnum<
typeof EnableCreditsMarkerGeneration
>;
/**
* Setting that indicates the episode ordering for the show.
@@ -259,6 +303,17 @@ export enum ShowOrdering {
TvdbDvd = "dvd",
TvdbAbsolute = "absolute",
}
/**
* Setting that indicates the episode ordering for the show.
*
* @remarks
* None = Library default,
* tmdbAiring = The Movie Database (Aired),
* aired = TheTVDB (Aired),
* dvd = TheTVDB (DVD),
* absolute = TheTVDB (Absolute)).
*/
export type ShowOrderingOpen = OpenEnum<typeof ShowOrdering>;
export enum GetLibraryItemsOptimizedForStreaming {
Disable = 0,
@@ -544,10 +599,13 @@ export enum GetLibraryItemsLibraryResponse200Type {
Snapshot = "snapshot",
ClearLogo = "clearLogo",
}
export type GetLibraryItemsLibraryResponse200TypeOpen = OpenEnum<
typeof GetLibraryItemsLibraryResponse200Type
>;
export type GetLibraryItemsImage = {
alt: string;
type: GetLibraryItemsLibraryResponse200Type;
type: GetLibraryItemsLibraryResponse200TypeOpen;
url: string;
};
@@ -571,7 +629,7 @@ export type GetLibraryItemsMetadata = {
*
* @remarks
*/
type: GetLibraryItemsLibraryType;
type: GetLibraryItemsLibraryTypeOpen;
title: string;
slug?: string | undefined;
contentRating?: string | undefined;
@@ -584,15 +642,15 @@ export type GetLibraryItemsMetadata = {
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
flattenSeasons?: FlattenSeasons | undefined;
flattenSeasons?: FlattenSeasonsOpen | undefined;
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
episodeSort?: EpisodeSort | undefined;
episodeSort?: EpisodeSortOpen | undefined;
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
enableCreditsMarkerGeneration?: EnableCreditsMarkerGeneration | undefined;
enableCreditsMarkerGeneration?: EnableCreditsMarkerGenerationOpen | undefined;
/**
* Setting that indicates the episode ordering for the show.
*
@@ -603,7 +661,7 @@ export type GetLibraryItemsMetadata = {
* dvd = TheTVDB (DVD),
* absolute = TheTVDB (Absolute)).
*/
showOrdering?: ShowOrdering | undefined;
showOrdering?: ShowOrderingOpen | undefined;
thumb?: string | undefined;
art?: string | undefined;
banner?: string | undefined;
@@ -830,11 +888,18 @@ export type GetLibraryItemsResponse = {
};
/** @internal */
export const Tag$inboundSchema: z.ZodNativeEnum<typeof Tag> = z.nativeEnum(Tag);
export const Tag$inboundSchema: z.ZodType<TagOpen, z.ZodTypeDef, unknown> = z
.union([
z.nativeEnum(Tag),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const Tag$outboundSchema: z.ZodNativeEnum<typeof Tag> =
Tag$inboundSchema;
export const Tag$outboundSchema: z.ZodType<TagOpen, z.ZodTypeDef, TagOpen> = z
.union([
z.nativeEnum(Tag),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -867,14 +932,25 @@ export namespace IncludeGuids$ {
}
/** @internal */
export const GetLibraryItemsQueryParamType$inboundSchema: z.ZodNativeEnum<
typeof GetLibraryItemsQueryParamType
> = z.nativeEnum(GetLibraryItemsQueryParamType);
export const GetLibraryItemsQueryParamType$inboundSchema: z.ZodType<
GetLibraryItemsQueryParamTypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetLibraryItemsQueryParamType),
z.number().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetLibraryItemsQueryParamType$outboundSchema: z.ZodNativeEnum<
typeof GetLibraryItemsQueryParamType
> = GetLibraryItemsQueryParamType$inboundSchema;
export const GetLibraryItemsQueryParamType$outboundSchema: z.ZodType<
GetLibraryItemsQueryParamTypeOpen,
z.ZodTypeDef,
GetLibraryItemsQueryParamTypeOpen
> = z.union([
z.nativeEnum(GetLibraryItemsQueryParamType),
z.number().and(z.custom<Unrecognized<number>>()),
]);
/**
* @internal
@@ -1463,14 +1539,25 @@ export function getLibraryItemsFieldTypeFromJSON(
}
/** @internal */
export const GetLibraryItemsLibraryType$inboundSchema: z.ZodNativeEnum<
typeof GetLibraryItemsLibraryType
> = z.nativeEnum(GetLibraryItemsLibraryType);
export const GetLibraryItemsLibraryType$inboundSchema: z.ZodType<
GetLibraryItemsLibraryTypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetLibraryItemsLibraryType),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetLibraryItemsLibraryType$outboundSchema: z.ZodNativeEnum<
typeof GetLibraryItemsLibraryType
> = GetLibraryItemsLibraryType$inboundSchema;
export const GetLibraryItemsLibraryType$outboundSchema: z.ZodType<
GetLibraryItemsLibraryTypeOpen,
z.ZodTypeDef,
GetLibraryItemsLibraryTypeOpen
> = z.union([
z.nativeEnum(GetLibraryItemsLibraryType),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -1484,14 +1571,25 @@ export namespace GetLibraryItemsLibraryType$ {
}
/** @internal */
export const FlattenSeasons$inboundSchema: z.ZodNativeEnum<
typeof FlattenSeasons
> = z.nativeEnum(FlattenSeasons);
export const FlattenSeasons$inboundSchema: z.ZodType<
FlattenSeasonsOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(FlattenSeasons),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const FlattenSeasons$outboundSchema: z.ZodNativeEnum<
typeof FlattenSeasons
> = FlattenSeasons$inboundSchema;
export const FlattenSeasons$outboundSchema: z.ZodType<
FlattenSeasonsOpen,
z.ZodTypeDef,
FlattenSeasonsOpen
> = z.union([
z.nativeEnum(FlattenSeasons),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -1505,12 +1603,25 @@ export namespace FlattenSeasons$ {
}
/** @internal */
export const EpisodeSort$inboundSchema: z.ZodNativeEnum<typeof EpisodeSort> = z
.nativeEnum(EpisodeSort);
export const EpisodeSort$inboundSchema: z.ZodType<
EpisodeSortOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(EpisodeSort),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const EpisodeSort$outboundSchema: z.ZodNativeEnum<typeof EpisodeSort> =
EpisodeSort$inboundSchema;
export const EpisodeSort$outboundSchema: z.ZodType<
EpisodeSortOpen,
z.ZodTypeDef,
EpisodeSortOpen
> = z.union([
z.nativeEnum(EpisodeSort),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -1524,14 +1635,25 @@ export namespace EpisodeSort$ {
}
/** @internal */
export const EnableCreditsMarkerGeneration$inboundSchema: z.ZodNativeEnum<
typeof EnableCreditsMarkerGeneration
> = z.nativeEnum(EnableCreditsMarkerGeneration);
export const EnableCreditsMarkerGeneration$inboundSchema: z.ZodType<
EnableCreditsMarkerGenerationOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(EnableCreditsMarkerGeneration),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const EnableCreditsMarkerGeneration$outboundSchema: z.ZodNativeEnum<
typeof EnableCreditsMarkerGeneration
> = EnableCreditsMarkerGeneration$inboundSchema;
export const EnableCreditsMarkerGeneration$outboundSchema: z.ZodType<
EnableCreditsMarkerGenerationOpen,
z.ZodTypeDef,
EnableCreditsMarkerGenerationOpen
> = z.union([
z.nativeEnum(EnableCreditsMarkerGeneration),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -1545,12 +1667,25 @@ export namespace EnableCreditsMarkerGeneration$ {
}
/** @internal */
export const ShowOrdering$inboundSchema: z.ZodNativeEnum<typeof ShowOrdering> =
z.nativeEnum(ShowOrdering);
export const ShowOrdering$inboundSchema: z.ZodType<
ShowOrderingOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(ShowOrdering),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const ShowOrdering$outboundSchema: z.ZodNativeEnum<typeof ShowOrdering> =
ShowOrdering$inboundSchema;
export const ShowOrdering$outboundSchema: z.ZodType<
ShowOrderingOpen,
z.ZodTypeDef,
ShowOrderingOpen
> = z.union([
z.nativeEnum(ShowOrdering),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -2555,15 +2690,25 @@ export function metaDataRatingFromJSON(
}
/** @internal */
export const GetLibraryItemsLibraryResponse200Type$inboundSchema:
z.ZodNativeEnum<typeof GetLibraryItemsLibraryResponse200Type> = z.nativeEnum(
GetLibraryItemsLibraryResponse200Type,
);
export const GetLibraryItemsLibraryResponse200Type$inboundSchema: z.ZodType<
GetLibraryItemsLibraryResponse200TypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetLibraryItemsLibraryResponse200Type),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetLibraryItemsLibraryResponse200Type$outboundSchema:
z.ZodNativeEnum<typeof GetLibraryItemsLibraryResponse200Type> =
GetLibraryItemsLibraryResponse200Type$inboundSchema;
export const GetLibraryItemsLibraryResponse200Type$outboundSchema: z.ZodType<
GetLibraryItemsLibraryResponse200TypeOpen,
z.ZodTypeDef,
GetLibraryItemsLibraryResponse200TypeOpen
> = z.union([
z.nativeEnum(GetLibraryItemsLibraryResponse200Type),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { RFCDate } from "../../types/rfcdate.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -28,6 +33,19 @@ export enum GetPlaylistContentsQueryParamType {
Album = 9,
Track = 10,
}
/**
* The type of media to retrieve or filter by.
*
* @remarks
* 1 = movie
* 2 = show
* 3 = season
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
export type GetPlaylistContentsQueryParamTypeOpen = OpenEnum<
typeof GetPlaylistContentsQueryParamType
>;
export type GetPlaylistContentsRequest = {
/**
@@ -44,7 +62,7 @@ export type GetPlaylistContentsRequest = {
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
type: GetPlaylistContentsQueryParamType;
type: GetPlaylistContentsQueryParamTypeOpen;
};
export type GetPlaylistContentsPart = {
@@ -174,14 +192,25 @@ export type GetPlaylistContentsResponse = {
};
/** @internal */
export const GetPlaylistContentsQueryParamType$inboundSchema: z.ZodNativeEnum<
typeof GetPlaylistContentsQueryParamType
> = z.nativeEnum(GetPlaylistContentsQueryParamType);
export const GetPlaylistContentsQueryParamType$inboundSchema: z.ZodType<
GetPlaylistContentsQueryParamTypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetPlaylistContentsQueryParamType),
z.number().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetPlaylistContentsQueryParamType$outboundSchema: z.ZodNativeEnum<
typeof GetPlaylistContentsQueryParamType
> = GetPlaylistContentsQueryParamType$inboundSchema;
export const GetPlaylistContentsQueryParamType$outboundSchema: z.ZodType<
GetPlaylistContentsQueryParamTypeOpen,
z.ZodTypeDef,
GetPlaylistContentsQueryParamTypeOpen
> = z.union([
z.nativeEnum(GetPlaylistContentsQueryParamType),
z.number().and(z.custom<Unrecognized<number>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -16,6 +21,10 @@ export enum PlaylistType {
Video = "video",
Photo = "photo",
}
/**
* limit to a type of playlist.
*/
export type PlaylistTypeOpen = OpenEnum<typeof PlaylistType>;
/**
* type of playlists to return (default is all).
@@ -24,16 +33,20 @@ export enum QueryParamSmart {
Zero = 0,
One = 1,
}
/**
* type of playlists to return (default is all).
*/
export type QueryParamSmartOpen = OpenEnum<typeof QueryParamSmart>;
export type GetPlaylistsRequest = {
/**
* limit to a type of playlist.
*/
playlistType?: PlaylistType | undefined;
playlistType?: PlaylistTypeOpen | undefined;
/**
* type of playlists to return (default is all).
*/
smart?: QueryParamSmart | undefined;
smart?: QueryParamSmartOpen | undefined;
};
export type GetPlaylistsMetadata = {
@@ -87,12 +100,25 @@ export type GetPlaylistsResponse = {
};
/** @internal */
export const PlaylistType$inboundSchema: z.ZodNativeEnum<typeof PlaylistType> =
z.nativeEnum(PlaylistType);
export const PlaylistType$inboundSchema: z.ZodType<
PlaylistTypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(PlaylistType),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const PlaylistType$outboundSchema: z.ZodNativeEnum<typeof PlaylistType> =
PlaylistType$inboundSchema;
export const PlaylistType$outboundSchema: z.ZodType<
PlaylistTypeOpen,
z.ZodTypeDef,
PlaylistTypeOpen
> = z.union([
z.nativeEnum(PlaylistType),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -106,14 +132,25 @@ export namespace PlaylistType$ {
}
/** @internal */
export const QueryParamSmart$inboundSchema: z.ZodNativeEnum<
typeof QueryParamSmart
> = z.nativeEnum(QueryParamSmart);
export const QueryParamSmart$inboundSchema: z.ZodType<
QueryParamSmartOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(QueryParamSmart),
z.number().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const QueryParamSmart$outboundSchema: z.ZodNativeEnum<
typeof QueryParamSmart
> = QueryParamSmart$inboundSchema;
export const QueryParamSmart$outboundSchema: z.ZodType<
QueryParamSmartOpen,
z.ZodTypeDef,
QueryParamSmartOpen
> = z.union([
z.nativeEnum(QueryParamSmart),
z.number().and(z.custom<Unrecognized<number>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { RFCDate } from "../../types/rfcdate.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -28,6 +33,17 @@ export enum Type {
Album = 9,
Track = 10,
}
/**
* The type of media to retrieve or filter by.
*
* @remarks
* 1 = movie
* 2 = show
* 3 = season
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
export type TypeOpen = OpenEnum<typeof Type>;
/**
* Adds the Meta object to the response
@@ -62,7 +78,7 @@ export type GetRecentlyAddedRequest = {
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
type: Type;
type: TypeOpen;
/**
* Adds the Meta object to the response
*
@@ -188,6 +204,14 @@ export enum GetRecentlyAddedHubsType {
Artist = "artist",
Album = "album",
}
/**
* The type of media content
*
* @remarks
*/
export type GetRecentlyAddedHubsTypeOpen = OpenEnum<
typeof GetRecentlyAddedHubsType
>;
export enum GetRecentlyAddedHubsResponseType {
CoverPoster = "coverPoster",
@@ -195,10 +219,13 @@ export enum GetRecentlyAddedHubsResponseType {
Snapshot = "snapshot",
ClearLogo = "clearLogo",
}
export type GetRecentlyAddedHubsResponseTypeOpen = OpenEnum<
typeof GetRecentlyAddedHubsResponseType
>;
export type GetRecentlyAddedImage = {
alt: string;
type: GetRecentlyAddedHubsResponseType;
type: GetRecentlyAddedHubsResponseTypeOpen;
url: string;
};
@@ -918,7 +945,7 @@ export type GetRecentlyAddedMetadata = {
* The title of the media item.
*/
title: string;
type: GetRecentlyAddedHubsType;
type: GetRecentlyAddedHubsTypeOpen;
/**
* Unix epoch datetime in seconds
*/
@@ -1019,13 +1046,18 @@ export type GetRecentlyAddedResponse = {
};
/** @internal */
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
Type,
);
export const Type$inboundSchema: z.ZodType<TypeOpen, z.ZodTypeDef, unknown> = z
.union([
z.nativeEnum(Type),
z.number().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
Type$inboundSchema;
export const Type$outboundSchema: z.ZodType<TypeOpen, z.ZodTypeDef, TypeOpen> =
z.union([
z.nativeEnum(Type),
z.number().and(z.custom<Unrecognized<number>>()),
]);
/**
* @internal
@@ -1667,14 +1699,25 @@ export function metaFromJSON(
}
/** @internal */
export const GetRecentlyAddedHubsType$inboundSchema: z.ZodNativeEnum<
typeof GetRecentlyAddedHubsType
> = z.nativeEnum(GetRecentlyAddedHubsType);
export const GetRecentlyAddedHubsType$inboundSchema: z.ZodType<
GetRecentlyAddedHubsTypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetRecentlyAddedHubsType),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetRecentlyAddedHubsType$outboundSchema: z.ZodNativeEnum<
typeof GetRecentlyAddedHubsType
> = GetRecentlyAddedHubsType$inboundSchema;
export const GetRecentlyAddedHubsType$outboundSchema: z.ZodType<
GetRecentlyAddedHubsTypeOpen,
z.ZodTypeDef,
GetRecentlyAddedHubsTypeOpen
> = z.union([
z.nativeEnum(GetRecentlyAddedHubsType),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -1688,14 +1731,25 @@ export namespace GetRecentlyAddedHubsType$ {
}
/** @internal */
export const GetRecentlyAddedHubsResponseType$inboundSchema: z.ZodNativeEnum<
typeof GetRecentlyAddedHubsResponseType
> = z.nativeEnum(GetRecentlyAddedHubsResponseType);
export const GetRecentlyAddedHubsResponseType$inboundSchema: z.ZodType<
GetRecentlyAddedHubsResponseTypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetRecentlyAddedHubsResponseType),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetRecentlyAddedHubsResponseType$outboundSchema: z.ZodNativeEnum<
typeof GetRecentlyAddedHubsResponseType
> = GetRecentlyAddedHubsResponseType$inboundSchema;
export const GetRecentlyAddedHubsResponseType$outboundSchema: z.ZodType<
GetRecentlyAddedHubsResponseTypeOpen,
z.ZodTypeDef,
GetRecentlyAddedHubsResponseTypeOpen
> = z.union([
z.nativeEnum(GetRecentlyAddedHubsResponseType),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -27,6 +32,17 @@ export enum QueryParamType {
Album = 9,
Track = 10,
}
/**
* The type of media to retrieve or filter by.
*
* @remarks
* 1 = movie
* 2 = show
* 3 = season
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
export type QueryParamTypeOpen = OpenEnum<typeof QueryParamType>;
/**
* Adds the Meta object to the response
@@ -55,7 +71,7 @@ export type GetRecentlyAddedLibraryRequest = {
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
type: QueryParamType;
type: QueryParamTypeOpen;
/**
* Adds the Meta object to the response
*
@@ -289,14 +305,25 @@ export type GetRecentlyAddedLibraryResponse = {
};
/** @internal */
export const QueryParamType$inboundSchema: z.ZodNativeEnum<
typeof QueryParamType
> = z.nativeEnum(QueryParamType);
export const QueryParamType$inboundSchema: z.ZodType<
QueryParamTypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(QueryParamType),
z.number().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const QueryParamType$outboundSchema: z.ZodNativeEnum<
typeof QueryParamType
> = QueryParamType$inboundSchema;
export const QueryParamType$outboundSchema: z.ZodType<
QueryParamTypeOpen,
z.ZodTypeDef,
QueryParamTypeOpen
> = z.union([
z.nativeEnum(QueryParamType),
z.number().and(z.custom<Unrecognized<number>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { RFCDate } from "../../types/rfcdate.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -16,6 +21,7 @@ export enum SearchTypes {
People = "people",
Tv = "tv",
}
export type SearchTypesOpen = OpenEnum<typeof SearchTypes>;
/**
* Whether to include collections in the search results.
@@ -51,7 +57,7 @@ export type GetSearchAllLibrariesRequest = {
*
* @remarks
*/
searchTypes?: Array<SearchTypes> | undefined;
searchTypes?: Array<SearchTypesOpen> | undefined;
/**
* Whether to include collections in the search results.
*/
@@ -79,6 +85,14 @@ export enum GetSearchAllLibrariesType {
Artist = "artist",
Album = "album",
}
/**
* The type of media content
*
* @remarks
*/
export type GetSearchAllLibrariesTypeOpen = OpenEnum<
typeof GetSearchAllLibrariesType
>;
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
@@ -88,6 +102,12 @@ export enum GetSearchAllLibrariesFlattenSeasons {
Hide = "0",
Show = "1",
}
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
export type GetSearchAllLibrariesFlattenSeasonsOpen = OpenEnum<
typeof GetSearchAllLibrariesFlattenSeasons
>;
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
@@ -97,6 +117,12 @@ export enum GetSearchAllLibrariesEpisodeSort {
OldestFirst = "0",
NewestFirst = "1",
}
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
export type GetSearchAllLibrariesEpisodeSortOpen = OpenEnum<
typeof GetSearchAllLibrariesEpisodeSort
>;
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
@@ -105,6 +131,12 @@ export enum GetSearchAllLibrariesEnableCreditsMarkerGeneration {
LibraryDefault = "-1",
Disabled = "0",
}
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
export type GetSearchAllLibrariesEnableCreditsMarkerGenerationOpen = OpenEnum<
typeof GetSearchAllLibrariesEnableCreditsMarkerGeneration
>;
/**
* Setting that indicates the episode ordering for the show.
@@ -123,6 +155,19 @@ export enum GetSearchAllLibrariesShowOrdering {
TvdbDvd = "dvd",
TvdbAbsolute = "absolute",
}
/**
* Setting that indicates the episode ordering for the show.
*
* @remarks
* None = Library default,
* tmdbAiring = The Movie Database (Aired),
* aired = TheTVDB (Aired),
* dvd = TheTVDB (DVD),
* absolute = TheTVDB (Absolute)).
*/
export type GetSearchAllLibrariesShowOrderingOpen = OpenEnum<
typeof GetSearchAllLibrariesShowOrdering
>;
export enum GetSearchAllLibrariesOptimizedForStreaming {
Disable = 0,
@@ -410,10 +455,13 @@ export enum GetSearchAllLibrariesLibraryType {
Snapshot = "snapshot",
ClearLogo = "clearLogo",
}
export type GetSearchAllLibrariesLibraryTypeOpen = OpenEnum<
typeof GetSearchAllLibrariesLibraryType
>;
export type GetSearchAllLibrariesImage = {
alt: string;
type: GetSearchAllLibrariesLibraryType;
type: GetSearchAllLibrariesLibraryTypeOpen;
url: string;
};
@@ -437,7 +485,7 @@ export type GetSearchAllLibrariesMetadata = {
*
* @remarks
*/
type: GetSearchAllLibrariesType;
type: GetSearchAllLibrariesTypeOpen;
title: string;
slug?: string | undefined;
contentRating?: string | undefined;
@@ -450,16 +498,16 @@ export type GetSearchAllLibrariesMetadata = {
/**
* Setting that indicates if seasons are set to hidden for the show. (-1 = Library default, 0 = Hide, 1 = Show).
*/
flattenSeasons?: GetSearchAllLibrariesFlattenSeasons | undefined;
flattenSeasons?: GetSearchAllLibrariesFlattenSeasonsOpen | undefined;
/**
* Setting that indicates how episodes are sorted for the show. (-1 = Library default, 0 = Oldest first, 1 = Newest first).
*/
episodeSort?: GetSearchAllLibrariesEpisodeSort | undefined;
episodeSort?: GetSearchAllLibrariesEpisodeSortOpen | undefined;
/**
* Setting that indicates if credits markers detection is enabled. (-1 = Library default, 0 = Disabled).
*/
enableCreditsMarkerGeneration?:
| GetSearchAllLibrariesEnableCreditsMarkerGeneration
| GetSearchAllLibrariesEnableCreditsMarkerGenerationOpen
| undefined;
/**
* Setting that indicates the episode ordering for the show.
@@ -471,7 +519,7 @@ export type GetSearchAllLibrariesMetadata = {
* dvd = TheTVDB (DVD),
* absolute = TheTVDB (Absolute)).
*/
showOrdering?: GetSearchAllLibrariesShowOrdering | undefined;
showOrdering?: GetSearchAllLibrariesShowOrderingOpen | undefined;
thumb?: string | undefined;
art?: string | undefined;
banner?: string | undefined;
@@ -586,12 +634,25 @@ export type GetSearchAllLibrariesResponse = {
};
/** @internal */
export const SearchTypes$inboundSchema: z.ZodNativeEnum<typeof SearchTypes> = z
.nativeEnum(SearchTypes);
export const SearchTypes$inboundSchema: z.ZodType<
SearchTypesOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(SearchTypes),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const SearchTypes$outboundSchema: z.ZodNativeEnum<typeof SearchTypes> =
SearchTypes$inboundSchema;
export const SearchTypes$outboundSchema: z.ZodType<
SearchTypesOpen,
z.ZodTypeDef,
SearchTypesOpen
> = z.union([
z.nativeEnum(SearchTypes),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -738,14 +799,25 @@ export function getSearchAllLibrariesRequestFromJSON(
}
/** @internal */
export const GetSearchAllLibrariesType$inboundSchema: z.ZodNativeEnum<
typeof GetSearchAllLibrariesType
> = z.nativeEnum(GetSearchAllLibrariesType);
export const GetSearchAllLibrariesType$inboundSchema: z.ZodType<
GetSearchAllLibrariesTypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetSearchAllLibrariesType),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetSearchAllLibrariesType$outboundSchema: z.ZodNativeEnum<
typeof GetSearchAllLibrariesType
> = GetSearchAllLibrariesType$inboundSchema;
export const GetSearchAllLibrariesType$outboundSchema: z.ZodType<
GetSearchAllLibrariesTypeOpen,
z.ZodTypeDef,
GetSearchAllLibrariesTypeOpen
> = z.union([
z.nativeEnum(GetSearchAllLibrariesType),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -759,14 +831,25 @@ export namespace GetSearchAllLibrariesType$ {
}
/** @internal */
export const GetSearchAllLibrariesFlattenSeasons$inboundSchema: z.ZodNativeEnum<
typeof GetSearchAllLibrariesFlattenSeasons
> = z.nativeEnum(GetSearchAllLibrariesFlattenSeasons);
export const GetSearchAllLibrariesFlattenSeasons$inboundSchema: z.ZodType<
GetSearchAllLibrariesFlattenSeasonsOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetSearchAllLibrariesFlattenSeasons),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetSearchAllLibrariesFlattenSeasons$outboundSchema:
z.ZodNativeEnum<typeof GetSearchAllLibrariesFlattenSeasons> =
GetSearchAllLibrariesFlattenSeasons$inboundSchema;
export const GetSearchAllLibrariesFlattenSeasons$outboundSchema: z.ZodType<
GetSearchAllLibrariesFlattenSeasonsOpen,
z.ZodTypeDef,
GetSearchAllLibrariesFlattenSeasonsOpen
> = z.union([
z.nativeEnum(GetSearchAllLibrariesFlattenSeasons),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -782,14 +865,25 @@ export namespace GetSearchAllLibrariesFlattenSeasons$ {
}
/** @internal */
export const GetSearchAllLibrariesEpisodeSort$inboundSchema: z.ZodNativeEnum<
typeof GetSearchAllLibrariesEpisodeSort
> = z.nativeEnum(GetSearchAllLibrariesEpisodeSort);
export const GetSearchAllLibrariesEpisodeSort$inboundSchema: z.ZodType<
GetSearchAllLibrariesEpisodeSortOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetSearchAllLibrariesEpisodeSort),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetSearchAllLibrariesEpisodeSort$outboundSchema: z.ZodNativeEnum<
typeof GetSearchAllLibrariesEpisodeSort
> = GetSearchAllLibrariesEpisodeSort$inboundSchema;
export const GetSearchAllLibrariesEpisodeSort$outboundSchema: z.ZodType<
GetSearchAllLibrariesEpisodeSortOpen,
z.ZodTypeDef,
GetSearchAllLibrariesEpisodeSortOpen
> = z.union([
z.nativeEnum(GetSearchAllLibrariesEpisodeSort),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -804,13 +898,26 @@ export namespace GetSearchAllLibrariesEpisodeSort$ {
/** @internal */
export const GetSearchAllLibrariesEnableCreditsMarkerGeneration$inboundSchema:
z.ZodNativeEnum<typeof GetSearchAllLibrariesEnableCreditsMarkerGeneration> = z
.nativeEnum(GetSearchAllLibrariesEnableCreditsMarkerGeneration);
z.ZodType<
GetSearchAllLibrariesEnableCreditsMarkerGenerationOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetSearchAllLibrariesEnableCreditsMarkerGeneration),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetSearchAllLibrariesEnableCreditsMarkerGeneration$outboundSchema:
z.ZodNativeEnum<typeof GetSearchAllLibrariesEnableCreditsMarkerGeneration> =
GetSearchAllLibrariesEnableCreditsMarkerGeneration$inboundSchema;
z.ZodType<
GetSearchAllLibrariesEnableCreditsMarkerGenerationOpen,
z.ZodTypeDef,
GetSearchAllLibrariesEnableCreditsMarkerGenerationOpen
> = z.union([
z.nativeEnum(GetSearchAllLibrariesEnableCreditsMarkerGeneration),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -826,14 +933,25 @@ export namespace GetSearchAllLibrariesEnableCreditsMarkerGeneration$ {
}
/** @internal */
export const GetSearchAllLibrariesShowOrdering$inboundSchema: z.ZodNativeEnum<
typeof GetSearchAllLibrariesShowOrdering
> = z.nativeEnum(GetSearchAllLibrariesShowOrdering);
export const GetSearchAllLibrariesShowOrdering$inboundSchema: z.ZodType<
GetSearchAllLibrariesShowOrderingOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetSearchAllLibrariesShowOrdering),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetSearchAllLibrariesShowOrdering$outboundSchema: z.ZodNativeEnum<
typeof GetSearchAllLibrariesShowOrdering
> = GetSearchAllLibrariesShowOrdering$inboundSchema;
export const GetSearchAllLibrariesShowOrdering$outboundSchema: z.ZodType<
GetSearchAllLibrariesShowOrderingOpen,
z.ZodTypeDef,
GetSearchAllLibrariesShowOrderingOpen
> = z.union([
z.nativeEnum(GetSearchAllLibrariesShowOrdering),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -1873,14 +1991,25 @@ export function getSearchAllLibrariesMetaDataRatingFromJSON(
}
/** @internal */
export const GetSearchAllLibrariesLibraryType$inboundSchema: z.ZodNativeEnum<
typeof GetSearchAllLibrariesLibraryType
> = z.nativeEnum(GetSearchAllLibrariesLibraryType);
export const GetSearchAllLibrariesLibraryType$inboundSchema: z.ZodType<
GetSearchAllLibrariesLibraryTypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetSearchAllLibrariesLibraryType),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetSearchAllLibrariesLibraryType$outboundSchema: z.ZodNativeEnum<
typeof GetSearchAllLibrariesLibraryType
> = GetSearchAllLibrariesLibraryType$inboundSchema;
export const GetSearchAllLibrariesLibraryType$outboundSchema: z.ZodType<
GetSearchAllLibrariesLibraryTypeOpen,
z.ZodTypeDef,
GetSearchAllLibrariesLibraryTypeOpen
> = z.union([
z.nativeEnum(GetSearchAllLibrariesLibraryType),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -27,6 +32,19 @@ export enum GetSearchLibraryQueryParamType {
Album = 9,
Track = 10,
}
/**
* The type of media to retrieve or filter by.
*
* @remarks
* 1 = movie
* 2 = show
* 3 = season
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
export type GetSearchLibraryQueryParamTypeOpen = OpenEnum<
typeof GetSearchLibraryQueryParamType
>;
export type GetSearchLibraryRequest = {
/**
@@ -46,7 +64,7 @@ export type GetSearchLibraryRequest = {
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
type: GetSearchLibraryQueryParamType;
type: GetSearchLibraryQueryParamTypeOpen;
};
export type GetSearchLibraryMetadata = {
@@ -115,14 +133,25 @@ export type GetSearchLibraryResponse = {
};
/** @internal */
export const GetSearchLibraryQueryParamType$inboundSchema: z.ZodNativeEnum<
typeof GetSearchLibraryQueryParamType
> = z.nativeEnum(GetSearchLibraryQueryParamType);
export const GetSearchLibraryQueryParamType$inboundSchema: z.ZodType<
GetSearchLibraryQueryParamTypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetSearchLibraryQueryParamType),
z.number().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetSearchLibraryQueryParamType$outboundSchema: z.ZodNativeEnum<
typeof GetSearchLibraryQueryParamType
> = GetSearchLibraryQueryParamType$inboundSchema;
export const GetSearchLibraryQueryParamType$outboundSchema: z.ZodType<
GetSearchLibraryQueryParamTypeOpen,
z.ZodTypeDef,
GetSearchLibraryQueryParamTypeOpen
> = z.union([
z.nativeEnum(GetSearchLibraryQueryParamType),
z.number().and(z.custom<Unrecognized<number>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -16,6 +21,10 @@ export enum State {
Paused = "paused",
Stopped = "stopped",
}
/**
* The state of the media item
*/
export type StateOpen = OpenEnum<typeof State>;
export type GetTimelineRequest = {
/**
@@ -29,7 +38,7 @@ export type GetTimelineRequest = {
/**
* The state of the media item
*/
state: State;
state: StateOpen;
/**
* Whether the media item has MDE
*/
@@ -76,13 +85,22 @@ export type GetTimelineResponse = {
};
/** @internal */
export const State$inboundSchema: z.ZodNativeEnum<typeof State> = z.nativeEnum(
State,
);
export const State$inboundSchema: z.ZodType<StateOpen, z.ZodTypeDef, unknown> =
z
.union([
z.nativeEnum(State),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const State$outboundSchema: z.ZodNativeEnum<typeof State> =
State$inboundSchema;
export const State$outboundSchema: z.ZodType<
StateOpen,
z.ZodTypeDef,
StateOpen
> = z.union([
z.nativeEnum(State),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -19,6 +24,10 @@ export enum MailingListStatus {
Active = "active",
Unsubscribed = "unsubscribed",
}
/**
* Your current mailing list status (active or unsubscribed)
*/
export type MailingListStatusOpen = OpenEnum<typeof MailingListStatus>;
/**
* The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
@@ -84,13 +93,14 @@ export enum GetTokenDetailsStatus {
Online = "online",
Offline = "offline",
}
export type GetTokenDetailsStatusOpen = OpenEnum<typeof GetTokenDetailsStatus>;
export type Services = {
identifier: string;
endpoint: string;
token: string | null;
secret: string | null;
status: GetTokenDetailsStatus;
status: GetTokenDetailsStatusOpen;
};
/**
@@ -100,6 +110,12 @@ export enum GetTokenDetailsAuthenticationStatus {
Inactive = "Inactive",
Active = "Active",
}
/**
* String representation of subscriptionActive
*/
export type GetTokenDetailsAuthenticationStatusOpen = OpenEnum<
typeof GetTokenDetailsAuthenticationStatus
>;
/**
* If the accounts Plex Pass subscription is active
@@ -120,7 +136,7 @@ export type Subscription = {
/**
* String representation of subscriptionActive
*/
status?: GetTokenDetailsAuthenticationStatus | undefined;
status?: GetTokenDetailsAuthenticationStatusOpen | undefined;
/**
* Payment service used for your Plex Pass subscription
*/
@@ -138,6 +154,12 @@ export enum GetTokenDetailsAuthenticationResponseStatus {
Inactive = "Inactive",
Active = "Active",
}
/**
* String representation of subscriptionActive
*/
export type GetTokenDetailsAuthenticationResponseStatusOpen = OpenEnum<
typeof GetTokenDetailsAuthenticationResponseStatus
>;
export type GetTokenDetailsSubscription = {
/**
@@ -155,7 +177,7 @@ export type GetTokenDetailsSubscription = {
/**
* String representation of subscriptionActive
*/
status?: GetTokenDetailsAuthenticationResponseStatus | undefined;
status?: GetTokenDetailsAuthenticationResponseStatusOpen | undefined;
/**
* Payment service used for your Plex Pass subscription
*/
@@ -255,7 +277,7 @@ export type GetTokenDetailsUserPlexAccount = {
/**
* Your current mailing list status (active or unsubscribed)
*/
mailingListStatus: MailingListStatus;
mailingListStatus: MailingListStatusOpen;
/**
* The maximum number of accounts allowed in the Plex Home
*/
@@ -340,14 +362,25 @@ export type GetTokenDetailsResponse = {
};
/** @internal */
export const MailingListStatus$inboundSchema: z.ZodNativeEnum<
typeof MailingListStatus
> = z.nativeEnum(MailingListStatus);
export const MailingListStatus$inboundSchema: z.ZodType<
MailingListStatusOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(MailingListStatus),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const MailingListStatus$outboundSchema: z.ZodNativeEnum<
typeof MailingListStatus
> = MailingListStatus$inboundSchema;
export const MailingListStatus$outboundSchema: z.ZodType<
MailingListStatusOpen,
z.ZodTypeDef,
MailingListStatusOpen
> = z.union([
z.nativeEnum(MailingListStatus),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -546,14 +579,25 @@ export function userProfileFromJSON(
}
/** @internal */
export const GetTokenDetailsStatus$inboundSchema: z.ZodNativeEnum<
typeof GetTokenDetailsStatus
> = z.nativeEnum(GetTokenDetailsStatus);
export const GetTokenDetailsStatus$inboundSchema: z.ZodType<
GetTokenDetailsStatusOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetTokenDetailsStatus),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetTokenDetailsStatus$outboundSchema: z.ZodNativeEnum<
typeof GetTokenDetailsStatus
> = GetTokenDetailsStatus$inboundSchema;
export const GetTokenDetailsStatus$outboundSchema: z.ZodType<
GetTokenDetailsStatusOpen,
z.ZodTypeDef,
GetTokenDetailsStatusOpen
> = z.union([
z.nativeEnum(GetTokenDetailsStatus),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -629,14 +673,25 @@ export function servicesFromJSON(
}
/** @internal */
export const GetTokenDetailsAuthenticationStatus$inboundSchema: z.ZodNativeEnum<
typeof GetTokenDetailsAuthenticationStatus
> = z.nativeEnum(GetTokenDetailsAuthenticationStatus);
export const GetTokenDetailsAuthenticationStatus$inboundSchema: z.ZodType<
GetTokenDetailsAuthenticationStatusOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetTokenDetailsAuthenticationStatus),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetTokenDetailsAuthenticationStatus$outboundSchema:
z.ZodNativeEnum<typeof GetTokenDetailsAuthenticationStatus> =
GetTokenDetailsAuthenticationStatus$inboundSchema;
export const GetTokenDetailsAuthenticationStatus$outboundSchema: z.ZodType<
GetTokenDetailsAuthenticationStatusOpen,
z.ZodTypeDef,
GetTokenDetailsAuthenticationStatusOpen
> = z.union([
z.nativeEnum(GetTokenDetailsAuthenticationStatus),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -718,13 +773,26 @@ export function subscriptionFromJSON(
/** @internal */
export const GetTokenDetailsAuthenticationResponseStatus$inboundSchema:
z.ZodNativeEnum<typeof GetTokenDetailsAuthenticationResponseStatus> = z
.nativeEnum(GetTokenDetailsAuthenticationResponseStatus);
z.ZodType<
GetTokenDetailsAuthenticationResponseStatusOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetTokenDetailsAuthenticationResponseStatus),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetTokenDetailsAuthenticationResponseStatus$outboundSchema:
z.ZodNativeEnum<typeof GetTokenDetailsAuthenticationResponseStatus> =
GetTokenDetailsAuthenticationResponseStatus$inboundSchema;
z.ZodType<
GetTokenDetailsAuthenticationResponseStatusOpen,
z.ZodTypeDef,
GetTokenDetailsAuthenticationResponseStatusOpen
> = z.union([
z.nativeEnum(GetTokenDetailsAuthenticationResponseStatus),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { RFCDate } from "../../types/rfcdate.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -28,6 +33,19 @@ export enum GetTopWatchedContentQueryParamType {
Album = 9,
Track = 10,
}
/**
* The type of media to retrieve or filter by.
*
* @remarks
* 1 = movie
* 2 = show
* 3 = season
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
export type GetTopWatchedContentQueryParamTypeOpen = OpenEnum<
typeof GetTopWatchedContentQueryParamType
>;
export type GetTopWatchedContentRequest = {
/**
@@ -46,7 +64,7 @@ export type GetTopWatchedContentRequest = {
* 4 = episode
* E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
*/
type: GetTopWatchedContentQueryParamType;
type: GetTopWatchedContentQueryParamTypeOpen;
};
export type GetTopWatchedContentGenre = {
@@ -149,14 +167,25 @@ export type GetTopWatchedContentResponse = {
};
/** @internal */
export const GetTopWatchedContentQueryParamType$inboundSchema: z.ZodNativeEnum<
typeof GetTopWatchedContentQueryParamType
> = z.nativeEnum(GetTopWatchedContentQueryParamType);
export const GetTopWatchedContentQueryParamType$inboundSchema: z.ZodType<
GetTopWatchedContentQueryParamTypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(GetTopWatchedContentQueryParamType),
z.number().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const GetTopWatchedContentQueryParamType$outboundSchema: z.ZodNativeEnum<
typeof GetTopWatchedContentQueryParamType
> = GetTopWatchedContentQueryParamType$inboundSchema;
export const GetTopWatchedContentQueryParamType$outboundSchema: z.ZodType<
GetTopWatchedContentQueryParamTypeOpen,
z.ZodTypeDef,
GetTopWatchedContentQueryParamTypeOpen
> = z.union([
z.nativeEnum(GetTopWatchedContentQueryParamType),
z.number().and(z.custom<Unrecognized<number>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -22,6 +27,10 @@ export type SharedSources = {};
export enum Status {
Accepted = "accepted",
}
/**
* Current friend request status
*/
export type StatusOpen = OpenEnum<typeof Status>;
export type Friend = {
/**
@@ -49,7 +58,7 @@ export type Friend = {
/**
* Current friend request status
*/
status: Status;
status: StatusOpen;
/**
* URL of the account thumbnail
*/
@@ -176,12 +185,25 @@ export function sharedSourcesFromJSON(
}
/** @internal */
export const Status$inboundSchema: z.ZodNativeEnum<typeof Status> = z
.nativeEnum(Status);
export const Status$inboundSchema: z.ZodType<
StatusOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(Status),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const Status$outboundSchema: z.ZodNativeEnum<typeof Status> =
Status$inboundSchema;
export const Status$outboundSchema: z.ZodType<
StatusOpen,
z.ZodTypeDef,
StatusOpen
> = z.union([
z.nativeEnum(Status),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { RFCDate } from "../../types/rfcdate.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -24,6 +29,10 @@ export enum Filter {
Available = "available",
Released = "released",
}
/**
* Filter
*/
export type FilterOpen = OpenEnum<typeof Filter>;
/**
* The type of library to filter. Can be "movie" or "show", or all if not present.
@@ -34,6 +43,12 @@ export enum Libtype {
Movie = "movie",
Show = "show",
}
/**
* The type of library to filter. Can be "movie" or "show", or all if not present.
*
* @remarks
*/
export type LibtypeOpen = OpenEnum<typeof Libtype>;
/**
* include collections in the results
@@ -59,7 +74,7 @@ export type GetWatchListRequest = {
/**
* Filter
*/
filter: Filter;
filter: FilterOpen;
/**
* In the format "field:dir". Available fields are "watchlistedAt" (Added At),
*
@@ -73,7 +88,7 @@ export type GetWatchListRequest = {
*
* @remarks
*/
libtype?: Libtype | undefined;
libtype?: LibtypeOpen | undefined;
/**
* The number of items to return. If not specified, all items will be returned.
*
@@ -192,12 +207,25 @@ export type GetWatchListResponse = {
};
/** @internal */
export const Filter$inboundSchema: z.ZodNativeEnum<typeof Filter> = z
.nativeEnum(Filter);
export const Filter$inboundSchema: z.ZodType<
FilterOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(Filter),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const Filter$outboundSchema: z.ZodNativeEnum<typeof Filter> =
Filter$inboundSchema;
export const Filter$outboundSchema: z.ZodType<
FilterOpen,
z.ZodTypeDef,
FilterOpen
> = z.union([
z.nativeEnum(Filter),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -211,12 +239,25 @@ export namespace Filter$ {
}
/** @internal */
export const Libtype$inboundSchema: z.ZodNativeEnum<typeof Libtype> = z
.nativeEnum(Libtype);
export const Libtype$inboundSchema: z.ZodType<
LibtypeOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(Libtype),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const Libtype$outboundSchema: z.ZodNativeEnum<typeof Libtype> =
Libtype$inboundSchema;
export const Libtype$outboundSchema: z.ZodType<
LibtypeOpen,
z.ZodTypeDef,
LibtypeOpen
> = z.union([
z.nativeEnum(Libtype),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -25,6 +30,17 @@ export enum Level {
Three = 3,
Four = 4,
}
/**
* An integer log level to write to the PMS log with.
*
* @remarks
* 0: Error
* 1: Warning
* 2: Info
* 3: Debug
* 4: Verbose
*/
export type LevelOpen = OpenEnum<typeof Level>;
export type LogLineRequest = {
/**
@@ -37,7 +53,7 @@ export type LogLineRequest = {
* 3: Debug
* 4: Verbose
*/
level: Level;
level: LevelOpen;
/**
* The text of the message to write to the log.
*/
@@ -64,13 +80,22 @@ export type LogLineResponse = {
};
/** @internal */
export const Level$inboundSchema: z.ZodNativeEnum<typeof Level> = z.nativeEnum(
Level,
);
export const Level$inboundSchema: z.ZodType<LevelOpen, z.ZodTypeDef, unknown> =
z
.union([
z.nativeEnum(Level),
z.number().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const Level$outboundSchema: z.ZodNativeEnum<typeof Level> =
Level$inboundSchema;
export const Level$outboundSchema: z.ZodType<
LevelOpen,
z.ZodTypeDef,
LevelOpen
> = z.union([
z.nativeEnum(Level),
z.number().and(z.custom<Unrecognized<number>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -56,6 +61,12 @@ export enum PostUsersSignInDataMailingListStatus {
Active = "active",
Unsubscribed = "unsubscribed",
}
/**
* Your current mailing list status (active or unsubscribed)
*/
export type PostUsersSignInDataMailingListStatusOpen = OpenEnum<
typeof PostUsersSignInDataMailingListStatus
>;
/**
* The auto-select subtitle mode (0 = Manually selected, 1 = Shown with foreign audio, 2 = Always enabled)
@@ -125,13 +136,16 @@ export enum PostUsersSignInDataStatus {
Online = "online",
Offline = "offline",
}
export type PostUsersSignInDataStatusOpen = OpenEnum<
typeof PostUsersSignInDataStatus
>;
export type PostUsersSignInDataServices = {
identifier: string;
endpoint: string;
token: string | null;
secret: string | null;
status: PostUsersSignInDataStatus;
status: PostUsersSignInDataStatusOpen;
};
/**
@@ -141,6 +155,12 @@ export enum PostUsersSignInDataAuthenticationStatus {
Inactive = "Inactive",
Active = "Active",
}
/**
* String representation of subscriptionActive
*/
export type PostUsersSignInDataAuthenticationStatusOpen = OpenEnum<
typeof PostUsersSignInDataAuthenticationStatus
>;
/**
* If the accounts Plex Pass subscription is active
@@ -161,7 +181,7 @@ export type PostUsersSignInDataSubscription = {
/**
* String representation of subscriptionActive
*/
status?: PostUsersSignInDataAuthenticationStatus | undefined;
status?: PostUsersSignInDataAuthenticationStatusOpen | undefined;
/**
* Payment service used for your Plex Pass subscription
*/
@@ -179,6 +199,12 @@ export enum PostUsersSignInDataAuthenticationResponseStatus {
Inactive = "Inactive",
Active = "Active",
}
/**
* String representation of subscriptionActive
*/
export type PostUsersSignInDataAuthenticationResponseStatusOpen = OpenEnum<
typeof PostUsersSignInDataAuthenticationResponseStatus
>;
export type PostUsersSignInDataAuthenticationSubscription = {
/**
@@ -196,7 +222,7 @@ export type PostUsersSignInDataAuthenticationSubscription = {
/**
* String representation of subscriptionActive
*/
status?: PostUsersSignInDataAuthenticationResponseStatus | undefined;
status?: PostUsersSignInDataAuthenticationResponseStatusOpen | undefined;
/**
* Payment service used for your Plex Pass subscription
*/
@@ -210,6 +236,9 @@ export type PostUsersSignInDataAuthenticationSubscription = {
export enum PostUsersSignInDataState {
Ended = "ended",
}
export type PostUsersSignInDataStateOpen = OpenEnum<
typeof PostUsersSignInDataState
>;
export type InternalPaymentMethod = {};
@@ -232,7 +261,7 @@ export type PastSubscription = {
canConvert?: boolean | undefined;
type: string;
transfer: string | null;
state: PostUsersSignInDataState;
state: PostUsersSignInDataStateOpen;
billing: Billing;
};
@@ -327,7 +356,7 @@ export type PostUsersSignInDataUserPlexAccount = {
/**
* Your current mailing list status (active or unsubscribed)
*/
mailingListStatus: PostUsersSignInDataMailingListStatus;
mailingListStatus: PostUsersSignInDataMailingListStatusOpen;
/**
* The maximum number of accounts allowed in the Plex Home
*/
@@ -570,15 +599,25 @@ export function postUsersSignInDataRequestFromJSON(
}
/** @internal */
export const PostUsersSignInDataMailingListStatus$inboundSchema:
z.ZodNativeEnum<typeof PostUsersSignInDataMailingListStatus> = z.nativeEnum(
PostUsersSignInDataMailingListStatus,
);
export const PostUsersSignInDataMailingListStatus$inboundSchema: z.ZodType<
PostUsersSignInDataMailingListStatusOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(PostUsersSignInDataMailingListStatus),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const PostUsersSignInDataMailingListStatus$outboundSchema:
z.ZodNativeEnum<typeof PostUsersSignInDataMailingListStatus> =
PostUsersSignInDataMailingListStatus$inboundSchema;
export const PostUsersSignInDataMailingListStatus$outboundSchema: z.ZodType<
PostUsersSignInDataMailingListStatusOpen,
z.ZodTypeDef,
PostUsersSignInDataMailingListStatusOpen
> = z.union([
z.nativeEnum(PostUsersSignInDataMailingListStatus),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -799,14 +838,25 @@ export function postUsersSignInDataUserProfileFromJSON(
}
/** @internal */
export const PostUsersSignInDataStatus$inboundSchema: z.ZodNativeEnum<
typeof PostUsersSignInDataStatus
> = z.nativeEnum(PostUsersSignInDataStatus);
export const PostUsersSignInDataStatus$inboundSchema: z.ZodType<
PostUsersSignInDataStatusOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(PostUsersSignInDataStatus),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const PostUsersSignInDataStatus$outboundSchema: z.ZodNativeEnum<
typeof PostUsersSignInDataStatus
> = PostUsersSignInDataStatus$inboundSchema;
export const PostUsersSignInDataStatus$outboundSchema: z.ZodType<
PostUsersSignInDataStatusOpen,
z.ZodTypeDef,
PostUsersSignInDataStatusOpen
> = z.union([
z.nativeEnum(PostUsersSignInDataStatus),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -888,14 +938,25 @@ export function postUsersSignInDataServicesFromJSON(
}
/** @internal */
export const PostUsersSignInDataAuthenticationStatus$inboundSchema:
z.ZodNativeEnum<typeof PostUsersSignInDataAuthenticationStatus> = z
.nativeEnum(PostUsersSignInDataAuthenticationStatus);
export const PostUsersSignInDataAuthenticationStatus$inboundSchema: z.ZodType<
PostUsersSignInDataAuthenticationStatusOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(PostUsersSignInDataAuthenticationStatus),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const PostUsersSignInDataAuthenticationStatus$outboundSchema:
z.ZodNativeEnum<typeof PostUsersSignInDataAuthenticationStatus> =
PostUsersSignInDataAuthenticationStatus$inboundSchema;
export const PostUsersSignInDataAuthenticationStatus$outboundSchema: z.ZodType<
PostUsersSignInDataAuthenticationStatusOpen,
z.ZodTypeDef,
PostUsersSignInDataAuthenticationStatusOpen
> = z.union([
z.nativeEnum(PostUsersSignInDataAuthenticationStatus),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -983,13 +1044,26 @@ export function postUsersSignInDataSubscriptionFromJSON(
/** @internal */
export const PostUsersSignInDataAuthenticationResponseStatus$inboundSchema:
z.ZodNativeEnum<typeof PostUsersSignInDataAuthenticationResponseStatus> = z
.nativeEnum(PostUsersSignInDataAuthenticationResponseStatus);
z.ZodType<
PostUsersSignInDataAuthenticationResponseStatusOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(PostUsersSignInDataAuthenticationResponseStatus),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const PostUsersSignInDataAuthenticationResponseStatus$outboundSchema:
z.ZodNativeEnum<typeof PostUsersSignInDataAuthenticationResponseStatus> =
PostUsersSignInDataAuthenticationResponseStatus$inboundSchema;
z.ZodType<
PostUsersSignInDataAuthenticationResponseStatusOpen,
z.ZodTypeDef,
PostUsersSignInDataAuthenticationResponseStatusOpen
> = z.union([
z.nativeEnum(PostUsersSignInDataAuthenticationResponseStatus),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal
@@ -1089,14 +1163,25 @@ export function postUsersSignInDataAuthenticationSubscriptionFromJSON(
}
/** @internal */
export const PostUsersSignInDataState$inboundSchema: z.ZodNativeEnum<
typeof PostUsersSignInDataState
> = z.nativeEnum(PostUsersSignInDataState);
export const PostUsersSignInDataState$inboundSchema: z.ZodType<
PostUsersSignInDataStateOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(PostUsersSignInDataState),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const PostUsersSignInDataState$outboundSchema: z.ZodNativeEnum<
typeof PostUsersSignInDataState
> = PostUsersSignInDataState$inboundSchema;
export const PostUsersSignInDataState$outboundSchema: z.ZodType<
PostUsersSignInDataStateOpen,
z.ZodTypeDef,
PostUsersSignInDataStateOpen
> = z.union([
z.nativeEnum(PostUsersSignInDataState),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -27,12 +32,16 @@ export enum TaskName {
RefreshPeriodicMetadata = "RefreshPeriodicMetadata",
UpgradeMediaAnalysis = "UpgradeMediaAnalysis",
}
/**
* the name of the task to be started.
*/
export type TaskNameOpen = OpenEnum<typeof TaskName>;
export type StartTaskRequest = {
/**
* the name of the task to be started.
*/
taskName: TaskName;
taskName: TaskNameOpen;
};
export type StartTaskResponse = {
@@ -51,12 +60,25 @@ export type StartTaskResponse = {
};
/** @internal */
export const TaskName$inboundSchema: z.ZodNativeEnum<typeof TaskName> = z
.nativeEnum(TaskName);
export const TaskName$inboundSchema: z.ZodType<
TaskNameOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(TaskName),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const TaskName$outboundSchema: z.ZodNativeEnum<typeof TaskName> =
TaskName$inboundSchema;
export const TaskName$outboundSchema: z.ZodType<
TaskNameOpen,
z.ZodTypeDef,
TaskNameOpen
> = z.union([
z.nativeEnum(TaskName),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal

View File

@@ -5,6 +5,11 @@
import * as z from "zod";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
import {
catchUnrecognizedEnum,
OpenEnum,
Unrecognized,
} from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -27,12 +32,16 @@ export enum PathParamTaskName {
RefreshPeriodicMetadata = "RefreshPeriodicMetadata",
UpgradeMediaAnalysis = "UpgradeMediaAnalysis",
}
/**
* The name of the task to be started.
*/
export type PathParamTaskNameOpen = OpenEnum<typeof PathParamTaskName>;
export type StopTaskRequest = {
/**
* The name of the task to be started.
*/
taskName: PathParamTaskName;
taskName: PathParamTaskNameOpen;
};
export type StopTaskResponse = {
@@ -51,14 +60,25 @@ export type StopTaskResponse = {
};
/** @internal */
export const PathParamTaskName$inboundSchema: z.ZodNativeEnum<
typeof PathParamTaskName
> = z.nativeEnum(PathParamTaskName);
export const PathParamTaskName$inboundSchema: z.ZodType<
PathParamTaskNameOpen,
z.ZodTypeDef,
unknown
> = z
.union([
z.nativeEnum(PathParamTaskName),
z.string().transform(catchUnrecognizedEnum),
]);
/** @internal */
export const PathParamTaskName$outboundSchema: z.ZodNativeEnum<
typeof PathParamTaskName
> = PathParamTaskName$inboundSchema;
export const PathParamTaskName$outboundSchema: z.ZodType<
PathParamTaskNameOpen,
z.ZodTypeDef,
PathParamTaskNameOpen
> = z.union([
z.nativeEnum(PathParamTaskName),
z.string().and(z.custom<Unrecognized<string>>()),
]);
/**
* @internal