core-3nweb-client-lib 0.30.2 → 0.30.4
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/asmail.d.ts +9 -6
- package/build/core/app-files.d.ts +4 -4
- package/build/core/app-files.js +2 -2
- package/build/core/asmail/asmail-cap-ipc.d.ts +1 -1
- package/build/core/asmail/asmail-cap-ipc.js +2 -3
- package/build/core/asmail/config/common.d.ts +2 -2
- package/build/core/asmail/config/index.d.ts +1 -1
- package/build/core/asmail/config/invitations-anon.d.ts +1 -1
- package/build/core/asmail/config/invitations-anon.js +1 -2
- package/build/core/asmail/config/published-intro-key.d.ts +2 -2
- package/build/core/asmail/config/published-intro-key.js +1 -2
- package/build/core/asmail/delivery/common.d.ts +6 -6
- package/build/core/asmail/delivery/common.js +3 -3
- package/build/core/asmail/delivery/index.d.ts +4 -4
- package/build/core/asmail/delivery/msg.d.ts +4 -4
- package/build/core/asmail/delivery/msg.js +3 -3
- package/build/core/asmail/inbox/attachments/fs.d.ts +1 -1
- package/build/core/asmail/inbox/attachments/fs.js +1 -2
- package/build/core/asmail/inbox/inbox-events.d.ts +4 -3
- package/build/core/asmail/inbox/inbox-events.js +1 -1
- package/build/core/asmail/inbox/index.d.ts +2 -2
- package/build/core/asmail/inbox/index.js +7 -4
- package/build/core/asmail/inbox/msg-indexing/index.d.ts +2 -2
- package/build/core/asmail/inbox/msg-indexing/logs-n-entries.d.ts +3 -3
- package/build/core/asmail/inbox/msg-indexing/logs-n-entries.js +2 -2
- package/build/core/asmail/inbox/msg-indexing/sql-indexing.d.ts +1 -1
- package/build/core/asmail/inbox/msg-indexing/sql-indexing.js +1 -2
- package/build/core/asmail/inbox/msg-on-disk.d.ts +2 -2
- package/build/core/asmail/inbox/msg-on-disk.js +3 -3
- package/build/core/asmail/index.d.ts +3 -3
- package/build/core/asmail/key-verification.js +2 -3
- package/build/core/asmail/keyring/common.d.ts +1 -1
- package/build/core/asmail/keyring/common.js +7 -7
- package/build/core/asmail/keyring/correspondent-keys.d.ts +1 -1
- package/build/core/asmail/keyring/correspondent-keys.js +5 -5
- package/build/core/asmail/keyring/index.d.ts +3 -3
- package/build/core/asmail/keyring/index.js +2 -2
- package/build/core/asmail/keyring/keyring-storage.d.ts +1 -1
- package/build/core/asmail/keyring/keyring-storage.js +1 -2
- package/build/core/asmail/msg/attachments-container.d.ts +3 -3
- package/build/core/asmail/msg/attachments-container.js +7 -8
- package/build/core/asmail/msg/opener.js +2 -2
- package/build/core/asmail/msg/packer.d.ts +2 -2
- package/build/core/asmail/sending-params/index.d.ts +3 -3
- package/build/core/asmail/sending-params/own-params.d.ts +3 -3
- package/build/core/asmail/sending-params/params-from-others.d.ts +3 -3
- package/build/core/id-manager/index.d.ts +4 -4
- package/build/core/id-manager/key-storage.d.ts +1 -1
- package/build/core/id-manager/mailerid-cap-ipc.d.ts +1 -1
- package/build/core/id-manager/mailerid-cap-ipc.js +2 -3
- package/build/core/index.d.ts +3 -3
- package/build/core/startup/sign-in.d.ts +6 -6
- package/build/core/startup/sign-in.js +2 -2
- package/build/core/startup/sign-up.d.ts +1 -1
- package/build/core/startup/sign-up.js +6 -6
- package/build/core/startup/startup-cap.d.ts +2 -2
- package/build/core/startup/startup-cap.js +4 -5
- package/build/core/storage/common/obj-info-file.js +12 -13
- package/build/core/storage/common/utils.js +2 -3
- package/build/core/storage/index.d.ts +5 -5
- package/build/core/storage/index.js +2 -2
- package/build/core/storage/local/storage.d.ts +3 -3
- package/build/core/storage/storage-cap-ipc.d.ts +1 -1
- package/build/core/storage/storage-cap-ipc.js +3 -4
- package/build/core/storage/synced/obj-files.d.ts +1 -1
- package/build/core/storage/synced/obj-status.d.ts +2 -2
- package/build/core/storage/synced/obj-status.js +2 -2
- package/build/core/storage/synced/storage.d.ts +4 -4
- package/build/core/storage/synced/upload-header-file.js +3 -3
- package/build/core/storage/synced/upsyncer.d.ts +1 -1
- package/build/core/storage/system-folders/apps-data.d.ts +1 -1
- package/build/core/storage/system-folders/index.d.ts +2 -2
- package/build/core/storage/system-folders/index.js +4 -4
- package/build/core-ipc/bytes.d.ts +2 -2
- package/build/core-ipc/bytes.js +4 -5
- package/build/core-ipc/common-caps.d.ts +1 -1
- package/build/core-ipc/common-caps.js +3 -4
- package/build/core-ipc/file.d.ts +13 -14
- package/build/core-ipc/file.js +31 -31
- package/build/core-ipc/fs.d.ts +3 -3
- package/build/core-ipc/fs.js +6 -6
- package/build/core-ipc/generic.d.ts +4 -4
- package/build/core-ipc/generic.js +3 -4
- package/build/core-ipc/log-cap.d.ts +1 -1
- package/build/core-ipc/log-cap.js +2 -3
- package/build/core-ipc/startup-caps.d.ts +1 -1
- package/build/core-ipc/startup-caps.js +2 -3
- package/build/ipc-via-protobuf/connector.d.ts +6 -7
- package/build/ipc-via-protobuf/connector.js +3 -3
- package/build/ipc-via-protobuf/protobuf-msg.d.ts +1 -2
- package/build/ipc-via-protobuf/protobuf-msg.js +20 -20
- package/build/lib-client/3nstorage/exceptions.d.ts +1 -1
- package/build/lib-client/3nstorage/exceptions.js +9 -10
- package/build/lib-client/3nstorage/service.d.ts +2 -2
- package/build/lib-client/3nstorage/util/file-based-json.d.ts +3 -3
- package/build/lib-client/3nstorage/util/for-arrays.js +1 -2
- package/build/lib-client/3nstorage/xsp-fs/attrs.d.ts +1 -2
- package/build/lib-client/3nstorage/xsp-fs/common.d.ts +12 -12
- package/build/lib-client/3nstorage/xsp-fs/common.js +5 -5
- package/build/lib-client/3nstorage/xsp-fs/file-node.d.ts +4 -4
- package/build/lib-client/3nstorage/xsp-fs/file.d.ts +15 -15
- package/build/lib-client/3nstorage/xsp-fs/folder-node-serialization.js +2 -3
- package/build/lib-client/3nstorage/xsp-fs/folder-node.d.ts +7 -7
- package/build/lib-client/3nstorage/xsp-fs/fs.d.ts +27 -27
- package/build/lib-client/3nstorage/xsp-fs/link-node.d.ts +2 -2
- package/build/lib-client/3nstorage/xsp-fs/node-in-fs.d.ts +7 -7
- package/build/lib-client/3nstorage/xsp-fs/node-in-fs.js +11 -11
- package/build/lib-client/3nstorage/xsp-fs/node-persistence.d.ts +2 -2
- package/build/lib-client/3nstorage/xsp-fs/xsp-payload-v1.js +1 -2
- package/build/lib-client/3nstorage/xsp-fs/xsp-payload-v2.js +3 -4
- package/build/lib-client/3nweb-signup.js +4 -5
- package/build/lib-client/asmail/recipient.d.ts +1 -1
- package/build/lib-client/asmail/recipient.js +4 -4
- package/build/lib-client/asmail/sender.d.ts +3 -3
- package/build/lib-client/asmail/sender.js +9 -9
- package/build/lib-client/cryptor/cryptor-in-worker.d.ts +2 -2
- package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
- package/build/lib-client/cryptor/cryptor.d.ts +2 -2
- package/build/lib-client/cryptor/cryptor.js +3 -3
- package/build/lib-client/cryptor/cryptor.wasm +0 -0
- package/build/lib-client/cryptor/in-proc-js.js +1 -2
- package/build/lib-client/cryptor/in-proc-wasm.js +1 -2
- package/build/lib-client/cryptor/serialization-for-wasm.d.ts +1 -2
- package/build/lib-client/cryptor/serialization-for-wasm.js +6 -7
- package/build/lib-client/cryptor/wasm-mp1-modules.js +1 -2
- package/build/lib-client/cryptor-work-labels.js +1 -1
- package/build/lib-client/fs-utils/files-select.d.ts +3 -3
- package/build/lib-client/fs-utils/files-select.js +1 -2
- package/build/lib-client/fs-utils/files.d.ts +7 -7
- package/build/lib-client/fs-utils/files.js +7 -8
- package/build/lib-client/fs-utils/fs-collection.d.ts +1 -1
- package/build/lib-client/fs-utils/fs-collection.js +2 -3
- package/build/lib-client/fs-utils/fs-sync-utils.d.ts +5 -5
- package/build/lib-client/fs-utils/fs-sync-utils.js +4 -5
- package/build/lib-client/fs-utils/fs-view.d.ts +4 -4
- package/build/lib-client/fs-utils/fs-view.js +1 -2
- package/build/lib-client/key-derivation.js +3 -4
- package/build/lib-client/local-files/dev-file-sink.d.ts +2 -3
- package/build/lib-client/local-files/dev-file-src.d.ts +0 -1
- package/build/lib-client/local-files/device-fs.d.ts +18 -18
- package/build/lib-client/logging/log-to-file.d.ts +5 -5
- package/build/lib-client/logging/log-to-file.js +2 -2
- package/build/lib-client/mailer-id/login.js +2 -3
- package/build/lib-client/objs-on-disk/file-writing-proc.d.ts +1 -1
- package/build/lib-client/objs-on-disk/obj-folders.d.ts +1 -1
- package/build/lib-client/objs-on-disk/obj-folders.js +9 -5
- package/build/lib-client/objs-on-disk/obj-on-disk.d.ts +1 -1
- package/build/lib-client/protobuf-type.d.ts +0 -1
- package/build/lib-client/request-utils.d.ts +2 -4
- package/build/lib-client/request-utils.js +6 -6
- package/build/lib-client/service-locator.d.ts +3 -4
- package/build/lib-client/service-locator.js +5 -6
- package/build/lib-client/user-with-mid-session.d.ts +1 -1
- package/build/lib-client/user-with-mid-session.js +17 -17
- package/build/lib-client/user-with-pkl-session.js +16 -16
- package/build/lib-client/ws-utils.js +1 -2
- package/build/lib-common/assert.js +1 -2
- package/build/lib-common/async-cryptor-wrap.js +4 -5
- package/build/lib-common/async-fs-node.d.ts +0 -3
- package/build/lib-common/async-fs-node.js +35 -35
- package/build/lib-common/async-iter.js +2 -3
- package/build/lib-common/big-endian.d.ts +0 -1
- package/build/lib-common/big-endian.js +10 -11
- package/build/lib-common/binding.js +1 -2
- package/build/lib-common/buffer-utils.d.ts +0 -1
- package/build/lib-common/buffer-utils.js +9 -9
- package/build/lib-common/byte-streaming/bytes-fifo-buffer.js +5 -5
- package/build/lib-common/byte-streaming/pipe.d.ts +2 -2
- package/build/lib-common/byte-streaming/pipe.js +1 -2
- package/build/lib-common/byte-streaming/wrapping.d.ts +2 -2
- package/build/lib-common/byte-streaming/wrapping.js +3 -4
- package/build/lib-common/bytes-equal.js +1 -2
- package/build/lib-common/canonical-address.js +3 -4
- package/build/lib-common/exceptions/error.js +3 -4
- package/build/lib-common/exceptions/file.d.ts +2 -2
- package/build/lib-common/exceptions/file.js +7 -7
- package/build/lib-common/exceptions/http.js +2 -3
- package/build/lib-common/exceptions/runtime.js +1 -2
- package/build/lib-common/ipc/generic-ipc.d.ts +3 -3
- package/build/lib-common/ipc/generic-ipc.js +11 -11
- package/build/lib-common/ipc/ws-ipc.js +2 -2
- package/build/lib-common/json-utils.js +4 -5
- package/build/lib-common/jwkeys.d.ts +1 -1
- package/build/lib-common/jwkeys.js +13 -13
- package/build/lib-common/mid-sigs-NaCl-Ed.d.ts +3 -3
- package/build/lib-common/mid-sigs-NaCl-Ed.js +5 -5
- package/build/lib-common/obj-streaming/sink-utils.d.ts +2 -2
- package/build/lib-common/obj-streaming/sink-utils.js +2 -3
- package/build/lib-common/obj-streaming/wrapping.js +1 -2
- package/build/lib-common/objs-on-disk/file-layout.d.ts +4 -5
- package/build/lib-common/objs-on-disk/obj-file.d.ts +0 -1
- package/build/lib-common/objs-on-disk/utils.d.ts +3 -5
- package/build/lib-common/objs-on-disk/utils.js +5 -6
- package/build/lib-common/objs-on-disk/v1-obj-file-format.d.ts +0 -1
- package/build/lib-common/objs-on-disk/v1-obj-file-format.js +1 -1
- package/build/lib-common/processes/deferred.js +1 -2
- package/build/lib-common/processes/sleep.js +1 -2
- package/build/lib-common/processes/synced.d.ts +1 -1
- package/build/lib-common/processes/synced.js +2 -2
- package/build/lib-common/processes/timeout.js +1 -2
- package/build/lib-common/random-node.js +10 -11
- package/build/lib-common/service-api/3nstorage/owner.js +19 -19
- package/build/lib-common/service-api/asmail/config.js +3 -3
- package/build/lib-common/service-api/asmail/delivery.js +8 -8
- package/build/lib-common/service-api/asmail/retrieval.js +11 -11
- package/build/lib-common/service-api/mailer-id/login.js +2 -2
- package/build/lib-common/service-api/mailer-id/provisioning.js +2 -2
- package/build/lib-common/service-api/pub-key-login.js +2 -2
- package/build/lib-common/service-api/web-socket-base.d.ts +1 -1
- package/build/lib-common/service-api/web-socket-base.js +3 -3
- package/build/lib-common/session-encryptor.js +1 -2
- package/build/lib-common/timed-cache.js +1 -2
- package/build/lib-common/user-admin-api/signup.js +4 -4
- package/build/lib-common/utils-for-observables.js +5 -5
- package/build/lib-sqlite-on-3nstorage/deferred.js +1 -2
- package/build/lib-sqlite-on-3nstorage/index.d.ts +5 -5
- package/build/lib-sqlite-on-3nstorage/index.js +2 -2
- package/build/lib-sqlite-on-3nstorage/synced.d.ts +1 -1
- package/build/lib-sqlite-on-3nstorage/synced.js +2 -2
- package/build/raw-3nweb-clients.d.ts +7 -7
- package/build/raw-3nweb-clients.js +2 -2
- package/package.json +2 -2
|
@@ -45,13 +45,13 @@ var preFlight;
|
|
|
45
45
|
redirect: 373
|
|
46
46
|
};
|
|
47
47
|
Object.freeze(preFlight.SC);
|
|
48
|
-
})(preFlight
|
|
48
|
+
})(preFlight || (exports.preFlight = preFlight = {}));
|
|
49
49
|
Object.freeze(preFlight);
|
|
50
50
|
var sessionStart;
|
|
51
51
|
(function (sessionStart) {
|
|
52
52
|
sessionStart.URL_END = 'start-session';
|
|
53
53
|
sessionStart.SC = preFlight.SC;
|
|
54
|
-
})(sessionStart
|
|
54
|
+
})(sessionStart || (exports.sessionStart = sessionStart = {}));
|
|
55
55
|
Object.freeze(sessionStart);
|
|
56
56
|
var sessionRestart;
|
|
57
57
|
(function (sessionRestart) {
|
|
@@ -63,7 +63,7 @@ var sessionRestart;
|
|
|
63
63
|
redirect: 373
|
|
64
64
|
};
|
|
65
65
|
Object.freeze(sessionRestart.SC);
|
|
66
|
-
})(sessionRestart
|
|
66
|
+
})(sessionRestart || (exports.sessionRestart = sessionRestart = {}));
|
|
67
67
|
Object.freeze(sessionRestart);
|
|
68
68
|
var authSender;
|
|
69
69
|
(function (authSender) {
|
|
@@ -73,7 +73,7 @@ var authSender;
|
|
|
73
73
|
authFailed: 403
|
|
74
74
|
};
|
|
75
75
|
Object.freeze(authSender.SC);
|
|
76
|
-
})(authSender
|
|
76
|
+
})(authSender || (exports.authSender = authSender = {}));
|
|
77
77
|
Object.freeze(authSender);
|
|
78
78
|
var initPubKey;
|
|
79
79
|
(function (initPubKey) {
|
|
@@ -83,7 +83,7 @@ var initPubKey;
|
|
|
83
83
|
pkeyNotRegistered: 474
|
|
84
84
|
};
|
|
85
85
|
Object.freeze(initPubKey.SC);
|
|
86
|
-
})(initPubKey
|
|
86
|
+
})(initPubKey || (exports.initPubKey = initPubKey = {}));
|
|
87
87
|
Object.freeze(initPubKey);
|
|
88
88
|
var msgMeta;
|
|
89
89
|
(function (msgMeta) {
|
|
@@ -91,7 +91,7 @@ var msgMeta;
|
|
|
91
91
|
msgMeta.SC = {
|
|
92
92
|
ok: 201
|
|
93
93
|
};
|
|
94
|
-
})(msgMeta
|
|
94
|
+
})(msgMeta || (exports.msgMeta = msgMeta = {}));
|
|
95
95
|
Object.freeze(msgMeta);
|
|
96
96
|
var msgObj;
|
|
97
97
|
(function (msgObj) {
|
|
@@ -110,7 +110,7 @@ var msgObj;
|
|
|
110
110
|
unknownObj: 474
|
|
111
111
|
};
|
|
112
112
|
Object.freeze(msgObj.SC);
|
|
113
|
-
})(msgObj
|
|
113
|
+
})(msgObj || (exports.msgObj = msgObj = {}));
|
|
114
114
|
Object.freeze(msgObj);
|
|
115
115
|
var completion;
|
|
116
116
|
(function (completion) {
|
|
@@ -119,6 +119,6 @@ var completion;
|
|
|
119
119
|
ok: 200,
|
|
120
120
|
};
|
|
121
121
|
Object.freeze(completion.SC);
|
|
122
|
-
})(completion
|
|
122
|
+
})(completion || (exports.completion = completion = {}));
|
|
123
123
|
Object.freeze(completion);
|
|
124
124
|
Object.freeze(exports);
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
You should have received a copy of the GNU General Public License along with
|
|
16
16
|
this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.msgMainObjRecieved = exports.msgRecievedCompletely = exports.wsEventChannel = exports.msgObj = exports.
|
|
18
|
+
exports.msgMainObjRecieved = exports.msgRecievedCompletely = exports.wsEventChannel = exports.msgObj = exports.msgMetadata = exports.rmMsg = exports.listMsgs = exports.closeSession = exports.midLogin = exports.ERR_SC = exports.HTTP_HEADER = exports.BIN_TYPE = void 0;
|
|
19
|
+
exports.sanitizedMeta = sanitizedMeta;
|
|
19
20
|
/**
|
|
20
21
|
* This defines interfaces for mail retrieval requests.
|
|
21
22
|
*/
|
|
@@ -40,12 +41,12 @@ var midLogin;
|
|
|
40
41
|
midLogin.MID_URL_PART = 'login/mailerid/';
|
|
41
42
|
midLogin.START_URL_END = midLogin.MID_URL_PART + midApi.startSession.URL_END;
|
|
42
43
|
midLogin.AUTH_URL_END = midLogin.MID_URL_PART + midApi.authSession.URL_END;
|
|
43
|
-
})(midLogin
|
|
44
|
+
})(midLogin || (exports.midLogin = midLogin = {}));
|
|
44
45
|
Object.freeze(midLogin);
|
|
45
46
|
var closeSession;
|
|
46
47
|
(function (closeSession) {
|
|
47
48
|
closeSession.URL_END = 'close-session';
|
|
48
|
-
})(closeSession
|
|
49
|
+
})(closeSession || (exports.closeSession = closeSession = {}));
|
|
49
50
|
Object.freeze(closeSession);
|
|
50
51
|
var listMsgs;
|
|
51
52
|
(function (listMsgs) {
|
|
@@ -54,7 +55,7 @@ var listMsgs;
|
|
|
54
55
|
ok: 200,
|
|
55
56
|
};
|
|
56
57
|
Object.freeze(listMsgs.SC);
|
|
57
|
-
})(listMsgs
|
|
58
|
+
})(listMsgs || (exports.listMsgs = listMsgs = {}));
|
|
58
59
|
Object.freeze(listMsgs);
|
|
59
60
|
var rmMsg;
|
|
60
61
|
(function (rmMsg) {
|
|
@@ -68,7 +69,7 @@ var rmMsg;
|
|
|
68
69
|
unknownMsg: 474
|
|
69
70
|
};
|
|
70
71
|
Object.freeze(rmMsg.SC);
|
|
71
|
-
})(rmMsg
|
|
72
|
+
})(rmMsg || (exports.rmMsg = rmMsg = {}));
|
|
72
73
|
Object.freeze(rmMsg);
|
|
73
74
|
var msgMetadata;
|
|
74
75
|
(function (msgMetadata) {
|
|
@@ -82,7 +83,7 @@ var msgMetadata;
|
|
|
82
83
|
unknownMsg: 474
|
|
83
84
|
};
|
|
84
85
|
Object.freeze(msgMetadata.SC);
|
|
85
|
-
})(msgMetadata
|
|
86
|
+
})(msgMetadata || (exports.msgMetadata = msgMetadata = {}));
|
|
86
87
|
Object.freeze(msgMetadata);
|
|
87
88
|
/**
|
|
88
89
|
* This function returns either a checked version of given meta object, if it
|
|
@@ -109,7 +110,6 @@ function sanitizedMeta(meta) {
|
|
|
109
110
|
// TODO add more checks and return new object instead of a given one
|
|
110
111
|
return meta;
|
|
111
112
|
}
|
|
112
|
-
exports.sanitizedMeta = sanitizedMeta;
|
|
113
113
|
var msgObj;
|
|
114
114
|
(function (msgObj) {
|
|
115
115
|
msgObj.EXPRESS_URL_END = 'msg/:msgId/obj/:objId';
|
|
@@ -123,7 +123,7 @@ var msgObj;
|
|
|
123
123
|
unknownMsgOrObj: 474
|
|
124
124
|
};
|
|
125
125
|
Object.freeze(msgObj.SC);
|
|
126
|
-
})(msgObj
|
|
126
|
+
})(msgObj || (exports.msgObj = msgObj = {}));
|
|
127
127
|
Object.freeze(msgObj);
|
|
128
128
|
var wsEventChannel;
|
|
129
129
|
(function (wsEventChannel) {
|
|
@@ -132,17 +132,17 @@ var wsEventChannel;
|
|
|
132
132
|
ok: 200,
|
|
133
133
|
};
|
|
134
134
|
Object.freeze(wsEventChannel.SC);
|
|
135
|
-
})(wsEventChannel
|
|
135
|
+
})(wsEventChannel || (exports.wsEventChannel = wsEventChannel = {}));
|
|
136
136
|
Object.freeze(wsEventChannel);
|
|
137
137
|
var msgRecievedCompletely;
|
|
138
138
|
(function (msgRecievedCompletely) {
|
|
139
139
|
msgRecievedCompletely.EVENT_NAME = 'msg-received-completely';
|
|
140
|
-
})(msgRecievedCompletely
|
|
140
|
+
})(msgRecievedCompletely || (exports.msgRecievedCompletely = msgRecievedCompletely = {}));
|
|
141
141
|
Object.freeze(msgRecievedCompletely);
|
|
142
142
|
// XXX this event should be triggered by big messages with more than one obj
|
|
143
143
|
var msgMainObjRecieved;
|
|
144
144
|
(function (msgMainObjRecieved) {
|
|
145
145
|
msgMainObjRecieved.EVENT_NAME = 'msg-main-obj-received';
|
|
146
|
-
})(msgMainObjRecieved
|
|
146
|
+
})(msgMainObjRecieved || (exports.msgMainObjRecieved = msgMainObjRecieved = {}));
|
|
147
147
|
Object.freeze(msgMainObjRecieved);
|
|
148
148
|
Object.freeze(exports);
|
|
@@ -32,7 +32,7 @@ var startSession;
|
|
|
32
32
|
ok: 200
|
|
33
33
|
};
|
|
34
34
|
Object.freeze(startSession.SC);
|
|
35
|
-
})(startSession
|
|
35
|
+
})(startSession || (exports.startSession = startSession = {}));
|
|
36
36
|
Object.freeze(startSession);
|
|
37
37
|
var authSession;
|
|
38
38
|
(function (authSession) {
|
|
@@ -43,6 +43,6 @@ var authSession;
|
|
|
43
43
|
ok: 200
|
|
44
44
|
};
|
|
45
45
|
Object.freeze(authSession.SC);
|
|
46
|
-
})(authSession
|
|
46
|
+
})(authSession || (exports.authSession = authSession = {}));
|
|
47
47
|
Object.freeze(authSession);
|
|
48
48
|
Object.freeze(exports);
|
|
@@ -22,7 +22,7 @@ var pkl;
|
|
|
22
22
|
(function (pkl) {
|
|
23
23
|
pkl.START_URL_END = pklApi.start.URL_END;
|
|
24
24
|
pkl.COMPL_URL_END = pklApi.complete.URL_END;
|
|
25
|
-
})(pkl
|
|
25
|
+
})(pkl || (exports.pkl = pkl = {}));
|
|
26
26
|
var certify;
|
|
27
27
|
(function (certify) {
|
|
28
28
|
certify.URL_END = 'certify';
|
|
@@ -33,5 +33,5 @@ var certify;
|
|
|
33
33
|
ok: 200
|
|
34
34
|
};
|
|
35
35
|
Object.freeze(certify.SC);
|
|
36
|
-
})(certify
|
|
36
|
+
})(certify || (exports.certify = certify = {}));
|
|
37
37
|
Object.freeze(exports);
|
|
@@ -36,7 +36,7 @@ var start;
|
|
|
36
36
|
ok: 200
|
|
37
37
|
};
|
|
38
38
|
Object.freeze(start.SC);
|
|
39
|
-
})(start
|
|
39
|
+
})(start || (exports.start = start = {}));
|
|
40
40
|
Object.freeze(start);
|
|
41
41
|
var complete;
|
|
42
42
|
(function (complete) {
|
|
@@ -47,6 +47,6 @@ var complete;
|
|
|
47
47
|
ok: 200
|
|
48
48
|
};
|
|
49
49
|
Object.freeze(complete.SC);
|
|
50
|
-
})(complete
|
|
50
|
+
})(complete || (exports.complete = complete = {}));
|
|
51
51
|
Object.freeze(complete);
|
|
52
52
|
Object.freeze(exports);
|
|
@@ -16,7 +16,7 @@ export interface EventEnvelope<T> {
|
|
|
16
16
|
eventChannel: string;
|
|
17
17
|
eventPayload: T;
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export type Envelope = RequestEnvelope<any> | ReplyEnvelope<any> | EventEnvelope<any>;
|
|
20
20
|
export declare namespace events {
|
|
21
21
|
const MISSED_EVENTS_CHANNEL = "missed-events";
|
|
22
22
|
const SUBSCRIBE_REQ_NAME = "subscribe";
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
You should have received a copy of the GNU General Public License along with
|
|
16
16
|
this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.
|
|
18
|
+
exports.events = void 0;
|
|
19
|
+
exports.errorReplyTo = errorReplyTo;
|
|
19
20
|
var events;
|
|
20
21
|
(function (events) {
|
|
21
22
|
events.MISSED_EVENTS_CHANNEL = 'missed-events';
|
|
@@ -45,7 +46,7 @@ var events;
|
|
|
45
46
|
unknownChannel: 'unknown-channel'
|
|
46
47
|
};
|
|
47
48
|
Object.freeze(events.SUBSCRIBE_SC);
|
|
48
|
-
})(events
|
|
49
|
+
})(events || (exports.events = events = {}));
|
|
49
50
|
Object.freeze(events);
|
|
50
51
|
function errorReplyTo(req, err) {
|
|
51
52
|
const reply = {
|
|
@@ -55,5 +56,4 @@ function errorReplyTo(req, err) {
|
|
|
55
56
|
};
|
|
56
57
|
return JSON.stringify(reply);
|
|
57
58
|
}
|
|
58
|
-
exports.errorReplyTo = errorReplyTo;
|
|
59
59
|
Object.freeze(exports);
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
You should have received a copy of the GNU General Public License along with
|
|
16
16
|
this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.makeSessionEncryptor =
|
|
18
|
+
exports.makeSessionEncryptor = makeSessionEncryptor;
|
|
19
19
|
/**
|
|
20
20
|
* This creates encryptor, which uses session key, established with PKL.
|
|
21
21
|
*/
|
|
@@ -45,5 +45,4 @@ function makeSessionEncryptor(key, nextNonce) {
|
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
exports.makeSessionEncryptor = makeSessionEncryptor;
|
|
49
48
|
Object.freeze(exports);
|
|
@@ -16,11 +16,10 @@
|
|
|
16
16
|
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.makeTimedCache =
|
|
19
|
+
exports.makeTimedCache = makeTimedCache;
|
|
20
20
|
function makeTimedCache(millis) {
|
|
21
21
|
return new CacheConstructor(millis);
|
|
22
22
|
}
|
|
23
|
-
exports.makeTimedCache = makeTimedCache;
|
|
24
23
|
// not all embeddings have js weak references, and this is captured be calling
|
|
25
24
|
// fallable require inside the function and with a fallback option
|
|
26
25
|
const CacheConstructor = (function () {
|
|
@@ -30,7 +30,7 @@ var availableAddressesForName;
|
|
|
30
30
|
ok: 200
|
|
31
31
|
};
|
|
32
32
|
Object.freeze(availableAddressesForName.SC);
|
|
33
|
-
})(availableAddressesForName
|
|
33
|
+
})(availableAddressesForName || (exports.availableAddressesForName = availableAddressesForName = {}));
|
|
34
34
|
Object.freeze(availableAddressesForName);
|
|
35
35
|
var availableDomains;
|
|
36
36
|
(function (availableDomains) {
|
|
@@ -40,7 +40,7 @@ var availableDomains;
|
|
|
40
40
|
ok: 200
|
|
41
41
|
};
|
|
42
42
|
Object.freeze(availableDomains.SC);
|
|
43
|
-
})(availableDomains
|
|
43
|
+
})(availableDomains || (exports.availableDomains = availableDomains = {}));
|
|
44
44
|
Object.freeze(availableDomains);
|
|
45
45
|
var addUser;
|
|
46
46
|
(function (addUser) {
|
|
@@ -52,7 +52,7 @@ var addUser;
|
|
|
52
52
|
unauthorized: 403
|
|
53
53
|
};
|
|
54
54
|
Object.freeze(addUser.SC);
|
|
55
|
-
})(addUser
|
|
55
|
+
})(addUser || (exports.addUser = addUser = {}));
|
|
56
56
|
Object.freeze(addUser);
|
|
57
57
|
var isActivated;
|
|
58
58
|
(function (isActivated) {
|
|
@@ -64,6 +64,6 @@ var isActivated;
|
|
|
64
64
|
userUnknown: 474
|
|
65
65
|
};
|
|
66
66
|
Object.freeze(isActivated.SC);
|
|
67
|
-
})(isActivated
|
|
67
|
+
})(isActivated || (exports.isActivated = isActivated = {}));
|
|
68
68
|
Object.freeze(isActivated);
|
|
69
69
|
Object.freeze(exports);
|
|
@@ -9,7 +9,11 @@
|
|
|
9
9
|
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
10
10
|
*/
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.Broadcast =
|
|
12
|
+
exports.Broadcast = void 0;
|
|
13
|
+
exports.flatMapComplete = flatMapComplete;
|
|
14
|
+
exports.allowOnlySingleStart = allowOnlySingleStart;
|
|
15
|
+
exports.flatTap = flatTap;
|
|
16
|
+
exports.toRxObserver = toRxObserver;
|
|
13
17
|
const rxjs_1 = require("rxjs");
|
|
14
18
|
const operators_1 = require("rxjs/operators");
|
|
15
19
|
/**
|
|
@@ -27,7 +31,6 @@ function flatMapComplete(mapCompletion) {
|
|
|
27
31
|
}, err => downstream.error(err))
|
|
28
32
|
}));
|
|
29
33
|
}
|
|
30
|
-
exports.flatMapComplete = flatMapComplete;
|
|
31
34
|
/**
|
|
32
35
|
* This is a pipeable operator that allows only one start of an upstream
|
|
33
36
|
* process, irrespectful of how many subscribe calls happen downstream.
|
|
@@ -67,7 +70,6 @@ function allowOnlySingleStart() {
|
|
|
67
70
|
}
|
|
68
71
|
});
|
|
69
72
|
}
|
|
70
|
-
exports.allowOnlySingleStart = allowOnlySingleStart;
|
|
71
73
|
/**
|
|
72
74
|
* This is a pipeable operator that is like tap, but takes in async functions,
|
|
73
75
|
* ensuring that they complete running before passing events to downstream.
|
|
@@ -92,7 +94,6 @@ function flatTap(onNext, onError, onComplete) {
|
|
|
92
94
|
() => downstream.complete())
|
|
93
95
|
}));
|
|
94
96
|
}
|
|
95
|
-
exports.flatTap = flatTap;
|
|
96
97
|
/**
|
|
97
98
|
* @param obs
|
|
98
99
|
* @return given observer, or one with noop's in place of missing functions
|
|
@@ -108,7 +109,6 @@ function toRxObserver(obs) {
|
|
|
108
109
|
return { next, complete, error };
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
|
-
exports.toRxObserver = toRxObserver;
|
|
112
112
|
function noop() { }
|
|
113
113
|
class Broadcast {
|
|
114
114
|
constructor() {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.defer =
|
|
19
|
+
exports.defer = defer;
|
|
20
20
|
function defer() {
|
|
21
21
|
const d = {};
|
|
22
22
|
d.promise = new Promise((resolve, reject) => {
|
|
@@ -26,4 +26,3 @@ function defer() {
|
|
|
26
26
|
Object.freeze(d);
|
|
27
27
|
return d;
|
|
28
28
|
}
|
|
29
|
-
exports.defer = defer;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Database as DBClass, BindParams as QueryParams, QueryExecResult as QueryResult } from './sqljs.js';
|
|
2
2
|
import { SingleProc, Action } from './synced.js';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
|
|
3
|
+
export type Database = DBClass;
|
|
4
|
+
export type BindParams = QueryParams;
|
|
5
|
+
export type QueryExecResult = QueryResult;
|
|
6
|
+
type WritableFile = web3n.files.WritableFile;
|
|
7
7
|
export interface SaveOpts {
|
|
8
8
|
skipUpload?: boolean;
|
|
9
9
|
}
|
|
@@ -20,7 +20,7 @@ export declare abstract class SQLiteOn3NStorage {
|
|
|
20
20
|
listTables(): string[];
|
|
21
21
|
}
|
|
22
22
|
export declare function objectFromQueryExecResult<T>(sqlResult: QueryExecResult): Array<T>;
|
|
23
|
-
|
|
23
|
+
type KeyedInfo<T> = {
|
|
24
24
|
[columnName in keyof T]: string;
|
|
25
25
|
};
|
|
26
26
|
export declare class TableColumnsAndParams<EntryType extends object> {
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.TableColumnsAndParams = exports.
|
|
19
|
+
exports.TableColumnsAndParams = exports.SQLiteOn3NStorage = void 0;
|
|
20
|
+
exports.objectFromQueryExecResult = objectFromQueryExecResult;
|
|
20
21
|
const sqljs_js_1 = require("./sqljs.js");
|
|
21
22
|
const synced_js_1 = require("./synced.js");
|
|
22
23
|
class SQLiteOn3NStorage {
|
|
@@ -122,7 +123,6 @@ function objectFromQueryExecResult(sqlResult) {
|
|
|
122
123
|
return obj;
|
|
123
124
|
}, {}));
|
|
124
125
|
}
|
|
125
|
-
exports.objectFromQueryExecResult = objectFromQueryExecResult;
|
|
126
126
|
class TableColumnsAndParams {
|
|
127
127
|
constructor(name, columnDefs) {
|
|
128
128
|
this.name = name;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* later time. Scheduler needs a not-yet-started activity, as scheduler has
|
|
6
6
|
* control action's start.
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export type Action<T> = () => Promise<T>;
|
|
9
9
|
/**
|
|
10
10
|
* This is a container of processes, labeled by some ids. It allows to track if
|
|
11
11
|
* there is a process already in progress with a given id. And, it allows to
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
19
|
+
exports.SingleProc = exports.NamedProcs = void 0;
|
|
20
|
+
exports.makeSyncedFunc = makeSyncedFunc;
|
|
20
21
|
const deferred_js_1 = require("./deferred.js");
|
|
21
22
|
/**
|
|
22
23
|
* This is a container of processes, labeled by some ids. It allows to track if
|
|
@@ -164,4 +165,3 @@ Object.freeze(SingleProc);
|
|
|
164
165
|
function makeSyncedFunc(syncProc, thisArg, func) {
|
|
165
166
|
return ((...args) => syncProc.startOrChain(() => func.apply(thisArg, args)));
|
|
166
167
|
}
|
|
167
|
-
exports.makeSyncedFunc = makeSyncedFunc;
|
|
@@ -6,17 +6,17 @@ import * as signupClientFuncs from './lib-client/3nweb-signup';
|
|
|
6
6
|
import * as signupApi from './lib-common/user-admin-api/signup';
|
|
7
7
|
import { user as midUser } from './lib-common/mid-sigs-NaCl-Ed';
|
|
8
8
|
import * as srvLocFuncs from './lib-client/service-locator';
|
|
9
|
-
export
|
|
9
|
+
export type StorageOwner = StorageOwnerClient;
|
|
10
10
|
export declare const StorageOwner: typeof StorageOwnerClient;
|
|
11
|
-
export
|
|
11
|
+
export type MailRecipient = MailRecipientClient;
|
|
12
12
|
export declare const MailRecipient: typeof MailRecipientClient;
|
|
13
|
-
export
|
|
13
|
+
export type MailSender = MailSenderClient;
|
|
14
14
|
export declare const MailSender: typeof MailSenderClient;
|
|
15
15
|
export declare const signupFuncs: typeof signupClientFuncs;
|
|
16
|
-
export
|
|
16
|
+
export type MailerIdProvisioner = MailerIdProvisionerClient;
|
|
17
17
|
export declare const MailerIdProvisioner: typeof MailerIdProvisionerClient;
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
18
|
+
export type UserMidParams = signupApi.UserMidParams;
|
|
19
|
+
export type UserStorageParams = signupApi.UserStorageParams;
|
|
20
|
+
export type MailerIdSigner = midUser.MailerIdSigner;
|
|
21
21
|
export declare const serviceLocationFuncs: typeof srvLocFuncs;
|
|
22
22
|
export declare function getLibVersion(): string;
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
19
|
+
exports.serviceLocationFuncs = exports.MailerIdProvisioner = exports.signupFuncs = exports.MailSender = exports.MailRecipient = exports.StorageOwner = void 0;
|
|
20
|
+
exports.getLibVersion = getLibVersion;
|
|
20
21
|
const service_1 = require("./lib-client/3nstorage/service");
|
|
21
22
|
const recipient_1 = require("./lib-client/asmail/recipient");
|
|
22
23
|
const sender_1 = require("./lib-client/asmail/sender");
|
|
@@ -32,5 +33,4 @@ exports.serviceLocationFuncs = srvLocFuncs;
|
|
|
32
33
|
function getLibVersion() {
|
|
33
34
|
return require(`../package.json`).version;
|
|
34
35
|
}
|
|
35
|
-
exports.getLibVersion = getLibVersion;
|
|
36
36
|
Object.freeze(exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "core-3nweb-client-lib",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.4",
|
|
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",
|
|
@@ -43,6 +43,6 @@
|
|
|
43
43
|
"protobufjs-cli": "^1.0.2",
|
|
44
44
|
"spec-3nweb-server": "^1.7.0",
|
|
45
45
|
"tsuml2": "^0.6.1",
|
|
46
|
-
"typescript": "^
|
|
46
|
+
"typescript": "^5.5.3"
|
|
47
47
|
}
|
|
48
48
|
}
|