diff --git a/mobile/lib/providers/authentication.provider.dart b/mobile/lib/providers/authentication.provider.dart index b5fb25bf20..3d98cb0e20 100644 --- a/mobile/lib/providers/authentication.provider.dart +++ b/mobile/lib/providers/authentication.provider.dart @@ -138,7 +138,7 @@ class AuthenticationNotifier extends StateNotifier { Future changePassword(String newPassword) async { try { - await _apiService.userApi.updateMyUser( + await _apiService.usersApi.updateMyUser( UserUpdateMeDto( password: newPassword, ), @@ -179,8 +179,8 @@ class AuthenticationNotifier extends StateNotifier { UserAdminResponseDto? userResponseDto; UserPreferencesResponseDto? userPreferences; try { - userResponseDto = await _apiService.userApi.getMyUser(); - userPreferences = await _apiService.userApi.getMyPreferences(); + userResponseDto = await _apiService.usersApi.getMyUser(); + userPreferences = await _apiService.usersApi.getMyPreferences(); } on ApiException catch (error, stackTrace) { _log.severe( "Error getting user information from the server [API EXCEPTION]", diff --git a/mobile/lib/providers/user.provider.dart b/mobile/lib/providers/user.provider.dart index 2767615526..971cfd5103 100644 --- a/mobile/lib/providers/user.provider.dart +++ b/mobile/lib/providers/user.provider.dart @@ -20,8 +20,8 @@ class CurrentUserProvider extends StateNotifier { refresh() async { try { - final user = await _apiService.userApi.getMyUser(); - final userPreferences = await _apiService.userApi.getMyPreferences(); + final user = await _apiService.usersApi.getMyUser(); + final userPreferences = await _apiService.usersApi.getMyPreferences(); if (user != null) { Store.put( StoreKey.currentUser, diff --git a/mobile/lib/routing/tab_navigation_observer.dart b/mobile/lib/routing/tab_navigation_observer.dart index 6c0f36050b..e16fecb323 100644 --- a/mobile/lib/routing/tab_navigation_observer.dart +++ b/mobile/lib/routing/tab_navigation_observer.dart @@ -57,9 +57,9 @@ class TabNavigationObserver extends AutoRouterObserver { // Update user info try { final userResponseDto = - await ref.read(apiServiceProvider).userApi.getMyUser(); + await ref.read(apiServiceProvider).usersApi.getMyUser(); final userPreferences = - await ref.read(apiServiceProvider).userApi.getMyPreferences(); + await ref.read(apiServiceProvider).usersApi.getMyPreferences(); if (userResponseDto == null) { return; diff --git a/mobile/lib/services/activity.service.dart b/mobile/lib/services/activity.service.dart index b8e5dc23c6..58af26e204 100644 --- a/mobile/lib/services/activity.service.dart +++ b/mobile/lib/services/activity.service.dart @@ -19,7 +19,7 @@ class ActivityService with ErrorLoggerMixin { }) async { return logError( () async { - final list = await _apiService.activityApi + final list = await _apiService.activitiesApi .getActivities(albumId, assetId: assetId); return list != null ? list.map(Activity.fromDto).toList() : []; }, @@ -31,7 +31,7 @@ class ActivityService with ErrorLoggerMixin { Future getStatistics(String albumId, {String? assetId}) async { return logError( () async { - final dto = await _apiService.activityApi + final dto = await _apiService.activitiesApi .getActivityStatistics(albumId, assetId: assetId); return dto?.comments ?? 0; }, @@ -43,7 +43,7 @@ class ActivityService with ErrorLoggerMixin { Future removeActivity(String id) async { return logError( () async { - await _apiService.activityApi.deleteActivity(id); + await _apiService.activitiesApi.deleteActivity(id); return true; }, defaultValue: false, @@ -59,7 +59,7 @@ class ActivityService with ErrorLoggerMixin { }) async { return guardError( () async { - final dto = await _apiService.activityApi.createActivity( + final dto = await _apiService.activitiesApi.createActivity( ActivityCreateDto( albumId: albumId, type: type == ActivityType.comment diff --git a/mobile/lib/services/album.service.dart b/mobile/lib/services/album.service.dart index c6d70c269a..c2494680c7 100644 --- a/mobile/lib/services/album.service.dart +++ b/mobile/lib/services/album.service.dart @@ -151,7 +151,7 @@ class AlbumService { bool changes = false; try { await _userService.refreshUsers(); - final List? serverAlbums = await _apiService.albumApi + final List? serverAlbums = await _apiService.albumsApi .getAllAlbums(shared: isShared ? true : null); if (serverAlbums == null) { return false; @@ -161,7 +161,7 @@ class AlbumService { isShared: isShared, loadDetails: (dto) async => dto.assetCount == dto.assets.length ? dto - : (await _apiService.albumApi.getAlbumInfo(dto.id)) ?? dto, + : (await _apiService.albumsApi.getAlbumInfo(dto.id)) ?? dto, ); } finally { _remoteCompleter.complete(changes); @@ -176,7 +176,7 @@ class AlbumService { Iterable sharedUsers = const [], ]) async { try { - AlbumResponseDto? remote = await _apiService.albumApi.createAlbum( + AlbumResponseDto? remote = await _apiService.albumsApi.createAlbum( CreateAlbumDto( albumName: albumName, assetIds: assets.map((asset) => asset.remoteId!).toList(), @@ -231,7 +231,7 @@ class AlbumService { Album album, ) async { try { - var response = await _apiService.albumApi.addAssetsToAlbum( + var response = await _apiService.albumsApi.addAssetsToAlbum( album.remoteId!, BulkIdsDto(ids: assets.map((asset) => asset.remoteId!).toList()), ); @@ -290,7 +290,7 @@ class AlbumService { .map((userId) => AlbumUserAddDto(userId: userId)) .toList(); - final result = await _apiService.albumApi.addUsersToAlbum( + final result = await _apiService.albumsApi.addUsersToAlbum( album.remoteId!, AddUsersDto(albumUsers: albumUsers), ); @@ -312,7 +312,7 @@ class AlbumService { Future setActivityEnabled(Album album, bool enabled) async { try { - final result = await _apiService.albumApi.updateAlbumInfo( + final result = await _apiService.albumsApi.updateAlbumInfo( album.remoteId!, UpdateAlbumDto(isActivityEnabled: enabled), ); @@ -331,7 +331,7 @@ class AlbumService { try { final userId = Store.get(StoreKey.currentUser).isarId; if (album.owner.value?.isarId == userId) { - await _apiService.albumApi.deleteAlbum(album.remoteId!); + await _apiService.albumsApi.deleteAlbum(album.remoteId!); } if (album.shared) { final foreignAssets = @@ -362,7 +362,7 @@ class AlbumService { Future leaveAlbum(Album album) async { try { - await _apiService.albumApi.removeUserFromAlbum(album.remoteId!, "me"); + await _apiService.albumsApi.removeUserFromAlbum(album.remoteId!, "me"); return true; } catch (e) { debugPrint("Error leaveAlbum ${e.toString()}"); @@ -375,7 +375,7 @@ class AlbumService { Iterable assets, ) async { try { - final response = await _apiService.albumApi.removeAssetFromAlbum( + final response = await _apiService.albumsApi.removeAssetFromAlbum( album.remoteId!, BulkIdsDto( ids: assets.map((asset) => asset.remoteId!).toList(), @@ -401,7 +401,7 @@ class AlbumService { User user, ) async { try { - await _apiService.albumApi.removeUserFromAlbum( + await _apiService.albumsApi.removeUserFromAlbum( album.remoteId!, user.id, ); @@ -426,7 +426,7 @@ class AlbumService { String newAlbumTitle, ) async { try { - await _apiService.albumApi.updateAlbumInfo( + await _apiService.albumsApi.updateAlbumInfo( album.remoteId!, UpdateAlbumDto( albumName: newAlbumTitle, diff --git a/mobile/lib/services/api.service.dart b/mobile/lib/services/api.service.dart index 0421f515ec..5381580e39 100644 --- a/mobile/lib/services/api.service.dart +++ b/mobile/lib/services/api.service.dart @@ -12,21 +12,21 @@ import 'package:http/http.dart'; class ApiService { late ApiClient _apiClient; - late UserApi userApi; + late UsersApi usersApi; late AuthenticationApi authenticationApi; late OAuthApi oAuthApi; - late AlbumApi albumApi; - late AssetApi assetApi; + late AlbumsApi albumsApi; + late AssetsApi assetsApi; late SearchApi searchApi; late ServerInfoApi serverInfoApi; late MapApi mapApi; - late PartnerApi partnerApi; - late PersonApi personApi; + late PartnersApi partnersApi; + late PeopleApi peopleApi; late AuditApi auditApi; - late SharedLinkApi sharedLinkApi; + late SharedLinksApi sharedLinksApi; late SyncApi syncApi; late SystemConfigApi systemConfigApi; - late ActivityApi activityApi; + late ActivitiesApi activitiesApi; late DownloadApi downloadApi; late TrashApi trashApi; @@ -44,21 +44,21 @@ class ApiService { if (_accessToken != null) { setAccessToken(_accessToken!); } - userApi = UserApi(_apiClient); + usersApi = UsersApi(_apiClient); authenticationApi = AuthenticationApi(_apiClient); oAuthApi = OAuthApi(_apiClient); - albumApi = AlbumApi(_apiClient); - assetApi = AssetApi(_apiClient); + albumsApi = AlbumsApi(_apiClient); + assetsApi = AssetsApi(_apiClient); serverInfoApi = ServerInfoApi(_apiClient); searchApi = SearchApi(_apiClient); mapApi = MapApi(_apiClient); - partnerApi = PartnerApi(_apiClient); - personApi = PersonApi(_apiClient); + partnersApi = PartnersApi(_apiClient); + peopleApi = PeopleApi(_apiClient); auditApi = AuditApi(_apiClient); - sharedLinkApi = SharedLinkApi(_apiClient); + sharedLinksApi = SharedLinksApi(_apiClient); syncApi = SyncApi(_apiClient); systemConfigApi = SystemConfigApi(_apiClient); - activityApi = ActivityApi(_apiClient); + activitiesApi = ActivitiesApi(_apiClient); downloadApi = DownloadApi(_apiClient); trashApi = TrashApi(_apiClient); } diff --git a/mobile/lib/services/asset.service.dart b/mobile/lib/services/asset.service.dart index aa156a9586..13090fe822 100644 --- a/mobile/lib/services/asset.service.dart +++ b/mobile/lib/services/asset.service.dart @@ -82,7 +82,7 @@ class AssetService { ) async { try { final AssetResponseDto? dto = - await _apiService.assetApi.getAssetInfo(remoteId); + await _apiService.assetsApi.getAssetInfo(remoteId); return dto?.people; } catch (error, stack) { @@ -138,7 +138,7 @@ class AssetService { payload.add(asset.remoteId!); } - await _apiService.assetApi.deleteAssets( + await _apiService.assetsApi.deleteAssets( AssetBulkDeleteDto( ids: payload, force: force, @@ -158,7 +158,7 @@ class AssetService { // fileSize is always filled on the server but not set on client if (a.exifInfo?.fileSize == null) { if (a.isRemote) { - final dto = await _apiService.assetApi.getAssetInfo(a.remoteId!); + final dto = await _apiService.assetsApi.getAssetInfo(a.remoteId!); if (dto != null && dto.exifInfo != null) { final newExif = Asset.remote(dto).exifInfo!.copyWith(id: a.id); if (newExif != a.exifInfo) { @@ -180,7 +180,7 @@ class AssetService { List assets, UpdateAssetDto updateAssetDto, ) async { - return await _apiService.assetApi.updateAssets( + return await _apiService.assetsApi.updateAssets( AssetBulkUpdateDto( ids: assets.map((e) => e.remoteId!).toList(), dateTimeOriginal: updateAssetDto.dateTimeOriginal, diff --git a/mobile/lib/services/asset_description.service.dart b/mobile/lib/services/asset_description.service.dart index 5c2568fb3b..3b9bc5d567 100644 --- a/mobile/lib/services/asset_description.service.dart +++ b/mobile/lib/services/asset_description.service.dart @@ -17,7 +17,7 @@ class AssetDescriptionService { String remoteAssetId, int localExifId, ) async { - final result = await _api.assetApi.updateAsset( + final result = await _api.assetsApi.updateAsset( remoteAssetId, UpdateAssetDto(description: description), ); @@ -36,7 +36,7 @@ class AssetDescriptionService { Future readLatest(String assetRemoteId, int localExifId) async { final latestAssetFromServer = - await _api.assetApi.getAssetInfo(assetRemoteId); + await _api.assetsApi.getAssetInfo(assetRemoteId); final localExifInfo = await _db.exifInfos.get(localExifId); if (latestAssetFromServer != null && localExifInfo != null) { diff --git a/mobile/lib/services/asset_stack.service.dart b/mobile/lib/services/asset_stack.service.dart index 43a902e13b..9eff495f37 100644 --- a/mobile/lib/services/asset_stack.service.dart +++ b/mobile/lib/services/asset_stack.service.dart @@ -27,7 +27,7 @@ class AssetStackService { .map((e) => e.remoteId!) .toList(); - await _api.assetApi.updateAssets( + await _api.assetsApi.updateAssets( AssetBulkUpdateDto(ids: toAdd, stackParentId: parentAsset.remoteId), ); } @@ -37,7 +37,7 @@ class AssetStackService { .where((e) => e.isRemote) .map((e) => e.remoteId!) .toList(); - await _api.assetApi.updateAssets( + await _api.assetsApi.updateAssets( AssetBulkUpdateDto(ids: toRemove, removeParent: true), ); } @@ -53,7 +53,7 @@ class AssetStackService { } try { - await _api.assetApi.updateStackParent( + await _api.assetsApi.updateStackParent( UpdateStackParentDto( oldParentId: oldParent.remoteId!, newParentId: newParent.remoteId!, diff --git a/mobile/lib/services/backup.service.dart b/mobile/lib/services/backup.service.dart index 8f958fff8c..24acba09b8 100644 --- a/mobile/lib/services/backup.service.dart +++ b/mobile/lib/services/backup.service.dart @@ -44,7 +44,7 @@ class BackupService { final String deviceId = Store.get(StoreKey.deviceId); try { - return await _apiService.assetApi.getAllUserAssetsByDeviceId(deviceId); + return await _apiService.assetsApi.getAllUserAssetsByDeviceId(deviceId); } catch (e) { debugPrint('Error [getDeviceBackupAsset] ${e.toString()}'); return null; @@ -178,7 +178,7 @@ class BackupService { try { final String deviceId = Store.get(StoreKey.deviceId); final CheckExistingAssetsResponseDto? duplicates = - await _apiService.assetApi.checkExistingAssets( + await _apiService.assetsApi.checkExistingAssets( CheckExistingAssetsDto( deviceAssetIds: candidates.map((e) => e.id).toList(), deviceId: deviceId, diff --git a/mobile/lib/services/backup_verification.service.dart b/mobile/lib/services/backup_verification.service.dart index 6a371d3a31..a73881310d 100644 --- a/mobile/lib/services/backup_verification.service.dart +++ b/mobile/lib/services/backup_verification.service.dart @@ -136,7 +136,7 @@ class BackupVerificationService { ExifInfo? exif = remote.exifInfo; if (exif != null && exif.lat != null) return false; if (exif == null || exif.fileSize == null) { - final dto = await apiService.assetApi.getAssetInfo(remote.remoteId!); + final dto = await apiService.assetsApi.getAssetInfo(remote.remoteId!); if (dto != null && dto.exifInfo != null) { exif = ExifInfo.fromDto(dto.exifInfo!); } diff --git a/mobile/lib/services/memory.service.dart b/mobile/lib/services/memory.service.dart index b426214c03..613b6ed91e 100644 --- a/mobile/lib/services/memory.service.dart +++ b/mobile/lib/services/memory.service.dart @@ -28,7 +28,7 @@ class MemoryService { Future?> getMemoryLane() async { try { final now = DateTime.now(); - final data = await _apiService.assetApi.getMemoryLane( + final data = await _apiService.assetsApi.getMemoryLane( now.day, now.month, ); diff --git a/mobile/lib/services/partner.service.dart b/mobile/lib/services/partner.service.dart index b66fdd72ed..84f37ce7e1 100644 --- a/mobile/lib/services/partner.service.dart +++ b/mobile/lib/services/partner.service.dart @@ -35,7 +35,7 @@ class PartnerService { Future?> getPartners(PartnerDirection direction) async { try { final userDtos = - await _apiService.partnerApi.getPartners(direction._value); + await _apiService.partnersApi.getPartners(direction._value); if (userDtos != null) { return userDtos.map((u) => User.fromPartnerDto(u)).toList(); } @@ -47,7 +47,7 @@ class PartnerService { Future removePartner(User partner) async { try { - await _apiService.partnerApi.removePartner(partner.id); + await _apiService.partnersApi.removePartner(partner.id); partner.isPartnerSharedBy = false; await _db.writeTxn(() => _db.users.put(partner)); } catch (e) { @@ -59,7 +59,7 @@ class PartnerService { Future addPartner(User partner) async { try { - final dto = await _apiService.partnerApi.createPartner(partner.id); + final dto = await _apiService.partnersApi.createPartner(partner.id); if (dto != null) { partner.isPartnerSharedBy = true; await _db.writeTxn(() => _db.users.put(partner)); @@ -73,7 +73,7 @@ class PartnerService { Future updatePartner(User partner, {required bool inTimeline}) async { try { - final dto = await _apiService.partnerApi + final dto = await _apiService.partnersApi .updatePartner(partner.id, UpdatePartnerDto(inTimeline: inTimeline)); if (dto != null) { partner.inTimeline = dto.inTimeline ?? partner.inTimeline; diff --git a/mobile/lib/services/person.service.dart b/mobile/lib/services/person.service.dart index ce3df867cd..f35ae1a225 100644 --- a/mobile/lib/services/person.service.dart +++ b/mobile/lib/services/person.service.dart @@ -22,7 +22,7 @@ class PersonService { Future> getAllPeople() async { try { - final peopleResponseDto = await _apiService.personApi.getAllPeople(); + final peopleResponseDto = await _apiService.peopleApi.getAllPeople(); return peopleResponseDto?.people ?? []; } catch (error, stack) { _log.severe("Error while fetching curated people", error, stack); @@ -32,7 +32,7 @@ class PersonService { Future?> getPersonAssets(String id) async { try { - final assets = await _apiService.personApi.getPersonAssets(id); + final assets = await _apiService.peopleApi.getPersonAssets(id); if (assets == null) return null; return await _db.assets.getAllByRemoteId(assets.map((e) => e.id)); } catch (error, stack) { @@ -43,7 +43,7 @@ class PersonService { Future updateName(String id, String name) async { try { - return await _apiService.personApi.updatePerson( + return await _apiService.peopleApi.updatePerson( id, PersonUpdateDto( name: name, diff --git a/mobile/lib/services/shared_link.service.dart b/mobile/lib/services/shared_link.service.dart index 2a8e633aa9..a2b5ed9062 100644 --- a/mobile/lib/services/shared_link.service.dart +++ b/mobile/lib/services/shared_link.service.dart @@ -17,7 +17,7 @@ class SharedLinkService { Future>> getAllSharedLinks() async { try { - final list = await _apiService.sharedLinkApi.getAllSharedLinks(); + final list = await _apiService.sharedLinksApi.getAllSharedLinks(); return list != null ? AsyncData(list.map(SharedLink.fromDto).toList()) : const AsyncData([]); @@ -29,7 +29,7 @@ class SharedLinkService { Future deleteSharedLink(String id) async { try { - return await _apiService.sharedLinkApi.removeSharedLink(id); + return await _apiService.sharedLinksApi.removeSharedLink(id); } catch (e) { _log.severe("Failed to delete shared link id - $id", e); } @@ -75,7 +75,7 @@ class SharedLinkService { if (dto != null) { final responseDto = - await _apiService.sharedLinkApi.createSharedLink(dto); + await _apiService.sharedLinksApi.createSharedLink(dto); if (responseDto != null) { return SharedLink.fromDto(responseDto); } @@ -97,7 +97,7 @@ class SharedLinkService { DateTime? expiresAt, }) async { try { - final responseDto = await _apiService.sharedLinkApi.updateSharedLink( + final responseDto = await _apiService.sharedLinksApi.updateSharedLink( id, SharedLinkEditDto( showMetadata: showMeta, diff --git a/mobile/lib/services/user.service.dart b/mobile/lib/services/user.service.dart index 4e88bab12c..0d8d47b104 100644 --- a/mobile/lib/services/user.service.dart +++ b/mobile/lib/services/user.service.dart @@ -39,7 +39,7 @@ class UserService { Future?> _getAllUsers() async { try { - final dto = await _apiService.userApi.searchUsers(); + final dto = await _apiService.usersApi.searchUsers(); return dto?.map(User.fromSimpleUserDto).toList(); } catch (e) { _log.warning("Failed get all users", e); @@ -57,7 +57,7 @@ class UserService { Future uploadProfileImage(XFile image) async { try { - return await _apiService.userApi.createProfileImage( + return await _apiService.usersApi.createProfileImage( MultipartFile.fromBytes( 'file', await image.readAsBytes(), diff --git a/mobile/openapi/README.md b/mobile/openapi/README.md index 4a5fdfadd8..3010822ee5 100644 --- a/mobile/openapi/README.md +++ b/mobile/openapi/README.md @@ -55,14 +55,14 @@ import 'package:openapi/api.dart'; // String yourTokenGeneratorFunction() { ... } //defaultApiClient.getAuthentication('bearer').setAccessToken(yourTokenGeneratorFunction); -final api_instance = APIKeyApi(); +final api_instance = APIKeysApi(); final aPIKeyCreateDto = APIKeyCreateDto(); // APIKeyCreateDto | try { final result = api_instance.createApiKey(aPIKeyCreateDto); print(result); } catch (e) { - print('Exception when calling APIKeyApi->createApiKey: $e\n'); + print('Exception when calling APIKeysApi->createApiKey: $e\n'); } ``` @@ -73,42 +73,42 @@ All URIs are relative to */api* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*APIKeyApi* | [**createApiKey**](doc//APIKeyApi.md#createapikey) | **POST** /api-keys | -*APIKeyApi* | [**deleteApiKey**](doc//APIKeyApi.md#deleteapikey) | **DELETE** /api-keys/{id} | -*APIKeyApi* | [**getApiKey**](doc//APIKeyApi.md#getapikey) | **GET** /api-keys/{id} | -*APIKeyApi* | [**getApiKeys**](doc//APIKeyApi.md#getapikeys) | **GET** /api-keys | -*APIKeyApi* | [**updateApiKey**](doc//APIKeyApi.md#updateapikey) | **PUT** /api-keys/{id} | -*ActivityApi* | [**createActivity**](doc//ActivityApi.md#createactivity) | **POST** /activities | -*ActivityApi* | [**deleteActivity**](doc//ActivityApi.md#deleteactivity) | **DELETE** /activities/{id} | -*ActivityApi* | [**getActivities**](doc//ActivityApi.md#getactivities) | **GET** /activities | -*ActivityApi* | [**getActivityStatistics**](doc//ActivityApi.md#getactivitystatistics) | **GET** /activities/statistics | -*AlbumApi* | [**addAssetsToAlbum**](doc//AlbumApi.md#addassetstoalbum) | **PUT** /albums/{id}/assets | -*AlbumApi* | [**addUsersToAlbum**](doc//AlbumApi.md#adduserstoalbum) | **PUT** /albums/{id}/users | -*AlbumApi* | [**createAlbum**](doc//AlbumApi.md#createalbum) | **POST** /albums | -*AlbumApi* | [**deleteAlbum**](doc//AlbumApi.md#deletealbum) | **DELETE** /albums/{id} | -*AlbumApi* | [**getAlbumCount**](doc//AlbumApi.md#getalbumcount) | **GET** /albums/count | -*AlbumApi* | [**getAlbumInfo**](doc//AlbumApi.md#getalbuminfo) | **GET** /albums/{id} | -*AlbumApi* | [**getAllAlbums**](doc//AlbumApi.md#getallalbums) | **GET** /albums | -*AlbumApi* | [**removeAssetFromAlbum**](doc//AlbumApi.md#removeassetfromalbum) | **DELETE** /albums/{id}/assets | -*AlbumApi* | [**removeUserFromAlbum**](doc//AlbumApi.md#removeuserfromalbum) | **DELETE** /albums/{id}/user/{userId} | -*AlbumApi* | [**updateAlbumInfo**](doc//AlbumApi.md#updatealbuminfo) | **PATCH** /albums/{id} | -*AlbumApi* | [**updateAlbumUser**](doc//AlbumApi.md#updatealbumuser) | **PUT** /albums/{id}/user/{userId} | -*AssetApi* | [**checkBulkUpload**](doc//AssetApi.md#checkbulkupload) | **POST** /asset/bulk-upload-check | -*AssetApi* | [**checkExistingAssets**](doc//AssetApi.md#checkexistingassets) | **POST** /asset/exist | -*AssetApi* | [**deleteAssets**](doc//AssetApi.md#deleteassets) | **DELETE** /asset | -*AssetApi* | [**getAllUserAssetsByDeviceId**](doc//AssetApi.md#getalluserassetsbydeviceid) | **GET** /asset/device/{deviceId} | -*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} | -*AssetApi* | [**getMemoryLane**](doc//AssetApi.md#getmemorylane) | **GET** /asset/memory-lane | -*AssetApi* | [**getRandom**](doc//AssetApi.md#getrandom) | **GET** /asset/random | -*AssetApi* | [**replaceAsset**](doc//AssetApi.md#replaceasset) | **PUT** /asset/{id}/file | -*AssetApi* | [**runAssetJobs**](doc//AssetApi.md#runassetjobs) | **POST** /asset/jobs | -*AssetApi* | [**serveFile**](doc//AssetApi.md#servefile) | **GET** /asset/file/{id} | -*AssetApi* | [**updateAsset**](doc//AssetApi.md#updateasset) | **PUT** /asset/{id} | -*AssetApi* | [**updateAssets**](doc//AssetApi.md#updateassets) | **PUT** /asset | -*AssetApi* | [**updateStackParent**](doc//AssetApi.md#updatestackparent) | **PUT** /asset/stack/parent | -*AssetApi* | [**uploadFile**](doc//AssetApi.md#uploadfile) | **POST** /asset/upload | +*APIKeysApi* | [**createApiKey**](doc//APIKeysApi.md#createapikey) | **POST** /api-keys | +*APIKeysApi* | [**deleteApiKey**](doc//APIKeysApi.md#deleteapikey) | **DELETE** /api-keys/{id} | +*APIKeysApi* | [**getApiKey**](doc//APIKeysApi.md#getapikey) | **GET** /api-keys/{id} | +*APIKeysApi* | [**getApiKeys**](doc//APIKeysApi.md#getapikeys) | **GET** /api-keys | +*APIKeysApi* | [**updateApiKey**](doc//APIKeysApi.md#updateapikey) | **PUT** /api-keys/{id} | +*ActivitiesApi* | [**createActivity**](doc//ActivitiesApi.md#createactivity) | **POST** /activities | +*ActivitiesApi* | [**deleteActivity**](doc//ActivitiesApi.md#deleteactivity) | **DELETE** /activities/{id} | +*ActivitiesApi* | [**getActivities**](doc//ActivitiesApi.md#getactivities) | **GET** /activities | +*ActivitiesApi* | [**getActivityStatistics**](doc//ActivitiesApi.md#getactivitystatistics) | **GET** /activities/statistics | +*AlbumsApi* | [**addAssetsToAlbum**](doc//AlbumsApi.md#addassetstoalbum) | **PUT** /albums/{id}/assets | +*AlbumsApi* | [**addUsersToAlbum**](doc//AlbumsApi.md#adduserstoalbum) | **PUT** /albums/{id}/users | +*AlbumsApi* | [**createAlbum**](doc//AlbumsApi.md#createalbum) | **POST** /albums | +*AlbumsApi* | [**deleteAlbum**](doc//AlbumsApi.md#deletealbum) | **DELETE** /albums/{id} | +*AlbumsApi* | [**getAlbumCount**](doc//AlbumsApi.md#getalbumcount) | **GET** /albums/count | +*AlbumsApi* | [**getAlbumInfo**](doc//AlbumsApi.md#getalbuminfo) | **GET** /albums/{id} | +*AlbumsApi* | [**getAllAlbums**](doc//AlbumsApi.md#getallalbums) | **GET** /albums | +*AlbumsApi* | [**removeAssetFromAlbum**](doc//AlbumsApi.md#removeassetfromalbum) | **DELETE** /albums/{id}/assets | +*AlbumsApi* | [**removeUserFromAlbum**](doc//AlbumsApi.md#removeuserfromalbum) | **DELETE** /albums/{id}/user/{userId} | +*AlbumsApi* | [**updateAlbumInfo**](doc//AlbumsApi.md#updatealbuminfo) | **PATCH** /albums/{id} | +*AlbumsApi* | [**updateAlbumUser**](doc//AlbumsApi.md#updatealbumuser) | **PUT** /albums/{id}/user/{userId} | +*AssetsApi* | [**checkBulkUpload**](doc//AssetsApi.md#checkbulkupload) | **POST** /asset/bulk-upload-check | +*AssetsApi* | [**checkExistingAssets**](doc//AssetsApi.md#checkexistingassets) | **POST** /asset/exist | +*AssetsApi* | [**deleteAssets**](doc//AssetsApi.md#deleteassets) | **DELETE** /asset | +*AssetsApi* | [**getAllUserAssetsByDeviceId**](doc//AssetsApi.md#getalluserassetsbydeviceid) | **GET** /asset/device/{deviceId} | +*AssetsApi* | [**getAssetInfo**](doc//AssetsApi.md#getassetinfo) | **GET** /asset/{id} | +*AssetsApi* | [**getAssetStatistics**](doc//AssetsApi.md#getassetstatistics) | **GET** /asset/statistics | +*AssetsApi* | [**getAssetThumbnail**](doc//AssetsApi.md#getassetthumbnail) | **GET** /asset/thumbnail/{id} | +*AssetsApi* | [**getMemoryLane**](doc//AssetsApi.md#getmemorylane) | **GET** /asset/memory-lane | +*AssetsApi* | [**getRandom**](doc//AssetsApi.md#getrandom) | **GET** /asset/random | +*AssetsApi* | [**replaceAsset**](doc//AssetsApi.md#replaceasset) | **PUT** /asset/{id}/file | +*AssetsApi* | [**runAssetJobs**](doc//AssetsApi.md#runassetjobs) | **POST** /asset/jobs | +*AssetsApi* | [**serveFile**](doc//AssetsApi.md#servefile) | **GET** /asset/file/{id} | +*AssetsApi* | [**updateAsset**](doc//AssetsApi.md#updateasset) | **PUT** /asset/{id} | +*AssetsApi* | [**updateAssets**](doc//AssetsApi.md#updateassets) | **PUT** /asset | +*AssetsApi* | [**updateStackParent**](doc//AssetsApi.md#updatestackparent) | **PUT** /asset/stack/parent | +*AssetsApi* | [**uploadFile**](doc//AssetsApi.md#uploadfile) | **POST** /asset/upload | *AuditApi* | [**getAuditDeletes**](doc//AuditApi.md#getauditdeletes) | **GET** /audit/deletes | *AuthenticationApi* | [**changePassword**](doc//AuthenticationApi.md#changepassword) | **POST** /auth/change-password | *AuthenticationApi* | [**login**](doc//AuthenticationApi.md#login) | **POST** /auth/login | @@ -118,51 +118,51 @@ Class | Method | HTTP request | Description *DownloadApi* | [**downloadArchive**](doc//DownloadApi.md#downloadarchive) | **POST** /download/archive | *DownloadApi* | [**downloadFile**](doc//DownloadApi.md#downloadfile) | **POST** /download/asset/{id} | *DownloadApi* | [**getDownloadInfo**](doc//DownloadApi.md#getdownloadinfo) | **POST** /download/info | -*DuplicateApi* | [**getAssetDuplicates**](doc//DuplicateApi.md#getassetduplicates) | **GET** /duplicates | -*FaceApi* | [**getFaces**](doc//FaceApi.md#getfaces) | **GET** /faces | -*FaceApi* | [**reassignFacesById**](doc//FaceApi.md#reassignfacesbyid) | **PUT** /faces/{id} | -*FileReportApi* | [**fixAuditFiles**](doc//FileReportApi.md#fixauditfiles) | **POST** /reports/fix | -*FileReportApi* | [**getAuditFiles**](doc//FileReportApi.md#getauditfiles) | **GET** /reports | -*FileReportApi* | [**getFileChecksums**](doc//FileReportApi.md#getfilechecksums) | **POST** /reports/checksum | -*JobApi* | [**getAllJobsStatus**](doc//JobApi.md#getalljobsstatus) | **GET** /jobs | -*JobApi* | [**sendJobCommand**](doc//JobApi.md#sendjobcommand) | **PUT** /jobs/{id} | -*LibraryApi* | [**createLibrary**](doc//LibraryApi.md#createlibrary) | **POST** /libraries | -*LibraryApi* | [**deleteLibrary**](doc//LibraryApi.md#deletelibrary) | **DELETE** /libraries/{id} | -*LibraryApi* | [**getAllLibraries**](doc//LibraryApi.md#getalllibraries) | **GET** /libraries | -*LibraryApi* | [**getLibrary**](doc//LibraryApi.md#getlibrary) | **GET** /libraries/{id} | -*LibraryApi* | [**getLibraryStatistics**](doc//LibraryApi.md#getlibrarystatistics) | **GET** /libraries/{id}/statistics | -*LibraryApi* | [**removeOfflineFiles**](doc//LibraryApi.md#removeofflinefiles) | **POST** /libraries/{id}/removeOffline | -*LibraryApi* | [**scanLibrary**](doc//LibraryApi.md#scanlibrary) | **POST** /libraries/{id}/scan | -*LibraryApi* | [**updateLibrary**](doc//LibraryApi.md#updatelibrary) | **PUT** /libraries/{id} | -*LibraryApi* | [**validate**](doc//LibraryApi.md#validate) | **POST** /libraries/{id}/validate | +*DuplicatesApi* | [**getAssetDuplicates**](doc//DuplicatesApi.md#getassetduplicates) | **GET** /duplicates | +*FacesApi* | [**getFaces**](doc//FacesApi.md#getfaces) | **GET** /faces | +*FacesApi* | [**reassignFacesById**](doc//FacesApi.md#reassignfacesbyid) | **PUT** /faces/{id} | +*FileReportsApi* | [**fixAuditFiles**](doc//FileReportsApi.md#fixauditfiles) | **POST** /reports/fix | +*FileReportsApi* | [**getAuditFiles**](doc//FileReportsApi.md#getauditfiles) | **GET** /reports | +*FileReportsApi* | [**getFileChecksums**](doc//FileReportsApi.md#getfilechecksums) | **POST** /reports/checksum | +*JobsApi* | [**getAllJobsStatus**](doc//JobsApi.md#getalljobsstatus) | **GET** /jobs | +*JobsApi* | [**sendJobCommand**](doc//JobsApi.md#sendjobcommand) | **PUT** /jobs/{id} | +*LibrariesApi* | [**createLibrary**](doc//LibrariesApi.md#createlibrary) | **POST** /libraries | +*LibrariesApi* | [**deleteLibrary**](doc//LibrariesApi.md#deletelibrary) | **DELETE** /libraries/{id} | +*LibrariesApi* | [**getAllLibraries**](doc//LibrariesApi.md#getalllibraries) | **GET** /libraries | +*LibrariesApi* | [**getLibrary**](doc//LibrariesApi.md#getlibrary) | **GET** /libraries/{id} | +*LibrariesApi* | [**getLibraryStatistics**](doc//LibrariesApi.md#getlibrarystatistics) | **GET** /libraries/{id}/statistics | +*LibrariesApi* | [**removeOfflineFiles**](doc//LibrariesApi.md#removeofflinefiles) | **POST** /libraries/{id}/removeOffline | +*LibrariesApi* | [**scanLibrary**](doc//LibrariesApi.md#scanlibrary) | **POST** /libraries/{id}/scan | +*LibrariesApi* | [**updateLibrary**](doc//LibrariesApi.md#updatelibrary) | **PUT** /libraries/{id} | +*LibrariesApi* | [**validate**](doc//LibrariesApi.md#validate) | **POST** /libraries/{id}/validate | *MapApi* | [**getMapMarkers**](doc//MapApi.md#getmapmarkers) | **GET** /map/markers | *MapApi* | [**getMapStyle**](doc//MapApi.md#getmapstyle) | **GET** /map/style.json | -*MemoryApi* | [**addMemoryAssets**](doc//MemoryApi.md#addmemoryassets) | **PUT** /memories/{id}/assets | -*MemoryApi* | [**createMemory**](doc//MemoryApi.md#creatememory) | **POST** /memories | -*MemoryApi* | [**deleteMemory**](doc//MemoryApi.md#deletememory) | **DELETE** /memories/{id} | -*MemoryApi* | [**getMemory**](doc//MemoryApi.md#getmemory) | **GET** /memories/{id} | -*MemoryApi* | [**removeMemoryAssets**](doc//MemoryApi.md#removememoryassets) | **DELETE** /memories/{id}/assets | -*MemoryApi* | [**searchMemories**](doc//MemoryApi.md#searchmemories) | **GET** /memories | -*MemoryApi* | [**updateMemory**](doc//MemoryApi.md#updatememory) | **PUT** /memories/{id} | +*MemoriesApi* | [**addMemoryAssets**](doc//MemoriesApi.md#addmemoryassets) | **PUT** /memories/{id}/assets | +*MemoriesApi* | [**createMemory**](doc//MemoriesApi.md#creatememory) | **POST** /memories | +*MemoriesApi* | [**deleteMemory**](doc//MemoriesApi.md#deletememory) | **DELETE** /memories/{id} | +*MemoriesApi* | [**getMemory**](doc//MemoriesApi.md#getmemory) | **GET** /memories/{id} | +*MemoriesApi* | [**removeMemoryAssets**](doc//MemoriesApi.md#removememoryassets) | **DELETE** /memories/{id}/assets | +*MemoriesApi* | [**searchMemories**](doc//MemoriesApi.md#searchmemories) | **GET** /memories | +*MemoriesApi* | [**updateMemory**](doc//MemoriesApi.md#updatememory) | **PUT** /memories/{id} | *OAuthApi* | [**finishOAuth**](doc//OAuthApi.md#finishoauth) | **POST** /oauth/callback | *OAuthApi* | [**linkOAuthAccount**](doc//OAuthApi.md#linkoauthaccount) | **POST** /oauth/link | *OAuthApi* | [**redirectOAuthToMobile**](doc//OAuthApi.md#redirectoauthtomobile) | **GET** /oauth/mobile-redirect | *OAuthApi* | [**startOAuth**](doc//OAuthApi.md#startoauth) | **POST** /oauth/authorize | *OAuthApi* | [**unlinkOAuthAccount**](doc//OAuthApi.md#unlinkoauthaccount) | **POST** /oauth/unlink | -*PartnerApi* | [**createPartner**](doc//PartnerApi.md#createpartner) | **POST** /partners/{id} | -*PartnerApi* | [**getPartners**](doc//PartnerApi.md#getpartners) | **GET** /partners | -*PartnerApi* | [**removePartner**](doc//PartnerApi.md#removepartner) | **DELETE** /partners/{id} | -*PartnerApi* | [**updatePartner**](doc//PartnerApi.md#updatepartner) | **PUT** /partners/{id} | -*PersonApi* | [**createPerson**](doc//PersonApi.md#createperson) | **POST** /people | -*PersonApi* | [**getAllPeople**](doc//PersonApi.md#getallpeople) | **GET** /people | -*PersonApi* | [**getPerson**](doc//PersonApi.md#getperson) | **GET** /people/{id} | -*PersonApi* | [**getPersonAssets**](doc//PersonApi.md#getpersonassets) | **GET** /people/{id}/assets | -*PersonApi* | [**getPersonStatistics**](doc//PersonApi.md#getpersonstatistics) | **GET** /people/{id}/statistics | -*PersonApi* | [**getPersonThumbnail**](doc//PersonApi.md#getpersonthumbnail) | **GET** /people/{id}/thumbnail | -*PersonApi* | [**mergePerson**](doc//PersonApi.md#mergeperson) | **POST** /people/{id}/merge | -*PersonApi* | [**reassignFaces**](doc//PersonApi.md#reassignfaces) | **PUT** /people/{id}/reassign | -*PersonApi* | [**updatePeople**](doc//PersonApi.md#updatepeople) | **PUT** /people | -*PersonApi* | [**updatePerson**](doc//PersonApi.md#updateperson) | **PUT** /people/{id} | +*PartnersApi* | [**createPartner**](doc//PartnersApi.md#createpartner) | **POST** /partners/{id} | +*PartnersApi* | [**getPartners**](doc//PartnersApi.md#getpartners) | **GET** /partners | +*PartnersApi* | [**removePartner**](doc//PartnersApi.md#removepartner) | **DELETE** /partners/{id} | +*PartnersApi* | [**updatePartner**](doc//PartnersApi.md#updatepartner) | **PUT** /partners/{id} | +*PeopleApi* | [**createPerson**](doc//PeopleApi.md#createperson) | **POST** /people | +*PeopleApi* | [**getAllPeople**](doc//PeopleApi.md#getallpeople) | **GET** /people | +*PeopleApi* | [**getPerson**](doc//PeopleApi.md#getperson) | **GET** /people/{id} | +*PeopleApi* | [**getPersonAssets**](doc//PeopleApi.md#getpersonassets) | **GET** /people/{id}/assets | +*PeopleApi* | [**getPersonStatistics**](doc//PeopleApi.md#getpersonstatistics) | **GET** /people/{id}/statistics | +*PeopleApi* | [**getPersonThumbnail**](doc//PeopleApi.md#getpersonthumbnail) | **GET** /people/{id}/thumbnail | +*PeopleApi* | [**mergePerson**](doc//PeopleApi.md#mergeperson) | **POST** /people/{id}/merge | +*PeopleApi* | [**reassignFaces**](doc//PeopleApi.md#reassignfaces) | **PUT** /people/{id}/reassign | +*PeopleApi* | [**updatePeople**](doc//PeopleApi.md#updatepeople) | **PUT** /people | +*PeopleApi* | [**updatePerson**](doc//PeopleApi.md#updateperson) | **PUT** /people/{id} | *SearchApi* | [**getAssetsByCity**](doc//SearchApi.md#getassetsbycity) | **GET** /search/cities | *SearchApi* | [**getExploreData**](doc//SearchApi.md#getexploredata) | **GET** /search/explore | *SearchApi* | [**getSearchSuggestions**](doc//SearchApi.md#getsearchsuggestions) | **GET** /search/suggestions | @@ -181,14 +181,14 @@ Class | Method | HTTP request | Description *SessionsApi* | [**deleteAllSessions**](doc//SessionsApi.md#deleteallsessions) | **DELETE** /sessions | *SessionsApi* | [**deleteSession**](doc//SessionsApi.md#deletesession) | **DELETE** /sessions/{id} | *SessionsApi* | [**getSessions**](doc//SessionsApi.md#getsessions) | **GET** /sessions | -*SharedLinkApi* | [**addSharedLinkAssets**](doc//SharedLinkApi.md#addsharedlinkassets) | **PUT** /shared-links/{id}/assets | -*SharedLinkApi* | [**createSharedLink**](doc//SharedLinkApi.md#createsharedlink) | **POST** /shared-links | -*SharedLinkApi* | [**getAllSharedLinks**](doc//SharedLinkApi.md#getallsharedlinks) | **GET** /shared-links | -*SharedLinkApi* | [**getMySharedLink**](doc//SharedLinkApi.md#getmysharedlink) | **GET** /shared-links/me | -*SharedLinkApi* | [**getSharedLinkById**](doc//SharedLinkApi.md#getsharedlinkbyid) | **GET** /shared-links/{id} | -*SharedLinkApi* | [**removeSharedLink**](doc//SharedLinkApi.md#removesharedlink) | **DELETE** /shared-links/{id} | -*SharedLinkApi* | [**removeSharedLinkAssets**](doc//SharedLinkApi.md#removesharedlinkassets) | **DELETE** /shared-links/{id}/assets | -*SharedLinkApi* | [**updateSharedLink**](doc//SharedLinkApi.md#updatesharedlink) | **PATCH** /shared-links/{id} | +*SharedLinksApi* | [**addSharedLinkAssets**](doc//SharedLinksApi.md#addsharedlinkassets) | **PUT** /shared-links/{id}/assets | +*SharedLinksApi* | [**createSharedLink**](doc//SharedLinksApi.md#createsharedlink) | **POST** /shared-links | +*SharedLinksApi* | [**getAllSharedLinks**](doc//SharedLinksApi.md#getallsharedlinks) | **GET** /shared-links | +*SharedLinksApi* | [**getMySharedLink**](doc//SharedLinksApi.md#getmysharedlink) | **GET** /shared-links/me | +*SharedLinksApi* | [**getSharedLinkById**](doc//SharedLinksApi.md#getsharedlinkbyid) | **GET** /shared-links/{id} | +*SharedLinksApi* | [**removeSharedLink**](doc//SharedLinksApi.md#removesharedlink) | **DELETE** /shared-links/{id} | +*SharedLinksApi* | [**removeSharedLinkAssets**](doc//SharedLinksApi.md#removesharedlinkassets) | **DELETE** /shared-links/{id}/assets | +*SharedLinksApi* | [**updateSharedLink**](doc//SharedLinksApi.md#updatesharedlink) | **PATCH** /shared-links/{id} | *SyncApi* | [**getDeltaSync**](doc//SyncApi.md#getdeltasync) | **POST** /sync/delta-sync | *SyncApi* | [**getFullSyncForUser**](doc//SyncApi.md#getfullsyncforuser) | **POST** /sync/full-sync | *SystemConfigApi* | [**getConfig**](doc//SystemConfigApi.md#getconfig) | **GET** /system-config | @@ -198,36 +198,36 @@ Class | Method | HTTP request | Description *SystemMetadataApi* | [**getAdminOnboarding**](doc//SystemMetadataApi.md#getadminonboarding) | **GET** /system-metadata/admin-onboarding | *SystemMetadataApi* | [**getReverseGeocodingState**](doc//SystemMetadataApi.md#getreversegeocodingstate) | **GET** /system-metadata/reverse-geocoding-state | *SystemMetadataApi* | [**updateAdminOnboarding**](doc//SystemMetadataApi.md#updateadminonboarding) | **POST** /system-metadata/admin-onboarding | -*TagApi* | [**createTag**](doc//TagApi.md#createtag) | **POST** /tags | -*TagApi* | [**deleteTag**](doc//TagApi.md#deletetag) | **DELETE** /tags/{id} | -*TagApi* | [**getAllTags**](doc//TagApi.md#getalltags) | **GET** /tags | -*TagApi* | [**getTagAssets**](doc//TagApi.md#gettagassets) | **GET** /tags/{id}/assets | -*TagApi* | [**getTagById**](doc//TagApi.md#gettagbyid) | **GET** /tags/{id} | -*TagApi* | [**tagAssets**](doc//TagApi.md#tagassets) | **PUT** /tags/{id}/assets | -*TagApi* | [**untagAssets**](doc//TagApi.md#untagassets) | **DELETE** /tags/{id}/assets | -*TagApi* | [**updateTag**](doc//TagApi.md#updatetag) | **PATCH** /tags/{id} | +*TagsApi* | [**createTag**](doc//TagsApi.md#createtag) | **POST** /tags | +*TagsApi* | [**deleteTag**](doc//TagsApi.md#deletetag) | **DELETE** /tags/{id} | +*TagsApi* | [**getAllTags**](doc//TagsApi.md#getalltags) | **GET** /tags | +*TagsApi* | [**getTagAssets**](doc//TagsApi.md#gettagassets) | **GET** /tags/{id}/assets | +*TagsApi* | [**getTagById**](doc//TagsApi.md#gettagbyid) | **GET** /tags/{id} | +*TagsApi* | [**tagAssets**](doc//TagsApi.md#tagassets) | **PUT** /tags/{id}/assets | +*TagsApi* | [**untagAssets**](doc//TagsApi.md#untagassets) | **DELETE** /tags/{id}/assets | +*TagsApi* | [**updateTag**](doc//TagsApi.md#updatetag) | **PATCH** /tags/{id} | *TimelineApi* | [**getTimeBucket**](doc//TimelineApi.md#gettimebucket) | **GET** /timeline/bucket | *TimelineApi* | [**getTimeBuckets**](doc//TimelineApi.md#gettimebuckets) | **GET** /timeline/buckets | *TrashApi* | [**emptyTrash**](doc//TrashApi.md#emptytrash) | **POST** /trash/empty | *TrashApi* | [**restoreAssets**](doc//TrashApi.md#restoreassets) | **POST** /trash/restore/assets | *TrashApi* | [**restoreTrash**](doc//TrashApi.md#restoretrash) | **POST** /trash/restore | -*UserApi* | [**createProfileImage**](doc//UserApi.md#createprofileimage) | **POST** /users/profile-image | -*UserApi* | [**createUserAdmin**](doc//UserApi.md#createuseradmin) | **POST** /admin/users | -*UserApi* | [**deleteProfileImage**](doc//UserApi.md#deleteprofileimage) | **DELETE** /users/profile-image | -*UserApi* | [**deleteUserAdmin**](doc//UserApi.md#deleteuseradmin) | **DELETE** /admin/users/{id} | -*UserApi* | [**getMyPreferences**](doc//UserApi.md#getmypreferences) | **GET** /users/me/preferences | -*UserApi* | [**getMyUser**](doc//UserApi.md#getmyuser) | **GET** /users/me | -*UserApi* | [**getProfileImage**](doc//UserApi.md#getprofileimage) | **GET** /users/{id}/profile-image | -*UserApi* | [**getUser**](doc//UserApi.md#getuser) | **GET** /users/{id} | -*UserApi* | [**getUserAdmin**](doc//UserApi.md#getuseradmin) | **GET** /admin/users/{id} | -*UserApi* | [**getUserPreferencesAdmin**](doc//UserApi.md#getuserpreferencesadmin) | **GET** /admin/users/{id}/preferences | -*UserApi* | [**restoreUserAdmin**](doc//UserApi.md#restoreuseradmin) | **POST** /admin/users/{id}/restore | -*UserApi* | [**searchUsers**](doc//UserApi.md#searchusers) | **GET** /users | -*UserApi* | [**searchUsersAdmin**](doc//UserApi.md#searchusersadmin) | **GET** /admin/users | -*UserApi* | [**updateMyPreferences**](doc//UserApi.md#updatemypreferences) | **PUT** /users/me/preferences | -*UserApi* | [**updateMyUser**](doc//UserApi.md#updatemyuser) | **PUT** /users/me | -*UserApi* | [**updateUserAdmin**](doc//UserApi.md#updateuseradmin) | **PUT** /admin/users/{id} | -*UserApi* | [**updateUserPreferencesAdmin**](doc//UserApi.md#updateuserpreferencesadmin) | **PUT** /admin/users/{id}/preferences | +*UsersApi* | [**createProfileImage**](doc//UsersApi.md#createprofileimage) | **POST** /users/profile-image | +*UsersApi* | [**deleteProfileImage**](doc//UsersApi.md#deleteprofileimage) | **DELETE** /users/profile-image | +*UsersApi* | [**getMyPreferences**](doc//UsersApi.md#getmypreferences) | **GET** /users/me/preferences | +*UsersApi* | [**getMyUser**](doc//UsersApi.md#getmyuser) | **GET** /users/me | +*UsersApi* | [**getProfileImage**](doc//UsersApi.md#getprofileimage) | **GET** /users/{id}/profile-image | +*UsersApi* | [**getUser**](doc//UsersApi.md#getuser) | **GET** /users/{id} | +*UsersApi* | [**searchUsers**](doc//UsersApi.md#searchusers) | **GET** /users | +*UsersApi* | [**updateMyPreferences**](doc//UsersApi.md#updatemypreferences) | **PUT** /users/me/preferences | +*UsersApi* | [**updateMyUser**](doc//UsersApi.md#updatemyuser) | **PUT** /users/me | +*UsersAdminApi* | [**createUserAdmin**](doc//UsersAdminApi.md#createuseradmin) | **POST** /admin/users | +*UsersAdminApi* | [**deleteUserAdmin**](doc//UsersAdminApi.md#deleteuseradmin) | **DELETE** /admin/users/{id} | +*UsersAdminApi* | [**getUserAdmin**](doc//UsersAdminApi.md#getuseradmin) | **GET** /admin/users/{id} | +*UsersAdminApi* | [**getUserPreferencesAdmin**](doc//UsersAdminApi.md#getuserpreferencesadmin) | **GET** /admin/users/{id}/preferences | +*UsersAdminApi* | [**restoreUserAdmin**](doc//UsersAdminApi.md#restoreuseradmin) | **POST** /admin/users/{id}/restore | +*UsersAdminApi* | [**searchUsersAdmin**](doc//UsersAdminApi.md#searchusersadmin) | **GET** /admin/users | +*UsersAdminApi* | [**updateUserAdmin**](doc//UsersAdminApi.md#updateuseradmin) | **PUT** /admin/users/{id} | +*UsersAdminApi* | [**updateUserPreferencesAdmin**](doc//UsersAdminApi.md#updateuserpreferencesadmin) | **PUT** /admin/users/{id}/preferences | ## Documentation For Models diff --git a/mobile/openapi/lib/api.dart b/mobile/openapi/lib/api.dart index 9a11efd0cf..8778e241ce 100644 --- a/mobile/openapi/lib/api.dart +++ b/mobile/openapi/lib/api.dart @@ -29,34 +29,35 @@ part 'auth/oauth.dart'; part 'auth/http_basic_auth.dart'; part 'auth/http_bearer_auth.dart'; -part 'api/api_key_api.dart'; -part 'api/activity_api.dart'; -part 'api/album_api.dart'; -part 'api/asset_api.dart'; +part 'api/api_keys_api.dart'; +part 'api/activities_api.dart'; +part 'api/albums_api.dart'; +part 'api/assets_api.dart'; part 'api/audit_api.dart'; part 'api/authentication_api.dart'; part 'api/download_api.dart'; -part 'api/duplicate_api.dart'; -part 'api/face_api.dart'; -part 'api/file_report_api.dart'; -part 'api/job_api.dart'; -part 'api/library_api.dart'; +part 'api/duplicates_api.dart'; +part 'api/faces_api.dart'; +part 'api/file_reports_api.dart'; +part 'api/jobs_api.dart'; +part 'api/libraries_api.dart'; part 'api/map_api.dart'; -part 'api/memory_api.dart'; +part 'api/memories_api.dart'; part 'api/o_auth_api.dart'; -part 'api/partner_api.dart'; -part 'api/person_api.dart'; +part 'api/partners_api.dart'; +part 'api/people_api.dart'; part 'api/search_api.dart'; part 'api/server_info_api.dart'; part 'api/sessions_api.dart'; -part 'api/shared_link_api.dart'; +part 'api/shared_links_api.dart'; part 'api/sync_api.dart'; part 'api/system_config_api.dart'; part 'api/system_metadata_api.dart'; -part 'api/tag_api.dart'; +part 'api/tags_api.dart'; part 'api/timeline_api.dart'; part 'api/trash_api.dart'; -part 'api/user_api.dart'; +part 'api/users_api.dart'; +part 'api/users_admin_api.dart'; part 'model/api_key_create_dto.dart'; part 'model/api_key_create_response_dto.dart'; diff --git a/mobile/openapi/lib/api/activity_api.dart b/mobile/openapi/lib/api/activities_api.dart similarity index 98% rename from mobile/openapi/lib/api/activity_api.dart rename to mobile/openapi/lib/api/activities_api.dart index 52dceadc72..e5075eee16 100644 --- a/mobile/openapi/lib/api/activity_api.dart +++ b/mobile/openapi/lib/api/activities_api.dart @@ -11,8 +11,8 @@ part of openapi.api; -class ActivityApi { - ActivityApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; +class ActivitiesApi { + ActivitiesApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; final ApiClient apiClient; diff --git a/mobile/openapi/lib/api/album_api.dart b/mobile/openapi/lib/api/albums_api.dart similarity index 99% rename from mobile/openapi/lib/api/album_api.dart rename to mobile/openapi/lib/api/albums_api.dart index dbc8648a37..fb81c04616 100644 --- a/mobile/openapi/lib/api/album_api.dart +++ b/mobile/openapi/lib/api/albums_api.dart @@ -11,8 +11,8 @@ part of openapi.api; -class AlbumApi { - AlbumApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; +class AlbumsApi { + AlbumsApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; final ApiClient apiClient; diff --git a/mobile/openapi/lib/api/api_key_api.dart b/mobile/openapi/lib/api/api_keys_api.dart similarity index 98% rename from mobile/openapi/lib/api/api_key_api.dart rename to mobile/openapi/lib/api/api_keys_api.dart index 03c6605706..2e7757f20a 100644 --- a/mobile/openapi/lib/api/api_key_api.dart +++ b/mobile/openapi/lib/api/api_keys_api.dart @@ -11,8 +11,8 @@ part of openapi.api; -class APIKeyApi { - APIKeyApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; +class APIKeysApi { + APIKeysApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; final ApiClient apiClient; diff --git a/mobile/openapi/lib/api/asset_api.dart b/mobile/openapi/lib/api/assets_api.dart similarity index 99% rename from mobile/openapi/lib/api/asset_api.dart rename to mobile/openapi/lib/api/assets_api.dart index 7350ed25c6..ba7c6f54e0 100644 --- a/mobile/openapi/lib/api/asset_api.dart +++ b/mobile/openapi/lib/api/assets_api.dart @@ -11,8 +11,8 @@ part of openapi.api; -class AssetApi { - AssetApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; +class AssetsApi { + AssetsApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; final ApiClient apiClient; diff --git a/mobile/openapi/lib/api/duplicate_api.dart b/mobile/openapi/lib/api/duplicates_api.dart similarity index 94% rename from mobile/openapi/lib/api/duplicate_api.dart rename to mobile/openapi/lib/api/duplicates_api.dart index ef71108b86..b82290e47b 100644 --- a/mobile/openapi/lib/api/duplicate_api.dart +++ b/mobile/openapi/lib/api/duplicates_api.dart @@ -11,8 +11,8 @@ part of openapi.api; -class DuplicateApi { - DuplicateApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; +class DuplicatesApi { + DuplicatesApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; final ApiClient apiClient; diff --git a/mobile/openapi/lib/api/face_api.dart b/mobile/openapi/lib/api/faces_api.dart similarity index 97% rename from mobile/openapi/lib/api/face_api.dart rename to mobile/openapi/lib/api/faces_api.dart index cf37c30197..addda0a7a3 100644 --- a/mobile/openapi/lib/api/face_api.dart +++ b/mobile/openapi/lib/api/faces_api.dart @@ -11,8 +11,8 @@ part of openapi.api; -class FaceApi { - FaceApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; +class FacesApi { + FacesApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; final ApiClient apiClient; diff --git a/mobile/openapi/lib/api/file_report_api.dart b/mobile/openapi/lib/api/file_reports_api.dart similarity index 97% rename from mobile/openapi/lib/api/file_report_api.dart rename to mobile/openapi/lib/api/file_reports_api.dart index a52f02d43b..5eab91576e 100644 --- a/mobile/openapi/lib/api/file_report_api.dart +++ b/mobile/openapi/lib/api/file_reports_api.dart @@ -11,8 +11,8 @@ part of openapi.api; -class FileReportApi { - FileReportApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; +class FileReportsApi { + FileReportsApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; final ApiClient apiClient; diff --git a/mobile/openapi/lib/api/job_api.dart b/mobile/openapi/lib/api/jobs_api.dart similarity index 97% rename from mobile/openapi/lib/api/job_api.dart rename to mobile/openapi/lib/api/jobs_api.dart index d7be8237d7..5f9501d126 100644 --- a/mobile/openapi/lib/api/job_api.dart +++ b/mobile/openapi/lib/api/jobs_api.dart @@ -11,8 +11,8 @@ part of openapi.api; -class JobApi { - JobApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; +class JobsApi { + JobsApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; final ApiClient apiClient; diff --git a/mobile/openapi/lib/api/library_api.dart b/mobile/openapi/lib/api/libraries_api.dart similarity index 99% rename from mobile/openapi/lib/api/library_api.dart rename to mobile/openapi/lib/api/libraries_api.dart index e634dae836..53ab0e19ce 100644 --- a/mobile/openapi/lib/api/library_api.dart +++ b/mobile/openapi/lib/api/libraries_api.dart @@ -11,8 +11,8 @@ part of openapi.api; -class LibraryApi { - LibraryApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; +class LibrariesApi { + LibrariesApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; final ApiClient apiClient; diff --git a/mobile/openapi/lib/api/memory_api.dart b/mobile/openapi/lib/api/memories_api.dart similarity index 99% rename from mobile/openapi/lib/api/memory_api.dart rename to mobile/openapi/lib/api/memories_api.dart index cbf2ad3e88..5f77a2a34e 100644 --- a/mobile/openapi/lib/api/memory_api.dart +++ b/mobile/openapi/lib/api/memories_api.dart @@ -11,8 +11,8 @@ part of openapi.api; -class MemoryApi { - MemoryApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; +class MemoriesApi { + MemoriesApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; final ApiClient apiClient; diff --git a/mobile/openapi/lib/api/partner_api.dart b/mobile/openapi/lib/api/partners_api.dart similarity index 98% rename from mobile/openapi/lib/api/partner_api.dart rename to mobile/openapi/lib/api/partners_api.dart index 66ec2b089b..3794e79079 100644 --- a/mobile/openapi/lib/api/partner_api.dart +++ b/mobile/openapi/lib/api/partners_api.dart @@ -11,8 +11,8 @@ part of openapi.api; -class PartnerApi { - PartnerApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; +class PartnersApi { + PartnersApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; final ApiClient apiClient; diff --git a/mobile/openapi/lib/api/person_api.dart b/mobile/openapi/lib/api/people_api.dart similarity index 99% rename from mobile/openapi/lib/api/person_api.dart rename to mobile/openapi/lib/api/people_api.dart index a05aa03e1f..0086f26fa4 100644 --- a/mobile/openapi/lib/api/person_api.dart +++ b/mobile/openapi/lib/api/people_api.dart @@ -11,8 +11,8 @@ part of openapi.api; -class PersonApi { - PersonApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; +class PeopleApi { + PeopleApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; final ApiClient apiClient; diff --git a/mobile/openapi/lib/api/shared_link_api.dart b/mobile/openapi/lib/api/shared_links_api.dart similarity index 99% rename from mobile/openapi/lib/api/shared_link_api.dart rename to mobile/openapi/lib/api/shared_links_api.dart index 80a5034dff..12e0224999 100644 --- a/mobile/openapi/lib/api/shared_link_api.dart +++ b/mobile/openapi/lib/api/shared_links_api.dart @@ -11,8 +11,8 @@ part of openapi.api; -class SharedLinkApi { - SharedLinkApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; +class SharedLinksApi { + SharedLinksApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; final ApiClient apiClient; diff --git a/mobile/openapi/lib/api/tag_api.dart b/mobile/openapi/lib/api/tags_api.dart similarity index 99% rename from mobile/openapi/lib/api/tag_api.dart rename to mobile/openapi/lib/api/tags_api.dart index 961f0cb394..e5d1e9c650 100644 --- a/mobile/openapi/lib/api/tag_api.dart +++ b/mobile/openapi/lib/api/tags_api.dart @@ -11,8 +11,8 @@ part of openapi.api; -class TagApi { - TagApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; +class TagsApi { + TagsApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; final ApiClient apiClient; diff --git a/mobile/openapi/lib/api/user_api.dart b/mobile/openapi/lib/api/user_api.dart deleted file mode 100644 index 246ea422c5..0000000000 --- a/mobile/openapi/lib/api/user_api.dart +++ /dev/null @@ -1,825 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - - -class UserApi { - UserApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; - - final ApiClient apiClient; - - /// Performs an HTTP 'POST /users/profile-image' operation and returns the [Response]. - /// Parameters: - /// - /// * [MultipartFile] file (required): - Future createProfileImageWithHttpInfo(MultipartFile file,) async { - // ignore: prefer_const_declarations - final path = r'/users/profile-image'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['multipart/form-data']; - - bool hasFields = false; - final mp = MultipartRequest('POST', Uri.parse(path)); - if (file != null) { - hasFields = true; - mp.fields[r'file'] = file.field; - mp.files.add(file); - } - if (hasFields) { - postBody = mp; - } - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [MultipartFile] file (required): - Future createProfileImage(MultipartFile file,) async { - final response = await createProfileImageWithHttpInfo(file,); - 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) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateProfileImageResponseDto',) as CreateProfileImageResponseDto; - - } - return null; - } - - /// Performs an HTTP 'POST /admin/users' operation and returns the [Response]. - /// Parameters: - /// - /// * [UserAdminCreateDto] userAdminCreateDto (required): - Future createUserAdminWithHttpInfo(UserAdminCreateDto userAdminCreateDto,) async { - // ignore: prefer_const_declarations - final path = r'/admin/users'; - - // ignore: prefer_final_locals - Object? postBody = userAdminCreateDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [UserAdminCreateDto] userAdminCreateDto (required): - Future createUserAdmin(UserAdminCreateDto userAdminCreateDto,) async { - final response = await createUserAdminWithHttpInfo(userAdminCreateDto,); - 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) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto; - - } - return null; - } - - /// Performs an HTTP 'DELETE /users/profile-image' operation and returns the [Response]. - Future deleteProfileImageWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/users/profile-image'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future deleteProfileImage() async { - final response = await deleteProfileImageWithHttpInfo(); - if (response.statusCode >= HttpStatus.badRequest) { - throw ApiException(response.statusCode, await _decodeBodyBytes(response)); - } - } - - /// Performs an HTTP 'DELETE /admin/users/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [UserAdminDeleteDto] userAdminDeleteDto (required): - Future deleteUserAdminWithHttpInfo(String id, UserAdminDeleteDto userAdminDeleteDto,) async { - // ignore: prefer_const_declarations - final path = r'/admin/users/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody = userAdminDeleteDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'DELETE', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [UserAdminDeleteDto] userAdminDeleteDto (required): - Future deleteUserAdmin(String id, UserAdminDeleteDto userAdminDeleteDto,) async { - final response = await deleteUserAdminWithHttpInfo(id, userAdminDeleteDto,); - 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) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto; - - } - return null; - } - - /// Performs an HTTP 'GET /users/me/preferences' operation and returns the [Response]. - Future getMyPreferencesWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/users/me/preferences'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future getMyPreferences() async { - final response = await getMyPreferencesWithHttpInfo(); - 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) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserPreferencesResponseDto',) as UserPreferencesResponseDto; - - } - return null; - } - - /// Performs an HTTP 'GET /users/me' operation and returns the [Response]. - Future getMyUserWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/users/me'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future getMyUser() async { - final response = await getMyUserWithHttpInfo(); - 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) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto; - - } - return null; - } - - /// Performs an HTTP 'GET /users/{id}/profile-image' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future getProfileImageWithHttpInfo(String id,) async { - // ignore: prefer_const_declarations - final path = r'/users/{id}/profile-image' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future getProfileImage(String id,) async { - final response = await getProfileImageWithHttpInfo(id,); - 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) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'MultipartFile',) as MultipartFile; - - } - return null; - } - - /// Performs an HTTP 'GET /users/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future getUserWithHttpInfo(String id,) async { - // ignore: prefer_const_declarations - final path = r'/users/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future getUser(String id,) async { - final response = await getUserWithHttpInfo(id,); - 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) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserResponseDto',) as UserResponseDto; - - } - return null; - } - - /// Performs an HTTP 'GET /admin/users/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future getUserAdminWithHttpInfo(String id,) async { - // ignore: prefer_const_declarations - final path = r'/admin/users/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future getUserAdmin(String id,) async { - final response = await getUserAdminWithHttpInfo(id,); - 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) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto; - - } - return null; - } - - /// Performs an HTTP 'GET /admin/users/{id}/preferences' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future getUserPreferencesAdminWithHttpInfo(String id,) async { - // ignore: prefer_const_declarations - final path = r'/admin/users/{id}/preferences' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future getUserPreferencesAdmin(String id,) async { - final response = await getUserPreferencesAdminWithHttpInfo(id,); - 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) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserPreferencesResponseDto',) as UserPreferencesResponseDto; - - } - return null; - } - - /// Performs an HTTP 'POST /admin/users/{id}/restore' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - Future restoreUserAdminWithHttpInfo(String id,) async { - // ignore: prefer_const_declarations - final path = r'/admin/users/{id}/restore' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'POST', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - Future restoreUserAdmin(String id,) async { - final response = await restoreUserAdminWithHttpInfo(id,); - 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) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto; - - } - return null; - } - - /// Performs an HTTP 'GET /users' operation and returns the [Response]. - Future searchUsersWithHttpInfo() async { - // ignore: prefer_const_declarations - final path = r'/users'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - Future?> searchUsers() async { - final response = await searchUsersWithHttpInfo(); - 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') as List) - .cast() - .toList(growable: false); - - } - return null; - } - - /// Performs an HTTP 'GET /admin/users' operation and returns the [Response]. - /// Parameters: - /// - /// * [bool] withDeleted: - Future searchUsersAdminWithHttpInfo({ bool? withDeleted, }) async { - // ignore: prefer_const_declarations - final path = r'/admin/users'; - - // ignore: prefer_final_locals - Object? postBody; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - if (withDeleted != null) { - queryParams.addAll(_queryParams('', 'withDeleted', withDeleted)); - } - - const contentTypes = []; - - - return apiClient.invokeAPI( - path, - 'GET', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [bool] withDeleted: - Future?> searchUsersAdmin({ bool? withDeleted, }) async { - final response = await searchUsersAdminWithHttpInfo( withDeleted: withDeleted, ); - 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') as List) - .cast() - .toList(growable: false); - - } - return null; - } - - /// Performs an HTTP 'PUT /users/me/preferences' operation and returns the [Response]. - /// Parameters: - /// - /// * [UserPreferencesUpdateDto] userPreferencesUpdateDto (required): - Future updateMyPreferencesWithHttpInfo(UserPreferencesUpdateDto userPreferencesUpdateDto,) async { - // ignore: prefer_const_declarations - final path = r'/users/me/preferences'; - - // ignore: prefer_final_locals - Object? postBody = userPreferencesUpdateDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [UserPreferencesUpdateDto] userPreferencesUpdateDto (required): - Future updateMyPreferences(UserPreferencesUpdateDto userPreferencesUpdateDto,) async { - final response = await updateMyPreferencesWithHttpInfo(userPreferencesUpdateDto,); - 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) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserPreferencesResponseDto',) as UserPreferencesResponseDto; - - } - return null; - } - - /// Performs an HTTP 'PUT /users/me' operation and returns the [Response]. - /// Parameters: - /// - /// * [UserUpdateMeDto] userUpdateMeDto (required): - Future updateMyUserWithHttpInfo(UserUpdateMeDto userUpdateMeDto,) async { - // ignore: prefer_const_declarations - final path = r'/users/me'; - - // ignore: prefer_final_locals - Object? postBody = userUpdateMeDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [UserUpdateMeDto] userUpdateMeDto (required): - Future updateMyUser(UserUpdateMeDto userUpdateMeDto,) async { - final response = await updateMyUserWithHttpInfo(userUpdateMeDto,); - 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) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto; - - } - return null; - } - - /// Performs an HTTP 'PUT /admin/users/{id}' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [UserAdminUpdateDto] userAdminUpdateDto (required): - Future updateUserAdminWithHttpInfo(String id, UserAdminUpdateDto userAdminUpdateDto,) async { - // ignore: prefer_const_declarations - final path = r'/admin/users/{id}' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody = userAdminUpdateDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [UserAdminUpdateDto] userAdminUpdateDto (required): - Future updateUserAdmin(String id, UserAdminUpdateDto userAdminUpdateDto,) async { - final response = await updateUserAdminWithHttpInfo(id, userAdminUpdateDto,); - 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) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto; - - } - return null; - } - - /// Performs an HTTP 'PUT /admin/users/{id}/preferences' operation and returns the [Response]. - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [UserPreferencesUpdateDto] userPreferencesUpdateDto (required): - Future updateUserPreferencesAdminWithHttpInfo(String id, UserPreferencesUpdateDto userPreferencesUpdateDto,) async { - // ignore: prefer_const_declarations - final path = r'/admin/users/{id}/preferences' - .replaceAll('{id}', id); - - // ignore: prefer_final_locals - Object? postBody = userPreferencesUpdateDto; - - final queryParams = []; - final headerParams = {}; - final formParams = {}; - - const contentTypes = ['application/json']; - - - return apiClient.invokeAPI( - path, - 'PUT', - queryParams, - postBody, - headerParams, - formParams, - contentTypes.isEmpty ? null : contentTypes.first, - ); - } - - /// Parameters: - /// - /// * [String] id (required): - /// - /// * [UserPreferencesUpdateDto] userPreferencesUpdateDto (required): - Future updateUserPreferencesAdmin(String id, UserPreferencesUpdateDto userPreferencesUpdateDto,) async { - final response = await updateUserPreferencesAdminWithHttpInfo(id, userPreferencesUpdateDto,); - 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) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserPreferencesResponseDto',) as UserPreferencesResponseDto; - - } - return null; - } -} diff --git a/mobile/openapi/lib/api/users_admin_api.dart b/mobile/openapi/lib/api/users_admin_api.dart new file mode 100644 index 0000000000..a074645e08 --- /dev/null +++ b/mobile/openapi/lib/api/users_admin_api.dart @@ -0,0 +1,419 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + + +class UsersAdminApi { + UsersAdminApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; + + final ApiClient apiClient; + + /// Performs an HTTP 'POST /admin/users' operation and returns the [Response]. + /// Parameters: + /// + /// * [UserAdminCreateDto] userAdminCreateDto (required): + Future createUserAdminWithHttpInfo(UserAdminCreateDto userAdminCreateDto,) async { + // ignore: prefer_const_declarations + final path = r'/admin/users'; + + // ignore: prefer_final_locals + Object? postBody = userAdminCreateDto; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = ['application/json']; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [UserAdminCreateDto] userAdminCreateDto (required): + Future createUserAdmin(UserAdminCreateDto userAdminCreateDto,) async { + final response = await createUserAdminWithHttpInfo(userAdminCreateDto,); + 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) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto; + + } + return null; + } + + /// Performs an HTTP 'DELETE /admin/users/{id}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] id (required): + /// + /// * [UserAdminDeleteDto] userAdminDeleteDto (required): + Future deleteUserAdminWithHttpInfo(String id, UserAdminDeleteDto userAdminDeleteDto,) async { + // ignore: prefer_const_declarations + final path = r'/admin/users/{id}' + .replaceAll('{id}', id); + + // ignore: prefer_final_locals + Object? postBody = userAdminDeleteDto; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = ['application/json']; + + + return apiClient.invokeAPI( + path, + 'DELETE', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] id (required): + /// + /// * [UserAdminDeleteDto] userAdminDeleteDto (required): + Future deleteUserAdmin(String id, UserAdminDeleteDto userAdminDeleteDto,) async { + final response = await deleteUserAdminWithHttpInfo(id, userAdminDeleteDto,); + 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) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto; + + } + return null; + } + + /// Performs an HTTP 'GET /admin/users/{id}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] id (required): + Future getUserAdminWithHttpInfo(String id,) async { + // ignore: prefer_const_declarations + final path = r'/admin/users/{id}' + .replaceAll('{id}', id); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] id (required): + Future getUserAdmin(String id,) async { + final response = await getUserAdminWithHttpInfo(id,); + 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) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto; + + } + return null; + } + + /// Performs an HTTP 'GET /admin/users/{id}/preferences' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] id (required): + Future getUserPreferencesAdminWithHttpInfo(String id,) async { + // ignore: prefer_const_declarations + final path = r'/admin/users/{id}/preferences' + .replaceAll('{id}', id); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] id (required): + Future getUserPreferencesAdmin(String id,) async { + final response = await getUserPreferencesAdminWithHttpInfo(id,); + 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) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserPreferencesResponseDto',) as UserPreferencesResponseDto; + + } + return null; + } + + /// Performs an HTTP 'POST /admin/users/{id}/restore' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] id (required): + Future restoreUserAdminWithHttpInfo(String id,) async { + // ignore: prefer_const_declarations + final path = r'/admin/users/{id}/restore' + .replaceAll('{id}', id); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] id (required): + Future restoreUserAdmin(String id,) async { + final response = await restoreUserAdminWithHttpInfo(id,); + 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) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto; + + } + return null; + } + + /// Performs an HTTP 'GET /admin/users' operation and returns the [Response]. + /// Parameters: + /// + /// * [bool] withDeleted: + Future searchUsersAdminWithHttpInfo({ bool? withDeleted, }) async { + // ignore: prefer_const_declarations + final path = r'/admin/users'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + if (withDeleted != null) { + queryParams.addAll(_queryParams('', 'withDeleted', withDeleted)); + } + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [bool] withDeleted: + Future?> searchUsersAdmin({ bool? withDeleted, }) async { + final response = await searchUsersAdminWithHttpInfo( withDeleted: withDeleted, ); + 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') as List) + .cast() + .toList(growable: false); + + } + return null; + } + + /// Performs an HTTP 'PUT /admin/users/{id}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] id (required): + /// + /// * [UserAdminUpdateDto] userAdminUpdateDto (required): + Future updateUserAdminWithHttpInfo(String id, UserAdminUpdateDto userAdminUpdateDto,) async { + // ignore: prefer_const_declarations + final path = r'/admin/users/{id}' + .replaceAll('{id}', id); + + // ignore: prefer_final_locals + Object? postBody = userAdminUpdateDto; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = ['application/json']; + + + return apiClient.invokeAPI( + path, + 'PUT', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] id (required): + /// + /// * [UserAdminUpdateDto] userAdminUpdateDto (required): + Future updateUserAdmin(String id, UserAdminUpdateDto userAdminUpdateDto,) async { + final response = await updateUserAdminWithHttpInfo(id, userAdminUpdateDto,); + 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) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto; + + } + return null; + } + + /// Performs an HTTP 'PUT /admin/users/{id}/preferences' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] id (required): + /// + /// * [UserPreferencesUpdateDto] userPreferencesUpdateDto (required): + Future updateUserPreferencesAdminWithHttpInfo(String id, UserPreferencesUpdateDto userPreferencesUpdateDto,) async { + // ignore: prefer_const_declarations + final path = r'/admin/users/{id}/preferences' + .replaceAll('{id}', id); + + // ignore: prefer_final_locals + Object? postBody = userPreferencesUpdateDto; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = ['application/json']; + + + return apiClient.invokeAPI( + path, + 'PUT', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] id (required): + /// + /// * [UserPreferencesUpdateDto] userPreferencesUpdateDto (required): + Future updateUserPreferencesAdmin(String id, UserPreferencesUpdateDto userPreferencesUpdateDto,) async { + final response = await updateUserPreferencesAdminWithHttpInfo(id, userPreferencesUpdateDto,); + 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) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserPreferencesResponseDto',) as UserPreferencesResponseDto; + + } + return null; + } +} diff --git a/mobile/openapi/lib/api/users_api.dart b/mobile/openapi/lib/api/users_api.dart new file mode 100644 index 0000000000..55e184e304 --- /dev/null +++ b/mobile/openapi/lib/api/users_api.dart @@ -0,0 +1,424 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// +// @dart=2.18 + +// ignore_for_file: unused_element, unused_import +// ignore_for_file: always_put_required_named_parameters_first +// ignore_for_file: constant_identifier_names +// ignore_for_file: lines_longer_than_80_chars + +part of openapi.api; + + +class UsersApi { + UsersApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient; + + final ApiClient apiClient; + + /// Performs an HTTP 'POST /users/profile-image' operation and returns the [Response]. + /// Parameters: + /// + /// * [MultipartFile] file (required): + Future createProfileImageWithHttpInfo(MultipartFile file,) async { + // ignore: prefer_const_declarations + final path = r'/users/profile-image'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = ['multipart/form-data']; + + bool hasFields = false; + final mp = MultipartRequest('POST', Uri.parse(path)); + if (file != null) { + hasFields = true; + mp.fields[r'file'] = file.field; + mp.files.add(file); + } + if (hasFields) { + postBody = mp; + } + + return apiClient.invokeAPI( + path, + 'POST', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [MultipartFile] file (required): + Future createProfileImage(MultipartFile file,) async { + final response = await createProfileImageWithHttpInfo(file,); + 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) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'CreateProfileImageResponseDto',) as CreateProfileImageResponseDto; + + } + return null; + } + + /// Performs an HTTP 'DELETE /users/profile-image' operation and returns the [Response]. + Future deleteProfileImageWithHttpInfo() async { + // ignore: prefer_const_declarations + final path = r'/users/profile-image'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'DELETE', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + Future deleteProfileImage() async { + final response = await deleteProfileImageWithHttpInfo(); + if (response.statusCode >= HttpStatus.badRequest) { + throw ApiException(response.statusCode, await _decodeBodyBytes(response)); + } + } + + /// Performs an HTTP 'GET /users/me/preferences' operation and returns the [Response]. + Future getMyPreferencesWithHttpInfo() async { + // ignore: prefer_const_declarations + final path = r'/users/me/preferences'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + Future getMyPreferences() async { + final response = await getMyPreferencesWithHttpInfo(); + 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) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserPreferencesResponseDto',) as UserPreferencesResponseDto; + + } + return null; + } + + /// Performs an HTTP 'GET /users/me' operation and returns the [Response]. + Future getMyUserWithHttpInfo() async { + // ignore: prefer_const_declarations + final path = r'/users/me'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + Future getMyUser() async { + final response = await getMyUserWithHttpInfo(); + 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) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto; + + } + return null; + } + + /// Performs an HTTP 'GET /users/{id}/profile-image' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] id (required): + Future getProfileImageWithHttpInfo(String id,) async { + // ignore: prefer_const_declarations + final path = r'/users/{id}/profile-image' + .replaceAll('{id}', id); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] id (required): + Future getProfileImage(String id,) async { + final response = await getProfileImageWithHttpInfo(id,); + 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) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'MultipartFile',) as MultipartFile; + + } + return null; + } + + /// Performs an HTTP 'GET /users/{id}' operation and returns the [Response]. + /// Parameters: + /// + /// * [String] id (required): + Future getUserWithHttpInfo(String id,) async { + // ignore: prefer_const_declarations + final path = r'/users/{id}' + .replaceAll('{id}', id); + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [String] id (required): + Future getUser(String id,) async { + final response = await getUserWithHttpInfo(id,); + 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) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserResponseDto',) as UserResponseDto; + + } + return null; + } + + /// Performs an HTTP 'GET /users' operation and returns the [Response]. + Future searchUsersWithHttpInfo() async { + // ignore: prefer_const_declarations + final path = r'/users'; + + // ignore: prefer_final_locals + Object? postBody; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = []; + + + return apiClient.invokeAPI( + path, + 'GET', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + Future?> searchUsers() async { + final response = await searchUsersWithHttpInfo(); + 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') as List) + .cast() + .toList(growable: false); + + } + return null; + } + + /// Performs an HTTP 'PUT /users/me/preferences' operation and returns the [Response]. + /// Parameters: + /// + /// * [UserPreferencesUpdateDto] userPreferencesUpdateDto (required): + Future updateMyPreferencesWithHttpInfo(UserPreferencesUpdateDto userPreferencesUpdateDto,) async { + // ignore: prefer_const_declarations + final path = r'/users/me/preferences'; + + // ignore: prefer_final_locals + Object? postBody = userPreferencesUpdateDto; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = ['application/json']; + + + return apiClient.invokeAPI( + path, + 'PUT', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [UserPreferencesUpdateDto] userPreferencesUpdateDto (required): + Future updateMyPreferences(UserPreferencesUpdateDto userPreferencesUpdateDto,) async { + final response = await updateMyPreferencesWithHttpInfo(userPreferencesUpdateDto,); + 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) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserPreferencesResponseDto',) as UserPreferencesResponseDto; + + } + return null; + } + + /// Performs an HTTP 'PUT /users/me' operation and returns the [Response]. + /// Parameters: + /// + /// * [UserUpdateMeDto] userUpdateMeDto (required): + Future updateMyUserWithHttpInfo(UserUpdateMeDto userUpdateMeDto,) async { + // ignore: prefer_const_declarations + final path = r'/users/me'; + + // ignore: prefer_final_locals + Object? postBody = userUpdateMeDto; + + final queryParams = []; + final headerParams = {}; + final formParams = {}; + + const contentTypes = ['application/json']; + + + return apiClient.invokeAPI( + path, + 'PUT', + queryParams, + postBody, + headerParams, + formParams, + contentTypes.isEmpty ? null : contentTypes.first, + ); + } + + /// Parameters: + /// + /// * [UserUpdateMeDto] userUpdateMeDto (required): + Future updateMyUser(UserUpdateMeDto userUpdateMeDto,) async { + final response = await updateMyUserWithHttpInfo(userUpdateMeDto,); + 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) { + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'UserAdminResponseDto',) as UserAdminResponseDto; + + } + return null; + } +} diff --git a/open-api/immich-openapi-specs.json b/open-api/immich-openapi-specs.json index 7c84e13ee5..1ee7ad8b08 100644 --- a/open-api/immich-openapi-specs.json +++ b/open-api/immich-openapi-specs.json @@ -76,7 +76,7 @@ } ], "tags": [ - "Activity" + "Activities" ] }, "post": { @@ -116,7 +116,7 @@ } ], "tags": [ - "Activity" + "Activities" ] } }, @@ -167,7 +167,7 @@ } ], "tags": [ - "Activity" + "Activities" ] } }, @@ -202,7 +202,7 @@ } ], "tags": [ - "Activity" + "Activities" ] } }, @@ -246,7 +246,7 @@ } ], "tags": [ - "User" + "Users (admin)" ] }, "post": { @@ -286,7 +286,7 @@ } ], "tags": [ - "User" + "Users (admin)" ] } }, @@ -338,7 +338,7 @@ } ], "tags": [ - "User" + "Users (admin)" ] }, "get": { @@ -378,7 +378,7 @@ } ], "tags": [ - "User" + "Users (admin)" ] }, "put": { @@ -428,7 +428,7 @@ } ], "tags": [ - "User" + "Users (admin)" ] } }, @@ -470,7 +470,7 @@ } ], "tags": [ - "User" + "Users (admin)" ] }, "put": { @@ -520,7 +520,7 @@ } ], "tags": [ - "User" + "Users (admin)" ] } }, @@ -562,7 +562,7 @@ } ], "tags": [ - "User" + "Users (admin)" ] } }, @@ -616,7 +616,7 @@ } ], "tags": [ - "Album" + "Albums" ] }, "post": { @@ -656,7 +656,7 @@ } ], "tags": [ - "Album" + "Albums" ] } }, @@ -688,7 +688,7 @@ } ], "tags": [ - "Album" + "Albums" ] } }, @@ -723,7 +723,7 @@ } ], "tags": [ - "Album" + "Albums" ] }, "get": { @@ -779,7 +779,7 @@ } ], "tags": [ - "Album" + "Albums" ] }, "patch": { @@ -829,7 +829,7 @@ } ], "tags": [ - "Album" + "Albums" ] } }, @@ -884,7 +884,7 @@ } ], "tags": [ - "Album" + "Albums" ] }, "put": { @@ -945,7 +945,7 @@ } ], "tags": [ - "Album" + "Albums" ] } }, @@ -988,7 +988,7 @@ } ], "tags": [ - "Album" + "Albums" ] }, "put": { @@ -1039,7 +1039,7 @@ } ], "tags": [ - "Album" + "Albums" ] } }, @@ -1091,7 +1091,7 @@ } ], "tags": [ - "Album" + "Albums" ] } }, @@ -1126,7 +1126,7 @@ } ], "tags": [ - "API Key" + "API Keys" ] }, "post": { @@ -1166,7 +1166,7 @@ } ], "tags": [ - "API Key" + "API Keys" ] } }, @@ -1201,7 +1201,7 @@ } ], "tags": [ - "API Key" + "API Keys" ] }, "get": { @@ -1241,7 +1241,7 @@ } ], "tags": [ - "API Key" + "API Keys" ] }, "put": { @@ -1291,7 +1291,7 @@ } ], "tags": [ - "API Key" + "API Keys" ] } }, @@ -1326,7 +1326,7 @@ } ], "tags": [ - "Asset" + "Assets" ] }, "put": { @@ -1359,7 +1359,7 @@ } ], "tags": [ - "Asset" + "Assets" ] } }, @@ -1402,7 +1402,7 @@ } ], "tags": [ - "Asset" + "Assets" ] } }, @@ -1447,7 +1447,7 @@ } ], "tags": [ - "Asset" + "Assets" ] } }, @@ -1490,7 +1490,7 @@ } ], "tags": [ - "Asset" + "Assets" ] } }, @@ -1559,7 +1559,7 @@ } ], "tags": [ - "Asset" + "Assets" ] } }, @@ -1594,7 +1594,7 @@ } ], "tags": [ - "Asset" + "Assets" ] } }, @@ -1650,7 +1650,7 @@ } ], "tags": [ - "Asset" + "Assets" ] } }, @@ -1695,7 +1695,7 @@ } ], "tags": [ - "Asset" + "Assets" ] } }, @@ -1730,7 +1730,7 @@ } ], "tags": [ - "Asset" + "Assets" ] } }, @@ -1787,7 +1787,7 @@ } ], "tags": [ - "Asset" + "Assets" ] } }, @@ -1846,7 +1846,7 @@ } ], "tags": [ - "Asset" + "Assets" ] } }, @@ -1907,7 +1907,7 @@ } ], "tags": [ - "Asset" + "Assets" ] } }, @@ -1957,7 +1957,7 @@ } ], "tags": [ - "Asset" + "Assets" ] }, "put": { @@ -2007,7 +2007,7 @@ } ], "tags": [ - "Asset" + "Assets" ] } }, @@ -2068,7 +2068,7 @@ } ], "tags": [ - "Asset" + "Assets" ], "x-immich-lifecycle": { "addedAt": "v1.106.0" @@ -2487,7 +2487,7 @@ } ], "tags": [ - "Duplicate" + "Duplicates" ] } }, @@ -2532,7 +2532,7 @@ } ], "tags": [ - "Face" + "Faces" ] } }, @@ -2584,7 +2584,7 @@ } ], "tags": [ - "Face" + "Faces" ] } }, @@ -2616,7 +2616,7 @@ } ], "tags": [ - "Job" + "Jobs" ] } }, @@ -2667,7 +2667,7 @@ } ], "tags": [ - "Job" + "Jobs" ] } }, @@ -2702,7 +2702,7 @@ } ], "tags": [ - "Library" + "Libraries" ] }, "post": { @@ -2742,7 +2742,7 @@ } ], "tags": [ - "Library" + "Libraries" ] } }, @@ -2777,7 +2777,7 @@ } ], "tags": [ - "Library" + "Libraries" ] }, "get": { @@ -2817,7 +2817,7 @@ } ], "tags": [ - "Library" + "Libraries" ] }, "put": { @@ -2867,7 +2867,7 @@ } ], "tags": [ - "Library" + "Libraries" ] } }, @@ -2902,7 +2902,7 @@ } ], "tags": [ - "Library" + "Libraries" ] } }, @@ -2947,7 +2947,7 @@ } ], "tags": [ - "Library" + "Libraries" ] } }, @@ -2989,7 +2989,7 @@ } ], "tags": [ - "Library" + "Libraries" ] } }, @@ -3041,7 +3041,7 @@ } ], "tags": [ - "Library" + "Libraries" ] } }, @@ -3211,7 +3211,7 @@ } ], "tags": [ - "Memory" + "Memories" ] }, "post": { @@ -3251,7 +3251,7 @@ } ], "tags": [ - "Memory" + "Memories" ] } }, @@ -3286,7 +3286,7 @@ } ], "tags": [ - "Memory" + "Memories" ] }, "get": { @@ -3326,7 +3326,7 @@ } ], "tags": [ - "Memory" + "Memories" ] }, "put": { @@ -3376,7 +3376,7 @@ } ], "tags": [ - "Memory" + "Memories" ] } }, @@ -3431,7 +3431,7 @@ } ], "tags": [ - "Memory" + "Memories" ] }, "put": { @@ -3484,7 +3484,7 @@ } ], "tags": [ - "Memory" + "Memories" ] } }, @@ -3682,7 +3682,7 @@ } ], "tags": [ - "Partner" + "Partners" ] } }, @@ -3717,7 +3717,7 @@ } ], "tags": [ - "Partner" + "Partners" ] }, "post": { @@ -3757,7 +3757,7 @@ } ], "tags": [ - "Partner" + "Partners" ] }, "put": { @@ -3807,7 +3807,7 @@ } ], "tags": [ - "Partner" + "Partners" ] } }, @@ -3848,7 +3848,7 @@ } ], "tags": [ - "Person" + "People" ] }, "post": { @@ -3888,7 +3888,7 @@ } ], "tags": [ - "Person" + "People" ] }, "put": { @@ -3931,7 +3931,7 @@ } ], "tags": [ - "Person" + "People" ] } }, @@ -3973,7 +3973,7 @@ } ], "tags": [ - "Person" + "People" ] }, "put": { @@ -4023,7 +4023,7 @@ } ], "tags": [ - "Person" + "People" ] } }, @@ -4068,7 +4068,7 @@ } ], "tags": [ - "Person" + "People" ] } }, @@ -4123,7 +4123,7 @@ } ], "tags": [ - "Person" + "People" ] } }, @@ -4178,7 +4178,7 @@ } ], "tags": [ - "Person" + "People" ] } }, @@ -4220,7 +4220,7 @@ } ], "tags": [ - "Person" + "People" ] } }, @@ -4263,7 +4263,7 @@ } ], "tags": [ - "Person" + "People" ] } }, @@ -4295,7 +4295,7 @@ } ], "tags": [ - "File Report" + "File Reports" ] } }, @@ -4340,7 +4340,7 @@ } ], "tags": [ - "File Report" + "File Reports" ] } }, @@ -4375,7 +4375,7 @@ } ], "tags": [ - "File Report" + "File Reports" ] } }, @@ -5019,7 +5019,7 @@ } ], "tags": [ - "Shared Link" + "Shared Links" ] }, "post": { @@ -5059,7 +5059,7 @@ } ], "tags": [ - "Shared Link" + "Shared Links" ] } }, @@ -5117,7 +5117,7 @@ } ], "tags": [ - "Shared Link" + "Shared Links" ] } }, @@ -5152,7 +5152,7 @@ } ], "tags": [ - "Shared Link" + "Shared Links" ] }, "get": { @@ -5192,7 +5192,7 @@ } ], "tags": [ - "Shared Link" + "Shared Links" ] }, "patch": { @@ -5242,7 +5242,7 @@ } ], "tags": [ - "Shared Link" + "Shared Links" ] } }, @@ -5305,7 +5305,7 @@ } ], "tags": [ - "Shared Link" + "Shared Links" ] }, "put": { @@ -5366,7 +5366,7 @@ } ], "tags": [ - "Shared Link" + "Shared Links" ] } }, @@ -5721,7 +5721,7 @@ } ], "tags": [ - "Tag" + "Tags" ] }, "post": { @@ -5761,7 +5761,7 @@ } ], "tags": [ - "Tag" + "Tags" ] } }, @@ -5796,7 +5796,7 @@ } ], "tags": [ - "Tag" + "Tags" ] }, "get": { @@ -5836,7 +5836,7 @@ } ], "tags": [ - "Tag" + "Tags" ] }, "patch": { @@ -5886,7 +5886,7 @@ } ], "tags": [ - "Tag" + "Tags" ] } }, @@ -5941,7 +5941,7 @@ } ], "tags": [ - "Tag" + "Tags" ] }, "get": { @@ -5984,7 +5984,7 @@ } ], "tags": [ - "Tag" + "Tags" ] }, "put": { @@ -6037,7 +6037,7 @@ } ], "tags": [ - "Tag" + "Tags" ] } }, @@ -6419,7 +6419,7 @@ } ], "tags": [ - "User" + "Users" ] } }, @@ -6451,7 +6451,7 @@ } ], "tags": [ - "User" + "Users" ] }, "put": { @@ -6491,7 +6491,7 @@ } ], "tags": [ - "User" + "Users" ] } }, @@ -6523,7 +6523,7 @@ } ], "tags": [ - "User" + "Users" ] }, "put": { @@ -6563,7 +6563,7 @@ } ], "tags": [ - "User" + "Users" ] } }, @@ -6588,7 +6588,7 @@ } ], "tags": [ - "User" + "Users" ] }, "post": { @@ -6629,7 +6629,7 @@ } ], "tags": [ - "User" + "Users" ] } }, @@ -6671,7 +6671,7 @@ } ], "tags": [ - "User" + "Users" ] } }, @@ -6714,7 +6714,7 @@ } ], "tags": [ - "User" + "Users" ] } } diff --git a/server/src/controllers/activity.controller.ts b/server/src/controllers/activity.controller.ts index de59437a89..76b58a56ce 100644 --- a/server/src/controllers/activity.controller.ts +++ b/server/src/controllers/activity.controller.ts @@ -13,7 +13,7 @@ import { Auth, Authenticated } from 'src/middleware/auth.guard'; import { ActivityService } from 'src/services/activity.service'; import { UUIDParamDto } from 'src/validation'; -@ApiTags('Activity') +@ApiTags('Activities') @Controller('activities') export class ActivityController { constructor(private service: ActivityService) {} diff --git a/server/src/controllers/album.controller.ts b/server/src/controllers/album.controller.ts index ea42ed4d79..1455aeec4b 100644 --- a/server/src/controllers/album.controller.ts +++ b/server/src/controllers/album.controller.ts @@ -16,7 +16,7 @@ import { Auth, Authenticated } from 'src/middleware/auth.guard'; import { AlbumService } from 'src/services/album.service'; import { ParseMeUUIDPipe, UUIDParamDto } from 'src/validation'; -@ApiTags('Album') +@ApiTags('Albums') @Controller('albums') export class AlbumController { constructor(private service: AlbumService) {} diff --git a/server/src/controllers/api-key.controller.ts b/server/src/controllers/api-key.controller.ts index 4225bdc1bc..54144e78d5 100644 --- a/server/src/controllers/api-key.controller.ts +++ b/server/src/controllers/api-key.controller.ts @@ -6,7 +6,7 @@ import { Auth, Authenticated } from 'src/middleware/auth.guard'; import { APIKeyService } from 'src/services/api-key.service'; import { UUIDParamDto } from 'src/validation'; -@ApiTags('API Key') +@ApiTags('API Keys') @Controller('api-keys') export class APIKeyController { constructor(private service: APIKeyService) {} diff --git a/server/src/controllers/asset-media.controller.ts b/server/src/controllers/asset-media.controller.ts index 064a6d22ab..d70afc9dab 100644 --- a/server/src/controllers/asset-media.controller.ts +++ b/server/src/controllers/asset-media.controller.ts @@ -34,7 +34,7 @@ import { FileUploadInterceptor, Route, UploadFiles, getFiles } from 'src/middlew import { AssetMediaService } from 'src/services/asset-media.service'; import { FileNotEmptyValidator, UUIDParamDto } from 'src/validation'; -@ApiTags('Asset') +@ApiTags('Assets') @Controller(Route.ASSET) export class AssetMediaController { constructor( diff --git a/server/src/controllers/asset-v1.controller.ts b/server/src/controllers/asset-v1.controller.ts index 380aaca390..d1e71a6175 100644 --- a/server/src/controllers/asset-v1.controller.ts +++ b/server/src/controllers/asset-v1.controller.ts @@ -26,7 +26,7 @@ import { AssetServiceV1 } from 'src/services/asset-v1.service'; import { sendFile } from 'src/utils/file'; import { FileNotEmptyValidator, UUIDParamDto } from 'src/validation'; -@ApiTags('Asset') +@ApiTags('Assets') @Controller(Route.ASSET) export class AssetControllerV1 { constructor( diff --git a/server/src/controllers/asset.controller.ts b/server/src/controllers/asset.controller.ts index e7176a37c0..8c70bed166 100644 --- a/server/src/controllers/asset.controller.ts +++ b/server/src/controllers/asset.controller.ts @@ -19,7 +19,7 @@ import { Route } from 'src/middleware/file-upload.interceptor'; import { AssetService } from 'src/services/asset.service'; import { UUIDParamDto } from 'src/validation'; -@ApiTags('Asset') +@ApiTags('Assets') @Controller(Route.ASSET) export class AssetController { constructor(private service: AssetService) {} diff --git a/server/src/controllers/duplicate.controller.ts b/server/src/controllers/duplicate.controller.ts index 57a200ac39..f62d29d077 100644 --- a/server/src/controllers/duplicate.controller.ts +++ b/server/src/controllers/duplicate.controller.ts @@ -5,7 +5,7 @@ import { DuplicateResponseDto } from 'src/dtos/duplicate.dto'; import { Auth, Authenticated } from 'src/middleware/auth.guard'; import { DuplicateService } from 'src/services/duplicate.service'; -@ApiTags('Duplicate') +@ApiTags('Duplicates') @Controller('duplicates') export class DuplicateController { constructor(private service: DuplicateService) {} diff --git a/server/src/controllers/face.controller.ts b/server/src/controllers/face.controller.ts index cb4bc080c8..e3330e9563 100644 --- a/server/src/controllers/face.controller.ts +++ b/server/src/controllers/face.controller.ts @@ -6,7 +6,7 @@ import { Auth, Authenticated } from 'src/middleware/auth.guard'; import { PersonService } from 'src/services/person.service'; import { UUIDParamDto } from 'src/validation'; -@ApiTags('Face') +@ApiTags('Faces') @Controller('faces') export class FaceController { constructor(private service: PersonService) {} diff --git a/server/src/controllers/file-report.controller.ts b/server/src/controllers/file-report.controller.ts index 523debfb4c..a51a94a50e 100644 --- a/server/src/controllers/file-report.controller.ts +++ b/server/src/controllers/file-report.controller.ts @@ -4,7 +4,7 @@ import { FileChecksumDto, FileChecksumResponseDto, FileReportDto, FileReportFixD import { Authenticated } from 'src/middleware/auth.guard'; import { AuditService } from 'src/services/audit.service'; -@ApiTags('File Report') +@ApiTags('File Reports') @Controller('reports') export class ReportController { constructor(private service: AuditService) {} diff --git a/server/src/controllers/job.controller.ts b/server/src/controllers/job.controller.ts index 2d23263221..2aa5920fab 100644 --- a/server/src/controllers/job.controller.ts +++ b/server/src/controllers/job.controller.ts @@ -4,7 +4,7 @@ import { AllJobStatusResponseDto, JobCommandDto, JobIdParamDto, JobStatusDto } f import { Authenticated } from 'src/middleware/auth.guard'; import { JobService } from 'src/services/job.service'; -@ApiTags('Job') +@ApiTags('Jobs') @Controller('jobs') export class JobController { constructor(private service: JobService) {} diff --git a/server/src/controllers/library.controller.ts b/server/src/controllers/library.controller.ts index b6d65874ca..fd7a88b074 100644 --- a/server/src/controllers/library.controller.ts +++ b/server/src/controllers/library.controller.ts @@ -13,7 +13,7 @@ import { Authenticated } from 'src/middleware/auth.guard'; import { LibraryService } from 'src/services/library.service'; import { UUIDParamDto } from 'src/validation'; -@ApiTags('Library') +@ApiTags('Libraries') @Controller('libraries') export class LibraryController { constructor(private service: LibraryService) {} diff --git a/server/src/controllers/memory.controller.ts b/server/src/controllers/memory.controller.ts index 4b779c60f2..9c5c22de43 100644 --- a/server/src/controllers/memory.controller.ts +++ b/server/src/controllers/memory.controller.ts @@ -7,7 +7,7 @@ import { Auth, Authenticated } from 'src/middleware/auth.guard'; import { MemoryService } from 'src/services/memory.service'; import { UUIDParamDto } from 'src/validation'; -@ApiTags('Memory') +@ApiTags('Memories') @Controller('memories') export class MemoryController { constructor(private service: MemoryService) {} diff --git a/server/src/controllers/partner.controller.ts b/server/src/controllers/partner.controller.ts index 102f6f10ce..927078bf0b 100644 --- a/server/src/controllers/partner.controller.ts +++ b/server/src/controllers/partner.controller.ts @@ -7,7 +7,7 @@ import { Auth, Authenticated } from 'src/middleware/auth.guard'; import { PartnerService } from 'src/services/partner.service'; import { UUIDParamDto } from 'src/validation'; -@ApiTags('Partner') +@ApiTags('Partners') @Controller('partners') export class PartnerController { constructor(private service: PartnerService) {} diff --git a/server/src/controllers/person.controller.ts b/server/src/controllers/person.controller.ts index 26f9df2e1f..5f642dfa00 100644 --- a/server/src/controllers/person.controller.ts +++ b/server/src/controllers/person.controller.ts @@ -21,7 +21,7 @@ import { PersonService } from 'src/services/person.service'; import { sendFile } from 'src/utils/file'; import { UUIDParamDto } from 'src/validation'; -@ApiTags('Person') +@ApiTags('People') @Controller('people') export class PersonController { constructor( diff --git a/server/src/controllers/shared-link.controller.ts b/server/src/controllers/shared-link.controller.ts index a7be1911d9..ffd6e0c969 100644 --- a/server/src/controllers/shared-link.controller.ts +++ b/server/src/controllers/shared-link.controller.ts @@ -16,7 +16,7 @@ import { SharedLinkService } from 'src/services/shared-link.service'; import { respondWithCookie } from 'src/utils/response'; import { UUIDParamDto } from 'src/validation'; -@ApiTags('Shared Link') +@ApiTags('Shared Links') @Controller('shared-links') export class SharedLinkController { constructor(private service: SharedLinkService) {} diff --git a/server/src/controllers/tag.controller.ts b/server/src/controllers/tag.controller.ts index 1f8a44dd5b..71d826fcc5 100644 --- a/server/src/controllers/tag.controller.ts +++ b/server/src/controllers/tag.controller.ts @@ -9,7 +9,7 @@ import { Auth, Authenticated } from 'src/middleware/auth.guard'; import { TagService } from 'src/services/tag.service'; import { UUIDParamDto } from 'src/validation'; -@ApiTags('Tag') +@ApiTags('Tags') @Controller('tags') export class TagController { constructor(private service: TagService) {} diff --git a/server/src/controllers/user-admin.controller.ts b/server/src/controllers/user-admin.controller.ts index 83b5156eda..a4f3b3198c 100644 --- a/server/src/controllers/user-admin.controller.ts +++ b/server/src/controllers/user-admin.controller.ts @@ -13,7 +13,7 @@ import { Auth, Authenticated } from 'src/middleware/auth.guard'; import { UserAdminService } from 'src/services/user-admin.service'; import { UUIDParamDto } from 'src/validation'; -@ApiTags('User') +@ApiTags('Users (admin)') @Controller('admin/users') export class UserAdminController { constructor(private service: UserAdminService) {} diff --git a/server/src/controllers/user.controller.ts b/server/src/controllers/user.controller.ts index 66a92e1a3f..82b9d67692 100644 --- a/server/src/controllers/user.controller.ts +++ b/server/src/controllers/user.controller.ts @@ -27,7 +27,7 @@ import { UserService } from 'src/services/user.service'; import { sendFile } from 'src/utils/file'; import { UUIDParamDto } from 'src/validation'; -@ApiTags('User') +@ApiTags('Users') @Controller(Route.USER) export class UserController { constructor(