@immich/sdk 1.132.1 → 1.133.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/.nvmrc +1 -1
- package/build/fetch-client.d.ts +233 -118
- package/build/fetch-client.js +168 -68
- package/package.json +3 -3
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
22.
|
|
1
|
+
22.15.1
|
package/build/fetch-client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Immich
|
|
3
|
-
* 1.
|
|
3
|
+
* 1.133.0
|
|
4
4
|
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
5
|
* See https://www.npmjs.com/package/oazapfts
|
|
6
6
|
*/
|
|
@@ -34,6 +34,48 @@ export type ActivityCreateDto = {
|
|
|
34
34
|
export type ActivityStatisticsResponseDto = {
|
|
35
35
|
comments: number;
|
|
36
36
|
};
|
|
37
|
+
export type NotificationCreateDto = {
|
|
38
|
+
data?: object;
|
|
39
|
+
description?: string | null;
|
|
40
|
+
level?: NotificationLevel;
|
|
41
|
+
readAt?: string | null;
|
|
42
|
+
title: string;
|
|
43
|
+
"type"?: NotificationType;
|
|
44
|
+
userId: string;
|
|
45
|
+
};
|
|
46
|
+
export type NotificationDto = {
|
|
47
|
+
createdAt: string;
|
|
48
|
+
data?: object;
|
|
49
|
+
description?: string;
|
|
50
|
+
id: string;
|
|
51
|
+
level: NotificationLevel;
|
|
52
|
+
readAt?: string;
|
|
53
|
+
title: string;
|
|
54
|
+
"type": NotificationType;
|
|
55
|
+
};
|
|
56
|
+
export type TemplateDto = {
|
|
57
|
+
template: string;
|
|
58
|
+
};
|
|
59
|
+
export type TemplateResponseDto = {
|
|
60
|
+
html: string;
|
|
61
|
+
name: string;
|
|
62
|
+
};
|
|
63
|
+
export type SystemConfigSmtpTransportDto = {
|
|
64
|
+
host: string;
|
|
65
|
+
ignoreCert: boolean;
|
|
66
|
+
password: string;
|
|
67
|
+
port: number;
|
|
68
|
+
username: string;
|
|
69
|
+
};
|
|
70
|
+
export type SystemConfigSmtpDto = {
|
|
71
|
+
enabled: boolean;
|
|
72
|
+
"from": string;
|
|
73
|
+
replyTo: string;
|
|
74
|
+
transport: SystemConfigSmtpTransportDto;
|
|
75
|
+
};
|
|
76
|
+
export type TestEmailResponseDto = {
|
|
77
|
+
messageId: string;
|
|
78
|
+
};
|
|
37
79
|
export type UserLicense = {
|
|
38
80
|
activatedAt: string;
|
|
39
81
|
activationKey: string;
|
|
@@ -59,6 +101,7 @@ export type UserAdminResponseDto = {
|
|
|
59
101
|
updatedAt: string;
|
|
60
102
|
};
|
|
61
103
|
export type UserAdminCreateDto = {
|
|
104
|
+
avatarColor?: (UserAvatarColor) | null;
|
|
62
105
|
email: string;
|
|
63
106
|
name: string;
|
|
64
107
|
notify?: boolean;
|
|
@@ -71,16 +114,15 @@ export type UserAdminDeleteDto = {
|
|
|
71
114
|
force?: boolean;
|
|
72
115
|
};
|
|
73
116
|
export type UserAdminUpdateDto = {
|
|
117
|
+
avatarColor?: (UserAvatarColor) | null;
|
|
74
118
|
email?: string;
|
|
75
119
|
name?: string;
|
|
76
120
|
password?: string;
|
|
121
|
+
pinCode?: string | null;
|
|
77
122
|
quotaSizeInBytes?: number | null;
|
|
78
123
|
shouldChangePassword?: boolean;
|
|
79
124
|
storageLabel?: string | null;
|
|
80
125
|
};
|
|
81
|
-
export type AvatarResponse = {
|
|
82
|
-
color: UserAvatarColor;
|
|
83
|
-
};
|
|
84
126
|
export type DownloadResponse = {
|
|
85
127
|
archiveSize: number;
|
|
86
128
|
includeEmbeddedVideos: boolean;
|
|
@@ -117,7 +159,6 @@ export type TagsResponse = {
|
|
|
117
159
|
sidebarWeb: boolean;
|
|
118
160
|
};
|
|
119
161
|
export type UserPreferencesResponseDto = {
|
|
120
|
-
avatar: AvatarResponse;
|
|
121
162
|
download: DownloadResponse;
|
|
122
163
|
emailNotifications: EmailNotificationsResponse;
|
|
123
164
|
folders: FoldersResponse;
|
|
@@ -178,6 +219,11 @@ export type UserPreferencesUpdateDto = {
|
|
|
178
219
|
sharedLinks?: SharedLinksUpdate;
|
|
179
220
|
tags?: TagsUpdate;
|
|
180
221
|
};
|
|
222
|
+
export type AssetStatsResponseDto = {
|
|
223
|
+
images: number;
|
|
224
|
+
total: number;
|
|
225
|
+
videos: number;
|
|
226
|
+
};
|
|
181
227
|
export type AlbumUserResponseDto = {
|
|
182
228
|
role: AlbumUserRole;
|
|
183
229
|
user: UserResponseDto;
|
|
@@ -278,6 +324,7 @@ export type AssetResponseDto = {
|
|
|
278
324
|
"type": AssetTypeEnum;
|
|
279
325
|
unassignedFaces?: AssetFaceWithoutPersonResponseDto[];
|
|
280
326
|
updatedAt: string;
|
|
327
|
+
visibility: AssetVisibility;
|
|
281
328
|
};
|
|
282
329
|
export type AlbumResponseDto = {
|
|
283
330
|
albumName: string;
|
|
@@ -368,11 +415,10 @@ export type AssetMediaCreateDto = {
|
|
|
368
415
|
duration?: string;
|
|
369
416
|
fileCreatedAt: string;
|
|
370
417
|
fileModifiedAt: string;
|
|
371
|
-
isArchived?: boolean;
|
|
372
418
|
isFavorite?: boolean;
|
|
373
|
-
isVisible?: boolean;
|
|
374
419
|
livePhotoVideoId?: string;
|
|
375
420
|
sidecarData?: Blob;
|
|
421
|
+
visibility?: AssetVisibility;
|
|
376
422
|
};
|
|
377
423
|
export type AssetMediaResponseDto = {
|
|
378
424
|
id: string;
|
|
@@ -380,13 +426,14 @@ export type AssetMediaResponseDto = {
|
|
|
380
426
|
};
|
|
381
427
|
export type AssetBulkUpdateDto = {
|
|
382
428
|
dateTimeOriginal?: string;
|
|
429
|
+
description?: string;
|
|
383
430
|
duplicateId?: string | null;
|
|
384
431
|
ids: string[];
|
|
385
|
-
isArchived?: boolean;
|
|
386
432
|
isFavorite?: boolean;
|
|
387
433
|
latitude?: number;
|
|
388
434
|
longitude?: number;
|
|
389
435
|
rating?: number;
|
|
436
|
+
visibility?: AssetVisibility;
|
|
390
437
|
};
|
|
391
438
|
export type AssetBulkUploadCheckItem = {
|
|
392
439
|
/** base64 or hex encoded sha1 hash */
|
|
@@ -417,24 +464,15 @@ export type AssetJobsDto = {
|
|
|
417
464
|
assetIds: string[];
|
|
418
465
|
name: AssetJobName;
|
|
419
466
|
};
|
|
420
|
-
export type MemoryLaneResponseDto = {
|
|
421
|
-
assets: AssetResponseDto[];
|
|
422
|
-
yearsAgo: number;
|
|
423
|
-
};
|
|
424
|
-
export type AssetStatsResponseDto = {
|
|
425
|
-
images: number;
|
|
426
|
-
total: number;
|
|
427
|
-
videos: number;
|
|
428
|
-
};
|
|
429
467
|
export type UpdateAssetDto = {
|
|
430
468
|
dateTimeOriginal?: string;
|
|
431
469
|
description?: string;
|
|
432
|
-
isArchived?: boolean;
|
|
433
470
|
isFavorite?: boolean;
|
|
434
471
|
latitude?: number;
|
|
435
472
|
livePhotoVideoId?: string | null;
|
|
436
473
|
longitude?: number;
|
|
437
474
|
rating?: number;
|
|
475
|
+
visibility?: AssetVisibility;
|
|
438
476
|
};
|
|
439
477
|
export type AssetMediaReplaceDto = {
|
|
440
478
|
assetData: Blob;
|
|
@@ -470,6 +508,29 @@ export type LogoutResponseDto = {
|
|
|
470
508
|
redirectUri: string;
|
|
471
509
|
successful: boolean;
|
|
472
510
|
};
|
|
511
|
+
export type PinCodeResetDto = {
|
|
512
|
+
password?: string;
|
|
513
|
+
pinCode?: string;
|
|
514
|
+
};
|
|
515
|
+
export type PinCodeSetupDto = {
|
|
516
|
+
pinCode: string;
|
|
517
|
+
};
|
|
518
|
+
export type PinCodeChangeDto = {
|
|
519
|
+
newPinCode: string;
|
|
520
|
+
password?: string;
|
|
521
|
+
pinCode?: string;
|
|
522
|
+
};
|
|
523
|
+
export type SessionUnlockDto = {
|
|
524
|
+
password?: string;
|
|
525
|
+
pinCode?: string;
|
|
526
|
+
};
|
|
527
|
+
export type AuthStatusResponseDto = {
|
|
528
|
+
expiresAt?: string;
|
|
529
|
+
isElevated: boolean;
|
|
530
|
+
password: boolean;
|
|
531
|
+
pinCode: boolean;
|
|
532
|
+
pinExpiresAt?: string;
|
|
533
|
+
};
|
|
473
534
|
export type ValidateAccessTokenResponseDto = {
|
|
474
535
|
authStatus: boolean;
|
|
475
536
|
};
|
|
@@ -658,28 +719,15 @@ export type MemoryUpdateDto = {
|
|
|
658
719
|
memoryAt?: string;
|
|
659
720
|
seenAt?: string;
|
|
660
721
|
};
|
|
661
|
-
export type
|
|
662
|
-
|
|
663
|
-
};
|
|
664
|
-
export type TemplateResponseDto = {
|
|
665
|
-
html: string;
|
|
666
|
-
name: string;
|
|
667
|
-
};
|
|
668
|
-
export type SystemConfigSmtpTransportDto = {
|
|
669
|
-
host: string;
|
|
670
|
-
ignoreCert: boolean;
|
|
671
|
-
password: string;
|
|
672
|
-
port: number;
|
|
673
|
-
username: string;
|
|
722
|
+
export type NotificationDeleteAllDto = {
|
|
723
|
+
ids: string[];
|
|
674
724
|
};
|
|
675
|
-
export type
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
replyTo: string;
|
|
679
|
-
transport: SystemConfigSmtpTransportDto;
|
|
725
|
+
export type NotificationUpdateAllDto = {
|
|
726
|
+
ids: string[];
|
|
727
|
+
readAt?: string | null;
|
|
680
728
|
};
|
|
681
|
-
export type
|
|
682
|
-
|
|
729
|
+
export type NotificationUpdateDto = {
|
|
730
|
+
readAt?: string | null;
|
|
683
731
|
};
|
|
684
732
|
export type OAuthConfigDto = {
|
|
685
733
|
codeChallenge?: string;
|
|
@@ -768,27 +816,6 @@ export type AssetFaceUpdateDto = {
|
|
|
768
816
|
export type PersonStatisticsResponseDto = {
|
|
769
817
|
assets: number;
|
|
770
818
|
};
|
|
771
|
-
export type FileReportItemDto = {
|
|
772
|
-
checksum?: string;
|
|
773
|
-
entityId: string;
|
|
774
|
-
entityType: PathEntityType;
|
|
775
|
-
pathType: PathType;
|
|
776
|
-
pathValue: string;
|
|
777
|
-
};
|
|
778
|
-
export type FileReportDto = {
|
|
779
|
-
extras: string[];
|
|
780
|
-
orphans: FileReportItemDto[];
|
|
781
|
-
};
|
|
782
|
-
export type FileChecksumDto = {
|
|
783
|
-
filenames: string[];
|
|
784
|
-
};
|
|
785
|
-
export type FileChecksumResponseDto = {
|
|
786
|
-
checksum: string;
|
|
787
|
-
filename: string;
|
|
788
|
-
};
|
|
789
|
-
export type FileReportFixDto = {
|
|
790
|
-
items: FileReportItemDto[];
|
|
791
|
-
};
|
|
792
819
|
export type SearchExploreItem = {
|
|
793
820
|
data: AssetResponseDto;
|
|
794
821
|
value: string;
|
|
@@ -808,13 +835,11 @@ export type MetadataSearchDto = {
|
|
|
808
835
|
deviceId?: string;
|
|
809
836
|
encodedVideoPath?: string;
|
|
810
837
|
id?: string;
|
|
811
|
-
isArchived?: boolean;
|
|
812
838
|
isEncoded?: boolean;
|
|
813
839
|
isFavorite?: boolean;
|
|
814
840
|
isMotion?: boolean;
|
|
815
841
|
isNotInAlbum?: boolean;
|
|
816
842
|
isOffline?: boolean;
|
|
817
|
-
isVisible?: boolean;
|
|
818
843
|
lensModel?: string | null;
|
|
819
844
|
libraryId?: string | null;
|
|
820
845
|
make?: string;
|
|
@@ -837,7 +862,7 @@ export type MetadataSearchDto = {
|
|
|
837
862
|
"type"?: AssetTypeEnum;
|
|
838
863
|
updatedAfter?: string;
|
|
839
864
|
updatedBefore?: string;
|
|
840
|
-
|
|
865
|
+
visibility?: AssetVisibility;
|
|
841
866
|
withDeleted?: boolean;
|
|
842
867
|
withExif?: boolean;
|
|
843
868
|
withPeople?: boolean;
|
|
@@ -881,13 +906,11 @@ export type RandomSearchDto = {
|
|
|
881
906
|
createdAfter?: string;
|
|
882
907
|
createdBefore?: string;
|
|
883
908
|
deviceId?: string;
|
|
884
|
-
isArchived?: boolean;
|
|
885
909
|
isEncoded?: boolean;
|
|
886
910
|
isFavorite?: boolean;
|
|
887
911
|
isMotion?: boolean;
|
|
888
912
|
isNotInAlbum?: boolean;
|
|
889
913
|
isOffline?: boolean;
|
|
890
|
-
isVisible?: boolean;
|
|
891
914
|
lensModel?: string | null;
|
|
892
915
|
libraryId?: string | null;
|
|
893
916
|
make?: string;
|
|
@@ -904,7 +927,7 @@ export type RandomSearchDto = {
|
|
|
904
927
|
"type"?: AssetTypeEnum;
|
|
905
928
|
updatedAfter?: string;
|
|
906
929
|
updatedBefore?: string;
|
|
907
|
-
|
|
930
|
+
visibility?: AssetVisibility;
|
|
908
931
|
withDeleted?: boolean;
|
|
909
932
|
withExif?: boolean;
|
|
910
933
|
withPeople?: boolean;
|
|
@@ -916,13 +939,11 @@ export type SmartSearchDto = {
|
|
|
916
939
|
createdAfter?: string;
|
|
917
940
|
createdBefore?: string;
|
|
918
941
|
deviceId?: string;
|
|
919
|
-
isArchived?: boolean;
|
|
920
942
|
isEncoded?: boolean;
|
|
921
943
|
isFavorite?: boolean;
|
|
922
944
|
isMotion?: boolean;
|
|
923
945
|
isNotInAlbum?: boolean;
|
|
924
946
|
isOffline?: boolean;
|
|
925
|
-
isVisible?: boolean;
|
|
926
947
|
language?: string;
|
|
927
948
|
lensModel?: string | null;
|
|
928
949
|
libraryId?: string | null;
|
|
@@ -942,7 +963,7 @@ export type SmartSearchDto = {
|
|
|
942
963
|
"type"?: AssetTypeEnum;
|
|
943
964
|
updatedAfter?: string;
|
|
944
965
|
updatedBefore?: string;
|
|
945
|
-
|
|
966
|
+
visibility?: AssetVisibility;
|
|
946
967
|
withDeleted?: boolean;
|
|
947
968
|
withExif?: boolean;
|
|
948
969
|
};
|
|
@@ -1060,7 +1081,24 @@ export type SessionResponseDto = {
|
|
|
1060
1081
|
current: boolean;
|
|
1061
1082
|
deviceOS: string;
|
|
1062
1083
|
deviceType: string;
|
|
1084
|
+
expiresAt?: string;
|
|
1085
|
+
id: string;
|
|
1086
|
+
updatedAt: string;
|
|
1087
|
+
};
|
|
1088
|
+
export type SessionCreateDto = {
|
|
1089
|
+
deviceOS?: string;
|
|
1090
|
+
deviceType?: string;
|
|
1091
|
+
/** session duration, in seconds */
|
|
1092
|
+
duration?: number;
|
|
1093
|
+
};
|
|
1094
|
+
export type SessionCreateResponseDto = {
|
|
1095
|
+
createdAt: string;
|
|
1096
|
+
current: boolean;
|
|
1097
|
+
deviceOS: string;
|
|
1098
|
+
deviceType: string;
|
|
1099
|
+
expiresAt?: string;
|
|
1063
1100
|
id: string;
|
|
1101
|
+
token: string;
|
|
1064
1102
|
updatedAt: string;
|
|
1065
1103
|
};
|
|
1066
1104
|
export type SharedLinkResponseDto = {
|
|
@@ -1283,6 +1321,8 @@ export type SystemConfigOAuthDto = {
|
|
|
1283
1321
|
signingAlgorithm: string;
|
|
1284
1322
|
storageLabelClaim: string;
|
|
1285
1323
|
storageQuotaClaim: string;
|
|
1324
|
+
timeout: number;
|
|
1325
|
+
tokenEndpointAuthMethod: OAuthTokenEndpointAuthMethod;
|
|
1286
1326
|
};
|
|
1287
1327
|
export type SystemConfigPasswordLoginDto = {
|
|
1288
1328
|
enabled: boolean;
|
|
@@ -1375,7 +1415,25 @@ export type TagBulkAssetsResponseDto = {
|
|
|
1375
1415
|
export type TagUpdateDto = {
|
|
1376
1416
|
color?: string | null;
|
|
1377
1417
|
};
|
|
1378
|
-
export type
|
|
1418
|
+
export type TimeBucketAssetResponseDto = {
|
|
1419
|
+
city: (string | null)[];
|
|
1420
|
+
country: (string | null)[];
|
|
1421
|
+
duration: (string | null)[];
|
|
1422
|
+
id: string[];
|
|
1423
|
+
isFavorite: boolean[];
|
|
1424
|
+
isImage: boolean[];
|
|
1425
|
+
isTrashed: boolean[];
|
|
1426
|
+
livePhotoVideoId: (string | null)[];
|
|
1427
|
+
localDateTime: string[];
|
|
1428
|
+
ownerId: string[];
|
|
1429
|
+
projectionType: (string | null)[];
|
|
1430
|
+
ratio: number[];
|
|
1431
|
+
/** (stack ID, stack asset count) tuple */
|
|
1432
|
+
stack?: (string[] | null)[];
|
|
1433
|
+
thumbhash: (string | null)[];
|
|
1434
|
+
visibility: AssetVisibility[];
|
|
1435
|
+
};
|
|
1436
|
+
export type TimeBucketsResponseDto = {
|
|
1379
1437
|
count: number;
|
|
1380
1438
|
timeBucket: string;
|
|
1381
1439
|
};
|
|
@@ -1383,6 +1441,7 @@ export type TrashResponseDto = {
|
|
|
1383
1441
|
count: number;
|
|
1384
1442
|
};
|
|
1385
1443
|
export type UserUpdateMeDto = {
|
|
1444
|
+
avatarColor?: (UserAvatarColor) | null;
|
|
1386
1445
|
email?: string;
|
|
1387
1446
|
name?: string;
|
|
1388
1447
|
password?: string;
|
|
@@ -1412,7 +1471,18 @@ export declare function getActivityStatistics({ albumId, assetId }: {
|
|
|
1412
1471
|
export declare function deleteActivity({ id }: {
|
|
1413
1472
|
id: string;
|
|
1414
1473
|
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
1415
|
-
export declare function
|
|
1474
|
+
export declare function createNotification({ notificationCreateDto }: {
|
|
1475
|
+
notificationCreateDto: NotificationCreateDto;
|
|
1476
|
+
}, opts?: Oazapfts.RequestOpts): Promise<NotificationDto>;
|
|
1477
|
+
export declare function getNotificationTemplateAdmin({ name, templateDto }: {
|
|
1478
|
+
name: string;
|
|
1479
|
+
templateDto: TemplateDto;
|
|
1480
|
+
}, opts?: Oazapfts.RequestOpts): Promise<TemplateResponseDto>;
|
|
1481
|
+
export declare function sendTestEmailAdmin({ systemConfigSmtpDto }: {
|
|
1482
|
+
systemConfigSmtpDto: SystemConfigSmtpDto;
|
|
1483
|
+
}, opts?: Oazapfts.RequestOpts): Promise<TestEmailResponseDto>;
|
|
1484
|
+
export declare function searchUsersAdmin({ id, withDeleted }: {
|
|
1485
|
+
id?: string;
|
|
1416
1486
|
withDeleted?: boolean;
|
|
1417
1487
|
}, opts?: Oazapfts.RequestOpts): Promise<UserAdminResponseDto[]>;
|
|
1418
1488
|
export declare function createUserAdmin({ userAdminCreateDto }: {
|
|
@@ -1439,6 +1509,12 @@ export declare function updateUserPreferencesAdmin({ id, userPreferencesUpdateDt
|
|
|
1439
1509
|
export declare function restoreUserAdmin({ id }: {
|
|
1440
1510
|
id: string;
|
|
1441
1511
|
}, opts?: Oazapfts.RequestOpts): Promise<UserAdminResponseDto>;
|
|
1512
|
+
export declare function getUserStatisticsAdmin({ id, isFavorite, isTrashed, visibility }: {
|
|
1513
|
+
id: string;
|
|
1514
|
+
isFavorite?: boolean;
|
|
1515
|
+
isTrashed?: boolean;
|
|
1516
|
+
visibility?: AssetVisibility;
|
|
1517
|
+
}, opts?: Oazapfts.RequestOpts): Promise<AssetStatsResponseDto>;
|
|
1442
1518
|
export declare function getAllAlbums({ assetId, shared }: {
|
|
1443
1519
|
assetId?: string;
|
|
1444
1520
|
shared?: boolean;
|
|
@@ -1527,20 +1603,16 @@ export declare function checkExistingAssets({ checkExistingAssetsDto }: {
|
|
|
1527
1603
|
export declare function runAssetJobs({ assetJobsDto }: {
|
|
1528
1604
|
assetJobsDto: AssetJobsDto;
|
|
1529
1605
|
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
1530
|
-
export declare function getMemoryLane({ day, month }: {
|
|
1531
|
-
day: number;
|
|
1532
|
-
month: number;
|
|
1533
|
-
}, opts?: Oazapfts.RequestOpts): Promise<MemoryLaneResponseDto[]>;
|
|
1534
1606
|
/**
|
|
1535
1607
|
* This property was deprecated in v1.116.0
|
|
1536
1608
|
*/
|
|
1537
1609
|
export declare function getRandom({ count }: {
|
|
1538
1610
|
count?: number;
|
|
1539
1611
|
}, opts?: Oazapfts.RequestOpts): Promise<AssetResponseDto[]>;
|
|
1540
|
-
export declare function getAssetStatistics({
|
|
1541
|
-
isArchived?: boolean;
|
|
1612
|
+
export declare function getAssetStatistics({ isFavorite, isTrashed, visibility }: {
|
|
1542
1613
|
isFavorite?: boolean;
|
|
1543
1614
|
isTrashed?: boolean;
|
|
1615
|
+
visibility?: AssetVisibility;
|
|
1544
1616
|
}, opts?: Oazapfts.RequestOpts): Promise<AssetStatsResponseDto>;
|
|
1545
1617
|
export declare function getAssetInfo({ id, key }: {
|
|
1546
1618
|
id: string;
|
|
@@ -1581,6 +1653,20 @@ export declare function login({ loginCredentialDto }: {
|
|
|
1581
1653
|
loginCredentialDto: LoginCredentialDto;
|
|
1582
1654
|
}, opts?: Oazapfts.RequestOpts): Promise<LoginResponseDto>;
|
|
1583
1655
|
export declare function logout(opts?: Oazapfts.RequestOpts): Promise<LogoutResponseDto>;
|
|
1656
|
+
export declare function resetPinCode({ pinCodeResetDto }: {
|
|
1657
|
+
pinCodeResetDto: PinCodeResetDto;
|
|
1658
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
1659
|
+
export declare function setupPinCode({ pinCodeSetupDto }: {
|
|
1660
|
+
pinCodeSetupDto: PinCodeSetupDto;
|
|
1661
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
1662
|
+
export declare function changePinCode({ pinCodeChangeDto }: {
|
|
1663
|
+
pinCodeChangeDto: PinCodeChangeDto;
|
|
1664
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
1665
|
+
export declare function lockAuthSession(opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
1666
|
+
export declare function unlockAuthSession({ sessionUnlockDto }: {
|
|
1667
|
+
sessionUnlockDto: SessionUnlockDto;
|
|
1668
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
1669
|
+
export declare function getAuthStatus(opts?: Oazapfts.RequestOpts): Promise<AuthStatusResponseDto>;
|
|
1584
1670
|
export declare function validateAccessToken(opts?: Oazapfts.RequestOpts): Promise<ValidateAccessTokenResponseDto>;
|
|
1585
1671
|
export declare function downloadArchive({ key, assetIdsDto }: {
|
|
1586
1672
|
key?: string;
|
|
@@ -1676,13 +1762,28 @@ export declare function addMemoryAssets({ id, bulkIdsDto }: {
|
|
|
1676
1762
|
id: string;
|
|
1677
1763
|
bulkIdsDto: BulkIdsDto;
|
|
1678
1764
|
}, opts?: Oazapfts.RequestOpts): Promise<BulkIdResponseDto[]>;
|
|
1679
|
-
export declare function
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1765
|
+
export declare function deleteNotifications({ notificationDeleteAllDto }: {
|
|
1766
|
+
notificationDeleteAllDto: NotificationDeleteAllDto;
|
|
1767
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
1768
|
+
export declare function getNotifications({ id, level, $type, unread }: {
|
|
1769
|
+
id?: string;
|
|
1770
|
+
level?: NotificationLevel;
|
|
1771
|
+
$type?: NotificationType;
|
|
1772
|
+
unread?: boolean;
|
|
1773
|
+
}, opts?: Oazapfts.RequestOpts): Promise<NotificationDto[]>;
|
|
1774
|
+
export declare function updateNotifications({ notificationUpdateAllDto }: {
|
|
1775
|
+
notificationUpdateAllDto: NotificationUpdateAllDto;
|
|
1776
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
1777
|
+
export declare function deleteNotification({ id }: {
|
|
1778
|
+
id: string;
|
|
1779
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
1780
|
+
export declare function getNotification({ id }: {
|
|
1781
|
+
id: string;
|
|
1782
|
+
}, opts?: Oazapfts.RequestOpts): Promise<NotificationDto>;
|
|
1783
|
+
export declare function updateNotification({ id, notificationUpdateDto }: {
|
|
1784
|
+
id: string;
|
|
1785
|
+
notificationUpdateDto: NotificationUpdateDto;
|
|
1786
|
+
}, opts?: Oazapfts.RequestOpts): Promise<NotificationDto>;
|
|
1686
1787
|
export declare function startOAuth({ oAuthConfigDto }: {
|
|
1687
1788
|
oAuthConfigDto: OAuthConfigDto;
|
|
1688
1789
|
}, opts?: Oazapfts.RequestOpts): Promise<OAuthAuthorizeResponseDto>;
|
|
@@ -1741,13 +1842,6 @@ export declare function getPersonStatistics({ id }: {
|
|
|
1741
1842
|
export declare function getPersonThumbnail({ id }: {
|
|
1742
1843
|
id: string;
|
|
1743
1844
|
}, opts?: Oazapfts.RequestOpts): Promise<Blob>;
|
|
1744
|
-
export declare function getAuditFiles(opts?: Oazapfts.RequestOpts): Promise<FileReportDto>;
|
|
1745
|
-
export declare function getFileChecksums({ fileChecksumDto }: {
|
|
1746
|
-
fileChecksumDto: FileChecksumDto;
|
|
1747
|
-
}, opts?: Oazapfts.RequestOpts): Promise<FileChecksumResponseDto[]>;
|
|
1748
|
-
export declare function fixAuditFiles({ fileReportFixDto }: {
|
|
1749
|
-
fileReportFixDto: FileReportFixDto;
|
|
1750
|
-
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
1751
1845
|
export declare function getAssetsByCity(opts?: Oazapfts.RequestOpts): Promise<AssetResponseDto[]>;
|
|
1752
1846
|
export declare function getExploreData(opts?: Oazapfts.RequestOpts): Promise<SearchExploreResponseDto[]>;
|
|
1753
1847
|
export declare function searchAssets({ metadataSearchDto }: {
|
|
@@ -1791,9 +1885,15 @@ export declare function getServerVersion(opts?: Oazapfts.RequestOpts): Promise<S
|
|
|
1791
1885
|
export declare function getVersionHistory(opts?: Oazapfts.RequestOpts): Promise<ServerVersionHistoryResponseDto[]>;
|
|
1792
1886
|
export declare function deleteAllSessions(opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
1793
1887
|
export declare function getSessions(opts?: Oazapfts.RequestOpts): Promise<SessionResponseDto[]>;
|
|
1888
|
+
export declare function createSession({ sessionCreateDto }: {
|
|
1889
|
+
sessionCreateDto: SessionCreateDto;
|
|
1890
|
+
}, opts?: Oazapfts.RequestOpts): Promise<SessionCreateResponseDto>;
|
|
1794
1891
|
export declare function deleteSession({ id }: {
|
|
1795
1892
|
id: string;
|
|
1796
1893
|
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
1894
|
+
export declare function lockSession({ id }: {
|
|
1895
|
+
id: string;
|
|
1896
|
+
}, opts?: Oazapfts.RequestOpts): Promise<never>;
|
|
1797
1897
|
export declare function getAllSharedLinks({ albumId }: {
|
|
1798
1898
|
albumId?: string;
|
|
1799
1899
|
}, opts?: Oazapfts.RequestOpts): Promise<SharedLinkResponseDto[]>;
|
|
@@ -1899,35 +1999,35 @@ export declare function tagAssets({ id, bulkIdsDto }: {
|
|
|
1899
1999
|
id: string;
|
|
1900
2000
|
bulkIdsDto: BulkIdsDto;
|
|
1901
2001
|
}, opts?: Oazapfts.RequestOpts): Promise<BulkIdResponseDto[]>;
|
|
1902
|
-
export declare function getTimeBucket({ albumId,
|
|
2002
|
+
export declare function getTimeBucket({ albumId, isFavorite, isTrashed, key, order, page, pageSize, personId, tagId, timeBucket, userId, visibility, withPartners, withStacked }: {
|
|
1903
2003
|
albumId?: string;
|
|
1904
|
-
isArchived?: boolean;
|
|
1905
2004
|
isFavorite?: boolean;
|
|
1906
2005
|
isTrashed?: boolean;
|
|
1907
2006
|
key?: string;
|
|
1908
2007
|
order?: AssetOrder;
|
|
2008
|
+
page?: number;
|
|
2009
|
+
pageSize?: number;
|
|
1909
2010
|
personId?: string;
|
|
1910
|
-
size: TimeBucketSize;
|
|
1911
2011
|
tagId?: string;
|
|
1912
2012
|
timeBucket: string;
|
|
1913
2013
|
userId?: string;
|
|
2014
|
+
visibility?: AssetVisibility;
|
|
1914
2015
|
withPartners?: boolean;
|
|
1915
2016
|
withStacked?: boolean;
|
|
1916
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
1917
|
-
export declare function getTimeBuckets({ albumId,
|
|
2017
|
+
}, opts?: Oazapfts.RequestOpts): Promise<TimeBucketAssetResponseDto>;
|
|
2018
|
+
export declare function getTimeBuckets({ albumId, isFavorite, isTrashed, key, order, personId, tagId, userId, visibility, withPartners, withStacked }: {
|
|
1918
2019
|
albumId?: string;
|
|
1919
|
-
isArchived?: boolean;
|
|
1920
2020
|
isFavorite?: boolean;
|
|
1921
2021
|
isTrashed?: boolean;
|
|
1922
2022
|
key?: string;
|
|
1923
2023
|
order?: AssetOrder;
|
|
1924
2024
|
personId?: string;
|
|
1925
|
-
size: TimeBucketSize;
|
|
1926
2025
|
tagId?: string;
|
|
1927
2026
|
userId?: string;
|
|
2027
|
+
visibility?: AssetVisibility;
|
|
1928
2028
|
withPartners?: boolean;
|
|
1929
2029
|
withStacked?: boolean;
|
|
1930
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
2030
|
+
}, opts?: Oazapfts.RequestOpts): Promise<TimeBucketsResponseDto[]>;
|
|
1931
2031
|
export declare function emptyTrash(opts?: Oazapfts.RequestOpts): Promise<TrashResponseDto>;
|
|
1932
2032
|
export declare function restoreTrash(opts?: Oazapfts.RequestOpts): Promise<TrashResponseDto>;
|
|
1933
2033
|
export declare function restoreAssets({ bulkIdsDto }: {
|
|
@@ -1981,11 +2081,29 @@ export declare enum UserAvatarColor {
|
|
|
1981
2081
|
Gray = "gray",
|
|
1982
2082
|
Amber = "amber"
|
|
1983
2083
|
}
|
|
2084
|
+
export declare enum NotificationLevel {
|
|
2085
|
+
Success = "success",
|
|
2086
|
+
Error = "error",
|
|
2087
|
+
Warning = "warning",
|
|
2088
|
+
Info = "info"
|
|
2089
|
+
}
|
|
2090
|
+
export declare enum NotificationType {
|
|
2091
|
+
JobFailed = "JobFailed",
|
|
2092
|
+
BackupFailed = "BackupFailed",
|
|
2093
|
+
SystemMessage = "SystemMessage",
|
|
2094
|
+
Custom = "Custom"
|
|
2095
|
+
}
|
|
1984
2096
|
export declare enum UserStatus {
|
|
1985
2097
|
Active = "active",
|
|
1986
2098
|
Removing = "removing",
|
|
1987
2099
|
Deleted = "deleted"
|
|
1988
2100
|
}
|
|
2101
|
+
export declare enum AssetVisibility {
|
|
2102
|
+
Archive = "archive",
|
|
2103
|
+
Timeline = "timeline",
|
|
2104
|
+
Hidden = "hidden",
|
|
2105
|
+
Locked = "locked"
|
|
2106
|
+
}
|
|
1989
2107
|
export declare enum AlbumUserRole {
|
|
1990
2108
|
Editor = "editor",
|
|
1991
2109
|
Viewer = "viewer"
|
|
@@ -2055,6 +2173,10 @@ export declare enum Permission {
|
|
|
2055
2173
|
MemoryRead = "memory.read",
|
|
2056
2174
|
MemoryUpdate = "memory.update",
|
|
2057
2175
|
MemoryDelete = "memory.delete",
|
|
2176
|
+
NotificationCreate = "notification.create",
|
|
2177
|
+
NotificationRead = "notification.read",
|
|
2178
|
+
NotificationUpdate = "notification.update",
|
|
2179
|
+
NotificationDelete = "notification.delete",
|
|
2058
2180
|
PartnerCreate = "partner.create",
|
|
2059
2181
|
PartnerRead = "partner.read",
|
|
2060
2182
|
PartnerUpdate = "partner.update",
|
|
@@ -2066,9 +2188,11 @@ export declare enum Permission {
|
|
|
2066
2188
|
PersonStatistics = "person.statistics",
|
|
2067
2189
|
PersonMerge = "person.merge",
|
|
2068
2190
|
PersonReassign = "person.reassign",
|
|
2191
|
+
SessionCreate = "session.create",
|
|
2069
2192
|
SessionRead = "session.read",
|
|
2070
2193
|
SessionUpdate = "session.update",
|
|
2071
2194
|
SessionDelete = "session.delete",
|
|
2195
|
+
SessionLock = "session.lock",
|
|
2072
2196
|
SharedLinkCreate = "sharedLink.create",
|
|
2073
2197
|
SharedLinkRead = "sharedLink.read",
|
|
2074
2198
|
SharedLinkUpdate = "sharedLink.update",
|
|
@@ -2154,21 +2278,6 @@ export declare enum PartnerDirection {
|
|
|
2154
2278
|
SharedBy = "shared-by",
|
|
2155
2279
|
SharedWith = "shared-with"
|
|
2156
2280
|
}
|
|
2157
|
-
export declare enum PathEntityType {
|
|
2158
|
-
Asset = "asset",
|
|
2159
|
-
Person = "person",
|
|
2160
|
-
User = "user"
|
|
2161
|
-
}
|
|
2162
|
-
export declare enum PathType {
|
|
2163
|
-
Original = "original",
|
|
2164
|
-
Fullsize = "fullsize",
|
|
2165
|
-
Preview = "preview",
|
|
2166
|
-
Thumbnail = "thumbnail",
|
|
2167
|
-
EncodedVideo = "encoded_video",
|
|
2168
|
-
Sidecar = "sidecar",
|
|
2169
|
-
Face = "face",
|
|
2170
|
-
Profile = "profile"
|
|
2171
|
-
}
|
|
2172
2281
|
export declare enum SearchSuggestionType {
|
|
2173
2282
|
Country = "country",
|
|
2174
2283
|
State = "state",
|
|
@@ -2195,7 +2304,11 @@ export declare enum SyncEntityType {
|
|
|
2195
2304
|
AssetExifV1 = "AssetExifV1",
|
|
2196
2305
|
PartnerAssetV1 = "PartnerAssetV1",
|
|
2197
2306
|
PartnerAssetDeleteV1 = "PartnerAssetDeleteV1",
|
|
2198
|
-
PartnerAssetExifV1 = "PartnerAssetExifV1"
|
|
2307
|
+
PartnerAssetExifV1 = "PartnerAssetExifV1",
|
|
2308
|
+
AlbumV1 = "AlbumV1",
|
|
2309
|
+
AlbumDeleteV1 = "AlbumDeleteV1",
|
|
2310
|
+
AlbumUserV1 = "AlbumUserV1",
|
|
2311
|
+
AlbumUserDeleteV1 = "AlbumUserDeleteV1"
|
|
2199
2312
|
}
|
|
2200
2313
|
export declare enum SyncRequestType {
|
|
2201
2314
|
UsersV1 = "UsersV1",
|
|
@@ -2203,7 +2316,9 @@ export declare enum SyncRequestType {
|
|
|
2203
2316
|
AssetsV1 = "AssetsV1",
|
|
2204
2317
|
AssetExifsV1 = "AssetExifsV1",
|
|
2205
2318
|
PartnerAssetsV1 = "PartnerAssetsV1",
|
|
2206
|
-
PartnerAssetExifsV1 = "PartnerAssetExifsV1"
|
|
2319
|
+
PartnerAssetExifsV1 = "PartnerAssetExifsV1",
|
|
2320
|
+
AlbumsV1 = "AlbumsV1",
|
|
2321
|
+
AlbumUsersV1 = "AlbumUsersV1"
|
|
2207
2322
|
}
|
|
2208
2323
|
export declare enum TranscodeHWAccel {
|
|
2209
2324
|
Nvenc = "nvenc",
|
|
@@ -2264,7 +2379,7 @@ export declare enum LogLevel {
|
|
|
2264
2379
|
Error = "error",
|
|
2265
2380
|
Fatal = "fatal"
|
|
2266
2381
|
}
|
|
2267
|
-
export declare enum
|
|
2268
|
-
|
|
2269
|
-
|
|
2382
|
+
export declare enum OAuthTokenEndpointAuthMethod {
|
|
2383
|
+
ClientSecretPost = "client_secret_post",
|
|
2384
|
+
ClientSecretBasic = "client_secret_basic"
|
|
2270
2385
|
}
|
package/build/fetch-client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Immich
|
|
3
|
-
* 1.
|
|
3
|
+
* 1.133.0
|
|
4
4
|
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
5
|
* See https://www.npmjs.com/package/oazapfts
|
|
6
6
|
*/
|
|
@@ -46,8 +46,30 @@ export function deleteActivity({ id }, opts) {
|
|
|
46
46
|
method: "DELETE"
|
|
47
47
|
}));
|
|
48
48
|
}
|
|
49
|
-
export function
|
|
49
|
+
export function createNotification({ notificationCreateDto }, opts) {
|
|
50
|
+
return oazapfts.ok(oazapfts.fetchJson("/admin/notifications", oazapfts.json({
|
|
51
|
+
...opts,
|
|
52
|
+
method: "POST",
|
|
53
|
+
body: notificationCreateDto
|
|
54
|
+
})));
|
|
55
|
+
}
|
|
56
|
+
export function getNotificationTemplateAdmin({ name, templateDto }, opts) {
|
|
57
|
+
return oazapfts.ok(oazapfts.fetchJson(`/admin/notifications/templates/${encodeURIComponent(name)}`, oazapfts.json({
|
|
58
|
+
...opts,
|
|
59
|
+
method: "POST",
|
|
60
|
+
body: templateDto
|
|
61
|
+
})));
|
|
62
|
+
}
|
|
63
|
+
export function sendTestEmailAdmin({ systemConfigSmtpDto }, opts) {
|
|
64
|
+
return oazapfts.ok(oazapfts.fetchJson("/admin/notifications/test-email", oazapfts.json({
|
|
65
|
+
...opts,
|
|
66
|
+
method: "POST",
|
|
67
|
+
body: systemConfigSmtpDto
|
|
68
|
+
})));
|
|
69
|
+
}
|
|
70
|
+
export function searchUsersAdmin({ id, withDeleted }, opts) {
|
|
50
71
|
return oazapfts.ok(oazapfts.fetchJson(`/admin/users${QS.query(QS.explode({
|
|
72
|
+
id,
|
|
51
73
|
withDeleted
|
|
52
74
|
}))}`, {
|
|
53
75
|
...opts
|
|
@@ -97,6 +119,15 @@ export function restoreUserAdmin({ id }, opts) {
|
|
|
97
119
|
method: "POST"
|
|
98
120
|
}));
|
|
99
121
|
}
|
|
122
|
+
export function getUserStatisticsAdmin({ id, isFavorite, isTrashed, visibility }, opts) {
|
|
123
|
+
return oazapfts.ok(oazapfts.fetchJson(`/admin/users/${encodeURIComponent(id)}/statistics${QS.query(QS.explode({
|
|
124
|
+
isFavorite,
|
|
125
|
+
isTrashed,
|
|
126
|
+
visibility
|
|
127
|
+
}))}`, {
|
|
128
|
+
...opts
|
|
129
|
+
}));
|
|
130
|
+
}
|
|
100
131
|
export function getAllAlbums({ assetId, shared }, opts) {
|
|
101
132
|
return oazapfts.ok(oazapfts.fetchJson(`/albums${QS.query(QS.explode({
|
|
102
133
|
assetId,
|
|
@@ -265,14 +296,6 @@ export function runAssetJobs({ assetJobsDto }, opts) {
|
|
|
265
296
|
body: assetJobsDto
|
|
266
297
|
})));
|
|
267
298
|
}
|
|
268
|
-
export function getMemoryLane({ day, month }, opts) {
|
|
269
|
-
return oazapfts.ok(oazapfts.fetchJson(`/assets/memory-lane${QS.query(QS.explode({
|
|
270
|
-
day,
|
|
271
|
-
month
|
|
272
|
-
}))}`, {
|
|
273
|
-
...opts
|
|
274
|
-
}));
|
|
275
|
-
}
|
|
276
299
|
/**
|
|
277
300
|
* This property was deprecated in v1.116.0
|
|
278
301
|
*/
|
|
@@ -283,11 +306,11 @@ export function getRandom({ count }, opts) {
|
|
|
283
306
|
...opts
|
|
284
307
|
}));
|
|
285
308
|
}
|
|
286
|
-
export function getAssetStatistics({
|
|
309
|
+
export function getAssetStatistics({ isFavorite, isTrashed, visibility }, opts) {
|
|
287
310
|
return oazapfts.ok(oazapfts.fetchJson(`/assets/statistics${QS.query(QS.explode({
|
|
288
|
-
isArchived,
|
|
289
311
|
isFavorite,
|
|
290
|
-
isTrashed
|
|
312
|
+
isTrashed,
|
|
313
|
+
visibility
|
|
291
314
|
}))}`, {
|
|
292
315
|
...opts
|
|
293
316
|
}));
|
|
@@ -367,6 +390,45 @@ export function logout(opts) {
|
|
|
367
390
|
method: "POST"
|
|
368
391
|
}));
|
|
369
392
|
}
|
|
393
|
+
export function resetPinCode({ pinCodeResetDto }, opts) {
|
|
394
|
+
return oazapfts.ok(oazapfts.fetchText("/auth/pin-code", oazapfts.json({
|
|
395
|
+
...opts,
|
|
396
|
+
method: "DELETE",
|
|
397
|
+
body: pinCodeResetDto
|
|
398
|
+
})));
|
|
399
|
+
}
|
|
400
|
+
export function setupPinCode({ pinCodeSetupDto }, opts) {
|
|
401
|
+
return oazapfts.ok(oazapfts.fetchText("/auth/pin-code", oazapfts.json({
|
|
402
|
+
...opts,
|
|
403
|
+
method: "POST",
|
|
404
|
+
body: pinCodeSetupDto
|
|
405
|
+
})));
|
|
406
|
+
}
|
|
407
|
+
export function changePinCode({ pinCodeChangeDto }, opts) {
|
|
408
|
+
return oazapfts.ok(oazapfts.fetchText("/auth/pin-code", oazapfts.json({
|
|
409
|
+
...opts,
|
|
410
|
+
method: "PUT",
|
|
411
|
+
body: pinCodeChangeDto
|
|
412
|
+
})));
|
|
413
|
+
}
|
|
414
|
+
export function lockAuthSession(opts) {
|
|
415
|
+
return oazapfts.ok(oazapfts.fetchText("/auth/session/lock", {
|
|
416
|
+
...opts,
|
|
417
|
+
method: "POST"
|
|
418
|
+
}));
|
|
419
|
+
}
|
|
420
|
+
export function unlockAuthSession({ sessionUnlockDto }, opts) {
|
|
421
|
+
return oazapfts.ok(oazapfts.fetchText("/auth/session/unlock", oazapfts.json({
|
|
422
|
+
...opts,
|
|
423
|
+
method: "POST",
|
|
424
|
+
body: sessionUnlockDto
|
|
425
|
+
})));
|
|
426
|
+
}
|
|
427
|
+
export function getAuthStatus(opts) {
|
|
428
|
+
return oazapfts.ok(oazapfts.fetchJson("/auth/status", {
|
|
429
|
+
...opts
|
|
430
|
+
}));
|
|
431
|
+
}
|
|
370
432
|
export function validateAccessToken(opts) {
|
|
371
433
|
return oazapfts.ok(oazapfts.fetchJson("/auth/validateToken", {
|
|
372
434
|
...opts,
|
|
@@ -560,18 +622,46 @@ export function addMemoryAssets({ id, bulkIdsDto }, opts) {
|
|
|
560
622
|
body: bulkIdsDto
|
|
561
623
|
})));
|
|
562
624
|
}
|
|
563
|
-
export function
|
|
564
|
-
return oazapfts.ok(oazapfts.
|
|
625
|
+
export function deleteNotifications({ notificationDeleteAllDto }, opts) {
|
|
626
|
+
return oazapfts.ok(oazapfts.fetchText("/notifications", oazapfts.json({
|
|
565
627
|
...opts,
|
|
566
|
-
method: "
|
|
567
|
-
body:
|
|
628
|
+
method: "DELETE",
|
|
629
|
+
body: notificationDeleteAllDto
|
|
568
630
|
})));
|
|
569
631
|
}
|
|
570
|
-
export function
|
|
571
|
-
return oazapfts.ok(oazapfts.fetchJson(
|
|
632
|
+
export function getNotifications({ id, level, $type, unread }, opts) {
|
|
633
|
+
return oazapfts.ok(oazapfts.fetchJson(`/notifications${QS.query(QS.explode({
|
|
634
|
+
id,
|
|
635
|
+
level,
|
|
636
|
+
"type": $type,
|
|
637
|
+
unread
|
|
638
|
+
}))}`, {
|
|
639
|
+
...opts
|
|
640
|
+
}));
|
|
641
|
+
}
|
|
642
|
+
export function updateNotifications({ notificationUpdateAllDto }, opts) {
|
|
643
|
+
return oazapfts.ok(oazapfts.fetchText("/notifications", oazapfts.json({
|
|
572
644
|
...opts,
|
|
573
|
-
method: "
|
|
574
|
-
body:
|
|
645
|
+
method: "PUT",
|
|
646
|
+
body: notificationUpdateAllDto
|
|
647
|
+
})));
|
|
648
|
+
}
|
|
649
|
+
export function deleteNotification({ id }, opts) {
|
|
650
|
+
return oazapfts.ok(oazapfts.fetchText(`/notifications/${encodeURIComponent(id)}`, {
|
|
651
|
+
...opts,
|
|
652
|
+
method: "DELETE"
|
|
653
|
+
}));
|
|
654
|
+
}
|
|
655
|
+
export function getNotification({ id }, opts) {
|
|
656
|
+
return oazapfts.ok(oazapfts.fetchJson(`/notifications/${encodeURIComponent(id)}`, {
|
|
657
|
+
...opts
|
|
658
|
+
}));
|
|
659
|
+
}
|
|
660
|
+
export function updateNotification({ id, notificationUpdateDto }, opts) {
|
|
661
|
+
return oazapfts.ok(oazapfts.fetchJson(`/notifications/${encodeURIComponent(id)}`, oazapfts.json({
|
|
662
|
+
...opts,
|
|
663
|
+
method: "PUT",
|
|
664
|
+
body: notificationUpdateDto
|
|
575
665
|
})));
|
|
576
666
|
}
|
|
577
667
|
export function startOAuth({ oAuthConfigDto }, opts) {
|
|
@@ -693,25 +783,6 @@ export function getPersonThumbnail({ id }, opts) {
|
|
|
693
783
|
...opts
|
|
694
784
|
}));
|
|
695
785
|
}
|
|
696
|
-
export function getAuditFiles(opts) {
|
|
697
|
-
return oazapfts.ok(oazapfts.fetchJson("/reports", {
|
|
698
|
-
...opts
|
|
699
|
-
}));
|
|
700
|
-
}
|
|
701
|
-
export function getFileChecksums({ fileChecksumDto }, opts) {
|
|
702
|
-
return oazapfts.ok(oazapfts.fetchJson("/reports/checksum", oazapfts.json({
|
|
703
|
-
...opts,
|
|
704
|
-
method: "POST",
|
|
705
|
-
body: fileChecksumDto
|
|
706
|
-
})));
|
|
707
|
-
}
|
|
708
|
-
export function fixAuditFiles({ fileReportFixDto }, opts) {
|
|
709
|
-
return oazapfts.ok(oazapfts.fetchText("/reports/fix", oazapfts.json({
|
|
710
|
-
...opts,
|
|
711
|
-
method: "POST",
|
|
712
|
-
body: fileReportFixDto
|
|
713
|
-
})));
|
|
714
|
-
}
|
|
715
786
|
export function getAssetsByCity(opts) {
|
|
716
787
|
return oazapfts.ok(oazapfts.fetchJson("/search/cities", {
|
|
717
788
|
...opts
|
|
@@ -849,12 +920,25 @@ export function getSessions(opts) {
|
|
|
849
920
|
...opts
|
|
850
921
|
}));
|
|
851
922
|
}
|
|
923
|
+
export function createSession({ sessionCreateDto }, opts) {
|
|
924
|
+
return oazapfts.ok(oazapfts.fetchJson("/sessions", oazapfts.json({
|
|
925
|
+
...opts,
|
|
926
|
+
method: "POST",
|
|
927
|
+
body: sessionCreateDto
|
|
928
|
+
})));
|
|
929
|
+
}
|
|
852
930
|
export function deleteSession({ id }, opts) {
|
|
853
931
|
return oazapfts.ok(oazapfts.fetchText(`/sessions/${encodeURIComponent(id)}`, {
|
|
854
932
|
...opts,
|
|
855
933
|
method: "DELETE"
|
|
856
934
|
}));
|
|
857
935
|
}
|
|
936
|
+
export function lockSession({ id }, opts) {
|
|
937
|
+
return oazapfts.ok(oazapfts.fetchText(`/sessions/${encodeURIComponent(id)}/lock`, {
|
|
938
|
+
...opts,
|
|
939
|
+
method: "POST"
|
|
940
|
+
}));
|
|
941
|
+
}
|
|
858
942
|
export function getAllSharedLinks({ albumId }, opts) {
|
|
859
943
|
return oazapfts.ok(oazapfts.fetchJson(`/shared-links${QS.query(QS.explode({
|
|
860
944
|
albumId
|
|
@@ -1090,37 +1174,37 @@ export function tagAssets({ id, bulkIdsDto }, opts) {
|
|
|
1090
1174
|
body: bulkIdsDto
|
|
1091
1175
|
})));
|
|
1092
1176
|
}
|
|
1093
|
-
export function getTimeBucket({ albumId,
|
|
1177
|
+
export function getTimeBucket({ albumId, isFavorite, isTrashed, key, order, page, pageSize, personId, tagId, timeBucket, userId, visibility, withPartners, withStacked }, opts) {
|
|
1094
1178
|
return oazapfts.ok(oazapfts.fetchJson(`/timeline/bucket${QS.query(QS.explode({
|
|
1095
1179
|
albumId,
|
|
1096
|
-
isArchived,
|
|
1097
1180
|
isFavorite,
|
|
1098
1181
|
isTrashed,
|
|
1099
1182
|
key,
|
|
1100
1183
|
order,
|
|
1184
|
+
page,
|
|
1185
|
+
pageSize,
|
|
1101
1186
|
personId,
|
|
1102
|
-
size,
|
|
1103
1187
|
tagId,
|
|
1104
1188
|
timeBucket,
|
|
1105
1189
|
userId,
|
|
1190
|
+
visibility,
|
|
1106
1191
|
withPartners,
|
|
1107
1192
|
withStacked
|
|
1108
1193
|
}))}`, {
|
|
1109
1194
|
...opts
|
|
1110
1195
|
}));
|
|
1111
1196
|
}
|
|
1112
|
-
export function getTimeBuckets({ albumId,
|
|
1197
|
+
export function getTimeBuckets({ albumId, isFavorite, isTrashed, key, order, personId, tagId, userId, visibility, withPartners, withStacked }, opts) {
|
|
1113
1198
|
return oazapfts.ok(oazapfts.fetchJson(`/timeline/buckets${QS.query(QS.explode({
|
|
1114
1199
|
albumId,
|
|
1115
|
-
isArchived,
|
|
1116
1200
|
isFavorite,
|
|
1117
1201
|
isTrashed,
|
|
1118
1202
|
key,
|
|
1119
1203
|
order,
|
|
1120
1204
|
personId,
|
|
1121
|
-
size,
|
|
1122
1205
|
tagId,
|
|
1123
1206
|
userId,
|
|
1207
|
+
visibility,
|
|
1124
1208
|
withPartners,
|
|
1125
1209
|
withStacked
|
|
1126
1210
|
}))}`, {
|
|
@@ -1251,12 +1335,33 @@ export var UserAvatarColor;
|
|
|
1251
1335
|
UserAvatarColor["Gray"] = "gray";
|
|
1252
1336
|
UserAvatarColor["Amber"] = "amber";
|
|
1253
1337
|
})(UserAvatarColor || (UserAvatarColor = {}));
|
|
1338
|
+
export var NotificationLevel;
|
|
1339
|
+
(function (NotificationLevel) {
|
|
1340
|
+
NotificationLevel["Success"] = "success";
|
|
1341
|
+
NotificationLevel["Error"] = "error";
|
|
1342
|
+
NotificationLevel["Warning"] = "warning";
|
|
1343
|
+
NotificationLevel["Info"] = "info";
|
|
1344
|
+
})(NotificationLevel || (NotificationLevel = {}));
|
|
1345
|
+
export var NotificationType;
|
|
1346
|
+
(function (NotificationType) {
|
|
1347
|
+
NotificationType["JobFailed"] = "JobFailed";
|
|
1348
|
+
NotificationType["BackupFailed"] = "BackupFailed";
|
|
1349
|
+
NotificationType["SystemMessage"] = "SystemMessage";
|
|
1350
|
+
NotificationType["Custom"] = "Custom";
|
|
1351
|
+
})(NotificationType || (NotificationType = {}));
|
|
1254
1352
|
export var UserStatus;
|
|
1255
1353
|
(function (UserStatus) {
|
|
1256
1354
|
UserStatus["Active"] = "active";
|
|
1257
1355
|
UserStatus["Removing"] = "removing";
|
|
1258
1356
|
UserStatus["Deleted"] = "deleted";
|
|
1259
1357
|
})(UserStatus || (UserStatus = {}));
|
|
1358
|
+
export var AssetVisibility;
|
|
1359
|
+
(function (AssetVisibility) {
|
|
1360
|
+
AssetVisibility["Archive"] = "archive";
|
|
1361
|
+
AssetVisibility["Timeline"] = "timeline";
|
|
1362
|
+
AssetVisibility["Hidden"] = "hidden";
|
|
1363
|
+
AssetVisibility["Locked"] = "locked";
|
|
1364
|
+
})(AssetVisibility || (AssetVisibility = {}));
|
|
1260
1365
|
export var AlbumUserRole;
|
|
1261
1366
|
(function (AlbumUserRole) {
|
|
1262
1367
|
AlbumUserRole["Editor"] = "editor";
|
|
@@ -1332,6 +1437,10 @@ export var Permission;
|
|
|
1332
1437
|
Permission["MemoryRead"] = "memory.read";
|
|
1333
1438
|
Permission["MemoryUpdate"] = "memory.update";
|
|
1334
1439
|
Permission["MemoryDelete"] = "memory.delete";
|
|
1440
|
+
Permission["NotificationCreate"] = "notification.create";
|
|
1441
|
+
Permission["NotificationRead"] = "notification.read";
|
|
1442
|
+
Permission["NotificationUpdate"] = "notification.update";
|
|
1443
|
+
Permission["NotificationDelete"] = "notification.delete";
|
|
1335
1444
|
Permission["PartnerCreate"] = "partner.create";
|
|
1336
1445
|
Permission["PartnerRead"] = "partner.read";
|
|
1337
1446
|
Permission["PartnerUpdate"] = "partner.update";
|
|
@@ -1343,9 +1452,11 @@ export var Permission;
|
|
|
1343
1452
|
Permission["PersonStatistics"] = "person.statistics";
|
|
1344
1453
|
Permission["PersonMerge"] = "person.merge";
|
|
1345
1454
|
Permission["PersonReassign"] = "person.reassign";
|
|
1455
|
+
Permission["SessionCreate"] = "session.create";
|
|
1346
1456
|
Permission["SessionRead"] = "session.read";
|
|
1347
1457
|
Permission["SessionUpdate"] = "session.update";
|
|
1348
1458
|
Permission["SessionDelete"] = "session.delete";
|
|
1459
|
+
Permission["SessionLock"] = "session.lock";
|
|
1349
1460
|
Permission["SharedLinkCreate"] = "sharedLink.create";
|
|
1350
1461
|
Permission["SharedLinkRead"] = "sharedLink.read";
|
|
1351
1462
|
Permission["SharedLinkUpdate"] = "sharedLink.update";
|
|
@@ -1441,23 +1552,6 @@ export var PartnerDirection;
|
|
|
1441
1552
|
PartnerDirection["SharedBy"] = "shared-by";
|
|
1442
1553
|
PartnerDirection["SharedWith"] = "shared-with";
|
|
1443
1554
|
})(PartnerDirection || (PartnerDirection = {}));
|
|
1444
|
-
export var PathEntityType;
|
|
1445
|
-
(function (PathEntityType) {
|
|
1446
|
-
PathEntityType["Asset"] = "asset";
|
|
1447
|
-
PathEntityType["Person"] = "person";
|
|
1448
|
-
PathEntityType["User"] = "user";
|
|
1449
|
-
})(PathEntityType || (PathEntityType = {}));
|
|
1450
|
-
export var PathType;
|
|
1451
|
-
(function (PathType) {
|
|
1452
|
-
PathType["Original"] = "original";
|
|
1453
|
-
PathType["Fullsize"] = "fullsize";
|
|
1454
|
-
PathType["Preview"] = "preview";
|
|
1455
|
-
PathType["Thumbnail"] = "thumbnail";
|
|
1456
|
-
PathType["EncodedVideo"] = "encoded_video";
|
|
1457
|
-
PathType["Sidecar"] = "sidecar";
|
|
1458
|
-
PathType["Face"] = "face";
|
|
1459
|
-
PathType["Profile"] = "profile";
|
|
1460
|
-
})(PathType || (PathType = {}));
|
|
1461
1555
|
export var SearchSuggestionType;
|
|
1462
1556
|
(function (SearchSuggestionType) {
|
|
1463
1557
|
SearchSuggestionType["Country"] = "country";
|
|
@@ -1489,6 +1583,10 @@ export var SyncEntityType;
|
|
|
1489
1583
|
SyncEntityType["PartnerAssetV1"] = "PartnerAssetV1";
|
|
1490
1584
|
SyncEntityType["PartnerAssetDeleteV1"] = "PartnerAssetDeleteV1";
|
|
1491
1585
|
SyncEntityType["PartnerAssetExifV1"] = "PartnerAssetExifV1";
|
|
1586
|
+
SyncEntityType["AlbumV1"] = "AlbumV1";
|
|
1587
|
+
SyncEntityType["AlbumDeleteV1"] = "AlbumDeleteV1";
|
|
1588
|
+
SyncEntityType["AlbumUserV1"] = "AlbumUserV1";
|
|
1589
|
+
SyncEntityType["AlbumUserDeleteV1"] = "AlbumUserDeleteV1";
|
|
1492
1590
|
})(SyncEntityType || (SyncEntityType = {}));
|
|
1493
1591
|
export var SyncRequestType;
|
|
1494
1592
|
(function (SyncRequestType) {
|
|
@@ -1498,6 +1596,8 @@ export var SyncRequestType;
|
|
|
1498
1596
|
SyncRequestType["AssetExifsV1"] = "AssetExifsV1";
|
|
1499
1597
|
SyncRequestType["PartnerAssetsV1"] = "PartnerAssetsV1";
|
|
1500
1598
|
SyncRequestType["PartnerAssetExifsV1"] = "PartnerAssetExifsV1";
|
|
1599
|
+
SyncRequestType["AlbumsV1"] = "AlbumsV1";
|
|
1600
|
+
SyncRequestType["AlbumUsersV1"] = "AlbumUsersV1";
|
|
1501
1601
|
})(SyncRequestType || (SyncRequestType = {}));
|
|
1502
1602
|
export var TranscodeHWAccel;
|
|
1503
1603
|
(function (TranscodeHWAccel) {
|
|
@@ -1568,8 +1668,8 @@ export var LogLevel;
|
|
|
1568
1668
|
LogLevel["Error"] = "error";
|
|
1569
1669
|
LogLevel["Fatal"] = "fatal";
|
|
1570
1670
|
})(LogLevel || (LogLevel = {}));
|
|
1571
|
-
export var
|
|
1572
|
-
(function (
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
})(
|
|
1671
|
+
export var OAuthTokenEndpointAuthMethod;
|
|
1672
|
+
(function (OAuthTokenEndpointAuthMethod) {
|
|
1673
|
+
OAuthTokenEndpointAuthMethod["ClientSecretPost"] = "client_secret_post";
|
|
1674
|
+
OAuthTokenEndpointAuthMethod["ClientSecretBasic"] = "client_secret_basic";
|
|
1675
|
+
})(OAuthTokenEndpointAuthMethod || (OAuthTokenEndpointAuthMethod = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@immich/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.133.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.
|
|
22
|
+
"@types/node": "^22.15.18",
|
|
23
23
|
"typescript": "^5.3.3"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
"directory": "open-api/typescript-sdk"
|
|
29
29
|
},
|
|
30
30
|
"volta": {
|
|
31
|
-
"node": "22.
|
|
31
|
+
"node": "22.15.1"
|
|
32
32
|
}
|
|
33
33
|
}
|