@immich/cli 2.2.105 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/.nvmrc +1 -1
  2. package/dist/index.js +78 -22
  3. package/package.json +4 -4
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 24.11.1
1
+ 24.13.0
package/dist/index.js CHANGED
@@ -3280,7 +3280,18 @@ var MaintenanceAction;
3280
3280
  (function(MaintenanceAction2) {
3281
3281
  MaintenanceAction2["Start"] = "start";
3282
3282
  MaintenanceAction2["End"] = "end";
3283
+ MaintenanceAction2["SelectDatabaseRestore"] = "select_database_restore";
3284
+ MaintenanceAction2["RestoreDatabase"] = "restore_database";
3283
3285
  })(MaintenanceAction || (MaintenanceAction = {}));
3286
+ var StorageFolder;
3287
+ (function(StorageFolder2) {
3288
+ StorageFolder2["EncodedVideo"] = "encoded-video";
3289
+ StorageFolder2["Library"] = "library";
3290
+ StorageFolder2["Upload"] = "upload";
3291
+ StorageFolder2["Profile"] = "profile";
3292
+ StorageFolder2["Thumbs"] = "thumbs";
3293
+ StorageFolder2["Backups"] = "backups";
3294
+ })(StorageFolder || (StorageFolder = {}));
3284
3295
  var NotificationLevel;
3285
3296
  (function(NotificationLevel2) {
3286
3297
  NotificationLevel2["Success"] = "success";
@@ -3369,6 +3380,10 @@ var Permission;
3369
3380
  Permission2["AssetUpload"] = "asset.upload";
3370
3381
  Permission2["AssetReplace"] = "asset.replace";
3371
3382
  Permission2["AssetCopy"] = "asset.copy";
3383
+ Permission2["AssetDerive"] = "asset.derive";
3384
+ Permission2["AssetEditGet"] = "asset.edit.get";
3385
+ Permission2["AssetEditCreate"] = "asset.edit.create";
3386
+ Permission2["AssetEditDelete"] = "asset.edit.delete";
3372
3387
  Permission2["AlbumCreate"] = "album.create";
3373
3388
  Permission2["AlbumRead"] = "album.read";
3374
3389
  Permission2["AlbumUpdate"] = "album.update";
@@ -3384,12 +3399,17 @@ var Permission;
3384
3399
  Permission2["AuthChangePassword"] = "auth.changePassword";
3385
3400
  Permission2["AuthDeviceDelete"] = "authDevice.delete";
3386
3401
  Permission2["ArchiveRead"] = "archive.read";
3402
+ Permission2["BackupList"] = "backup.list";
3403
+ Permission2["BackupDownload"] = "backup.download";
3404
+ Permission2["BackupUpload"] = "backup.upload";
3405
+ Permission2["BackupDelete"] = "backup.delete";
3387
3406
  Permission2["DuplicateRead"] = "duplicate.read";
3388
3407
  Permission2["DuplicateDelete"] = "duplicate.delete";
3389
3408
  Permission2["FaceCreate"] = "face.create";
3390
3409
  Permission2["FaceRead"] = "face.read";
3391
3410
  Permission2["FaceUpdate"] = "face.update";
3392
3411
  Permission2["FaceDelete"] = "face.delete";
3412
+ Permission2["FolderRead"] = "folder.read";
3393
3413
  Permission2["JobCreate"] = "job.create";
3394
3414
  Permission2["JobRead"] = "job.read";
3395
3415
  Permission2["LibraryCreate"] = "library.create";
@@ -3400,6 +3420,8 @@ var Permission;
3400
3420
  Permission2["TimelineRead"] = "timeline.read";
3401
3421
  Permission2["TimelineDownload"] = "timeline.download";
3402
3422
  Permission2["Maintenance"] = "maintenance";
3423
+ Permission2["MapRead"] = "map.read";
3424
+ Permission2["MapSearch"] = "map.search";
3403
3425
  Permission2["MemoryCreate"] = "memory.create";
3404
3426
  Permission2["MemoryRead"] = "memory.read";
3405
3427
  Permission2["MemoryUpdate"] = "memory.update";
@@ -3495,10 +3517,6 @@ var Permission;
3495
3517
  Permission2["AdminSessionRead"] = "adminSession.read";
3496
3518
  Permission2["AdminAuthUnlinkAll"] = "adminAuth.unlinkAll";
3497
3519
  })(Permission || (Permission = {}));
3498
- var AssetMetadataKey;
3499
- (function(AssetMetadataKey2) {
3500
- AssetMetadataKey2["MobileApp"] = "mobile-app";
3501
- })(AssetMetadataKey || (AssetMetadataKey = {}));
3502
3520
  var AssetMediaStatus;
3503
3521
  (function(AssetMediaStatus2) {
3504
3522
  AssetMediaStatus2["Created"] = "created";
@@ -3522,8 +3540,20 @@ var AssetJobName;
3522
3540
  AssetJobName2["RegenerateThumbnail"] = "regenerate-thumbnail";
3523
3541
  AssetJobName2["TranscodeVideo"] = "transcode-video";
3524
3542
  })(AssetJobName || (AssetJobName = {}));
3543
+ var AssetEditAction;
3544
+ (function(AssetEditAction2) {
3545
+ AssetEditAction2["Crop"] = "crop";
3546
+ AssetEditAction2["Rotate"] = "rotate";
3547
+ AssetEditAction2["Mirror"] = "mirror";
3548
+ })(AssetEditAction || (AssetEditAction = {}));
3549
+ var MirrorAxis;
3550
+ (function(MirrorAxis2) {
3551
+ MirrorAxis2["Horizontal"] = "horizontal";
3552
+ MirrorAxis2["Vertical"] = "vertical";
3553
+ })(MirrorAxis || (MirrorAxis = {}));
3525
3554
  var AssetMediaSize;
3526
3555
  (function(AssetMediaSize2) {
3556
+ AssetMediaSize2["Original"] = "original";
3527
3557
  AssetMediaSize2["Fullsize"] = "fullsize";
3528
3558
  AssetMediaSize2["Preview"] = "preview";
3529
3559
  AssetMediaSize2["Thumbnail"] = "thumbnail";
@@ -3556,6 +3586,7 @@ var QueueName;
3556
3586
  QueueName2["BackupDatabase"] = "backupDatabase";
3557
3587
  QueueName2["Ocr"] = "ocr";
3558
3588
  QueueName2["Workflow"] = "workflow";
3589
+ QueueName2["Editor"] = "editor";
3559
3590
  })(QueueName || (QueueName = {}));
3560
3591
  var QueueCommand;
3561
3592
  (function(QueueCommand2) {
@@ -3580,12 +3611,17 @@ var PartnerDirection;
3580
3611
  PartnerDirection2["SharedBy"] = "shared-by";
3581
3612
  PartnerDirection2["SharedWith"] = "shared-with";
3582
3613
  })(PartnerDirection || (PartnerDirection = {}));
3583
- var PluginContext;
3584
- (function(PluginContext2) {
3585
- PluginContext2["Asset"] = "asset";
3586
- PluginContext2["Album"] = "album";
3587
- PluginContext2["Person"] = "person";
3588
- })(PluginContext || (PluginContext = {}));
3614
+ var PluginContextType;
3615
+ (function(PluginContextType2) {
3616
+ PluginContextType2["Asset"] = "asset";
3617
+ PluginContextType2["Album"] = "album";
3618
+ PluginContextType2["Person"] = "person";
3619
+ })(PluginContextType || (PluginContextType = {}));
3620
+ var PluginTriggerType;
3621
+ (function(PluginTriggerType2) {
3622
+ PluginTriggerType2["AssetCreate"] = "AssetCreate";
3623
+ PluginTriggerType2["PersonRecognized"] = "PersonRecognized";
3624
+ })(PluginTriggerType || (PluginTriggerType = {}));
3589
3625
  var QueueJobStatus;
3590
3626
  (function(QueueJobStatus2) {
3591
3627
  QueueJobStatus2["Active"] = "active";
@@ -3603,6 +3639,7 @@ var JobName;
3603
3639
  JobName2["AssetDetectFaces"] = "AssetDetectFaces";
3604
3640
  JobName2["AssetDetectDuplicatesQueueAll"] = "AssetDetectDuplicatesQueueAll";
3605
3641
  JobName2["AssetDetectDuplicates"] = "AssetDetectDuplicates";
3642
+ JobName2["AssetEditThumbnailGeneration"] = "AssetEditThumbnailGeneration";
3606
3643
  JobName2["AssetEncodeVideoQueueAll"] = "AssetEncodeVideoQueueAll";
3607
3644
  JobName2["AssetEncodeVideo"] = "AssetEncodeVideo";
3608
3645
  JobName2["AssetEmptyTrash"] = "AssetEmptyTrash";
@@ -3820,16 +3857,12 @@ var OAuthTokenEndpointAuthMethod;
3820
3857
  OAuthTokenEndpointAuthMethod2["ClientSecretPost"] = "client_secret_post";
3821
3858
  OAuthTokenEndpointAuthMethod2["ClientSecretBasic"] = "client_secret_basic";
3822
3859
  })(OAuthTokenEndpointAuthMethod || (OAuthTokenEndpointAuthMethod = {}));
3823
- var TriggerType;
3824
- (function(TriggerType2) {
3825
- TriggerType2["AssetCreate"] = "AssetCreate";
3826
- TriggerType2["PersonRecognized"] = "PersonRecognized";
3827
- })(TriggerType || (TriggerType = {}));
3828
- var PluginTriggerType;
3829
- (function(PluginTriggerType2) {
3830
- PluginTriggerType2["AssetCreate"] = "AssetCreate";
3831
- PluginTriggerType2["PersonRecognized"] = "PersonRecognized";
3832
- })(PluginTriggerType || (PluginTriggerType = {}));
3860
+ var UserMetadataKey;
3861
+ (function(UserMetadataKey2) {
3862
+ UserMetadataKey2["Preferences"] = "preferences";
3863
+ UserMetadataKey2["License"] = "license";
3864
+ UserMetadataKey2["Onboarding"] = "onboarding";
3865
+ })(UserMetadataKey || (UserMetadataKey = {}));
3833
3866
  function isHttpError(error2) {
3834
3867
  return error2 instanceof l;
3835
3868
  }
@@ -9485,7 +9518,8 @@ function requireQueue() {
9485
9518
  empty: noop,
9486
9519
  kill,
9487
9520
  killAndDrain,
9488
- error: error2
9521
+ error: error2,
9522
+ abort
9489
9523
  };
9490
9524
  return self2;
9491
9525
  function running() {
@@ -9604,6 +9638,28 @@ function requireQueue() {
9604
9638
  self2.drain();
9605
9639
  self2.drain = noop;
9606
9640
  }
9641
+ function abort() {
9642
+ var current = queueHead;
9643
+ queueHead = null;
9644
+ queueTail = null;
9645
+ while (current) {
9646
+ var next = current.next;
9647
+ var callback = current.callback;
9648
+ var errorHandler2 = current.errorHandler;
9649
+ var val = current.value;
9650
+ var context2 = current.context;
9651
+ current.value = null;
9652
+ current.callback = noop;
9653
+ current.errorHandler = null;
9654
+ if (errorHandler2) {
9655
+ errorHandler2(new Error("abort"), val);
9656
+ }
9657
+ callback.call(context2, new Error("abort"));
9658
+ current.release(current);
9659
+ current = next;
9660
+ }
9661
+ self2.drain = noop;
9662
+ }
9607
9663
  function error2(handler) {
9608
9664
  errorHandler = handler;
9609
9665
  }
@@ -20139,7 +20195,7 @@ const serverInfo = async (options2) => {
20139
20195
  console.log(` Videos: ${stats.videos}`);
20140
20196
  console.log(` Total: ${stats.total}`);
20141
20197
  };
20142
- const version = "2.2.105";
20198
+ const version = "2.5.2";
20143
20199
  const defaultConfigDirectory = path$1.join(os.homedir(), ".config/immich/");
20144
20200
  const defaultConcurrency = Math.max(1, os.cpus().length - 1);
20145
20201
  const program = new Command().name("immich").version(version).description("Command line interface for Immich").addOption(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immich/cli",
3
- "version": "2.2.105",
3
+ "version": "2.5.2",
4
4
  "description": "Command Line Interface (CLI) for Immich",
5
5
  "type": "module",
6
6
  "exports": "./dist/index.js",
@@ -20,7 +20,7 @@
20
20
  "@types/lodash-es": "^4.17.12",
21
21
  "@types/micromatch": "^4.0.9",
22
22
  "@types/mock-fs": "^4.13.1",
23
- "@types/node": "^24.10.3",
23
+ "@types/node": "^24.10.9",
24
24
  "@vitest/coverage-v8": "^3.0.0",
25
25
  "byte-size": "^9.0.0",
26
26
  "cli-progress": "^3.12.0",
@@ -36,7 +36,7 @@
36
36
  "typescript": "^5.3.3",
37
37
  "typescript-eslint": "^8.28.0",
38
38
  "vite": "^7.0.0",
39
- "vite-tsconfig-paths": "^5.0.0",
39
+ "vite-tsconfig-paths": "^6.0.0",
40
40
  "vitest": "^3.0.0",
41
41
  "vitest-fetch-mock": "^0.4.0",
42
42
  "yaml": "^2.3.1"
@@ -57,7 +57,7 @@
57
57
  "micromatch": "^4.0.8"
58
58
  },
59
59
  "volta": {
60
- "node": "24.11.1"
60
+ "node": "24.13.0"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "vite build",