mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	* feat(server): api keys * chore: open-api * feat(web): api keys * fix: remove keys when deleting a user
		
			
				
	
	
	
		
			12 KiB
		
	
	
	
	
	
	
		
			Generated
		
	
	
			
		
		
	
	
			12 KiB
		
	
	
	
	
	
	
		
			Generated
		
	
	
openapi
Immich API
This Dart package is automatically generated by the OpenAPI Generator project:
- API version: 1.40.0
 - Build package: org.openapitools.codegen.languages.DartClientCodegen
 
Requirements
Dart 2.12 or later
Installation & Usage
Github
If this Dart package is published to Github, add the following dependency to your pubspec.yaml
dependencies:
  openapi:
    git: https://github.com/GIT_USER_ID/GIT_REPO_ID.git
Local
To use the package in your local drive, add the following dependency to your pubspec.yaml
dependencies:
  openapi:
    path: /path/to/openapi
Tests
TODO
Getting Started
Please follow the installation procedure and then run the following:
import 'package:openapi/api.dart';
final api_instance = APIKeyApi();
final aPIKeyCreateDto = APIKeyCreateDto(); // APIKeyCreateDto | 
try {
    final result = api_instance.createKey(aPIKeyCreateDto);
    print(result);
} catch (e) {
    print('Exception when calling APIKeyApi->createKey: $e\n');
}
Documentation for API Endpoints
All URIs are relative to /api
| Class | Method | HTTP request | Description | 
|---|---|---|---|
| APIKeyApi | createKey | POST /api-key | |
| APIKeyApi | deleteKey | DELETE /api-key/{id} | |
| APIKeyApi | getKey | GET /api-key/{id} | |
| APIKeyApi | getKeys | GET /api-key | |
| APIKeyApi | updateKey | PUT /api-key/{id} | |
| AlbumApi | addAssetsToAlbum | PUT /album/{albumId}/assets | |
| AlbumApi | addUsersToAlbum | PUT /album/{albumId}/users | |
| AlbumApi | createAlbum | POST /album | |
| AlbumApi | deleteAlbum | DELETE /album/{albumId} | |
| AlbumApi | downloadArchive | GET /album/{albumId}/download | |
| AlbumApi | getAlbumCountByUserId | GET /album/count-by-user-id | |
| AlbumApi | getAlbumInfo | GET /album/{albumId} | |
| AlbumApi | getAllAlbums | GET /album | |
| AlbumApi | removeAssetFromAlbum | DELETE /album/{albumId}/assets | |
| AlbumApi | removeUserFromAlbum | DELETE /album/{albumId}/user/{userId} | |
| AlbumApi | updateAlbumInfo | PATCH /album/{albumId} | |
| AssetApi | checkDuplicateAsset | POST /asset/check | |
| AssetApi | checkExistingAssets | POST /asset/exist | |
| AssetApi | deleteAsset | DELETE /asset | |
| AssetApi | downloadFile | GET /asset/download/{assetId} | |
| AssetApi | downloadLibrary | GET /asset/download-library | |
| AssetApi | getAllAssets | GET /asset | |
| AssetApi | getAssetById | GET /asset/assetById/{assetId} | |
| AssetApi | getAssetByTimeBucket | POST /asset/time-bucket | |
| AssetApi | getAssetCountByTimeBucket | POST /asset/count-by-time-bucket | |
| AssetApi | getAssetCountByUserId | GET /asset/count-by-user-id | |
| AssetApi | getAssetSearchTerms | GET /asset/search-terms | |
| AssetApi | getAssetThumbnail | GET /asset/thumbnail/{assetId} | |
| AssetApi | getCuratedLocations | GET /asset/curated-locations | |
| AssetApi | getCuratedObjects | GET /asset/curated-objects | |
| AssetApi | getUserAssetsByDeviceId | GET /asset/{deviceId} | |
| AssetApi | searchAsset | POST /asset/search | |
| AssetApi | serveFile | GET /asset/file/{assetId} | |
| AssetApi | updateAsset | PUT /asset/{assetId} | |
| AssetApi | uploadFile | POST /asset/upload | |
| AuthenticationApi | adminSignUp | POST /auth/admin-sign-up | |
| AuthenticationApi | changePassword | POST /auth/change-password | |
| AuthenticationApi | login | POST /auth/login | |
| AuthenticationApi | logout | POST /auth/logout | |
| AuthenticationApi | validateAccessToken | POST /auth/validateToken | |
| DeviceInfoApi | createDeviceInfo | POST /device-info | |
| DeviceInfoApi | updateDeviceInfo | PATCH /device-info | |
| DeviceInfoApi | upsertDeviceInfo | PUT /device-info | |
| JobApi | getAllJobsStatus | GET /jobs | |
| JobApi | getJobStatus | GET /jobs/{jobId} | |
| JobApi | sendJobCommand | PUT /jobs/{jobId} | |
| OAuthApi | callback | POST /oauth/callback | |
| OAuthApi | generateConfig | POST /oauth/config | |
| OAuthApi | link | POST /oauth/link | |
| OAuthApi | mobileRedirect | GET /oauth/mobile-redirect | |
| OAuthApi | unlink | POST /oauth/unlink | |
| ServerInfoApi | getServerInfo | GET /server-info | |
| ServerInfoApi | getServerVersion | GET /server-info/version | |
| ServerInfoApi | getStats | GET /server-info/stats | |
| ServerInfoApi | pingServer | GET /server-info/ping | |
| SystemConfigApi | getConfig | GET /system-config | |
| SystemConfigApi | getDefaults | GET /system-config/defaults | |
| SystemConfigApi | getStorageTemplateOptions | GET /system-config/storage-template-options | |
| SystemConfigApi | updateConfig | PUT /system-config | |
| TagApi | create | POST /tag | |
| TagApi | delete | DELETE /tag/{id} | |
| TagApi | findAll | GET /tag | |
| TagApi | findOne | GET /tag/{id} | |
| TagApi | update | PATCH /tag/{id} | |
| UserApi | createProfileImage | POST /user/profile-image | |
| UserApi | createUser | POST /user | |
| UserApi | deleteUser | DELETE /user/{userId} | |
| UserApi | getAllUsers | GET /user | |
| UserApi | getMyUserInfo | GET /user/me | |
| UserApi | getProfileImage | GET /user/profile-image/{userId} | |
| UserApi | getUserById | GET /user/info/{userId} | |
| UserApi | getUserCount | GET /user/count | |
| UserApi | restoreUser | POST /user/{userId}/restore | |
| UserApi | updateUser | PUT /user | 
Documentation For Models
- APIKeyCreateDto
 - APIKeyCreateResponseDto
 - APIKeyResponseDto
 - APIKeyUpdateDto
 - AddAssetsDto
 - AddAssetsResponseDto
 - AddUsersDto
 - AdminSignupResponseDto
 - AlbumCountResponseDto
 - AlbumResponseDto
 - AllJobStatusResponseDto
 - AssetCountByTimeBucket
 - AssetCountByTimeBucketResponseDto
 - AssetCountByUserIdResponseDto
 - AssetFileUploadResponseDto
 - AssetResponseDto
 - AssetTypeEnum
 - ChangePasswordDto
 - CheckDuplicateAssetDto
 - CheckDuplicateAssetResponseDto
 - CheckExistingAssetsDto
 - CheckExistingAssetsResponseDto
 - CreateAlbumDto
 - CreateProfileImageResponseDto
 - CreateTagDto
 - CreateUserDto
 - CuratedLocationsResponseDto
 - CuratedObjectsResponseDto
 - DeleteAssetDto
 - DeleteAssetResponseDto
 - DeleteAssetStatus
 - DeviceInfoResponseDto
 - DeviceTypeEnum
 - ExifResponseDto
 - GetAssetByTimeBucketDto
 - GetAssetCountByTimeBucketDto
 - JobCommand
 - JobCommandDto
 - JobCounts
 - JobId
 - JobStatusResponseDto
 - LoginCredentialDto
 - LoginResponseDto
 - LogoutResponseDto
 - OAuthCallbackDto
 - OAuthConfigDto
 - OAuthConfigResponseDto
 - RemoveAssetsDto
 - SearchAssetDto
 - ServerInfoResponseDto
 - ServerPingResponse
 - ServerStatsResponseDto
 - ServerVersionReponseDto
 - SignUpDto
 - SmartInfoResponseDto
 - SystemConfigDto
 - SystemConfigFFmpegDto
 - SystemConfigOAuthDto
 - SystemConfigStorageTemplateDto
 - SystemConfigTemplateStorageOptionDto
 - TagResponseDto
 - TagTypeEnum
 - ThumbnailFormat
 - TimeGroupEnum
 - UpdateAlbumDto
 - UpdateAssetDto
 - UpdateTagDto
 - UpdateUserDto
 - UpsertDeviceInfoDto
 - UsageByUserDto
 - UserCountResponseDto
 - UserResponseDto
 - ValidateAccessTokenResponseDto
 
Documentation For Authorization
bearer
- Type: HTTP Bearer authentication