core-3nweb-client-lib 0.43.20 → 0.44.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core-3nweb-client-lib",
3
- "version": "0.43.20",
3
+ "version": "0.44.0",
4
4
  "description": "3NWeb client core library, embeddable into different environments",
5
5
  "main": "build/lib-index.js",
6
6
  "types": "build/lib-index.d.ts",
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.diffCurrentAndRemote ---
487
- message DiffCurrentAndRemoteRequestBody {
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
- message TimeStamps {
497
- uint64 current = 1;
498
- common.UInt64Value remote = 2;
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 XAttrs {
501
- repeated file.NameAndXAttrValue in_current = 1;
502
- repeated file.NameAndXAttrValue in_remote = 2;
503
- repeated string name_overlaps = 3;
517
+ message Renamed {
518
+ string local = 1;
519
+ string remote = 2;
520
+ string renamed_in = 3;
504
521
  }
505
- message DifferentNames {
506
- string local_name = 1;
507
- string remote_name = 2;
522
+ message Added {
523
+ string name = 1;
524
+ string added_in = 2;
508
525
  }
509
- uint64 current_version = 1;
510
- common.UInt64Value remote_version = 2;
511
- repeated ListingEntryMsg in_current = 3;
512
- repeated ListingEntryMsg in_remote = 4;
513
- repeated string name_overlaps = 5;
514
- TimeStamps ctime = 6;
515
- TimeStamps mtime = 7;
516
- XAttrs xattrs = 8;
517
- repeated string different_keys = 9;
518
- repeated DifferentNames different_names = 10;
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.adoptAllRemoteFolderItems ---
588
+ // --- WritableFSSyncAPI.mergeFolderCurrentAndRemoteVersions ---
574
589
  // Reply body is common.UInt64Value
575
- message AdoptAllRemoteFolderItemsRequestBody {
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 AdoptAllRemoteFolderItemsReplyBody {
599
+ message MergeFolderCurrentAndRemoteVersionsReplyBody {
585
600
  common.UInt64Value new_version = 1;
586
601
  }