From 2f140c28ef7294a146e0dd9cce8155b6530e8808 Mon Sep 17 00:00:00 2001 From: jellyfin-bot Date: Mon, 1 Jul 2024 15:39:40 +0000 Subject: [PATCH] Update OpenAPI to unstable --- openapi.json | 4 ++-- src/generated-client/api/item-refresh-api.ts | 23 ++++--------------- .../models/device-info-query-result.ts | 4 ++-- .../models/library-options-result-dto.ts | 6 +++++ src/versions.ts | 2 +- 5 files changed, 16 insertions(+), 23 deletions(-) diff --git a/openapi.json b/openapi.json index 17d0ad3b..d9f79dce 100644 --- a/openapi.json +++ b/openapi.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6c9a6321ae707c61cc4bb07b1c918390c0f02568d7a2d2e96ab94bb1d214c2d7 -size 862642 +oid sha256:d63832542cbd7330dee0bd46d5f2bd04ec3ff74adfe9c79f3c1aa080d1329f93 +size 862603 diff --git a/src/generated-client/api/item-refresh-api.ts b/src/generated-client/api/item-refresh-api.ts index 4e85744d..7146133d 100644 --- a/src/generated-client/api/item-refresh-api.ts +++ b/src/generated-client/api/item-refresh-api.ts @@ -38,11 +38,10 @@ export const ItemRefreshApiAxiosParamCreator = function (configuration?: Configu * @param {MetadataRefreshMode} [imageRefreshMode] (Optional) Specifies the image refresh mode. * @param {boolean} [replaceAllMetadata] (Optional) Determines if metadata should be replaced. Only applicable if mode is FullRefresh. * @param {boolean} [replaceAllImages] (Optional) Determines if images should be replaced. Only applicable if mode is FullRefresh. - * @param {boolean} [regenerateTrickplay] (Optional) Determines if trickplay images should be replaced. Only applicable if mode is FullRefresh. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - refreshItem: async (itemId: string, metadataRefreshMode?: MetadataRefreshMode, imageRefreshMode?: MetadataRefreshMode, replaceAllMetadata?: boolean, replaceAllImages?: boolean, regenerateTrickplay?: boolean, options: RawAxiosRequestConfig = {}): Promise => { + refreshItem: async (itemId: string, metadataRefreshMode?: MetadataRefreshMode, imageRefreshMode?: MetadataRefreshMode, replaceAllMetadata?: boolean, replaceAllImages?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined assertParamExists('refreshItem', 'itemId', itemId) const localVarPath = `/Items/{itemId}/Refresh` @@ -77,10 +76,6 @@ export const ItemRefreshApiAxiosParamCreator = function (configuration?: Configu localVarQueryParameter['replaceAllImages'] = replaceAllImages; } - if (regenerateTrickplay !== undefined) { - localVarQueryParameter['regenerateTrickplay'] = regenerateTrickplay; - } - setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -110,12 +105,11 @@ export const ItemRefreshApiFp = function(configuration?: Configuration) { * @param {MetadataRefreshMode} [imageRefreshMode] (Optional) Specifies the image refresh mode. * @param {boolean} [replaceAllMetadata] (Optional) Determines if metadata should be replaced. Only applicable if mode is FullRefresh. * @param {boolean} [replaceAllImages] (Optional) Determines if images should be replaced. Only applicable if mode is FullRefresh. - * @param {boolean} [regenerateTrickplay] (Optional) Determines if trickplay images should be replaced. Only applicable if mode is FullRefresh. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async refreshItem(itemId: string, metadataRefreshMode?: MetadataRefreshMode, imageRefreshMode?: MetadataRefreshMode, replaceAllMetadata?: boolean, replaceAllImages?: boolean, regenerateTrickplay?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.refreshItem(itemId, metadataRefreshMode, imageRefreshMode, replaceAllMetadata, replaceAllImages, regenerateTrickplay, options); + async refreshItem(itemId: string, metadataRefreshMode?: MetadataRefreshMode, imageRefreshMode?: MetadataRefreshMode, replaceAllMetadata?: boolean, replaceAllImages?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.refreshItem(itemId, metadataRefreshMode, imageRefreshMode, replaceAllMetadata, replaceAllImages, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ItemRefreshApi.refreshItem']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -138,7 +132,7 @@ export const ItemRefreshApiFactory = function (configuration?: Configuration, ba * @throws {RequiredError} */ refreshItem(requestParameters: ItemRefreshApiRefreshItemRequest, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.refreshItem(requestParameters.itemId, requestParameters.metadataRefreshMode, requestParameters.imageRefreshMode, requestParameters.replaceAllMetadata, requestParameters.replaceAllImages, requestParameters.regenerateTrickplay, options).then((request) => request(axios, basePath)); + return localVarFp.refreshItem(requestParameters.itemId, requestParameters.metadataRefreshMode, requestParameters.imageRefreshMode, requestParameters.replaceAllMetadata, requestParameters.replaceAllImages, options).then((request) => request(axios, basePath)); }, }; }; @@ -183,13 +177,6 @@ export interface ItemRefreshApiRefreshItemRequest { * @memberof ItemRefreshApiRefreshItem */ readonly replaceAllImages?: boolean - - /** - * (Optional) Determines if trickplay images should be replaced. Only applicable if mode is FullRefresh. - * @type {boolean} - * @memberof ItemRefreshApiRefreshItem - */ - readonly regenerateTrickplay?: boolean } /** @@ -208,7 +195,7 @@ export class ItemRefreshApi extends BaseAPI { * @memberof ItemRefreshApi */ public refreshItem(requestParameters: ItemRefreshApiRefreshItemRequest, options?: RawAxiosRequestConfig) { - return ItemRefreshApiFp(this.configuration).refreshItem(requestParameters.itemId, requestParameters.metadataRefreshMode, requestParameters.imageRefreshMode, requestParameters.replaceAllMetadata, requestParameters.replaceAllImages, requestParameters.regenerateTrickplay, options).then((request) => request(this.axios, this.basePath)); + return ItemRefreshApiFp(this.configuration).refreshItem(requestParameters.itemId, requestParameters.metadataRefreshMode, requestParameters.imageRefreshMode, requestParameters.replaceAllMetadata, requestParameters.replaceAllImages, options).then((request) => request(this.axios, this.basePath)); } } diff --git a/src/generated-client/models/device-info-query-result.ts b/src/generated-client/models/device-info-query-result.ts index 770c2b3b..f151bb20 100644 --- a/src/generated-client/models/device-info-query-result.ts +++ b/src/generated-client/models/device-info-query-result.ts @@ -17,7 +17,7 @@ import type { DeviceInfo } from './device-info'; /** - * + * Query result container. * @export * @interface DeviceInfoQueryResult */ @@ -27,7 +27,7 @@ export interface DeviceInfoQueryResult { * @type {Array} * @memberof DeviceInfoQueryResult */ - 'Items'?: Array | null; + 'Items'?: Array; /** * Gets or sets the total number of records available. * @type {number} diff --git a/src/generated-client/models/library-options-result-dto.ts b/src/generated-client/models/library-options-result-dto.ts index 619532bf..6568612c 100644 --- a/src/generated-client/models/library-options-result-dto.ts +++ b/src/generated-client/models/library-options-result-dto.ts @@ -49,6 +49,12 @@ export interface LibraryOptionsResultDto { * @memberof LibraryOptionsResultDto */ 'LyricFetchers'?: Array; + /** + * Gets or sets the list of MediaSegment Providers. + * @type {Array} + * @memberof LibraryOptionsResultDto + */ + 'MediaSegmentProviders'?: Array; /** * Gets or sets the type options. * @type {Array} diff --git a/src/versions.ts b/src/versions.ts index 1b1ee1fc..90771280 100644 --- a/src/versions.ts +++ b/src/versions.ts @@ -5,7 +5,7 @@ */ /** The current API version of the generated client. */ -export const API_VERSION = '10.10.2'; +export const API_VERSION = '10.11.0'; /** The minimum supported server version. */ export const MINIMUM_VERSION = '10.9.0';