@immich/sdk 1.134.0 → 1.135.0
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/build/fetch-client.d.ts +131 -13
- package/build/fetch-client.js +63 -9
- package/package.json +2 -2
package/build/fetch-client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Immich
|
|
3
|
-
* 1.
|
|
3
|
+
* 1.135.0
|
|
4
4
|
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
5
|
* See https://www.npmjs.com/package/oazapfts
|
|
6
6
|
*/
|
|
@@ -33,6 +33,7 @@ export type ActivityCreateDto = {
|
|
|
33
33
|
};
|
|
34
34
|
export type ActivityStatisticsResponseDto = {
|
|
35
35
|
comments: number;
|
|
36
|
+
likes: number;
|
|
36
37
|
};
|
|
37
38
|
export type NotificationCreateDto = {
|
|
38
39
|
data?: object;
|
|
@@ -103,6 +104,7 @@ export type UserAdminResponseDto = {
|
|
|
103
104
|
export type UserAdminCreateDto = {
|
|
104
105
|
avatarColor?: (UserAvatarColor) | null;
|
|
105
106
|
email: string;
|
|
107
|
+
isAdmin?: boolean;
|
|
106
108
|
name: string;
|
|
107
109
|
notify?: boolean;
|
|
108
110
|
password: string;
|
|
@@ -116,6 +118,7 @@ export type UserAdminDeleteDto = {
|
|
|
116
118
|
export type UserAdminUpdateDto = {
|
|
117
119
|
avatarColor?: (UserAvatarColor) | null;
|
|
118
120
|
email?: string;
|
|
121
|
+
isAdmin?: boolean;
|
|
119
122
|
name?: string;
|
|
120
123
|
password?: string;
|
|
121
124
|
pinCode?: string | null;
|
|
@@ -123,6 +126,12 @@ export type UserAdminUpdateDto = {
|
|
|
123
126
|
shouldChangePassword?: boolean;
|
|
124
127
|
storageLabel?: string | null;
|
|
125
128
|
};
|
|
129
|
+
export type AlbumsResponse = {
|
|
130
|
+
defaultAssetOrder: AssetOrder;
|
|
131
|
+
};
|
|
132
|
+
export type CastResponse = {
|
|
133
|
+
gCastEnabled: boolean;
|
|
134
|
+
};
|
|
126
135
|
export type DownloadResponse = {
|
|
127
136
|
archiveSize: number;
|
|
128
137
|
includeEmbeddedVideos: boolean;
|
|
@@ -159,6 +168,8 @@ export type TagsResponse = {
|
|
|
159
168
|
sidebarWeb: boolean;
|
|
160
169
|
};
|
|
161
170
|
export type UserPreferencesResponseDto = {
|
|
171
|
+
albums: AlbumsResponse;
|
|
172
|
+
cast: CastResponse;
|
|
162
173
|
download: DownloadResponse;
|
|
163
174
|
emailNotifications: EmailNotificationsResponse;
|
|
164
175
|
folders: FoldersResponse;
|
|
@@ -169,9 +180,15 @@ export type UserPreferencesResponseDto = {
|
|
|
169
180
|
sharedLinks: SharedLinksResponse;
|
|
170
181
|
tags: TagsResponse;
|
|
171
182
|
};
|
|
183
|
+
export type AlbumsUpdate = {
|
|
184
|
+
defaultAssetOrder?: AssetOrder;
|
|
185
|
+
};
|
|
172
186
|
export type AvatarUpdate = {
|
|
173
187
|
color?: UserAvatarColor;
|
|
174
188
|
};
|
|
189
|
+
export type CastUpdate = {
|
|
190
|
+
gCastEnabled?: boolean;
|
|
191
|
+
};
|
|
175
192
|
export type DownloadUpdate = {
|
|
176
193
|
archiveSize?: number;
|
|
177
194
|
includeEmbeddedVideos?: boolean;
|
|
@@ -208,7 +225,9 @@ export type TagsUpdate = {
|
|
|
208
225
|
sidebarWeb?: boolean;
|
|
209
226
|
};
|
|
210
227
|
export type UserPreferencesUpdateDto = {
|
|
228
|
+
albums?: AlbumsUpdate;
|
|
211
229
|
avatar?: AvatarUpdate;
|
|
230
|
+
cast?: CastUpdate;
|
|
212
231
|
download?: DownloadUpdate;
|
|
213
232
|
emailNotifications?: EmailNotificationsUpdate;
|
|
214
233
|
folders?: FoldersUpdate;
|
|
@@ -298,7 +317,9 @@ export type AssetResponseDto = {
|
|
|
298
317
|
duplicateId?: string | null;
|
|
299
318
|
duration: string;
|
|
300
319
|
exifInfo?: ExifResponseDto;
|
|
320
|
+
/** The actual UTC timestamp when the file was created/captured, preserving timezone information. This is the authoritative timestamp for chronological sorting within timeline groups. Combined with timezone data, this can be used to determine the exact moment the photo was taken. */
|
|
301
321
|
fileCreatedAt: string;
|
|
322
|
+
/** 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. */
|
|
302
323
|
fileModifiedAt: string;
|
|
303
324
|
hasMetadata: boolean;
|
|
304
325
|
id: string;
|
|
@@ -309,6 +330,7 @@ export type AssetResponseDto = {
|
|
|
309
330
|
/** This property was deprecated in v1.106.0 */
|
|
310
331
|
libraryId?: string | null;
|
|
311
332
|
livePhotoVideoId?: string | null;
|
|
333
|
+
/** The local date and time when the photo/video was taken, derived from EXIF metadata. This represents the photographer's local time regardless of timezone, stored as a timezone-agnostic timestamp. Used for timeline grouping by "local" days and months. */
|
|
312
334
|
localDateTime: string;
|
|
313
335
|
originalFileName: string;
|
|
314
336
|
originalMimeType?: string;
|
|
@@ -323,6 +345,7 @@ export type AssetResponseDto = {
|
|
|
323
345
|
thumbhash: string | null;
|
|
324
346
|
"type": AssetTypeEnum;
|
|
325
347
|
unassignedFaces?: AssetFaceWithoutPersonResponseDto[];
|
|
348
|
+
/** 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. */
|
|
326
349
|
updatedAt: string;
|
|
327
350
|
visibility: AssetVisibility;
|
|
328
351
|
};
|
|
@@ -402,7 +425,8 @@ export type ApiKeyCreateResponseDto = {
|
|
|
402
425
|
secret: string;
|
|
403
426
|
};
|
|
404
427
|
export type ApiKeyUpdateDto = {
|
|
405
|
-
name
|
|
428
|
+
name?: string;
|
|
429
|
+
permissions?: Permission[];
|
|
406
430
|
};
|
|
407
431
|
export type AssetBulkDeleteDto = {
|
|
408
432
|
force?: boolean;
|
|
@@ -415,6 +439,7 @@ export type AssetMediaCreateDto = {
|
|
|
415
439
|
duration?: string;
|
|
416
440
|
fileCreatedAt: string;
|
|
417
441
|
fileModifiedAt: string;
|
|
442
|
+
filename?: string;
|
|
418
443
|
isFavorite?: boolean;
|
|
419
444
|
livePhotoVideoId?: string;
|
|
420
445
|
sidecarData?: Blob;
|
|
@@ -481,6 +506,7 @@ export type AssetMediaReplaceDto = {
|
|
|
481
506
|
duration?: string;
|
|
482
507
|
fileCreatedAt: string;
|
|
483
508
|
fileModifiedAt: string;
|
|
509
|
+
filename?: string;
|
|
484
510
|
};
|
|
485
511
|
export type SignUpDto = {
|
|
486
512
|
email: string;
|
|
@@ -498,6 +524,7 @@ export type LoginCredentialDto = {
|
|
|
498
524
|
export type LoginResponseDto = {
|
|
499
525
|
accessToken: string;
|
|
500
526
|
isAdmin: boolean;
|
|
527
|
+
isOnboarded: boolean;
|
|
501
528
|
name: string;
|
|
502
529
|
profileImagePath: string;
|
|
503
530
|
shouldChangePassword: boolean;
|
|
@@ -714,6 +741,9 @@ export type MemoryCreateDto = {
|
|
|
714
741
|
seenAt?: string;
|
|
715
742
|
"type": MemoryType;
|
|
716
743
|
};
|
|
744
|
+
export type MemoryStatisticsResponseDto = {
|
|
745
|
+
total: number;
|
|
746
|
+
};
|
|
717
747
|
export type MemoryUpdateDto = {
|
|
718
748
|
isSaved?: boolean;
|
|
719
749
|
memoryAt?: string;
|
|
@@ -825,6 +855,7 @@ export type SearchExploreResponseDto = {
|
|
|
825
855
|
items: SearchExploreItem[];
|
|
826
856
|
};
|
|
827
857
|
export type MetadataSearchDto = {
|
|
858
|
+
albumIds?: string[];
|
|
828
859
|
checksum?: string;
|
|
829
860
|
city?: string | null;
|
|
830
861
|
country?: string | null;
|
|
@@ -901,6 +932,7 @@ export type PlacesResponseDto = {
|
|
|
901
932
|
name: string;
|
|
902
933
|
};
|
|
903
934
|
export type RandomSearchDto = {
|
|
935
|
+
albumIds?: string[];
|
|
904
936
|
city?: string | null;
|
|
905
937
|
country?: string | null;
|
|
906
938
|
createdAfter?: string;
|
|
@@ -934,6 +966,7 @@ export type RandomSearchDto = {
|
|
|
934
966
|
withStacked?: boolean;
|
|
935
967
|
};
|
|
936
968
|
export type SmartSearchDto = {
|
|
969
|
+
albumIds?: string[];
|
|
937
970
|
city?: string | null;
|
|
938
971
|
country?: string | null;
|
|
939
972
|
createdAfter?: string;
|
|
@@ -967,6 +1000,39 @@ export type SmartSearchDto = {
|
|
|
967
1000
|
withDeleted?: boolean;
|
|
968
1001
|
withExif?: boolean;
|
|
969
1002
|
};
|
|
1003
|
+
export type StatisticsSearchDto = {
|
|
1004
|
+
albumIds?: string[];
|
|
1005
|
+
city?: string | null;
|
|
1006
|
+
country?: string | null;
|
|
1007
|
+
createdAfter?: string;
|
|
1008
|
+
createdBefore?: string;
|
|
1009
|
+
description?: string;
|
|
1010
|
+
deviceId?: string;
|
|
1011
|
+
isEncoded?: boolean;
|
|
1012
|
+
isFavorite?: boolean;
|
|
1013
|
+
isMotion?: boolean;
|
|
1014
|
+
isNotInAlbum?: boolean;
|
|
1015
|
+
isOffline?: boolean;
|
|
1016
|
+
lensModel?: string | null;
|
|
1017
|
+
libraryId?: string | null;
|
|
1018
|
+
make?: string;
|
|
1019
|
+
model?: string | null;
|
|
1020
|
+
personIds?: string[];
|
|
1021
|
+
rating?: number;
|
|
1022
|
+
state?: string | null;
|
|
1023
|
+
tagIds?: string[];
|
|
1024
|
+
takenAfter?: string;
|
|
1025
|
+
takenBefore?: string;
|
|
1026
|
+
trashedAfter?: string;
|
|
1027
|
+
trashedBefore?: string;
|
|
1028
|
+
"type"?: AssetTypeEnum;
|
|
1029
|
+
updatedAfter?: string;
|
|
1030
|
+
updatedBefore?: string;
|
|
1031
|
+
visibility?: AssetVisibility;
|
|
1032
|
+
};
|
|
1033
|
+
export type SearchStatisticsResponseDto = {
|
|
1034
|
+
total: number;
|
|
1035
|
+
};
|
|
970
1036
|
export type ServerAboutResponseDto = {
|
|
971
1037
|
build?: string;
|
|
972
1038
|
buildImage?: string;
|
|
@@ -990,6 +1056,12 @@ export type ServerAboutResponseDto = {
|
|
|
990
1056
|
version: string;
|
|
991
1057
|
versionUrl: string;
|
|
992
1058
|
};
|
|
1059
|
+
export type ServerApkLinksDto = {
|
|
1060
|
+
arm64v8a: string;
|
|
1061
|
+
armeabiv7a: string;
|
|
1062
|
+
universal: string;
|
|
1063
|
+
x86_64: string;
|
|
1064
|
+
};
|
|
993
1065
|
export type ServerConfigDto = {
|
|
994
1066
|
externalDomain: string;
|
|
995
1067
|
isInitialized: boolean;
|
|
@@ -1315,7 +1387,7 @@ export type SystemConfigOAuthDto = {
|
|
|
1315
1387
|
buttonText: string;
|
|
1316
1388
|
clientId: string;
|
|
1317
1389
|
clientSecret: string;
|
|
1318
|
-
defaultStorageQuota: number;
|
|
1390
|
+
defaultStorageQuota: number | null;
|
|
1319
1391
|
enabled: boolean;
|
|
1320
1392
|
issuerUrl: string;
|
|
1321
1393
|
mobileOverrideEnabled: boolean;
|
|
@@ -1420,25 +1492,43 @@ export type TagUpdateDto = {
|
|
|
1420
1492
|
color?: string | null;
|
|
1421
1493
|
};
|
|
1422
1494
|
export type TimeBucketAssetResponseDto = {
|
|
1495
|
+
/** Array of city names extracted from EXIF GPS data */
|
|
1423
1496
|
city: (string | null)[];
|
|
1497
|
+
/** Array of country names extracted from EXIF GPS data */
|
|
1424
1498
|
country: (string | null)[];
|
|
1499
|
+
/** Array of video durations in HH:MM:SS format (null for images) */
|
|
1425
1500
|
duration: (string | null)[];
|
|
1501
|
+
/** Array of file creation timestamps in UTC (ISO 8601 format, without timezone) */
|
|
1502
|
+
fileCreatedAt: string[];
|
|
1503
|
+
/** Array of asset IDs in the time bucket */
|
|
1426
1504
|
id: string[];
|
|
1505
|
+
/** Array indicating whether each asset is favorited */
|
|
1427
1506
|
isFavorite: boolean[];
|
|
1507
|
+
/** Array indicating whether each asset is an image (false for videos) */
|
|
1428
1508
|
isImage: boolean[];
|
|
1509
|
+
/** Array indicating whether each asset is in the trash */
|
|
1429
1510
|
isTrashed: boolean[];
|
|
1511
|
+
/** Array of live photo video asset IDs (null for non-live photos) */
|
|
1430
1512
|
livePhotoVideoId: (string | null)[];
|
|
1431
|
-
|
|
1513
|
+
/** Array of UTC offset hours at the time each photo was taken. Positive values are east of UTC, negative values are west of UTC. Values may be fractional (e.g., 5.5 for +05:30, -9.75 for -09:45). Applying this offset to 'fileCreatedAt' will give you the time the photo was taken from the photographer's perspective. */
|
|
1514
|
+
localOffsetHours: number[];
|
|
1515
|
+
/** Array of owner IDs for each asset */
|
|
1432
1516
|
ownerId: string[];
|
|
1517
|
+
/** Array of projection types for 360° content (e.g., "EQUIRECTANGULAR", "CUBEFACE", "CYLINDRICAL") */
|
|
1433
1518
|
projectionType: (string | null)[];
|
|
1519
|
+
/** Array of aspect ratios (width/height) for each asset */
|
|
1434
1520
|
ratio: number[];
|
|
1435
|
-
/**
|
|
1521
|
+
/** Array of stack information as [stackId, assetCount] tuples (null for non-stacked assets) */
|
|
1436
1522
|
stack?: (string[] | null)[];
|
|
1523
|
+
/** Array of BlurHash strings for generating asset previews (base64 encoded) */
|
|
1437
1524
|
thumbhash: (string | null)[];
|
|
1525
|
+
/** Array of visibility statuses for each asset (e.g., ARCHIVE, TIMELINE, HIDDEN, LOCKED) */
|
|
1438
1526
|
visibility: AssetVisibility[];
|
|
1439
1527
|
};
|
|
1440
1528
|
export type TimeBucketsResponseDto = {
|
|
1529
|
+
/** Number of assets in this time bucket */
|
|
1441
1530
|
count: number;
|
|
1531
|
+
/** Time bucket identifier in YYYY-MM-DD format representing the start of the time period */
|
|
1442
1532
|
timeBucket: string;
|
|
1443
1533
|
};
|
|
1444
1534
|
export type TrashResponseDto = {
|
|
@@ -1450,6 +1540,12 @@ export type UserUpdateMeDto = {
|
|
|
1450
1540
|
name?: string;
|
|
1451
1541
|
password?: string;
|
|
1452
1542
|
};
|
|
1543
|
+
export type OnboardingResponseDto = {
|
|
1544
|
+
isOnboarded: boolean;
|
|
1545
|
+
};
|
|
1546
|
+
export type OnboardingDto = {
|
|
1547
|
+
isOnboarded: boolean;
|
|
1548
|
+
};
|
|
1453
1549
|
export type CreateProfileImageDto = {
|
|
1454
1550
|
file: Blob;
|
|
1455
1551
|
};
|
|
@@ -1680,7 +1776,13 @@ export declare function getDownloadInfo({ key, downloadInfoDto }: {
|
|
|
1680
1776
|
key?: string;
|
|
1681
1777
|
downloadInfoDto: DownloadInfoDto;
|
|
1682
1778
|
}, opts?: Oazapfts.RequestOpts): Promise<DownloadResponseDto>;
|
|
1779
|
+
export declare function deleteDuplicates({ bulkIdsDto }: {
|
|
1780
|
+
bulkIdsDto: BulkIdsDto;
|
|
1781
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
1683
1782
|
export declare function getAssetDuplicates(opts?: Oazapfts.RequestOpts): Promise<DuplicateResponseDto[]>;
|
|
1783
|
+
export declare function deleteDuplicate({ id }: {
|
|
1784
|
+
id: string;
|
|
1785
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
1684
1786
|
export declare function getFaces({ id }: {
|
|
1685
1787
|
id: string;
|
|
1686
1788
|
}, opts?: Oazapfts.RequestOpts): Promise<AssetFaceResponseDto[]>;
|
|
@@ -1748,6 +1850,12 @@ export declare function searchMemories({ $for, isSaved, isTrashed, $type }: {
|
|
|
1748
1850
|
export declare function createMemory({ memoryCreateDto }: {
|
|
1749
1851
|
memoryCreateDto: MemoryCreateDto;
|
|
1750
1852
|
}, opts?: Oazapfts.RequestOpts): Promise<MemoryResponseDto>;
|
|
1853
|
+
export declare function memoriesStatistics({ $for, isSaved, isTrashed, $type }: {
|
|
1854
|
+
$for?: string;
|
|
1855
|
+
isSaved?: boolean;
|
|
1856
|
+
isTrashed?: boolean;
|
|
1857
|
+
$type?: MemoryType;
|
|
1858
|
+
}, opts?: Oazapfts.RequestOpts): Promise<MemoryStatisticsResponseDto>;
|
|
1751
1859
|
export declare function deleteMemory({ id }: {
|
|
1752
1860
|
id: string;
|
|
1753
1861
|
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
@@ -1864,6 +1972,9 @@ export declare function searchRandom({ randomSearchDto }: {
|
|
|
1864
1972
|
export declare function searchSmart({ smartSearchDto }: {
|
|
1865
1973
|
smartSearchDto: SmartSearchDto;
|
|
1866
1974
|
}, opts?: Oazapfts.RequestOpts): Promise<SearchResponseDto>;
|
|
1975
|
+
export declare function searchAssetStatistics({ statisticsSearchDto }: {
|
|
1976
|
+
statisticsSearchDto: StatisticsSearchDto;
|
|
1977
|
+
}, opts?: Oazapfts.RequestOpts): Promise<SearchStatisticsResponseDto>;
|
|
1867
1978
|
export declare function getSearchSuggestions({ country, includeNull, make, model, state, $type }: {
|
|
1868
1979
|
country?: string;
|
|
1869
1980
|
includeNull?: boolean;
|
|
@@ -1873,6 +1984,7 @@ export declare function getSearchSuggestions({ country, includeNull, make, model
|
|
|
1873
1984
|
$type: SearchSuggestionType;
|
|
1874
1985
|
}, opts?: Oazapfts.RequestOpts): Promise<string[]>;
|
|
1875
1986
|
export declare function getAboutInfo(opts?: Oazapfts.RequestOpts): Promise<ServerAboutResponseDto>;
|
|
1987
|
+
export declare function getApkLinks(opts?: Oazapfts.RequestOpts): Promise<ServerApkLinksDto>;
|
|
1876
1988
|
export declare function getServerConfig(opts?: Oazapfts.RequestOpts): Promise<ServerConfigDto>;
|
|
1877
1989
|
export declare function getServerFeatures(opts?: Oazapfts.RequestOpts): Promise<ServerFeaturesDto>;
|
|
1878
1990
|
export declare function deleteServerLicense(opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
@@ -2005,14 +2117,12 @@ export declare function tagAssets({ id, bulkIdsDto }: {
|
|
|
2005
2117
|
id: string;
|
|
2006
2118
|
bulkIdsDto: BulkIdsDto;
|
|
2007
2119
|
}, opts?: Oazapfts.RequestOpts): Promise<BulkIdResponseDto[]>;
|
|
2008
|
-
export declare function getTimeBucket({ albumId, isFavorite, isTrashed, key, order,
|
|
2120
|
+
export declare function getTimeBucket({ albumId, isFavorite, isTrashed, key, order, personId, tagId, timeBucket, userId, visibility, withPartners, withStacked }: {
|
|
2009
2121
|
albumId?: string;
|
|
2010
2122
|
isFavorite?: boolean;
|
|
2011
2123
|
isTrashed?: boolean;
|
|
2012
2124
|
key?: string;
|
|
2013
2125
|
order?: AssetOrder;
|
|
2014
|
-
page?: number;
|
|
2015
|
-
pageSize?: number;
|
|
2016
2126
|
personId?: string;
|
|
2017
2127
|
tagId?: string;
|
|
2018
2128
|
timeBucket: string;
|
|
@@ -2049,6 +2159,11 @@ export declare function getUserLicense(opts?: Oazapfts.RequestOpts): Promise<Lic
|
|
|
2049
2159
|
export declare function setUserLicense({ licenseKeyDto }: {
|
|
2050
2160
|
licenseKeyDto: LicenseKeyDto;
|
|
2051
2161
|
}, opts?: Oazapfts.RequestOpts): Promise<LicenseResponseDto>;
|
|
2162
|
+
export declare function deleteUserOnboarding(opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
2163
|
+
export declare function getUserOnboarding(opts?: Oazapfts.RequestOpts): Promise<OnboardingResponseDto>;
|
|
2164
|
+
export declare function setUserOnboarding({ onboardingDto }: {
|
|
2165
|
+
onboardingDto: OnboardingDto;
|
|
2166
|
+
}, opts?: Oazapfts.RequestOpts): Promise<OnboardingResponseDto>;
|
|
2052
2167
|
export declare function getMyPreferences(opts?: Oazapfts.RequestOpts): Promise<UserPreferencesResponseDto>;
|
|
2053
2168
|
export declare function updateMyPreferences({ userPreferencesUpdateDto }: {
|
|
2054
2169
|
userPreferencesUpdateDto: UserPreferencesUpdateDto;
|
|
@@ -2104,6 +2219,10 @@ export declare enum UserStatus {
|
|
|
2104
2219
|
Removing = "removing",
|
|
2105
2220
|
Deleted = "deleted"
|
|
2106
2221
|
}
|
|
2222
|
+
export declare enum AssetOrder {
|
|
2223
|
+
Asc = "asc",
|
|
2224
|
+
Desc = "desc"
|
|
2225
|
+
}
|
|
2107
2226
|
export declare enum AssetVisibility {
|
|
2108
2227
|
Archive = "archive",
|
|
2109
2228
|
Timeline = "timeline",
|
|
@@ -2125,10 +2244,6 @@ export declare enum AssetTypeEnum {
|
|
|
2125
2244
|
Audio = "AUDIO",
|
|
2126
2245
|
Other = "OTHER"
|
|
2127
2246
|
}
|
|
2128
|
-
export declare enum AssetOrder {
|
|
2129
|
-
Asc = "asc",
|
|
2130
|
-
Desc = "desc"
|
|
2131
|
-
}
|
|
2132
2247
|
export declare enum Error {
|
|
2133
2248
|
Duplicate = "duplicate",
|
|
2134
2249
|
NoPermission = "no_permission",
|
|
@@ -2309,12 +2424,15 @@ export declare enum SyncEntityType {
|
|
|
2309
2424
|
AssetDeleteV1 = "AssetDeleteV1",
|
|
2310
2425
|
AssetExifV1 = "AssetExifV1",
|
|
2311
2426
|
PartnerAssetV1 = "PartnerAssetV1",
|
|
2427
|
+
PartnerAssetBackfillV1 = "PartnerAssetBackfillV1",
|
|
2312
2428
|
PartnerAssetDeleteV1 = "PartnerAssetDeleteV1",
|
|
2313
2429
|
PartnerAssetExifV1 = "PartnerAssetExifV1",
|
|
2430
|
+
PartnerAssetExifBackfillV1 = "PartnerAssetExifBackfillV1",
|
|
2314
2431
|
AlbumV1 = "AlbumV1",
|
|
2315
2432
|
AlbumDeleteV1 = "AlbumDeleteV1",
|
|
2316
2433
|
AlbumUserV1 = "AlbumUserV1",
|
|
2317
|
-
AlbumUserDeleteV1 = "AlbumUserDeleteV1"
|
|
2434
|
+
AlbumUserDeleteV1 = "AlbumUserDeleteV1",
|
|
2435
|
+
SyncAckV1 = "SyncAckV1"
|
|
2318
2436
|
}
|
|
2319
2437
|
export declare enum SyncRequestType {
|
|
2320
2438
|
UsersV1 = "UsersV1",
|
package/build/fetch-client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Immich
|
|
3
|
-
* 1.
|
|
3
|
+
* 1.135.0
|
|
4
4
|
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
5
|
* See https://www.npmjs.com/package/oazapfts
|
|
6
6
|
*/
|
|
@@ -453,11 +453,24 @@ export function getDownloadInfo({ key, downloadInfoDto }, opts) {
|
|
|
453
453
|
body: downloadInfoDto
|
|
454
454
|
})));
|
|
455
455
|
}
|
|
456
|
+
export function deleteDuplicates({ bulkIdsDto }, opts) {
|
|
457
|
+
return oazapfts.ok(oazapfts.fetchText("/duplicates", oazapfts.json({
|
|
458
|
+
...opts,
|
|
459
|
+
method: "DELETE",
|
|
460
|
+
body: bulkIdsDto
|
|
461
|
+
})));
|
|
462
|
+
}
|
|
456
463
|
export function getAssetDuplicates(opts) {
|
|
457
464
|
return oazapfts.ok(oazapfts.fetchJson("/duplicates", {
|
|
458
465
|
...opts
|
|
459
466
|
}));
|
|
460
467
|
}
|
|
468
|
+
export function deleteDuplicate({ id }, opts) {
|
|
469
|
+
return oazapfts.ok(oazapfts.fetchText(`/duplicates/${encodeURIComponent(id)}`, {
|
|
470
|
+
...opts,
|
|
471
|
+
method: "DELETE"
|
|
472
|
+
}));
|
|
473
|
+
}
|
|
461
474
|
export function getFaces({ id }, opts) {
|
|
462
475
|
return oazapfts.ok(oazapfts.fetchJson(`/faces${QS.query(QS.explode({
|
|
463
476
|
id
|
|
@@ -590,6 +603,16 @@ export function createMemory({ memoryCreateDto }, opts) {
|
|
|
590
603
|
body: memoryCreateDto
|
|
591
604
|
})));
|
|
592
605
|
}
|
|
606
|
+
export function memoriesStatistics({ $for, isSaved, isTrashed, $type }, opts) {
|
|
607
|
+
return oazapfts.ok(oazapfts.fetchJson(`/memories/statistics${QS.query(QS.explode({
|
|
608
|
+
"for": $for,
|
|
609
|
+
isSaved,
|
|
610
|
+
isTrashed,
|
|
611
|
+
"type": $type
|
|
612
|
+
}))}`, {
|
|
613
|
+
...opts
|
|
614
|
+
}));
|
|
615
|
+
}
|
|
593
616
|
export function deleteMemory({ id }, opts) {
|
|
594
617
|
return oazapfts.ok(oazapfts.fetchText(`/memories/${encodeURIComponent(id)}`, {
|
|
595
618
|
...opts,
|
|
@@ -829,6 +852,13 @@ export function searchSmart({ smartSearchDto }, opts) {
|
|
|
829
852
|
body: smartSearchDto
|
|
830
853
|
})));
|
|
831
854
|
}
|
|
855
|
+
export function searchAssetStatistics({ statisticsSearchDto }, opts) {
|
|
856
|
+
return oazapfts.ok(oazapfts.fetchJson("/search/statistics", oazapfts.json({
|
|
857
|
+
...opts,
|
|
858
|
+
method: "POST",
|
|
859
|
+
body: statisticsSearchDto
|
|
860
|
+
})));
|
|
861
|
+
}
|
|
832
862
|
export function getSearchSuggestions({ country, includeNull, make, model, state, $type }, opts) {
|
|
833
863
|
return oazapfts.ok(oazapfts.fetchJson(`/search/suggestions${QS.query(QS.explode({
|
|
834
864
|
country,
|
|
@@ -846,6 +876,11 @@ export function getAboutInfo(opts) {
|
|
|
846
876
|
...opts
|
|
847
877
|
}));
|
|
848
878
|
}
|
|
879
|
+
export function getApkLinks(opts) {
|
|
880
|
+
return oazapfts.ok(oazapfts.fetchJson("/server/apk-links", {
|
|
881
|
+
...opts
|
|
882
|
+
}));
|
|
883
|
+
}
|
|
849
884
|
export function getServerConfig(opts) {
|
|
850
885
|
return oazapfts.ok(oazapfts.fetchJson("/server/config", {
|
|
851
886
|
...opts
|
|
@@ -1184,15 +1219,13 @@ export function tagAssets({ id, bulkIdsDto }, opts) {
|
|
|
1184
1219
|
body: bulkIdsDto
|
|
1185
1220
|
})));
|
|
1186
1221
|
}
|
|
1187
|
-
export function getTimeBucket({ albumId, isFavorite, isTrashed, key, order,
|
|
1222
|
+
export function getTimeBucket({ albumId, isFavorite, isTrashed, key, order, personId, tagId, timeBucket, userId, visibility, withPartners, withStacked }, opts) {
|
|
1188
1223
|
return oazapfts.ok(oazapfts.fetchJson(`/timeline/bucket${QS.query(QS.explode({
|
|
1189
1224
|
albumId,
|
|
1190
1225
|
isFavorite,
|
|
1191
1226
|
isTrashed,
|
|
1192
1227
|
key,
|
|
1193
1228
|
order,
|
|
1194
|
-
page,
|
|
1195
|
-
pageSize,
|
|
1196
1229
|
personId,
|
|
1197
1230
|
tagId,
|
|
1198
1231
|
timeBucket,
|
|
@@ -1275,6 +1308,24 @@ export function setUserLicense({ licenseKeyDto }, opts) {
|
|
|
1275
1308
|
body: licenseKeyDto
|
|
1276
1309
|
})));
|
|
1277
1310
|
}
|
|
1311
|
+
export function deleteUserOnboarding(opts) {
|
|
1312
|
+
return oazapfts.ok(oazapfts.fetchText("/users/me/onboarding", {
|
|
1313
|
+
...opts,
|
|
1314
|
+
method: "DELETE"
|
|
1315
|
+
}));
|
|
1316
|
+
}
|
|
1317
|
+
export function getUserOnboarding(opts) {
|
|
1318
|
+
return oazapfts.ok(oazapfts.fetchJson("/users/me/onboarding", {
|
|
1319
|
+
...opts
|
|
1320
|
+
}));
|
|
1321
|
+
}
|
|
1322
|
+
export function setUserOnboarding({ onboardingDto }, opts) {
|
|
1323
|
+
return oazapfts.ok(oazapfts.fetchJson("/users/me/onboarding", oazapfts.json({
|
|
1324
|
+
...opts,
|
|
1325
|
+
method: "PUT",
|
|
1326
|
+
body: onboardingDto
|
|
1327
|
+
})));
|
|
1328
|
+
}
|
|
1278
1329
|
export function getMyPreferences(opts) {
|
|
1279
1330
|
return oazapfts.ok(oazapfts.fetchJson("/users/me/preferences", {
|
|
1280
1331
|
...opts
|
|
@@ -1365,6 +1416,11 @@ export var UserStatus;
|
|
|
1365
1416
|
UserStatus["Removing"] = "removing";
|
|
1366
1417
|
UserStatus["Deleted"] = "deleted";
|
|
1367
1418
|
})(UserStatus || (UserStatus = {}));
|
|
1419
|
+
export var AssetOrder;
|
|
1420
|
+
(function (AssetOrder) {
|
|
1421
|
+
AssetOrder["Asc"] = "asc";
|
|
1422
|
+
AssetOrder["Desc"] = "desc";
|
|
1423
|
+
})(AssetOrder || (AssetOrder = {}));
|
|
1368
1424
|
export var AssetVisibility;
|
|
1369
1425
|
(function (AssetVisibility) {
|
|
1370
1426
|
AssetVisibility["Archive"] = "archive";
|
|
@@ -1390,11 +1446,6 @@ export var AssetTypeEnum;
|
|
|
1390
1446
|
AssetTypeEnum["Audio"] = "AUDIO";
|
|
1391
1447
|
AssetTypeEnum["Other"] = "OTHER";
|
|
1392
1448
|
})(AssetTypeEnum || (AssetTypeEnum = {}));
|
|
1393
|
-
export var AssetOrder;
|
|
1394
|
-
(function (AssetOrder) {
|
|
1395
|
-
AssetOrder["Asc"] = "asc";
|
|
1396
|
-
AssetOrder["Desc"] = "desc";
|
|
1397
|
-
})(AssetOrder || (AssetOrder = {}));
|
|
1398
1449
|
export var Error;
|
|
1399
1450
|
(function (Error) {
|
|
1400
1451
|
Error["Duplicate"] = "duplicate";
|
|
@@ -1591,12 +1642,15 @@ export var SyncEntityType;
|
|
|
1591
1642
|
SyncEntityType["AssetDeleteV1"] = "AssetDeleteV1";
|
|
1592
1643
|
SyncEntityType["AssetExifV1"] = "AssetExifV1";
|
|
1593
1644
|
SyncEntityType["PartnerAssetV1"] = "PartnerAssetV1";
|
|
1645
|
+
SyncEntityType["PartnerAssetBackfillV1"] = "PartnerAssetBackfillV1";
|
|
1594
1646
|
SyncEntityType["PartnerAssetDeleteV1"] = "PartnerAssetDeleteV1";
|
|
1595
1647
|
SyncEntityType["PartnerAssetExifV1"] = "PartnerAssetExifV1";
|
|
1648
|
+
SyncEntityType["PartnerAssetExifBackfillV1"] = "PartnerAssetExifBackfillV1";
|
|
1596
1649
|
SyncEntityType["AlbumV1"] = "AlbumV1";
|
|
1597
1650
|
SyncEntityType["AlbumDeleteV1"] = "AlbumDeleteV1";
|
|
1598
1651
|
SyncEntityType["AlbumUserV1"] = "AlbumUserV1";
|
|
1599
1652
|
SyncEntityType["AlbumUserDeleteV1"] = "AlbumUserDeleteV1";
|
|
1653
|
+
SyncEntityType["SyncAckV1"] = "SyncAckV1";
|
|
1600
1654
|
})(SyncEntityType || (SyncEntityType = {}));
|
|
1601
1655
|
export var SyncRequestType;
|
|
1602
1656
|
(function (SyncRequestType) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@immich/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.135.0",
|
|
4
4
|
"description": "Auto-generated TypeScript SDK for the Immich API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./build/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@oazapfts/runtime": "^1.0.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@types/node": "^22.15.
|
|
22
|
+
"@types/node": "^22.15.31",
|
|
23
23
|
"typescript": "^5.3.3"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|