From 852ef3cd1b7556e52ed7dcf5ec8e11abf80d19d9 Mon Sep 17 00:00:00 2001 From: Alex Tran Date: Thu, 6 Jul 2023 16:56:02 -0500 Subject: [PATCH] chore(server): update openapi --- cli/src/api/open-api/api.ts | 24 +++++++++++------- cli/src/api/open-api/base.ts | 2 +- cli/src/api/open-api/common.ts | 2 +- cli/src/api/open-api/configuration.ts | 2 +- cli/src/api/open-api/index.ts | 2 +- mobile/openapi/doc/AssetApi.md | Bin 56107 -> 55965 bytes mobile/openapi/doc/PersonApi.md | Bin 10282 -> 10224 bytes mobile/openapi/lib/api/asset_api.dart | Bin 51103 -> 50143 bytes mobile/openapi/lib/api/person_api.dart | Bin 8362 -> 7882 bytes mobile/openapi/test/asset_api_test.dart | Bin 5342 -> 5312 bytes mobile/openapi/test/person_api_test.dart | Bin 1128 -> 1113 bytes server/immich-openapi-specs.json | 30 ----------------------- web/src/api/open-api/api.ts | 12 ++++----- 13 files changed, 25 insertions(+), 49 deletions(-) diff --git a/cli/src/api/open-api/api.ts b/cli/src/api/open-api/api.ts index 246d633c9..737d72da3 100644 --- a/cli/src/api/open-api/api.ts +++ b/cli/src/api/open-api/api.ts @@ -4,7 +4,7 @@ * Immich * Immich API * - * The version of the OpenAPI document: 1.65.0 + * The version of the OpenAPI document: 1.66.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -1772,11 +1772,17 @@ export interface PersonResponseDto { */ export interface PersonUpdateDto { /** - * + * Person name. * @type {string} * @memberof PersonUpdateDto */ - 'name': string; + 'name'?: string; + /** + * Asset is used to get the feature face thumbnail. + * @type {string} + * @memberof PersonUpdateDto + */ + 'featureFaceAssetId'?: string; } /** * @@ -5889,7 +5895,7 @@ export const AssetApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(id, format, key, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, @@ -5986,7 +5992,7 @@ export const AssetApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(id, isThumb, isWeb, key, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, @@ -6155,7 +6161,7 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise { + getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise { return localVarFp.getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(axios, basePath)); }, /** @@ -6234,7 +6240,7 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig): AxiosPromise { + serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig): AxiosPromise { return localVarFp.serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(axios, basePath)); }, /** @@ -8862,7 +8868,7 @@ export const PersonApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonThumbnail(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, @@ -8919,7 +8925,7 @@ export const PersonApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise { + getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise { return localVarFp.getPersonThumbnail(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** diff --git a/cli/src/api/open-api/base.ts b/cli/src/api/open-api/base.ts index 724f10503..3281535e5 100644 --- a/cli/src/api/open-api/base.ts +++ b/cli/src/api/open-api/base.ts @@ -4,7 +4,7 @@ * Immich * Immich API * - * The version of the OpenAPI document: 1.65.0 + * The version of the OpenAPI document: 1.66.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/cli/src/api/open-api/common.ts b/cli/src/api/open-api/common.ts index e9e8c41f5..c9fda5ed7 100644 --- a/cli/src/api/open-api/common.ts +++ b/cli/src/api/open-api/common.ts @@ -4,7 +4,7 @@ * Immich * Immich API * - * The version of the OpenAPI document: 1.65.0 + * The version of the OpenAPI document: 1.66.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/cli/src/api/open-api/configuration.ts b/cli/src/api/open-api/configuration.ts index 9dad93679..1a74d526b 100644 --- a/cli/src/api/open-api/configuration.ts +++ b/cli/src/api/open-api/configuration.ts @@ -4,7 +4,7 @@ * Immich * Immich API * - * The version of the OpenAPI document: 1.65.0 + * The version of the OpenAPI document: 1.66.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/cli/src/api/open-api/index.ts b/cli/src/api/open-api/index.ts index 7183d73c6..1243cc241 100644 --- a/cli/src/api/open-api/index.ts +++ b/cli/src/api/open-api/index.ts @@ -4,7 +4,7 @@ * Immich * Immich API * - * The version of the OpenAPI document: 1.65.0 + * The version of the OpenAPI document: 1.66.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/mobile/openapi/doc/AssetApi.md b/mobile/openapi/doc/AssetApi.md index c71b4151d3adf98aef58c2fbed5757cba6e74eaf..41f4e2e020ef5f96d3debff86a6fb542709834e6 100644 GIT binary patch delta 154 zcmZ3zjd|`?<_&9$H}5XK!ZLYYh2do9B&W?Pm12yNW%-#Y3L2@o1tpaVMXALF`FX{u z3Q74Xm6H{-_jCK@mnfv9re)@(rc4%`ynk{_gTQ8{nlgvU{Rfpcuh?^%WpdL&kYQGv Q4r!BS)}GCej(Caz07^kWfdBvi delta 122 zcmbQcm3j3x<_&9$C$nkuP425u+I+rv6U*d%>M}r%%H$n^p_{){h%rufGdwYQLy@#t zW^Q77s(w~MYPyaBgk7GRR51BN_WsRls@ohurffFa^A=))&Owj~zMH!aYQs!WpDbW? KVspq5PcZei9vvlb1F3UezoG*NGmh5)L sXe})irCM6C8Ylvj6V;Yaz9%Qmm6@BEo~oZ!keWVuF2|nD2jmSn0GW#@IsgCw diff --git a/mobile/openapi/lib/api/asset_api.dart b/mobile/openapi/lib/api/asset_api.dart index a73ec3b1ec224aede71ed2ee04971bd69a7d4a17..94394f020a93b01181c7224334ba24c588e0891f 100644 GIT binary patch delta 47 zcmbQ=&wRg~dBc(vma_cJl+Bw`>=-8>%GH~^HiK*PzjQBqh;Z0)N5;*$tBhm;@=FvI delta 55 zcmccL&OE=LdBc*F$yv$*n^&dSFm7I;@{w`!-)!N@XVbVg%cXhQgQfD8+JmI-Gj86t HOj8yBpiviU diff --git a/mobile/openapi/lib/api/person_api.dart b/mobile/openapi/lib/api/person_api.dart index 37f8bf8a307358c579014b775e6557a0c73d3db6..a27c5845f3e28d1f839d9377589208d6a23d4981 100644 GIT binary patch delta 21 dcmZ4Gc*=IeT``uj{LGZeuf=|C-Yxl_4FGVJ3RVCB delta 74 zcmX?QyUKCHT`@l2(wvgag2bW{x6GVW`^gW*er=BBp310*BCf8ZsgPK#fFd?on%8>s IH}NZM0BPtQ9{>OV diff --git a/mobile/openapi/test/asset_api_test.dart b/mobile/openapi/test/asset_api_test.dart index 1c5f08536b4b523d28b34b11a12e67b1b7b12036..003956969ccd335a2c07d0070e2abd992092837b 100644 GIT binary patch delta 17 Zcmcboc|dc+MefZHxPP#2elGZ(2>?-S2)qCQ delta 25 ecmX@0c~5i0MefN{SOqp;;{MJGW}FiI#smPC1q%lN diff --git a/mobile/openapi/test/person_api_test.dart b/mobile/openapi/test/person_api_test.dart index 33e78b8a7cfc492f07c51984ff0c4030e4905457..956ec138d37377a5d014c9dcb824835bc50037bc 100644 GIT binary patch delta 12 TcmaFCag$?%JM-o+W+6rZAdUm; delta 28 jcmcb~@q%N6J2StHZ)r|RW AxiosPromise> { + async getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(id, format, key, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, @@ -6001,7 +6001,7 @@ export const AssetApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(id, isThumb, isWeb, key, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, @@ -6181,7 +6181,7 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: any): AxiosPromise { + getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: any): AxiosPromise { return localVarFp.getAssetThumbnail(id, format, key, options).then((request) => request(axios, basePath)); }, /** @@ -6269,7 +6269,7 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: any): AxiosPromise { + serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: any): AxiosPromise { return localVarFp.serveFile(id, isThumb, isWeb, key, options).then((request) => request(axios, basePath)); }, /** @@ -8913,7 +8913,7 @@ export const PersonApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonThumbnail(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, @@ -8970,7 +8970,7 @@ export const PersonApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPersonThumbnail(id: string, options?: any): AxiosPromise { + getPersonThumbnail(id: string, options?: any): AxiosPromise { return localVarFp.getPersonThumbnail(id, options).then((request) => request(axios, basePath)); }, /**