High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
chore(server): openapi generation (#9554)
Alexdf42352f8491
diff --git a/mobile/openapi/README.md b/mobile/openapi/README.mdindex 4afeb179a4..b5a49aa26c 100644--- a/mobile/openapi/README.md+++ b/mobile/openapi/README.md@@ -98,7 +98,6 @@ Class | Method | HTTP request | Description*AssetApi* | [**deleteAssets**](doc//AssetApi.md#deleteassets) | **DELETE** /asset |*AssetApi* | [**getAllAssets**](doc//AssetApi.md#getallassets) | **GET** /asset |*AssetApi* | [**getAllUserAssetsByDeviceId**](doc//AssetApi.md#getalluserassetsbydeviceid) | **GET** /asset/device/{deviceId} |-*AssetApi* | [**getAssetDuplicates**](doc//AssetApi.md#getassetduplicates) | **GET** /asset/duplicates |*AssetApi* | [**getAssetInfo**](doc//AssetApi.md#getassetinfo) | **GET** /asset/{id} |*AssetApi* | [**getAssetStatistics**](doc//AssetApi.md#getassetstatistics) | **GET** /asset/statistics |*AssetApi* | [**getAssetThumbnail**](doc//AssetApi.md#getassetthumbnail) | **GET** /asset/thumbnail/{id} |diff --git a/mobile/openapi/doc/AssetApi.md b/mobile/openapi/doc/AssetApi.mdindex da070ccfc4..a1491c79a2 100644--- a/mobile/openapi/doc/AssetApi.md+++ b/mobile/openapi/doc/AssetApi.md@@ -14,7 +14,6 @@ Method | HTTP request | Description[**deleteAssets**](AssetApi.md#deleteassets) | **DELETE** /asset |[**getAllAssets**](AssetApi.md#getallassets) | **GET** /asset |[**getAllUserAssetsByDeviceId**](AssetApi.md#getalluserassetsbydeviceid) | **GET** /asset/device/{deviceId} |-[**getAssetDuplicates**](AssetApi.md#getassetduplicates) | **GET** /asset/duplicates |[**getAssetInfo**](AssetApi.md#getassetinfo) | **GET** /asset/{id} |[**getAssetStatistics**](AssetApi.md#getassetstatistics) | **GET** /asset/statistics |[**getAssetThumbnail**](AssetApi.md#getassetthumbnail) | **GET** /asset/thumbnail/{id} |@@ -325,43 +324,6 @@ Name | Type | Description | Notes[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)-# **getAssetDuplicates**-> List<AssetResponseDto> getAssetDuplicates()----### Example-```dart-import 'package:openapi/api.dart';--final api_instance = AssetApi();--try {- final result = api_instance.getAssetDuplicates();- print(result);-} catch (e) {- print('Exception when calling AssetApi->getAssetDuplicates: $e\n');-}-```--### Parameters-This endpoint does not need any parameter.--### Return type--[**List<AssetResponseDto>**](AssetResponseDto.md)--### Authorization--No authorization required--### HTTP request headers-- - **Content-Type**: Not defined- - **Accept**: application/json--[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)-# **getAssetInfo**> AssetResponseDto getAssetInfo(id, key)diff --git a/mobile/openapi/lib/api/asset_api.dart b/mobile/openapi/lib/api/asset_api.dartindex 5c81b89c58..dba33fc181 100644--- a/mobile/openapi/lib/api/asset_api.dart+++ b/mobile/openapi/lib/api/asset_api.dart@@ -326,50 +326,6 @@ class AssetApi {return null;}- /// Performs an HTTP 'GET /asset/duplicates' operation and returns the [Response].- Future<Response> getAssetDuplicatesWithHttpInfo() async {- // ignore: prefer_const_declarations- final path = r'/asset/duplicates';-- // ignore: prefer_final_locals- Object? postBody;-- final queryParams = <QueryParam>[];- final headerParams = <String, String>{};- final formParams = <String, String>{};-- const contentTypes = <String>[];--- return apiClient.invokeAPI(- path,- 'GET',- queryParams,- postBody,- headerParams,- formParams,- contentTypes.isEmpty ? null : contentTypes.first,- );- }-- Future<List<AssetResponseDto>?> getAssetDuplicates() async {- final response = await getAssetDuplicatesWithHttpInfo();- if (response.statusCode >= HttpStatus.badRequest) {- throw ApiException(response.statusCode, await _decodeBodyBytes(response));- }- // When a remote server returns no body with a status of 204, we shall not decode it.- // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"- // FormatException when trying to decode an empty string.- if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {- final responseBody = await _decodeBodyBytes(response);- return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List)- .cast<AssetResponseDto>()- .toList(growable: false);-- }- return null;- }-/// Performs an HTTP 'GET /asset/{id}' operation and returns the [Response]./// Parameters:///diff --git a/mobile/openapi/test/asset_api_test.dart b/mobile/openapi/test/asset_api_test.dartindex 4ab806f35b..de84e53546 100644--- a/mobile/openapi/test/asset_api_test.dart+++ b/mobile/openapi/test/asset_api_test.dart@@ -50,11 +50,6 @@ void main() {// TODO});- //Future<List<AssetResponseDto>> getAssetDuplicates() async- test('test getAssetDuplicates', () async {- // TODO- });-//Future<AssetResponseDto> getAssetInfo(String id, { String key }) asynctest('test getAssetInfo', () async {// TODOdiff --git a/open-api/immich-openapi-specs.json b/open-api/immich-openapi-specs.jsonindex 425bf81714..f59bc7a0ad 100644--- a/open-api/immich-openapi-specs.json+++ b/open-api/immich-openapi-specs.json@@ -1194,30 +1194,6 @@]}},- "/asset/duplicates": {- "get": {- "operationId": "getAssetDuplicates",- "parameters": [],- "responses": {- "200": {- "content": {- "application/json": {- "schema": {- "items": {- "$ref": "#/components/schemas/AssetResponseDto"- },- "type": "array"- }- }- },- "description": ""- }- },- "tags": [- "Asset"- ]- }- },"/asset/exist": {"post": {"description": "Checks if multiple assets exist on the server and returns all existing - used by background backup",diff --git a/open-api/typescript-sdk/src/fetch-client.ts b/open-api/typescript-sdk/src/fetch-client.tsindex 020188c8a8..996f69de83 100644--- a/open-api/typescript-sdk/src/fetch-client.ts+++ b/open-api/typescript-sdk/src/fetch-client.ts@@ -1407,14 +1407,6 @@ export function getAllUserAssetsByDeviceId({ deviceId }: {...opts}));}-export function getAssetDuplicates(opts?: Oazapfts.RequestOpts) {- return oazapfts.ok(oazapfts.fetchJson<{- status: 200;- data: AssetResponseDto[];- }>("/asset/duplicates", {- ...opts- }));-}/*** Checks if multiple assets exist on the server and returns all existing - used by background backup*/