@immich/sdk 1.135.3 → 1.136.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 CHANGED
@@ -1 +1 @@
1
- 22.16.0
1
+ 22.17.1
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Immich
3
- * 1.135.3
3
+ * 1.136.0
4
4
  * DO NOT MODIFY - This file has been generated using oazapfts.
5
5
  * See https://www.npmjs.com/package/oazapfts
6
6
  */
@@ -884,7 +884,7 @@ export type MetadataSearchDto = {
884
884
  rating?: number;
885
885
  size?: number;
886
886
  state?: string | null;
887
- tagIds?: string[];
887
+ tagIds?: string[] | null;
888
888
  takenAfter?: string;
889
889
  takenBefore?: string;
890
890
  thumbnailPath?: string;
@@ -951,7 +951,7 @@ export type RandomSearchDto = {
951
951
  rating?: number;
952
952
  size?: number;
953
953
  state?: string | null;
954
- tagIds?: string[];
954
+ tagIds?: string[] | null;
955
955
  takenAfter?: string;
956
956
  takenBefore?: string;
957
957
  trashedAfter?: string;
@@ -988,7 +988,7 @@ export type SmartSearchDto = {
988
988
  rating?: number;
989
989
  size?: number;
990
990
  state?: string | null;
991
- tagIds?: string[];
991
+ tagIds?: string[] | null;
992
992
  takenAfter?: string;
993
993
  takenBefore?: string;
994
994
  trashedAfter?: string;
@@ -1020,7 +1020,7 @@ export type StatisticsSearchDto = {
1020
1020
  personIds?: string[];
1021
1021
  rating?: number;
1022
1022
  state?: string | null;
1023
- tagIds?: string[];
1023
+ tagIds?: string[] | null;
1024
1024
  takenAfter?: string;
1025
1025
  takenBefore?: string;
1026
1026
  trashedAfter?: string;
@@ -1159,6 +1159,7 @@ export type SessionResponseDto = {
1159
1159
  deviceType: string;
1160
1160
  expiresAt?: string;
1161
1161
  id: string;
1162
+ isPendingSyncReset: boolean;
1162
1163
  updatedAt: string;
1163
1164
  };
1164
1165
  export type SessionCreateDto = {
@@ -1174,9 +1175,13 @@ export type SessionCreateResponseDto = {
1174
1175
  deviceType: string;
1175
1176
  expiresAt?: string;
1176
1177
  id: string;
1178
+ isPendingSyncReset: boolean;
1177
1179
  token: string;
1178
1180
  updatedAt: string;
1179
1181
  };
1182
+ export type SessionUpdateDto = {
1183
+ isPendingSyncReset?: boolean;
1184
+ };
1180
1185
  export type SharedLinkResponseDto = {
1181
1186
  album?: AlbumResponseDto;
1182
1187
  allowDownload: boolean;
@@ -1259,6 +1264,7 @@ export type AssetFullSyncDto = {
1259
1264
  userId?: string;
1260
1265
  };
1261
1266
  export type SyncStreamDto = {
1267
+ reset?: boolean;
1262
1268
  types: SyncRequestType[];
1263
1269
  };
1264
1270
  export type DatabaseBackupConfig = {
@@ -1378,6 +1384,14 @@ export type SystemConfigMetadataDto = {
1378
1384
  export type SystemConfigNewVersionCheckDto = {
1379
1385
  enabled: boolean;
1380
1386
  };
1387
+ export type SystemConfigNightlyTasksDto = {
1388
+ clusterNewFaces: boolean;
1389
+ databaseCleanup: boolean;
1390
+ generateMemories: boolean;
1391
+ missingThumbnails: boolean;
1392
+ startTime: string;
1393
+ syncQuotaUsage: boolean;
1394
+ };
1381
1395
  export type SystemConfigNotificationsDto = {
1382
1396
  smtp: SystemConfigSmtpDto;
1383
1397
  };
@@ -1393,6 +1407,7 @@ export type SystemConfigOAuthDto = {
1393
1407
  mobileOverrideEnabled: boolean;
1394
1408
  mobileRedirectUri: string;
1395
1409
  profileSigningAlgorithm: string;
1410
+ roleClaim: string;
1396
1411
  scope: string;
1397
1412
  signingAlgorithm: string;
1398
1413
  storageLabelClaim: string;
@@ -1445,6 +1460,7 @@ export type SystemConfigDto = {
1445
1460
  map: SystemConfigMapDto;
1446
1461
  metadata: SystemConfigMetadataDto;
1447
1462
  newVersionCheck: SystemConfigNewVersionCheckDto;
1463
+ nightlyTasks: SystemConfigNightlyTasksDto;
1448
1464
  notifications: SystemConfigNotificationsDto;
1449
1465
  oauth: SystemConfigOAuthDto;
1450
1466
  passwordLogin: SystemConfigPasswordLoginDto;
@@ -1920,6 +1936,9 @@ export declare function updatePartner({ id, updatePartnerDto }: {
1920
1936
  id: string;
1921
1937
  updatePartnerDto: UpdatePartnerDto;
1922
1938
  }, opts?: Oazapfts.RequestOpts): Promise<PartnerResponseDto>;
1939
+ export declare function deletePeople({ bulkIdsDto }: {
1940
+ bulkIdsDto: BulkIdsDto;
1941
+ }, opts?: Oazapfts.RequestOpts): Promise<never>;
1923
1942
  export declare function getAllPeople({ closestAssetId, closestPersonId, page, size, withHidden }: {
1924
1943
  closestAssetId?: string;
1925
1944
  closestPersonId?: string;
@@ -1933,6 +1952,9 @@ export declare function createPerson({ personCreateDto }: {
1933
1952
  export declare function updatePeople({ peopleUpdateDto }: {
1934
1953
  peopleUpdateDto: PeopleUpdateDto;
1935
1954
  }, opts?: Oazapfts.RequestOpts): Promise<BulkIdResponseDto[]>;
1955
+ export declare function deletePerson({ id }: {
1956
+ id: string;
1957
+ }, opts?: Oazapfts.RequestOpts): Promise<never>;
1936
1958
  export declare function getPerson({ id }: {
1937
1959
  id: string;
1938
1960
  }, opts?: Oazapfts.RequestOpts): Promise<PersonResponseDto>;
@@ -2008,6 +2030,10 @@ export declare function createSession({ sessionCreateDto }: {
2008
2030
  export declare function deleteSession({ id }: {
2009
2031
  id: string;
2010
2032
  }, opts?: Oazapfts.RequestOpts): Promise<never>;
2033
+ export declare function updateSession({ id, sessionUpdateDto }: {
2034
+ id: string;
2035
+ sessionUpdateDto: SessionUpdateDto;
2036
+ }, opts?: Oazapfts.RequestOpts): Promise<SessionResponseDto>;
2011
2037
  export declare function lockSession({ id }: {
2012
2038
  id: string;
2013
2039
  }, opts?: Oazapfts.RequestOpts): Promise<never>;
@@ -2061,6 +2087,10 @@ export declare function updateStack({ id, stackUpdateDto }: {
2061
2087
  id: string;
2062
2088
  stackUpdateDto: StackUpdateDto;
2063
2089
  }, opts?: Oazapfts.RequestOpts): Promise<StackResponseDto>;
2090
+ export declare function removeAssetFromStack({ assetId, id }: {
2091
+ assetId: string;
2092
+ id: string;
2093
+ }, opts?: Oazapfts.RequestOpts): Promise<never>;
2064
2094
  export declare function deleteSyncAck({ syncAckDeleteDto }: {
2065
2095
  syncAckDeleteDto: SyncAckDeleteDto;
2066
2096
  }, opts?: Oazapfts.RequestOpts): Promise<never>;
@@ -2416,34 +2446,69 @@ export declare enum Error2 {
2416
2446
  NotFound = "not_found"
2417
2447
  }
2418
2448
  export declare enum SyncEntityType {
2449
+ AuthUserV1 = "AuthUserV1",
2419
2450
  UserV1 = "UserV1",
2420
2451
  UserDeleteV1 = "UserDeleteV1",
2421
- PartnerV1 = "PartnerV1",
2422
- PartnerDeleteV1 = "PartnerDeleteV1",
2423
2452
  AssetV1 = "AssetV1",
2424
2453
  AssetDeleteV1 = "AssetDeleteV1",
2425
2454
  AssetExifV1 = "AssetExifV1",
2455
+ PartnerV1 = "PartnerV1",
2456
+ PartnerDeleteV1 = "PartnerDeleteV1",
2426
2457
  PartnerAssetV1 = "PartnerAssetV1",
2427
2458
  PartnerAssetBackfillV1 = "PartnerAssetBackfillV1",
2428
2459
  PartnerAssetDeleteV1 = "PartnerAssetDeleteV1",
2429
2460
  PartnerAssetExifV1 = "PartnerAssetExifV1",
2430
2461
  PartnerAssetExifBackfillV1 = "PartnerAssetExifBackfillV1",
2462
+ PartnerStackBackfillV1 = "PartnerStackBackfillV1",
2463
+ PartnerStackDeleteV1 = "PartnerStackDeleteV1",
2464
+ PartnerStackV1 = "PartnerStackV1",
2431
2465
  AlbumV1 = "AlbumV1",
2432
2466
  AlbumDeleteV1 = "AlbumDeleteV1",
2433
2467
  AlbumUserV1 = "AlbumUserV1",
2434
2468
  AlbumUserBackfillV1 = "AlbumUserBackfillV1",
2435
2469
  AlbumUserDeleteV1 = "AlbumUserDeleteV1",
2436
- SyncAckV1 = "SyncAckV1"
2470
+ AlbumAssetV1 = "AlbumAssetV1",
2471
+ AlbumAssetBackfillV1 = "AlbumAssetBackfillV1",
2472
+ AlbumAssetExifV1 = "AlbumAssetExifV1",
2473
+ AlbumAssetExifBackfillV1 = "AlbumAssetExifBackfillV1",
2474
+ AlbumToAssetV1 = "AlbumToAssetV1",
2475
+ AlbumToAssetDeleteV1 = "AlbumToAssetDeleteV1",
2476
+ AlbumToAssetBackfillV1 = "AlbumToAssetBackfillV1",
2477
+ MemoryV1 = "MemoryV1",
2478
+ MemoryDeleteV1 = "MemoryDeleteV1",
2479
+ MemoryToAssetV1 = "MemoryToAssetV1",
2480
+ MemoryToAssetDeleteV1 = "MemoryToAssetDeleteV1",
2481
+ StackV1 = "StackV1",
2482
+ StackDeleteV1 = "StackDeleteV1",
2483
+ PersonV1 = "PersonV1",
2484
+ PersonDeleteV1 = "PersonDeleteV1",
2485
+ AssetFaceV1 = "AssetFaceV1",
2486
+ AssetFaceDeleteV1 = "AssetFaceDeleteV1",
2487
+ UserMetadataV1 = "UserMetadataV1",
2488
+ UserMetadataDeleteV1 = "UserMetadataDeleteV1",
2489
+ SyncAckV1 = "SyncAckV1",
2490
+ SyncResetV1 = "SyncResetV1"
2437
2491
  }
2438
2492
  export declare enum SyncRequestType {
2439
- UsersV1 = "UsersV1",
2440
- PartnersV1 = "PartnersV1",
2493
+ AlbumsV1 = "AlbumsV1",
2494
+ AlbumUsersV1 = "AlbumUsersV1",
2495
+ AlbumToAssetsV1 = "AlbumToAssetsV1",
2496
+ AlbumAssetsV1 = "AlbumAssetsV1",
2497
+ AlbumAssetExifsV1 = "AlbumAssetExifsV1",
2441
2498
  AssetsV1 = "AssetsV1",
2442
2499
  AssetExifsV1 = "AssetExifsV1",
2500
+ AuthUsersV1 = "AuthUsersV1",
2501
+ MemoriesV1 = "MemoriesV1",
2502
+ MemoryToAssetsV1 = "MemoryToAssetsV1",
2503
+ PartnersV1 = "PartnersV1",
2443
2504
  PartnerAssetsV1 = "PartnerAssetsV1",
2444
2505
  PartnerAssetExifsV1 = "PartnerAssetExifsV1",
2445
- AlbumsV1 = "AlbumsV1",
2446
- AlbumUsersV1 = "AlbumUsersV1"
2506
+ PartnerStacksV1 = "PartnerStacksV1",
2507
+ StacksV1 = "StacksV1",
2508
+ UsersV1 = "UsersV1",
2509
+ PeopleV1 = "PeopleV1",
2510
+ AssetFacesV1 = "AssetFacesV1",
2511
+ UserMetadataV1 = "UserMetadataV1"
2447
2512
  }
2448
2513
  export declare enum TranscodeHWAccel {
2449
2514
  Nvenc = "nvenc",
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Immich
3
- * 1.135.3
3
+ * 1.136.0
4
4
  * DO NOT MODIFY - This file has been generated using oazapfts.
5
5
  * See https://www.npmjs.com/package/oazapfts
6
6
  */
@@ -745,6 +745,13 @@ export function updatePartner({ id, updatePartnerDto }, opts) {
745
745
  body: updatePartnerDto
746
746
  })));
747
747
  }
748
+ export function deletePeople({ bulkIdsDto }, opts) {
749
+ return oazapfts.ok(oazapfts.fetchText("/people", oazapfts.json({
750
+ ...opts,
751
+ method: "DELETE",
752
+ body: bulkIdsDto
753
+ })));
754
+ }
748
755
  export function getAllPeople({ closestAssetId, closestPersonId, page, size, withHidden }, opts) {
749
756
  return oazapfts.ok(oazapfts.fetchJson(`/people${QS.query(QS.explode({
750
757
  closestAssetId,
@@ -770,6 +777,12 @@ export function updatePeople({ peopleUpdateDto }, opts) {
770
777
  body: peopleUpdateDto
771
778
  })));
772
779
  }
780
+ export function deletePerson({ id }, opts) {
781
+ return oazapfts.ok(oazapfts.fetchText(`/people/${encodeURIComponent(id)}`, {
782
+ ...opts,
783
+ method: "DELETE"
784
+ }));
785
+ }
773
786
  export function getPerson({ id }, opts) {
774
787
  return oazapfts.ok(oazapfts.fetchJson(`/people/${encodeURIComponent(id)}`, {
775
788
  ...opts
@@ -973,6 +986,13 @@ export function deleteSession({ id }, opts) {
973
986
  method: "DELETE"
974
987
  }));
975
988
  }
989
+ export function updateSession({ id, sessionUpdateDto }, opts) {
990
+ return oazapfts.ok(oazapfts.fetchJson(`/sessions/${encodeURIComponent(id)}`, oazapfts.json({
991
+ ...opts,
992
+ method: "PUT",
993
+ body: sessionUpdateDto
994
+ })));
995
+ }
976
996
  export function lockSession({ id }, opts) {
977
997
  return oazapfts.ok(oazapfts.fetchText(`/sessions/${encodeURIComponent(id)}/lock`, {
978
998
  ...opts,
@@ -1077,6 +1097,12 @@ export function updateStack({ id, stackUpdateDto }, opts) {
1077
1097
  body: stackUpdateDto
1078
1098
  })));
1079
1099
  }
1100
+ export function removeAssetFromStack({ assetId, id }, opts) {
1101
+ return oazapfts.ok(oazapfts.fetchText(`/stacks/${encodeURIComponent(id)}/assets/${encodeURIComponent(assetId)}`, {
1102
+ ...opts,
1103
+ method: "DELETE"
1104
+ }));
1105
+ }
1080
1106
  export function deleteSyncAck({ syncAckDeleteDto }, opts) {
1081
1107
  return oazapfts.ok(oazapfts.fetchText("/sync/ack", oazapfts.json({
1082
1108
  ...opts,
@@ -1634,35 +1660,70 @@ export var Error2;
1634
1660
  })(Error2 || (Error2 = {}));
1635
1661
  export var SyncEntityType;
1636
1662
  (function (SyncEntityType) {
1663
+ SyncEntityType["AuthUserV1"] = "AuthUserV1";
1637
1664
  SyncEntityType["UserV1"] = "UserV1";
1638
1665
  SyncEntityType["UserDeleteV1"] = "UserDeleteV1";
1639
- SyncEntityType["PartnerV1"] = "PartnerV1";
1640
- SyncEntityType["PartnerDeleteV1"] = "PartnerDeleteV1";
1641
1666
  SyncEntityType["AssetV1"] = "AssetV1";
1642
1667
  SyncEntityType["AssetDeleteV1"] = "AssetDeleteV1";
1643
1668
  SyncEntityType["AssetExifV1"] = "AssetExifV1";
1669
+ SyncEntityType["PartnerV1"] = "PartnerV1";
1670
+ SyncEntityType["PartnerDeleteV1"] = "PartnerDeleteV1";
1644
1671
  SyncEntityType["PartnerAssetV1"] = "PartnerAssetV1";
1645
1672
  SyncEntityType["PartnerAssetBackfillV1"] = "PartnerAssetBackfillV1";
1646
1673
  SyncEntityType["PartnerAssetDeleteV1"] = "PartnerAssetDeleteV1";
1647
1674
  SyncEntityType["PartnerAssetExifV1"] = "PartnerAssetExifV1";
1648
1675
  SyncEntityType["PartnerAssetExifBackfillV1"] = "PartnerAssetExifBackfillV1";
1676
+ SyncEntityType["PartnerStackBackfillV1"] = "PartnerStackBackfillV1";
1677
+ SyncEntityType["PartnerStackDeleteV1"] = "PartnerStackDeleteV1";
1678
+ SyncEntityType["PartnerStackV1"] = "PartnerStackV1";
1649
1679
  SyncEntityType["AlbumV1"] = "AlbumV1";
1650
1680
  SyncEntityType["AlbumDeleteV1"] = "AlbumDeleteV1";
1651
1681
  SyncEntityType["AlbumUserV1"] = "AlbumUserV1";
1652
1682
  SyncEntityType["AlbumUserBackfillV1"] = "AlbumUserBackfillV1";
1653
1683
  SyncEntityType["AlbumUserDeleteV1"] = "AlbumUserDeleteV1";
1684
+ SyncEntityType["AlbumAssetV1"] = "AlbumAssetV1";
1685
+ SyncEntityType["AlbumAssetBackfillV1"] = "AlbumAssetBackfillV1";
1686
+ SyncEntityType["AlbumAssetExifV1"] = "AlbumAssetExifV1";
1687
+ SyncEntityType["AlbumAssetExifBackfillV1"] = "AlbumAssetExifBackfillV1";
1688
+ SyncEntityType["AlbumToAssetV1"] = "AlbumToAssetV1";
1689
+ SyncEntityType["AlbumToAssetDeleteV1"] = "AlbumToAssetDeleteV1";
1690
+ SyncEntityType["AlbumToAssetBackfillV1"] = "AlbumToAssetBackfillV1";
1691
+ SyncEntityType["MemoryV1"] = "MemoryV1";
1692
+ SyncEntityType["MemoryDeleteV1"] = "MemoryDeleteV1";
1693
+ SyncEntityType["MemoryToAssetV1"] = "MemoryToAssetV1";
1694
+ SyncEntityType["MemoryToAssetDeleteV1"] = "MemoryToAssetDeleteV1";
1695
+ SyncEntityType["StackV1"] = "StackV1";
1696
+ SyncEntityType["StackDeleteV1"] = "StackDeleteV1";
1697
+ SyncEntityType["PersonV1"] = "PersonV1";
1698
+ SyncEntityType["PersonDeleteV1"] = "PersonDeleteV1";
1699
+ SyncEntityType["AssetFaceV1"] = "AssetFaceV1";
1700
+ SyncEntityType["AssetFaceDeleteV1"] = "AssetFaceDeleteV1";
1701
+ SyncEntityType["UserMetadataV1"] = "UserMetadataV1";
1702
+ SyncEntityType["UserMetadataDeleteV1"] = "UserMetadataDeleteV1";
1654
1703
  SyncEntityType["SyncAckV1"] = "SyncAckV1";
1704
+ SyncEntityType["SyncResetV1"] = "SyncResetV1";
1655
1705
  })(SyncEntityType || (SyncEntityType = {}));
1656
1706
  export var SyncRequestType;
1657
1707
  (function (SyncRequestType) {
1658
- SyncRequestType["UsersV1"] = "UsersV1";
1659
- SyncRequestType["PartnersV1"] = "PartnersV1";
1708
+ SyncRequestType["AlbumsV1"] = "AlbumsV1";
1709
+ SyncRequestType["AlbumUsersV1"] = "AlbumUsersV1";
1710
+ SyncRequestType["AlbumToAssetsV1"] = "AlbumToAssetsV1";
1711
+ SyncRequestType["AlbumAssetsV1"] = "AlbumAssetsV1";
1712
+ SyncRequestType["AlbumAssetExifsV1"] = "AlbumAssetExifsV1";
1660
1713
  SyncRequestType["AssetsV1"] = "AssetsV1";
1661
1714
  SyncRequestType["AssetExifsV1"] = "AssetExifsV1";
1715
+ SyncRequestType["AuthUsersV1"] = "AuthUsersV1";
1716
+ SyncRequestType["MemoriesV1"] = "MemoriesV1";
1717
+ SyncRequestType["MemoryToAssetsV1"] = "MemoryToAssetsV1";
1718
+ SyncRequestType["PartnersV1"] = "PartnersV1";
1662
1719
  SyncRequestType["PartnerAssetsV1"] = "PartnerAssetsV1";
1663
1720
  SyncRequestType["PartnerAssetExifsV1"] = "PartnerAssetExifsV1";
1664
- SyncRequestType["AlbumsV1"] = "AlbumsV1";
1665
- SyncRequestType["AlbumUsersV1"] = "AlbumUsersV1";
1721
+ SyncRequestType["PartnerStacksV1"] = "PartnerStacksV1";
1722
+ SyncRequestType["StacksV1"] = "StacksV1";
1723
+ SyncRequestType["UsersV1"] = "UsersV1";
1724
+ SyncRequestType["PeopleV1"] = "PeopleV1";
1725
+ SyncRequestType["AssetFacesV1"] = "AssetFacesV1";
1726
+ SyncRequestType["UserMetadataV1"] = "UserMetadataV1";
1666
1727
  })(SyncRequestType || (SyncRequestType = {}));
1667
1728
  export var TranscodeHWAccel;
1668
1729
  (function (TranscodeHWAccel) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immich/sdk",
3
- "version": "1.135.3",
3
+ "version": "1.136.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.31",
22
+ "@types/node": "^22.16.4",
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.16.0"
31
+ "node": "22.17.1"
32
32
  }
33
33
  }