core-3nweb-client-lib 0.27.4 → 0.27.6
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 +40 -10
- 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 +14 -10
- 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.js +3 -2
- package/build/core/asmail/keyring/correspondent-keys.js +3 -1
- package/build/core/asmail/keyring/index.d.ts +1 -4
- package/build/core/asmail/keyring/index.js +6 -6
- 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 +2 -3
- package/build/core/storage/local/obj-files.js +2 -1
- package/build/core/storage/synced/storage.js +3 -2
- 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.js +43 -39
- package/build/ipc-via-protobuf/fs.js +72 -67
- 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/ipc.d.ts +1 -0
- package/build/ipc.js +3 -1
- package/build/lib-client/3nstorage/xsp-fs/common.js +2 -0
- package/build/lib-client/3nstorage/xsp-fs/file-node.js +0 -17
- package/build/lib-client/3nstorage/xsp-fs/file.d.ts +1 -1
- package/build/lib-client/3nstorage/xsp-fs/folder-node.d.ts +1 -1
- package/build/lib-client/3nstorage/xsp-fs/folder-node.js +13 -7
- package/build/lib-client/3nstorage/xsp-fs/fs.d.ts +1 -1
- package/build/lib-client/3nstorage/xsp-fs/fs.js +1 -1
- package/build/lib-client/3nstorage/xsp-fs/node-in-fs.d.ts +2 -2
- package/build/lib-client/3nstorage/xsp-fs/node-in-fs.js +7 -3
- 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.js +5 -1
- 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/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 +3748 -1121
- 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 +1336 -324
- package/build/protos/fs.proto.js +3099 -846
- 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 +4 -1
- package/protos/fs.proto +4 -1
|
@@ -123,14 +123,16 @@ $root.common = (function() {
|
|
|
123
123
|
while (reader.pos < end) {
|
|
124
124
|
var tag = reader.uint32();
|
|
125
125
|
switch (tag >>> 3) {
|
|
126
|
-
case 1:
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
message.path
|
|
132
|
-
|
|
133
|
-
|
|
126
|
+
case 1: {
|
|
127
|
+
message.objType = reader.string();
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
case 2: {
|
|
131
|
+
if (!(message.path && message.path.length))
|
|
132
|
+
message.path = [];
|
|
133
|
+
message.path.push(reader.string());
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
134
136
|
default:
|
|
135
137
|
reader.skipType(tag & 7);
|
|
136
138
|
break;
|
|
@@ -241,6 +243,21 @@ $root.common = (function() {
|
|
|
241
243
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
242
244
|
};
|
|
243
245
|
|
|
246
|
+
/**
|
|
247
|
+
* Gets the default type url for ObjectReference
|
|
248
|
+
* @function getTypeUrl
|
|
249
|
+
* @memberof common.ObjectReference
|
|
250
|
+
* @static
|
|
251
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
252
|
+
* @returns {string} The default type url
|
|
253
|
+
*/
|
|
254
|
+
ObjectReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
255
|
+
if (typeUrlPrefix === undefined) {
|
|
256
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
257
|
+
}
|
|
258
|
+
return typeUrlPrefix + "/common.ObjectReference";
|
|
259
|
+
};
|
|
260
|
+
|
|
244
261
|
return ObjectReference;
|
|
245
262
|
})();
|
|
246
263
|
|
|
@@ -336,9 +353,10 @@ $root.common = (function() {
|
|
|
336
353
|
while (reader.pos < end) {
|
|
337
354
|
var tag = reader.uint32();
|
|
338
355
|
switch (tag >>> 3) {
|
|
339
|
-
case 1:
|
|
340
|
-
|
|
341
|
-
|
|
356
|
+
case 1: {
|
|
357
|
+
message.value = reader.bool();
|
|
358
|
+
break;
|
|
359
|
+
}
|
|
342
360
|
default:
|
|
343
361
|
reader.skipType(tag & 7);
|
|
344
362
|
break;
|
|
@@ -428,6 +446,21 @@ $root.common = (function() {
|
|
|
428
446
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
429
447
|
};
|
|
430
448
|
|
|
449
|
+
/**
|
|
450
|
+
* Gets the default type url for BooleanValue
|
|
451
|
+
* @function getTypeUrl
|
|
452
|
+
* @memberof common.BooleanValue
|
|
453
|
+
* @static
|
|
454
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
455
|
+
* @returns {string} The default type url
|
|
456
|
+
*/
|
|
457
|
+
BooleanValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
458
|
+
if (typeUrlPrefix === undefined) {
|
|
459
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
460
|
+
}
|
|
461
|
+
return typeUrlPrefix + "/common.BooleanValue";
|
|
462
|
+
};
|
|
463
|
+
|
|
431
464
|
return BooleanValue;
|
|
432
465
|
})();
|
|
433
466
|
|
|
@@ -525,11 +558,12 @@ $root.common = (function() {
|
|
|
525
558
|
while (reader.pos < end) {
|
|
526
559
|
var tag = reader.uint32();
|
|
527
560
|
switch (tag >>> 3) {
|
|
528
|
-
case 1:
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
561
|
+
case 1: {
|
|
562
|
+
if (!(message.values && message.values.length))
|
|
563
|
+
message.values = [];
|
|
564
|
+
message.values.push(reader.string());
|
|
565
|
+
break;
|
|
566
|
+
}
|
|
533
567
|
default:
|
|
534
568
|
reader.skipType(tag & 7);
|
|
535
569
|
break;
|
|
@@ -631,6 +665,21 @@ $root.common = (function() {
|
|
|
631
665
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
632
666
|
};
|
|
633
667
|
|
|
668
|
+
/**
|
|
669
|
+
* Gets the default type url for StringArrayValue
|
|
670
|
+
* @function getTypeUrl
|
|
671
|
+
* @memberof common.StringArrayValue
|
|
672
|
+
* @static
|
|
673
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
674
|
+
* @returns {string} The default type url
|
|
675
|
+
*/
|
|
676
|
+
StringArrayValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
677
|
+
if (typeUrlPrefix === undefined) {
|
|
678
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
679
|
+
}
|
|
680
|
+
return typeUrlPrefix + "/common.StringArrayValue";
|
|
681
|
+
};
|
|
682
|
+
|
|
634
683
|
return StringArrayValue;
|
|
635
684
|
})();
|
|
636
685
|
|
|
@@ -726,9 +775,10 @@ $root.common = (function() {
|
|
|
726
775
|
while (reader.pos < end) {
|
|
727
776
|
var tag = reader.uint32();
|
|
728
777
|
switch (tag >>> 3) {
|
|
729
|
-
case 1:
|
|
730
|
-
|
|
731
|
-
|
|
778
|
+
case 1: {
|
|
779
|
+
message.value = reader.uint64();
|
|
780
|
+
break;
|
|
781
|
+
}
|
|
732
782
|
default:
|
|
733
783
|
reader.skipType(tag & 7);
|
|
734
784
|
break;
|
|
@@ -832,6 +882,21 @@ $root.common = (function() {
|
|
|
832
882
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
833
883
|
};
|
|
834
884
|
|
|
885
|
+
/**
|
|
886
|
+
* Gets the default type url for UInt64Value
|
|
887
|
+
* @function getTypeUrl
|
|
888
|
+
* @memberof common.UInt64Value
|
|
889
|
+
* @static
|
|
890
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
891
|
+
* @returns {string} The default type url
|
|
892
|
+
*/
|
|
893
|
+
UInt64Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
894
|
+
if (typeUrlPrefix === undefined) {
|
|
895
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
896
|
+
}
|
|
897
|
+
return typeUrlPrefix + "/common.UInt64Value";
|
|
898
|
+
};
|
|
899
|
+
|
|
835
900
|
return UInt64Value;
|
|
836
901
|
})();
|
|
837
902
|
|
|
@@ -927,9 +992,10 @@ $root.common = (function() {
|
|
|
927
992
|
while (reader.pos < end) {
|
|
928
993
|
var tag = reader.uint32();
|
|
929
994
|
switch (tag >>> 3) {
|
|
930
|
-
case 1:
|
|
931
|
-
|
|
932
|
-
|
|
995
|
+
case 1: {
|
|
996
|
+
message.value = reader.uint32();
|
|
997
|
+
break;
|
|
998
|
+
}
|
|
933
999
|
default:
|
|
934
1000
|
reader.skipType(tag & 7);
|
|
935
1001
|
break;
|
|
@@ -1019,6 +1085,21 @@ $root.common = (function() {
|
|
|
1019
1085
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1020
1086
|
};
|
|
1021
1087
|
|
|
1088
|
+
/**
|
|
1089
|
+
* Gets the default type url for UInt32Value
|
|
1090
|
+
* @function getTypeUrl
|
|
1091
|
+
* @memberof common.UInt32Value
|
|
1092
|
+
* @static
|
|
1093
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1094
|
+
* @returns {string} The default type url
|
|
1095
|
+
*/
|
|
1096
|
+
UInt32Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1097
|
+
if (typeUrlPrefix === undefined) {
|
|
1098
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1099
|
+
}
|
|
1100
|
+
return typeUrlPrefix + "/common.UInt32Value";
|
|
1101
|
+
};
|
|
1102
|
+
|
|
1022
1103
|
return UInt32Value;
|
|
1023
1104
|
})();
|
|
1024
1105
|
|
|
@@ -1114,9 +1195,10 @@ $root.common = (function() {
|
|
|
1114
1195
|
while (reader.pos < end) {
|
|
1115
1196
|
var tag = reader.uint32();
|
|
1116
1197
|
switch (tag >>> 3) {
|
|
1117
|
-
case 1:
|
|
1118
|
-
|
|
1119
|
-
|
|
1198
|
+
case 1: {
|
|
1199
|
+
message.value = reader.string();
|
|
1200
|
+
break;
|
|
1201
|
+
}
|
|
1120
1202
|
default:
|
|
1121
1203
|
reader.skipType(tag & 7);
|
|
1122
1204
|
break;
|
|
@@ -1206,6 +1288,21 @@ $root.common = (function() {
|
|
|
1206
1288
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1207
1289
|
};
|
|
1208
1290
|
|
|
1291
|
+
/**
|
|
1292
|
+
* Gets the default type url for StringValue
|
|
1293
|
+
* @function getTypeUrl
|
|
1294
|
+
* @memberof common.StringValue
|
|
1295
|
+
* @static
|
|
1296
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1297
|
+
* @returns {string} The default type url
|
|
1298
|
+
*/
|
|
1299
|
+
StringValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1300
|
+
if (typeUrlPrefix === undefined) {
|
|
1301
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1302
|
+
}
|
|
1303
|
+
return typeUrlPrefix + "/common.StringValue";
|
|
1304
|
+
};
|
|
1305
|
+
|
|
1209
1306
|
return StringValue;
|
|
1210
1307
|
})();
|
|
1211
1308
|
|
|
@@ -1301,9 +1398,10 @@ $root.common = (function() {
|
|
|
1301
1398
|
while (reader.pos < end) {
|
|
1302
1399
|
var tag = reader.uint32();
|
|
1303
1400
|
switch (tag >>> 3) {
|
|
1304
|
-
case 1:
|
|
1305
|
-
|
|
1306
|
-
|
|
1401
|
+
case 1: {
|
|
1402
|
+
message.value = reader.bytes();
|
|
1403
|
+
break;
|
|
1404
|
+
}
|
|
1307
1405
|
default:
|
|
1308
1406
|
reader.skipType(tag & 7);
|
|
1309
1407
|
break;
|
|
@@ -1360,7 +1458,7 @@ $root.common = (function() {
|
|
|
1360
1458
|
if (object.value != null)
|
|
1361
1459
|
if (typeof object.value === "string")
|
|
1362
1460
|
$util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0);
|
|
1363
|
-
else if (object.value.length)
|
|
1461
|
+
else if (object.value.length >= 0)
|
|
1364
1462
|
message.value = object.value;
|
|
1365
1463
|
return message;
|
|
1366
1464
|
};
|
|
@@ -1402,6 +1500,21 @@ $root.common = (function() {
|
|
|
1402
1500
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1403
1501
|
};
|
|
1404
1502
|
|
|
1503
|
+
/**
|
|
1504
|
+
* Gets the default type url for BytesValue
|
|
1505
|
+
* @function getTypeUrl
|
|
1506
|
+
* @memberof common.BytesValue
|
|
1507
|
+
* @static
|
|
1508
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1509
|
+
* @returns {string} The default type url
|
|
1510
|
+
*/
|
|
1511
|
+
BytesValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1512
|
+
if (typeUrlPrefix === undefined) {
|
|
1513
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1514
|
+
}
|
|
1515
|
+
return typeUrlPrefix + "/common.BytesValue";
|
|
1516
|
+
};
|
|
1517
|
+
|
|
1405
1518
|
return BytesValue;
|
|
1406
1519
|
})();
|
|
1407
1520
|
|
|
@@ -1508,12 +1621,14 @@ $root.common = (function() {
|
|
|
1508
1621
|
while (reader.pos < end) {
|
|
1509
1622
|
var tag = reader.uint32();
|
|
1510
1623
|
switch (tag >>> 3) {
|
|
1511
|
-
case 1:
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1624
|
+
case 1: {
|
|
1625
|
+
message.runtimeExcJson = reader.string();
|
|
1626
|
+
break;
|
|
1627
|
+
}
|
|
1628
|
+
case 2: {
|
|
1629
|
+
message.err = reader.string();
|
|
1630
|
+
break;
|
|
1631
|
+
}
|
|
1517
1632
|
default:
|
|
1518
1633
|
reader.skipType(tag & 7);
|
|
1519
1634
|
break;
|
|
@@ -1612,6 +1727,21 @@ $root.common = (function() {
|
|
|
1612
1727
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1613
1728
|
};
|
|
1614
1729
|
|
|
1730
|
+
/**
|
|
1731
|
+
* Gets the default type url for ErrorValue
|
|
1732
|
+
* @function getTypeUrl
|
|
1733
|
+
* @memberof common.ErrorValue
|
|
1734
|
+
* @static
|
|
1735
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1736
|
+
* @returns {string} The default type url
|
|
1737
|
+
*/
|
|
1738
|
+
ErrorValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1739
|
+
if (typeUrlPrefix === undefined) {
|
|
1740
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1741
|
+
}
|
|
1742
|
+
return typeUrlPrefix + "/common.ErrorValue";
|
|
1743
|
+
};
|
|
1744
|
+
|
|
1615
1745
|
return ErrorValue;
|
|
1616
1746
|
})();
|
|
1617
1747
|
|
|
@@ -1729,15 +1859,18 @@ $root.common = (function() {
|
|
|
1729
1859
|
while (reader.pos < end) {
|
|
1730
1860
|
var tag = reader.uint32();
|
|
1731
1861
|
switch (tag >>> 3) {
|
|
1732
|
-
case 1:
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1862
|
+
case 1: {
|
|
1863
|
+
message.type = reader.string();
|
|
1864
|
+
break;
|
|
1865
|
+
}
|
|
1866
|
+
case 2: {
|
|
1867
|
+
message.json = $root.common.StringValue.decode(reader, reader.uint32());
|
|
1868
|
+
break;
|
|
1869
|
+
}
|
|
1870
|
+
case 3: {
|
|
1871
|
+
message.bytes = $root.common.BytesValue.decode(reader, reader.uint32());
|
|
1872
|
+
break;
|
|
1873
|
+
}
|
|
1741
1874
|
default:
|
|
1742
1875
|
reader.skipType(tag & 7);
|
|
1743
1876
|
break;
|
|
@@ -1854,6 +1987,21 @@ $root.common = (function() {
|
|
|
1854
1987
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1855
1988
|
};
|
|
1856
1989
|
|
|
1990
|
+
/**
|
|
1991
|
+
* Gets the default type url for AnyValue
|
|
1992
|
+
* @function getTypeUrl
|
|
1993
|
+
* @memberof common.AnyValue
|
|
1994
|
+
* @static
|
|
1995
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1996
|
+
* @returns {string} The default type url
|
|
1997
|
+
*/
|
|
1998
|
+
AnyValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1999
|
+
if (typeUrlPrefix === undefined) {
|
|
2000
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2001
|
+
}
|
|
2002
|
+
return typeUrlPrefix + "/common.AnyValue";
|
|
2003
|
+
};
|
|
2004
|
+
|
|
1857
2005
|
return AnyValue;
|
|
1858
2006
|
})();
|
|
1859
2007
|
|