core-3nweb-client-lib 0.43.20 → 0.44.1
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/build/api-defs/files.d.ts +233 -160
- package/build/core/index.d.ts +1 -0
- package/build/core/index.js +3 -2
- package/build/core/storage/index.d.ts +1 -0
- package/build/core/storage/index.js +4 -1
- package/build/core/storage/synced/storage.d.ts +1 -0
- package/build/core/storage/synced/storage.js +4 -1
- package/build/core-ipc/file.d.ts +47 -0
- package/build/core-ipc/file.js +121 -2
- package/build/core-ipc/fs.js +55 -62
- package/build/lib-client/asmail/recipient.js +4 -2
- package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
- package/build/lib-client/cryptor/cryptor.wasm +0 -0
- package/build/lib-client/fs-utils/files.js +5 -1
- package/build/lib-client/ws-utils.js +2 -7
- package/build/lib-client/xsp-fs/common.d.ts +2 -0
- package/build/lib-client/xsp-fs/common.js +2 -1
- package/build/lib-client/xsp-fs/exceptions.js +1 -1
- package/build/lib-client/xsp-fs/file-node.d.ts +3 -0
- package/build/lib-client/xsp-fs/file-node.js +55 -3
- package/build/lib-client/xsp-fs/file.d.ts +3 -0
- package/build/lib-client/xsp-fs/file.js +5 -1
- package/build/lib-client/xsp-fs/folder-node.d.ts +5 -4
- package/build/lib-client/xsp-fs/folder-node.js +257 -368
- package/build/lib-client/xsp-fs/fs.d.ts +6 -2
- package/build/lib-client/xsp-fs/fs.js +33 -2
- package/build/lib-client/xsp-fs/link-node.js +1 -1
- package/build/lib-client/xsp-fs/node-in-fs.d.ts +21 -0
- package/build/lib-client/xsp-fs/node-in-fs.js +172 -3
- package/build/lib-common/exceptions/file.d.ts +1 -1
- package/build/lib-common/exceptions/file.js +3 -2
- package/build/lib-common/ipc/generic-ipc.js +33 -28
- package/build/lib-common/ipc/ws-ipc.d.ts +2 -0
- package/build/lib-common/ipc/ws-ipc.js +35 -8
- package/build/lib-common/map-of-sets.d.ts +1 -0
- package/build/lib-common/map-of-sets.js +3 -0
- package/build/protos/asmail.proto.js +3315 -883
- package/build/protos/file.proto.js +1974 -0
- package/build/protos/fs.proto.js +3301 -869
- package/package.json +1 -1
- package/protos/file.proto +44 -0
- package/protos/fs.proto +42 -27
package/package.json
CHANGED
package/protos/file.proto
CHANGED
|
@@ -303,6 +303,50 @@ message OptionsToAdopteRemote {
|
|
|
303
303
|
common.UInt64Value remote_version = 2;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
+
// --- ReadonlyFileSyncAPI.diffCurrentAndRemoteVersions ---
|
|
307
|
+
message DiffCurrentAndRemoteRequestBody {
|
|
308
|
+
OptionsToDiffFileVersions opts = 1;
|
|
309
|
+
}
|
|
310
|
+
message DiffCurrentAndRemoteReplyBody {
|
|
311
|
+
FileDiff diff = 1;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
message OptionsToDiffFileVersions {
|
|
315
|
+
common.UInt64Value remote_version = 1;
|
|
316
|
+
common.BooleanValue compare_content_if_same_m_time = 2;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
message TimeStampsDiff {
|
|
320
|
+
uint64 current = 1;
|
|
321
|
+
uint64 remote = 2;
|
|
322
|
+
uint64 synced = 3;
|
|
323
|
+
}
|
|
324
|
+
message XAttrDiff {
|
|
325
|
+
string name = 1;
|
|
326
|
+
common.StringValue added_in = 2;
|
|
327
|
+
common.StringValue removed_in = 3;
|
|
328
|
+
common.StringValue changed_in = 4;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
message FileDiff {
|
|
332
|
+
// CommonDiff fields
|
|
333
|
+
uint64 current_version = 1;
|
|
334
|
+
bool is_current_local = 2;
|
|
335
|
+
common.UInt64Value remote_version = 3;
|
|
336
|
+
common.UInt64Value synced_version = 4;
|
|
337
|
+
bool is_remote_removed = 5;
|
|
338
|
+
TimeStampsDiff ctime = 6;
|
|
339
|
+
TimeStampsDiff mtime = 7;
|
|
340
|
+
repeated XAttrDiff xattrs = 8;
|
|
341
|
+
|
|
342
|
+
message Size {
|
|
343
|
+
uint64 current = 1;
|
|
344
|
+
uint64 remote = 2;
|
|
345
|
+
}
|
|
346
|
+
bool are_contents_same = 11;
|
|
347
|
+
Size size = 12;
|
|
348
|
+
}
|
|
349
|
+
|
|
306
350
|
|
|
307
351
|
// ==== WritableFileSyncAPI referable object ====
|
|
308
352
|
|
package/protos/fs.proto
CHANGED
|
@@ -483,8 +483,15 @@ message AdoptRemoteRequestBody {
|
|
|
483
483
|
file.OptionsToAdopteRemote opts = 2;
|
|
484
484
|
}
|
|
485
485
|
|
|
486
|
-
// --- ReadonlyFSSyncAPI.
|
|
487
|
-
|
|
486
|
+
// --- ReadonlyFSSyncAPI.diffCurrentAndRemoteFileVersions ---
|
|
487
|
+
// Reply body is file.DiffCurrentAndRemoteReplyBody
|
|
488
|
+
message DiffCurrentAndRemoteFileVersionsRequestBody {
|
|
489
|
+
string path = 1;
|
|
490
|
+
file.OptionsToDiffFileVersions opts = 2;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
// --- ReadonlyFSSyncAPI.diffCurrentAndRemoteFolderVersions ---
|
|
494
|
+
message DiffCurrentAndRemoteFolderVersionsRequestBody {
|
|
488
495
|
string path = 1;
|
|
489
496
|
common.UInt64Value remote_version = 2;
|
|
490
497
|
}
|
|
@@ -493,31 +500,39 @@ message DiffCurrentAndRemoteReplyBody {
|
|
|
493
500
|
}
|
|
494
501
|
|
|
495
502
|
message FolderDiff {
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
503
|
+
// CommonDiff fields
|
|
504
|
+
uint64 current_version = 1;
|
|
505
|
+
bool is_current_local = 2;
|
|
506
|
+
common.UInt64Value remote_version = 3;
|
|
507
|
+
common.UInt64Value synced_version = 4;
|
|
508
|
+
bool is_remote_removed = 5;
|
|
509
|
+
file.TimeStampsDiff ctime = 6;
|
|
510
|
+
file.TimeStampsDiff mtime = 7;
|
|
511
|
+
repeated file.XAttrDiff xattrs = 8;
|
|
512
|
+
|
|
513
|
+
message Removed {
|
|
514
|
+
string name = 1;
|
|
515
|
+
string removed_in = 2;
|
|
499
516
|
}
|
|
500
|
-
message
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
517
|
+
message Renamed {
|
|
518
|
+
string local = 1;
|
|
519
|
+
string remote = 2;
|
|
520
|
+
string renamed_in = 3;
|
|
504
521
|
}
|
|
505
|
-
message
|
|
506
|
-
string
|
|
507
|
-
string
|
|
522
|
+
message Added {
|
|
523
|
+
string name = 1;
|
|
524
|
+
string added_in = 2;
|
|
508
525
|
}
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
repeated
|
|
518
|
-
repeated
|
|
519
|
-
bool is_current_local = 11;
|
|
520
|
-
bool is_remote_removed = 12;
|
|
526
|
+
message Rekeyed {
|
|
527
|
+
string local = 1;
|
|
528
|
+
string remote = 2;
|
|
529
|
+
string rekeyed_in = 3;
|
|
530
|
+
}
|
|
531
|
+
repeated Removed removed = 11;
|
|
532
|
+
repeated Renamed renamed = 12;
|
|
533
|
+
repeated Added added = 13;
|
|
534
|
+
repeated Rekeyed rekeyed = 14;
|
|
535
|
+
repeated string name_overlaps = 15;
|
|
521
536
|
}
|
|
522
537
|
|
|
523
538
|
message RemoteChildRequestBody {
|
|
@@ -570,9 +585,9 @@ message AdoptRemoteFolderItemRequestBody {
|
|
|
570
585
|
Options opts = 3;
|
|
571
586
|
}
|
|
572
587
|
|
|
573
|
-
// --- WritableFSSyncAPI.
|
|
588
|
+
// --- WritableFSSyncAPI.mergeFolderCurrentAndRemoteVersions ---
|
|
574
589
|
// Reply body is common.UInt64Value
|
|
575
|
-
message
|
|
590
|
+
message MergeFolderCurrentAndRemoteVersionsRequestBody {
|
|
576
591
|
message Options {
|
|
577
592
|
common.UInt64Value local_version = 1;
|
|
578
593
|
common.StringValue postfix_for_name_overlaps = 2;
|
|
@@ -581,6 +596,6 @@ message AdoptAllRemoteFolderItemsRequestBody {
|
|
|
581
596
|
string path = 1;
|
|
582
597
|
Options opts = 2;
|
|
583
598
|
}
|
|
584
|
-
message
|
|
599
|
+
message MergeFolderCurrentAndRemoteVersionsReplyBody {
|
|
585
600
|
common.UInt64Value new_version = 1;
|
|
586
601
|
}
|