mirror of
https://github.com/immich-app/immich.git
synced 2025-06-22 15:00:52 -04:00
chore(server): remove deprecated endpoints (#6984)
* chore: remove deprecated endpoints * chore: open api
This commit is contained in:
parent
198e8517e5
commit
90a7f16817
@ -36,7 +36,7 @@ class AssetDescriptionService {
|
|||||||
|
|
||||||
Future<String> readLatest(String assetRemoteId, int localExifId) async {
|
Future<String> readLatest(String assetRemoteId, int localExifId) async {
|
||||||
final latestAssetFromServer =
|
final latestAssetFromServer =
|
||||||
await _api.assetApi.getAssetById(assetRemoteId);
|
await _api.assetApi.getAssetInfo(assetRemoteId);
|
||||||
final localExifInfo = await _db.exifInfos.get(localExifId);
|
final localExifInfo = await _db.exifInfos.get(localExifId);
|
||||||
|
|
||||||
if (latestAssetFromServer != null && localExifInfo != null) {
|
if (latestAssetFromServer != null && localExifInfo != null) {
|
||||||
|
@ -25,12 +25,12 @@ class ImageViewerService {
|
|||||||
// Download LivePhotos image and motion part
|
// Download LivePhotos image and motion part
|
||||||
if (asset.isImage && asset.livePhotoVideoId != null && Platform.isIOS) {
|
if (asset.isImage && asset.livePhotoVideoId != null && Platform.isIOS) {
|
||||||
var imageResponse =
|
var imageResponse =
|
||||||
await _apiService.assetApi.downloadFileOldWithHttpInfo(
|
await _apiService.downloadApi.downloadFileWithHttpInfo(
|
||||||
asset.remoteId!,
|
asset.remoteId!,
|
||||||
);
|
);
|
||||||
|
|
||||||
var motionReponse =
|
var motionReponse =
|
||||||
await _apiService.assetApi.downloadFileOldWithHttpInfo(
|
await _apiService.downloadApi.downloadFileWithHttpInfo(
|
||||||
asset.livePhotoVideoId!,
|
asset.livePhotoVideoId!,
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -71,8 +71,8 @@ class ImageViewerService {
|
|||||||
|
|
||||||
return entity != null;
|
return entity != null;
|
||||||
} else {
|
} else {
|
||||||
var res = await _apiService.assetApi
|
var res = await _apiService.downloadApi
|
||||||
.downloadFileOldWithHttpInfo(asset.remoteId!);
|
.downloadFileWithHttpInfo(asset.remoteId!);
|
||||||
|
|
||||||
if (res.statusCode != 200) {
|
if (res.statusCode != 200) {
|
||||||
_log.severe(
|
_log.severe(
|
||||||
|
@ -136,7 +136,7 @@ class BackupVerificationService {
|
|||||||
ExifInfo? exif = remote.exifInfo;
|
ExifInfo? exif = remote.exifInfo;
|
||||||
if (exif != null && exif.lat != null) return false;
|
if (exif != null && exif.lat != null) return false;
|
||||||
if (exif == null || exif.fileSize == null) {
|
if (exif == null || exif.fileSize == null) {
|
||||||
final dto = await apiService.assetApi.getAssetById(remote.remoteId!);
|
final dto = await apiService.assetApi.getAssetInfo(remote.remoteId!);
|
||||||
if (dto != null && dto.exifInfo != null) {
|
if (dto != null && dto.exifInfo != null) {
|
||||||
exif = ExifInfo.fromDto(dto.exifInfo!);
|
exif = ExifInfo.fromDto(dto.exifInfo!);
|
||||||
}
|
}
|
||||||
@ -165,8 +165,8 @@ class BackupVerificationService {
|
|||||||
// (skip first few KBs containing metadata)
|
// (skip first few KBs containing metadata)
|
||||||
final Uint64List localImage =
|
final Uint64List localImage =
|
||||||
_fakeDecodeImg(local, await file.readAsBytes());
|
_fakeDecodeImg(local, await file.readAsBytes());
|
||||||
final res = await apiService.assetApi
|
final res = await apiService.downloadApi
|
||||||
.downloadFileOldWithHttpInfo(remote.remoteId!);
|
.downloadFileWithHttpInfo(remote.remoteId!);
|
||||||
final Uint64List remoteImage = _fakeDecodeImg(remote, res.bodyBytes);
|
final Uint64List remoteImage = _fakeDecodeImg(remote, res.bodyBytes);
|
||||||
|
|
||||||
final eq = const ListEquality().equals(remoteImage, localImage);
|
final eq = const ListEquality().equals(remoteImage, localImage);
|
||||||
|
@ -22,7 +22,7 @@ class TrashService {
|
|||||||
try {
|
try {
|
||||||
List<String> remoteIds =
|
List<String> remoteIds =
|
||||||
assetList.where((a) => a.isRemote).map((e) => e.remoteId!).toList();
|
assetList.where((a) => a.isRemote).map((e) => e.remoteId!).toList();
|
||||||
await _apiService.assetApi.restoreAssetsOld(BulkIdsDto(ids: remoteIds));
|
await _apiService.trashApi.restoreAssets(BulkIdsDto(ids: remoteIds));
|
||||||
return true;
|
return true;
|
||||||
} catch (error, stack) {
|
} catch (error, stack) {
|
||||||
_log.severe("Cannot restore assets ${error.toString()}", error, stack);
|
_log.severe("Cannot restore assets ${error.toString()}", error, stack);
|
||||||
@ -32,7 +32,7 @@ class TrashService {
|
|||||||
|
|
||||||
Future<void> emptyTrash() async {
|
Future<void> emptyTrash() async {
|
||||||
try {
|
try {
|
||||||
await _apiService.assetApi.emptyTrashOld();
|
await _apiService.trashApi.emptyTrash();
|
||||||
} catch (error, stack) {
|
} catch (error, stack) {
|
||||||
_log.severe("Cannot empty trash ${error.toString()}", error, stack);
|
_log.severe("Cannot empty trash ${error.toString()}", error, stack);
|
||||||
}
|
}
|
||||||
@ -40,7 +40,7 @@ class TrashService {
|
|||||||
|
|
||||||
Future<void> restoreTrash() async {
|
Future<void> restoreTrash() async {
|
||||||
try {
|
try {
|
||||||
await _apiService.assetApi.restoreTrashOld();
|
await _apiService.trashApi.restoreTrash();
|
||||||
} catch (error, stack) {
|
} catch (error, stack) {
|
||||||
_log.severe("Cannot restore trash ${error.toString()}", error, stack);
|
_log.severe("Cannot restore trash ${error.toString()}", error, stack);
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,8 @@ class ApiService {
|
|||||||
late SharedLinkApi sharedLinkApi;
|
late SharedLinkApi sharedLinkApi;
|
||||||
late SystemConfigApi systemConfigApi;
|
late SystemConfigApi systemConfigApi;
|
||||||
late ActivityApi activityApi;
|
late ActivityApi activityApi;
|
||||||
|
late DownloadApi downloadApi;
|
||||||
|
late TrashApi trashApi;
|
||||||
|
|
||||||
ApiService() {
|
ApiService() {
|
||||||
final endpoint = Store.tryGet(StoreKey.serverEndpoint);
|
final endpoint = Store.tryGet(StoreKey.serverEndpoint);
|
||||||
@ -51,6 +53,8 @@ class ApiService {
|
|||||||
sharedLinkApi = SharedLinkApi(_apiClient);
|
sharedLinkApi = SharedLinkApi(_apiClient);
|
||||||
systemConfigApi = SystemConfigApi(_apiClient);
|
systemConfigApi = SystemConfigApi(_apiClient);
|
||||||
activityApi = ActivityApi(_apiClient);
|
activityApi = ActivityApi(_apiClient);
|
||||||
|
downloadApi = DownloadApi(_apiClient);
|
||||||
|
trashApi = TrashApi(_apiClient);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<String> resolveAndSetEndpoint(String serverUrl) async {
|
Future<String> resolveAndSetEndpoint(String serverUrl) async {
|
||||||
|
@ -129,7 +129,7 @@ class AssetService {
|
|||||||
// fileSize is always filled on the server but not set on client
|
// fileSize is always filled on the server but not set on client
|
||||||
if (a.exifInfo?.fileSize == null) {
|
if (a.exifInfo?.fileSize == null) {
|
||||||
if (a.isRemote) {
|
if (a.isRemote) {
|
||||||
final dto = await _apiService.assetApi.getAssetById(a.remoteId!);
|
final dto = await _apiService.assetApi.getAssetInfo(a.remoteId!);
|
||||||
if (dto != null && dto.exifInfo != null) {
|
if (dto != null && dto.exifInfo != null) {
|
||||||
final newExif = Asset.remote(dto).exifInfo!.copyWith(id: a.id);
|
final newExif = Asset.remote(dto).exifInfo!.copyWith(id: a.id);
|
||||||
if (newExif != a.exifInfo) {
|
if (newExif != a.exifInfo) {
|
||||||
|
@ -31,8 +31,8 @@ class ShareService {
|
|||||||
final tempDir = await getTemporaryDirectory();
|
final tempDir = await getTemporaryDirectory();
|
||||||
final fileName = asset.fileName;
|
final fileName = asset.fileName;
|
||||||
final tempFile = await File('${tempDir.path}/$fileName').create();
|
final tempFile = await File('${tempDir.path}/$fileName').create();
|
||||||
final res = await _apiService.assetApi
|
final res = await _apiService.downloadApi
|
||||||
.downloadFileOldWithHttpInfo(asset.remoteId!);
|
.downloadFileWithHttpInfo(asset.remoteId!);
|
||||||
|
|
||||||
if (res.statusCode != 200) {
|
if (res.statusCode != 200) {
|
||||||
_log.severe(
|
_log.severe(
|
||||||
|
3
mobile/openapi/.openapi-generator/FILES
generated
3
mobile/openapi/.openapi-generator/FILES
generated
@ -95,7 +95,6 @@ doc/OAuthApi.md
|
|||||||
doc/OAuthAuthorizeResponseDto.md
|
doc/OAuthAuthorizeResponseDto.md
|
||||||
doc/OAuthCallbackDto.md
|
doc/OAuthCallbackDto.md
|
||||||
doc/OAuthConfigDto.md
|
doc/OAuthConfigDto.md
|
||||||
doc/OAuthConfigResponseDto.md
|
|
||||||
doc/PartnerApi.md
|
doc/PartnerApi.md
|
||||||
doc/PartnerResponseDto.md
|
doc/PartnerResponseDto.md
|
||||||
doc/PathEntityType.md
|
doc/PathEntityType.md
|
||||||
@ -292,7 +291,6 @@ lib/model/model_type.dart
|
|||||||
lib/model/o_auth_authorize_response_dto.dart
|
lib/model/o_auth_authorize_response_dto.dart
|
||||||
lib/model/o_auth_callback_dto.dart
|
lib/model/o_auth_callback_dto.dart
|
||||||
lib/model/o_auth_config_dto.dart
|
lib/model/o_auth_config_dto.dart
|
||||||
lib/model/o_auth_config_response_dto.dart
|
|
||||||
lib/model/partner_response_dto.dart
|
lib/model/partner_response_dto.dart
|
||||||
lib/model/path_entity_type.dart
|
lib/model/path_entity_type.dart
|
||||||
lib/model/path_type.dart
|
lib/model/path_type.dart
|
||||||
@ -462,7 +460,6 @@ test/o_auth_api_test.dart
|
|||||||
test/o_auth_authorize_response_dto_test.dart
|
test/o_auth_authorize_response_dto_test.dart
|
||||||
test/o_auth_callback_dto_test.dart
|
test/o_auth_callback_dto_test.dart
|
||||||
test/o_auth_config_dto_test.dart
|
test/o_auth_config_dto_test.dart
|
||||||
test/o_auth_config_response_dto_test.dart
|
|
||||||
test/partner_api_test.dart
|
test/partner_api_test.dart
|
||||||
test/partner_response_dto_test.dart
|
test/partner_response_dto_test.dart
|
||||||
test/path_entity_type_test.dart
|
test/path_entity_type_test.dart
|
||||||
|
9
mobile/openapi/README.md
generated
9
mobile/openapi/README.md
generated
@ -94,26 +94,19 @@ Class | Method | HTTP request | Description
|
|||||||
*AssetApi* | [**checkBulkUpload**](doc//AssetApi.md#checkbulkupload) | **POST** /asset/bulk-upload-check |
|
*AssetApi* | [**checkBulkUpload**](doc//AssetApi.md#checkbulkupload) | **POST** /asset/bulk-upload-check |
|
||||||
*AssetApi* | [**checkExistingAssets**](doc//AssetApi.md#checkexistingassets) | **POST** /asset/exist |
|
*AssetApi* | [**checkExistingAssets**](doc//AssetApi.md#checkexistingassets) | **POST** /asset/exist |
|
||||||
*AssetApi* | [**deleteAssets**](doc//AssetApi.md#deleteassets) | **DELETE** /asset |
|
*AssetApi* | [**deleteAssets**](doc//AssetApi.md#deleteassets) | **DELETE** /asset |
|
||||||
*AssetApi* | [**downloadArchiveOld**](doc//AssetApi.md#downloadarchiveold) | **POST** /asset/download/archive |
|
|
||||||
*AssetApi* | [**downloadFileOld**](doc//AssetApi.md#downloadfileold) | **POST** /asset/download/{id} |
|
|
||||||
*AssetApi* | [**emptyTrashOld**](doc//AssetApi.md#emptytrashold) | **POST** /asset/trash/empty |
|
|
||||||
*AssetApi* | [**getAllAssets**](doc//AssetApi.md#getallassets) | **GET** /asset |
|
*AssetApi* | [**getAllAssets**](doc//AssetApi.md#getallassets) | **GET** /asset |
|
||||||
*AssetApi* | [**getAllUserAssetsByDeviceId**](doc//AssetApi.md#getalluserassetsbydeviceid) | **GET** /asset/device/{deviceId} |
|
*AssetApi* | [**getAllUserAssetsByDeviceId**](doc//AssetApi.md#getalluserassetsbydeviceid) | **GET** /asset/device/{deviceId} |
|
||||||
*AssetApi* | [**getAssetById**](doc//AssetApi.md#getassetbyid) | **GET** /asset/assetById/{id} |
|
|
||||||
*AssetApi* | [**getAssetInfo**](doc//AssetApi.md#getassetinfo) | **GET** /asset/{id} |
|
*AssetApi* | [**getAssetInfo**](doc//AssetApi.md#getassetinfo) | **GET** /asset/{id} |
|
||||||
*AssetApi* | [**getAssetSearchTerms**](doc//AssetApi.md#getassetsearchterms) | **GET** /asset/search-terms |
|
*AssetApi* | [**getAssetSearchTerms**](doc//AssetApi.md#getassetsearchterms) | **GET** /asset/search-terms |
|
||||||
*AssetApi* | [**getAssetStatistics**](doc//AssetApi.md#getassetstatistics) | **GET** /asset/statistics |
|
*AssetApi* | [**getAssetStatistics**](doc//AssetApi.md#getassetstatistics) | **GET** /asset/statistics |
|
||||||
*AssetApi* | [**getAssetThumbnail**](doc//AssetApi.md#getassetthumbnail) | **GET** /asset/thumbnail/{id} |
|
*AssetApi* | [**getAssetThumbnail**](doc//AssetApi.md#getassetthumbnail) | **GET** /asset/thumbnail/{id} |
|
||||||
*AssetApi* | [**getCuratedLocations**](doc//AssetApi.md#getcuratedlocations) | **GET** /asset/curated-locations |
|
*AssetApi* | [**getCuratedLocations**](doc//AssetApi.md#getcuratedlocations) | **GET** /asset/curated-locations |
|
||||||
*AssetApi* | [**getCuratedObjects**](doc//AssetApi.md#getcuratedobjects) | **GET** /asset/curated-objects |
|
*AssetApi* | [**getCuratedObjects**](doc//AssetApi.md#getcuratedobjects) | **GET** /asset/curated-objects |
|
||||||
*AssetApi* | [**getDownloadInfoOld**](doc//AssetApi.md#getdownloadinfoold) | **POST** /asset/download/info |
|
|
||||||
*AssetApi* | [**getMapMarkers**](doc//AssetApi.md#getmapmarkers) | **GET** /asset/map-marker |
|
*AssetApi* | [**getMapMarkers**](doc//AssetApi.md#getmapmarkers) | **GET** /asset/map-marker |
|
||||||
*AssetApi* | [**getMemoryLane**](doc//AssetApi.md#getmemorylane) | **GET** /asset/memory-lane |
|
*AssetApi* | [**getMemoryLane**](doc//AssetApi.md#getmemorylane) | **GET** /asset/memory-lane |
|
||||||
*AssetApi* | [**getRandom**](doc//AssetApi.md#getrandom) | **GET** /asset/random |
|
*AssetApi* | [**getRandom**](doc//AssetApi.md#getrandom) | **GET** /asset/random |
|
||||||
*AssetApi* | [**getTimeBucket**](doc//AssetApi.md#gettimebucket) | **GET** /asset/time-bucket |
|
*AssetApi* | [**getTimeBucket**](doc//AssetApi.md#gettimebucket) | **GET** /asset/time-bucket |
|
||||||
*AssetApi* | [**getTimeBuckets**](doc//AssetApi.md#gettimebuckets) | **GET** /asset/time-buckets |
|
*AssetApi* | [**getTimeBuckets**](doc//AssetApi.md#gettimebuckets) | **GET** /asset/time-buckets |
|
||||||
*AssetApi* | [**restoreAssetsOld**](doc//AssetApi.md#restoreassetsold) | **POST** /asset/restore |
|
|
||||||
*AssetApi* | [**restoreTrashOld**](doc//AssetApi.md#restoretrashold) | **POST** /asset/trash/restore |
|
|
||||||
*AssetApi* | [**runAssetJobs**](doc//AssetApi.md#runassetjobs) | **POST** /asset/jobs |
|
*AssetApi* | [**runAssetJobs**](doc//AssetApi.md#runassetjobs) | **POST** /asset/jobs |
|
||||||
*AssetApi* | [**searchAssets**](doc//AssetApi.md#searchassets) | **GET** /assets |
|
*AssetApi* | [**searchAssets**](doc//AssetApi.md#searchassets) | **GET** /assets |
|
||||||
*AssetApi* | [**serveFile**](doc//AssetApi.md#servefile) | **GET** /asset/file/{id} |
|
*AssetApi* | [**serveFile**](doc//AssetApi.md#servefile) | **GET** /asset/file/{id} |
|
||||||
@ -149,7 +142,6 @@ Class | Method | HTTP request | Description
|
|||||||
*LibraryApi* | [**scanLibrary**](doc//LibraryApi.md#scanlibrary) | **POST** /library/{id}/scan |
|
*LibraryApi* | [**scanLibrary**](doc//LibraryApi.md#scanlibrary) | **POST** /library/{id}/scan |
|
||||||
*LibraryApi* | [**updateLibrary**](doc//LibraryApi.md#updatelibrary) | **PUT** /library/{id} |
|
*LibraryApi* | [**updateLibrary**](doc//LibraryApi.md#updatelibrary) | **PUT** /library/{id} |
|
||||||
*OAuthApi* | [**finishOAuth**](doc//OAuthApi.md#finishoauth) | **POST** /oauth/callback |
|
*OAuthApi* | [**finishOAuth**](doc//OAuthApi.md#finishoauth) | **POST** /oauth/callback |
|
||||||
*OAuthApi* | [**generateOAuthConfig**](doc//OAuthApi.md#generateoauthconfig) | **POST** /oauth/config |
|
|
||||||
*OAuthApi* | [**linkOAuthAccount**](doc//OAuthApi.md#linkoauthaccount) | **POST** /oauth/link |
|
*OAuthApi* | [**linkOAuthAccount**](doc//OAuthApi.md#linkoauthaccount) | **POST** /oauth/link |
|
||||||
*OAuthApi* | [**redirectOAuthToMobile**](doc//OAuthApi.md#redirectoauthtomobile) | **GET** /oauth/mobile-redirect |
|
*OAuthApi* | [**redirectOAuthToMobile**](doc//OAuthApi.md#redirectoauthtomobile) | **GET** /oauth/mobile-redirect |
|
||||||
*OAuthApi* | [**startOAuth**](doc//OAuthApi.md#startoauth) | **POST** /oauth/authorize |
|
*OAuthApi* | [**startOAuth**](doc//OAuthApi.md#startoauth) | **POST** /oauth/authorize |
|
||||||
@ -299,7 +291,6 @@ Class | Method | HTTP request | Description
|
|||||||
- [OAuthAuthorizeResponseDto](doc//OAuthAuthorizeResponseDto.md)
|
- [OAuthAuthorizeResponseDto](doc//OAuthAuthorizeResponseDto.md)
|
||||||
- [OAuthCallbackDto](doc//OAuthCallbackDto.md)
|
- [OAuthCallbackDto](doc//OAuthCallbackDto.md)
|
||||||
- [OAuthConfigDto](doc//OAuthConfigDto.md)
|
- [OAuthConfigDto](doc//OAuthConfigDto.md)
|
||||||
- [OAuthConfigResponseDto](doc//OAuthConfigResponseDto.md)
|
|
||||||
- [PartnerResponseDto](doc//PartnerResponseDto.md)
|
- [PartnerResponseDto](doc//PartnerResponseDto.md)
|
||||||
- [PathEntityType](doc//PathEntityType.md)
|
- [PathEntityType](doc//PathEntityType.md)
|
||||||
- [PathType](doc//PathType.md)
|
- [PathType](doc//PathType.md)
|
||||||
|
391
mobile/openapi/doc/AssetApi.md
generated
391
mobile/openapi/doc/AssetApi.md
generated
@ -12,26 +12,19 @@ Method | HTTP request | Description
|
|||||||
[**checkBulkUpload**](AssetApi.md#checkbulkupload) | **POST** /asset/bulk-upload-check |
|
[**checkBulkUpload**](AssetApi.md#checkbulkupload) | **POST** /asset/bulk-upload-check |
|
||||||
[**checkExistingAssets**](AssetApi.md#checkexistingassets) | **POST** /asset/exist |
|
[**checkExistingAssets**](AssetApi.md#checkexistingassets) | **POST** /asset/exist |
|
||||||
[**deleteAssets**](AssetApi.md#deleteassets) | **DELETE** /asset |
|
[**deleteAssets**](AssetApi.md#deleteassets) | **DELETE** /asset |
|
||||||
[**downloadArchiveOld**](AssetApi.md#downloadarchiveold) | **POST** /asset/download/archive |
|
|
||||||
[**downloadFileOld**](AssetApi.md#downloadfileold) | **POST** /asset/download/{id} |
|
|
||||||
[**emptyTrashOld**](AssetApi.md#emptytrashold) | **POST** /asset/trash/empty |
|
|
||||||
[**getAllAssets**](AssetApi.md#getallassets) | **GET** /asset |
|
[**getAllAssets**](AssetApi.md#getallassets) | **GET** /asset |
|
||||||
[**getAllUserAssetsByDeviceId**](AssetApi.md#getalluserassetsbydeviceid) | **GET** /asset/device/{deviceId} |
|
[**getAllUserAssetsByDeviceId**](AssetApi.md#getalluserassetsbydeviceid) | **GET** /asset/device/{deviceId} |
|
||||||
[**getAssetById**](AssetApi.md#getassetbyid) | **GET** /asset/assetById/{id} |
|
|
||||||
[**getAssetInfo**](AssetApi.md#getassetinfo) | **GET** /asset/{id} |
|
[**getAssetInfo**](AssetApi.md#getassetinfo) | **GET** /asset/{id} |
|
||||||
[**getAssetSearchTerms**](AssetApi.md#getassetsearchterms) | **GET** /asset/search-terms |
|
[**getAssetSearchTerms**](AssetApi.md#getassetsearchterms) | **GET** /asset/search-terms |
|
||||||
[**getAssetStatistics**](AssetApi.md#getassetstatistics) | **GET** /asset/statistics |
|
[**getAssetStatistics**](AssetApi.md#getassetstatistics) | **GET** /asset/statistics |
|
||||||
[**getAssetThumbnail**](AssetApi.md#getassetthumbnail) | **GET** /asset/thumbnail/{id} |
|
[**getAssetThumbnail**](AssetApi.md#getassetthumbnail) | **GET** /asset/thumbnail/{id} |
|
||||||
[**getCuratedLocations**](AssetApi.md#getcuratedlocations) | **GET** /asset/curated-locations |
|
[**getCuratedLocations**](AssetApi.md#getcuratedlocations) | **GET** /asset/curated-locations |
|
||||||
[**getCuratedObjects**](AssetApi.md#getcuratedobjects) | **GET** /asset/curated-objects |
|
[**getCuratedObjects**](AssetApi.md#getcuratedobjects) | **GET** /asset/curated-objects |
|
||||||
[**getDownloadInfoOld**](AssetApi.md#getdownloadinfoold) | **POST** /asset/download/info |
|
|
||||||
[**getMapMarkers**](AssetApi.md#getmapmarkers) | **GET** /asset/map-marker |
|
[**getMapMarkers**](AssetApi.md#getmapmarkers) | **GET** /asset/map-marker |
|
||||||
[**getMemoryLane**](AssetApi.md#getmemorylane) | **GET** /asset/memory-lane |
|
[**getMemoryLane**](AssetApi.md#getmemorylane) | **GET** /asset/memory-lane |
|
||||||
[**getRandom**](AssetApi.md#getrandom) | **GET** /asset/random |
|
[**getRandom**](AssetApi.md#getrandom) | **GET** /asset/random |
|
||||||
[**getTimeBucket**](AssetApi.md#gettimebucket) | **GET** /asset/time-bucket |
|
[**getTimeBucket**](AssetApi.md#gettimebucket) | **GET** /asset/time-bucket |
|
||||||
[**getTimeBuckets**](AssetApi.md#gettimebuckets) | **GET** /asset/time-buckets |
|
[**getTimeBuckets**](AssetApi.md#gettimebuckets) | **GET** /asset/time-buckets |
|
||||||
[**restoreAssetsOld**](AssetApi.md#restoreassetsold) | **POST** /asset/restore |
|
|
||||||
[**restoreTrashOld**](AssetApi.md#restoretrashold) | **POST** /asset/trash/restore |
|
|
||||||
[**runAssetJobs**](AssetApi.md#runassetjobs) | **POST** /asset/jobs |
|
[**runAssetJobs**](AssetApi.md#runassetjobs) | **POST** /asset/jobs |
|
||||||
[**searchAssets**](AssetApi.md#searchassets) | **GET** /assets |
|
[**searchAssets**](AssetApi.md#searchassets) | **GET** /assets |
|
||||||
[**serveFile**](AssetApi.md#servefile) | **GET** /asset/file/{id} |
|
[**serveFile**](AssetApi.md#servefile) | **GET** /asset/file/{id} |
|
||||||
@ -209,170 +202,6 @@ void (empty response body)
|
|||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **downloadArchiveOld**
|
|
||||||
> MultipartFile downloadArchiveOld(assetIdsDto, key)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
// TODO Configure API key authorization: cookie
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookie').apiKey = 'YOUR_API_KEY';
|
|
||||||
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookie').apiKeyPrefix = 'Bearer';
|
|
||||||
// TODO Configure API key authorization: api_key
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
|
|
||||||
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
|
|
||||||
// TODO Configure HTTP Bearer authorization: bearer
|
|
||||||
// Case 1. Use String Token
|
|
||||||
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
|
|
||||||
// Case 2. Use Function which generate token.
|
|
||||||
// String yourTokenGeneratorFunction() { ... }
|
|
||||||
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
|
|
||||||
|
|
||||||
final api_instance = AssetApi();
|
|
||||||
final assetIdsDto = AssetIdsDto(); // AssetIdsDto |
|
|
||||||
final key = key_example; // String |
|
|
||||||
|
|
||||||
try {
|
|
||||||
final result = api_instance.downloadArchiveOld(assetIdsDto, key);
|
|
||||||
print(result);
|
|
||||||
} catch (e) {
|
|
||||||
print('Exception when calling AssetApi->downloadArchiveOld: $e\n');
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**assetIdsDto** | [**AssetIdsDto**](AssetIdsDto.md)| |
|
|
||||||
**key** | **String**| | [optional]
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**MultipartFile**](MultipartFile.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: application/octet-stream
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
# **downloadFileOld**
|
|
||||||
> MultipartFile downloadFileOld(id, key)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
// TODO Configure API key authorization: cookie
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookie').apiKey = 'YOUR_API_KEY';
|
|
||||||
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookie').apiKeyPrefix = 'Bearer';
|
|
||||||
// TODO Configure API key authorization: api_key
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
|
|
||||||
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
|
|
||||||
// TODO Configure HTTP Bearer authorization: bearer
|
|
||||||
// Case 1. Use String Token
|
|
||||||
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
|
|
||||||
// Case 2. Use Function which generate token.
|
|
||||||
// String yourTokenGeneratorFunction() { ... }
|
|
||||||
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
|
|
||||||
|
|
||||||
final api_instance = AssetApi();
|
|
||||||
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
|
|
||||||
final key = key_example; // String |
|
|
||||||
|
|
||||||
try {
|
|
||||||
final result = api_instance.downloadFileOld(id, key);
|
|
||||||
print(result);
|
|
||||||
} catch (e) {
|
|
||||||
print('Exception when calling AssetApi->downloadFileOld: $e\n');
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**id** | **String**| |
|
|
||||||
**key** | **String**| | [optional]
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**MultipartFile**](MultipartFile.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: application/octet-stream
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
# **emptyTrashOld**
|
|
||||||
> emptyTrashOld()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
// TODO Configure API key authorization: cookie
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookie').apiKey = 'YOUR_API_KEY';
|
|
||||||
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookie').apiKeyPrefix = 'Bearer';
|
|
||||||
// TODO Configure API key authorization: api_key
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
|
|
||||||
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
|
|
||||||
// TODO Configure HTTP Bearer authorization: bearer
|
|
||||||
// Case 1. Use String Token
|
|
||||||
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
|
|
||||||
// Case 2. Use Function which generate token.
|
|
||||||
// String yourTokenGeneratorFunction() { ... }
|
|
||||||
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
|
|
||||||
|
|
||||||
final api_instance = AssetApi();
|
|
||||||
|
|
||||||
try {
|
|
||||||
api_instance.emptyTrashOld();
|
|
||||||
} catch (e) {
|
|
||||||
print('Exception when calling AssetApi->emptyTrashOld: $e\n');
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
This endpoint does not need any parameter.
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
# **getAllAssets**
|
# **getAllAssets**
|
||||||
> List<AssetResponseDto> getAllAssets(ifNoneMatch, isArchived, isFavorite, skip, take, updatedAfter, updatedBefore, userId)
|
> List<AssetResponseDto> getAllAssets(ifNoneMatch, isArchived, isFavorite, skip, take, updatedAfter, updatedBefore, userId)
|
||||||
|
|
||||||
@ -501,65 +330,6 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **getAssetById**
|
|
||||||
> AssetResponseDto getAssetById(id, key)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Get a single asset's information
|
|
||||||
|
|
||||||
### Example
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
// TODO Configure API key authorization: cookie
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookie').apiKey = 'YOUR_API_KEY';
|
|
||||||
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookie').apiKeyPrefix = 'Bearer';
|
|
||||||
// TODO Configure API key authorization: api_key
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
|
|
||||||
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
|
|
||||||
// TODO Configure HTTP Bearer authorization: bearer
|
|
||||||
// Case 1. Use String Token
|
|
||||||
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
|
|
||||||
// Case 2. Use Function which generate token.
|
|
||||||
// String yourTokenGeneratorFunction() { ... }
|
|
||||||
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
|
|
||||||
|
|
||||||
final api_instance = AssetApi();
|
|
||||||
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
|
|
||||||
final key = key_example; // String |
|
|
||||||
|
|
||||||
try {
|
|
||||||
final result = api_instance.getAssetById(id, key);
|
|
||||||
print(result);
|
|
||||||
} catch (e) {
|
|
||||||
print('Exception when calling AssetApi->getAssetById: $e\n');
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**id** | **String**| |
|
|
||||||
**key** | **String**| | [optional]
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**AssetResponseDto**](AssetResponseDto.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: application/json
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
# **getAssetInfo**
|
# **getAssetInfo**
|
||||||
> AssetResponseDto getAssetInfo(id, key)
|
> AssetResponseDto getAssetInfo(id, key)
|
||||||
|
|
||||||
@ -888,63 +658,6 @@ This endpoint does not need any parameter.
|
|||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **getDownloadInfoOld**
|
|
||||||
> DownloadResponseDto getDownloadInfoOld(downloadInfoDto, key)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
// TODO Configure API key authorization: cookie
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookie').apiKey = 'YOUR_API_KEY';
|
|
||||||
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookie').apiKeyPrefix = 'Bearer';
|
|
||||||
// TODO Configure API key authorization: api_key
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
|
|
||||||
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
|
|
||||||
// TODO Configure HTTP Bearer authorization: bearer
|
|
||||||
// Case 1. Use String Token
|
|
||||||
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
|
|
||||||
// Case 2. Use Function which generate token.
|
|
||||||
// String yourTokenGeneratorFunction() { ... }
|
|
||||||
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
|
|
||||||
|
|
||||||
final api_instance = AssetApi();
|
|
||||||
final downloadInfoDto = DownloadInfoDto(); // DownloadInfoDto |
|
|
||||||
final key = key_example; // String |
|
|
||||||
|
|
||||||
try {
|
|
||||||
final result = api_instance.getDownloadInfoOld(downloadInfoDto, key);
|
|
||||||
print(result);
|
|
||||||
} catch (e) {
|
|
||||||
print('Exception when calling AssetApi->getDownloadInfoOld: $e\n');
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**downloadInfoDto** | [**DownloadInfoDto**](DownloadInfoDto.md)| |
|
|
||||||
**key** | **String**| | [optional]
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**DownloadResponseDto**](DownloadResponseDto.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: application/json
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
# **getMapMarkers**
|
# **getMapMarkers**
|
||||||
> List<MapMarkerResponseDto> getMapMarkers(fileCreatedAfter, fileCreatedBefore, isArchived, isFavorite)
|
> List<MapMarkerResponseDto> getMapMarkers(fileCreatedAfter, fileCreatedBefore, isArchived, isFavorite)
|
||||||
|
|
||||||
@ -1266,110 +979,6 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **restoreAssetsOld**
|
|
||||||
> restoreAssetsOld(bulkIdsDto)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
// TODO Configure API key authorization: cookie
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookie').apiKey = 'YOUR_API_KEY';
|
|
||||||
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookie').apiKeyPrefix = 'Bearer';
|
|
||||||
// TODO Configure API key authorization: api_key
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
|
|
||||||
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
|
|
||||||
// TODO Configure HTTP Bearer authorization: bearer
|
|
||||||
// Case 1. Use String Token
|
|
||||||
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
|
|
||||||
// Case 2. Use Function which generate token.
|
|
||||||
// String yourTokenGeneratorFunction() { ... }
|
|
||||||
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
|
|
||||||
|
|
||||||
final api_instance = AssetApi();
|
|
||||||
final bulkIdsDto = BulkIdsDto(); // BulkIdsDto |
|
|
||||||
|
|
||||||
try {
|
|
||||||
api_instance.restoreAssetsOld(bulkIdsDto);
|
|
||||||
} catch (e) {
|
|
||||||
print('Exception when calling AssetApi->restoreAssetsOld: $e\n');
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**bulkIdsDto** | [**BulkIdsDto**](BulkIdsDto.md)| |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
# **restoreTrashOld**
|
|
||||||
> restoreTrashOld()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
// TODO Configure API key authorization: cookie
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookie').apiKey = 'YOUR_API_KEY';
|
|
||||||
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookie').apiKeyPrefix = 'Bearer';
|
|
||||||
// TODO Configure API key authorization: api_key
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
|
|
||||||
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
|
|
||||||
// TODO Configure HTTP Bearer authorization: bearer
|
|
||||||
// Case 1. Use String Token
|
|
||||||
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
|
|
||||||
// Case 2. Use Function which generate token.
|
|
||||||
// String yourTokenGeneratorFunction() { ... }
|
|
||||||
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
|
|
||||||
|
|
||||||
final api_instance = AssetApi();
|
|
||||||
|
|
||||||
try {
|
|
||||||
api_instance.restoreTrashOld();
|
|
||||||
} catch (e) {
|
|
||||||
print('Exception when calling AssetApi->restoreTrashOld: $e\n');
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
This endpoint does not need any parameter.
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
void (empty response body)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: Not defined
|
|
||||||
- **Accept**: Not defined
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
# **runAssetJobs**
|
# **runAssetJobs**
|
||||||
> runAssetJobs(assetJobsDto)
|
> runAssetJobs(assetJobsDto)
|
||||||
|
|
||||||
|
44
mobile/openapi/doc/OAuthApi.md
generated
44
mobile/openapi/doc/OAuthApi.md
generated
@ -10,7 +10,6 @@ All URIs are relative to */api*
|
|||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
[**finishOAuth**](OAuthApi.md#finishoauth) | **POST** /oauth/callback |
|
[**finishOAuth**](OAuthApi.md#finishoauth) | **POST** /oauth/callback |
|
||||||
[**generateOAuthConfig**](OAuthApi.md#generateoauthconfig) | **POST** /oauth/config |
|
|
||||||
[**linkOAuthAccount**](OAuthApi.md#linkoauthaccount) | **POST** /oauth/link |
|
[**linkOAuthAccount**](OAuthApi.md#linkoauthaccount) | **POST** /oauth/link |
|
||||||
[**redirectOAuthToMobile**](OAuthApi.md#redirectoauthtomobile) | **GET** /oauth/mobile-redirect |
|
[**redirectOAuthToMobile**](OAuthApi.md#redirectoauthtomobile) | **GET** /oauth/mobile-redirect |
|
||||||
[**startOAuth**](OAuthApi.md#startoauth) | **POST** /oauth/authorize |
|
[**startOAuth**](OAuthApi.md#startoauth) | **POST** /oauth/authorize |
|
||||||
@ -58,49 +57,6 @@ No authorization required
|
|||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **generateOAuthConfig**
|
|
||||||
> OAuthConfigResponseDto generateOAuthConfig(oAuthConfigDto)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@deprecated use feature flags and /oauth/authorize
|
|
||||||
|
|
||||||
### Example
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
|
|
||||||
final api_instance = OAuthApi();
|
|
||||||
final oAuthConfigDto = OAuthConfigDto(); // OAuthConfigDto |
|
|
||||||
|
|
||||||
try {
|
|
||||||
final result = api_instance.generateOAuthConfig(oAuthConfigDto);
|
|
||||||
print(result);
|
|
||||||
} catch (e) {
|
|
||||||
print('Exception when calling OAuthApi->generateOAuthConfig: $e\n');
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameters
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------- | ------------- | ------------- | -------------
|
|
||||||
**oAuthConfigDto** | [**OAuthConfigDto**](OAuthConfigDto.md)| |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**OAuthConfigResponseDto**](OAuthConfigResponseDto.md)
|
|
||||||
|
|
||||||
### Authorization
|
|
||||||
|
|
||||||
No authorization required
|
|
||||||
|
|
||||||
### HTTP request headers
|
|
||||||
|
|
||||||
- **Content-Type**: application/json
|
|
||||||
- **Accept**: application/json
|
|
||||||
|
|
||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
# **linkOAuthAccount**
|
# **linkOAuthAccount**
|
||||||
> UserResponseDto linkOAuthAccount(oAuthCallbackDto)
|
> UserResponseDto linkOAuthAccount(oAuthCallbackDto)
|
||||||
|
|
||||||
|
19
mobile/openapi/doc/OAuthConfigResponseDto.md
generated
19
mobile/openapi/doc/OAuthConfigResponseDto.md
generated
@ -1,19 +0,0 @@
|
|||||||
# openapi.model.OAuthConfigResponseDto
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**autoLaunch** | **bool** | | [optional]
|
|
||||||
**buttonText** | **String** | | [optional]
|
|
||||||
**enabled** | **bool** | |
|
|
||||||
**passwordLoginEnabled** | **bool** | |
|
|
||||||
**url** | **String** | | [optional]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
|
|
1
mobile/openapi/lib/api.dart
generated
1
mobile/openapi/lib/api.dart
generated
@ -131,7 +131,6 @@ part 'model/model_type.dart';
|
|||||||
part 'model/o_auth_authorize_response_dto.dart';
|
part 'model/o_auth_authorize_response_dto.dart';
|
||||||
part 'model/o_auth_callback_dto.dart';
|
part 'model/o_auth_callback_dto.dart';
|
||||||
part 'model/o_auth_config_dto.dart';
|
part 'model/o_auth_config_dto.dart';
|
||||||
part 'model/o_auth_config_response_dto.dart';
|
|
||||||
part 'model/partner_response_dto.dart';
|
part 'model/partner_response_dto.dart';
|
||||||
part 'model/path_entity_type.dart';
|
part 'model/path_entity_type.dart';
|
||||||
part 'model/path_type.dart';
|
part 'model/path_type.dart';
|
||||||
|
332
mobile/openapi/lib/api/asset_api.dart
generated
332
mobile/openapi/lib/api/asset_api.dart
generated
@ -159,150 +159,6 @@ class AssetApi {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /asset/download/archive' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [AssetIdsDto] assetIdsDto (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
Future<Response> downloadArchiveOldWithHttpInfo(AssetIdsDto assetIdsDto, { String? key, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final path = r'/asset/download/archive';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = assetIdsDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (key != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'key', key));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
path,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [AssetIdsDto] assetIdsDto (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
Future<MultipartFile?> downloadArchiveOld(AssetIdsDto assetIdsDto, { String? key, }) async {
|
|
||||||
final response = await downloadArchiveOldWithHttpInfo(assetIdsDto, key: key, );
|
|
||||||
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 'POST /asset/download/{id}' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
Future<Response> downloadFileOldWithHttpInfo(String id, { String? key, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final path = r'/asset/download/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (key != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'key', key));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
path,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
Future<MultipartFile?> downloadFileOld(String id, { String? key, }) async {
|
|
||||||
final response = await downloadFileOldWithHttpInfo(id, key: key, );
|
|
||||||
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 'POST /asset/trash/empty' operation and returns the [Response].
|
|
||||||
Future<Response> emptyTrashOldWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final path = r'/asset/trash/empty';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
path,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> emptyTrashOld() async {
|
|
||||||
final response = await emptyTrashOldWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Get all AssetEntity belong to the user
|
/// Get all AssetEntity belong to the user
|
||||||
///
|
///
|
||||||
/// Note: This method returns the HTTP [Response].
|
/// Note: This method returns the HTTP [Response].
|
||||||
@ -470,67 +326,6 @@ class AssetApi {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get a single asset's information
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
Future<Response> getAssetByIdWithHttpInfo(String id, { String? key, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final path = r'/asset/assetById/{id}'
|
|
||||||
.replaceAll('{id}', id);
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (key != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'key', key));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
path,
|
|
||||||
'GET',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Get a single asset's information
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [String] id (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
Future<AssetResponseDto?> getAssetById(String id, { String? key, }) async {
|
|
||||||
final response = await getAssetByIdWithHttpInfo(id, key: key, );
|
|
||||||
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), 'AssetResponseDto',) as AssetResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'GET /asset/{id}' operation and returns the [Response].
|
/// Performs an HTTP 'GET /asset/{id}' operation and returns the [Response].
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
@ -847,61 +642,6 @@ class AssetApi {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /asset/download/info' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [DownloadInfoDto] downloadInfoDto (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
Future<Response> getDownloadInfoOldWithHttpInfo(DownloadInfoDto downloadInfoDto, { String? key, }) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final path = r'/asset/download/info';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = downloadInfoDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
if (key != null) {
|
|
||||||
queryParams.addAll(_queryParams('', 'key', key));
|
|
||||||
}
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
path,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [DownloadInfoDto] downloadInfoDto (required):
|
|
||||||
///
|
|
||||||
/// * [String] key:
|
|
||||||
Future<DownloadResponseDto?> getDownloadInfoOld(DownloadInfoDto downloadInfoDto, { String? key, }) async {
|
|
||||||
final response = await getDownloadInfoOldWithHttpInfo(downloadInfoDto, key: key, );
|
|
||||||
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), 'DownloadResponseDto',) as DownloadResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'GET /asset/map-marker' operation and returns the [Response].
|
/// Performs an HTTP 'GET /asset/map-marker' operation and returns the [Response].
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
@ -1323,78 +1063,6 @@ class AssetApi {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /asset/restore' operation and returns the [Response].
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<Response> restoreAssetsOldWithHttpInfo(BulkIdsDto bulkIdsDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final path = r'/asset/restore';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = bulkIdsDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
path,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [BulkIdsDto] bulkIdsDto (required):
|
|
||||||
Future<void> restoreAssetsOld(BulkIdsDto bulkIdsDto,) async {
|
|
||||||
final response = await restoreAssetsOldWithHttpInfo(bulkIdsDto,);
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /asset/trash/restore' operation and returns the [Response].
|
|
||||||
Future<Response> restoreTrashOldWithHttpInfo() async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final path = r'/asset/trash/restore';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>[];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
path,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> restoreTrashOld() async {
|
|
||||||
final response = await restoreTrashOldWithHttpInfo();
|
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /asset/jobs' operation and returns the [Response].
|
/// Performs an HTTP 'POST /asset/jobs' operation and returns the [Response].
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
|
52
mobile/openapi/lib/api/o_auth_api.dart
generated
52
mobile/openapi/lib/api/o_auth_api.dart
generated
@ -63,58 +63,6 @@ class OAuthApi {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @deprecated use feature flags and /oauth/authorize
|
|
||||||
///
|
|
||||||
/// Note: This method returns the HTTP [Response].
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [OAuthConfigDto] oAuthConfigDto (required):
|
|
||||||
Future<Response> generateOAuthConfigWithHttpInfo(OAuthConfigDto oAuthConfigDto,) async {
|
|
||||||
// ignore: prefer_const_declarations
|
|
||||||
final path = r'/oauth/config';
|
|
||||||
|
|
||||||
// ignore: prefer_final_locals
|
|
||||||
Object? postBody = oAuthConfigDto;
|
|
||||||
|
|
||||||
final queryParams = <QueryParam>[];
|
|
||||||
final headerParams = <String, String>{};
|
|
||||||
final formParams = <String, String>{};
|
|
||||||
|
|
||||||
const contentTypes = <String>['application/json'];
|
|
||||||
|
|
||||||
|
|
||||||
return apiClient.invokeAPI(
|
|
||||||
path,
|
|
||||||
'POST',
|
|
||||||
queryParams,
|
|
||||||
postBody,
|
|
||||||
headerParams,
|
|
||||||
formParams,
|
|
||||||
contentTypes.isEmpty ? null : contentTypes.first,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @deprecated use feature flags and /oauth/authorize
|
|
||||||
///
|
|
||||||
/// Parameters:
|
|
||||||
///
|
|
||||||
/// * [OAuthConfigDto] oAuthConfigDto (required):
|
|
||||||
Future<OAuthConfigResponseDto?> generateOAuthConfig(OAuthConfigDto oAuthConfigDto,) async {
|
|
||||||
final response = await generateOAuthConfigWithHttpInfo(oAuthConfigDto,);
|
|
||||||
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), 'OAuthConfigResponseDto',) as OAuthConfigResponseDto;
|
|
||||||
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Performs an HTTP 'POST /oauth/link' operation and returns the [Response].
|
/// Performs an HTTP 'POST /oauth/link' operation and returns the [Response].
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
///
|
///
|
||||||
|
2
mobile/openapi/lib/api_client.dart
generated
2
mobile/openapi/lib/api_client.dart
generated
@ -344,8 +344,6 @@ class ApiClient {
|
|||||||
return OAuthCallbackDto.fromJson(value);
|
return OAuthCallbackDto.fromJson(value);
|
||||||
case 'OAuthConfigDto':
|
case 'OAuthConfigDto':
|
||||||
return OAuthConfigDto.fromJson(value);
|
return OAuthConfigDto.fromJson(value);
|
||||||
case 'OAuthConfigResponseDto':
|
|
||||||
return OAuthConfigResponseDto.fromJson(value);
|
|
||||||
case 'PartnerResponseDto':
|
case 'PartnerResponseDto':
|
||||||
return PartnerResponseDto.fromJson(value);
|
return PartnerResponseDto.fromJson(value);
|
||||||
case 'PathEntityType':
|
case 'PathEntityType':
|
||||||
|
157
mobile/openapi/lib/model/o_auth_config_response_dto.dart
generated
157
mobile/openapi/lib/model/o_auth_config_response_dto.dart
generated
@ -1,157 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.12
|
|
||||||
|
|
||||||
// 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 OAuthConfigResponseDto {
|
|
||||||
/// Returns a new [OAuthConfigResponseDto] instance.
|
|
||||||
OAuthConfigResponseDto({
|
|
||||||
this.autoLaunch,
|
|
||||||
this.buttonText,
|
|
||||||
required this.enabled,
|
|
||||||
required this.passwordLoginEnabled,
|
|
||||||
this.url,
|
|
||||||
});
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
bool? autoLaunch;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
String? buttonText;
|
|
||||||
|
|
||||||
bool enabled;
|
|
||||||
|
|
||||||
bool passwordLoginEnabled;
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
|
||||||
/// does not include a default value (using the "default:" property), however, the generated
|
|
||||||
/// source code must fall back to having a nullable type.
|
|
||||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
||||||
///
|
|
||||||
String? url;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is OAuthConfigResponseDto &&
|
|
||||||
other.autoLaunch == autoLaunch &&
|
|
||||||
other.buttonText == buttonText &&
|
|
||||||
other.enabled == enabled &&
|
|
||||||
other.passwordLoginEnabled == passwordLoginEnabled &&
|
|
||||||
other.url == url;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
// ignore: unnecessary_parenthesis
|
|
||||||
(autoLaunch == null ? 0 : autoLaunch!.hashCode) +
|
|
||||||
(buttonText == null ? 0 : buttonText!.hashCode) +
|
|
||||||
(enabled.hashCode) +
|
|
||||||
(passwordLoginEnabled.hashCode) +
|
|
||||||
(url == null ? 0 : url!.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'OAuthConfigResponseDto[autoLaunch=$autoLaunch, buttonText=$buttonText, enabled=$enabled, passwordLoginEnabled=$passwordLoginEnabled, url=$url]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (this.autoLaunch != null) {
|
|
||||||
json[r'autoLaunch'] = this.autoLaunch;
|
|
||||||
} else {
|
|
||||||
// json[r'autoLaunch'] = null;
|
|
||||||
}
|
|
||||||
if (this.buttonText != null) {
|
|
||||||
json[r'buttonText'] = this.buttonText;
|
|
||||||
} else {
|
|
||||||
// json[r'buttonText'] = null;
|
|
||||||
}
|
|
||||||
json[r'enabled'] = this.enabled;
|
|
||||||
json[r'passwordLoginEnabled'] = this.passwordLoginEnabled;
|
|
||||||
if (this.url != null) {
|
|
||||||
json[r'url'] = this.url;
|
|
||||||
} else {
|
|
||||||
// json[r'url'] = null;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [OAuthConfigResponseDto] instance and imports its values from
|
|
||||||
/// [value] if it's a [Map], null otherwise.
|
|
||||||
// ignore: prefer_constructors_over_static_methods
|
|
||||||
static OAuthConfigResponseDto? fromJson(dynamic value) {
|
|
||||||
if (value is Map) {
|
|
||||||
final json = value.cast<String, dynamic>();
|
|
||||||
|
|
||||||
return OAuthConfigResponseDto(
|
|
||||||
autoLaunch: mapValueOfType<bool>(json, r'autoLaunch'),
|
|
||||||
buttonText: mapValueOfType<String>(json, r'buttonText'),
|
|
||||||
enabled: mapValueOfType<bool>(json, r'enabled')!,
|
|
||||||
passwordLoginEnabled: mapValueOfType<bool>(json, r'passwordLoginEnabled')!,
|
|
||||||
url: mapValueOfType<String>(json, r'url'),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
static List<OAuthConfigResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final result = <OAuthConfigResponseDto>[];
|
|
||||||
if (json is List && json.isNotEmpty) {
|
|
||||||
for (final row in json) {
|
|
||||||
final value = OAuthConfigResponseDto.fromJson(row);
|
|
||||||
if (value != null) {
|
|
||||||
result.add(value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result.toList(growable: growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Map<String, OAuthConfigResponseDto> mapFromJson(dynamic json) {
|
|
||||||
final map = <String, OAuthConfigResponseDto>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
final value = OAuthConfigResponseDto.fromJson(entry.value);
|
|
||||||
if (value != null) {
|
|
||||||
map[entry.key] = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of OAuthConfigResponseDto-objects as value to a dart map
|
|
||||||
static Map<String, List<OAuthConfigResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
||||||
final map = <String, List<OAuthConfigResponseDto>>{};
|
|
||||||
if (json is Map && json.isNotEmpty) {
|
|
||||||
// ignore: parameter_assignments
|
|
||||||
json = json.cast<String, dynamic>();
|
|
||||||
for (final entry in json.entries) {
|
|
||||||
map[entry.key] = OAuthConfigResponseDto.listFromJson(entry.value, growable: growable,);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
|
||||||
static const requiredKeys = <String>{
|
|
||||||
'enabled',
|
|
||||||
'passwordLoginEnabled',
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
37
mobile/openapi/test/asset_api_test.dart
generated
37
mobile/openapi/test/asset_api_test.dart
generated
@ -36,21 +36,6 @@ void main() {
|
|||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
//Future<MultipartFile> downloadArchiveOld(AssetIdsDto assetIdsDto, { String key }) async
|
|
||||||
test('test downloadArchiveOld', () async {
|
|
||||||
// TODO
|
|
||||||
});
|
|
||||||
|
|
||||||
//Future<MultipartFile> downloadFileOld(String id, { String key }) async
|
|
||||||
test('test downloadFileOld', () async {
|
|
||||||
// TODO
|
|
||||||
});
|
|
||||||
|
|
||||||
//Future emptyTrashOld() async
|
|
||||||
test('test emptyTrashOld', () async {
|
|
||||||
// TODO
|
|
||||||
});
|
|
||||||
|
|
||||||
// Get all AssetEntity belong to the user
|
// Get all AssetEntity belong to the user
|
||||||
//
|
//
|
||||||
//Future<List<AssetResponseDto>> getAllAssets({ String ifNoneMatch, bool isArchived, bool isFavorite, int skip, int take, DateTime updatedAfter, DateTime updatedBefore, String userId }) async
|
//Future<List<AssetResponseDto>> getAllAssets({ String ifNoneMatch, bool isArchived, bool isFavorite, int skip, int take, DateTime updatedAfter, DateTime updatedBefore, String userId }) async
|
||||||
@ -65,13 +50,6 @@ void main() {
|
|||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// Get a single asset's information
|
|
||||||
//
|
|
||||||
//Future<AssetResponseDto> getAssetById(String id, { String key }) async
|
|
||||||
test('test getAssetById', () async {
|
|
||||||
// TODO
|
|
||||||
});
|
|
||||||
|
|
||||||
//Future<AssetResponseDto> getAssetInfo(String id, { String key }) async
|
//Future<AssetResponseDto> getAssetInfo(String id, { String key }) async
|
||||||
test('test getAssetInfo', () async {
|
test('test getAssetInfo', () async {
|
||||||
// TODO
|
// TODO
|
||||||
@ -102,11 +80,6 @@ void main() {
|
|||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
//Future<DownloadResponseDto> getDownloadInfoOld(DownloadInfoDto downloadInfoDto, { String key }) async
|
|
||||||
test('test getDownloadInfoOld', () async {
|
|
||||||
// TODO
|
|
||||||
});
|
|
||||||
|
|
||||||
//Future<List<MapMarkerResponseDto>> getMapMarkers({ DateTime fileCreatedAfter, DateTime fileCreatedBefore, bool isArchived, bool isFavorite }) async
|
//Future<List<MapMarkerResponseDto>> getMapMarkers({ DateTime fileCreatedAfter, DateTime fileCreatedBefore, bool isArchived, bool isFavorite }) async
|
||||||
test('test getMapMarkers', () async {
|
test('test getMapMarkers', () async {
|
||||||
// TODO
|
// TODO
|
||||||
@ -132,16 +105,6 @@ void main() {
|
|||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
//Future restoreAssetsOld(BulkIdsDto bulkIdsDto) async
|
|
||||||
test('test restoreAssetsOld', () async {
|
|
||||||
// TODO
|
|
||||||
});
|
|
||||||
|
|
||||||
//Future restoreTrashOld() async
|
|
||||||
test('test restoreTrashOld', () async {
|
|
||||||
// TODO
|
|
||||||
});
|
|
||||||
|
|
||||||
//Future runAssetJobs(AssetJobsDto assetJobsDto) async
|
//Future runAssetJobs(AssetJobsDto assetJobsDto) async
|
||||||
test('test runAssetJobs', () async {
|
test('test runAssetJobs', () async {
|
||||||
// TODO
|
// TODO
|
||||||
|
7
mobile/openapi/test/o_auth_api_test.dart
generated
7
mobile/openapi/test/o_auth_api_test.dart
generated
@ -22,13 +22,6 @@ void main() {
|
|||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// @deprecated use feature flags and /oauth/authorize
|
|
||||||
//
|
|
||||||
//Future<OAuthConfigResponseDto> generateOAuthConfig(OAuthConfigDto oAuthConfigDto) async
|
|
||||||
test('test generateOAuthConfig', () async {
|
|
||||||
// TODO
|
|
||||||
});
|
|
||||||
|
|
||||||
//Future<UserResponseDto> linkOAuthAccount(OAuthCallbackDto oAuthCallbackDto) async
|
//Future<UserResponseDto> linkOAuthAccount(OAuthCallbackDto oAuthCallbackDto) async
|
||||||
test('test linkOAuthAccount', () async {
|
test('test linkOAuthAccount', () async {
|
||||||
// TODO
|
// TODO
|
||||||
|
@ -1,47 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.12
|
|
||||||
|
|
||||||
// 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
|
|
||||||
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
import 'package:test/test.dart';
|
|
||||||
|
|
||||||
// tests for OAuthConfigResponseDto
|
|
||||||
void main() {
|
|
||||||
// final instance = OAuthConfigResponseDto();
|
|
||||||
|
|
||||||
group('test OAuthConfigResponseDto', () {
|
|
||||||
// bool autoLaunch
|
|
||||||
test('to test the property `autoLaunch`', () async {
|
|
||||||
// TODO
|
|
||||||
});
|
|
||||||
|
|
||||||
// String buttonText
|
|
||||||
test('to test the property `buttonText`', () async {
|
|
||||||
// TODO
|
|
||||||
});
|
|
||||||
|
|
||||||
// bool enabled
|
|
||||||
test('to test the property `enabled`', () async {
|
|
||||||
// TODO
|
|
||||||
});
|
|
||||||
|
|
||||||
// bool passwordLoginEnabled
|
|
||||||
test('to test the property `passwordLoginEnabled`', () async {
|
|
||||||
// TODO
|
|
||||||
});
|
|
||||||
|
|
||||||
// String url
|
|
||||||
test('to test the property `url`', () async {
|
|
||||||
// TODO
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
@ -1055,58 +1055,6 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/asset/assetById/{id}": {
|
|
||||||
"get": {
|
|
||||||
"deprecated": true,
|
|
||||||
"description": "Get a single asset's information",
|
|
||||||
"operationId": "getAssetById",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"name": "id",
|
|
||||||
"required": true,
|
|
||||||
"in": "path",
|
|
||||||
"schema": {
|
|
||||||
"format": "uuid",
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "key",
|
|
||||||
"required": false,
|
|
||||||
"in": "query",
|
|
||||||
"schema": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/AssetResponseDto"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"description": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"security": [
|
|
||||||
{
|
|
||||||
"bearer": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cookie": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"api_key": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"tags": [
|
|
||||||
"Asset"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/asset/bulk-upload-check": {
|
"/asset/bulk-upload-check": {
|
||||||
"post": {
|
"post": {
|
||||||
"description": "Checks if assets exist by checksums",
|
"description": "Checks if assets exist by checksums",
|
||||||
@ -1265,160 +1213,6 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/asset/download/archive": {
|
|
||||||
"post": {
|
|
||||||
"operationId": "downloadArchiveOld",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"name": "key",
|
|
||||||
"required": false,
|
|
||||||
"in": "query",
|
|
||||||
"schema": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"requestBody": {
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/AssetIdsDto"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"content": {
|
|
||||||
"application/octet-stream": {
|
|
||||||
"schema": {
|
|
||||||
"format": "binary",
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"description": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"security": [
|
|
||||||
{
|
|
||||||
"bearer": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cookie": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"api_key": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"tags": [
|
|
||||||
"Asset"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/asset/download/info": {
|
|
||||||
"post": {
|
|
||||||
"operationId": "getDownloadInfoOld",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"name": "key",
|
|
||||||
"required": false,
|
|
||||||
"in": "query",
|
|
||||||
"schema": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"requestBody": {
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/DownloadInfoDto"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
"responses": {
|
|
||||||
"201": {
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/DownloadResponseDto"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"description": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"security": [
|
|
||||||
{
|
|
||||||
"bearer": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cookie": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"api_key": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"tags": [
|
|
||||||
"Asset"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/asset/download/{id}": {
|
|
||||||
"post": {
|
|
||||||
"operationId": "downloadFileOld",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"name": "id",
|
|
||||||
"required": true,
|
|
||||||
"in": "path",
|
|
||||||
"schema": {
|
|
||||||
"format": "uuid",
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "key",
|
|
||||||
"required": false,
|
|
||||||
"in": "query",
|
|
||||||
"schema": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"content": {
|
|
||||||
"application/octet-stream": {
|
|
||||||
"schema": {
|
|
||||||
"format": "binary",
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"description": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"security": [
|
|
||||||
{
|
|
||||||
"bearer": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cookie": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"api_key": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"tags": [
|
|
||||||
"Asset"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/asset/exist": {
|
"/asset/exist": {
|
||||||
"post": {
|
"post": {
|
||||||
"description": "Checks if multiple assets exist on the server and returns all existing - used by background backup",
|
"description": "Checks if multiple assets exist on the server and returns all existing - used by background backup",
|
||||||
@ -1732,41 +1526,6 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/asset/restore": {
|
|
||||||
"post": {
|
|
||||||
"operationId": "restoreAssetsOld",
|
|
||||||
"parameters": [],
|
|
||||||
"requestBody": {
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/BulkIdsDto"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
"responses": {
|
|
||||||
"204": {
|
|
||||||
"description": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"security": [
|
|
||||||
{
|
|
||||||
"bearer": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cookie": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"api_key": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"tags": [
|
|
||||||
"Asset"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/asset/search-terms": {
|
"/asset/search-terms": {
|
||||||
"get": {
|
"get": {
|
||||||
"operationId": "getAssetSearchTerms",
|
"operationId": "getAssetSearchTerms",
|
||||||
@ -2217,56 +1976,6 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/asset/trash/empty": {
|
|
||||||
"post": {
|
|
||||||
"operationId": "emptyTrashOld",
|
|
||||||
"parameters": [],
|
|
||||||
"responses": {
|
|
||||||
"204": {
|
|
||||||
"description": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"security": [
|
|
||||||
{
|
|
||||||
"bearer": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cookie": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"api_key": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"tags": [
|
|
||||||
"Asset"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/asset/trash/restore": {
|
|
||||||
"post": {
|
|
||||||
"operationId": "restoreTrashOld",
|
|
||||||
"parameters": [],
|
|
||||||
"responses": {
|
|
||||||
"204": {
|
|
||||||
"description": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"security": [
|
|
||||||
{
|
|
||||||
"bearer": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cookie": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"api_key": []
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"tags": [
|
|
||||||
"Asset"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/asset/upload": {
|
"/asset/upload": {
|
||||||
"post": {
|
"post": {
|
||||||
"operationId": "uploadFile",
|
"operationId": "uploadFile",
|
||||||
@ -3935,39 +3644,6 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/oauth/config": {
|
|
||||||
"post": {
|
|
||||||
"deprecated": true,
|
|
||||||
"description": "@deprecated use feature flags and /oauth/authorize",
|
|
||||||
"operationId": "generateOAuthConfig",
|
|
||||||
"parameters": [],
|
|
||||||
"requestBody": {
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/OAuthConfigDto"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
"responses": {
|
|
||||||
"201": {
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/OAuthConfigResponseDto"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"description": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tags": [
|
|
||||||
"OAuth"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/oauth/link": {
|
"/oauth/link": {
|
||||||
"post": {
|
"post": {
|
||||||
"operationId": "linkOAuthAccount",
|
"operationId": "linkOAuthAccount",
|
||||||
@ -8399,30 +8075,6 @@
|
|||||||
],
|
],
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"OAuthConfigResponseDto": {
|
|
||||||
"properties": {
|
|
||||||
"autoLaunch": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"buttonText": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"enabled": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"passwordLoginEnabled": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"url": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"enabled",
|
|
||||||
"passwordLoginEnabled"
|
|
||||||
],
|
|
||||||
"type": "object"
|
|
||||||
},
|
|
||||||
"PartnerResponseDto": {
|
"PartnerResponseDto": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"avatarColor": {
|
"avatarColor": {
|
||||||
|
@ -2383,43 +2383,6 @@ export interface OAuthConfigDto {
|
|||||||
*/
|
*/
|
||||||
'redirectUri': string;
|
'redirectUri': string;
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @export
|
|
||||||
* @interface OAuthConfigResponseDto
|
|
||||||
*/
|
|
||||||
export interface OAuthConfigResponseDto {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof OAuthConfigResponseDto
|
|
||||||
*/
|
|
||||||
'autoLaunch'?: boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OAuthConfigResponseDto
|
|
||||||
*/
|
|
||||||
'buttonText'?: string;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof OAuthConfigResponseDto
|
|
||||||
*/
|
|
||||||
'enabled': boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
* @memberof OAuthConfigResponseDto
|
|
||||||
*/
|
|
||||||
'passwordLoginEnabled': boolean;
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof OAuthConfigResponseDto
|
|
||||||
*/
|
|
||||||
'url'?: string;
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
@ -6981,140 +6944,6 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
|
|||||||
options: localVarRequestOptions,
|
options: localVarRequestOptions,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {AssetIdsDto} assetIdsDto
|
|
||||||
* @param {string} [key]
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
downloadArchiveOld: async (assetIdsDto: AssetIdsDto, key?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
||||||
// verify required parameter 'assetIdsDto' is not null or undefined
|
|
||||||
assertParamExists('downloadArchiveOld', 'assetIdsDto', assetIdsDto)
|
|
||||||
const localVarPath = `/asset/download/archive`;
|
|
||||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
||||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
||||||
let baseOptions;
|
|
||||||
if (configuration) {
|
|
||||||
baseOptions = configuration.baseOptions;
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
||||||
const localVarHeaderParameter = {} as any;
|
|
||||||
const localVarQueryParameter = {} as any;
|
|
||||||
|
|
||||||
// authentication cookie required
|
|
||||||
|
|
||||||
// authentication api_key required
|
|
||||||
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
||||||
|
|
||||||
// authentication bearer required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
if (key !== undefined) {
|
|
||||||
localVarQueryParameter['key'] = key;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
||||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
||||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
||||||
localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
|
|
||||||
|
|
||||||
return {
|
|
||||||
url: toPathString(localVarUrlObj),
|
|
||||||
options: localVarRequestOptions,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {string} id
|
|
||||||
* @param {string} [key]
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
downloadFileOld: async (id: string, key?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
||||||
// verify required parameter 'id' is not null or undefined
|
|
||||||
assertParamExists('downloadFileOld', 'id', id)
|
|
||||||
const localVarPath = `/asset/download/{id}`
|
|
||||||
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
||||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
||||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
||||||
let baseOptions;
|
|
||||||
if (configuration) {
|
|
||||||
baseOptions = configuration.baseOptions;
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
||||||
const localVarHeaderParameter = {} as any;
|
|
||||||
const localVarQueryParameter = {} as any;
|
|
||||||
|
|
||||||
// authentication cookie required
|
|
||||||
|
|
||||||
// authentication api_key required
|
|
||||||
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
||||||
|
|
||||||
// authentication bearer required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
if (key !== undefined) {
|
|
||||||
localVarQueryParameter['key'] = key;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
||||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
||||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
||||||
|
|
||||||
return {
|
|
||||||
url: toPathString(localVarUrlObj),
|
|
||||||
options: localVarRequestOptions,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
emptyTrashOld: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
||||||
const localVarPath = `/asset/trash/empty`;
|
|
||||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
||||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
||||||
let baseOptions;
|
|
||||||
if (configuration) {
|
|
||||||
baseOptions = configuration.baseOptions;
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
||||||
const localVarHeaderParameter = {} as any;
|
|
||||||
const localVarQueryParameter = {} as any;
|
|
||||||
|
|
||||||
// authentication cookie required
|
|
||||||
|
|
||||||
// authentication api_key required
|
|
||||||
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
||||||
|
|
||||||
// authentication bearer required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
||||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
||||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
||||||
|
|
||||||
return {
|
|
||||||
url: toPathString(localVarUrlObj),
|
|
||||||
options: localVarRequestOptions,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
/**
|
/**
|
||||||
* Get all AssetEntity belong to the user
|
* Get all AssetEntity belong to the user
|
||||||
* @param {string} [ifNoneMatch] ETag of data already cached on the client
|
* @param {string} [ifNoneMatch] ETag of data already cached on the client
|
||||||
@ -7230,54 +7059,6 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
||||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
||||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
||||||
|
|
||||||
return {
|
|
||||||
url: toPathString(localVarUrlObj),
|
|
||||||
options: localVarRequestOptions,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* Get a single asset\'s information
|
|
||||||
* @param {string} id
|
|
||||||
* @param {string} [key]
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @deprecated
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
getAssetById: async (id: string, key?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
||||||
// verify required parameter 'id' is not null or undefined
|
|
||||||
assertParamExists('getAssetById', 'id', id)
|
|
||||||
const localVarPath = `/asset/assetById/{id}`
|
|
||||||
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
||||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
||||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
||||||
let baseOptions;
|
|
||||||
if (configuration) {
|
|
||||||
baseOptions = configuration.baseOptions;
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
||||||
const localVarHeaderParameter = {} as any;
|
|
||||||
const localVarQueryParameter = {} as any;
|
|
||||||
|
|
||||||
// authentication cookie required
|
|
||||||
|
|
||||||
// authentication api_key required
|
|
||||||
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
||||||
|
|
||||||
// authentication bearer required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
if (key !== undefined) {
|
|
||||||
localVarQueryParameter['key'] = key;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||||
@ -7553,55 +7334,6 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
|
|||||||
options: localVarRequestOptions,
|
options: localVarRequestOptions,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {DownloadInfoDto} downloadInfoDto
|
|
||||||
* @param {string} [key]
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
getDownloadInfoOld: async (downloadInfoDto: DownloadInfoDto, key?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
||||||
// verify required parameter 'downloadInfoDto' is not null or undefined
|
|
||||||
assertParamExists('getDownloadInfoOld', 'downloadInfoDto', downloadInfoDto)
|
|
||||||
const localVarPath = `/asset/download/info`;
|
|
||||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
||||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
||||||
let baseOptions;
|
|
||||||
if (configuration) {
|
|
||||||
baseOptions = configuration.baseOptions;
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
||||||
const localVarHeaderParameter = {} as any;
|
|
||||||
const localVarQueryParameter = {} as any;
|
|
||||||
|
|
||||||
// authentication cookie required
|
|
||||||
|
|
||||||
// authentication api_key required
|
|
||||||
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
||||||
|
|
||||||
// authentication bearer required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
if (key !== undefined) {
|
|
||||||
localVarQueryParameter['key'] = key;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
||||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
||||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
||||||
localVarRequestOptions.data = serializeDataIfNeeded(downloadInfoDto, localVarRequestOptions, configuration)
|
|
||||||
|
|
||||||
return {
|
|
||||||
url: toPathString(localVarUrlObj),
|
|
||||||
options: localVarRequestOptions,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {string} [fileCreatedAfter]
|
* @param {string} [fileCreatedAfter]
|
||||||
@ -7937,88 +7669,6 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
||||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
||||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
||||||
|
|
||||||
return {
|
|
||||||
url: toPathString(localVarUrlObj),
|
|
||||||
options: localVarRequestOptions,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {BulkIdsDto} bulkIdsDto
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
restoreAssetsOld: async (bulkIdsDto: BulkIdsDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
||||||
// verify required parameter 'bulkIdsDto' is not null or undefined
|
|
||||||
assertParamExists('restoreAssetsOld', 'bulkIdsDto', bulkIdsDto)
|
|
||||||
const localVarPath = `/asset/restore`;
|
|
||||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
||||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
||||||
let baseOptions;
|
|
||||||
if (configuration) {
|
|
||||||
baseOptions = configuration.baseOptions;
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
||||||
const localVarHeaderParameter = {} as any;
|
|
||||||
const localVarQueryParameter = {} as any;
|
|
||||||
|
|
||||||
// authentication cookie required
|
|
||||||
|
|
||||||
// authentication api_key required
|
|
||||||
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
||||||
|
|
||||||
// authentication bearer required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
||||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
||||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
||||||
localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
|
|
||||||
|
|
||||||
return {
|
|
||||||
url: toPathString(localVarUrlObj),
|
|
||||||
options: localVarRequestOptions,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
restoreTrashOld: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
||||||
const localVarPath = `/asset/trash/restore`;
|
|
||||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
||||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
||||||
let baseOptions;
|
|
||||||
if (configuration) {
|
|
||||||
baseOptions = configuration.baseOptions;
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
||||||
const localVarHeaderParameter = {} as any;
|
|
||||||
const localVarQueryParameter = {} as any;
|
|
||||||
|
|
||||||
// authentication cookie required
|
|
||||||
|
|
||||||
// authentication api_key required
|
|
||||||
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
||||||
|
|
||||||
// authentication bearer required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||||
@ -8697,43 +8347,6 @@ export const AssetApiFp = function(configuration?: Configuration) {
|
|||||||
const operationBasePath = operationServerMap['AssetApi.deleteAssets']?.[index]?.url;
|
const operationBasePath = operationServerMap['AssetApi.deleteAssets']?.[index]?.url;
|
||||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {AssetIdsDto} assetIdsDto
|
|
||||||
* @param {string} [key]
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
async downloadArchiveOld(assetIdsDto: AssetIdsDto, key?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
|
|
||||||
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchiveOld(assetIdsDto, key, options);
|
|
||||||
const index = configuration?.serverIndex ?? 0;
|
|
||||||
const operationBasePath = operationServerMap['AssetApi.downloadArchiveOld']?.[index]?.url;
|
|
||||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {string} id
|
|
||||||
* @param {string} [key]
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
async downloadFileOld(id: string, key?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
|
|
||||||
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFileOld(id, key, options);
|
|
||||||
const index = configuration?.serverIndex ?? 0;
|
|
||||||
const operationBasePath = operationServerMap['AssetApi.downloadFileOld']?.[index]?.url;
|
|
||||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
async emptyTrashOld(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
||||||
const localVarAxiosArgs = await localVarAxiosParamCreator.emptyTrashOld(options);
|
|
||||||
const index = configuration?.serverIndex ?? 0;
|
|
||||||
const operationBasePath = operationServerMap['AssetApi.emptyTrashOld']?.[index]?.url;
|
|
||||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
||||||
},
|
|
||||||
/**
|
/**
|
||||||
* Get all AssetEntity belong to the user
|
* Get all AssetEntity belong to the user
|
||||||
* @param {string} [ifNoneMatch] ETag of data already cached on the client
|
* @param {string} [ifNoneMatch] ETag of data already cached on the client
|
||||||
@ -8765,20 +8378,6 @@ export const AssetApiFp = function(configuration?: Configuration) {
|
|||||||
const operationBasePath = operationServerMap['AssetApi.getAllUserAssetsByDeviceId']?.[index]?.url;
|
const operationBasePath = operationServerMap['AssetApi.getAllUserAssetsByDeviceId']?.[index]?.url;
|
||||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
* Get a single asset\'s information
|
|
||||||
* @param {string} id
|
|
||||||
* @param {string} [key]
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @deprecated
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
async getAssetById(id: string, key?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
|
|
||||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(id, key, options);
|
|
||||||
const index = configuration?.serverIndex ?? 0;
|
|
||||||
const operationBasePath = operationServerMap['AssetApi.getAssetById']?.[index]?.url;
|
|
||||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
||||||
},
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {string} id
|
* @param {string} id
|
||||||
@ -8853,19 +8452,6 @@ export const AssetApiFp = function(configuration?: Configuration) {
|
|||||||
const operationBasePath = operationServerMap['AssetApi.getCuratedObjects']?.[index]?.url;
|
const operationBasePath = operationServerMap['AssetApi.getCuratedObjects']?.[index]?.url;
|
||||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {DownloadInfoDto} downloadInfoDto
|
|
||||||
* @param {string} [key]
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
async getDownloadInfoOld(downloadInfoDto: DownloadInfoDto, key?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadResponseDto>> {
|
|
||||||
const localVarAxiosArgs = await localVarAxiosParamCreator.getDownloadInfoOld(downloadInfoDto, key, options);
|
|
||||||
const index = configuration?.serverIndex ?? 0;
|
|
||||||
const operationBasePath = operationServerMap['AssetApi.getDownloadInfoOld']?.[index]?.url;
|
|
||||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
||||||
},
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {string} [fileCreatedAfter]
|
* @param {string} [fileCreatedAfter]
|
||||||
@ -8949,29 +8535,6 @@ export const AssetApiFp = function(configuration?: Configuration) {
|
|||||||
const operationBasePath = operationServerMap['AssetApi.getTimeBuckets']?.[index]?.url;
|
const operationBasePath = operationServerMap['AssetApi.getTimeBuckets']?.[index]?.url;
|
||||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {BulkIdsDto} bulkIdsDto
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
async restoreAssetsOld(bulkIdsDto: BulkIdsDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
||||||
const localVarAxiosArgs = await localVarAxiosParamCreator.restoreAssetsOld(bulkIdsDto, options);
|
|
||||||
const index = configuration?.serverIndex ?? 0;
|
|
||||||
const operationBasePath = operationServerMap['AssetApi.restoreAssetsOld']?.[index]?.url;
|
|
||||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
async restoreTrashOld(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
||||||
const localVarAxiosArgs = await localVarAxiosParamCreator.restoreTrashOld(options);
|
|
||||||
const index = configuration?.serverIndex ?? 0;
|
|
||||||
const operationBasePath = operationServerMap['AssetApi.restoreTrashOld']?.[index]?.url;
|
|
||||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
||||||
},
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {AssetJobsDto} assetJobsDto
|
* @param {AssetJobsDto} assetJobsDto
|
||||||
@ -9151,32 +8714,6 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath
|
|||||||
deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
||||||
return localVarFp.deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(axios, basePath));
|
return localVarFp.deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(axios, basePath));
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {AssetApiDownloadArchiveOldRequest} requestParameters Request parameters.
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
downloadArchiveOld(requestParameters: AssetApiDownloadArchiveOldRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
|
|
||||||
return localVarFp.downloadArchiveOld(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {AssetApiDownloadFileOldRequest} requestParameters Request parameters.
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
downloadFileOld(requestParameters: AssetApiDownloadFileOldRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
|
|
||||||
return localVarFp.downloadFileOld(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
emptyTrashOld(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
||||||
return localVarFp.emptyTrashOld(options).then((request) => request(axios, basePath));
|
|
||||||
},
|
|
||||||
/**
|
/**
|
||||||
* Get all AssetEntity belong to the user
|
* Get all AssetEntity belong to the user
|
||||||
* @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
|
* @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
|
||||||
@ -9195,16 +8732,6 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath
|
|||||||
getAllUserAssetsByDeviceId(requestParameters: AssetApiGetAllUserAssetsByDeviceIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
|
getAllUserAssetsByDeviceId(requestParameters: AssetApiGetAllUserAssetsByDeviceIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
|
||||||
return localVarFp.getAllUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(axios, basePath));
|
return localVarFp.getAllUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(axios, basePath));
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
* Get a single asset\'s information
|
|
||||||
* @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @deprecated
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<AssetResponseDto> {
|
|
||||||
return localVarFp.getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
|
|
||||||
},
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {AssetApiGetAssetInfoRequest} requestParameters Request parameters.
|
* @param {AssetApiGetAssetInfoRequest} requestParameters Request parameters.
|
||||||
@ -9256,15 +8783,6 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath
|
|||||||
getCuratedObjects(options?: RawAxiosRequestConfig): AxiosPromise<Array<CuratedObjectsResponseDto>> {
|
getCuratedObjects(options?: RawAxiosRequestConfig): AxiosPromise<Array<CuratedObjectsResponseDto>> {
|
||||||
return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
|
return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {AssetApiGetDownloadInfoOldRequest} requestParameters Request parameters.
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
getDownloadInfoOld(requestParameters: AssetApiGetDownloadInfoOldRequest, options?: RawAxiosRequestConfig): AxiosPromise<DownloadResponseDto> {
|
|
||||||
return localVarFp.getDownloadInfoOld(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(axios, basePath));
|
|
||||||
},
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
|
* @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
|
||||||
@ -9310,23 +8828,6 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath
|
|||||||
getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<TimeBucketResponseDto>> {
|
getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<TimeBucketResponseDto>> {
|
||||||
return localVarFp.getTimeBuckets(requestParameters.size, requestParameters.albumId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, requestParameters.personId, requestParameters.userId, requestParameters.withPartners, requestParameters.withStacked, options).then((request) => request(axios, basePath));
|
return localVarFp.getTimeBuckets(requestParameters.size, requestParameters.albumId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, requestParameters.personId, requestParameters.userId, requestParameters.withPartners, requestParameters.withStacked, options).then((request) => request(axios, basePath));
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {AssetApiRestoreAssetsOldRequest} requestParameters Request parameters.
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
restoreAssetsOld(requestParameters: AssetApiRestoreAssetsOldRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
||||||
return localVarFp.restoreAssetsOld(requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
restoreTrashOld(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
||||||
return localVarFp.restoreTrashOld(options).then((request) => request(axios, basePath));
|
|
||||||
},
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
|
* @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
|
||||||
@ -9435,48 +8936,6 @@ export interface AssetApiDeleteAssetsRequest {
|
|||||||
readonly assetBulkDeleteDto: AssetBulkDeleteDto
|
readonly assetBulkDeleteDto: AssetBulkDeleteDto
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Request parameters for downloadArchiveOld operation in AssetApi.
|
|
||||||
* @export
|
|
||||||
* @interface AssetApiDownloadArchiveOldRequest
|
|
||||||
*/
|
|
||||||
export interface AssetApiDownloadArchiveOldRequest {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {AssetIdsDto}
|
|
||||||
* @memberof AssetApiDownloadArchiveOld
|
|
||||||
*/
|
|
||||||
readonly assetIdsDto: AssetIdsDto
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof AssetApiDownloadArchiveOld
|
|
||||||
*/
|
|
||||||
readonly key?: string
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Request parameters for downloadFileOld operation in AssetApi.
|
|
||||||
* @export
|
|
||||||
* @interface AssetApiDownloadFileOldRequest
|
|
||||||
*/
|
|
||||||
export interface AssetApiDownloadFileOldRequest {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof AssetApiDownloadFileOld
|
|
||||||
*/
|
|
||||||
readonly id: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof AssetApiDownloadFileOld
|
|
||||||
*/
|
|
||||||
readonly key?: string
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Request parameters for getAllAssets operation in AssetApi.
|
* Request parameters for getAllAssets operation in AssetApi.
|
||||||
* @export
|
* @export
|
||||||
@ -9554,27 +9013,6 @@ export interface AssetApiGetAllUserAssetsByDeviceIdRequest {
|
|||||||
readonly deviceId: string
|
readonly deviceId: string
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Request parameters for getAssetById operation in AssetApi.
|
|
||||||
* @export
|
|
||||||
* @interface AssetApiGetAssetByIdRequest
|
|
||||||
*/
|
|
||||||
export interface AssetApiGetAssetByIdRequest {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof AssetApiGetAssetById
|
|
||||||
*/
|
|
||||||
readonly id: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof AssetApiGetAssetById
|
|
||||||
*/
|
|
||||||
readonly key?: string
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Request parameters for getAssetInfo operation in AssetApi.
|
* Request parameters for getAssetInfo operation in AssetApi.
|
||||||
* @export
|
* @export
|
||||||
@ -9652,27 +9090,6 @@ export interface AssetApiGetAssetThumbnailRequest {
|
|||||||
readonly key?: string
|
readonly key?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Request parameters for getDownloadInfoOld operation in AssetApi.
|
|
||||||
* @export
|
|
||||||
* @interface AssetApiGetDownloadInfoOldRequest
|
|
||||||
*/
|
|
||||||
export interface AssetApiGetDownloadInfoOldRequest {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {DownloadInfoDto}
|
|
||||||
* @memberof AssetApiGetDownloadInfoOld
|
|
||||||
*/
|
|
||||||
readonly downloadInfoDto: DownloadInfoDto
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {string}
|
|
||||||
* @memberof AssetApiGetDownloadInfoOld
|
|
||||||
*/
|
|
||||||
readonly key?: string
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Request parameters for getMapMarkers operation in AssetApi.
|
* Request parameters for getMapMarkers operation in AssetApi.
|
||||||
* @export
|
* @export
|
||||||
@ -9904,20 +9321,6 @@ export interface AssetApiGetTimeBucketsRequest {
|
|||||||
readonly withStacked?: boolean
|
readonly withStacked?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Request parameters for restoreAssetsOld operation in AssetApi.
|
|
||||||
* @export
|
|
||||||
* @interface AssetApiRestoreAssetsOldRequest
|
|
||||||
*/
|
|
||||||
export interface AssetApiRestoreAssetsOldRequest {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {BulkIdsDto}
|
|
||||||
* @memberof AssetApiRestoreAssetsOld
|
|
||||||
*/
|
|
||||||
readonly bulkIdsDto: BulkIdsDto
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Request parameters for runAssetJobs operation in AssetApi.
|
* Request parameters for runAssetJobs operation in AssetApi.
|
||||||
* @export
|
* @export
|
||||||
@ -10462,38 +9865,6 @@ export class AssetApi extends BaseAPI {
|
|||||||
return AssetApiFp(this.configuration).deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(this.axios, this.basePath));
|
return AssetApiFp(this.configuration).deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(this.axios, this.basePath));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {AssetApiDownloadArchiveOldRequest} requestParameters Request parameters.
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
* @memberof AssetApi
|
|
||||||
*/
|
|
||||||
public downloadArchiveOld(requestParameters: AssetApiDownloadArchiveOldRequest, options?: RawAxiosRequestConfig) {
|
|
||||||
return AssetApiFp(this.configuration).downloadArchiveOld(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {AssetApiDownloadFileOldRequest} requestParameters Request parameters.
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
* @memberof AssetApi
|
|
||||||
*/
|
|
||||||
public downloadFileOld(requestParameters: AssetApiDownloadFileOldRequest, options?: RawAxiosRequestConfig) {
|
|
||||||
return AssetApiFp(this.configuration).downloadFileOld(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
* @memberof AssetApi
|
|
||||||
*/
|
|
||||||
public emptyTrashOld(options?: RawAxiosRequestConfig) {
|
|
||||||
return AssetApiFp(this.configuration).emptyTrashOld(options).then((request) => request(this.axios, this.basePath));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all AssetEntity belong to the user
|
* Get all AssetEntity belong to the user
|
||||||
* @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
|
* @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
|
||||||
@ -10516,18 +9887,6 @@ export class AssetApi extends BaseAPI {
|
|||||||
return AssetApiFp(this.configuration).getAllUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(this.axios, this.basePath));
|
return AssetApiFp(this.configuration).getAllUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(this.axios, this.basePath));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a single asset\'s information
|
|
||||||
* @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @deprecated
|
|
||||||
* @throws {RequiredError}
|
|
||||||
* @memberof AssetApi
|
|
||||||
*/
|
|
||||||
public getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: RawAxiosRequestConfig) {
|
|
||||||
return AssetApiFp(this.configuration).getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {AssetApiGetAssetInfoRequest} requestParameters Request parameters.
|
* @param {AssetApiGetAssetInfoRequest} requestParameters Request parameters.
|
||||||
@ -10591,17 +9950,6 @@ export class AssetApi extends BaseAPI {
|
|||||||
return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
|
return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {AssetApiGetDownloadInfoOldRequest} requestParameters Request parameters.
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
* @memberof AssetApi
|
|
||||||
*/
|
|
||||||
public getDownloadInfoOld(requestParameters: AssetApiGetDownloadInfoOldRequest, options?: RawAxiosRequestConfig) {
|
|
||||||
return AssetApiFp(this.configuration).getDownloadInfoOld(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
|
* @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
|
||||||
@ -10657,27 +10005,6 @@ export class AssetApi extends BaseAPI {
|
|||||||
return AssetApiFp(this.configuration).getTimeBuckets(requestParameters.size, requestParameters.albumId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, requestParameters.personId, requestParameters.userId, requestParameters.withPartners, requestParameters.withStacked, options).then((request) => request(this.axios, this.basePath));
|
return AssetApiFp(this.configuration).getTimeBuckets(requestParameters.size, requestParameters.albumId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, requestParameters.key, requestParameters.personId, requestParameters.userId, requestParameters.withPartners, requestParameters.withStacked, options).then((request) => request(this.axios, this.basePath));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {AssetApiRestoreAssetsOldRequest} requestParameters Request parameters.
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
* @memberof AssetApi
|
|
||||||
*/
|
|
||||||
public restoreAssetsOld(requestParameters: AssetApiRestoreAssetsOldRequest, options?: RawAxiosRequestConfig) {
|
|
||||||
return AssetApiFp(this.configuration).restoreAssetsOld(requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @throws {RequiredError}
|
|
||||||
* @memberof AssetApi
|
|
||||||
*/
|
|
||||||
public restoreTrashOld(options?: RawAxiosRequestConfig) {
|
|
||||||
return AssetApiFp(this.configuration).restoreTrashOld(options).then((request) => request(this.axios, this.basePath));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
|
* @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
|
||||||
@ -13391,42 +12718,6 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
|
|||||||
options: localVarRequestOptions,
|
options: localVarRequestOptions,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
* @deprecated use feature flags and /oauth/authorize
|
|
||||||
* @param {OAuthConfigDto} oAuthConfigDto
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @deprecated
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
generateOAuthConfig: async (oAuthConfigDto: OAuthConfigDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
||||||
// verify required parameter 'oAuthConfigDto' is not null or undefined
|
|
||||||
assertParamExists('generateOAuthConfig', 'oAuthConfigDto', oAuthConfigDto)
|
|
||||||
const localVarPath = `/oauth/config`;
|
|
||||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
||||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
||||||
let baseOptions;
|
|
||||||
if (configuration) {
|
|
||||||
baseOptions = configuration.baseOptions;
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
||||||
const localVarHeaderParameter = {} as any;
|
|
||||||
const localVarQueryParameter = {} as any;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
||||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
||||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
||||||
localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
|
|
||||||
|
|
||||||
return {
|
|
||||||
url: toPathString(localVarUrlObj),
|
|
||||||
options: localVarRequestOptions,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {OAuthCallbackDto} oAuthCallbackDto
|
* @param {OAuthCallbackDto} oAuthCallbackDto
|
||||||
@ -13595,19 +12886,6 @@ export const OAuthApiFp = function(configuration?: Configuration) {
|
|||||||
const operationBasePath = operationServerMap['OAuthApi.finishOAuth']?.[index]?.url;
|
const operationBasePath = operationServerMap['OAuthApi.finishOAuth']?.[index]?.url;
|
||||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
* @deprecated use feature flags and /oauth/authorize
|
|
||||||
* @param {OAuthConfigDto} oAuthConfigDto
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @deprecated
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
async generateOAuthConfig(oAuthConfigDto: OAuthConfigDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
|
|
||||||
const localVarAxiosArgs = await localVarAxiosParamCreator.generateOAuthConfig(oAuthConfigDto, options);
|
|
||||||
const index = configuration?.serverIndex ?? 0;
|
|
||||||
const operationBasePath = operationServerMap['OAuthApi.generateOAuthConfig']?.[index]?.url;
|
|
||||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
||||||
},
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {OAuthCallbackDto} oAuthCallbackDto
|
* @param {OAuthCallbackDto} oAuthCallbackDto
|
||||||
@ -13673,16 +12951,6 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
|
|||||||
finishOAuth(requestParameters: OAuthApiFinishOAuthRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponseDto> {
|
finishOAuth(requestParameters: OAuthApiFinishOAuthRequest, options?: RawAxiosRequestConfig): AxiosPromise<LoginResponseDto> {
|
||||||
return localVarFp.finishOAuth(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
|
return localVarFp.finishOAuth(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
|
||||||
},
|
},
|
||||||
/**
|
|
||||||
* @deprecated use feature flags and /oauth/authorize
|
|
||||||
* @param {OAuthApiGenerateOAuthConfigRequest} requestParameters Request parameters.
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @deprecated
|
|
||||||
* @throws {RequiredError}
|
|
||||||
*/
|
|
||||||
generateOAuthConfig(requestParameters: OAuthApiGenerateOAuthConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<OAuthConfigResponseDto> {
|
|
||||||
return localVarFp.generateOAuthConfig(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
|
|
||||||
},
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {OAuthApiLinkOAuthAccountRequest} requestParameters Request parameters.
|
* @param {OAuthApiLinkOAuthAccountRequest} requestParameters Request parameters.
|
||||||
@ -13734,20 +13002,6 @@ export interface OAuthApiFinishOAuthRequest {
|
|||||||
readonly oAuthCallbackDto: OAuthCallbackDto
|
readonly oAuthCallbackDto: OAuthCallbackDto
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Request parameters for generateOAuthConfig operation in OAuthApi.
|
|
||||||
* @export
|
|
||||||
* @interface OAuthApiGenerateOAuthConfigRequest
|
|
||||||
*/
|
|
||||||
export interface OAuthApiGenerateOAuthConfigRequest {
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @type {OAuthConfigDto}
|
|
||||||
* @memberof OAuthApiGenerateOAuthConfig
|
|
||||||
*/
|
|
||||||
readonly oAuthConfigDto: OAuthConfigDto
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Request parameters for linkOAuthAccount operation in OAuthApi.
|
* Request parameters for linkOAuthAccount operation in OAuthApi.
|
||||||
* @export
|
* @export
|
||||||
@ -13794,18 +13048,6 @@ export class OAuthApi extends BaseAPI {
|
|||||||
return OAuthApiFp(this.configuration).finishOAuth(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
|
return OAuthApiFp(this.configuration).finishOAuth(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated use feature flags and /oauth/authorize
|
|
||||||
* @param {OAuthApiGenerateOAuthConfigRequest} requestParameters Request parameters.
|
|
||||||
* @param {*} [options] Override http request option.
|
|
||||||
* @deprecated
|
|
||||||
* @throws {RequiredError}
|
|
||||||
* @memberof OAuthApi
|
|
||||||
*/
|
|
||||||
public generateOAuthConfig(requestParameters: OAuthApiGenerateOAuthConfigRequest, options?: RawAxiosRequestConfig) {
|
|
||||||
return OAuthApiFp(this.configuration).generateOAuthConfig(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param {OAuthApiLinkOAuthAccountRequest} requestParameters Request parameters.
|
* @param {OAuthApiLinkOAuthAccountRequest} requestParameters Request parameters.
|
||||||
|
@ -101,7 +101,6 @@ models/ModelType.ts
|
|||||||
models/OAuthAuthorizeResponseDto.ts
|
models/OAuthAuthorizeResponseDto.ts
|
||||||
models/OAuthCallbackDto.ts
|
models/OAuthCallbackDto.ts
|
||||||
models/OAuthConfigDto.ts
|
models/OAuthConfigDto.ts
|
||||||
models/OAuthConfigResponseDto.ts
|
|
||||||
models/PartnerResponseDto.ts
|
models/PartnerResponseDto.ts
|
||||||
models/PathEntityType.ts
|
models/PathEntityType.ts
|
||||||
models/PathType.ts
|
models/PathType.ts
|
||||||
|
@ -20,19 +20,15 @@ import type {
|
|||||||
AssetBulkUploadCheckDto,
|
AssetBulkUploadCheckDto,
|
||||||
AssetBulkUploadCheckResponseDto,
|
AssetBulkUploadCheckResponseDto,
|
||||||
AssetFileUploadResponseDto,
|
AssetFileUploadResponseDto,
|
||||||
AssetIdsDto,
|
|
||||||
AssetJobsDto,
|
AssetJobsDto,
|
||||||
AssetOrder,
|
AssetOrder,
|
||||||
AssetResponseDto,
|
AssetResponseDto,
|
||||||
AssetStatsResponseDto,
|
AssetStatsResponseDto,
|
||||||
AssetTypeEnum,
|
AssetTypeEnum,
|
||||||
BulkIdsDto,
|
|
||||||
CheckExistingAssetsDto,
|
CheckExistingAssetsDto,
|
||||||
CheckExistingAssetsResponseDto,
|
CheckExistingAssetsResponseDto,
|
||||||
CuratedLocationsResponseDto,
|
CuratedLocationsResponseDto,
|
||||||
CuratedObjectsResponseDto,
|
CuratedObjectsResponseDto,
|
||||||
DownloadInfoDto,
|
|
||||||
DownloadResponseDto,
|
|
||||||
MapMarkerResponseDto,
|
MapMarkerResponseDto,
|
||||||
MemoryLaneResponseDto,
|
MemoryLaneResponseDto,
|
||||||
ThumbnailFormat,
|
ThumbnailFormat,
|
||||||
@ -52,8 +48,6 @@ import {
|
|||||||
AssetBulkUploadCheckResponseDtoToJSON,
|
AssetBulkUploadCheckResponseDtoToJSON,
|
||||||
AssetFileUploadResponseDtoFromJSON,
|
AssetFileUploadResponseDtoFromJSON,
|
||||||
AssetFileUploadResponseDtoToJSON,
|
AssetFileUploadResponseDtoToJSON,
|
||||||
AssetIdsDtoFromJSON,
|
|
||||||
AssetIdsDtoToJSON,
|
|
||||||
AssetJobsDtoFromJSON,
|
AssetJobsDtoFromJSON,
|
||||||
AssetJobsDtoToJSON,
|
AssetJobsDtoToJSON,
|
||||||
AssetOrderFromJSON,
|
AssetOrderFromJSON,
|
||||||
@ -64,8 +58,6 @@ import {
|
|||||||
AssetStatsResponseDtoToJSON,
|
AssetStatsResponseDtoToJSON,
|
||||||
AssetTypeEnumFromJSON,
|
AssetTypeEnumFromJSON,
|
||||||
AssetTypeEnumToJSON,
|
AssetTypeEnumToJSON,
|
||||||
BulkIdsDtoFromJSON,
|
|
||||||
BulkIdsDtoToJSON,
|
|
||||||
CheckExistingAssetsDtoFromJSON,
|
CheckExistingAssetsDtoFromJSON,
|
||||||
CheckExistingAssetsDtoToJSON,
|
CheckExistingAssetsDtoToJSON,
|
||||||
CheckExistingAssetsResponseDtoFromJSON,
|
CheckExistingAssetsResponseDtoFromJSON,
|
||||||
@ -74,10 +66,6 @@ import {
|
|||||||
CuratedLocationsResponseDtoToJSON,
|
CuratedLocationsResponseDtoToJSON,
|
||||||
CuratedObjectsResponseDtoFromJSON,
|
CuratedObjectsResponseDtoFromJSON,
|
||||||
CuratedObjectsResponseDtoToJSON,
|
CuratedObjectsResponseDtoToJSON,
|
||||||
DownloadInfoDtoFromJSON,
|
|
||||||
DownloadInfoDtoToJSON,
|
|
||||||
DownloadResponseDtoFromJSON,
|
|
||||||
DownloadResponseDtoToJSON,
|
|
||||||
MapMarkerResponseDtoFromJSON,
|
MapMarkerResponseDtoFromJSON,
|
||||||
MapMarkerResponseDtoToJSON,
|
MapMarkerResponseDtoToJSON,
|
||||||
MemoryLaneResponseDtoFromJSON,
|
MemoryLaneResponseDtoFromJSON,
|
||||||
@ -106,16 +94,6 @@ export interface DeleteAssetsRequest {
|
|||||||
assetBulkDeleteDto: AssetBulkDeleteDto;
|
assetBulkDeleteDto: AssetBulkDeleteDto;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DownloadArchiveOldRequest {
|
|
||||||
assetIdsDto: AssetIdsDto;
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface DownloadFileOldRequest {
|
|
||||||
id: string;
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface GetAllAssetsRequest {
|
export interface GetAllAssetsRequest {
|
||||||
ifNoneMatch?: string;
|
ifNoneMatch?: string;
|
||||||
isArchived?: boolean;
|
isArchived?: boolean;
|
||||||
@ -131,11 +109,6 @@ export interface GetAllUserAssetsByDeviceIdRequest {
|
|||||||
deviceId: string;
|
deviceId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GetAssetByIdRequest {
|
|
||||||
id: string;
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface GetAssetInfoRequest {
|
export interface GetAssetInfoRequest {
|
||||||
id: string;
|
id: string;
|
||||||
key?: string;
|
key?: string;
|
||||||
@ -153,11 +126,6 @@ export interface GetAssetThumbnailRequest {
|
|||||||
key?: string;
|
key?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GetDownloadInfoOldRequest {
|
|
||||||
downloadInfoDto: DownloadInfoDto;
|
|
||||||
key?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface GetMapMarkersRequest {
|
export interface GetMapMarkersRequest {
|
||||||
fileCreatedAfter?: Date;
|
fileCreatedAfter?: Date;
|
||||||
fileCreatedBefore?: Date;
|
fileCreatedBefore?: Date;
|
||||||
@ -201,10 +169,6 @@ export interface GetTimeBucketsRequest {
|
|||||||
withStacked?: boolean;
|
withStacked?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RestoreAssetsOldRequest {
|
|
||||||
bulkIdsDto: BulkIdsDto;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface RunAssetJobsRequest {
|
export interface RunAssetJobsRequest {
|
||||||
assetJobsDto: AssetJobsDto;
|
assetJobsDto: AssetJobsDto;
|
||||||
}
|
}
|
||||||
@ -428,132 +392,6 @@ export class AssetApi extends runtime.BaseAPI {
|
|||||||
await this.deleteAssetsRaw(requestParameters, initOverrides);
|
await this.deleteAssetsRaw(requestParameters, initOverrides);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
async downloadArchiveOldRaw(requestParameters: DownloadArchiveOldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
||||||
if (requestParameters.assetIdsDto === null || requestParameters.assetIdsDto === undefined) {
|
|
||||||
throw new runtime.RequiredError('assetIdsDto','Required parameter requestParameters.assetIdsDto was null or undefined when calling downloadArchiveOld.');
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
if (requestParameters.key !== undefined) {
|
|
||||||
queryParameters['key'] = requestParameters.key;
|
|
||||||
}
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
if (this.configuration && this.configuration.apiKey) {
|
|
||||||
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.configuration && this.configuration.accessToken) {
|
|
||||||
const token = this.configuration.accessToken;
|
|
||||||
const tokenString = await token("bearer", []);
|
|
||||||
|
|
||||||
if (tokenString) {
|
|
||||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/asset/download/archive`,
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: AssetIdsDtoToJSON(requestParameters.assetIdsDto),
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.BlobApiResponse(response);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
async downloadArchiveOld(requestParameters: DownloadArchiveOldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
||||||
const response = await this.downloadArchiveOldRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
async downloadFileOldRaw(requestParameters: DownloadFileOldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
||||||
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
||||||
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling downloadFileOld.');
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
if (requestParameters.key !== undefined) {
|
|
||||||
queryParameters['key'] = requestParameters.key;
|
|
||||||
}
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
if (this.configuration && this.configuration.apiKey) {
|
|
||||||
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.configuration && this.configuration.accessToken) {
|
|
||||||
const token = this.configuration.accessToken;
|
|
||||||
const tokenString = await token("bearer", []);
|
|
||||||
|
|
||||||
if (tokenString) {
|
|
||||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/asset/download/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.BlobApiResponse(response);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
async downloadFileOld(requestParameters: DownloadFileOldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
||||||
const response = await this.downloadFileOldRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
async emptyTrashOldRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
if (this.configuration && this.configuration.apiKey) {
|
|
||||||
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.configuration && this.configuration.accessToken) {
|
|
||||||
const token = this.configuration.accessToken;
|
|
||||||
const tokenString = await token("bearer", []);
|
|
||||||
|
|
||||||
if (tokenString) {
|
|
||||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/asset/trash/empty`,
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.VoidApiResponse(response);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
async emptyTrashOld(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
||||||
await this.emptyTrashOldRaw(initOverrides);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all AssetEntity belong to the user
|
* Get all AssetEntity belong to the user
|
||||||
*/
|
*/
|
||||||
@ -666,54 +504,6 @@ export class AssetApi extends runtime.BaseAPI {
|
|||||||
return await response.value();
|
return await response.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a single asset\'s information
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
async getAssetByIdRaw(requestParameters: GetAssetByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetResponseDto>> {
|
|
||||||
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
||||||
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getAssetById.');
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
if (requestParameters.key !== undefined) {
|
|
||||||
queryParameters['key'] = requestParameters.key;
|
|
||||||
}
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
if (this.configuration && this.configuration.apiKey) {
|
|
||||||
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.configuration && this.configuration.accessToken) {
|
|
||||||
const token = this.configuration.accessToken;
|
|
||||||
const tokenString = await token("bearer", []);
|
|
||||||
|
|
||||||
if (tokenString) {
|
|
||||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/asset/assetById/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
||||||
method: 'GET',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.JSONApiResponse(response, (jsonValue) => AssetResponseDtoFromJSON(jsonValue));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a single asset\'s information
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
async getAssetById(requestParameters: GetAssetByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssetResponseDto> {
|
|
||||||
const response = await this.getAssetByIdRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
async getAssetInfoRaw(requestParameters: GetAssetInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetResponseDto>> {
|
async getAssetInfoRaw(requestParameters: GetAssetInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssetResponseDto>> {
|
||||||
@ -962,53 +752,6 @@ export class AssetApi extends runtime.BaseAPI {
|
|||||||
return await response.value();
|
return await response.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
async getDownloadInfoOldRaw(requestParameters: GetDownloadInfoOldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DownloadResponseDto>> {
|
|
||||||
if (requestParameters.downloadInfoDto === null || requestParameters.downloadInfoDto === undefined) {
|
|
||||||
throw new runtime.RequiredError('downloadInfoDto','Required parameter requestParameters.downloadInfoDto was null or undefined when calling getDownloadInfoOld.');
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
if (requestParameters.key !== undefined) {
|
|
||||||
queryParameters['key'] = requestParameters.key;
|
|
||||||
}
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
if (this.configuration && this.configuration.apiKey) {
|
|
||||||
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.configuration && this.configuration.accessToken) {
|
|
||||||
const token = this.configuration.accessToken;
|
|
||||||
const tokenString = await token("bearer", []);
|
|
||||||
|
|
||||||
if (tokenString) {
|
|
||||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/asset/download/info`,
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: DownloadInfoDtoToJSON(requestParameters.downloadInfoDto),
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.JSONApiResponse(response, (jsonValue) => DownloadResponseDtoFromJSON(jsonValue));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
async getDownloadInfoOld(requestParameters: GetDownloadInfoOldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DownloadResponseDto> {
|
|
||||||
const response = await this.getDownloadInfoOldRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
async getMapMarkersRaw(requestParameters: GetMapMarkersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MapMarkerResponseDto>>> {
|
async getMapMarkersRaw(requestParameters: GetMapMarkersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MapMarkerResponseDto>>> {
|
||||||
@ -1321,83 +1064,6 @@ export class AssetApi extends runtime.BaseAPI {
|
|||||||
return await response.value();
|
return await response.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
async restoreAssetsOldRaw(requestParameters: RestoreAssetsOldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
||||||
if (requestParameters.bulkIdsDto === null || requestParameters.bulkIdsDto === undefined) {
|
|
||||||
throw new runtime.RequiredError('bulkIdsDto','Required parameter requestParameters.bulkIdsDto was null or undefined when calling restoreAssetsOld.');
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
if (this.configuration && this.configuration.apiKey) {
|
|
||||||
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.configuration && this.configuration.accessToken) {
|
|
||||||
const token = this.configuration.accessToken;
|
|
||||||
const tokenString = await token("bearer", []);
|
|
||||||
|
|
||||||
if (tokenString) {
|
|
||||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/asset/restore`,
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: BulkIdsDtoToJSON(requestParameters.bulkIdsDto),
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.VoidApiResponse(response);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
async restoreAssetsOld(requestParameters: RestoreAssetsOldRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
||||||
await this.restoreAssetsOldRaw(requestParameters, initOverrides);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
async restoreTrashOldRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
if (this.configuration && this.configuration.apiKey) {
|
|
||||||
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // api_key authentication
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.configuration && this.configuration.accessToken) {
|
|
||||||
const token = this.configuration.accessToken;
|
|
||||||
const tokenString = await token("bearer", []);
|
|
||||||
|
|
||||||
if (tokenString) {
|
|
||||||
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/asset/trash/restore`,
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.VoidApiResponse(response);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
async restoreTrashOld(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
||||||
await this.restoreTrashOldRaw(initOverrides);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
async runAssetJobsRaw(requestParameters: RunAssetJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
async runAssetJobsRaw(requestParameters: RunAssetJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||||
|
@ -19,7 +19,6 @@ import type {
|
|||||||
OAuthAuthorizeResponseDto,
|
OAuthAuthorizeResponseDto,
|
||||||
OAuthCallbackDto,
|
OAuthCallbackDto,
|
||||||
OAuthConfigDto,
|
OAuthConfigDto,
|
||||||
OAuthConfigResponseDto,
|
|
||||||
UserResponseDto,
|
UserResponseDto,
|
||||||
} from '../models/index';
|
} from '../models/index';
|
||||||
import {
|
import {
|
||||||
@ -31,8 +30,6 @@ import {
|
|||||||
OAuthCallbackDtoToJSON,
|
OAuthCallbackDtoToJSON,
|
||||||
OAuthConfigDtoFromJSON,
|
OAuthConfigDtoFromJSON,
|
||||||
OAuthConfigDtoToJSON,
|
OAuthConfigDtoToJSON,
|
||||||
OAuthConfigResponseDtoFromJSON,
|
|
||||||
OAuthConfigResponseDtoToJSON,
|
|
||||||
UserResponseDtoFromJSON,
|
UserResponseDtoFromJSON,
|
||||||
UserResponseDtoToJSON,
|
UserResponseDtoToJSON,
|
||||||
} from '../models/index';
|
} from '../models/index';
|
||||||
@ -41,10 +38,6 @@ export interface FinishOAuthRequest {
|
|||||||
oAuthCallbackDto: OAuthCallbackDto;
|
oAuthCallbackDto: OAuthCallbackDto;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GenerateOAuthConfigRequest {
|
|
||||||
oAuthConfigDto: OAuthConfigDto;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface LinkOAuthAccountRequest {
|
export interface LinkOAuthAccountRequest {
|
||||||
oAuthCallbackDto: OAuthCallbackDto;
|
oAuthCallbackDto: OAuthCallbackDto;
|
||||||
}
|
}
|
||||||
@ -89,41 +82,6 @@ export class OAuthApi extends runtime.BaseAPI {
|
|||||||
return await response.value();
|
return await response.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated use feature flags and /oauth/authorize
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
async generateOAuthConfigRaw(requestParameters: GenerateOAuthConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OAuthConfigResponseDto>> {
|
|
||||||
if (requestParameters.oAuthConfigDto === null || requestParameters.oAuthConfigDto === undefined) {
|
|
||||||
throw new runtime.RequiredError('oAuthConfigDto','Required parameter requestParameters.oAuthConfigDto was null or undefined when calling generateOAuthConfig.');
|
|
||||||
}
|
|
||||||
|
|
||||||
const queryParameters: any = {};
|
|
||||||
|
|
||||||
const headerParameters: runtime.HTTPHeaders = {};
|
|
||||||
|
|
||||||
headerParameters['Content-Type'] = 'application/json';
|
|
||||||
|
|
||||||
const response = await this.request({
|
|
||||||
path: `/oauth/config`,
|
|
||||||
method: 'POST',
|
|
||||||
headers: headerParameters,
|
|
||||||
query: queryParameters,
|
|
||||||
body: OAuthConfigDtoToJSON(requestParameters.oAuthConfigDto),
|
|
||||||
}, initOverrides);
|
|
||||||
|
|
||||||
return new runtime.JSONApiResponse(response, (jsonValue) => OAuthConfigResponseDtoFromJSON(jsonValue));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated use feature flags and /oauth/authorize
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
async generateOAuthConfig(requestParameters: GenerateOAuthConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OAuthConfigResponseDto> {
|
|
||||||
const response = await this.generateOAuthConfigRaw(requestParameters, initOverrides);
|
|
||||||
return await response.value();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
async linkOAuthAccountRaw(requestParameters: LinkOAuthAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponseDto>> {
|
async linkOAuthAccountRaw(requestParameters: LinkOAuthAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResponseDto>> {
|
||||||
|
@ -81,7 +81,6 @@ export * from './ModelType';
|
|||||||
export * from './OAuthAuthorizeResponseDto';
|
export * from './OAuthAuthorizeResponseDto';
|
||||||
export * from './OAuthCallbackDto';
|
export * from './OAuthCallbackDto';
|
||||||
export * from './OAuthConfigDto';
|
export * from './OAuthConfigDto';
|
||||||
export * from './OAuthConfigResponseDto';
|
|
||||||
export * from './PartnerResponseDto';
|
export * from './PartnerResponseDto';
|
||||||
export * from './PathEntityType';
|
export * from './PathEntityType';
|
||||||
export * from './PathType';
|
export * from './PathType';
|
||||||
|
@ -14,7 +14,7 @@ import { AssetEntity, AssetStackEntity, AssetType, SharedLinkType } from '@app/i
|
|||||||
import { AssetRepository } from '@app/infra/repositories';
|
import { AssetRepository } from '@app/infra/repositories';
|
||||||
import { INestApplication } from '@nestjs/common';
|
import { INestApplication } from '@nestjs/common';
|
||||||
import { errorStub, userDto, uuidStub } from '@test/fixtures';
|
import { errorStub, userDto, uuidStub } from '@test/fixtures';
|
||||||
import { randomBytes } from 'crypto';
|
import { randomBytes } from 'node:crypto';
|
||||||
import request from 'supertest';
|
import request from 'supertest';
|
||||||
import { api } from '../../client';
|
import { api } from '../../client';
|
||||||
import { generateAsset, testApp, today, yesterday } from '../utils';
|
import { generateAsset, testApp, today, yesterday } from '../utils';
|
||||||
@ -517,91 +517,6 @@ describe(`${AssetController.name} (e2e)`, () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO remove with deprecated endpoint
|
|
||||||
describe('GET /asset/assetById/:id', () => {
|
|
||||||
it('should require authentication', async () => {
|
|
||||||
const { status, body } = await request(server).get(`/asset/assetById/${uuidStub.notFound}`);
|
|
||||||
expect(body).toEqual(errorStub.unauthorized);
|
|
||||||
expect(status).toBe(401);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should require a valid id', async () => {
|
|
||||||
const { status, body } = await request(server)
|
|
||||||
.get(`/asset/assetById/${uuidStub.invalid}`)
|
|
||||||
.set('Authorization', `Bearer ${user1.accessToken}`);
|
|
||||||
expect(status).toBe(400);
|
|
||||||
expect(body).toEqual(errorStub.badRequest(['id must be a UUID']));
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should require access', async () => {
|
|
||||||
const { status, body } = await request(server)
|
|
||||||
.get(`/asset/assetById/${asset4.id}`)
|
|
||||||
.set('Authorization', `Bearer ${user1.accessToken}`);
|
|
||||||
expect(status).toBe(400);
|
|
||||||
expect(body).toEqual(errorStub.noPermission);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should get the asset info', async () => {
|
|
||||||
const { status, body } = await request(server)
|
|
||||||
.get(`/asset/assetById/${asset1.id}`)
|
|
||||||
.set('Authorization', `Bearer ${user1.accessToken}`);
|
|
||||||
expect(status).toBe(200);
|
|
||||||
expect(body).toMatchObject({ id: asset1.id });
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should work with a shared link', async () => {
|
|
||||||
const sharedLink = await api.sharedLinkApi.create(server, user1.accessToken, {
|
|
||||||
type: SharedLinkType.INDIVIDUAL,
|
|
||||||
assetIds: [asset1.id],
|
|
||||||
});
|
|
||||||
|
|
||||||
const { status, body } = await request(server).get(`/asset/assetById/${asset1.id}?key=${sharedLink.key}`);
|
|
||||||
expect(status).toBe(200);
|
|
||||||
expect(body).toMatchObject({ id: asset1.id });
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should not send people data for shared links for un-authenticated users', async () => {
|
|
||||||
const personRepository = app.get<IPersonRepository>(IPersonRepository);
|
|
||||||
const person = await personRepository.create({ ownerId: asset1.ownerId, name: 'Test Person' });
|
|
||||||
|
|
||||||
await personRepository.createFaces([
|
|
||||||
{
|
|
||||||
assetId: asset1.id,
|
|
||||||
personId: person.id,
|
|
||||||
embedding: Array.from({ length: 512 }, Math.random),
|
|
||||||
},
|
|
||||||
]);
|
|
||||||
|
|
||||||
const { status, body } = await request(server)
|
|
||||||
.put(`/asset/${asset1.id}`)
|
|
||||||
.set('Authorization', `Bearer ${user1.accessToken}`)
|
|
||||||
.send({ isFavorite: true });
|
|
||||||
expect(status).toEqual(200);
|
|
||||||
expect(body).toMatchObject({
|
|
||||||
id: asset1.id,
|
|
||||||
isFavorite: true,
|
|
||||||
people: [
|
|
||||||
{
|
|
||||||
birthDate: null,
|
|
||||||
id: expect.any(String),
|
|
||||||
isHidden: false,
|
|
||||||
name: 'Test Person',
|
|
||||||
thumbnailPath: '',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
});
|
|
||||||
|
|
||||||
const sharedLink = await api.sharedLinkApi.create(server, user1.accessToken, {
|
|
||||||
type: SharedLinkType.INDIVIDUAL,
|
|
||||||
assetIds: [asset1.id],
|
|
||||||
});
|
|
||||||
|
|
||||||
const data = await request(server).get(`/asset/assetById/${asset1.id}?key=${sharedLink.key}`);
|
|
||||||
expect(data.status).toBe(200);
|
|
||||||
expect(data.body).toMatchObject({ people: [] });
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('GET /asset/:id', () => {
|
describe('GET /asset/:id', () => {
|
||||||
it('should require authentication', async () => {
|
it('should require authentication', async () => {
|
||||||
const { status, body } = await request(server).get(`/asset/${uuidStub.notFound}`);
|
const { status, body } = await request(server).get(`/asset/${uuidStub.notFound}`);
|
||||||
@ -643,6 +558,47 @@ describe(`${AssetController.name} (e2e)`, () => {
|
|||||||
expect(status).toBe(200);
|
expect(status).toBe(200);
|
||||||
expect(body).toMatchObject({ id: asset1.id });
|
expect(body).toMatchObject({ id: asset1.id });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('should not send people data for shared links for un-authenticated users', async () => {
|
||||||
|
const personRepository = app.get<IPersonRepository>(IPersonRepository);
|
||||||
|
const person = await personRepository.create({ ownerId: asset1.ownerId, name: 'Test Person' });
|
||||||
|
|
||||||
|
await personRepository.createFaces([
|
||||||
|
{
|
||||||
|
assetId: asset1.id,
|
||||||
|
personId: person.id,
|
||||||
|
embedding: Array.from({ length: 512 }, Math.random),
|
||||||
|
},
|
||||||
|
]);
|
||||||
|
|
||||||
|
const { status, body } = await request(server)
|
||||||
|
.put(`/asset/${asset1.id}`)
|
||||||
|
.set('Authorization', `Bearer ${user1.accessToken}`)
|
||||||
|
.send({ isFavorite: true });
|
||||||
|
expect(status).toEqual(200);
|
||||||
|
expect(body).toMatchObject({
|
||||||
|
id: asset1.id,
|
||||||
|
isFavorite: true,
|
||||||
|
people: [
|
||||||
|
{
|
||||||
|
birthDate: null,
|
||||||
|
id: expect.any(String),
|
||||||
|
isHidden: false,
|
||||||
|
name: 'Test Person',
|
||||||
|
thumbnailPath: '',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
|
|
||||||
|
const sharedLink = await api.sharedLinkApi.create(server, user1.accessToken, {
|
||||||
|
type: SharedLinkType.INDIVIDUAL,
|
||||||
|
assetIds: [asset1.id],
|
||||||
|
});
|
||||||
|
|
||||||
|
const data = await request(server).get(`/asset/${asset1.id}?key=${sharedLink.key}`);
|
||||||
|
expect(data.status).toBe(200);
|
||||||
|
expect(data.body).toMatchObject({ people: [] });
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('POST /asset/upload', () => {
|
describe('POST /asset/upload', () => {
|
||||||
@ -920,46 +876,6 @@ describe(`${AssetController.name} (e2e)`, () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('POST /asset/download/info', () => {
|
|
||||||
it('should require authentication', async () => {
|
|
||||||
const { status, body } = await request(server)
|
|
||||||
.post(`/asset/download/info`)
|
|
||||||
.send({ assetIds: [asset1.id] });
|
|
||||||
|
|
||||||
expect(status).toBe(401);
|
|
||||||
expect(body).toEqual(errorStub.unauthorized);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should download info', async () => {
|
|
||||||
const { status, body } = await request(server)
|
|
||||||
.post('/asset/download/info')
|
|
||||||
.set('Authorization', `Bearer ${user1.accessToken}`)
|
|
||||||
.send({ assetIds: [asset1.id] });
|
|
||||||
|
|
||||||
expect(status).toBe(201);
|
|
||||||
expect(body).toEqual(expect.objectContaining({ archives: [expect.objectContaining({ assetIds: [asset1.id] })] }));
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('POST /asset/download/:id', () => {
|
|
||||||
it('should require authentication', async () => {
|
|
||||||
const { status, body } = await request(server).post(`/asset/download/${asset1.id}`);
|
|
||||||
|
|
||||||
expect(status).toBe(401);
|
|
||||||
expect(body).toEqual(errorStub.unauthorized);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should download file', async () => {
|
|
||||||
const asset = await api.assetApi.upload(server, user1.accessToken, 'example');
|
|
||||||
const response = await request(server)
|
|
||||||
.post(`/asset/download/${asset.id}`)
|
|
||||||
.set('Authorization', `Bearer ${user1.accessToken}`);
|
|
||||||
|
|
||||||
expect(response.status).toBe(200);
|
|
||||||
expect(response.headers['content-type']).toEqual('image/jpeg');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('GET /asset/statistics', () => {
|
describe('GET /asset/statistics', () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await api.assetApi.upload(server, user1.accessToken, 'favored_asset', { isFavorite: true });
|
await api.assetApi.upload(server, user1.accessToken, 'favored_asset', { isFavorite: true });
|
||||||
@ -1459,9 +1375,6 @@ describe(`${AssetController.name} (e2e)`, () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe(AssetRepository.name, () => {
|
|
||||||
describe('getWithout', () => {
|
|
||||||
describe('WithoutProperty.FACES', () => {
|
|
||||||
const getAssetIdsWithoutFaces = async () => {
|
const getAssetIdsWithoutFaces = async () => {
|
||||||
const assetPagination = usePagination(10, (pagination) =>
|
const assetPagination = usePagination(10, (pagination) =>
|
||||||
assetRepository.getWithout(pagination, WithoutProperty.FACES),
|
assetRepository.getWithout(pagination, WithoutProperty.FACES),
|
||||||
@ -1473,6 +1386,9 @@ describe(`${AssetController.name} (e2e)`, () => {
|
|||||||
return assets.map((a) => a.id);
|
return assets.map((a) => a.id);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
describe(AssetRepository.name, () => {
|
||||||
|
describe('getWithout', () => {
|
||||||
|
describe('WithoutProperty.FACES', () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await assetRepository.save({ id: asset1.id, resizePath: '/path/to/resize' });
|
await assetRepository.save({ id: asset1.id, resizePath: '/path/to/resize' });
|
||||||
expect(await getAssetIdsWithoutFaces()).toContain(asset1.id);
|
expect(await getAssetIdsWithoutFaces()).toContain(asset1.id);
|
||||||
|
89
server/e2e/api/specs/download.e2e-spec.ts
Normal file
89
server/e2e/api/specs/download.e2e-spec.ts
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
import { AssetResponseDto, IAssetRepository, LibraryResponseDto, LoginResponseDto, mapAsset } from '@app/domain';
|
||||||
|
import { AssetController } from '@app/immich';
|
||||||
|
import { AssetEntity } from '@app/infra/entities';
|
||||||
|
import { INestApplication } from '@nestjs/common';
|
||||||
|
import { errorStub, userDto } from '@test/fixtures';
|
||||||
|
import request from 'supertest';
|
||||||
|
import { api } from '../../client';
|
||||||
|
import { generateAsset, testApp } from '../utils';
|
||||||
|
|
||||||
|
describe(`${AssetController.name} (e2e)`, () => {
|
||||||
|
let app: INestApplication;
|
||||||
|
let server: any;
|
||||||
|
let assetRepository: IAssetRepository;
|
||||||
|
let user1: LoginResponseDto;
|
||||||
|
let libraries: LibraryResponseDto[];
|
||||||
|
let asset1: AssetResponseDto;
|
||||||
|
|
||||||
|
const createAsset = async (
|
||||||
|
loginResponse: LoginResponseDto,
|
||||||
|
fileCreatedAt: Date,
|
||||||
|
other: Partial<AssetEntity> = {},
|
||||||
|
) => {
|
||||||
|
const asset = await assetRepository.create(
|
||||||
|
generateAsset(loginResponse.userId, libraries, { fileCreatedAt, ...other }),
|
||||||
|
);
|
||||||
|
|
||||||
|
return mapAsset(asset);
|
||||||
|
};
|
||||||
|
|
||||||
|
beforeAll(async () => {
|
||||||
|
app = await testApp.create();
|
||||||
|
server = app.getHttpServer();
|
||||||
|
assetRepository = app.get<IAssetRepository>(IAssetRepository);
|
||||||
|
|
||||||
|
await testApp.reset();
|
||||||
|
|
||||||
|
await api.authApi.adminSignUp(server);
|
||||||
|
const admin = await api.authApi.adminLogin(server);
|
||||||
|
|
||||||
|
await api.userApi.create(server, admin.accessToken, userDto.user1);
|
||||||
|
user1 = await api.authApi.login(server, userDto.user1);
|
||||||
|
libraries = await api.libraryApi.getAll(server, user1.accessToken);
|
||||||
|
asset1 = await createAsset(user1, new Date('1970-01-01'));
|
||||||
|
});
|
||||||
|
|
||||||
|
afterAll(async () => {
|
||||||
|
await testApp.teardown();
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('POST /download/info', () => {
|
||||||
|
it('should require authentication', async () => {
|
||||||
|
const { status, body } = await request(server)
|
||||||
|
.post(`/download/info`)
|
||||||
|
.send({ assetIds: [asset1.id] });
|
||||||
|
|
||||||
|
expect(status).toBe(401);
|
||||||
|
expect(body).toEqual(errorStub.unauthorized);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should download info', async () => {
|
||||||
|
const { status, body } = await request(server)
|
||||||
|
.post('/download/info')
|
||||||
|
.set('Authorization', `Bearer ${user1.accessToken}`)
|
||||||
|
.send({ assetIds: [asset1.id] });
|
||||||
|
|
||||||
|
expect(status).toBe(201);
|
||||||
|
expect(body).toEqual(expect.objectContaining({ archives: [expect.objectContaining({ assetIds: [asset1.id] })] }));
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('POST /download/asset/:id', () => {
|
||||||
|
it('should require authentication', async () => {
|
||||||
|
const { status, body } = await request(server).post(`/download/asset/${asset1.id}`);
|
||||||
|
|
||||||
|
expect(status).toBe(401);
|
||||||
|
expect(body).toEqual(errorStub.unauthorized);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should download file', async () => {
|
||||||
|
const asset = await api.assetApi.upload(server, user1.accessToken, 'example');
|
||||||
|
const response = await request(server)
|
||||||
|
.post(`/download/asset/${asset.id}`)
|
||||||
|
.set('Authorization', `Bearer ${user1.accessToken}`);
|
||||||
|
|
||||||
|
expect(response.status).toBe(200);
|
||||||
|
expect(response.headers['content-type']).toEqual('image/jpeg');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
@ -1,7 +1,7 @@
|
|||||||
import { AssetResponseDto } from '@app/domain';
|
import { AssetResponseDto } from '@app/domain';
|
||||||
import { CreateAssetDto } from '@app/immich/api-v1/asset/dto/create-asset.dto';
|
import { CreateAssetDto } from '@app/immich/api-v1/asset/dto/create-asset.dto';
|
||||||
import { AssetFileUploadResponseDto } from '@app/immich/api-v1/asset/response-dto/asset-file-upload-response.dto';
|
import { AssetFileUploadResponseDto } from '@app/immich/api-v1/asset/response-dto/asset-file-upload-response.dto';
|
||||||
import { randomBytes } from 'crypto';
|
import { randomBytes } from 'node:crypto';
|
||||||
import request from 'supertest';
|
import request from 'supertest';
|
||||||
|
|
||||||
type UploadDto = Partial<CreateAssetDto> & { content?: Buffer; filename?: string };
|
type UploadDto = Partial<CreateAssetDto> & { content?: Buffer; filename?: string };
|
||||||
@ -34,9 +34,7 @@ export const assetApi = {
|
|||||||
return body as AssetResponseDto;
|
return body as AssetResponseDto;
|
||||||
},
|
},
|
||||||
get: async (server: any, accessToken: string, id: string): Promise<AssetResponseDto> => {
|
get: async (server: any, accessToken: string, id: string): Promise<AssetResponseDto> => {
|
||||||
const { body, status } = await request(server)
|
const { body, status } = await request(server).get(`/asset/${id}`).set('Authorization', `Bearer ${accessToken}`);
|
||||||
.get(`/asset/assetById/${id}`)
|
|
||||||
.set('Authorization', `Bearer ${accessToken}`);
|
|
||||||
expect(status).toBe(200);
|
expect(status).toBe(200);
|
||||||
return body as AssetResponseDto;
|
return body as AssetResponseDto;
|
||||||
},
|
},
|
||||||
|
@ -106,15 +106,6 @@ export class OAuthConfigDto {
|
|||||||
redirectUri!: string;
|
redirectUri!: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated use oauth authorize */
|
|
||||||
export class OAuthConfigResponseDto {
|
|
||||||
enabled!: boolean;
|
|
||||||
passwordLoginEnabled!: boolean;
|
|
||||||
url?: string;
|
|
||||||
buttonText?: string;
|
|
||||||
autoLaunch?: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
export class OAuthAuthorizeResponseDto {
|
export class OAuthAuthorizeResponseDto {
|
||||||
url!: string;
|
url!: string;
|
||||||
}
|
}
|
||||||
|
@ -429,27 +429,6 @@ describe('AuthService', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('generateConfig', () => {
|
|
||||||
it('should work when oauth is not configured', async () => {
|
|
||||||
configMock.load.mockResolvedValue(systemConfigStub.disabled);
|
|
||||||
await expect(sut.generateConfig({ redirectUri: 'http://callback' })).resolves.toEqual({
|
|
||||||
enabled: false,
|
|
||||||
passwordLoginEnabled: false,
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should generate the config', async () => {
|
|
||||||
configMock.load.mockResolvedValue(systemConfigStub.enabled);
|
|
||||||
await expect(sut.generateConfig({ redirectUri: 'http://redirect' })).resolves.toEqual({
|
|
||||||
enabled: true,
|
|
||||||
buttonText: 'OAuth',
|
|
||||||
url: 'http://authorization-url',
|
|
||||||
autoLaunch: false,
|
|
||||||
passwordLoginEnabled: true,
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('callback', () => {
|
describe('callback', () => {
|
||||||
it('should throw an error if OAuth is not enabled', async () => {
|
it('should throw an error if OAuth is not enabled', async () => {
|
||||||
await expect(sut.callback({ url: '' }, loginDetails)).rejects.toBeInstanceOf(BadRequestException);
|
await expect(sut.callback({ url: '' }, loginDetails)).rejects.toBeInstanceOf(BadRequestException);
|
||||||
|
@ -42,7 +42,6 @@ import {
|
|||||||
OAuthAuthorizeResponseDto,
|
OAuthAuthorizeResponseDto,
|
||||||
OAuthCallbackDto,
|
OAuthCallbackDto,
|
||||||
OAuthConfigDto,
|
OAuthConfigDto,
|
||||||
OAuthConfigResponseDto,
|
|
||||||
SignUpDto,
|
SignUpDto,
|
||||||
mapLoginResponse,
|
mapLoginResponse,
|
||||||
mapUserToken,
|
mapUserToken,
|
||||||
@ -201,28 +200,6 @@ export class AuthService {
|
|||||||
return `${MOBILE_REDIRECT}?${url.split('?')[1] || ''}`;
|
return `${MOBILE_REDIRECT}?${url.split('?')[1] || ''}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
async generateConfig(dto: OAuthConfigDto): Promise<OAuthConfigResponseDto> {
|
|
||||||
const config = await this.configCore.getConfig();
|
|
||||||
const response = {
|
|
||||||
enabled: config.oauth.enabled,
|
|
||||||
passwordLoginEnabled: config.passwordLogin.enabled,
|
|
||||||
};
|
|
||||||
|
|
||||||
if (!response.enabled) {
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
const { scope, buttonText, autoLaunch } = config.oauth;
|
|
||||||
const oauthClient = await this.getOAuthClient(config);
|
|
||||||
const url = oauthClient.authorizationUrl({
|
|
||||||
redirect_uri: this.normalize(config, dto.redirectUri),
|
|
||||||
scope,
|
|
||||||
state: generators.state(),
|
|
||||||
});
|
|
||||||
|
|
||||||
return { ...response, buttonText, url, autoLaunch };
|
|
||||||
}
|
|
||||||
|
|
||||||
async authorize(dto: OAuthConfigDto): Promise<OAuthAuthorizeResponseDto> {
|
async authorize(dto: OAuthConfigDto): Promise<OAuthAuthorizeResponseDto> {
|
||||||
const config = await this.configCore.getConfig();
|
const config = await this.configCore.getConfig();
|
||||||
if (!config.oauth.enabled) {
|
if (!config.oauth.enabled) {
|
||||||
|
@ -230,8 +230,6 @@ export class SystemConfigCore {
|
|||||||
[FeatureFlag.SIDECAR]: true,
|
[FeatureFlag.SIDECAR]: true,
|
||||||
[FeatureFlag.SEARCH]: true,
|
[FeatureFlag.SEARCH]: true,
|
||||||
[FeatureFlag.TRASH]: config.trash.enabled,
|
[FeatureFlag.TRASH]: config.trash.enabled,
|
||||||
|
|
||||||
// TODO: use these instead of `POST oauth/config`
|
|
||||||
[FeatureFlag.OAUTH]: config.oauth.enabled,
|
[FeatureFlag.OAUTH]: config.oauth.enabled,
|
||||||
[FeatureFlag.OAUTH_AUTO_LAUNCH]: config.oauth.autoLaunch,
|
[FeatureFlag.OAUTH_AUTO_LAUNCH]: config.oauth.autoLaunch,
|
||||||
[FeatureFlag.PASSWORD_LOGIN]: config.passwordLogin.enabled,
|
[FeatureFlag.PASSWORD_LOGIN]: config.passwordLogin.enabled,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { AssetResponseDto, AssetService, AuthDto } from '@app/domain';
|
import { AssetResponseDto, AuthDto } from '@app/domain';
|
||||||
import {
|
import {
|
||||||
Body,
|
Body,
|
||||||
Controller,
|
Controller,
|
||||||
@ -18,7 +18,7 @@ import {
|
|||||||
import { ApiBody, ApiConsumes, ApiHeader, ApiTags } from '@nestjs/swagger';
|
import { ApiBody, ApiConsumes, ApiHeader, ApiTags } from '@nestjs/swagger';
|
||||||
import { NextFunction, Response } from 'express';
|
import { NextFunction, Response } from 'express';
|
||||||
import { Auth, Authenticated, FileResponse, SharedLinkRoute } from '../../app.guard';
|
import { Auth, Authenticated, FileResponse, SharedLinkRoute } from '../../app.guard';
|
||||||
import { UseValidation, sendFile } from '../../app.utils';
|
import { sendFile } from '../../app.utils';
|
||||||
import { UUIDParamDto } from '../../controllers/dto/uuid-param.dto';
|
import { UUIDParamDto } from '../../controllers/dto/uuid-param.dto';
|
||||||
import { FileUploadInterceptor, ImmichFile, Route, mapToUploadFile } from '../../interceptors';
|
import { FileUploadInterceptor, ImmichFile, Route, mapToUploadFile } from '../../interceptors';
|
||||||
import FileNotEmptyValidator from '../validation/file-not-empty-validator';
|
import FileNotEmptyValidator from '../validation/file-not-empty-validator';
|
||||||
@ -45,10 +45,7 @@ interface UploadFiles {
|
|||||||
@Controller(Route.ASSET)
|
@Controller(Route.ASSET)
|
||||||
@Authenticated()
|
@Authenticated()
|
||||||
export class AssetController {
|
export class AssetController {
|
||||||
constructor(
|
constructor(private serviceV1: AssetServiceV1) {}
|
||||||
private serviceV1: AssetServiceV1,
|
|
||||||
private service: AssetService,
|
|
||||||
) {}
|
|
||||||
|
|
||||||
@SharedLinkRoute()
|
@SharedLinkRoute()
|
||||||
@Post('upload')
|
@Post('upload')
|
||||||
@ -143,17 +140,6 @@ export class AssetController {
|
|||||||
return this.serviceV1.getAllAssets(auth, dto);
|
return this.serviceV1.getAllAssets(auth, dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get a single asset's information
|
|
||||||
* @deprecated Use `/asset/:id`
|
|
||||||
*/
|
|
||||||
@SharedLinkRoute()
|
|
||||||
@UseValidation()
|
|
||||||
@Get('/assetById/:id')
|
|
||||||
getAssetById(@Auth() auth: AuthDto, @Param() { id }: UUIDParamDto): Promise<AssetResponseDto> {
|
|
||||||
return this.service.get(auth, id) as Promise<AssetResponseDto>;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if multiple assets exist on the server and returns all existing - used by background backup
|
* Checks if multiple assets exist on the server and returns all existing - used by background backup
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import {
|
import {
|
||||||
AssetBulkDeleteDto,
|
AssetBulkDeleteDto,
|
||||||
AssetBulkUpdateDto,
|
AssetBulkUpdateDto,
|
||||||
AssetIdsDto,
|
|
||||||
AssetJobsDto,
|
AssetJobsDto,
|
||||||
AssetResponseDto,
|
AssetResponseDto,
|
||||||
AssetSearchDto,
|
AssetSearchDto,
|
||||||
@ -9,10 +8,7 @@ import {
|
|||||||
AssetStatsDto,
|
AssetStatsDto,
|
||||||
AssetStatsResponseDto,
|
AssetStatsResponseDto,
|
||||||
AuthDto,
|
AuthDto,
|
||||||
BulkIdsDto,
|
|
||||||
DeviceIdDto,
|
DeviceIdDto,
|
||||||
DownloadInfoDto,
|
|
||||||
DownloadResponseDto,
|
|
||||||
DownloadService,
|
DownloadService,
|
||||||
MapMarkerDto,
|
MapMarkerDto,
|
||||||
MapMarkerResponseDto,
|
MapMarkerResponseDto,
|
||||||
@ -26,25 +22,10 @@ import {
|
|||||||
UpdateAssetDto as UpdateDto,
|
UpdateAssetDto as UpdateDto,
|
||||||
UpdateStackParentDto,
|
UpdateStackParentDto,
|
||||||
} from '@app/domain';
|
} from '@app/domain';
|
||||||
import {
|
import { Body, Controller, Delete, Get, HttpCode, HttpStatus, Param, Post, Put, Query } from '@nestjs/common';
|
||||||
Body,
|
|
||||||
Controller,
|
|
||||||
Delete,
|
|
||||||
Get,
|
|
||||||
HttpCode,
|
|
||||||
HttpStatus,
|
|
||||||
Next,
|
|
||||||
Param,
|
|
||||||
Post,
|
|
||||||
Put,
|
|
||||||
Query,
|
|
||||||
Res,
|
|
||||||
StreamableFile,
|
|
||||||
} from '@nestjs/common';
|
|
||||||
import { ApiTags } from '@nestjs/swagger';
|
import { ApiTags } from '@nestjs/swagger';
|
||||||
import { NextFunction, Response } from 'express';
|
import { Auth, Authenticated, SharedLinkRoute } from '../app.guard';
|
||||||
import { Auth, Authenticated, FileResponse, SharedLinkRoute } from '../app.guard';
|
import { UseValidation } from '../app.utils';
|
||||||
import { UseValidation, asStreamableFile, sendFile } from '../app.utils';
|
|
||||||
import { Route } from '../interceptors';
|
import { Route } from '../interceptors';
|
||||||
import { UUIDParamDto } from './dto/uuid-param.dto';
|
import { UUIDParamDto } from './dto/uuid-param.dto';
|
||||||
|
|
||||||
@ -87,42 +68,6 @@ export class AssetController {
|
|||||||
return this.service.getRandom(auth, dto.count ?? 1);
|
return this.service.getRandom(auth, dto.count ?? 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated use `/download/info`
|
|
||||||
*/
|
|
||||||
@SharedLinkRoute()
|
|
||||||
@Post('download/info')
|
|
||||||
getDownloadInfoOld(@Auth() auth: AuthDto, @Body() dto: DownloadInfoDto): Promise<DownloadResponseDto> {
|
|
||||||
return this.downloadService.getDownloadInfo(auth, dto);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated use `/download/archive`
|
|
||||||
*/
|
|
||||||
@SharedLinkRoute()
|
|
||||||
@Post('download/archive')
|
|
||||||
@HttpCode(HttpStatus.OK)
|
|
||||||
@FileResponse()
|
|
||||||
downloadArchiveOld(@Auth() auth: AuthDto, @Body() dto: AssetIdsDto): Promise<StreamableFile> {
|
|
||||||
return this.downloadService.downloadArchive(auth, dto).then(asStreamableFile);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated use `/download/:id`
|
|
||||||
*/
|
|
||||||
@SharedLinkRoute()
|
|
||||||
@Post('download/:id')
|
|
||||||
@HttpCode(HttpStatus.OK)
|
|
||||||
@FileResponse()
|
|
||||||
async downloadFileOld(
|
|
||||||
@Res() res: Response,
|
|
||||||
@Next() next: NextFunction,
|
|
||||||
@Auth() auth: AuthDto,
|
|
||||||
@Param() { id }: UUIDParamDto,
|
|
||||||
) {
|
|
||||||
await sendFile(res, next, () => this.downloadService.downloadFile(auth, id));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all asset of a device that are in the database, ID only.
|
* Get all asset of a device that are in the database, ID only.
|
||||||
*/
|
*/
|
||||||
@ -166,33 +111,6 @@ export class AssetController {
|
|||||||
return this.service.deleteAll(auth, dto);
|
return this.service.deleteAll(auth, dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated use `POST /trash/restore/assets`
|
|
||||||
*/
|
|
||||||
@Post('restore')
|
|
||||||
@HttpCode(HttpStatus.NO_CONTENT)
|
|
||||||
restoreAssetsOld(@Auth() auth: AuthDto, @Body() dto: BulkIdsDto): Promise<void> {
|
|
||||||
return this.trashService.restoreAssets(auth, dto);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated use `POST /trash/empty`
|
|
||||||
*/
|
|
||||||
@Post('trash/empty')
|
|
||||||
@HttpCode(HttpStatus.NO_CONTENT)
|
|
||||||
emptyTrashOld(@Auth() auth: AuthDto): Promise<void> {
|
|
||||||
return this.trashService.empty(auth);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated use `POST /trash/restore`
|
|
||||||
*/
|
|
||||||
@Post('trash/restore')
|
|
||||||
@HttpCode(HttpStatus.NO_CONTENT)
|
|
||||||
restoreTrashOld(@Auth() auth: AuthDto): Promise<void> {
|
|
||||||
return this.trashService.restore(auth);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Put('stack/parent')
|
@Put('stack/parent')
|
||||||
@HttpCode(HttpStatus.OK)
|
@HttpCode(HttpStatus.OK)
|
||||||
updateStackParent(@Auth() auth: AuthDto, @Body() dto: UpdateStackParentDto): Promise<void> {
|
updateStackParent(@Auth() auth: AuthDto, @Body() dto: UpdateStackParentDto): Promise<void> {
|
||||||
|
@ -6,7 +6,6 @@ import {
|
|||||||
OAuthAuthorizeResponseDto,
|
OAuthAuthorizeResponseDto,
|
||||||
OAuthCallbackDto,
|
OAuthCallbackDto,
|
||||||
OAuthConfigDto,
|
OAuthConfigDto,
|
||||||
OAuthConfigResponseDto,
|
|
||||||
UserResponseDto,
|
UserResponseDto,
|
||||||
} from '@app/domain';
|
} from '@app/domain';
|
||||||
import { Body, Controller, Get, HttpStatus, Post, Redirect, Req, Res } from '@nestjs/common';
|
import { Body, Controller, Get, HttpStatus, Post, Redirect, Req, Res } from '@nestjs/common';
|
||||||
@ -32,13 +31,6 @@ export class OAuthController {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated use feature flags and /oauth/authorize */
|
|
||||||
@PublicRoute()
|
|
||||||
@Post('config')
|
|
||||||
generateOAuthConfig(@Body() dto: OAuthConfigDto): Promise<OAuthConfigResponseDto> {
|
|
||||||
return this.service.generateConfig(dto);
|
|
||||||
}
|
|
||||||
|
|
||||||
@PublicRoute()
|
@PublicRoute()
|
||||||
@Post('authorize')
|
@Post('authorize')
|
||||||
startOAuth(@Body() dto: OAuthConfigDto): Promise<OAuthAuthorizeResponseDto> {
|
startOAuth(@Body() dto: OAuthConfigDto): Promise<OAuthAuthorizeResponseDto> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user