@immich/cli 2.2.73 → 2.2.74
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/dist/index.js +52 -9
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3213,9 +3213,10 @@ function createAlbum({ createAlbumDto }, opts) {
|
|
|
3213
3213
|
body: createAlbumDto
|
|
3214
3214
|
})));
|
|
3215
3215
|
}
|
|
3216
|
-
function addAssetsToAlbum({ id, key, bulkIdsDto }, opts) {
|
|
3216
|
+
function addAssetsToAlbum({ id, key, slug, bulkIdsDto }, opts) {
|
|
3217
3217
|
return oazapfts.ok(oazapfts.fetchJson(`/albums/${encodeURIComponent(id)}/assets${q(m({
|
|
3218
|
-
key
|
|
3218
|
+
key,
|
|
3219
|
+
slug
|
|
3219
3220
|
}))}`, oazapfts.json({
|
|
3220
3221
|
...opts,
|
|
3221
3222
|
method: "PUT",
|
|
@@ -3348,25 +3349,35 @@ var Permission;
|
|
|
3348
3349
|
Permission2["AssetRead"] = "asset.read";
|
|
3349
3350
|
Permission2["AssetUpdate"] = "asset.update";
|
|
3350
3351
|
Permission2["AssetDelete"] = "asset.delete";
|
|
3352
|
+
Permission2["AssetStatistics"] = "asset.statistics";
|
|
3351
3353
|
Permission2["AssetShare"] = "asset.share";
|
|
3352
3354
|
Permission2["AssetView"] = "asset.view";
|
|
3353
3355
|
Permission2["AssetDownload"] = "asset.download";
|
|
3354
3356
|
Permission2["AssetUpload"] = "asset.upload";
|
|
3357
|
+
Permission2["AssetReplace"] = "asset.replace";
|
|
3355
3358
|
Permission2["AlbumCreate"] = "album.create";
|
|
3356
3359
|
Permission2["AlbumRead"] = "album.read";
|
|
3357
3360
|
Permission2["AlbumUpdate"] = "album.update";
|
|
3358
3361
|
Permission2["AlbumDelete"] = "album.delete";
|
|
3359
3362
|
Permission2["AlbumStatistics"] = "album.statistics";
|
|
3360
|
-
Permission2["AlbumAddAsset"] = "album.addAsset";
|
|
3361
|
-
Permission2["AlbumRemoveAsset"] = "album.removeAsset";
|
|
3362
3363
|
Permission2["AlbumShare"] = "album.share";
|
|
3363
3364
|
Permission2["AlbumDownload"] = "album.download";
|
|
3365
|
+
Permission2["AlbumAssetCreate"] = "albumAsset.create";
|
|
3366
|
+
Permission2["AlbumAssetDelete"] = "albumAsset.delete";
|
|
3367
|
+
Permission2["AlbumUserCreate"] = "albumUser.create";
|
|
3368
|
+
Permission2["AlbumUserUpdate"] = "albumUser.update";
|
|
3369
|
+
Permission2["AlbumUserDelete"] = "albumUser.delete";
|
|
3370
|
+
Permission2["AuthChangePassword"] = "auth.changePassword";
|
|
3364
3371
|
Permission2["AuthDeviceDelete"] = "authDevice.delete";
|
|
3365
3372
|
Permission2["ArchiveRead"] = "archive.read";
|
|
3373
|
+
Permission2["DuplicateRead"] = "duplicate.read";
|
|
3374
|
+
Permission2["DuplicateDelete"] = "duplicate.delete";
|
|
3366
3375
|
Permission2["FaceCreate"] = "face.create";
|
|
3367
3376
|
Permission2["FaceRead"] = "face.read";
|
|
3368
3377
|
Permission2["FaceUpdate"] = "face.update";
|
|
3369
3378
|
Permission2["FaceDelete"] = "face.delete";
|
|
3379
|
+
Permission2["JobCreate"] = "job.create";
|
|
3380
|
+
Permission2["JobRead"] = "job.read";
|
|
3370
3381
|
Permission2["LibraryCreate"] = "library.create";
|
|
3371
3382
|
Permission2["LibraryRead"] = "library.read";
|
|
3372
3383
|
Permission2["LibraryUpdate"] = "library.update";
|
|
@@ -3378,6 +3389,9 @@ var Permission;
|
|
|
3378
3389
|
Permission2["MemoryRead"] = "memory.read";
|
|
3379
3390
|
Permission2["MemoryUpdate"] = "memory.update";
|
|
3380
3391
|
Permission2["MemoryDelete"] = "memory.delete";
|
|
3392
|
+
Permission2["MemoryStatistics"] = "memory.statistics";
|
|
3393
|
+
Permission2["MemoryAssetCreate"] = "memoryAsset.create";
|
|
3394
|
+
Permission2["MemoryAssetDelete"] = "memoryAsset.delete";
|
|
3381
3395
|
Permission2["NotificationCreate"] = "notification.create";
|
|
3382
3396
|
Permission2["NotificationRead"] = "notification.read";
|
|
3383
3397
|
Permission2["NotificationUpdate"] = "notification.update";
|
|
@@ -3393,6 +3407,16 @@ var Permission;
|
|
|
3393
3407
|
Permission2["PersonStatistics"] = "person.statistics";
|
|
3394
3408
|
Permission2["PersonMerge"] = "person.merge";
|
|
3395
3409
|
Permission2["PersonReassign"] = "person.reassign";
|
|
3410
|
+
Permission2["PinCodeCreate"] = "pinCode.create";
|
|
3411
|
+
Permission2["PinCodeUpdate"] = "pinCode.update";
|
|
3412
|
+
Permission2["PinCodeDelete"] = "pinCode.delete";
|
|
3413
|
+
Permission2["ServerAbout"] = "server.about";
|
|
3414
|
+
Permission2["ServerApkLinks"] = "server.apkLinks";
|
|
3415
|
+
Permission2["ServerStorage"] = "server.storage";
|
|
3416
|
+
Permission2["ServerStatistics"] = "server.statistics";
|
|
3417
|
+
Permission2["ServerLicenseRead"] = "serverLicense.read";
|
|
3418
|
+
Permission2["ServerLicenseUpdate"] = "serverLicense.update";
|
|
3419
|
+
Permission2["ServerLicenseDelete"] = "serverLicense.delete";
|
|
3396
3420
|
Permission2["SessionCreate"] = "session.create";
|
|
3397
3421
|
Permission2["SessionRead"] = "session.read";
|
|
3398
3422
|
Permission2["SessionUpdate"] = "session.update";
|
|
@@ -3406,6 +3430,10 @@ var Permission;
|
|
|
3406
3430
|
Permission2["StackRead"] = "stack.read";
|
|
3407
3431
|
Permission2["StackUpdate"] = "stack.update";
|
|
3408
3432
|
Permission2["StackDelete"] = "stack.delete";
|
|
3433
|
+
Permission2["SyncStream"] = "sync.stream";
|
|
3434
|
+
Permission2["SyncCheckpointRead"] = "syncCheckpoint.read";
|
|
3435
|
+
Permission2["SyncCheckpointUpdate"] = "syncCheckpoint.update";
|
|
3436
|
+
Permission2["SyncCheckpointDelete"] = "syncCheckpoint.delete";
|
|
3409
3437
|
Permission2["SystemConfigRead"] = "systemConfig.read";
|
|
3410
3438
|
Permission2["SystemConfigUpdate"] = "systemConfig.update";
|
|
3411
3439
|
Permission2["SystemMetadataRead"] = "systemMetadata.read";
|
|
@@ -3415,10 +3443,25 @@ var Permission;
|
|
|
3415
3443
|
Permission2["TagUpdate"] = "tag.update";
|
|
3416
3444
|
Permission2["TagDelete"] = "tag.delete";
|
|
3417
3445
|
Permission2["TagAsset"] = "tag.asset";
|
|
3418
|
-
Permission2["
|
|
3419
|
-
Permission2["
|
|
3420
|
-
Permission2["
|
|
3421
|
-
Permission2["
|
|
3446
|
+
Permission2["UserRead"] = "user.read";
|
|
3447
|
+
Permission2["UserUpdate"] = "user.update";
|
|
3448
|
+
Permission2["UserLicenseCreate"] = "userLicense.create";
|
|
3449
|
+
Permission2["UserLicenseRead"] = "userLicense.read";
|
|
3450
|
+
Permission2["UserLicenseUpdate"] = "userLicense.update";
|
|
3451
|
+
Permission2["UserLicenseDelete"] = "userLicense.delete";
|
|
3452
|
+
Permission2["UserOnboardingRead"] = "userOnboarding.read";
|
|
3453
|
+
Permission2["UserOnboardingUpdate"] = "userOnboarding.update";
|
|
3454
|
+
Permission2["UserOnboardingDelete"] = "userOnboarding.delete";
|
|
3455
|
+
Permission2["UserPreferenceRead"] = "userPreference.read";
|
|
3456
|
+
Permission2["UserPreferenceUpdate"] = "userPreference.update";
|
|
3457
|
+
Permission2["UserProfileImageCreate"] = "userProfileImage.create";
|
|
3458
|
+
Permission2["UserProfileImageRead"] = "userProfileImage.read";
|
|
3459
|
+
Permission2["UserProfileImageUpdate"] = "userProfileImage.update";
|
|
3460
|
+
Permission2["UserProfileImageDelete"] = "userProfileImage.delete";
|
|
3461
|
+
Permission2["AdminUserCreate"] = "adminUser.create";
|
|
3462
|
+
Permission2["AdminUserRead"] = "adminUser.read";
|
|
3463
|
+
Permission2["AdminUserUpdate"] = "adminUser.update";
|
|
3464
|
+
Permission2["AdminUserDelete"] = "adminUser.delete";
|
|
3422
3465
|
})(Permission || (Permission = {}));
|
|
3423
3466
|
var AssetMediaStatus;
|
|
3424
3467
|
(function(AssetMediaStatus2) {
|
|
@@ -19968,7 +20011,7 @@ const serverInfo = async (options2) => {
|
|
|
19968
20011
|
console.log(` Videos: ${stats.videos}`);
|
|
19969
20012
|
console.log(` Total: ${stats.total}`);
|
|
19970
20013
|
};
|
|
19971
|
-
const version = "2.2.
|
|
20014
|
+
const version = "2.2.74";
|
|
19972
20015
|
const defaultConfigDirectory = path$1.join(os.homedir(), ".config/immich/");
|
|
19973
20016
|
const program = new Command().name("immich").version(version).description("Command line interface for Immich").addOption(
|
|
19974
20017
|
new Option("-d, --config-directory <directory>", "Configuration directory where auth.yml will be stored").env("IMMICH_CONFIG_DIR").default(defaultConfigDirectory)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@immich/cli",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.74",
|
|
4
4
|
"description": "Command Line Interface (CLI) for Immich",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"@types/lodash-es": "^4.17.12",
|
|
22
22
|
"@types/micromatch": "^4.0.9",
|
|
23
23
|
"@types/mock-fs": "^4.13.1",
|
|
24
|
-
"@types/node": "^22.16.
|
|
24
|
+
"@types/node": "^22.16.5",
|
|
25
25
|
"@vitest/coverage-v8": "^3.0.0",
|
|
26
26
|
"byte-size": "^9.0.0",
|
|
27
27
|
"cli-progress": "^3.12.0",
|
|
28
28
|
"commander": "^12.0.0",
|
|
29
29
|
"eslint": "^9.14.0",
|
|
30
|
-
"eslint-config-prettier": "^10.
|
|
30
|
+
"eslint-config-prettier": "^10.1.8",
|
|
31
31
|
"eslint-plugin-prettier": "^5.1.3",
|
|
32
32
|
"eslint-plugin-unicorn": "^59.0.0",
|
|
33
33
|
"globals": "^16.0.0",
|