core-3nweb-client-lib 0.27.3 → 0.27.5

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 (102) hide show
  1. package/build/api-defs/files.d.ts +92 -29
  2. package/build/core/asmail/config/index.d.ts +2 -2
  3. package/build/core/asmail/config/index.js +2 -2
  4. package/build/core/asmail/config/invitations-anon.d.ts +10 -24
  5. package/build/core/asmail/config/invitations-anon.js +43 -31
  6. package/build/core/asmail/config/published-intro-key.d.ts +11 -22
  7. package/build/core/asmail/config/published-intro-key.js +47 -38
  8. package/build/core/asmail/delivery/per-recipient-wip.js +2 -2
  9. package/build/core/asmail/inbox/inbox-events.js +10 -5
  10. package/build/core/asmail/inbox/index.d.ts +3 -2
  11. package/build/core/asmail/inbox/index.js +15 -11
  12. package/build/core/asmail/inbox/msg-indexing.d.ts +17 -64
  13. package/build/core/asmail/inbox/msg-indexing.js +440 -311
  14. package/build/core/asmail/inbox/msg-on-disk.js +2 -1
  15. package/build/core/asmail/index.d.ts +1 -1
  16. package/build/core/asmail/index.js +5 -4
  17. package/build/core/asmail/keyring/correspondent-keys.d.ts +2 -2
  18. package/build/core/asmail/keyring/correspondent-keys.js +4 -2
  19. package/build/core/asmail/keyring/index.d.ts +10 -33
  20. package/build/core/asmail/keyring/index.js +88 -75
  21. package/build/core/asmail/msg/opener.js +4 -3
  22. package/build/core/asmail/msg/packer.d.ts +1 -0
  23. package/build/core/asmail/msg/packer.js +8 -4
  24. package/build/core/index.js +3 -5
  25. package/build/core/sign-in.js +1 -1
  26. package/build/core/storage/local/obj-files.js +2 -1
  27. package/build/core/storage/synced/obj-files.d.ts +2 -0
  28. package/build/core/storage/synced/obj-files.js +18 -1
  29. package/build/core/storage/synced/obj-status.d.ts +1 -0
  30. package/build/core/storage/synced/obj-status.js +10 -0
  31. package/build/core/storage/synced/storage.js +7 -23
  32. package/build/core/storage/synced/upload-header-file.js +4 -2
  33. package/build/core/storage/synced/upsyncer.js +3 -5
  34. package/build/ipc-via-protobuf/asmail-cap.js +14 -15
  35. package/build/ipc-via-protobuf/bytes.js +42 -18
  36. package/build/ipc-via-protobuf/file.d.ts +7 -0
  37. package/build/ipc-via-protobuf/file.js +103 -66
  38. package/build/ipc-via-protobuf/fs.js +127 -105
  39. package/build/ipc-via-protobuf/mailerid.js +2 -2
  40. package/build/ipc-via-protobuf/protobuf-msg.d.ts +1 -0
  41. package/build/ipc-via-protobuf/protobuf-msg.js +5 -1
  42. package/build/ipc-via-protobuf/startup-cap.js +8 -8
  43. package/build/ipc-via-protobuf/storage-cap.js +4 -4
  44. package/build/lib-client/3nstorage/xsp-fs/common.js +2 -0
  45. package/build/lib-client/3nstorage/xsp-fs/file-node.d.ts +5 -10
  46. package/build/lib-client/3nstorage/xsp-fs/file-node.js +26 -45
  47. package/build/lib-client/3nstorage/xsp-fs/file.d.ts +8 -7
  48. package/build/lib-client/3nstorage/xsp-fs/file.js +12 -18
  49. package/build/lib-client/3nstorage/xsp-fs/folder-node.d.ts +6 -1
  50. package/build/lib-client/3nstorage/xsp-fs/folder-node.js +20 -8
  51. package/build/lib-client/3nstorage/xsp-fs/fs.d.ts +19 -18
  52. package/build/lib-client/3nstorage/xsp-fs/fs.js +18 -19
  53. package/build/lib-client/3nstorage/xsp-fs/node-in-fs.d.ts +13 -4
  54. package/build/lib-client/3nstorage/xsp-fs/node-in-fs.js +63 -8
  55. package/build/lib-client/3nstorage/xsp-fs/node-persistence.d.ts +1 -0
  56. package/build/lib-client/3nstorage/xsp-fs/node-persistence.js +7 -5
  57. package/build/lib-client/3nstorage/xsp-fs/xsp-payload-v1.js +3 -4
  58. package/build/lib-client/3nstorage/xsp-fs/xsp-payload-v2.js +20 -15
  59. package/build/lib-client/cryptor/cryptor-in-worker.js +37 -47
  60. package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
  61. package/build/lib-client/cryptor/cryptor.wasm +0 -0
  62. package/build/lib-client/cryptor/in-proc-js.js +15 -12
  63. package/build/lib-client/cryptor/in-proc-wasm.js +11 -8
  64. package/build/lib-client/cryptor/serialization-for-wasm.d.ts +36 -0
  65. package/build/lib-client/cryptor/serialization-for-wasm.js +58 -0
  66. package/build/lib-client/cryptor-work-labels.d.ts +26 -0
  67. package/build/lib-client/cryptor-work-labels.js +152 -0
  68. package/build/lib-client/fs-sync-utils.d.ts +7 -1
  69. package/build/lib-client/fs-sync-utils.js +18 -7
  70. package/build/lib-client/local-files/dev-file-src.d.ts +2 -1
  71. package/build/lib-client/local-files/dev-file-src.js +5 -1
  72. package/build/lib-client/local-files/device-fs.js +2 -1
  73. package/build/lib-client/objs-on-disk/obj-on-disk.d.ts +5 -2
  74. package/build/lib-client/objs-on-disk/obj-on-disk.js +21 -2
  75. package/build/lib-client/request-utils.js +14 -14
  76. package/build/lib-common/async-cryptor-wrap.d.ts +9 -9
  77. package/build/lib-common/async-cryptor-wrap.js +13 -13
  78. package/build/lib-common/byte-streaming/pipe.d.ts +1 -1
  79. package/build/lib-common/byte-streaming/pipe.js +3 -3
  80. package/build/lib-common/byte-streaming/wrapping.js +4 -2
  81. package/build/lib-common/json-utils.js +0 -3
  82. package/build/lib-common/objs-on-disk/file-layout.js +1 -1
  83. package/build/lib-common/processes/synced.js +0 -184
  84. package/build/lib-sqlite-on-3nstorage/index.d.ts +32 -0
  85. package/build/lib-sqlite-on-3nstorage/index.js +117 -0
  86. package/build/lib-sqlite-on-3nstorage/sqljs.d.ts +279 -0
  87. package/build/lib-sqlite-on-3nstorage/sqljs.js +223 -0
  88. package/build/protos/asmail.proto.js +10145 -5923
  89. package/build/protos/bytes.proto.js +731 -204
  90. package/build/protos/common.proto.js +192 -44
  91. package/build/protos/cryptor.proto.js +184 -61
  92. package/build/protos/file.proto.js +2388 -502
  93. package/build/protos/fs.proto.js +9894 -6046
  94. package/build/protos/ipc.proto.js +244 -61
  95. package/build/protos/logger.proto.js +219 -53
  96. package/build/protos/mailerid.proto.js +230 -50
  97. package/build/protos/startup.proto.js +341 -77
  98. package/build/protos/storage.proto.js +276 -62
  99. package/package.json +8 -7
  100. package/protos/bytes.proto +13 -4
  101. package/protos/file.proto +27 -8
  102. package/protos/fs.proto +31 -14
package/protos/fs.proto CHANGED
@@ -231,38 +231,52 @@ message CollectionEvent {
231
231
  // ==== ReadonlyFSVersionedAPI referable object ====
232
232
 
233
233
  // --- ReadonlyFSVersionedAPI.getXAttr ---
234
- // Request body is GetXAttrRequestBody
234
+ message VersionedGetXAttrRequestBody {
235
+ string path = 1;
236
+ string xa_name = 2;
237
+ file.VersionedReadFlags flags = 10;
238
+ }
235
239
  // Reply body is file.VersionedGetXAttrReplyBody
236
240
 
241
+ message PathAndFlagsRequestBody {
242
+ string path = 1;
243
+ file.VersionedReadFlags flags = 2;
244
+ }
245
+
237
246
  // --- ReadonlyFSVersionedAPI.listXAttrs ---
238
- // Request body is PathOnlyRequestBody
247
+ // Request body is PathAndFlagsRequestBody
239
248
  // Reply body is file.VersionedListXAttrsReplyBody
240
249
 
241
250
  // --- ReadonlyFSVersionedAPI.listFolder ---
242
- // Request body is PathOnlyRequestBody
251
+ // Request body is PathAndFlagsRequestBody
243
252
  message VersionedListFolderReplyBody {
244
253
  uint64 version = 1;
245
254
  repeated ListingEntryMsg entries = 2;
246
255
  }
247
256
 
248
257
  // --- ReadonlyFSVersionedAPI.readJSONFile ---
249
- // Request body is PathOnlyRequestBody
258
+ // Request body is PathAndFlagsRequestBody
250
259
  // Reply body is file.VersionedReadJsonReplyBody
251
260
 
252
261
  // --- ReadonlyFSVersionedAPI.readTxtFile ---
253
- // Request body is PathOnlyRequestBody
262
+ // Request body is PathAndFlagsRequestBody
254
263
  // Reply body is file.VersionedReadTxtReplyBody
255
264
 
256
265
  // --- ReadonlyFSVersionedAPI.readBytes ---
257
- // Request body is ReadBytesRequestBody
266
+ message VersionedReadBytesRequestBody {
267
+ string path = 1;
268
+ common.UInt64Value start = 2;
269
+ common.UInt64Value end = 3;
270
+ file.VersionedReadFlags flags = 10;
271
+ }
258
272
  // Reply body is file.VersionedReadBytesReplyBody
259
273
 
260
274
  // --- ReadonlyFSVersionedAPI.getByteSource ---
261
- // Request body is PathOnlyRequestBody
275
+ // Request body is PathAndFlagsRequestBody
262
276
  // Reply body is file.VersionedGetByteSourceReplyBody
263
277
 
264
278
  // --- ReadonlyFSVersionedAPI.getByteSource ---
265
- // Request body is PathOnlyRequestBody
279
+ // Request body is PathAndFlagsRequestBody
266
280
  // Reply body is file.ListVersionsReplyBody
267
281
 
268
282
 
@@ -406,10 +420,10 @@ message WriteBytesRequestBody {
406
420
  message VersionedWriteJsonFileRequestBody {
407
421
  string path = 1;
408
422
  string json = 2;
409
- VersionedFileFlags flags = 3;
423
+ VersionedFileWriteFlags flags = 3;
410
424
  }
411
425
 
412
- message VersionedFileFlags {
426
+ message VersionedFileWriteFlags {
413
427
  common.BooleanValue truncate = 1;
414
428
  common.BooleanValue create = 2;
415
429
  common.BooleanValue exclusive = 3;
@@ -421,7 +435,7 @@ message VersionedFileFlags {
421
435
  message VersionedWriteTxtFileRequestBody {
422
436
  string path = 1;
423
437
  string txt = 2;
424
- VersionedFileFlags flags = 3;
438
+ VersionedFileWriteFlags flags = 3;
425
439
  }
426
440
 
427
441
  // --- WritableFSVersionedAPI.writeBytes ---
@@ -429,14 +443,14 @@ message VersionedWriteTxtFileRequestBody {
429
443
  message VersionedWriteBytesRequestBody {
430
444
  string path = 1;
431
445
  bytes bytes = 2;
432
- VersionedFileFlags flags = 3;
446
+ VersionedFileWriteFlags flags = 3;
433
447
  }
434
448
 
435
449
  // --- WritableFSVersionedAPI.getByteSink ---
436
450
  // Reply body is file.VersionedGetByteSinkReplyBody
437
451
  message VersionedGetByteSinkRequestBody {
438
452
  string path = 1;
439
- VersionedFileFlags flags = 2;
453
+ VersionedFileWriteFlags flags = 2;
440
454
  }
441
455
 
442
456
  // --- WritableFSVersionedAPI.archiveCurrent ---
@@ -513,11 +527,14 @@ message FolderDiff {
513
527
  // ==== WritableFSSyncAPI referable object ====
514
528
 
515
529
  // --- WritableFSSyncAPI.upload ---
516
- // Reply has only status and body is empty
530
+ // Reply body is common.UInt64Value
517
531
  message FSSyncUploadRequestBody {
518
532
  string path = 1;
519
533
  file.OptionsToUploadLocal opts = 2;
520
534
  }
535
+ message FSSyncUploadReplyBody {
536
+ common.UInt64Value uploaded_version = 1;
537
+ }
521
538
 
522
539
  // --- WritableFSSyncAPI.adoptRemoteFolderItem ---
523
540
  message AdoptRemoteFolderItemRequestBody {