@worldcoin/idkit-core 4.0.1-dev.123c6a8 → 4.0.1-dev.eebacb1

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.
Binary file
package/dist/index.cjs CHANGED
@@ -389,14 +389,14 @@ function signRequest(action, signing_key_hex, ttl_seconds) {
389
389
  wasm.__wbindgen_add_to_stack_pointer(16);
390
390
  }
391
391
  }
392
- function __wasm_bindgen_func_elem_551(arg0, arg1) {
393
- wasm.__wasm_bindgen_func_elem_551(arg0, arg1);
392
+ function __wasm_bindgen_func_elem_510(arg0, arg1) {
393
+ wasm.__wasm_bindgen_func_elem_510(arg0, arg1);
394
394
  }
395
- function __wasm_bindgen_func_elem_914(arg0, arg1, arg2) {
396
- wasm.__wasm_bindgen_func_elem_914(arg0, arg1, addHeapObject(arg2));
395
+ function __wasm_bindgen_func_elem_873(arg0, arg1, arg2) {
396
+ wasm.__wasm_bindgen_func_elem_873(arg0, arg1, addHeapObject(arg2));
397
397
  }
398
- function __wasm_bindgen_func_elem_1281(arg0, arg1, arg2, arg3) {
399
- wasm.__wasm_bindgen_func_elem_1281(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
398
+ function __wasm_bindgen_func_elem_1238(arg0, arg1, arg2, arg3) {
399
+ wasm.__wasm_bindgen_func_elem_1238(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
400
400
  }
401
401
  var __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
402
402
  var __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
@@ -729,7 +729,7 @@ var IDKitProof = class {
729
729
  wasm.__wbg_idkitproof_free(ptr, 0);
730
730
  }
731
731
  /**
732
- * Creates a new legacy proof (protocol v1 / World ID v3)
732
+ * Creates a new proof
733
733
  *
734
734
  * # Errors
735
735
  *
@@ -1442,7 +1442,7 @@ function __wbg_get_imports() {
1442
1442
  const a = state0.a;
1443
1443
  state0.a = 0;
1444
1444
  try {
1445
- return __wasm_bindgen_func_elem_1281(a, state0.b, arg02, arg12);
1445
+ return __wasm_bindgen_func_elem_1238(a, state0.b, arg02, arg12);
1446
1446
  } finally {
1447
1447
  state0.a = a;
1448
1448
  }
@@ -1651,6 +1651,10 @@ function __wbg_get_imports() {
1651
1651
  const ret = getObject(arg0).versions;
1652
1652
  return addHeapObject(ret);
1653
1653
  };
1654
+ imports.wbg.__wbindgen_cast_20b7882efa3c21d9 = function(arg0, arg1) {
1655
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_872, __wasm_bindgen_func_elem_873);
1656
+ return addHeapObject(ret);
1657
+ };
1654
1658
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
1655
1659
  const ret = getStringFromWasm0(arg0, arg1);
1656
1660
  return addHeapObject(ret);
@@ -1659,16 +1663,12 @@ function __wbg_get_imports() {
1659
1663
  const ret = BigInt.asUintN(64, arg0);
1660
1664
  return addHeapObject(ret);
1661
1665
  };
1662
- imports.wbg.__wbindgen_cast_91c43ecf1f8dafb8 = function(arg0, arg1) {
1663
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_550, __wasm_bindgen_func_elem_551);
1664
- return addHeapObject(ret);
1665
- };
1666
1666
  imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
1667
1667
  const ret = arg0;
1668
1668
  return addHeapObject(ret);
1669
1669
  };
1670
- imports.wbg.__wbindgen_cast_ab10518eebecf9a3 = function(arg0, arg1) {
1671
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_913, __wasm_bindgen_func_elem_914);
1670
+ imports.wbg.__wbindgen_cast_c84362f2a853c6d7 = function(arg0, arg1) {
1671
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_509, __wasm_bindgen_func_elem_510);
1672
1672
  return addHeapObject(ret);
1673
1673
  };
1674
1674
  imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
@@ -1805,8 +1805,8 @@ var IDKitRequestImpl = class {
1805
1805
  throw new Error(`Timeout waiting for proof after ${timeout}ms`);
1806
1806
  }
1807
1807
  const status = await this.pollOnce();
1808
- if (status.type === "confirmed" && status.result) {
1809
- return status.result;
1808
+ if (status.type === "confirmed" && status.proof) {
1809
+ return status.proof;
1810
1810
  }
1811
1811
  if (status.type === "failed") {
1812
1812
  const errorCode = status.error ?? "generic_error" /* GenericError */;