@internxt/cli 1.6.1 → 1.6.3
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/README.md +410 -71
- package/dist/commands/add-cert.d.ts +1 -1
- package/dist/commands/add-cert.js +3 -3
- package/dist/commands/config.d.ts +7 -1
- package/dist/commands/config.js +36 -5
- package/dist/commands/create-folder.d.ts +2 -1
- package/dist/commands/create-folder.js +10 -7
- package/dist/commands/delete-permanently-file.d.ts +1 -0
- package/dist/commands/delete-permanently-folder.d.ts +1 -0
- package/dist/commands/download-file.d.ts +1 -0
- package/dist/commands/download-file.js +4 -2
- package/dist/commands/list.d.ts +1 -0
- package/dist/commands/list.js +2 -4
- package/dist/commands/login-legacy.d.ts +1 -0
- package/dist/commands/logs.js +3 -3
- package/dist/commands/move-file.d.ts +1 -1
- package/dist/commands/move-file.js +7 -21
- package/dist/commands/move-folder.d.ts +1 -1
- package/dist/commands/move-folder.js +7 -21
- package/dist/commands/rename-file.d.ts +1 -0
- package/dist/commands/rename-folder.d.ts +1 -0
- package/dist/commands/trash-clear.d.ts +1 -0
- package/dist/commands/trash-file.d.ts +1 -0
- package/dist/commands/trash-folder.d.ts +1 -0
- package/dist/commands/trash-restore-file.d.ts +1 -1
- package/dist/commands/trash-restore-file.js +7 -21
- package/dist/commands/trash-restore-folder.d.ts +1 -1
- package/dist/commands/trash-restore-folder.js +7 -21
- package/dist/commands/upload-file.d.ts +5 -6
- package/dist/commands/upload-file.js +77 -52
- package/dist/commands/upload-folder.d.ts +1 -0
- package/dist/commands/upload-folder.js +11 -6
- package/dist/commands/webdav-config.d.ts +19 -1
- package/dist/commands/webdav-config.js +81 -3
- package/dist/commands/webdav.d.ts +1 -1
- package/dist/commands/webdav.js +10 -5
- package/dist/commands/whoami.js +2 -1
- package/dist/commands/workspaces-list.d.ts +20 -0
- package/dist/commands/workspaces-list.js +67 -0
- package/dist/commands/workspaces-unset.d.ts +23 -0
- package/dist/commands/workspaces-unset.js +45 -0
- package/dist/commands/workspaces-use.d.ts +27 -0
- package/dist/commands/workspaces-use.js +113 -0
- package/dist/constants/configs.d.ts +13 -0
- package/dist/constants/configs.js +21 -0
- package/dist/hooks/prerun/auth_check.js +13 -4
- package/dist/services/auth.service.d.ts +5 -2
- package/dist/services/auth.service.js +68 -6
- package/dist/services/config.service.d.ts +1 -13
- package/dist/services/config.service.js +44 -41
- package/dist/services/crypto.service.d.ts +5 -0
- package/dist/services/crypto.service.js +43 -0
- package/dist/services/database/database.service.d.ts +9 -0
- package/dist/services/database/database.service.js +39 -0
- package/dist/services/database/drive-file/drive-file.attributes.d.ts +3 -6
- package/dist/services/database/drive-file/drive-file.domain.d.ts +3 -6
- package/dist/services/database/drive-file/drive-file.domain.js +1 -12
- package/dist/services/database/drive-file/drive-file.model.d.ts +15 -0
- package/dist/services/database/drive-file/drive-file.model.js +67 -0
- package/dist/services/database/drive-file/drive-file.repository.d.ts +11 -0
- package/dist/services/database/drive-file/drive-file.repository.js +63 -0
- package/dist/services/database/drive-folder/drive-folder.attributes.d.ts +3 -4
- package/dist/services/database/drive-folder/drive-folder.domain.d.ts +4 -5
- package/dist/services/database/drive-folder/drive-folder.domain.js +11 -15
- package/dist/services/database/drive-folder/drive-folder.model.d.ts +11 -0
- package/dist/services/database/drive-folder/drive-folder.model.js +51 -0
- package/dist/services/database/drive-folder/drive-folder.repository.d.ts +13 -0
- package/dist/services/database/drive-folder/drive-folder.repository.js +99 -0
- package/dist/services/drive/drive-file.service.d.ts +2 -0
- package/dist/services/drive/drive-file.service.js +71 -15
- package/dist/services/drive/drive-folder.service.d.ts +6 -1
- package/dist/services/drive/drive-folder.service.js +157 -31
- package/dist/services/drive/trash.service.d.ts +3 -0
- package/dist/services/drive/trash.service.js +52 -16
- package/dist/services/drive/workspace.service.d.ts +7 -0
- package/dist/services/drive/workspace.service.js +30 -0
- package/dist/services/keys.service.d.ts +7 -0
- package/dist/services/keys.service.js +55 -0
- package/dist/services/local-filesystem/local-filesystem.service.d.ts +2 -2
- package/dist/services/local-filesystem/local-filesystem.service.js +4 -4
- package/dist/services/network/download.service.d.ts +2 -2
- package/dist/services/network/download.service.js +2 -2
- package/dist/services/network/network-facade.service.d.ts +3 -7
- package/dist/services/network/network-facade.service.js +9 -11
- package/dist/services/network/upload/upload-facade.service.d.ts +1 -1
- package/dist/services/network/upload/upload-facade.service.js +15 -8
- package/dist/services/network/upload/upload-file.service.d.ts +5 -4
- package/dist/services/network/upload/upload-file.service.js +73 -41
- package/dist/services/network/upload/upload-folder.service.d.ts +2 -2
- package/dist/services/network/upload/upload-folder.service.js +15 -10
- package/dist/services/network/upload/upload.types.d.ts +13 -2
- package/dist/services/network/upload/upload.types.js +1 -1
- package/dist/services/sdk-manager.service.d.ts +11 -9
- package/dist/services/sdk-manager.service.js +29 -15
- package/dist/services/thumbnail.service.d.ts +19 -1
- package/dist/services/thumbnail.service.js +29 -2
- package/dist/services/universal-link.service.d.ts +3 -1
- package/dist/services/universal-link.service.js +15 -3
- package/dist/services/usage.service.d.ts +1 -2
- package/dist/services/usage.service.js +1 -1
- package/dist/services/validation.service.d.ts +5 -0
- package/dist/services/validation.service.js +36 -22
- package/dist/{webdav/services → services/webdav}/webdav-folder.service.d.ts +1 -7
- package/dist/{webdav/services → services/webdav}/webdav-folder.service.js +6 -10
- package/dist/types/command.types.d.ts +44 -1
- package/dist/types/command.types.js +29 -1
- package/dist/types/config.types.d.ts +1 -0
- package/dist/types/drive.types.d.ts +7 -6
- package/dist/types/network.types.d.ts +6 -0
- package/dist/utils/async.utils.d.ts +2 -1
- package/dist/utils/async.utils.js +13 -2
- package/dist/utils/cli.utils.d.ts +23 -15
- package/dist/utils/cli.utils.js +85 -21
- package/dist/utils/crypto.utils.d.ts +3 -1
- package/dist/utils/crypto.utils.js +15 -2
- package/dist/utils/database.utils.d.ts +11 -0
- package/dist/utils/database.utils.js +26 -0
- package/dist/utils/drive.utils.js +7 -10
- package/dist/utils/errors.utils.d.ts +4 -3
- package/dist/utils/errors.utils.js +16 -13
- package/dist/utils/format.utils.d.ts +1 -0
- package/dist/utils/format.utils.js +3 -0
- package/dist/utils/inquirer.utils.js +10 -1
- package/dist/utils/logger.utils.js +5 -5
- package/dist/utils/network.utils.js +17 -18
- package/dist/utils/path.utils.d.ts +7 -0
- package/dist/utils/path.utils.js +18 -0
- package/dist/utils/thumbnail.utils.d.ts +6 -20
- package/dist/utils/thumbnail.utils.js +20 -45
- package/dist/utils/webdav.utils.d.ts +4 -20
- package/dist/utils/webdav.utils.js +12 -14
- package/dist/utils/xml.utils.d.ts +1 -1
- package/dist/utils/xml.utils.js +1 -1
- package/dist/webdav/handlers/DELETE.handler.d.ts +0 -9
- package/dist/webdav/handlers/DELETE.handler.js +18 -16
- package/dist/webdav/handlers/GET.handler.d.ts +0 -13
- package/dist/webdav/handlers/GET.handler.js +6 -13
- package/dist/webdav/handlers/HEAD.handler.d.ts +0 -5
- package/dist/webdav/handlers/HEAD.handler.js +11 -23
- package/dist/webdav/handlers/MKCOL.handler.d.ts +0 -7
- package/dist/webdav/handlers/MKCOL.handler.js +5 -12
- package/dist/webdav/handlers/MOVE.handler.d.ts +0 -9
- package/dist/webdav/handlers/MOVE.handler.js +10 -16
- package/dist/webdav/handlers/PROPFIND.handler.d.ts +0 -7
- package/dist/webdav/handlers/PROPFIND.handler.js +7 -19
- package/dist/webdav/handlers/PUT.handler.d.ts +0 -15
- package/dist/webdav/handlers/PUT.handler.js +70 -57
- package/dist/webdav/index.js +6 -8
- package/dist/webdav/middewares/auth.middleware.d.ts +1 -2
- package/dist/webdav/middewares/auth.middleware.js +5 -4
- package/dist/webdav/middewares/errors.middleware.js +3 -3
- package/dist/webdav/middewares/webdav-auth.middleware.d.ts +3 -0
- package/dist/webdav/middewares/webdav-auth.middleware.js +44 -0
- package/dist/webdav/webdav-server.d.ts +3 -16
- package/dist/webdav/webdav-server.js +33 -91
- package/oclif.manifest.json +429 -6
- package/package.json +27 -22
package/oclif.manifest.json
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
3
|
"add-cert": {
|
|
4
|
-
"aliases": [
|
|
4
|
+
"aliases": [
|
|
5
|
+
"add:cert"
|
|
6
|
+
],
|
|
5
7
|
"args": {},
|
|
6
8
|
"description": "Add a self-signed certificate to the trusted store for macOS, Linux, and Windows.",
|
|
7
9
|
"examples": [
|
|
@@ -45,6 +47,33 @@
|
|
|
45
47
|
"name": "json",
|
|
46
48
|
"allowNo": false,
|
|
47
49
|
"type": "boolean"
|
|
50
|
+
},
|
|
51
|
+
"non-interactive": {
|
|
52
|
+
"char": "x",
|
|
53
|
+
"description": "Prevents the CLI from being interactive. When enabled, the CLI will not request input through the console and will throw errors directly.",
|
|
54
|
+
"env": "INXT_NONINTERACTIVE",
|
|
55
|
+
"helpGroup": "helper",
|
|
56
|
+
"name": "non-interactive",
|
|
57
|
+
"required": false,
|
|
58
|
+
"allowNo": false,
|
|
59
|
+
"type": "boolean"
|
|
60
|
+
},
|
|
61
|
+
"debug": {
|
|
62
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
63
|
+
"env": "INXT_DEBUG",
|
|
64
|
+
"helpGroup": "helper",
|
|
65
|
+
"name": "debug",
|
|
66
|
+
"required": false,
|
|
67
|
+
"allowNo": false,
|
|
68
|
+
"type": "boolean"
|
|
69
|
+
},
|
|
70
|
+
"extended": {
|
|
71
|
+
"char": "e",
|
|
72
|
+
"description": "Displays additional information in the list.",
|
|
73
|
+
"name": "extended",
|
|
74
|
+
"required": false,
|
|
75
|
+
"allowNo": false,
|
|
76
|
+
"type": "boolean"
|
|
48
77
|
}
|
|
49
78
|
},
|
|
50
79
|
"hasDynamicHelp": false,
|
|
@@ -63,7 +92,9 @@
|
|
|
63
92
|
]
|
|
64
93
|
},
|
|
65
94
|
"create-folder": {
|
|
66
|
-
"aliases": [
|
|
95
|
+
"aliases": [
|
|
96
|
+
"create:folder"
|
|
97
|
+
],
|
|
67
98
|
"args": {},
|
|
68
99
|
"description": "Create a folder in your Internxt Drive",
|
|
69
100
|
"examples": [
|
|
@@ -87,6 +118,15 @@
|
|
|
87
118
|
"allowNo": false,
|
|
88
119
|
"type": "boolean"
|
|
89
120
|
},
|
|
121
|
+
"debug": {
|
|
122
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
123
|
+
"env": "INXT_DEBUG",
|
|
124
|
+
"helpGroup": "helper",
|
|
125
|
+
"name": "debug",
|
|
126
|
+
"required": false,
|
|
127
|
+
"allowNo": false,
|
|
128
|
+
"type": "boolean"
|
|
129
|
+
},
|
|
90
130
|
"name": {
|
|
91
131
|
"char": "n",
|
|
92
132
|
"description": "The new name for the folder",
|
|
@@ -148,6 +188,15 @@
|
|
|
148
188
|
"allowNo": false,
|
|
149
189
|
"type": "boolean"
|
|
150
190
|
},
|
|
191
|
+
"debug": {
|
|
192
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
193
|
+
"env": "INXT_DEBUG",
|
|
194
|
+
"helpGroup": "helper",
|
|
195
|
+
"name": "debug",
|
|
196
|
+
"required": false,
|
|
197
|
+
"allowNo": false,
|
|
198
|
+
"type": "boolean"
|
|
199
|
+
},
|
|
151
200
|
"id": {
|
|
152
201
|
"char": "i",
|
|
153
202
|
"description": "The file id to be permanently deleted.",
|
|
@@ -200,6 +249,15 @@
|
|
|
200
249
|
"allowNo": false,
|
|
201
250
|
"type": "boolean"
|
|
202
251
|
},
|
|
252
|
+
"debug": {
|
|
253
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
254
|
+
"env": "INXT_DEBUG",
|
|
255
|
+
"helpGroup": "helper",
|
|
256
|
+
"name": "debug",
|
|
257
|
+
"required": false,
|
|
258
|
+
"allowNo": false,
|
|
259
|
+
"type": "boolean"
|
|
260
|
+
},
|
|
203
261
|
"id": {
|
|
204
262
|
"char": "i",
|
|
205
263
|
"description": "The folder id to be permanently deleted.",
|
|
@@ -252,6 +310,15 @@
|
|
|
252
310
|
"allowNo": false,
|
|
253
311
|
"type": "boolean"
|
|
254
312
|
},
|
|
313
|
+
"debug": {
|
|
314
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
315
|
+
"env": "INXT_DEBUG",
|
|
316
|
+
"helpGroup": "helper",
|
|
317
|
+
"name": "debug",
|
|
318
|
+
"required": false,
|
|
319
|
+
"allowNo": false,
|
|
320
|
+
"type": "boolean"
|
|
321
|
+
},
|
|
255
322
|
"id": {
|
|
256
323
|
"char": "i",
|
|
257
324
|
"description": "The id of the file to download. Use <%= config.bin %> list to view your files ids",
|
|
@@ -318,6 +385,15 @@
|
|
|
318
385
|
"allowNo": false,
|
|
319
386
|
"type": "boolean"
|
|
320
387
|
},
|
|
388
|
+
"debug": {
|
|
389
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
390
|
+
"env": "INXT_DEBUG",
|
|
391
|
+
"helpGroup": "helper",
|
|
392
|
+
"name": "debug",
|
|
393
|
+
"required": false,
|
|
394
|
+
"allowNo": false,
|
|
395
|
+
"type": "boolean"
|
|
396
|
+
},
|
|
321
397
|
"id": {
|
|
322
398
|
"char": "i",
|
|
323
399
|
"description": "The folder id to list. Leave empty for the root folder.",
|
|
@@ -376,6 +452,15 @@
|
|
|
376
452
|
"allowNo": false,
|
|
377
453
|
"type": "boolean"
|
|
378
454
|
},
|
|
455
|
+
"debug": {
|
|
456
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
457
|
+
"env": "INXT_DEBUG",
|
|
458
|
+
"helpGroup": "helper",
|
|
459
|
+
"name": "debug",
|
|
460
|
+
"required": false,
|
|
461
|
+
"allowNo": false,
|
|
462
|
+
"type": "boolean"
|
|
463
|
+
},
|
|
379
464
|
"email": {
|
|
380
465
|
"aliases": [
|
|
381
466
|
"mail"
|
|
@@ -594,6 +679,15 @@
|
|
|
594
679
|
"allowNo": false,
|
|
595
680
|
"type": "boolean"
|
|
596
681
|
},
|
|
682
|
+
"debug": {
|
|
683
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
684
|
+
"env": "INXT_DEBUG",
|
|
685
|
+
"helpGroup": "helper",
|
|
686
|
+
"name": "debug",
|
|
687
|
+
"required": false,
|
|
688
|
+
"allowNo": false,
|
|
689
|
+
"type": "boolean"
|
|
690
|
+
},
|
|
597
691
|
"id": {
|
|
598
692
|
"char": "i",
|
|
599
693
|
"description": "The ID of the file to be moved.",
|
|
@@ -655,6 +749,15 @@
|
|
|
655
749
|
"allowNo": false,
|
|
656
750
|
"type": "boolean"
|
|
657
751
|
},
|
|
752
|
+
"debug": {
|
|
753
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
754
|
+
"env": "INXT_DEBUG",
|
|
755
|
+
"helpGroup": "helper",
|
|
756
|
+
"name": "debug",
|
|
757
|
+
"required": false,
|
|
758
|
+
"allowNo": false,
|
|
759
|
+
"type": "boolean"
|
|
760
|
+
},
|
|
658
761
|
"id": {
|
|
659
762
|
"char": "i",
|
|
660
763
|
"description": "The ID of the folder to be moved.",
|
|
@@ -716,6 +819,15 @@
|
|
|
716
819
|
"allowNo": false,
|
|
717
820
|
"type": "boolean"
|
|
718
821
|
},
|
|
822
|
+
"debug": {
|
|
823
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
824
|
+
"env": "INXT_DEBUG",
|
|
825
|
+
"helpGroup": "helper",
|
|
826
|
+
"name": "debug",
|
|
827
|
+
"required": false,
|
|
828
|
+
"allowNo": false,
|
|
829
|
+
"type": "boolean"
|
|
830
|
+
},
|
|
719
831
|
"id": {
|
|
720
832
|
"char": "i",
|
|
721
833
|
"description": "The ID of the file to be renamed.",
|
|
@@ -777,6 +889,15 @@
|
|
|
777
889
|
"allowNo": false,
|
|
778
890
|
"type": "boolean"
|
|
779
891
|
},
|
|
892
|
+
"debug": {
|
|
893
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
894
|
+
"env": "INXT_DEBUG",
|
|
895
|
+
"helpGroup": "helper",
|
|
896
|
+
"name": "debug",
|
|
897
|
+
"required": false,
|
|
898
|
+
"allowNo": false,
|
|
899
|
+
"type": "boolean"
|
|
900
|
+
},
|
|
780
901
|
"id": {
|
|
781
902
|
"char": "i",
|
|
782
903
|
"description": "The ID of the folder to be renamed.",
|
|
@@ -838,6 +959,15 @@
|
|
|
838
959
|
"allowNo": false,
|
|
839
960
|
"type": "boolean"
|
|
840
961
|
},
|
|
962
|
+
"debug": {
|
|
963
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
964
|
+
"env": "INXT_DEBUG",
|
|
965
|
+
"helpGroup": "helper",
|
|
966
|
+
"name": "debug",
|
|
967
|
+
"required": false,
|
|
968
|
+
"allowNo": false,
|
|
969
|
+
"type": "boolean"
|
|
970
|
+
},
|
|
841
971
|
"force": {
|
|
842
972
|
"char": "f",
|
|
843
973
|
"description": "It forces the trash to be emptied without confirmation.",
|
|
@@ -889,6 +1019,15 @@
|
|
|
889
1019
|
"allowNo": false,
|
|
890
1020
|
"type": "boolean"
|
|
891
1021
|
},
|
|
1022
|
+
"debug": {
|
|
1023
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
1024
|
+
"env": "INXT_DEBUG",
|
|
1025
|
+
"helpGroup": "helper",
|
|
1026
|
+
"name": "debug",
|
|
1027
|
+
"required": false,
|
|
1028
|
+
"allowNo": false,
|
|
1029
|
+
"type": "boolean"
|
|
1030
|
+
},
|
|
892
1031
|
"id": {
|
|
893
1032
|
"char": "i",
|
|
894
1033
|
"description": "The file id to be trashed.",
|
|
@@ -941,6 +1080,15 @@
|
|
|
941
1080
|
"allowNo": false,
|
|
942
1081
|
"type": "boolean"
|
|
943
1082
|
},
|
|
1083
|
+
"debug": {
|
|
1084
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
1085
|
+
"env": "INXT_DEBUG",
|
|
1086
|
+
"helpGroup": "helper",
|
|
1087
|
+
"name": "debug",
|
|
1088
|
+
"required": false,
|
|
1089
|
+
"allowNo": false,
|
|
1090
|
+
"type": "boolean"
|
|
1091
|
+
},
|
|
944
1092
|
"id": {
|
|
945
1093
|
"char": "i",
|
|
946
1094
|
"description": "The folder id to be trashed.",
|
|
@@ -1034,6 +1182,15 @@
|
|
|
1034
1182
|
"allowNo": false,
|
|
1035
1183
|
"type": "boolean"
|
|
1036
1184
|
},
|
|
1185
|
+
"debug": {
|
|
1186
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
1187
|
+
"env": "INXT_DEBUG",
|
|
1188
|
+
"helpGroup": "helper",
|
|
1189
|
+
"name": "debug",
|
|
1190
|
+
"required": false,
|
|
1191
|
+
"allowNo": false,
|
|
1192
|
+
"type": "boolean"
|
|
1193
|
+
},
|
|
1037
1194
|
"id": {
|
|
1038
1195
|
"char": "i",
|
|
1039
1196
|
"description": "The file id to be restored from the trash.",
|
|
@@ -1095,6 +1252,15 @@
|
|
|
1095
1252
|
"allowNo": false,
|
|
1096
1253
|
"type": "boolean"
|
|
1097
1254
|
},
|
|
1255
|
+
"debug": {
|
|
1256
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
1257
|
+
"env": "INXT_DEBUG",
|
|
1258
|
+
"helpGroup": "helper",
|
|
1259
|
+
"name": "debug",
|
|
1260
|
+
"required": false,
|
|
1261
|
+
"allowNo": false,
|
|
1262
|
+
"type": "boolean"
|
|
1263
|
+
},
|
|
1098
1264
|
"id": {
|
|
1099
1265
|
"char": "i",
|
|
1100
1266
|
"description": "The folder id to be restored from the trash.",
|
|
@@ -1156,6 +1322,15 @@
|
|
|
1156
1322
|
"allowNo": false,
|
|
1157
1323
|
"type": "boolean"
|
|
1158
1324
|
},
|
|
1325
|
+
"debug": {
|
|
1326
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
1327
|
+
"env": "INXT_DEBUG",
|
|
1328
|
+
"helpGroup": "helper",
|
|
1329
|
+
"name": "debug",
|
|
1330
|
+
"required": false,
|
|
1331
|
+
"allowNo": false,
|
|
1332
|
+
"type": "boolean"
|
|
1333
|
+
},
|
|
1159
1334
|
"file": {
|
|
1160
1335
|
"char": "f",
|
|
1161
1336
|
"description": "The path to the file on your system.",
|
|
@@ -1217,6 +1392,15 @@
|
|
|
1217
1392
|
"allowNo": false,
|
|
1218
1393
|
"type": "boolean"
|
|
1219
1394
|
},
|
|
1395
|
+
"debug": {
|
|
1396
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
1397
|
+
"env": "INXT_DEBUG",
|
|
1398
|
+
"helpGroup": "helper",
|
|
1399
|
+
"name": "debug",
|
|
1400
|
+
"required": false,
|
|
1401
|
+
"allowNo": false,
|
|
1402
|
+
"type": "boolean"
|
|
1403
|
+
},
|
|
1220
1404
|
"folder": {
|
|
1221
1405
|
"char": "f",
|
|
1222
1406
|
"description": "The path to the folder on your system.",
|
|
@@ -1266,6 +1450,25 @@
|
|
|
1266
1450
|
"allowNo": false,
|
|
1267
1451
|
"type": "boolean"
|
|
1268
1452
|
},
|
|
1453
|
+
"non-interactive": {
|
|
1454
|
+
"char": "x",
|
|
1455
|
+
"description": "Prevents the CLI from being interactive. When enabled, the CLI will not request input through the console and will throw errors directly.",
|
|
1456
|
+
"env": "INXT_NONINTERACTIVE",
|
|
1457
|
+
"helpGroup": "helper",
|
|
1458
|
+
"name": "non-interactive",
|
|
1459
|
+
"required": false,
|
|
1460
|
+
"allowNo": false,
|
|
1461
|
+
"type": "boolean"
|
|
1462
|
+
},
|
|
1463
|
+
"debug": {
|
|
1464
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
1465
|
+
"env": "INXT_DEBUG",
|
|
1466
|
+
"helpGroup": "helper",
|
|
1467
|
+
"name": "debug",
|
|
1468
|
+
"required": false,
|
|
1469
|
+
"allowNo": false,
|
|
1470
|
+
"type": "boolean"
|
|
1471
|
+
},
|
|
1269
1472
|
"host": {
|
|
1270
1473
|
"char": "l",
|
|
1271
1474
|
"description": "The listening host for the WebDAV server.",
|
|
@@ -1322,6 +1525,40 @@
|
|
|
1322
1525
|
"required": false,
|
|
1323
1526
|
"allowNo": true,
|
|
1324
1527
|
"type": "boolean"
|
|
1528
|
+
},
|
|
1529
|
+
"customAuth": {
|
|
1530
|
+
"char": "a",
|
|
1531
|
+
"description": "Configures the WebDAV server to use custom authentication.",
|
|
1532
|
+
"name": "customAuth",
|
|
1533
|
+
"required": false,
|
|
1534
|
+
"allowNo": true,
|
|
1535
|
+
"type": "boolean"
|
|
1536
|
+
},
|
|
1537
|
+
"username": {
|
|
1538
|
+
"char": "u",
|
|
1539
|
+
"description": "Configures the WebDAV server to use this username for custom authentication.",
|
|
1540
|
+
"name": "username",
|
|
1541
|
+
"required": false,
|
|
1542
|
+
"hasDynamicHelp": false,
|
|
1543
|
+
"multiple": false,
|
|
1544
|
+
"type": "option"
|
|
1545
|
+
},
|
|
1546
|
+
"password": {
|
|
1547
|
+
"char": "w",
|
|
1548
|
+
"description": "Configures the WebDAV server to use this password for custom authentication.",
|
|
1549
|
+
"name": "password",
|
|
1550
|
+
"required": false,
|
|
1551
|
+
"hasDynamicHelp": false,
|
|
1552
|
+
"multiple": false,
|
|
1553
|
+
"type": "option"
|
|
1554
|
+
},
|
|
1555
|
+
"deleteFilesPermanently": {
|
|
1556
|
+
"char": "d",
|
|
1557
|
+
"description": "Configures the WebDAV server to delete files permanently instead of trashing them.",
|
|
1558
|
+
"name": "deleteFilesPermanently",
|
|
1559
|
+
"required": false,
|
|
1560
|
+
"allowNo": true,
|
|
1561
|
+
"type": "boolean"
|
|
1325
1562
|
}
|
|
1326
1563
|
},
|
|
1327
1564
|
"hasDynamicHelp": false,
|
|
@@ -1346,17 +1583,19 @@
|
|
|
1346
1583
|
"name": "action",
|
|
1347
1584
|
"options": [
|
|
1348
1585
|
"enable",
|
|
1586
|
+
"start",
|
|
1349
1587
|
"disable",
|
|
1588
|
+
"stop",
|
|
1350
1589
|
"restart",
|
|
1351
1590
|
"status"
|
|
1352
1591
|
],
|
|
1353
1592
|
"required": true
|
|
1354
1593
|
}
|
|
1355
1594
|
},
|
|
1356
|
-
"description": "
|
|
1595
|
+
"description": "Start, stop, restart or get the status of the Internxt CLI WebDAV server",
|
|
1357
1596
|
"examples": [
|
|
1358
|
-
"<%= config.bin %> <%= command.id %> enable",
|
|
1359
|
-
"<%= config.bin %> <%= command.id %> disable",
|
|
1597
|
+
"<%= config.bin %> <%= command.id %> enable | start",
|
|
1598
|
+
"<%= config.bin %> <%= command.id %> disable | stop",
|
|
1360
1599
|
"<%= config.bin %> <%= command.id %> restart",
|
|
1361
1600
|
"<%= config.bin %> <%= command.id %> status"
|
|
1362
1601
|
],
|
|
@@ -1414,7 +1653,191 @@
|
|
|
1414
1653
|
"commands",
|
|
1415
1654
|
"whoami.js"
|
|
1416
1655
|
]
|
|
1656
|
+
},
|
|
1657
|
+
"workspaces-list": {
|
|
1658
|
+
"aliases": [
|
|
1659
|
+
"workspaces:list"
|
|
1660
|
+
],
|
|
1661
|
+
"args": {},
|
|
1662
|
+
"description": "Get the list of workspaces.",
|
|
1663
|
+
"examples": [
|
|
1664
|
+
"<%= config.bin %> <%= command.id %>"
|
|
1665
|
+
],
|
|
1666
|
+
"flags": {
|
|
1667
|
+
"json": {
|
|
1668
|
+
"description": "Format output as json.",
|
|
1669
|
+
"helpGroup": "GLOBAL",
|
|
1670
|
+
"name": "json",
|
|
1671
|
+
"allowNo": false,
|
|
1672
|
+
"type": "boolean"
|
|
1673
|
+
},
|
|
1674
|
+
"non-interactive": {
|
|
1675
|
+
"char": "x",
|
|
1676
|
+
"description": "Prevents the CLI from being interactive. When enabled, the CLI will not request input through the console and will throw errors directly.",
|
|
1677
|
+
"env": "INXT_NONINTERACTIVE",
|
|
1678
|
+
"helpGroup": "helper",
|
|
1679
|
+
"name": "non-interactive",
|
|
1680
|
+
"required": false,
|
|
1681
|
+
"allowNo": false,
|
|
1682
|
+
"type": "boolean"
|
|
1683
|
+
},
|
|
1684
|
+
"debug": {
|
|
1685
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
1686
|
+
"env": "INXT_DEBUG",
|
|
1687
|
+
"helpGroup": "helper",
|
|
1688
|
+
"name": "debug",
|
|
1689
|
+
"required": false,
|
|
1690
|
+
"allowNo": false,
|
|
1691
|
+
"type": "boolean"
|
|
1692
|
+
},
|
|
1693
|
+
"extended": {
|
|
1694
|
+
"char": "e",
|
|
1695
|
+
"description": "Displays additional information in the list.",
|
|
1696
|
+
"name": "extended",
|
|
1697
|
+
"required": false,
|
|
1698
|
+
"allowNo": false,
|
|
1699
|
+
"type": "boolean"
|
|
1700
|
+
}
|
|
1701
|
+
},
|
|
1702
|
+
"hasDynamicHelp": false,
|
|
1703
|
+
"hiddenAliases": [],
|
|
1704
|
+
"id": "workspaces-list",
|
|
1705
|
+
"pluginAlias": "@internxt/cli",
|
|
1706
|
+
"pluginName": "@internxt/cli",
|
|
1707
|
+
"pluginType": "core",
|
|
1708
|
+
"strict": true,
|
|
1709
|
+
"enableJsonFlag": true,
|
|
1710
|
+
"isESM": false,
|
|
1711
|
+
"relativePath": [
|
|
1712
|
+
"dist",
|
|
1713
|
+
"commands",
|
|
1714
|
+
"workspaces-list.js"
|
|
1715
|
+
]
|
|
1716
|
+
},
|
|
1717
|
+
"workspaces-unset": {
|
|
1718
|
+
"aliases": [
|
|
1719
|
+
"workspaces:unset"
|
|
1720
|
+
],
|
|
1721
|
+
"args": {},
|
|
1722
|
+
"description": "Unset the active workspace context for the current user session. Once a workspace is unset, WebDAV and all of the subsequent CLI commands will operate within the personal drive space until it is changed or set again.",
|
|
1723
|
+
"examples": [
|
|
1724
|
+
"<%= config.bin %> <%= command.id %>"
|
|
1725
|
+
],
|
|
1726
|
+
"flags": {
|
|
1727
|
+
"json": {
|
|
1728
|
+
"description": "Format output as json.",
|
|
1729
|
+
"helpGroup": "GLOBAL",
|
|
1730
|
+
"name": "json",
|
|
1731
|
+
"allowNo": false,
|
|
1732
|
+
"type": "boolean"
|
|
1733
|
+
},
|
|
1734
|
+
"non-interactive": {
|
|
1735
|
+
"char": "x",
|
|
1736
|
+
"description": "Prevents the CLI from being interactive. When enabled, the CLI will not request input through the console and will throw errors directly.",
|
|
1737
|
+
"env": "INXT_NONINTERACTIVE",
|
|
1738
|
+
"helpGroup": "helper",
|
|
1739
|
+
"name": "non-interactive",
|
|
1740
|
+
"required": false,
|
|
1741
|
+
"allowNo": false,
|
|
1742
|
+
"type": "boolean"
|
|
1743
|
+
},
|
|
1744
|
+
"debug": {
|
|
1745
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
1746
|
+
"env": "INXT_DEBUG",
|
|
1747
|
+
"helpGroup": "helper",
|
|
1748
|
+
"name": "debug",
|
|
1749
|
+
"required": false,
|
|
1750
|
+
"allowNo": false,
|
|
1751
|
+
"type": "boolean"
|
|
1752
|
+
}
|
|
1753
|
+
},
|
|
1754
|
+
"hasDynamicHelp": false,
|
|
1755
|
+
"hiddenAliases": [],
|
|
1756
|
+
"id": "workspaces-unset",
|
|
1757
|
+
"pluginAlias": "@internxt/cli",
|
|
1758
|
+
"pluginName": "@internxt/cli",
|
|
1759
|
+
"pluginType": "core",
|
|
1760
|
+
"strict": true,
|
|
1761
|
+
"enableJsonFlag": true,
|
|
1762
|
+
"isESM": false,
|
|
1763
|
+
"relativePath": [
|
|
1764
|
+
"dist",
|
|
1765
|
+
"commands",
|
|
1766
|
+
"workspaces-unset.js"
|
|
1767
|
+
]
|
|
1768
|
+
},
|
|
1769
|
+
"workspaces-use": {
|
|
1770
|
+
"aliases": [
|
|
1771
|
+
"workspaces:use"
|
|
1772
|
+
],
|
|
1773
|
+
"args": {},
|
|
1774
|
+
"description": "Set the active workspace context for the current user session. Once a workspace is selected, WebDAV and all of the subsequent CLI commands will operate within that workspace until it is changed or unset.",
|
|
1775
|
+
"examples": [
|
|
1776
|
+
"<%= config.bin %> <%= command.id %>"
|
|
1777
|
+
],
|
|
1778
|
+
"flags": {
|
|
1779
|
+
"json": {
|
|
1780
|
+
"description": "Format output as json.",
|
|
1781
|
+
"helpGroup": "GLOBAL",
|
|
1782
|
+
"name": "json",
|
|
1783
|
+
"allowNo": false,
|
|
1784
|
+
"type": "boolean"
|
|
1785
|
+
},
|
|
1786
|
+
"non-interactive": {
|
|
1787
|
+
"char": "x",
|
|
1788
|
+
"description": "Prevents the CLI from being interactive. When enabled, the CLI will not request input through the console and will throw errors directly.",
|
|
1789
|
+
"env": "INXT_NONINTERACTIVE",
|
|
1790
|
+
"helpGroup": "helper",
|
|
1791
|
+
"name": "non-interactive",
|
|
1792
|
+
"required": false,
|
|
1793
|
+
"allowNo": false,
|
|
1794
|
+
"type": "boolean"
|
|
1795
|
+
},
|
|
1796
|
+
"debug": {
|
|
1797
|
+
"description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
|
|
1798
|
+
"env": "INXT_DEBUG",
|
|
1799
|
+
"helpGroup": "helper",
|
|
1800
|
+
"name": "debug",
|
|
1801
|
+
"required": false,
|
|
1802
|
+
"allowNo": false,
|
|
1803
|
+
"type": "boolean"
|
|
1804
|
+
},
|
|
1805
|
+
"id": {
|
|
1806
|
+
"char": "i",
|
|
1807
|
+
"description": "The id of the workspace to activate. Use <%= config.bin %> workspaces list to view your available workspace ids.",
|
|
1808
|
+
"exclusive": [
|
|
1809
|
+
"personal"
|
|
1810
|
+
],
|
|
1811
|
+
"name": "id",
|
|
1812
|
+
"required": false,
|
|
1813
|
+
"hasDynamicHelp": false,
|
|
1814
|
+
"multiple": false,
|
|
1815
|
+
"type": "option"
|
|
1816
|
+
},
|
|
1817
|
+
"personal": {
|
|
1818
|
+
"char": "p",
|
|
1819
|
+
"description": "Change to the personal drive space. It unsets the active workspace context for the current user session.",
|
|
1820
|
+
"name": "personal",
|
|
1821
|
+
"required": false,
|
|
1822
|
+
"allowNo": false,
|
|
1823
|
+
"type": "boolean"
|
|
1824
|
+
}
|
|
1825
|
+
},
|
|
1826
|
+
"hasDynamicHelp": false,
|
|
1827
|
+
"hiddenAliases": [],
|
|
1828
|
+
"id": "workspaces-use",
|
|
1829
|
+
"pluginAlias": "@internxt/cli",
|
|
1830
|
+
"pluginName": "@internxt/cli",
|
|
1831
|
+
"pluginType": "core",
|
|
1832
|
+
"strict": true,
|
|
1833
|
+
"enableJsonFlag": true,
|
|
1834
|
+
"isESM": false,
|
|
1835
|
+
"relativePath": [
|
|
1836
|
+
"dist",
|
|
1837
|
+
"commands",
|
|
1838
|
+
"workspaces-use.js"
|
|
1839
|
+
]
|
|
1417
1840
|
}
|
|
1418
1841
|
},
|
|
1419
|
-
"version": "1.6.
|
|
1842
|
+
"version": "1.6.3"
|
|
1420
1843
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Internxt <hello@internxt.com>",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"description": "Internxt CLI to manage your encrypted storage",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn clean && tsc",
|
|
@@ -36,29 +36,33 @@
|
|
|
36
36
|
"/oclif.manifest.json"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
39
|
+
"@dashlane/pqc-kem-kyber512-node": "1.0.0",
|
|
40
|
+
"@inquirer/prompts": "8.3.0",
|
|
41
|
+
"@internxt/inxt-js": "2.3.1",
|
|
41
42
|
"@internxt/lib": "1.4.1",
|
|
42
|
-
"@internxt/sdk": "1.
|
|
43
|
-
"@oclif/core": "4.8.
|
|
44
|
-
"@oclif/plugin-autocomplete": "3.2.
|
|
45
|
-
"axios": "1.13.
|
|
43
|
+
"@internxt/sdk": "1.15.1",
|
|
44
|
+
"@oclif/core": "4.8.3",
|
|
45
|
+
"@oclif/plugin-autocomplete": "3.2.40",
|
|
46
|
+
"axios": "1.13.6",
|
|
47
|
+
"better-sqlite3": "12.6.2",
|
|
46
48
|
"bip39": "3.1.0",
|
|
47
|
-
"body-parser": "2.2.
|
|
49
|
+
"body-parser": "2.2.2",
|
|
48
50
|
"cli-progress": "3.12.0",
|
|
49
51
|
"dayjs": "1.11.19",
|
|
50
|
-
"dotenv": "17.
|
|
52
|
+
"dotenv": "17.3.1",
|
|
51
53
|
"express": "5.2.1",
|
|
52
54
|
"express-async-handler": "1.2.0",
|
|
53
|
-
"fast-xml-parser": "5.
|
|
55
|
+
"fast-xml-parser": "5.4.2",
|
|
56
|
+
"hash-wasm": "4.12.0",
|
|
54
57
|
"mime-types": "3.0.2",
|
|
55
58
|
"open": "11.0.0",
|
|
56
59
|
"openpgp": "6.3.0",
|
|
57
|
-
"otpauth": "9.
|
|
60
|
+
"otpauth": "9.5.0",
|
|
58
61
|
"pm2": "6.0.14",
|
|
59
62
|
"range-parser": "1.2.1",
|
|
60
|
-
"selfsigned": "5.
|
|
63
|
+
"selfsigned": "5.5.0",
|
|
61
64
|
"tty-table": "5.0.0",
|
|
65
|
+
"typeorm": "0.3.28",
|
|
62
66
|
"winston": "3.19.0"
|
|
63
67
|
},
|
|
64
68
|
"devDependencies": {
|
|
@@ -68,20 +72,21 @@
|
|
|
68
72
|
"@types/cli-progress": "3.11.6",
|
|
69
73
|
"@types/express": "5.0.6",
|
|
70
74
|
"@types/mime-types": "3.0.1",
|
|
71
|
-
"@types/node": "25.
|
|
75
|
+
"@types/node": "25.3.3",
|
|
72
76
|
"@types/range-parser": "1.2.7",
|
|
73
|
-
"@vitest/coverage-istanbul": "4.0.
|
|
74
|
-
"@vitest/spy": "4.0.
|
|
75
|
-
"eslint": "9.39.
|
|
77
|
+
"@vitest/coverage-istanbul": "4.0.18",
|
|
78
|
+
"@vitest/spy": "4.0.18",
|
|
79
|
+
"eslint": "9.39.3",
|
|
76
80
|
"husky": "9.1.7",
|
|
77
|
-
"lint-staged": "16.2
|
|
78
|
-
"nodemon": "3.1.
|
|
79
|
-
"oclif": "4.22.
|
|
80
|
-
"prettier": "3.
|
|
81
|
-
"rimraf": "6.1.
|
|
81
|
+
"lint-staged": "16.3.2",
|
|
82
|
+
"nodemon": "3.1.14",
|
|
83
|
+
"oclif": "4.22.85",
|
|
84
|
+
"prettier": "3.8.1",
|
|
85
|
+
"rimraf": "6.1.3",
|
|
86
|
+
"sql.js": "1.14.1",
|
|
82
87
|
"ts-node": "10.9.2",
|
|
83
88
|
"typescript": "5.9.3",
|
|
84
|
-
"vitest": "4.0.
|
|
89
|
+
"vitest": "4.0.18",
|
|
85
90
|
"vitest-mock-express": "2.2.0"
|
|
86
91
|
},
|
|
87
92
|
"optionalDependencies": {
|