@wireapp/core-crypto 1.0.0-rc.39 → 1.0.0-rc.40
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
Binary file
|
@@ -265,48 +265,48 @@ async function __wbg_load(module, imports) {
|
|
265
265
|
var __wbg_get_imports = function() {
|
266
266
|
const imports = {};
|
267
267
|
imports.wbg = {};
|
268
|
-
imports.wbg.
|
269
|
-
const ret =
|
268
|
+
imports.wbg.__wbg_commitbundle_new = function(arg0) {
|
269
|
+
const ret = CommitBundle.__wrap(arg0);
|
270
|
+
return addHeapObject(ret);
|
271
|
+
};
|
272
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
273
|
+
const ret = arg0;
|
270
274
|
return addHeapObject(ret);
|
271
275
|
};
|
272
276
|
imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
|
273
277
|
const ret = FfiWireE2EIdentity.__wrap(arg0);
|
274
278
|
return addHeapObject(ret);
|
275
279
|
};
|
276
|
-
imports.wbg.
|
277
|
-
const ret = arg0;
|
280
|
+
imports.wbg.__wbg_corecrypto_new = function(arg0) {
|
281
|
+
const ret = CoreCrypto.__wrap(arg0);
|
278
282
|
return addHeapObject(ret);
|
279
283
|
};
|
280
284
|
imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
|
281
285
|
const ret = NewAcmeAuthz.__wrap(arg0);
|
282
286
|
return addHeapObject(ret);
|
283
287
|
};
|
284
|
-
imports.wbg.
|
285
|
-
const ret =
|
286
|
-
return addHeapObject(ret);
|
287
|
-
};
|
288
|
-
imports.wbg.__wbg_proposalbundle_new = function(arg0) {
|
289
|
-
const ret = ProposalBundle.__wrap(arg0);
|
288
|
+
imports.wbg.__wbg_acmedirectory_new = function(arg0) {
|
289
|
+
const ret = AcmeDirectory.__wrap(arg0);
|
290
290
|
return addHeapObject(ret);
|
291
291
|
};
|
292
|
-
imports.wbg.
|
293
|
-
|
294
|
-
return addHeapObject(ret);
|
292
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
293
|
+
takeObject(arg0);
|
295
294
|
};
|
296
295
|
imports.wbg.__wbg_newacmeorder_new = function(arg0) {
|
297
296
|
const ret = NewAcmeOrder.__wrap(arg0);
|
298
297
|
return addHeapObject(ret);
|
299
298
|
};
|
300
|
-
imports.wbg.
|
301
|
-
const ret =
|
299
|
+
imports.wbg.__wbg_proposalbundle_new = function(arg0) {
|
300
|
+
const ret = ProposalBundle.__wrap(arg0);
|
302
301
|
return addHeapObject(ret);
|
303
302
|
};
|
304
303
|
imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
|
305
304
|
const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
|
306
305
|
return addHeapObject(ret);
|
307
306
|
};
|
308
|
-
imports.wbg.
|
309
|
-
|
307
|
+
imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
|
308
|
+
const ret = BufferedDecryptedMessage.__wrap(arg0);
|
309
|
+
return addHeapObject(ret);
|
310
310
|
};
|
311
311
|
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
312
312
|
const ret = getObject(arg0);
|
@@ -316,6 +316,10 @@ var __wbg_get_imports = function() {
|
|
316
316
|
const ret = getStringFromWasm0(arg0, arg1);
|
317
317
|
return addHeapObject(ret);
|
318
318
|
};
|
319
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
320
|
+
const ret = BigInt.asUintN(64, arg0);
|
321
|
+
return addHeapObject(ret);
|
322
|
+
};
|
319
323
|
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
320
324
|
const ret = getObject(arg0) === undefined;
|
321
325
|
return ret;
|
@@ -324,10 +328,6 @@ var __wbg_get_imports = function() {
|
|
324
328
|
const ret = getObject(arg0) === null;
|
325
329
|
return ret;
|
326
330
|
};
|
327
|
-
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
328
|
-
const ret = BigInt.asUintN(64, arg0);
|
329
|
-
return addHeapObject(ret);
|
330
|
-
};
|
331
331
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
332
332
|
const obj = getObject(arg1);
|
333
333
|
const ret = typeof obj === "string" ? obj : undefined;
|
@@ -1041,6 +1041,14 @@ var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: ()
|
|
1041
1041
|
});
|
1042
1042
|
var cachedUint32Memory0 = null;
|
1043
1043
|
var cachedUint16Memory0 = null;
|
1044
|
+
var DeviceStatus = Object.freeze({
|
1045
|
+
Valid: 0,
|
1046
|
+
"0": "Valid",
|
1047
|
+
Expired: 1,
|
1048
|
+
"1": "Expired",
|
1049
|
+
Revoked: 2,
|
1050
|
+
"2": "Revoked"
|
1051
|
+
});
|
1044
1052
|
var CredentialType = Object.freeze({
|
1045
1053
|
Basic: 1,
|
1046
1054
|
"1": "Basic",
|
@@ -1065,14 +1073,6 @@ var Ciphersuite = Object.freeze({
|
|
1065
1073
|
MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519: 61489,
|
1066
1074
|
"61489": "MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519"
|
1067
1075
|
});
|
1068
|
-
var DeviceStatus = Object.freeze({
|
1069
|
-
Valid: 0,
|
1070
|
-
"0": "Valid",
|
1071
|
-
Expired: 1,
|
1072
|
-
"1": "Expired",
|
1073
|
-
Revoked: 2,
|
1074
|
-
"2": "Revoked"
|
1075
|
-
});
|
1076
1076
|
var WirePolicy = Object.freeze({
|
1077
1077
|
Plaintext: 1,
|
1078
1078
|
"1": "Plaintext",
|
@@ -3036,7 +3036,16 @@ class CoreCrypto2 {
|
|
3036
3036
|
return (await CoreCryptoError.asyncMapErr(this.#cc.get_device_identities(conversationId, deviceIds))).map(mapWireIdentity);
|
3037
3037
|
}
|
3038
3038
|
async getUserIdentities(conversationId, userIds) {
|
3039
|
-
|
3039
|
+
const map = await CoreCryptoError.asyncMapErr(this.#cc.get_user_identities(conversationId, userIds));
|
3040
|
+
const mapFixed = new Map;
|
3041
|
+
for (const [userId, identities] of map) {
|
3042
|
+
const mappedIdentities = identities.flatMap((identity) => {
|
3043
|
+
const mappedIdentity = mapWireIdentity(identity);
|
3044
|
+
return mappedIdentity ? [mappedIdentity] : [];
|
3045
|
+
});
|
3046
|
+
mapFixed.set(userId, mappedIdentities);
|
3047
|
+
}
|
3048
|
+
return mapFixed;
|
3040
3049
|
}
|
3041
3050
|
async getCredentialInUse(groupInfo, credentialType = CredentialType2.X509) {
|
3042
3051
|
let state = await CoreCryptoError.asyncMapErr(this.#cc.get_credential_in_use(groupInfo, credentialType));
|