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.
- package/build/api-defs/files.d.ts +92 -29
- package/build/core/asmail/config/index.d.ts +2 -2
- package/build/core/asmail/config/index.js +2 -2
- package/build/core/asmail/config/invitations-anon.d.ts +10 -24
- package/build/core/asmail/config/invitations-anon.js +43 -31
- package/build/core/asmail/config/published-intro-key.d.ts +11 -22
- package/build/core/asmail/config/published-intro-key.js +47 -38
- package/build/core/asmail/delivery/per-recipient-wip.js +2 -2
- package/build/core/asmail/inbox/inbox-events.js +10 -5
- package/build/core/asmail/inbox/index.d.ts +3 -2
- package/build/core/asmail/inbox/index.js +15 -11
- package/build/core/asmail/inbox/msg-indexing.d.ts +17 -64
- package/build/core/asmail/inbox/msg-indexing.js +440 -311
- package/build/core/asmail/inbox/msg-on-disk.js +2 -1
- package/build/core/asmail/index.d.ts +1 -1
- package/build/core/asmail/index.js +5 -4
- package/build/core/asmail/keyring/correspondent-keys.d.ts +2 -2
- package/build/core/asmail/keyring/correspondent-keys.js +4 -2
- package/build/core/asmail/keyring/index.d.ts +10 -33
- package/build/core/asmail/keyring/index.js +88 -75
- package/build/core/asmail/msg/opener.js +4 -3
- package/build/core/asmail/msg/packer.d.ts +1 -0
- package/build/core/asmail/msg/packer.js +8 -4
- package/build/core/index.js +3 -5
- package/build/core/sign-in.js +1 -1
- package/build/core/storage/local/obj-files.js +2 -1
- package/build/core/storage/synced/obj-files.d.ts +2 -0
- package/build/core/storage/synced/obj-files.js +18 -1
- package/build/core/storage/synced/obj-status.d.ts +1 -0
- package/build/core/storage/synced/obj-status.js +10 -0
- package/build/core/storage/synced/storage.js +7 -23
- package/build/core/storage/synced/upload-header-file.js +4 -2
- package/build/core/storage/synced/upsyncer.js +3 -5
- package/build/ipc-via-protobuf/asmail-cap.js +14 -15
- package/build/ipc-via-protobuf/bytes.js +42 -18
- package/build/ipc-via-protobuf/file.d.ts +7 -0
- package/build/ipc-via-protobuf/file.js +103 -66
- package/build/ipc-via-protobuf/fs.js +127 -105
- package/build/ipc-via-protobuf/mailerid.js +2 -2
- package/build/ipc-via-protobuf/protobuf-msg.d.ts +1 -0
- package/build/ipc-via-protobuf/protobuf-msg.js +5 -1
- package/build/ipc-via-protobuf/startup-cap.js +8 -8
- package/build/ipc-via-protobuf/storage-cap.js +4 -4
- package/build/lib-client/3nstorage/xsp-fs/common.js +2 -0
- package/build/lib-client/3nstorage/xsp-fs/file-node.d.ts +5 -10
- package/build/lib-client/3nstorage/xsp-fs/file-node.js +26 -45
- package/build/lib-client/3nstorage/xsp-fs/file.d.ts +8 -7
- package/build/lib-client/3nstorage/xsp-fs/file.js +12 -18
- package/build/lib-client/3nstorage/xsp-fs/folder-node.d.ts +6 -1
- package/build/lib-client/3nstorage/xsp-fs/folder-node.js +20 -8
- package/build/lib-client/3nstorage/xsp-fs/fs.d.ts +19 -18
- package/build/lib-client/3nstorage/xsp-fs/fs.js +18 -19
- package/build/lib-client/3nstorage/xsp-fs/node-in-fs.d.ts +13 -4
- package/build/lib-client/3nstorage/xsp-fs/node-in-fs.js +63 -8
- package/build/lib-client/3nstorage/xsp-fs/node-persistence.d.ts +1 -0
- package/build/lib-client/3nstorage/xsp-fs/node-persistence.js +7 -5
- package/build/lib-client/3nstorage/xsp-fs/xsp-payload-v1.js +3 -4
- package/build/lib-client/3nstorage/xsp-fs/xsp-payload-v2.js +20 -15
- package/build/lib-client/cryptor/cryptor-in-worker.js +37 -47
- package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
- package/build/lib-client/cryptor/cryptor.wasm +0 -0
- package/build/lib-client/cryptor/in-proc-js.js +15 -12
- package/build/lib-client/cryptor/in-proc-wasm.js +11 -8
- package/build/lib-client/cryptor/serialization-for-wasm.d.ts +36 -0
- package/build/lib-client/cryptor/serialization-for-wasm.js +58 -0
- package/build/lib-client/cryptor-work-labels.d.ts +26 -0
- package/build/lib-client/cryptor-work-labels.js +152 -0
- package/build/lib-client/fs-sync-utils.d.ts +7 -1
- package/build/lib-client/fs-sync-utils.js +18 -7
- package/build/lib-client/local-files/dev-file-src.d.ts +2 -1
- package/build/lib-client/local-files/dev-file-src.js +5 -1
- package/build/lib-client/local-files/device-fs.js +2 -1
- package/build/lib-client/objs-on-disk/obj-on-disk.d.ts +5 -2
- package/build/lib-client/objs-on-disk/obj-on-disk.js +21 -2
- package/build/lib-client/request-utils.js +14 -14
- package/build/lib-common/async-cryptor-wrap.d.ts +9 -9
- package/build/lib-common/async-cryptor-wrap.js +13 -13
- package/build/lib-common/byte-streaming/pipe.d.ts +1 -1
- package/build/lib-common/byte-streaming/pipe.js +3 -3
- package/build/lib-common/byte-streaming/wrapping.js +4 -2
- package/build/lib-common/json-utils.js +0 -3
- package/build/lib-common/objs-on-disk/file-layout.js +1 -1
- package/build/lib-common/processes/synced.js +0 -184
- package/build/lib-sqlite-on-3nstorage/index.d.ts +32 -0
- package/build/lib-sqlite-on-3nstorage/index.js +117 -0
- package/build/lib-sqlite-on-3nstorage/sqljs.d.ts +279 -0
- package/build/lib-sqlite-on-3nstorage/sqljs.js +223 -0
- package/build/protos/asmail.proto.js +10145 -5923
- package/build/protos/bytes.proto.js +731 -204
- package/build/protos/common.proto.js +192 -44
- package/build/protos/cryptor.proto.js +184 -61
- package/build/protos/file.proto.js +2388 -502
- package/build/protos/fs.proto.js +9894 -6046
- package/build/protos/ipc.proto.js +244 -61
- package/build/protos/logger.proto.js +219 -53
- package/build/protos/mailerid.proto.js +230 -50
- package/build/protos/startup.proto.js +341 -77
- package/build/protos/storage.proto.js +276 -62
- package/package.json +8 -7
- package/protos/bytes.proto +13 -4
- package/protos/file.proto +27 -8
- 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
|
-
|
|
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
|
|
247
|
+
// Request body is PathAndFlagsRequestBody
|
|
239
248
|
// Reply body is file.VersionedListXAttrsReplyBody
|
|
240
249
|
|
|
241
250
|
// --- ReadonlyFSVersionedAPI.listFolder ---
|
|
242
|
-
// Request body is
|
|
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
|
|
258
|
+
// Request body is PathAndFlagsRequestBody
|
|
250
259
|
// Reply body is file.VersionedReadJsonReplyBody
|
|
251
260
|
|
|
252
261
|
// --- ReadonlyFSVersionedAPI.readTxtFile ---
|
|
253
|
-
// Request body is
|
|
262
|
+
// Request body is PathAndFlagsRequestBody
|
|
254
263
|
// Reply body is file.VersionedReadTxtReplyBody
|
|
255
264
|
|
|
256
265
|
// --- ReadonlyFSVersionedAPI.readBytes ---
|
|
257
|
-
|
|
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
|
|
275
|
+
// Request body is PathAndFlagsRequestBody
|
|
262
276
|
// Reply body is file.VersionedGetByteSourceReplyBody
|
|
263
277
|
|
|
264
278
|
// --- ReadonlyFSVersionedAPI.getByteSource ---
|
|
265
|
-
// Request body is
|
|
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
|
-
|
|
423
|
+
VersionedFileWriteFlags flags = 3;
|
|
410
424
|
}
|
|
411
425
|
|
|
412
|
-
message
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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 {
|