@wireapp/core-crypto 1.0.0-rc.34 → 1.0.0-rc.35

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wireapp/core-crypto",
3
- "version": "1.0.0-rc.34",
3
+ "version": "1.0.0-rc.35",
4
4
  "description": "CoreCrypto bindings for the Web",
5
5
  "type": "module",
6
6
  "module": "platforms/web/corecrypto.js",
@@ -1,3 +1,5 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
1
3
  /**
2
4
  * see [core_crypto::prelude::DeviceStatus]
3
5
  */
@@ -1267,7 +1269,7 @@ export declare class CoreCrypto {
1267
1269
  * @param nbKeyPackage - number of initial KeyPackage to create when initializing the client
1268
1270
  * @returns a MlsClient initialized with only a x509 credential
1269
1271
  */
1270
- e2eiMlsInitOnly(enrollment: E2eiEnrollment, certificateChain: string, nbKeyPackage?: number): Promise<void>;
1272
+ e2eiMlsInitOnly(enrollment: E2eiEnrollment, certificateChain: string, nbKeyPackage?: number): Promise<string[] | undefined>;
1271
1273
  /**
1272
1274
  * Registers a Root Trust Anchor CA for the use in E2EI processing.
1273
1275
  *
@@ -1285,7 +1287,7 @@ export declare class CoreCrypto {
1285
1287
  *
1286
1288
  * @param certPEM - PEM certificate to register as an Intermediate CA
1287
1289
  */
1288
- e2eiRegisterIntermediateCA(certPEM: string): Promise<void>;
1290
+ e2eiRegisterIntermediateCA(certPEM: string): Promise<string[] | undefined>;
1289
1291
  /**
1290
1292
  * Registers a CRL for the use in E2EI processing.
1291
1293
  *
@@ -262,57 +262,53 @@ async function __wbg_load(module, imports) {
262
262
  var __wbg_get_imports = function() {
263
263
  const imports = {};
264
264
  imports.wbg = {};
265
- imports.wbg.__wbindgen_number_new = function(arg0) {
266
- const ret = arg0;
265
+ imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
266
+ const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
267
+ return addHeapObject(ret);
268
+ };
269
+ imports.wbg.__wbg_commitbundle_new = function(arg0) {
270
+ const ret = CommitBundle.__wrap(arg0);
271
+ return addHeapObject(ret);
272
+ };
273
+ imports.wbg.__wbg_acmedirectory_new = function(arg0) {
274
+ const ret = AcmeDirectory.__wrap(arg0);
267
275
  return addHeapObject(ret);
268
276
  };
269
277
  imports.wbg.__wbg_newacmeorder_new = function(arg0) {
270
278
  const ret = NewAcmeOrder.__wrap(arg0);
271
279
  return addHeapObject(ret);
272
280
  };
281
+ imports.wbg.__wbg_proposalbundle_new = function(arg0) {
282
+ const ret = ProposalBundle.__wrap(arg0);
283
+ return addHeapObject(ret);
284
+ };
273
285
  imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
274
286
  const ret = NewAcmeAuthz.__wrap(arg0);
275
287
  return addHeapObject(ret);
276
288
  };
277
- imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
278
- const ret = FfiWireE2EIdentity.__wrap(arg0);
289
+ imports.wbg.__wbindgen_number_new = function(arg0) {
290
+ const ret = arg0;
279
291
  return addHeapObject(ret);
280
292
  };
281
293
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
282
294
  takeObject(arg0);
283
295
  };
284
- imports.wbg.__wbg_corecrypto_new = function(arg0) {
285
- const ret = CoreCrypto.__wrap(arg0);
286
- return addHeapObject(ret);
287
- };
288
- imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
289
- const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
290
- return addHeapObject(ret);
291
- };
292
- imports.wbg.__wbg_proposalbundle_new = function(arg0) {
293
- const ret = ProposalBundle.__wrap(arg0);
296
+ imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
297
+ const ret = FfiWireE2EIdentity.__wrap(arg0);
294
298
  return addHeapObject(ret);
295
299
  };
296
300
  imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
297
301
  const ret = BufferedDecryptedMessage.__wrap(arg0);
298
302
  return addHeapObject(ret);
299
303
  };
300
- imports.wbg.__wbg_acmedirectory_new = function(arg0) {
301
- const ret = AcmeDirectory.__wrap(arg0);
302
- return addHeapObject(ret);
303
- };
304
- imports.wbg.__wbg_commitbundle_new = function(arg0) {
305
- const ret = CommitBundle.__wrap(arg0);
304
+ imports.wbg.__wbg_corecrypto_new = function(arg0) {
305
+ const ret = CoreCrypto.__wrap(arg0);
306
306
  return addHeapObject(ret);
307
307
  };
308
308
  imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
309
309
  const ret = getObject(arg0);
310
310
  return addHeapObject(ret);
311
311
  };
312
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
313
- const ret = BigInt.asUintN(64, arg0);
314
- return addHeapObject(ret);
315
- };
316
312
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
317
313
  const ret = getStringFromWasm0(arg0, arg1);
318
314
  return addHeapObject(ret);
@@ -325,6 +321,10 @@ var __wbg_get_imports = function() {
325
321
  const ret = getObject(arg0) === null;
326
322
  return ret;
327
323
  };
324
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
325
+ const ret = BigInt.asUintN(64, arg0);
326
+ return addHeapObject(ret);
327
+ };
328
328
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
329
329
  const obj = getObject(arg1);
330
330
  const ret = typeof obj === "string" ? obj : undefined;
@@ -966,12 +966,12 @@ var __wbg_get_imports = function() {
966
966
  const ret = wasm.memory;
967
967
  return addHeapObject(ret);
968
968
  };
969
- imports.wbg.__wbindgen_closure_wrapper2502 = function(arg0, arg1, arg2) {
969
+ imports.wbg.__wbindgen_closure_wrapper2510 = function(arg0, arg1, arg2) {
970
970
  const ret = makeMutClosure(arg0, arg1, 648, __wbg_adapter_54);
971
971
  return addHeapObject(ret);
972
972
  };
973
- imports.wbg.__wbindgen_closure_wrapper11505 = function(arg0, arg1, arg2) {
974
- const ret = makeMutClosure(arg0, arg1, 1588, __wbg_adapter_57);
973
+ imports.wbg.__wbindgen_closure_wrapper11465 = function(arg0, arg1, arg2) {
974
+ const ret = makeMutClosure(arg0, arg1, 1585, __wbg_adapter_57);
975
975
  return addHeapObject(ret);
976
976
  };
977
977
  return imports;
@@ -1033,6 +1033,14 @@ var cachedFloat64Memory0 = null;
1033
1033
  var cachedBigInt64Memory0 = null;
1034
1034
  var cachedUint32Memory0 = null;
1035
1035
  var cachedUint16Memory0 = null;
1036
+ var DeviceStatus = Object.freeze({
1037
+ Valid: 0,
1038
+ "0": "Valid",
1039
+ Expired: 1,
1040
+ "1": "Expired",
1041
+ Revoked: 2,
1042
+ "2": "Revoked"
1043
+ });
1036
1044
  var WirePolicy = Object.freeze({
1037
1045
  Plaintext: 1,
1038
1046
  "1": "Plaintext",
@@ -1063,14 +1071,6 @@ var Ciphersuite = Object.freeze({
1063
1071
  MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519: 61489,
1064
1072
  "61489": "MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519"
1065
1073
  });
1066
- var DeviceStatus = Object.freeze({
1067
- Valid: 0,
1068
- "0": "Valid",
1069
- Expired: 1,
1070
- "1": "Expired",
1071
- Revoked: 2,
1072
- "2": "Revoked"
1073
- });
1074
1074
 
1075
1075
  class AcmeChallenge {
1076
1076
  static __wrap(ptr) {