@immich/sdk 2.4.1 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nvmrc +1 -1
- package/build/fetch-client.d.ts +434 -25
- package/build/fetch-client.js +178 -26
- package/package.json +3 -3
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
24.
|
|
1
|
+
24.13.0
|
package/build/fetch-client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Immich
|
|
3
|
-
* 2.
|
|
3
|
+
* 2.5.2
|
|
4
4
|
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
5
|
* See https://www.npmjs.com/package/oazapfts
|
|
6
6
|
*/
|
|
@@ -35,8 +35,31 @@ export type ActivityStatisticsResponseDto = {
|
|
|
35
35
|
comments: number;
|
|
36
36
|
likes: number;
|
|
37
37
|
};
|
|
38
|
+
export type DatabaseBackupDeleteDto = {
|
|
39
|
+
backups: string[];
|
|
40
|
+
};
|
|
41
|
+
export type DatabaseBackupDto = {
|
|
42
|
+
filename: string;
|
|
43
|
+
filesize: number;
|
|
44
|
+
};
|
|
45
|
+
export type DatabaseBackupListResponseDto = {
|
|
46
|
+
backups: DatabaseBackupDto[];
|
|
47
|
+
};
|
|
48
|
+
export type DatabaseBackupUploadDto = {
|
|
49
|
+
file?: Blob;
|
|
50
|
+
};
|
|
38
51
|
export type SetMaintenanceModeDto = {
|
|
39
52
|
action: MaintenanceAction;
|
|
53
|
+
restoreBackupFilename?: string;
|
|
54
|
+
};
|
|
55
|
+
export type MaintenanceDetectInstallStorageFolderDto = {
|
|
56
|
+
files: number;
|
|
57
|
+
folder: StorageFolder;
|
|
58
|
+
readable: boolean;
|
|
59
|
+
writable: boolean;
|
|
60
|
+
};
|
|
61
|
+
export type MaintenanceDetectInstallResponseDto = {
|
|
62
|
+
storage: MaintenanceDetectInstallStorageFolderDto[];
|
|
40
63
|
};
|
|
41
64
|
export type MaintenanceLoginDto = {
|
|
42
65
|
token?: string;
|
|
@@ -44,6 +67,13 @@ export type MaintenanceLoginDto = {
|
|
|
44
67
|
export type MaintenanceAuthDto = {
|
|
45
68
|
username: string;
|
|
46
69
|
};
|
|
70
|
+
export type MaintenanceStatusResponseDto = {
|
|
71
|
+
action: MaintenanceAction;
|
|
72
|
+
active: boolean;
|
|
73
|
+
error?: string;
|
|
74
|
+
progress?: number;
|
|
75
|
+
task?: string;
|
|
76
|
+
};
|
|
47
77
|
export type NotificationCreateDto = {
|
|
48
78
|
data?: object;
|
|
49
79
|
description?: string | null;
|
|
@@ -344,8 +374,10 @@ export type AssetResponseDto = {
|
|
|
344
374
|
/** The UTC timestamp when the file was last modified on the filesystem. This reflects the last time the physical file was changed, which may be different from when the photo was originally taken. */
|
|
345
375
|
fileModifiedAt: string;
|
|
346
376
|
hasMetadata: boolean;
|
|
377
|
+
height: number | null;
|
|
347
378
|
id: string;
|
|
348
379
|
isArchived: boolean;
|
|
380
|
+
isEdited: boolean;
|
|
349
381
|
isFavorite: boolean;
|
|
350
382
|
isOffline: boolean;
|
|
351
383
|
isTrashed: boolean;
|
|
@@ -368,6 +400,7 @@ export type AssetResponseDto = {
|
|
|
368
400
|
/** The UTC timestamp when the asset record was last updated in the database. This is automatically maintained by the database and reflects when any field in the asset was last modified. */
|
|
369
401
|
updatedAt: string;
|
|
370
402
|
visibility: AssetVisibility;
|
|
403
|
+
width: number | null;
|
|
371
404
|
};
|
|
372
405
|
export type ContributorCountResponseDto = {
|
|
373
406
|
assetCount: number;
|
|
@@ -466,7 +499,7 @@ export type AssetBulkDeleteDto = {
|
|
|
466
499
|
ids: string[];
|
|
467
500
|
};
|
|
468
501
|
export type AssetMetadataUpsertItemDto = {
|
|
469
|
-
key:
|
|
502
|
+
key: string;
|
|
470
503
|
value: object;
|
|
471
504
|
};
|
|
472
505
|
export type AssetMediaCreateDto = {
|
|
@@ -479,7 +512,7 @@ export type AssetMediaCreateDto = {
|
|
|
479
512
|
filename?: string;
|
|
480
513
|
isFavorite?: boolean;
|
|
481
514
|
livePhotoVideoId?: string;
|
|
482
|
-
metadata
|
|
515
|
+
metadata?: AssetMetadataUpsertItemDto[];
|
|
483
516
|
sidecarData?: Blob;
|
|
484
517
|
visibility?: AssetVisibility;
|
|
485
518
|
};
|
|
@@ -538,6 +571,27 @@ export type AssetJobsDto = {
|
|
|
538
571
|
assetIds: string[];
|
|
539
572
|
name: AssetJobName;
|
|
540
573
|
};
|
|
574
|
+
export type AssetMetadataBulkDeleteItemDto = {
|
|
575
|
+
assetId: string;
|
|
576
|
+
key: string;
|
|
577
|
+
};
|
|
578
|
+
export type AssetMetadataBulkDeleteDto = {
|
|
579
|
+
items: AssetMetadataBulkDeleteItemDto[];
|
|
580
|
+
};
|
|
581
|
+
export type AssetMetadataBulkUpsertItemDto = {
|
|
582
|
+
assetId: string;
|
|
583
|
+
key: string;
|
|
584
|
+
value: object;
|
|
585
|
+
};
|
|
586
|
+
export type AssetMetadataBulkUpsertDto = {
|
|
587
|
+
items: AssetMetadataBulkUpsertItemDto[];
|
|
588
|
+
};
|
|
589
|
+
export type AssetMetadataBulkResponseDto = {
|
|
590
|
+
assetId: string;
|
|
591
|
+
key: string;
|
|
592
|
+
updatedAt: string;
|
|
593
|
+
value: object;
|
|
594
|
+
};
|
|
541
595
|
export type UpdateAssetDto = {
|
|
542
596
|
dateTimeOriginal?: string;
|
|
543
597
|
description?: string;
|
|
@@ -548,8 +602,47 @@ export type UpdateAssetDto = {
|
|
|
548
602
|
rating?: number;
|
|
549
603
|
visibility?: AssetVisibility;
|
|
550
604
|
};
|
|
605
|
+
export type CropParameters = {
|
|
606
|
+
/** Height of the crop */
|
|
607
|
+
height: number;
|
|
608
|
+
/** Width of the crop */
|
|
609
|
+
width: number;
|
|
610
|
+
/** Top-Left X coordinate of crop */
|
|
611
|
+
x: number;
|
|
612
|
+
/** Top-Left Y coordinate of crop */
|
|
613
|
+
y: number;
|
|
614
|
+
};
|
|
615
|
+
export type AssetEditActionCrop = {
|
|
616
|
+
action: AssetEditAction;
|
|
617
|
+
parameters: CropParameters;
|
|
618
|
+
};
|
|
619
|
+
export type RotateParameters = {
|
|
620
|
+
/** Rotation angle in degrees */
|
|
621
|
+
angle: number;
|
|
622
|
+
};
|
|
623
|
+
export type AssetEditActionRotate = {
|
|
624
|
+
action: AssetEditAction;
|
|
625
|
+
parameters: RotateParameters;
|
|
626
|
+
};
|
|
627
|
+
export type MirrorParameters = {
|
|
628
|
+
/** Axis to mirror along */
|
|
629
|
+
axis: MirrorAxis;
|
|
630
|
+
};
|
|
631
|
+
export type AssetEditActionMirror = {
|
|
632
|
+
action: AssetEditAction;
|
|
633
|
+
parameters: MirrorParameters;
|
|
634
|
+
};
|
|
635
|
+
export type AssetEditsDto = {
|
|
636
|
+
assetId: string;
|
|
637
|
+
/** list of edits */
|
|
638
|
+
edits: (AssetEditActionCrop | AssetEditActionRotate | AssetEditActionMirror)[];
|
|
639
|
+
};
|
|
640
|
+
export type AssetEditActionListDto = {
|
|
641
|
+
/** list of edits */
|
|
642
|
+
edits: (AssetEditActionCrop | AssetEditActionRotate | AssetEditActionMirror)[];
|
|
643
|
+
};
|
|
551
644
|
export type AssetMetadataResponseDto = {
|
|
552
|
-
key:
|
|
645
|
+
key: string;
|
|
553
646
|
updatedAt: string;
|
|
554
647
|
value: object;
|
|
555
648
|
};
|
|
@@ -723,6 +816,7 @@ export type QueuesResponseLegacyDto = {
|
|
|
723
816
|
backgroundTask: QueueResponseLegacyDto;
|
|
724
817
|
backupDatabase: QueueResponseLegacyDto;
|
|
725
818
|
duplicateDetection: QueueResponseLegacyDto;
|
|
819
|
+
editor: QueueResponseLegacyDto;
|
|
726
820
|
faceDetection: QueueResponseLegacyDto;
|
|
727
821
|
facialRecognition: QueueResponseLegacyDto;
|
|
728
822
|
library: QueueResponseLegacyDto;
|
|
@@ -937,7 +1031,7 @@ export type PluginActionResponseDto = {
|
|
|
937
1031
|
methodName: string;
|
|
938
1032
|
pluginId: string;
|
|
939
1033
|
schema: object | null;
|
|
940
|
-
supportedContexts:
|
|
1034
|
+
supportedContexts: PluginContextType[];
|
|
941
1035
|
title: string;
|
|
942
1036
|
};
|
|
943
1037
|
export type PluginFilterResponseDto = {
|
|
@@ -946,7 +1040,7 @@ export type PluginFilterResponseDto = {
|
|
|
946
1040
|
methodName: string;
|
|
947
1041
|
pluginId: string;
|
|
948
1042
|
schema: object | null;
|
|
949
|
-
supportedContexts:
|
|
1043
|
+
supportedContexts: PluginContextType[];
|
|
950
1044
|
title: string;
|
|
951
1045
|
};
|
|
952
1046
|
export type PluginResponseDto = {
|
|
@@ -961,6 +1055,10 @@ export type PluginResponseDto = {
|
|
|
961
1055
|
updatedAt: string;
|
|
962
1056
|
version: string;
|
|
963
1057
|
};
|
|
1058
|
+
export type PluginTriggerResponseDto = {
|
|
1059
|
+
contextType: PluginContextType;
|
|
1060
|
+
"type": PluginTriggerType;
|
|
1061
|
+
};
|
|
964
1062
|
export type QueueResponseDto = {
|
|
965
1063
|
isPaused: boolean;
|
|
966
1064
|
name: QueueName;
|
|
@@ -1435,10 +1533,12 @@ export type SystemConfigFFmpegDto = {
|
|
|
1435
1533
|
export type SystemConfigGeneratedFullsizeImageDto = {
|
|
1436
1534
|
enabled: boolean;
|
|
1437
1535
|
format: ImageFormat;
|
|
1536
|
+
progressive?: boolean;
|
|
1438
1537
|
quality: number;
|
|
1439
1538
|
};
|
|
1440
1539
|
export type SystemConfigGeneratedImageDto = {
|
|
1441
1540
|
format: ImageFormat;
|
|
1541
|
+
progressive?: boolean;
|
|
1442
1542
|
quality: number;
|
|
1443
1543
|
size: number;
|
|
1444
1544
|
};
|
|
@@ -1454,6 +1554,7 @@ export type JobSettingsDto = {
|
|
|
1454
1554
|
};
|
|
1455
1555
|
export type SystemConfigJobDto = {
|
|
1456
1556
|
backgroundTask: JobSettingsDto;
|
|
1557
|
+
editor: JobSettingsDto;
|
|
1457
1558
|
faceDetection: JobSettingsDto;
|
|
1458
1559
|
library: JobSettingsDto;
|
|
1459
1560
|
metadataExtraction: JobSettingsDto;
|
|
@@ -1745,7 +1846,7 @@ export type WorkflowResponseDto = {
|
|
|
1745
1846
|
id: string;
|
|
1746
1847
|
name: string | null;
|
|
1747
1848
|
ownerId: string;
|
|
1748
|
-
triggerType:
|
|
1849
|
+
triggerType: PluginTriggerType;
|
|
1749
1850
|
};
|
|
1750
1851
|
export type WorkflowActionItemDto = {
|
|
1751
1852
|
actionConfig?: object;
|
|
@@ -1769,6 +1870,211 @@ export type WorkflowUpdateDto = {
|
|
|
1769
1870
|
enabled?: boolean;
|
|
1770
1871
|
filters?: WorkflowFilterItemDto[];
|
|
1771
1872
|
name?: string;
|
|
1873
|
+
triggerType?: PluginTriggerType;
|
|
1874
|
+
};
|
|
1875
|
+
export type SyncAckV1 = {};
|
|
1876
|
+
export type SyncAlbumDeleteV1 = {
|
|
1877
|
+
albumId: string;
|
|
1878
|
+
};
|
|
1879
|
+
export type SyncAlbumToAssetDeleteV1 = {
|
|
1880
|
+
albumId: string;
|
|
1881
|
+
assetId: string;
|
|
1882
|
+
};
|
|
1883
|
+
export type SyncAlbumToAssetV1 = {
|
|
1884
|
+
albumId: string;
|
|
1885
|
+
assetId: string;
|
|
1886
|
+
};
|
|
1887
|
+
export type SyncAlbumUserDeleteV1 = {
|
|
1888
|
+
albumId: string;
|
|
1889
|
+
userId: string;
|
|
1890
|
+
};
|
|
1891
|
+
export type SyncAlbumUserV1 = {
|
|
1892
|
+
albumId: string;
|
|
1893
|
+
role: AlbumUserRole;
|
|
1894
|
+
userId: string;
|
|
1895
|
+
};
|
|
1896
|
+
export type SyncAlbumV1 = {
|
|
1897
|
+
createdAt: string;
|
|
1898
|
+
description: string;
|
|
1899
|
+
id: string;
|
|
1900
|
+
isActivityEnabled: boolean;
|
|
1901
|
+
name: string;
|
|
1902
|
+
order: AssetOrder;
|
|
1903
|
+
ownerId: string;
|
|
1904
|
+
thumbnailAssetId: string | null;
|
|
1905
|
+
updatedAt: string;
|
|
1906
|
+
};
|
|
1907
|
+
export type SyncAssetDeleteV1 = {
|
|
1908
|
+
assetId: string;
|
|
1909
|
+
};
|
|
1910
|
+
export type SyncAssetExifV1 = {
|
|
1911
|
+
assetId: string;
|
|
1912
|
+
city: string | null;
|
|
1913
|
+
country: string | null;
|
|
1914
|
+
dateTimeOriginal: string | null;
|
|
1915
|
+
description: string | null;
|
|
1916
|
+
exifImageHeight: number | null;
|
|
1917
|
+
exifImageWidth: number | null;
|
|
1918
|
+
exposureTime: string | null;
|
|
1919
|
+
fNumber: number | null;
|
|
1920
|
+
fileSizeInByte: number | null;
|
|
1921
|
+
focalLength: number | null;
|
|
1922
|
+
fps: number | null;
|
|
1923
|
+
iso: number | null;
|
|
1924
|
+
latitude: number | null;
|
|
1925
|
+
lensModel: string | null;
|
|
1926
|
+
longitude: number | null;
|
|
1927
|
+
make: string | null;
|
|
1928
|
+
model: string | null;
|
|
1929
|
+
modifyDate: string | null;
|
|
1930
|
+
orientation: string | null;
|
|
1931
|
+
profileDescription: string | null;
|
|
1932
|
+
projectionType: string | null;
|
|
1933
|
+
rating: number | null;
|
|
1934
|
+
state: string | null;
|
|
1935
|
+
timeZone: string | null;
|
|
1936
|
+
};
|
|
1937
|
+
export type SyncAssetFaceDeleteV1 = {
|
|
1938
|
+
assetFaceId: string;
|
|
1939
|
+
};
|
|
1940
|
+
export type SyncAssetFaceV1 = {
|
|
1941
|
+
assetId: string;
|
|
1942
|
+
boundingBoxX1: number;
|
|
1943
|
+
boundingBoxX2: number;
|
|
1944
|
+
boundingBoxY1: number;
|
|
1945
|
+
boundingBoxY2: number;
|
|
1946
|
+
id: string;
|
|
1947
|
+
imageHeight: number;
|
|
1948
|
+
imageWidth: number;
|
|
1949
|
+
personId: string | null;
|
|
1950
|
+
sourceType: string;
|
|
1951
|
+
};
|
|
1952
|
+
export type SyncAssetMetadataDeleteV1 = {
|
|
1953
|
+
assetId: string;
|
|
1954
|
+
key: string;
|
|
1955
|
+
};
|
|
1956
|
+
export type SyncAssetMetadataV1 = {
|
|
1957
|
+
assetId: string;
|
|
1958
|
+
key: string;
|
|
1959
|
+
value: object;
|
|
1960
|
+
};
|
|
1961
|
+
export type SyncAssetV1 = {
|
|
1962
|
+
checksum: string;
|
|
1963
|
+
deletedAt: string | null;
|
|
1964
|
+
duration: string | null;
|
|
1965
|
+
fileCreatedAt: string | null;
|
|
1966
|
+
fileModifiedAt: string | null;
|
|
1967
|
+
height: number | null;
|
|
1968
|
+
id: string;
|
|
1969
|
+
isEdited: boolean;
|
|
1970
|
+
isFavorite: boolean;
|
|
1971
|
+
libraryId: string | null;
|
|
1972
|
+
livePhotoVideoId: string | null;
|
|
1973
|
+
localDateTime: string | null;
|
|
1974
|
+
originalFileName: string;
|
|
1975
|
+
ownerId: string;
|
|
1976
|
+
stackId: string | null;
|
|
1977
|
+
thumbhash: string | null;
|
|
1978
|
+
"type": AssetTypeEnum;
|
|
1979
|
+
visibility: AssetVisibility;
|
|
1980
|
+
width: number | null;
|
|
1981
|
+
};
|
|
1982
|
+
export type SyncAuthUserV1 = {
|
|
1983
|
+
avatarColor: (UserAvatarColor) | null;
|
|
1984
|
+
deletedAt: string | null;
|
|
1985
|
+
email: string;
|
|
1986
|
+
hasProfileImage: boolean;
|
|
1987
|
+
id: string;
|
|
1988
|
+
isAdmin: boolean;
|
|
1989
|
+
name: string;
|
|
1990
|
+
oauthId: string;
|
|
1991
|
+
pinCode: string | null;
|
|
1992
|
+
profileChangedAt: string;
|
|
1993
|
+
quotaSizeInBytes: number | null;
|
|
1994
|
+
quotaUsageInBytes: number;
|
|
1995
|
+
storageLabel: string | null;
|
|
1996
|
+
};
|
|
1997
|
+
export type SyncCompleteV1 = {};
|
|
1998
|
+
export type SyncMemoryAssetDeleteV1 = {
|
|
1999
|
+
assetId: string;
|
|
2000
|
+
memoryId: string;
|
|
2001
|
+
};
|
|
2002
|
+
export type SyncMemoryAssetV1 = {
|
|
2003
|
+
assetId: string;
|
|
2004
|
+
memoryId: string;
|
|
2005
|
+
};
|
|
2006
|
+
export type SyncMemoryDeleteV1 = {
|
|
2007
|
+
memoryId: string;
|
|
2008
|
+
};
|
|
2009
|
+
export type SyncMemoryV1 = {
|
|
2010
|
+
createdAt: string;
|
|
2011
|
+
data: object;
|
|
2012
|
+
deletedAt: string | null;
|
|
2013
|
+
hideAt: string | null;
|
|
2014
|
+
id: string;
|
|
2015
|
+
isSaved: boolean;
|
|
2016
|
+
memoryAt: string;
|
|
2017
|
+
ownerId: string;
|
|
2018
|
+
seenAt: string | null;
|
|
2019
|
+
showAt: string | null;
|
|
2020
|
+
"type": MemoryType;
|
|
2021
|
+
updatedAt: string;
|
|
2022
|
+
};
|
|
2023
|
+
export type SyncPartnerDeleteV1 = {
|
|
2024
|
+
sharedById: string;
|
|
2025
|
+
sharedWithId: string;
|
|
2026
|
+
};
|
|
2027
|
+
export type SyncPartnerV1 = {
|
|
2028
|
+
inTimeline: boolean;
|
|
2029
|
+
sharedById: string;
|
|
2030
|
+
sharedWithId: string;
|
|
2031
|
+
};
|
|
2032
|
+
export type SyncPersonDeleteV1 = {
|
|
2033
|
+
personId: string;
|
|
2034
|
+
};
|
|
2035
|
+
export type SyncPersonV1 = {
|
|
2036
|
+
birthDate: string | null;
|
|
2037
|
+
color: string | null;
|
|
2038
|
+
createdAt: string;
|
|
2039
|
+
faceAssetId: string | null;
|
|
2040
|
+
id: string;
|
|
2041
|
+
isFavorite: boolean;
|
|
2042
|
+
isHidden: boolean;
|
|
2043
|
+
name: string;
|
|
2044
|
+
ownerId: string;
|
|
2045
|
+
updatedAt: string;
|
|
2046
|
+
};
|
|
2047
|
+
export type SyncResetV1 = {};
|
|
2048
|
+
export type SyncStackDeleteV1 = {
|
|
2049
|
+
stackId: string;
|
|
2050
|
+
};
|
|
2051
|
+
export type SyncStackV1 = {
|
|
2052
|
+
createdAt: string;
|
|
2053
|
+
id: string;
|
|
2054
|
+
ownerId: string;
|
|
2055
|
+
primaryAssetId: string;
|
|
2056
|
+
updatedAt: string;
|
|
2057
|
+
};
|
|
2058
|
+
export type SyncUserDeleteV1 = {
|
|
2059
|
+
userId: string;
|
|
2060
|
+
};
|
|
2061
|
+
export type SyncUserMetadataDeleteV1 = {
|
|
2062
|
+
key: UserMetadataKey;
|
|
2063
|
+
userId: string;
|
|
2064
|
+
};
|
|
2065
|
+
export type SyncUserMetadataV1 = {
|
|
2066
|
+
key: UserMetadataKey;
|
|
2067
|
+
userId: string;
|
|
2068
|
+
value: object;
|
|
2069
|
+
};
|
|
2070
|
+
export type SyncUserV1 = {
|
|
2071
|
+
avatarColor: (UserAvatarColor) | null;
|
|
2072
|
+
deletedAt: string | null;
|
|
2073
|
+
email: string;
|
|
2074
|
+
hasProfileImage: boolean;
|
|
2075
|
+
id: string;
|
|
2076
|
+
name: string;
|
|
2077
|
+
profileChangedAt: string;
|
|
1772
2078
|
};
|
|
1773
2079
|
/**
|
|
1774
2080
|
* List all activities
|
|
@@ -1803,18 +2109,52 @@ export declare function deleteActivity({ id }: {
|
|
|
1803
2109
|
* Unlink all OAuth accounts
|
|
1804
2110
|
*/
|
|
1805
2111
|
export declare function unlinkAllOAuthAccountsAdmin(opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
2112
|
+
/**
|
|
2113
|
+
* Delete database backup
|
|
2114
|
+
*/
|
|
2115
|
+
export declare function deleteDatabaseBackup({ databaseBackupDeleteDto }: {
|
|
2116
|
+
databaseBackupDeleteDto: DatabaseBackupDeleteDto;
|
|
2117
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
2118
|
+
/**
|
|
2119
|
+
* List database backups
|
|
2120
|
+
*/
|
|
2121
|
+
export declare function listDatabaseBackups(opts?: Oazapfts.RequestOpts): Promise<DatabaseBackupListResponseDto>;
|
|
2122
|
+
/**
|
|
2123
|
+
* Start database backup restore flow
|
|
2124
|
+
*/
|
|
2125
|
+
export declare function startDatabaseRestoreFlow(opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
2126
|
+
/**
|
|
2127
|
+
* Upload database backup
|
|
2128
|
+
*/
|
|
2129
|
+
export declare function uploadDatabaseBackup({ databaseBackupUploadDto }: {
|
|
2130
|
+
databaseBackupUploadDto: DatabaseBackupUploadDto;
|
|
2131
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
2132
|
+
/**
|
|
2133
|
+
* Download database backup
|
|
2134
|
+
*/
|
|
2135
|
+
export declare function downloadDatabaseBackup({ filename }: {
|
|
2136
|
+
filename: string;
|
|
2137
|
+
}, opts?: Oazapfts.RequestOpts): Promise<Blob>;
|
|
1806
2138
|
/**
|
|
1807
2139
|
* Set maintenance mode
|
|
1808
2140
|
*/
|
|
1809
2141
|
export declare function setMaintenanceMode({ setMaintenanceModeDto }: {
|
|
1810
2142
|
setMaintenanceModeDto: SetMaintenanceModeDto;
|
|
1811
2143
|
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
2144
|
+
/**
|
|
2145
|
+
* Detect existing install
|
|
2146
|
+
*/
|
|
2147
|
+
export declare function detectPriorInstall(opts?: Oazapfts.RequestOpts): Promise<MaintenanceDetectInstallResponseDto>;
|
|
1812
2148
|
/**
|
|
1813
2149
|
* Log into maintenance mode
|
|
1814
2150
|
*/
|
|
1815
2151
|
export declare function maintenanceLogin({ maintenanceLoginDto }: {
|
|
1816
2152
|
maintenanceLoginDto: MaintenanceLoginDto;
|
|
1817
2153
|
}, opts?: Oazapfts.RequestOpts): Promise<MaintenanceAuthDto>;
|
|
2154
|
+
/**
|
|
2155
|
+
* Get maintenance mode status
|
|
2156
|
+
*/
|
|
2157
|
+
export declare function getMaintenanceStatus(opts?: Oazapfts.RequestOpts): Promise<MaintenanceStatusResponseDto>;
|
|
1818
2158
|
/**
|
|
1819
2159
|
* Create a notification
|
|
1820
2160
|
*/
|
|
@@ -2070,6 +2410,18 @@ export declare function checkExistingAssets({ checkExistingAssetsDto }: {
|
|
|
2070
2410
|
export declare function runAssetJobs({ assetJobsDto }: {
|
|
2071
2411
|
assetJobsDto: AssetJobsDto;
|
|
2072
2412
|
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
2413
|
+
/**
|
|
2414
|
+
* Delete asset metadata
|
|
2415
|
+
*/
|
|
2416
|
+
export declare function deleteBulkAssetMetadata({ assetMetadataBulkDeleteDto }: {
|
|
2417
|
+
assetMetadataBulkDeleteDto: AssetMetadataBulkDeleteDto;
|
|
2418
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
2419
|
+
/**
|
|
2420
|
+
* Upsert asset metadata
|
|
2421
|
+
*/
|
|
2422
|
+
export declare function updateBulkAssetMetadata({ assetMetadataBulkUpsertDto }: {
|
|
2423
|
+
assetMetadataBulkUpsertDto: AssetMetadataBulkUpsertDto;
|
|
2424
|
+
}, opts?: Oazapfts.RequestOpts): Promise<AssetMetadataBulkResponseDto[]>;
|
|
2073
2425
|
/**
|
|
2074
2426
|
* Get random assets
|
|
2075
2427
|
*/
|
|
@@ -2099,6 +2451,25 @@ export declare function updateAsset({ id, updateAssetDto }: {
|
|
|
2099
2451
|
id: string;
|
|
2100
2452
|
updateAssetDto: UpdateAssetDto;
|
|
2101
2453
|
}, opts?: Oazapfts.RequestOpts): Promise<AssetResponseDto>;
|
|
2454
|
+
/**
|
|
2455
|
+
* Remove edits from an existing asset
|
|
2456
|
+
*/
|
|
2457
|
+
export declare function removeAssetEdits({ id }: {
|
|
2458
|
+
id: string;
|
|
2459
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
2460
|
+
/**
|
|
2461
|
+
* Retrieve edits for an existing asset
|
|
2462
|
+
*/
|
|
2463
|
+
export declare function getAssetEdits({ id }: {
|
|
2464
|
+
id: string;
|
|
2465
|
+
}, opts?: Oazapfts.RequestOpts): Promise<AssetEditsDto>;
|
|
2466
|
+
/**
|
|
2467
|
+
* Apply edits to an existing asset
|
|
2468
|
+
*/
|
|
2469
|
+
export declare function editAsset({ id, assetEditActionListDto }: {
|
|
2470
|
+
id: string;
|
|
2471
|
+
assetEditActionListDto: AssetEditActionListDto;
|
|
2472
|
+
}, opts?: Oazapfts.RequestOpts): Promise<AssetEditsDto>;
|
|
2102
2473
|
/**
|
|
2103
2474
|
* Get asset metadata
|
|
2104
2475
|
*/
|
|
@@ -2117,14 +2488,14 @@ export declare function updateAssetMetadata({ id, assetMetadataUpsertDto }: {
|
|
|
2117
2488
|
*/
|
|
2118
2489
|
export declare function deleteAssetMetadata({ id, key }: {
|
|
2119
2490
|
id: string;
|
|
2120
|
-
key:
|
|
2491
|
+
key: string;
|
|
2121
2492
|
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
2122
2493
|
/**
|
|
2123
2494
|
* Retrieve asset metadata by key
|
|
2124
2495
|
*/
|
|
2125
2496
|
export declare function getAssetMetadataByKey({ id, key }: {
|
|
2126
2497
|
id: string;
|
|
2127
|
-
key:
|
|
2498
|
+
key: string;
|
|
2128
2499
|
}, opts?: Oazapfts.RequestOpts): Promise<AssetMetadataResponseDto>;
|
|
2129
2500
|
/**
|
|
2130
2501
|
* Retrieve asset OCR data
|
|
@@ -2135,7 +2506,8 @@ export declare function getAssetOcr({ id }: {
|
|
|
2135
2506
|
/**
|
|
2136
2507
|
* Download original asset
|
|
2137
2508
|
*/
|
|
2138
|
-
export declare function downloadAsset({ id, key, slug }: {
|
|
2509
|
+
export declare function downloadAsset({ edited, id, key, slug }: {
|
|
2510
|
+
edited?: boolean;
|
|
2139
2511
|
id: string;
|
|
2140
2512
|
key?: string;
|
|
2141
2513
|
slug?: string;
|
|
@@ -2152,7 +2524,8 @@ export declare function replaceAsset({ id, key, slug, assetMediaReplaceDto }: {
|
|
|
2152
2524
|
/**
|
|
2153
2525
|
* View asset thumbnail
|
|
2154
2526
|
*/
|
|
2155
|
-
export declare function viewAsset({ id, key, size, slug }: {
|
|
2527
|
+
export declare function viewAsset({ edited, id, key, size, slug }: {
|
|
2528
|
+
edited?: boolean;
|
|
2156
2529
|
id: string;
|
|
2157
2530
|
key?: string;
|
|
2158
2531
|
size?: AssetMediaSize;
|
|
@@ -2600,6 +2973,10 @@ export declare function getPersonThumbnail({ id }: {
|
|
|
2600
2973
|
* List all plugins
|
|
2601
2974
|
*/
|
|
2602
2975
|
export declare function getPlugins(opts?: Oazapfts.RequestOpts): Promise<PluginResponseDto[]>;
|
|
2976
|
+
/**
|
|
2977
|
+
* List all plugin triggers
|
|
2978
|
+
*/
|
|
2979
|
+
export declare function getPluginTriggers(opts?: Oazapfts.RequestOpts): Promise<PluginTriggerResponseDto[]>;
|
|
2603
2980
|
/**
|
|
2604
2981
|
* Retrieve a plugin
|
|
2605
2982
|
*/
|
|
@@ -2829,8 +3206,9 @@ export declare function lockSession({ id }: {
|
|
|
2829
3206
|
/**
|
|
2830
3207
|
* Retrieve all shared links
|
|
2831
3208
|
*/
|
|
2832
|
-
export declare function getAllSharedLinks({ albumId }: {
|
|
3209
|
+
export declare function getAllSharedLinks({ albumId, id }: {
|
|
2833
3210
|
albumId?: string;
|
|
3211
|
+
id?: string;
|
|
2834
3212
|
}, opts?: Oazapfts.RequestOpts): Promise<SharedLinkResponseDto[]>;
|
|
2835
3213
|
/**
|
|
2836
3214
|
* Create a shared link
|
|
@@ -3239,7 +3617,17 @@ export declare enum UserAvatarColor {
|
|
|
3239
3617
|
}
|
|
3240
3618
|
export declare enum MaintenanceAction {
|
|
3241
3619
|
Start = "start",
|
|
3242
|
-
End = "end"
|
|
3620
|
+
End = "end",
|
|
3621
|
+
SelectDatabaseRestore = "select_database_restore",
|
|
3622
|
+
RestoreDatabase = "restore_database"
|
|
3623
|
+
}
|
|
3624
|
+
export declare enum StorageFolder {
|
|
3625
|
+
EncodedVideo = "encoded-video",
|
|
3626
|
+
Library = "library",
|
|
3627
|
+
Upload = "upload",
|
|
3628
|
+
Profile = "profile",
|
|
3629
|
+
Thumbs = "thumbs",
|
|
3630
|
+
Backups = "backups"
|
|
3243
3631
|
}
|
|
3244
3632
|
export declare enum NotificationLevel {
|
|
3245
3633
|
Success = "success",
|
|
@@ -3318,6 +3706,10 @@ export declare enum Permission {
|
|
|
3318
3706
|
AssetUpload = "asset.upload",
|
|
3319
3707
|
AssetReplace = "asset.replace",
|
|
3320
3708
|
AssetCopy = "asset.copy",
|
|
3709
|
+
AssetDerive = "asset.derive",
|
|
3710
|
+
AssetEditGet = "asset.edit.get",
|
|
3711
|
+
AssetEditCreate = "asset.edit.create",
|
|
3712
|
+
AssetEditDelete = "asset.edit.delete",
|
|
3321
3713
|
AlbumCreate = "album.create",
|
|
3322
3714
|
AlbumRead = "album.read",
|
|
3323
3715
|
AlbumUpdate = "album.update",
|
|
@@ -3333,12 +3725,17 @@ export declare enum Permission {
|
|
|
3333
3725
|
AuthChangePassword = "auth.changePassword",
|
|
3334
3726
|
AuthDeviceDelete = "authDevice.delete",
|
|
3335
3727
|
ArchiveRead = "archive.read",
|
|
3728
|
+
BackupList = "backup.list",
|
|
3729
|
+
BackupDownload = "backup.download",
|
|
3730
|
+
BackupUpload = "backup.upload",
|
|
3731
|
+
BackupDelete = "backup.delete",
|
|
3336
3732
|
DuplicateRead = "duplicate.read",
|
|
3337
3733
|
DuplicateDelete = "duplicate.delete",
|
|
3338
3734
|
FaceCreate = "face.create",
|
|
3339
3735
|
FaceRead = "face.read",
|
|
3340
3736
|
FaceUpdate = "face.update",
|
|
3341
3737
|
FaceDelete = "face.delete",
|
|
3738
|
+
FolderRead = "folder.read",
|
|
3342
3739
|
JobCreate = "job.create",
|
|
3343
3740
|
JobRead = "job.read",
|
|
3344
3741
|
LibraryCreate = "library.create",
|
|
@@ -3349,6 +3746,8 @@ export declare enum Permission {
|
|
|
3349
3746
|
TimelineRead = "timeline.read",
|
|
3350
3747
|
TimelineDownload = "timeline.download",
|
|
3351
3748
|
Maintenance = "maintenance",
|
|
3749
|
+
MapRead = "map.read",
|
|
3750
|
+
MapSearch = "map.search",
|
|
3352
3751
|
MemoryCreate = "memory.create",
|
|
3353
3752
|
MemoryRead = "memory.read",
|
|
3354
3753
|
MemoryUpdate = "memory.update",
|
|
@@ -3444,9 +3843,6 @@ export declare enum Permission {
|
|
|
3444
3843
|
AdminSessionRead = "adminSession.read",
|
|
3445
3844
|
AdminAuthUnlinkAll = "adminAuth.unlinkAll"
|
|
3446
3845
|
}
|
|
3447
|
-
export declare enum AssetMetadataKey {
|
|
3448
|
-
MobileApp = "mobile-app"
|
|
3449
|
-
}
|
|
3450
3846
|
export declare enum AssetMediaStatus {
|
|
3451
3847
|
Created = "created",
|
|
3452
3848
|
Replaced = "replaced",
|
|
@@ -3466,7 +3862,17 @@ export declare enum AssetJobName {
|
|
|
3466
3862
|
RegenerateThumbnail = "regenerate-thumbnail",
|
|
3467
3863
|
TranscodeVideo = "transcode-video"
|
|
3468
3864
|
}
|
|
3865
|
+
export declare enum AssetEditAction {
|
|
3866
|
+
Crop = "crop",
|
|
3867
|
+
Rotate = "rotate",
|
|
3868
|
+
Mirror = "mirror"
|
|
3869
|
+
}
|
|
3870
|
+
export declare enum MirrorAxis {
|
|
3871
|
+
Horizontal = "horizontal",
|
|
3872
|
+
Vertical = "vertical"
|
|
3873
|
+
}
|
|
3469
3874
|
export declare enum AssetMediaSize {
|
|
3875
|
+
Original = "original",
|
|
3470
3876
|
Fullsize = "fullsize",
|
|
3471
3877
|
Preview = "preview",
|
|
3472
3878
|
Thumbnail = "thumbnail"
|
|
@@ -3496,7 +3902,8 @@ export declare enum QueueName {
|
|
|
3496
3902
|
Notifications = "notifications",
|
|
3497
3903
|
BackupDatabase = "backupDatabase",
|
|
3498
3904
|
Ocr = "ocr",
|
|
3499
|
-
Workflow = "workflow"
|
|
3905
|
+
Workflow = "workflow",
|
|
3906
|
+
Editor = "editor"
|
|
3500
3907
|
}
|
|
3501
3908
|
export declare enum QueueCommand {
|
|
3502
3909
|
Start = "start",
|
|
@@ -3517,11 +3924,15 @@ export declare enum PartnerDirection {
|
|
|
3517
3924
|
SharedBy = "shared-by",
|
|
3518
3925
|
SharedWith = "shared-with"
|
|
3519
3926
|
}
|
|
3520
|
-
export declare enum
|
|
3927
|
+
export declare enum PluginContextType {
|
|
3521
3928
|
Asset = "asset",
|
|
3522
3929
|
Album = "album",
|
|
3523
3930
|
Person = "person"
|
|
3524
3931
|
}
|
|
3932
|
+
export declare enum PluginTriggerType {
|
|
3933
|
+
AssetCreate = "AssetCreate",
|
|
3934
|
+
PersonRecognized = "PersonRecognized"
|
|
3935
|
+
}
|
|
3525
3936
|
export declare enum QueueJobStatus {
|
|
3526
3937
|
Active = "active",
|
|
3527
3938
|
Failed = "failed",
|
|
@@ -3537,6 +3948,7 @@ export declare enum JobName {
|
|
|
3537
3948
|
AssetDetectFaces = "AssetDetectFaces",
|
|
3538
3949
|
AssetDetectDuplicatesQueueAll = "AssetDetectDuplicatesQueueAll",
|
|
3539
3950
|
AssetDetectDuplicates = "AssetDetectDuplicates",
|
|
3951
|
+
AssetEditThumbnailGeneration = "AssetEditThumbnailGeneration",
|
|
3540
3952
|
AssetEncodeVideoQueueAll = "AssetEncodeVideoQueueAll",
|
|
3541
3953
|
AssetEncodeVideo = "AssetEncodeVideo",
|
|
3542
3954
|
AssetEmptyTrash = "AssetEmptyTrash",
|
|
@@ -3738,11 +4150,8 @@ export declare enum OAuthTokenEndpointAuthMethod {
|
|
|
3738
4150
|
ClientSecretPost = "client_secret_post",
|
|
3739
4151
|
ClientSecretBasic = "client_secret_basic"
|
|
3740
4152
|
}
|
|
3741
|
-
export declare enum
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
export declare enum PluginTriggerType {
|
|
3746
|
-
AssetCreate = "AssetCreate",
|
|
3747
|
-
PersonRecognized = "PersonRecognized"
|
|
4153
|
+
export declare enum UserMetadataKey {
|
|
4154
|
+
Preferences = "preferences",
|
|
4155
|
+
License = "license",
|
|
4156
|
+
Onboarding = "onboarding"
|
|
3748
4157
|
}
|
package/build/fetch-client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Immich
|
|
3
|
-
* 2.
|
|
3
|
+
* 2.5.2
|
|
4
4
|
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
5
|
* See https://www.npmjs.com/package/oazapfts
|
|
6
6
|
*/
|
|
@@ -8,7 +8,7 @@ import * as Oazapfts from "@oazapfts/runtime";
|
|
|
8
8
|
import * as QS from "@oazapfts/runtime/query";
|
|
9
9
|
export const defaults = {
|
|
10
10
|
headers: {},
|
|
11
|
-
baseUrl: "/api"
|
|
11
|
+
baseUrl: "/api"
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {
|
|
@@ -67,6 +67,51 @@ export function unlinkAllOAuthAccountsAdmin(opts) {
|
|
|
67
67
|
method: "POST"
|
|
68
68
|
}));
|
|
69
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Delete database backup
|
|
72
|
+
*/
|
|
73
|
+
export function deleteDatabaseBackup({ databaseBackupDeleteDto }, opts) {
|
|
74
|
+
return oazapfts.ok(oazapfts.fetchText("/admin/database-backups", oazapfts.json({
|
|
75
|
+
...opts,
|
|
76
|
+
method: "DELETE",
|
|
77
|
+
body: databaseBackupDeleteDto
|
|
78
|
+
})));
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* List database backups
|
|
82
|
+
*/
|
|
83
|
+
export function listDatabaseBackups(opts) {
|
|
84
|
+
return oazapfts.ok(oazapfts.fetchJson("/admin/database-backups", {
|
|
85
|
+
...opts
|
|
86
|
+
}));
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Start database backup restore flow
|
|
90
|
+
*/
|
|
91
|
+
export function startDatabaseRestoreFlow(opts) {
|
|
92
|
+
return oazapfts.ok(oazapfts.fetchText("/admin/database-backups/start-restore", {
|
|
93
|
+
...opts,
|
|
94
|
+
method: "POST"
|
|
95
|
+
}));
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Upload database backup
|
|
99
|
+
*/
|
|
100
|
+
export function uploadDatabaseBackup({ databaseBackupUploadDto }, opts) {
|
|
101
|
+
return oazapfts.ok(oazapfts.fetchText("/admin/database-backups/upload", oazapfts.multipart({
|
|
102
|
+
...opts,
|
|
103
|
+
method: "POST",
|
|
104
|
+
body: databaseBackupUploadDto
|
|
105
|
+
})));
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Download database backup
|
|
109
|
+
*/
|
|
110
|
+
export function downloadDatabaseBackup({ filename }, opts) {
|
|
111
|
+
return oazapfts.ok(oazapfts.fetchBlob(`/admin/database-backups/${encodeURIComponent(filename)}`, {
|
|
112
|
+
...opts
|
|
113
|
+
}));
|
|
114
|
+
}
|
|
70
115
|
/**
|
|
71
116
|
* Set maintenance mode
|
|
72
117
|
*/
|
|
@@ -77,6 +122,14 @@ export function setMaintenanceMode({ setMaintenanceModeDto }, opts) {
|
|
|
77
122
|
body: setMaintenanceModeDto
|
|
78
123
|
})));
|
|
79
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Detect existing install
|
|
127
|
+
*/
|
|
128
|
+
export function detectPriorInstall(opts) {
|
|
129
|
+
return oazapfts.ok(oazapfts.fetchJson("/admin/maintenance/detect-install", {
|
|
130
|
+
...opts
|
|
131
|
+
}));
|
|
132
|
+
}
|
|
80
133
|
/**
|
|
81
134
|
* Log into maintenance mode
|
|
82
135
|
*/
|
|
@@ -87,6 +140,14 @@ export function maintenanceLogin({ maintenanceLoginDto }, opts) {
|
|
|
87
140
|
body: maintenanceLoginDto
|
|
88
141
|
})));
|
|
89
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* Get maintenance mode status
|
|
145
|
+
*/
|
|
146
|
+
export function getMaintenanceStatus(opts) {
|
|
147
|
+
return oazapfts.ok(oazapfts.fetchJson("/admin/maintenance/status", {
|
|
148
|
+
...opts
|
|
149
|
+
}));
|
|
150
|
+
}
|
|
90
151
|
/**
|
|
91
152
|
* Create a notification
|
|
92
153
|
*/
|
|
@@ -475,6 +536,26 @@ export function runAssetJobs({ assetJobsDto }, opts) {
|
|
|
475
536
|
body: assetJobsDto
|
|
476
537
|
})));
|
|
477
538
|
}
|
|
539
|
+
/**
|
|
540
|
+
* Delete asset metadata
|
|
541
|
+
*/
|
|
542
|
+
export function deleteBulkAssetMetadata({ assetMetadataBulkDeleteDto }, opts) {
|
|
543
|
+
return oazapfts.ok(oazapfts.fetchText("/assets/metadata", oazapfts.json({
|
|
544
|
+
...opts,
|
|
545
|
+
method: "DELETE",
|
|
546
|
+
body: assetMetadataBulkDeleteDto
|
|
547
|
+
})));
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Upsert asset metadata
|
|
551
|
+
*/
|
|
552
|
+
export function updateBulkAssetMetadata({ assetMetadataBulkUpsertDto }, opts) {
|
|
553
|
+
return oazapfts.ok(oazapfts.fetchJson("/assets/metadata", oazapfts.json({
|
|
554
|
+
...opts,
|
|
555
|
+
method: "PUT",
|
|
556
|
+
body: assetMetadataBulkUpsertDto
|
|
557
|
+
})));
|
|
558
|
+
}
|
|
478
559
|
/**
|
|
479
560
|
* Get random assets
|
|
480
561
|
*/
|
|
@@ -518,6 +599,33 @@ export function updateAsset({ id, updateAssetDto }, opts) {
|
|
|
518
599
|
body: updateAssetDto
|
|
519
600
|
})));
|
|
520
601
|
}
|
|
602
|
+
/**
|
|
603
|
+
* Remove edits from an existing asset
|
|
604
|
+
*/
|
|
605
|
+
export function removeAssetEdits({ id }, opts) {
|
|
606
|
+
return oazapfts.ok(oazapfts.fetchText(`/assets/${encodeURIComponent(id)}/edits`, {
|
|
607
|
+
...opts,
|
|
608
|
+
method: "DELETE"
|
|
609
|
+
}));
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* Retrieve edits for an existing asset
|
|
613
|
+
*/
|
|
614
|
+
export function getAssetEdits({ id }, opts) {
|
|
615
|
+
return oazapfts.ok(oazapfts.fetchJson(`/assets/${encodeURIComponent(id)}/edits`, {
|
|
616
|
+
...opts
|
|
617
|
+
}));
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* Apply edits to an existing asset
|
|
621
|
+
*/
|
|
622
|
+
export function editAsset({ id, assetEditActionListDto }, opts) {
|
|
623
|
+
return oazapfts.ok(oazapfts.fetchJson(`/assets/${encodeURIComponent(id)}/edits`, oazapfts.json({
|
|
624
|
+
...opts,
|
|
625
|
+
method: "PUT",
|
|
626
|
+
body: assetEditActionListDto
|
|
627
|
+
})));
|
|
628
|
+
}
|
|
521
629
|
/**
|
|
522
630
|
* Get asset metadata
|
|
523
631
|
*/
|
|
@@ -564,8 +672,9 @@ export function getAssetOcr({ id }, opts) {
|
|
|
564
672
|
/**
|
|
565
673
|
* Download original asset
|
|
566
674
|
*/
|
|
567
|
-
export function downloadAsset({ id, key, slug }, opts) {
|
|
675
|
+
export function downloadAsset({ edited, id, key, slug }, opts) {
|
|
568
676
|
return oazapfts.ok(oazapfts.fetchBlob(`/assets/${encodeURIComponent(id)}/original${QS.query(QS.explode({
|
|
677
|
+
edited,
|
|
569
678
|
key,
|
|
570
679
|
slug
|
|
571
680
|
}))}`, {
|
|
@@ -588,8 +697,9 @@ export function replaceAsset({ id, key, slug, assetMediaReplaceDto }, opts) {
|
|
|
588
697
|
/**
|
|
589
698
|
* View asset thumbnail
|
|
590
699
|
*/
|
|
591
|
-
export function viewAsset({ id, key, size, slug }, opts) {
|
|
700
|
+
export function viewAsset({ edited, id, key, size, slug }, opts) {
|
|
592
701
|
return oazapfts.ok(oazapfts.fetchBlob(`/assets/${encodeURIComponent(id)}/thumbnail${QS.query(QS.explode({
|
|
702
|
+
edited,
|
|
593
703
|
key,
|
|
594
704
|
size,
|
|
595
705
|
slug
|
|
@@ -1289,6 +1399,14 @@ export function getPlugins(opts) {
|
|
|
1289
1399
|
...opts
|
|
1290
1400
|
}));
|
|
1291
1401
|
}
|
|
1402
|
+
/**
|
|
1403
|
+
* List all plugin triggers
|
|
1404
|
+
*/
|
|
1405
|
+
export function getPluginTriggers(opts) {
|
|
1406
|
+
return oazapfts.ok(oazapfts.fetchJson("/plugins/triggers", {
|
|
1407
|
+
...opts
|
|
1408
|
+
}));
|
|
1409
|
+
}
|
|
1292
1410
|
/**
|
|
1293
1411
|
* Retrieve a plugin
|
|
1294
1412
|
*/
|
|
@@ -1659,9 +1777,10 @@ export function lockSession({ id }, opts) {
|
|
|
1659
1777
|
/**
|
|
1660
1778
|
* Retrieve all shared links
|
|
1661
1779
|
*/
|
|
1662
|
-
export function getAllSharedLinks({ albumId }, opts) {
|
|
1780
|
+
export function getAllSharedLinks({ albumId, id }, opts) {
|
|
1663
1781
|
return oazapfts.ok(oazapfts.fetchJson(`/shared-links${QS.query(QS.explode({
|
|
1664
|
-
albumId
|
|
1782
|
+
albumId,
|
|
1783
|
+
id
|
|
1665
1784
|
}))}`, {
|
|
1666
1785
|
...opts
|
|
1667
1786
|
}));
|
|
@@ -2315,7 +2434,18 @@ export var MaintenanceAction;
|
|
|
2315
2434
|
(function (MaintenanceAction) {
|
|
2316
2435
|
MaintenanceAction["Start"] = "start";
|
|
2317
2436
|
MaintenanceAction["End"] = "end";
|
|
2437
|
+
MaintenanceAction["SelectDatabaseRestore"] = "select_database_restore";
|
|
2438
|
+
MaintenanceAction["RestoreDatabase"] = "restore_database";
|
|
2318
2439
|
})(MaintenanceAction || (MaintenanceAction = {}));
|
|
2440
|
+
export var StorageFolder;
|
|
2441
|
+
(function (StorageFolder) {
|
|
2442
|
+
StorageFolder["EncodedVideo"] = "encoded-video";
|
|
2443
|
+
StorageFolder["Library"] = "library";
|
|
2444
|
+
StorageFolder["Upload"] = "upload";
|
|
2445
|
+
StorageFolder["Profile"] = "profile";
|
|
2446
|
+
StorageFolder["Thumbs"] = "thumbs";
|
|
2447
|
+
StorageFolder["Backups"] = "backups";
|
|
2448
|
+
})(StorageFolder || (StorageFolder = {}));
|
|
2319
2449
|
export var NotificationLevel;
|
|
2320
2450
|
(function (NotificationLevel) {
|
|
2321
2451
|
NotificationLevel["Success"] = "success";
|
|
@@ -2404,6 +2534,10 @@ export var Permission;
|
|
|
2404
2534
|
Permission["AssetUpload"] = "asset.upload";
|
|
2405
2535
|
Permission["AssetReplace"] = "asset.replace";
|
|
2406
2536
|
Permission["AssetCopy"] = "asset.copy";
|
|
2537
|
+
Permission["AssetDerive"] = "asset.derive";
|
|
2538
|
+
Permission["AssetEditGet"] = "asset.edit.get";
|
|
2539
|
+
Permission["AssetEditCreate"] = "asset.edit.create";
|
|
2540
|
+
Permission["AssetEditDelete"] = "asset.edit.delete";
|
|
2407
2541
|
Permission["AlbumCreate"] = "album.create";
|
|
2408
2542
|
Permission["AlbumRead"] = "album.read";
|
|
2409
2543
|
Permission["AlbumUpdate"] = "album.update";
|
|
@@ -2419,12 +2553,17 @@ export var Permission;
|
|
|
2419
2553
|
Permission["AuthChangePassword"] = "auth.changePassword";
|
|
2420
2554
|
Permission["AuthDeviceDelete"] = "authDevice.delete";
|
|
2421
2555
|
Permission["ArchiveRead"] = "archive.read";
|
|
2556
|
+
Permission["BackupList"] = "backup.list";
|
|
2557
|
+
Permission["BackupDownload"] = "backup.download";
|
|
2558
|
+
Permission["BackupUpload"] = "backup.upload";
|
|
2559
|
+
Permission["BackupDelete"] = "backup.delete";
|
|
2422
2560
|
Permission["DuplicateRead"] = "duplicate.read";
|
|
2423
2561
|
Permission["DuplicateDelete"] = "duplicate.delete";
|
|
2424
2562
|
Permission["FaceCreate"] = "face.create";
|
|
2425
2563
|
Permission["FaceRead"] = "face.read";
|
|
2426
2564
|
Permission["FaceUpdate"] = "face.update";
|
|
2427
2565
|
Permission["FaceDelete"] = "face.delete";
|
|
2566
|
+
Permission["FolderRead"] = "folder.read";
|
|
2428
2567
|
Permission["JobCreate"] = "job.create";
|
|
2429
2568
|
Permission["JobRead"] = "job.read";
|
|
2430
2569
|
Permission["LibraryCreate"] = "library.create";
|
|
@@ -2435,6 +2574,8 @@ export var Permission;
|
|
|
2435
2574
|
Permission["TimelineRead"] = "timeline.read";
|
|
2436
2575
|
Permission["TimelineDownload"] = "timeline.download";
|
|
2437
2576
|
Permission["Maintenance"] = "maintenance";
|
|
2577
|
+
Permission["MapRead"] = "map.read";
|
|
2578
|
+
Permission["MapSearch"] = "map.search";
|
|
2438
2579
|
Permission["MemoryCreate"] = "memory.create";
|
|
2439
2580
|
Permission["MemoryRead"] = "memory.read";
|
|
2440
2581
|
Permission["MemoryUpdate"] = "memory.update";
|
|
@@ -2530,10 +2671,6 @@ export var Permission;
|
|
|
2530
2671
|
Permission["AdminSessionRead"] = "adminSession.read";
|
|
2531
2672
|
Permission["AdminAuthUnlinkAll"] = "adminAuth.unlinkAll";
|
|
2532
2673
|
})(Permission || (Permission = {}));
|
|
2533
|
-
export var AssetMetadataKey;
|
|
2534
|
-
(function (AssetMetadataKey) {
|
|
2535
|
-
AssetMetadataKey["MobileApp"] = "mobile-app";
|
|
2536
|
-
})(AssetMetadataKey || (AssetMetadataKey = {}));
|
|
2537
2674
|
export var AssetMediaStatus;
|
|
2538
2675
|
(function (AssetMediaStatus) {
|
|
2539
2676
|
AssetMediaStatus["Created"] = "created";
|
|
@@ -2557,8 +2694,20 @@ export var AssetJobName;
|
|
|
2557
2694
|
AssetJobName["RegenerateThumbnail"] = "regenerate-thumbnail";
|
|
2558
2695
|
AssetJobName["TranscodeVideo"] = "transcode-video";
|
|
2559
2696
|
})(AssetJobName || (AssetJobName = {}));
|
|
2697
|
+
export var AssetEditAction;
|
|
2698
|
+
(function (AssetEditAction) {
|
|
2699
|
+
AssetEditAction["Crop"] = "crop";
|
|
2700
|
+
AssetEditAction["Rotate"] = "rotate";
|
|
2701
|
+
AssetEditAction["Mirror"] = "mirror";
|
|
2702
|
+
})(AssetEditAction || (AssetEditAction = {}));
|
|
2703
|
+
export var MirrorAxis;
|
|
2704
|
+
(function (MirrorAxis) {
|
|
2705
|
+
MirrorAxis["Horizontal"] = "horizontal";
|
|
2706
|
+
MirrorAxis["Vertical"] = "vertical";
|
|
2707
|
+
})(MirrorAxis || (MirrorAxis = {}));
|
|
2560
2708
|
export var AssetMediaSize;
|
|
2561
2709
|
(function (AssetMediaSize) {
|
|
2710
|
+
AssetMediaSize["Original"] = "original";
|
|
2562
2711
|
AssetMediaSize["Fullsize"] = "fullsize";
|
|
2563
2712
|
AssetMediaSize["Preview"] = "preview";
|
|
2564
2713
|
AssetMediaSize["Thumbnail"] = "thumbnail";
|
|
@@ -2591,6 +2740,7 @@ export var QueueName;
|
|
|
2591
2740
|
QueueName["BackupDatabase"] = "backupDatabase";
|
|
2592
2741
|
QueueName["Ocr"] = "ocr";
|
|
2593
2742
|
QueueName["Workflow"] = "workflow";
|
|
2743
|
+
QueueName["Editor"] = "editor";
|
|
2594
2744
|
})(QueueName || (QueueName = {}));
|
|
2595
2745
|
export var QueueCommand;
|
|
2596
2746
|
(function (QueueCommand) {
|
|
@@ -2615,12 +2765,17 @@ export var PartnerDirection;
|
|
|
2615
2765
|
PartnerDirection["SharedBy"] = "shared-by";
|
|
2616
2766
|
PartnerDirection["SharedWith"] = "shared-with";
|
|
2617
2767
|
})(PartnerDirection || (PartnerDirection = {}));
|
|
2618
|
-
export var
|
|
2619
|
-
(function (
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
})(
|
|
2768
|
+
export var PluginContextType;
|
|
2769
|
+
(function (PluginContextType) {
|
|
2770
|
+
PluginContextType["Asset"] = "asset";
|
|
2771
|
+
PluginContextType["Album"] = "album";
|
|
2772
|
+
PluginContextType["Person"] = "person";
|
|
2773
|
+
})(PluginContextType || (PluginContextType = {}));
|
|
2774
|
+
export var PluginTriggerType;
|
|
2775
|
+
(function (PluginTriggerType) {
|
|
2776
|
+
PluginTriggerType["AssetCreate"] = "AssetCreate";
|
|
2777
|
+
PluginTriggerType["PersonRecognized"] = "PersonRecognized";
|
|
2778
|
+
})(PluginTriggerType || (PluginTriggerType = {}));
|
|
2624
2779
|
export var QueueJobStatus;
|
|
2625
2780
|
(function (QueueJobStatus) {
|
|
2626
2781
|
QueueJobStatus["Active"] = "active";
|
|
@@ -2638,6 +2793,7 @@ export var JobName;
|
|
|
2638
2793
|
JobName["AssetDetectFaces"] = "AssetDetectFaces";
|
|
2639
2794
|
JobName["AssetDetectDuplicatesQueueAll"] = "AssetDetectDuplicatesQueueAll";
|
|
2640
2795
|
JobName["AssetDetectDuplicates"] = "AssetDetectDuplicates";
|
|
2796
|
+
JobName["AssetEditThumbnailGeneration"] = "AssetEditThumbnailGeneration";
|
|
2641
2797
|
JobName["AssetEncodeVideoQueueAll"] = "AssetEncodeVideoQueueAll";
|
|
2642
2798
|
JobName["AssetEncodeVideo"] = "AssetEncodeVideo";
|
|
2643
2799
|
JobName["AssetEmptyTrash"] = "AssetEmptyTrash";
|
|
@@ -2855,13 +3011,9 @@ export var OAuthTokenEndpointAuthMethod;
|
|
|
2855
3011
|
OAuthTokenEndpointAuthMethod["ClientSecretPost"] = "client_secret_post";
|
|
2856
3012
|
OAuthTokenEndpointAuthMethod["ClientSecretBasic"] = "client_secret_basic";
|
|
2857
3013
|
})(OAuthTokenEndpointAuthMethod || (OAuthTokenEndpointAuthMethod = {}));
|
|
2858
|
-
export var
|
|
2859
|
-
(function (
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
(function (PluginTriggerType) {
|
|
2865
|
-
PluginTriggerType["AssetCreate"] = "AssetCreate";
|
|
2866
|
-
PluginTriggerType["PersonRecognized"] = "PersonRecognized";
|
|
2867
|
-
})(PluginTriggerType || (PluginTriggerType = {}));
|
|
3014
|
+
export var UserMetadataKey;
|
|
3015
|
+
(function (UserMetadataKey) {
|
|
3016
|
+
UserMetadataKey["Preferences"] = "preferences";
|
|
3017
|
+
UserMetadataKey["License"] = "license";
|
|
3018
|
+
UserMetadataKey["Onboarding"] = "onboarding";
|
|
3019
|
+
})(UserMetadataKey || (UserMetadataKey = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@immich/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"description": "Auto-generated TypeScript SDK for the Immich API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./build/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@oazapfts/runtime": "^1.0.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@types/node": "^24.10.
|
|
19
|
+
"@types/node": "^24.10.9",
|
|
20
20
|
"typescript": "^5.3.3"
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"directory": "open-api/typescript-sdk"
|
|
26
26
|
},
|
|
27
27
|
"volta": {
|
|
28
|
-
"node": "24.
|
|
28
|
+
"node": "24.13.0"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "tsc"
|