@immich/cli 2.2.100 → 2.2.102

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/dist/index.js +65 -28
  2. package/mise.toml +29 -0
  3. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -3277,6 +3277,11 @@ var UserAvatarColor;
3277
3277
  UserAvatarColor2["Gray"] = "gray";
3278
3278
  UserAvatarColor2["Amber"] = "amber";
3279
3279
  })(UserAvatarColor || (UserAvatarColor = {}));
3280
+ var MaintenanceAction;
3281
+ (function(MaintenanceAction2) {
3282
+ MaintenanceAction2["Start"] = "start";
3283
+ MaintenanceAction2["End"] = "end";
3284
+ })(MaintenanceAction || (MaintenanceAction = {}));
3280
3285
  var NotificationLevel;
3281
3286
  (function(NotificationLevel2) {
3282
3287
  NotificationLevel2["Success"] = "success";
@@ -3395,6 +3400,7 @@ var Permission;
3395
3400
  Permission2["LibraryStatistics"] = "library.statistics";
3396
3401
  Permission2["TimelineRead"] = "timeline.read";
3397
3402
  Permission2["TimelineDownload"] = "timeline.download";
3403
+ Permission2["Maintenance"] = "maintenance";
3398
3404
  Permission2["MemoryCreate"] = "memory.create";
3399
3405
  Permission2["MemoryRead"] = "memory.read";
3400
3406
  Permission2["MemoryUpdate"] = "memory.update";
@@ -3420,6 +3426,10 @@ var Permission;
3420
3426
  Permission2["PinCodeCreate"] = "pinCode.create";
3421
3427
  Permission2["PinCodeUpdate"] = "pinCode.update";
3422
3428
  Permission2["PinCodeDelete"] = "pinCode.delete";
3429
+ Permission2["PluginCreate"] = "plugin.create";
3430
+ Permission2["PluginRead"] = "plugin.read";
3431
+ Permission2["PluginUpdate"] = "plugin.update";
3432
+ Permission2["PluginDelete"] = "plugin.delete";
3423
3433
  Permission2["ServerAbout"] = "server.about";
3424
3434
  Permission2["ServerApkLinks"] = "server.apkLinks";
3425
3435
  Permission2["ServerStorage"] = "server.storage";
@@ -3469,6 +3479,10 @@ var Permission;
3469
3479
  Permission2["UserProfileImageRead"] = "userProfileImage.read";
3470
3480
  Permission2["UserProfileImageUpdate"] = "userProfileImage.update";
3471
3481
  Permission2["UserProfileImageDelete"] = "userProfileImage.delete";
3482
+ Permission2["WorkflowCreate"] = "workflow.create";
3483
+ Permission2["WorkflowRead"] = "workflow.read";
3484
+ Permission2["WorkflowUpdate"] = "workflow.update";
3485
+ Permission2["WorkflowDelete"] = "workflow.delete";
3472
3486
  Permission2["AdminUserCreate"] = "adminUser.create";
3473
3487
  Permission2["AdminUserRead"] = "adminUser.read";
3474
3488
  Permission2["AdminUserUpdate"] = "adminUser.update";
@@ -3518,33 +3532,40 @@ var ManualJobName;
3518
3532
  ManualJobName2["MemoryCreate"] = "memory-create";
3519
3533
  ManualJobName2["BackupDatabase"] = "backup-database";
3520
3534
  })(ManualJobName || (ManualJobName = {}));
3521
- var JobName;
3522
- (function(JobName2) {
3523
- JobName2["ThumbnailGeneration"] = "thumbnailGeneration";
3524
- JobName2["MetadataExtraction"] = "metadataExtraction";
3525
- JobName2["VideoConversion"] = "videoConversion";
3526
- JobName2["FaceDetection"] = "faceDetection";
3527
- JobName2["FacialRecognition"] = "facialRecognition";
3528
- JobName2["SmartSearch"] = "smartSearch";
3529
- JobName2["DuplicateDetection"] = "duplicateDetection";
3530
- JobName2["BackgroundTask"] = "backgroundTask";
3531
- JobName2["StorageTemplateMigration"] = "storageTemplateMigration";
3532
- JobName2["Migration"] = "migration";
3533
- JobName2["Search"] = "search";
3534
- JobName2["Sidecar"] = "sidecar";
3535
- JobName2["Library"] = "library";
3536
- JobName2["Notifications"] = "notifications";
3537
- JobName2["BackupDatabase"] = "backupDatabase";
3538
- JobName2["Ocr"] = "ocr";
3539
- })(JobName || (JobName = {}));
3540
- var JobCommand;
3541
- (function(JobCommand2) {
3542
- JobCommand2["Start"] = "start";
3543
- JobCommand2["Pause"] = "pause";
3544
- JobCommand2["Resume"] = "resume";
3545
- JobCommand2["Empty"] = "empty";
3546
- JobCommand2["ClearFailed"] = "clear-failed";
3547
- })(JobCommand || (JobCommand = {}));
3535
+ var QueueName;
3536
+ (function(QueueName2) {
3537
+ QueueName2["ThumbnailGeneration"] = "thumbnailGeneration";
3538
+ QueueName2["MetadataExtraction"] = "metadataExtraction";
3539
+ QueueName2["VideoConversion"] = "videoConversion";
3540
+ QueueName2["FaceDetection"] = "faceDetection";
3541
+ QueueName2["FacialRecognition"] = "facialRecognition";
3542
+ QueueName2["SmartSearch"] = "smartSearch";
3543
+ QueueName2["DuplicateDetection"] = "duplicateDetection";
3544
+ QueueName2["BackgroundTask"] = "backgroundTask";
3545
+ QueueName2["StorageTemplateMigration"] = "storageTemplateMigration";
3546
+ QueueName2["Migration"] = "migration";
3547
+ QueueName2["Search"] = "search";
3548
+ QueueName2["Sidecar"] = "sidecar";
3549
+ QueueName2["Library"] = "library";
3550
+ QueueName2["Notifications"] = "notifications";
3551
+ QueueName2["BackupDatabase"] = "backupDatabase";
3552
+ QueueName2["Ocr"] = "ocr";
3553
+ QueueName2["Workflow"] = "workflow";
3554
+ })(QueueName || (QueueName = {}));
3555
+ var QueueCommand;
3556
+ (function(QueueCommand2) {
3557
+ QueueCommand2["Start"] = "start";
3558
+ QueueCommand2["Pause"] = "pause";
3559
+ QueueCommand2["Resume"] = "resume";
3560
+ QueueCommand2["Empty"] = "empty";
3561
+ QueueCommand2["ClearFailed"] = "clear-failed";
3562
+ })(QueueCommand || (QueueCommand = {}));
3563
+ var MemorySearchOrder;
3564
+ (function(MemorySearchOrder2) {
3565
+ MemorySearchOrder2["Asc"] = "asc";
3566
+ MemorySearchOrder2["Desc"] = "desc";
3567
+ MemorySearchOrder2["Random"] = "random";
3568
+ })(MemorySearchOrder || (MemorySearchOrder = {}));
3548
3569
  var MemoryType;
3549
3570
  (function(MemoryType2) {
3550
3571
  MemoryType2["OnThisDay"] = "on_this_day";
@@ -3554,6 +3575,12 @@ var PartnerDirection;
3554
3575
  PartnerDirection2["SharedBy"] = "shared-by";
3555
3576
  PartnerDirection2["SharedWith"] = "shared-with";
3556
3577
  })(PartnerDirection || (PartnerDirection = {}));
3578
+ var PluginContext;
3579
+ (function(PluginContext2) {
3580
+ PluginContext2["Asset"] = "asset";
3581
+ PluginContext2["Album"] = "album";
3582
+ PluginContext2["Person"] = "person";
3583
+ })(PluginContext || (PluginContext = {}));
3557
3584
  var SearchSuggestionType;
3558
3585
  (function(SearchSuggestionType2) {
3559
3586
  SearchSuggestionType2["Country"] = "country";
@@ -3721,6 +3748,16 @@ var OAuthTokenEndpointAuthMethod;
3721
3748
  OAuthTokenEndpointAuthMethod2["ClientSecretPost"] = "client_secret_post";
3722
3749
  OAuthTokenEndpointAuthMethod2["ClientSecretBasic"] = "client_secret_basic";
3723
3750
  })(OAuthTokenEndpointAuthMethod || (OAuthTokenEndpointAuthMethod = {}));
3751
+ var TriggerType;
3752
+ (function(TriggerType2) {
3753
+ TriggerType2["AssetCreate"] = "AssetCreate";
3754
+ TriggerType2["PersonRecognized"] = "PersonRecognized";
3755
+ })(TriggerType || (TriggerType = {}));
3756
+ var PluginTriggerType;
3757
+ (function(PluginTriggerType2) {
3758
+ PluginTriggerType2["AssetCreate"] = "AssetCreate";
3759
+ PluginTriggerType2["PersonRecognized"] = "PersonRecognized";
3760
+ })(PluginTriggerType || (PluginTriggerType = {}));
3724
3761
  function isHttpError(error2) {
3725
3762
  return error2 instanceof l;
3726
3763
  }
@@ -20063,7 +20100,7 @@ const serverInfo = async (options2) => {
20063
20100
  console.log(` Videos: ${stats.videos}`);
20064
20101
  console.log(` Total: ${stats.total}`);
20065
20102
  };
20066
- const version = "2.2.100";
20103
+ const version = "2.2.102";
20067
20104
  const defaultConfigDirectory = path$1.join(os.homedir(), ".config/immich/");
20068
20105
  const defaultConcurrency = Math.max(1, os.cpus().length - 1);
20069
20106
  const program = new Command().name("immich").version(version).description("Command line interface for Immich").addOption(
package/mise.toml ADDED
@@ -0,0 +1,29 @@
1
+ [tasks.install]
2
+ run = "pnpm install --filter @immich/cli --frozen-lockfile"
3
+
4
+ [tasks.build]
5
+ env._.path = "./node_modules/.bin"
6
+ run = "vite build"
7
+
8
+ [tasks.test]
9
+ env._.path = "./node_modules/.bin"
10
+ run = "vite"
11
+
12
+ [tasks.lint]
13
+ env._.path = "./node_modules/.bin"
14
+ run = "eslint \"src/**/*.ts\" --max-warnings 0"
15
+
16
+ [tasks."lint-fix"]
17
+ run = { task = "lint --fix" }
18
+
19
+ [tasks.format]
20
+ env._.path = "./node_modules/.bin"
21
+ run = "prettier --check ."
22
+
23
+ [tasks."format-fix"]
24
+ env._.path = "./node_modules/.bin"
25
+ run = "prettier --write ."
26
+
27
+ [tasks.check]
28
+ env._.path = "./node_modules/.bin"
29
+ run = "tsc --noEmit"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immich/cli",
3
- "version": "2.2.100",
3
+ "version": "2.2.102",
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": "^22.18.12",
23
+ "@types/node": "^22.19.1",
24
24
  "@vitest/coverage-v8": "^3.0.0",
25
25
  "byte-size": "^9.0.0",
26
26
  "cli-progress": "^3.12.0",