@internxt/cli 1.6.5 → 1.6.7

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 (57) hide show
  1. package/README.md +94 -40
  2. package/dist/commands/add-cert.d.ts +4 -1
  3. package/dist/commands/add-cert.js +4 -1
  4. package/dist/commands/config.js +1 -0
  5. package/dist/commands/create-folder.js +1 -0
  6. package/dist/commands/delete-permanently-file.js +1 -0
  7. package/dist/commands/delete-permanently-folder.js +1 -0
  8. package/dist/commands/download-file.js +1 -0
  9. package/dist/commands/list.js +6 -3
  10. package/dist/commands/login-legacy.js +1 -0
  11. package/dist/commands/login.d.ts +2 -0
  12. package/dist/commands/login.js +2 -0
  13. package/dist/commands/logout.d.ts +4 -1
  14. package/dist/commands/logout.js +4 -1
  15. package/dist/commands/logs.d.ts +4 -1
  16. package/dist/commands/logs.js +4 -1
  17. package/dist/commands/move-file.js +1 -0
  18. package/dist/commands/move-folder.js +1 -0
  19. package/dist/commands/rename-file.js +1 -0
  20. package/dist/commands/rename-folder.js +1 -0
  21. package/dist/commands/trash-clear.js +1 -0
  22. package/dist/commands/trash-file.js +1 -0
  23. package/dist/commands/trash-folder.js +1 -0
  24. package/dist/commands/trash-list.d.ts +2 -0
  25. package/dist/commands/trash-list.js +7 -3
  26. package/dist/commands/trash-restore-file.js +1 -0
  27. package/dist/commands/trash-restore-folder.js +1 -0
  28. package/dist/commands/upload-file.js +1 -0
  29. package/dist/commands/upload-folder.js +1 -0
  30. package/dist/commands/webdav-config.js +1 -0
  31. package/dist/commands/webdav.d.ts +4 -1
  32. package/dist/commands/webdav.js +4 -1
  33. package/dist/commands/whoami.d.ts +4 -1
  34. package/dist/commands/whoami.js +10 -4
  35. package/dist/commands/workspaces-list.js +1 -0
  36. package/dist/commands/workspaces-unset.js +1 -0
  37. package/dist/commands/workspaces-use.js +1 -0
  38. package/dist/hooks/prerun/auth_check.js +2 -0
  39. package/dist/services/auth.service.js +12 -11
  40. package/dist/services/validation.service.d.ts +2 -12
  41. package/dist/services/validation.service.js +1 -26
  42. package/dist/types/command.types.d.ts +1 -0
  43. package/dist/utils/cli.utils.d.ts +2 -1
  44. package/dist/utils/cli.utils.js +27 -13
  45. package/dist/utils/drive.utils.d.ts +1 -0
  46. package/dist/utils/drive.utils.js +5 -1
  47. package/dist/utils/format.utils.js +6 -2
  48. package/dist/utils/network.utils.js +2 -2
  49. package/dist/webdav/handlers/GET.handler.js +1 -0
  50. package/dist/webdav/handlers/HEAD.handler.js +1 -0
  51. package/dist/webdav/handlers/MKCOL.handler.js +3 -3
  52. package/dist/webdav/handlers/PROPFIND.handler.js +7 -2
  53. package/dist/webdav/middewares/auth.middleware.js +1 -0
  54. package/dist/webdav/middewares/webdav-auth.middleware.js +1 -0
  55. package/dist/webdav/webdav-server.js +2 -2
  56. package/oclif.manifest.json +134 -1
  57. package/package.json +20 -20
@@ -35,11 +35,11 @@ class WebDavServer {
35
35
  this.app = app;
36
36
  }
37
37
  registerStartMiddlewares = (configs) => {
38
- this.app.use((0, webdav_auth_middleware_1.WebDAVAuthMiddleware)(configs));
39
- this.app.use((0, auth_middleware_1.AuthMiddleware)());
40
38
  this.app.use((0, request_logger_middleware_1.RequestLoggerMiddleware)({
41
39
  enable: true,
42
40
  }));
41
+ this.app.use((0, webdav_auth_middleware_1.WebDAVAuthMiddleware)(configs));
42
+ this.app.use((0, auth_middleware_1.AuthMiddleware)());
43
43
  this.app.use(body_parser_1.default.text({ type: ['application/xml', 'text/xml'] }));
44
44
  this.app.use(mkcol_middleware_1.MkcolMiddleware);
45
45
  };
@@ -16,6 +16,25 @@
16
16
  "name": "json",
17
17
  "allowNo": false,
18
18
  "type": "boolean"
19
+ },
20
+ "non-interactive": {
21
+ "char": "x",
22
+ "description": "Prevents the CLI from being interactive. When enabled, the CLI will not request input through the console and will throw errors directly.",
23
+ "env": "INXT_NONINTERACTIVE",
24
+ "helpGroup": "helper",
25
+ "name": "non-interactive",
26
+ "required": false,
27
+ "allowNo": false,
28
+ "type": "boolean"
29
+ },
30
+ "debug": {
31
+ "description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
32
+ "env": "INXT_DEBUG",
33
+ "helpGroup": "helper",
34
+ "name": "debug",
35
+ "required": false,
36
+ "allowNo": false,
37
+ "type": "boolean"
19
38
  }
20
39
  },
21
40
  "hasDynamicHelp": false,
@@ -548,6 +567,25 @@
548
567
  "allowNo": false,
549
568
  "type": "boolean"
550
569
  },
570
+ "non-interactive": {
571
+ "char": "x",
572
+ "description": "Prevents the CLI from being interactive. When enabled, the CLI will not request input through the console and will throw errors directly.",
573
+ "env": "INXT_NONINTERACTIVE",
574
+ "helpGroup": "helper",
575
+ "name": "non-interactive",
576
+ "required": false,
577
+ "allowNo": false,
578
+ "type": "boolean"
579
+ },
580
+ "debug": {
581
+ "description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
582
+ "env": "INXT_DEBUG",
583
+ "helpGroup": "helper",
584
+ "name": "debug",
585
+ "required": false,
586
+ "allowNo": false,
587
+ "type": "boolean"
588
+ },
551
589
  "host": {
552
590
  "aliases": [
553
591
  "host"
@@ -604,6 +642,25 @@
604
642
  "name": "json",
605
643
  "allowNo": false,
606
644
  "type": "boolean"
645
+ },
646
+ "non-interactive": {
647
+ "char": "x",
648
+ "description": "Prevents the CLI from being interactive. When enabled, the CLI will not request input through the console and will throw errors directly.",
649
+ "env": "INXT_NONINTERACTIVE",
650
+ "helpGroup": "helper",
651
+ "name": "non-interactive",
652
+ "required": false,
653
+ "allowNo": false,
654
+ "type": "boolean"
655
+ },
656
+ "debug": {
657
+ "description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
658
+ "env": "INXT_DEBUG",
659
+ "helpGroup": "helper",
660
+ "name": "debug",
661
+ "required": false,
662
+ "allowNo": false,
663
+ "type": "boolean"
607
664
  }
608
665
  },
609
666
  "hasDynamicHelp": false,
@@ -635,6 +692,25 @@
635
692
  "name": "json",
636
693
  "allowNo": false,
637
694
  "type": "boolean"
695
+ },
696
+ "non-interactive": {
697
+ "char": "x",
698
+ "description": "Prevents the CLI from being interactive. When enabled, the CLI will not request input through the console and will throw errors directly.",
699
+ "env": "INXT_NONINTERACTIVE",
700
+ "helpGroup": "helper",
701
+ "name": "non-interactive",
702
+ "required": false,
703
+ "allowNo": false,
704
+ "type": "boolean"
705
+ },
706
+ "debug": {
707
+ "description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
708
+ "env": "INXT_DEBUG",
709
+ "helpGroup": "helper",
710
+ "name": "debug",
711
+ "required": false,
712
+ "allowNo": false,
713
+ "type": "boolean"
638
714
  }
639
715
  },
640
716
  "hasDynamicHelp": false,
@@ -1131,6 +1207,25 @@
1131
1207
  "allowNo": false,
1132
1208
  "type": "boolean"
1133
1209
  },
1210
+ "non-interactive": {
1211
+ "char": "x",
1212
+ "description": "Prevents the CLI from being interactive. When enabled, the CLI will not request input through the console and will throw errors directly.",
1213
+ "env": "INXT_NONINTERACTIVE",
1214
+ "helpGroup": "helper",
1215
+ "name": "non-interactive",
1216
+ "required": false,
1217
+ "allowNo": false,
1218
+ "type": "boolean"
1219
+ },
1220
+ "debug": {
1221
+ "description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
1222
+ "env": "INXT_DEBUG",
1223
+ "helpGroup": "helper",
1224
+ "name": "debug",
1225
+ "required": false,
1226
+ "allowNo": false,
1227
+ "type": "boolean"
1228
+ },
1134
1229
  "extended": {
1135
1230
  "char": "e",
1136
1231
  "description": "Displays additional information in the trash list.",
@@ -1606,6 +1701,25 @@
1606
1701
  "name": "json",
1607
1702
  "allowNo": false,
1608
1703
  "type": "boolean"
1704
+ },
1705
+ "non-interactive": {
1706
+ "char": "x",
1707
+ "description": "Prevents the CLI from being interactive. When enabled, the CLI will not request input through the console and will throw errors directly.",
1708
+ "env": "INXT_NONINTERACTIVE",
1709
+ "helpGroup": "helper",
1710
+ "name": "non-interactive",
1711
+ "required": false,
1712
+ "allowNo": false,
1713
+ "type": "boolean"
1714
+ },
1715
+ "debug": {
1716
+ "description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
1717
+ "env": "INXT_DEBUG",
1718
+ "helpGroup": "helper",
1719
+ "name": "debug",
1720
+ "required": false,
1721
+ "allowNo": false,
1722
+ "type": "boolean"
1609
1723
  }
1610
1724
  },
1611
1725
  "hasDynamicHelp": false,
@@ -1637,6 +1751,25 @@
1637
1751
  "name": "json",
1638
1752
  "allowNo": false,
1639
1753
  "type": "boolean"
1754
+ },
1755
+ "non-interactive": {
1756
+ "char": "x",
1757
+ "description": "Prevents the CLI from being interactive. When enabled, the CLI will not request input through the console and will throw errors directly.",
1758
+ "env": "INXT_NONINTERACTIVE",
1759
+ "helpGroup": "helper",
1760
+ "name": "non-interactive",
1761
+ "required": false,
1762
+ "allowNo": false,
1763
+ "type": "boolean"
1764
+ },
1765
+ "debug": {
1766
+ "description": "Enables debug mode. When enabled, the CLI will print debug messages to the console.",
1767
+ "env": "INXT_DEBUG",
1768
+ "helpGroup": "helper",
1769
+ "name": "debug",
1770
+ "required": false,
1771
+ "allowNo": false,
1772
+ "type": "boolean"
1640
1773
  }
1641
1774
  },
1642
1775
  "hasDynamicHelp": false,
@@ -1839,5 +1972,5 @@
1839
1972
  ]
1840
1973
  }
1841
1974
  },
1842
- "version": "1.6.5"
1975
+ "version": "1.6.7"
1843
1976
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "author": "Internxt <hello@internxt.com>",
3
- "version": "1.6.5",
3
+ "version": "1.6.7",
4
4
  "description": "Internxt CLI to manage your encrypted storage",
5
5
  "scripts": {
6
6
  "build": "npm run clean && tsc",
@@ -38,12 +38,12 @@
38
38
  "dependencies": {
39
39
  "@dashlane/pqc-kem-kyber512-node": "1.0.0",
40
40
  "@inquirer/prompts": "8.5.2",
41
- "@internxt/inxt-js": "3.2.2",
42
- "@internxt/lib": "1.4.2",
43
- "@internxt/sdk": "1.17.5",
44
- "@oclif/core": "4.11.6",
45
- "@oclif/plugin-autocomplete": "3.2.50",
46
- "axios": "1.18.0",
41
+ "@internxt/inxt-js": "3.3.1",
42
+ "@internxt/lib": "1.5.1",
43
+ "@internxt/sdk": "1.17.13",
44
+ "@oclif/core": "4.11.14",
45
+ "@oclif/plugin-autocomplete": "3.2.53",
46
+ "axios": "1.18.1",
47
47
  "better-sqlite3": "12.11.1",
48
48
  "bip39": "3.1.0",
49
49
  "body-parser": "2.3.0",
@@ -52,15 +52,15 @@
52
52
  "dotenv": "17.4.2",
53
53
  "express": "5.2.1",
54
54
  "express-async-handler": "1.2.0",
55
- "fast-xml-builder": "1.2.0",
56
- "fast-xml-parser": "5.9.0",
55
+ "fast-xml-builder": "1.2.1",
56
+ "fast-xml-parser": "5.9.3",
57
57
  "hash-wasm": "4.12.0",
58
58
  "mime-types": "3.0.2",
59
59
  "open": "11.0.0",
60
60
  "openpgp": "6.3.1",
61
61
  "otpauth": "9.5.1",
62
- "pm2": "7.0.1",
63
- "range-parser": "1.2.1",
62
+ "pm2": "7.0.3",
63
+ "range-parser": "1.3.0",
64
64
  "selfsigned": "5.5.0",
65
65
  "tty-table": "5.0.0",
66
66
  "typeorm": "1.0.0",
@@ -73,25 +73,25 @@
73
73
  "@types/cli-progress": "^3.11.6",
74
74
  "@types/express": "^5.0.6",
75
75
  "@types/mime-types": "^3.0.1",
76
- "@types/node": "^25.9.3",
76
+ "@types/node": "^26.1.1",
77
77
  "@types/range-parser": "^1.2.7",
78
- "@vitest/coverage-istanbul": "^4.1.9",
79
- "@vitest/spy": "^4.1.9",
80
- "eslint": "^10.5.0",
78
+ "@vitest/coverage-istanbul": "^4.1.10",
79
+ "@vitest/spy": "^4.1.10",
80
+ "eslint": "^10.6.0",
81
81
  "husky": "^9.1.7",
82
- "lint-staged": "^17.0.7",
82
+ "lint-staged": "^17.0.8",
83
83
  "nodemon": "^3.1.14",
84
- "oclif": "^4.23.16",
85
- "prettier": "^3.8.4",
84
+ "oclif": "^4.23.27",
85
+ "prettier": "^3.9.4",
86
86
  "rimraf": "^6.1.3",
87
87
  "sql.js": "^1.14.1",
88
88
  "ts-node": "^10.9.2",
89
89
  "typescript": "^6.0.3",
90
- "vitest": "^4.1.9",
90
+ "vitest": "^4.1.10",
91
91
  "vitest-mock-express": "^2.2.0"
92
92
  },
93
93
  "optionalDependencies": {
94
- "sharp": "0.35.1"
94
+ "sharp": "0.35.2"
95
95
  },
96
96
  "engines": {
97
97
  "node": "^22.13.0 || >=24.11.0"