Skip to content

Commit 1e27989

Browse files
authored
Merge pull request #341 from internxt/feat/pb-4778-migrate-api-to-gateway
[PB-4778]: feat/migrate-api-to-gateway
2 parents 9040061 + 8e51044 commit 1e27989

17 files changed

Lines changed: 1351 additions & 1394 deletions

.env.template

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
DRIVE_WEB_URL=https://drive.internxt.com
2-
DRIVE_NEW_API_URL=https://api.internxt.com/drive
3-
NETWORK_URL=https://api.internxt.com
2+
DRIVE_NEW_API_URL=https://gateway.internxt.com/drive
3+
NETWORK_URL=https://gateway.internxt.com/network
44
APP_CRYPTO_SECRET=6KYQBP847D4ATSFA
55
APP_MAGIC_IV=d139cb9a2cd17092e79e1861cf9d7023
6-
APP_MAGIC_SALT=38dce0391b49efba88dbc8c39ebf868f0267eb110bb0012ab27dc52a528d61b1d1ed9d76f400ff58e3240028442b1eab9bb84e111d9dadd997982dbde9dbd25e
6+
APP_MAGIC_SALT=38dce0391b49efba88dbc8c39ebf868f0267eb110bb0012ab27dc52a528d61b1d1ed9d76f400ff58e3240028442b1eab9bb84e111d9dadd997982dbde9dbd25e
7+
DESKTOP_HEADER=3b68706a367fd567b929396290b1de40768bb768

README.md

Lines changed: 57 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ $ npm install -g @internxt/cli
5151
$ internxt COMMAND
5252
running command...
5353
$ internxt (--version)
54-
@internxt/cli/1.5.4 win32-x64 node-v23.7.0
54+
@internxt/cli/1.5.5 win32-x64 node-v23.7.0
5555
$ internxt --help [COMMAND]
5656
USAGE
5757
$ internxt COMMAND
@@ -63,6 +63,7 @@ USAGE
6363

6464
<!-- commands -->
6565
* [`internxt add-cert`](#internxt-add-cert)
66+
* [`internxt autocomplete [SHELL]`](#internxt-autocomplete-shell)
6667
* [`internxt config`](#internxt-config)
6768
* [`internxt create-folder`](#internxt-create-folder)
6869
* [`internxt delete-permanently-file`](#internxt-delete-permanently-file)
@@ -119,7 +120,38 @@ EXAMPLES
119120
$ internxt add-cert
120121
```
121122

122-
_See code: [src/commands/add-cert.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/add-cert.ts)_
123+
_See code: [src/commands/add-cert.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/add-cert.ts)_
124+
125+
## `internxt autocomplete [SHELL]`
126+
127+
Display autocomplete installation instructions.
128+
129+
```
130+
USAGE
131+
$ internxt autocomplete [SHELL] [-r]
132+
133+
ARGUMENTS
134+
SHELL (zsh|bash|powershell) Shell type
135+
136+
FLAGS
137+
-r, --refresh-cache Refresh cache (ignores displaying instructions)
138+
139+
DESCRIPTION
140+
Display autocomplete installation instructions.
141+
142+
EXAMPLES
143+
$ internxt autocomplete
144+
145+
$ internxt autocomplete bash
146+
147+
$ internxt autocomplete zsh
148+
149+
$ internxt autocomplete powershell
150+
151+
$ internxt autocomplete --refresh-cache
152+
```
153+
154+
_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.34/src/commands/autocomplete/index.ts)_
123155

124156
## `internxt config`
125157

@@ -139,7 +171,7 @@ EXAMPLES
139171
$ internxt config
140172
```
141173

142-
_See code: [src/commands/config.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/config.ts)_
174+
_See code: [src/commands/config.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/config.ts)_
143175

144176
## `internxt create-folder`
145177

@@ -168,7 +200,7 @@ EXAMPLES
168200
$ internxt create-folder
169201
```
170202

171-
_See code: [src/commands/create-folder.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/create-folder.ts)_
203+
_See code: [src/commands/create-folder.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/create-folder.ts)_
172204

173205
## `internxt delete-permanently-file`
174206

@@ -198,7 +230,7 @@ EXAMPLES
198230
$ internxt delete-permanently-file
199231
```
200232

201-
_See code: [src/commands/delete-permanently-file.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/delete-permanently-file.ts)_
233+
_See code: [src/commands/delete-permanently-file.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/delete-permanently-file.ts)_
202234

203235
## `internxt delete-permanently-folder`
204236

@@ -228,7 +260,7 @@ EXAMPLES
228260
$ internxt delete-permanently-folder
229261
```
230262

231-
_See code: [src/commands/delete-permanently-folder.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/delete-permanently-folder.ts)_
263+
_See code: [src/commands/delete-permanently-folder.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/delete-permanently-folder.ts)_
232264

233265
## `internxt delete permanently file`
234266

@@ -317,7 +349,7 @@ EXAMPLES
317349
$ internxt download-file
318350
```
319351

320-
_See code: [src/commands/download-file.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/download-file.ts)_
352+
_See code: [src/commands/download-file.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/download-file.ts)_
321353

322354
## `internxt download file`
323355

@@ -376,7 +408,7 @@ EXAMPLES
376408
$ internxt list
377409
```
378410

379-
_See code: [src/commands/list.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/list.ts)_
411+
_See code: [src/commands/list.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/list.ts)_
380412

381413
## `internxt login`
382414

@@ -405,7 +437,7 @@ EXAMPLES
405437
$ internxt login
406438
```
407439

408-
_See code: [src/commands/login.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/login.ts)_
440+
_See code: [src/commands/login.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/login.ts)_
409441

410442
## `internxt logout`
411443

@@ -425,7 +457,7 @@ EXAMPLES
425457
$ internxt logout
426458
```
427459

428-
_See code: [src/commands/logout.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/logout.ts)_
460+
_See code: [src/commands/logout.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/logout.ts)_
429461

430462
## `internxt logs`
431463

@@ -445,7 +477,7 @@ EXAMPLES
445477
$ internxt logs
446478
```
447479

448-
_See code: [src/commands/logs.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/logs.ts)_
480+
_See code: [src/commands/logs.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/logs.ts)_
449481

450482
## `internxt move-file`
451483

@@ -477,7 +509,7 @@ EXAMPLES
477509
$ internxt move-file
478510
```
479511

480-
_See code: [src/commands/move-file.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/move-file.ts)_
512+
_See code: [src/commands/move-file.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/move-file.ts)_
481513

482514
## `internxt move-folder`
483515

@@ -509,7 +541,7 @@ EXAMPLES
509541
$ internxt move-folder
510542
```
511543

512-
_See code: [src/commands/move-folder.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/move-folder.ts)_
544+
_See code: [src/commands/move-folder.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/move-folder.ts)_
513545

514546
## `internxt move file`
515547

@@ -600,7 +632,7 @@ EXAMPLES
600632
$ internxt rename-file
601633
```
602634

603-
_See code: [src/commands/rename-file.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/rename-file.ts)_
635+
_See code: [src/commands/rename-file.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/rename-file.ts)_
604636

605637
## `internxt rename-folder`
606638

@@ -631,7 +663,7 @@ EXAMPLES
631663
$ internxt rename-folder
632664
```
633665

634-
_See code: [src/commands/rename-folder.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/rename-folder.ts)_
666+
_See code: [src/commands/rename-folder.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/rename-folder.ts)_
635667

636668
## `internxt rename file`
637669

@@ -719,7 +751,7 @@ EXAMPLES
719751
$ internxt trash-clear
720752
```
721753

722-
_See code: [src/commands/trash-clear.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/trash-clear.ts)_
754+
_See code: [src/commands/trash-clear.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/trash-clear.ts)_
723755

724756
## `internxt trash-file`
725757

@@ -749,7 +781,7 @@ EXAMPLES
749781
$ internxt trash-file
750782
```
751783

752-
_See code: [src/commands/trash-file.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/trash-file.ts)_
784+
_See code: [src/commands/trash-file.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/trash-file.ts)_
753785

754786
## `internxt trash-folder`
755787

@@ -779,7 +811,7 @@ EXAMPLES
779811
$ internxt trash-folder
780812
```
781813

782-
_See code: [src/commands/trash-folder.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/trash-folder.ts)_
814+
_See code: [src/commands/trash-folder.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/trash-folder.ts)_
783815

784816
## `internxt trash-list`
785817

@@ -805,7 +837,7 @@ EXAMPLES
805837
$ internxt trash-list
806838
```
807839

808-
_See code: [src/commands/trash-list.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/trash-list.ts)_
840+
_See code: [src/commands/trash-list.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/trash-list.ts)_
809841

810842
## `internxt trash-restore-file`
811843

@@ -836,7 +868,7 @@ EXAMPLES
836868
$ internxt trash-restore-file
837869
```
838870

839-
_See code: [src/commands/trash-restore-file.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/trash-restore-file.ts)_
871+
_See code: [src/commands/trash-restore-file.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/trash-restore-file.ts)_
840872

841873
## `internxt trash-restore-folder`
842874

@@ -867,7 +899,7 @@ EXAMPLES
867899
$ internxt trash-restore-folder
868900
```
869901

870-
_See code: [src/commands/trash-restore-folder.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/trash-restore-folder.ts)_
902+
_See code: [src/commands/trash-restore-folder.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/trash-restore-folder.ts)_
871903

872904
## `internxt trash clear`
873905

@@ -1064,7 +1096,7 @@ EXAMPLES
10641096
$ internxt upload-file
10651097
```
10661098

1067-
_See code: [src/commands/upload-file.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/upload-file.ts)_
1099+
_See code: [src/commands/upload-file.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/upload-file.ts)_
10681100

10691101
## `internxt upload file`
10701102

@@ -1119,7 +1151,7 @@ EXAMPLES
11191151
$ internxt webdav status
11201152
```
11211153

1122-
_See code: [src/commands/webdav.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/webdav.ts)_
1154+
_See code: [src/commands/webdav.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/webdav.ts)_
11231155

11241156
## `internxt webdav-config`
11251157

@@ -1145,7 +1177,7 @@ EXAMPLES
11451177
$ internxt webdav-config
11461178
```
11471179

1148-
_See code: [src/commands/webdav-config.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/webdav-config.ts)_
1180+
_See code: [src/commands/webdav-config.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/webdav-config.ts)_
11491181

11501182
## `internxt whoami`
11511183

@@ -1165,7 +1197,7 @@ EXAMPLES
11651197
$ internxt whoami
11661198
```
11671199

1168-
_See code: [src/commands/whoami.ts](https://github.com/internxt/cli/blob/v1.5.4/src/commands/whoami.ts)_
1200+
_See code: [src/commands/whoami.ts](https://github.com/internxt/cli/blob/v1.5.5/src/commands/whoami.ts)_
11691201
<!-- commandsstop -->
11701202

11711203
# Current Limitations

package.json

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"author": "Internxt <hello@internxt.com>",
3-
"version": "1.5.4",
3+
"version": "1.5.5",
44
"description": "Internxt CLI to manage your encrypted storage",
55
"scripts": {
66
"build": "yarn clean && tsc",
@@ -36,56 +36,50 @@
3636
"/oclif.manifest.json"
3737
],
3838
"dependencies": {
39-
"@inquirer/prompts": "7.6.0",
40-
"@internxt/inxt-js": "2.2.2",
39+
"@inquirer/prompts": "7.8.4",
40+
"@internxt/inxt-js": "2.2.7",
4141
"@internxt/lib": "1.3.1",
42-
"@internxt/sdk": "1.10.5",
43-
"@oclif/core": "4.4.1",
44-
"@types/validator": "13.15.2",
45-
"async": "3.2.6",
46-
"axios": "1.10.0",
42+
"@internxt/sdk": "1.11.1",
43+
"@oclif/core": "4.5.2",
44+
"@oclif/plugin-autocomplete": "3.2.34",
45+
"axios": "1.11.0",
4746
"bip39": "3.1.0",
4847
"body-parser": "2.2.0",
4948
"cli-progress": "3.12.0",
50-
"dayjs": "1.11.13",
51-
"dotenv": "17.0.1",
49+
"dayjs": "1.11.18",
50+
"dotenv": "17.2.2",
5251
"express": "5.1.0",
5352
"express-async-handler": "1.2.0",
54-
"express-basic-auth": "1.2.1",
5553
"fast-xml-parser": "5.2.5",
5654
"mime-types": "3.0.1",
57-
"openpgp": "5.11.3",
58-
"pm2": "6.0.8",
55+
"openpgp": "6.2.2",
56+
"pm2": "6.0.10",
5957
"range-parser": "1.2.1",
60-
"reflect-metadata": "0.2.2",
61-
"selfsigned": "2.4.1",
62-
"sharp": "0.34.2",
58+
"selfsigned": "3.0.1",
59+
"sharp": "0.34.3",
6360
"tty-table": "4.2.3",
6461
"winston": "3.17.0"
6562
},
6663
"devDependencies": {
67-
"@internxt/eslint-config-internxt": "2.0.0",
64+
"@internxt/eslint-config-internxt": "2.0.1",
6865
"@internxt/prettier-config": "internxt/prettier-config#v1.0.2",
69-
"@oclif/test": "4.1.13",
70-
"@openpgp/web-stream-tools": "0.0.11-patch-1",
71-
"@types/async": "3.2.24",
66+
"@openpgp/web-stream-tools": "0.1.3",
7267
"@types/cli-progress": "3.11.6",
7368
"@types/express": "5.0.3",
7469
"@types/mime-types": "3.0.1",
7570
"@types/node": "22.16.0",
7671
"@types/range-parser": "1.2.7",
7772
"@vitest/coverage-istanbul": "3.2.4",
7873
"@vitest/spy": "3.2.4",
79-
"eslint": "9.30.1",
74+
"eslint": "9.34.0",
8075
"husky": "9.1.7",
81-
"lint-staged": "16.1.2",
82-
"nock": "14.0.5",
76+
"lint-staged": "16.1.6",
8377
"nodemon": "3.1.10",
84-
"oclif": "4.20.1",
78+
"oclif": "4.22.16",
8579
"prettier": "3.6.2",
8680
"rimraf": "6.0.1",
8781
"ts-node": "10.9.2",
88-
"typescript": "5.8.3",
82+
"typescript": "5.9.2",
8983
"vitest": "3.2.4",
9084
"vitest-mock-express": "2.2.0"
9185
},
@@ -99,7 +93,9 @@
9993
"bin": "internxt",
10094
"dirname": "internxt-cli",
10195
"commands": "./dist/commands",
102-
"plugins": [],
96+
"plugins": [
97+
"@oclif/plugin-autocomplete"
98+
],
10399
"topicSeparator": " ",
104100
"topics": {},
105101
"hooks": {

src/commands/download-file.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default class DownloadFile extends Command {
7979

8080
progressBar?.start(100, 0);
8181
const [executeDownload, abortable] = await networkFacade.downloadToStream(
82-
user.bucket,
82+
driveFile.bucket,
8383
user.mnemonic,
8484
driveFile.fileId,
8585
driveFile.size,
@@ -212,6 +212,7 @@ export default class DownloadFile extends Command {
212212
bridgePass: user.userId,
213213
bridgeUrl: ConfigService.instance.get('NETWORK_URL'),
214214
encryptionKey: user.mnemonic,
215+
appDetails: SdkManager.getAppDetails(),
215216
});
216217
const networkFacade = new NetworkFacade(
217218
networkModule,

src/commands/upload-file.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export default class UploadFile extends Command {
7777
bridgePass: user.userId,
7878
bridgeUrl: ConfigService.instance.get('NETWORK_URL'),
7979
encryptionKey: user.mnemonic,
80+
appDetails: SdkManager.getAppDetails(),
8081
});
8182
const networkFacade = new NetworkFacade(
8283
networkModule,

0 commit comments

Comments
 (0)