@keyhive/keyhive 0.0.0-alpha.56 → 0.0.0-alpha.56b

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": "@keyhive/keyhive",
3
- "version": "0.0.0-alpha.56",
3
+ "version": "0.0.0-alpha.56b",
4
4
  "description": "",
5
5
  "main": "pkg/keyhive_wasm.js",
6
6
  "keywords": [],
@@ -142,6 +142,7 @@ export class Document {
142
142
  * Upcasts; to the JS-import type for [`JsDocument`].
143
143
  */
144
144
  __wasm_refgen_toJsDocument(): Document;
145
+ members(): Promise<Capability[]>;
145
146
  toAgent(): Agent;
146
147
  toMembered(): Membered;
147
148
  toPeer(): Peer;
@@ -714,6 +714,13 @@ export class Document {
714
714
  const ret = wasm.document_id(this.__wbg_ptr);
715
715
  return Identifier.__wrap(ret);
716
716
  }
717
+ /**
718
+ * @returns {Promise<Capability[]>}
719
+ */
720
+ members() {
721
+ const ret = wasm.document_members(this.__wbg_ptr);
722
+ return ret;
723
+ }
717
724
  /**
718
725
  * @returns {Agent}
719
726
  */
@@ -2514,7 +2521,7 @@ if (Symbol.dispose) Summary.prototype[Symbol.dispose] = Summary.prototype.free;
2514
2521
  export function setPanicHook() {
2515
2522
  wasm.setPanicHook();
2516
2523
  }
2517
- export function __wbg_Error_7c536b7a8123d334(arg0, arg1) {
2524
+ export function __wbg_Error_2e59b1b37a9a34c3(arg0, arg1) {
2518
2525
  const ret = Error(getStringFromWasm0(arg0, arg1));
2519
2526
  return ret;
2520
2527
  }
@@ -2536,41 +2543,41 @@ export function __wbg___wasm_refgen_toJsPeer_4156830842f18fa5(arg0) {
2536
2543
  var ptr1 = ret.__destroy_into_raw();
2537
2544
  return ptr1;
2538
2545
  }
2539
- export function __wbg___wbindgen_debug_string_8baecc377ad92880(arg0, arg1) {
2546
+ export function __wbg___wbindgen_debug_string_dd5d2d07ce9e6c57(arg0, arg1) {
2540
2547
  const ret = debugString(arg1);
2541
2548
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2542
2549
  const len1 = WASM_VECTOR_LEN;
2543
2550
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2544
2551
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2545
2552
  }
2546
- export function __wbg___wbindgen_is_function_d4c2480b46f29e33(arg0) {
2553
+ export function __wbg___wbindgen_is_function_49868bde5eb1e745(arg0) {
2547
2554
  const ret = typeof(arg0) === 'function';
2548
2555
  return ret;
2549
2556
  }
2550
- export function __wbg___wbindgen_is_object_e04e3a51a90cde43(arg0) {
2557
+ export function __wbg___wbindgen_is_object_40c5a80572e8f9d3(arg0) {
2551
2558
  const val = arg0;
2552
2559
  const ret = typeof(val) === 'object' && val !== null;
2553
2560
  return ret;
2554
2561
  }
2555
- export function __wbg___wbindgen_is_string_3db04af369717583(arg0) {
2562
+ export function __wbg___wbindgen_is_string_b29b5c5a8065ba1a(arg0) {
2556
2563
  const ret = typeof(arg0) === 'string';
2557
2564
  return ret;
2558
2565
  }
2559
- export function __wbg___wbindgen_is_undefined_5957b329897cc39c(arg0) {
2566
+ export function __wbg___wbindgen_is_undefined_c0cca72b82b86f4d(arg0) {
2560
2567
  const ret = arg0 === undefined;
2561
2568
  return ret;
2562
2569
  }
2563
- export function __wbg___wbindgen_throw_bd5a70920abf0236(arg0, arg1) {
2570
+ export function __wbg___wbindgen_throw_81fc77679af83bc6(arg0, arg1) {
2564
2571
  throw new Error(getStringFromWasm0(arg0, arg1));
2565
2572
  }
2566
- export function __wbg__wbg_cb_unref_207c541c2d58dfb3(arg0) {
2573
+ export function __wbg__wbg_cb_unref_3c3b4f651835fbcb(arg0) {
2567
2574
  arg0._wbg_cb_unref();
2568
2575
  }
2569
2576
  export function __wbg_access_new(arg0) {
2570
2577
  const ret = Access.__wrap(arg0);
2571
2578
  return ret;
2572
2579
  }
2573
- export function __wbg_add_590df1f529090a23(arg0, arg1) {
2580
+ export function __wbg_add_f56ec7ea7f056912(arg0, arg1) {
2574
2581
  const ret = arg0.add(arg1);
2575
2582
  return ret;
2576
2583
  }
@@ -2586,7 +2593,7 @@ export function __wbg_archive_new(arg0) {
2586
2593
  const ret = Archive.__wrap(arg0);
2587
2594
  return ret;
2588
2595
  }
2589
- export function __wbg_call_1aea13500fe8ff6c() { return handleError(function (arg0, arg1, arg2) {
2596
+ export function __wbg_call_d578befcc3145dee() { return handleError(function (arg0, arg1, arg2) {
2590
2597
  const ret = arg0.call(arg1, arg2);
2591
2598
  return ret;
2592
2599
  }, arguments); }
@@ -2689,11 +2696,11 @@ export function __wbg_event_new(arg0) {
2689
2696
  const ret = Event.__wrap(arg0);
2690
2697
  return ret;
2691
2698
  }
2692
- export function __wbg_exportKey_f08d6c1fcfc4b54d() { return handleError(function (arg0, arg1, arg2, arg3) {
2699
+ export function __wbg_exportKey_99bb9b98984e3a4e() { return handleError(function (arg0, arg1, arg2, arg3) {
2693
2700
  const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
2694
2701
  return ret;
2695
2702
  }, arguments); }
2696
- export function __wbg_generateKey_dab8c671b076b4b3() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2703
+ export function __wbg_generateKey_2d4760a0496c6109() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2697
2704
  const ret = arg0.generateKey(getStringFromWasm0(arg1, arg2), arg3 !== 0, arg4);
2698
2705
  return ret;
2699
2706
  }, arguments); }
@@ -2704,19 +2711,19 @@ export function __wbg_generatewebcryptoerror_new(arg0) {
2704
2711
  export function __wbg_getRandomValues_c44a50d8cfdaebeb() { return handleError(function (arg0, arg1) {
2705
2712
  arg0.getRandomValues(arg1);
2706
2713
  }, arguments); }
2707
- export function __wbg_get_8944f33c9c7f4f6c(arg0, arg1) {
2714
+ export function __wbg_get_4848e350b40afc16(arg0, arg1) {
2708
2715
  const ret = arg0[arg1 >>> 0];
2709
2716
  return ret;
2710
2717
  }
2711
- export function __wbg_get_d8a3d51a73d14c8a() { return handleError(function (arg0, arg1) {
2718
+ export function __wbg_get_f96702c6245e4ef9() { return handleError(function (arg0, arg1) {
2712
2719
  const ret = Reflect.get(arg0, arg1);
2713
2720
  return ret;
2714
2721
  }, arguments); }
2715
- export function __wbg_get_private_key_4769af84e1490c16(arg0) {
2722
+ export function __wbg_get_private_key_eba5c3b94a6582ab(arg0) {
2716
2723
  const ret = arg0.privateKey;
2717
2724
  return ret;
2718
2725
  }
2719
- export function __wbg_get_public_key_bc05e1040a734167(arg0) {
2726
+ export function __wbg_get_public_key_cce0ab3bb2aaaec4(arg0) {
2720
2727
  const ret = arg0.publicKey;
2721
2728
  return ret;
2722
2729
  }
@@ -2728,7 +2735,7 @@ export function __wbg_individual_new(arg0) {
2728
2735
  const ret = Individual.__wrap(arg0);
2729
2736
  return ret;
2730
2737
  }
2731
- export function __wbg_instanceof_Crypto_0cb0869fecb76e83(arg0) {
2738
+ export function __wbg_instanceof_Crypto_f4b23f832118da8c(arg0) {
2732
2739
  let result;
2733
2740
  try {
2734
2741
  result = arg0 instanceof Crypto;
@@ -2742,11 +2749,11 @@ export function __wbg_keyhive_new(arg0) {
2742
2749
  const ret = Keyhive.__wrap(arg0);
2743
2750
  return ret;
2744
2751
  }
2745
- export function __wbg_length_090b6aa6235450ba(arg0) {
2752
+ export function __wbg_length_0c32cb8543c8e4c8(arg0) {
2746
2753
  const ret = arg0.length;
2747
2754
  return ret;
2748
2755
  }
2749
- export function __wbg_length_713cc1160ce7b5b9(arg0) {
2756
+ export function __wbg_length_6e821edde497a532(arg0) {
2750
2757
  const ret = arg0.length;
2751
2758
  return ret;
2752
2759
  }
@@ -2803,38 +2810,38 @@ export function __wbg_new_227d7c05414eb861() {
2803
2810
  const ret = new Error();
2804
2811
  return ret;
2805
2812
  }
2806
- export function __wbg_new_4774b8d4db1224e4(arg0) {
2807
- const ret = new Uint8Array(arg0);
2813
+ export function __wbg_new_44794e13e79fc463(arg0) {
2814
+ const ret = new Set(arg0);
2808
2815
  return ret;
2809
2816
  }
2810
- export function __wbg_new_480195ddf7042529() {
2811
- const ret = new Array();
2817
+ export function __wbg_new_99cabae501c0a8a0() {
2818
+ const ret = new Map();
2812
2819
  return ret;
2813
2820
  }
2814
- export function __wbg_new_cf09c337e743f6e0(arg0) {
2815
- const ret = new Set(arg0);
2821
+ export function __wbg_new_a560378ea1240b14(arg0) {
2822
+ const ret = new Uint8Array(arg0);
2816
2823
  return ret;
2817
2824
  }
2818
- export function __wbg_new_d63f24ca072fa278() {
2819
- const ret = new Map();
2825
+ export function __wbg_new_e3b04b4d53d1b593(arg0, arg1) {
2826
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2820
2827
  return ret;
2821
2828
  }
2822
- export function __wbg_new_ebde992a0bf6bdf6(arg0, arg1) {
2823
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2829
+ export function __wbg_new_f3c9df4f38f3f798() {
2830
+ const ret = new Array();
2824
2831
  return ret;
2825
2832
  }
2826
- export function __wbg_new_from_slice_2733a138cec5cdcf(arg0, arg1) {
2833
+ export function __wbg_new_from_slice_2580ff33d0d10520(arg0, arg1) {
2827
2834
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
2828
2835
  return ret;
2829
2836
  }
2830
- export function __wbg_new_typed_5101eada2c6754de(arg0, arg1) {
2837
+ export function __wbg_new_typed_14d7cc391ce53d2c(arg0, arg1) {
2831
2838
  try {
2832
2839
  var state0 = {a: arg0, b: arg1};
2833
2840
  var cb0 = (arg0, arg1) => {
2834
2841
  const a = state0.a;
2835
2842
  state0.a = 0;
2836
2843
  try {
2837
- return wasm_bindgen__convert__closures_____invoke__h6ae8cb20b693673b(a, state0.b, arg0, arg1);
2844
+ return wasm_bindgen__convert__closures_____invoke__hed1b57a71ca47f43(a, state0.b, arg0, arg1);
2838
2845
  } finally {
2839
2846
  state0.a = a;
2840
2847
  }
@@ -2845,7 +2852,7 @@ export function __wbg_new_typed_5101eada2c6754de(arg0, arg1) {
2845
2852
  state0.a = 0;
2846
2853
  }
2847
2854
  }
2848
- export function __wbg_new_with_length_a90559ebda3954f8(arg0) {
2855
+ export function __wbg_new_with_length_9cedd08484b73942(arg0) {
2849
2856
  const ret = new Uint8Array(arg0 >>> 0);
2850
2857
  return ret;
2851
2858
  }
@@ -2857,20 +2864,20 @@ export function __wbg_process_44c7a14e11e9f69e(arg0) {
2857
2864
  const ret = arg0.process;
2858
2865
  return ret;
2859
2866
  }
2860
- export function __wbg_prototypesetcall_7dca54d31cb9d2dc(arg0, arg1, arg2) {
2867
+ export function __wbg_prototypesetcall_3e05eb9545565046(arg0, arg1, arg2) {
2861
2868
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
2862
2869
  }
2863
- export function __wbg_push_bb0def92a641d074(arg0, arg1) {
2870
+ export function __wbg_push_6bdbc990be5ac37b(arg0, arg1) {
2864
2871
  const ret = arg0.push(arg1);
2865
2872
  return ret;
2866
2873
  }
2867
- export function __wbg_queueMicrotask_1f50b4bdf2c98605(arg0) {
2868
- queueMicrotask(arg0);
2869
- }
2870
- export function __wbg_queueMicrotask_805204511f79bee8(arg0) {
2874
+ export function __wbg_queueMicrotask_abaf92f0bd4e80a4(arg0) {
2871
2875
  const ret = arg0.queueMicrotask;
2872
2876
  return ret;
2873
2877
  }
2878
+ export function __wbg_queueMicrotask_df5a6dac26d818f3(arg0) {
2879
+ queueMicrotask(arg0);
2880
+ }
2874
2881
  export function __wbg_randomFillSync_6c25eac9869eb53c() { return handleError(function (arg0, arg1) {
2875
2882
  arg0.randomFillSync(arg1);
2876
2883
  }, arguments); }
@@ -2878,22 +2885,22 @@ export function __wbg_require_b4edbdcf3e2a1ef0() { return handleError(function (
2878
2885
  const ret = module.require;
2879
2886
  return ret;
2880
2887
  }, arguments); }
2881
- export function __wbg_resolve_bb4df27803d377b2(arg0) {
2888
+ export function __wbg_resolve_0a79de24e9d2267b(arg0) {
2882
2889
  const ret = Promise.resolve(arg0);
2883
2890
  return ret;
2884
2891
  }
2885
- export function __wbg_set_84911e1f7639680c(arg0, arg1, arg2) {
2892
+ export function __wbg_set_08463b1df38a7e29(arg0, arg1, arg2) {
2886
2893
  const ret = arg0.set(arg1, arg2);
2887
2894
  return ret;
2888
2895
  }
2889
- export function __wbg_set_name_c2ad90badf061d34(arg0, arg1, arg2) {
2896
+ export function __wbg_set_name_ab9c98596fd7310a(arg0, arg1, arg2) {
2890
2897
  arg0.name = getStringFromWasm0(arg1, arg2);
2891
2898
  }
2892
2899
  export function __wbg_sharekey_new(arg0) {
2893
2900
  const ret = ShareKey.__wrap(arg0);
2894
2901
  return ret;
2895
2902
  }
2896
- export function __wbg_sign_f7b94cef70cf3556() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2903
+ export function __wbg_sign_f4e7637ee82f1e2b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2897
2904
  const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
2898
2905
  return ret;
2899
2906
  }, arguments); }
@@ -2920,19 +2927,19 @@ export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
2920
2927
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2921
2928
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2922
2929
  }
2923
- export function __wbg_static_accessor_GLOBAL_44bef9fa6011e260() {
2924
- const ret = typeof global === 'undefined' ? null : global;
2930
+ export function __wbg_static_accessor_GLOBAL_THIS_a1248013d790bf5f() {
2931
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
2925
2932
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2926
2933
  }
2927
- export function __wbg_static_accessor_GLOBAL_THIS_13002645baf43d84() {
2928
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
2934
+ export function __wbg_static_accessor_GLOBAL_f2e0f995a21329ff() {
2935
+ const ret = typeof global === 'undefined' ? null : global;
2929
2936
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2930
2937
  }
2931
- export function __wbg_static_accessor_SELF_91d0abd4d035416c() {
2938
+ export function __wbg_static_accessor_SELF_24f78b6d23f286ea() {
2932
2939
  const ret = typeof self === 'undefined' ? null : self;
2933
2940
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2934
2941
  }
2935
- export function __wbg_static_accessor_WINDOW_513f857c65724fc7() {
2942
+ export function __wbg_static_accessor_WINDOW_59fd959c540fe405() {
2936
2943
  const ret = typeof window === 'undefined' ? null : window;
2937
2944
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2938
2945
  }
@@ -2940,11 +2947,11 @@ export function __wbg_stats_new(arg0) {
2940
2947
  const ret = Stats.__wrap(arg0);
2941
2948
  return ret;
2942
2949
  }
2943
- export function __wbg_subarray_fb60755cb1b4a498(arg0, arg1, arg2) {
2950
+ export function __wbg_subarray_0f98d3fb634508ad(arg0, arg1, arg2) {
2944
2951
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
2945
2952
  return ret;
2946
2953
  }
2947
- export function __wbg_subtle_f732bd6d8faf16a3(arg0) {
2954
+ export function __wbg_subtle_6b7d3b117f3b8d57(arg0) {
2948
2955
  const ret = arg0.subtle;
2949
2956
  return ret;
2950
2957
  }
@@ -2952,12 +2959,12 @@ export function __wbg_summary_new(arg0) {
2952
2959
  const ret = Summary.__wrap(arg0);
2953
2960
  return ret;
2954
2961
  }
2955
- export function __wbg_then_d9ebfadd74ddfbb2(arg0, arg1) {
2956
- const ret = arg0.then(arg1);
2962
+ export function __wbg_then_00eed3ac0b8e82cb(arg0, arg1, arg2) {
2963
+ const ret = arg0.then(arg1, arg2);
2957
2964
  return ret;
2958
2965
  }
2959
- export function __wbg_then_f6dedb0d880db23a(arg0, arg1, arg2) {
2960
- const ret = arg0.then(arg1, arg2);
2966
+ export function __wbg_then_a0c8db0381c8994c(arg0, arg1) {
2967
+ const ret = arg0.then(arg1);
2961
2968
  return ret;
2962
2969
  }
2963
2970
  export function __wbg_versions_276b2795b1c6a219(arg0) {
@@ -2987,8 +2994,8 @@ export function __wbg_warn_9d7408e9659996aa(arg0, arg1, arg2, arg3, arg4, arg5,
2987
2994
  }
2988
2995
  }
2989
2996
  export function __wbindgen_cast_0000000000000001(arg0, arg1) {
2990
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 690, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2991
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hfe01cfbe4f7f9695);
2997
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 704, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2998
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3280982d348b8ce7);
2992
2999
  return ret;
2993
3000
  }
2994
3001
  export function __wbindgen_cast_0000000000000002(arg0, arg1) {
@@ -3066,15 +3073,15 @@ export function __wbindgen_init_externref_table() {
3066
3073
  table.set(offset + 2, true);
3067
3074
  table.set(offset + 3, false);
3068
3075
  }
3069
- function wasm_bindgen__convert__closures_____invoke__hfe01cfbe4f7f9695(arg0, arg1, arg2) {
3070
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__hfe01cfbe4f7f9695(arg0, arg1, arg2);
3076
+ function wasm_bindgen__convert__closures_____invoke__h3280982d348b8ce7(arg0, arg1, arg2) {
3077
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h3280982d348b8ce7(arg0, arg1, arg2);
3071
3078
  if (ret[1]) {
3072
3079
  throw takeFromExternrefTable0(ret[0]);
3073
3080
  }
3074
3081
  }
3075
3082
 
3076
- function wasm_bindgen__convert__closures_____invoke__h6ae8cb20b693673b(arg0, arg1, arg2, arg3) {
3077
- wasm.wasm_bindgen__convert__closures_____invoke__h6ae8cb20b693673b(arg0, arg1, arg2, arg3);
3083
+ function wasm_bindgen__convert__closures_____invoke__hed1b57a71ca47f43(arg0, arg1, arg2, arg3) {
3084
+ wasm.wasm_bindgen__convert__closures_____invoke__hed1b57a71ca47f43(arg0, arg1, arg2, arg3);
3078
3085
  }
3079
3086
 
3080
3087
  const CannotParseEd25519SigningKeyFinalization = (typeof FinalizationRegistry === 'undefined')
Binary file
@@ -1,50 +1,24 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const __wbg_capability_free: (a: number, b: number) => void;
5
4
  export const __wbg_document_free: (a: number, b: number) => void;
6
- export const __wbg_membered_free: (a: number, b: number) => void;
7
- export const __wbg_summary_free: (a: number, b: number) => void;
8
- export const capability_can: (a: number) => number;
9
- export const capability_proof: (a: number) => number;
10
- export const capability_who: (a: number) => number;
11
5
  export const document___wasm_refgen_toJsDocument: (a: number) => number;
12
6
  export const document_doc_id: (a: number) => number;
7
+ export const document_members: (a: number) => any;
13
8
  export const document_toAgent: (a: number) => number;
14
9
  export const document_toMembered: (a: number) => number;
15
10
  export const document_toPeer: (a: number) => number;
16
- export const summary_access: (a: number) => number;
17
- export const summary_doc: (a: number) => number;
11
+ export const setPanicHook: () => void;
18
12
  export const document_id: (a: number) => number;
19
- export const __wbg_changeid_free: (a: number, b: number) => void;
20
- export const __wbg_delegation_free: (a: number, b: number) => void;
21
- export const __wbg_encryptedcontentwithupdate_free: (a: number, b: number) => void;
22
- export const __wbg_membership_free: (a: number, b: number) => void;
23
- export const __wbg_revocation_free: (a: number, b: number) => void;
24
- export const __wbg_signedinvocation_free: (a: number, b: number) => void;
25
- export const changeid___wasm_refgen_toJsChangeId: (a: number) => number;
26
- export const changeid_bytes: (a: number) => [number, number];
27
- export const changeid_new: (a: number, b: number) => number;
28
- export const delegation_after: (a: number) => number;
29
- export const delegation_can: (a: number) => number;
30
- export const delegation_delegate: (a: number) => number;
31
- export const delegation_proof: (a: number) => number;
32
- export const encryptedcontentwithupdate_encrypted_content: (a: number) => number;
33
- export const encryptedcontentwithupdate_update_op: (a: number) => number;
34
- export const membership_can: (a: number) => number;
35
- export const membership_who: (a: number) => number;
36
- export const revocation_after: (a: number) => number;
37
- export const revocation_proof: (a: number) => number;
38
- export const revocation_revoked: (a: number) => number;
39
- export const revocation_subject_id: (a: number) => number;
40
13
  export const __wbg_access_free: (a: number, b: number) => void;
41
14
  export const __wbg_archive_free: (a: number, b: number) => void;
15
+ export const __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
42
16
  export const __wbg_contactcard_free: (a: number, b: number) => void;
43
- export const __wbg_doccontentrefs_free: (a: number, b: number) => void;
44
17
  export const __wbg_groupid_free: (a: number, b: number) => void;
45
- export const __wbg_individualid_free: (a: number, b: number) => void;
18
+ export const __wbg_identifier_free: (a: number, b: number) => void;
19
+ export const __wbg_membership_free: (a: number, b: number) => void;
46
20
  export const __wbg_signed_free: (a: number, b: number) => void;
47
- export const __wbg_signedrevocation_free: (a: number, b: number) => void;
21
+ export const __wbg_stats_free: (a: number, b: number) => void;
48
22
  export const access_toString: (a: number) => [number, number];
49
23
  export const access_tryFromString: (a: number, b: number) => number;
50
24
  export const archive_toBytes: (a: number) => [number, number, number, number];
@@ -57,27 +31,43 @@ export const contactcard_op: (a: number) => number;
57
31
  export const contactcard_shareKey: (a: number) => number;
58
32
  export const contactcard_signature: (a: number) => [number, number];
59
33
  export const contactcard_toJson: (a: number) => [number, number, number, number];
60
- export const doccontentrefs_addChangeId: (a: number, b: number) => any;
61
- export const doccontentrefs_change_hashes: (a: number) => any;
62
- export const doccontentrefs_docId: (a: number) => number;
63
- export const doccontentrefs_new: (a: number, b: number, c: number) => [number, number, number];
64
34
  export const groupid_toString: (a: number) => [number, number];
65
- export const individualid_bytes: (a: number) => [number, number];
35
+ export const identifier_new: (a: number, b: number) => [number, number, number];
36
+ export const identifier_publicId: () => number;
37
+ export const identifier_toBytes: (a: number) => [number, number];
38
+ export const membership_can: (a: number) => number;
39
+ export const membership_who: (a: number) => number;
66
40
  export const signed_fromBytes: (a: number, b: number) => [number, number, number];
67
41
  export const signed_payload: (a: number) => [number, number];
68
42
  export const signed_signature: (a: number) => [number, number];
69
43
  export const signed_toBytes: (a: number) => [number, number, number, number];
70
44
  export const signed_verify: (a: number) => number;
71
45
  export const signed_verifyingKey: (a: number) => [number, number];
72
- export const signedrevocation_delegation: (a: number) => number;
73
- export const signedrevocation_signature: (a: number) => [number, number];
74
- export const signedrevocation_verify: (a: number) => number;
75
- export const signedrevocation_verifyingKey: (a: number) => [number, number];
46
+ export const stats_activePrekeyCount: (a: number) => bigint;
47
+ export const stats_cgkaOperations: (a: number) => bigint;
48
+ export const stats_delegations: (a: number) => bigint;
49
+ export const stats_docs: (a: number) => bigint;
50
+ export const stats_groups: (a: number) => bigint;
51
+ export const stats_individuals: (a: number) => bigint;
52
+ export const stats_pendingCgkaOperation: (a: number) => bigint;
53
+ export const stats_pendingCgkaOperationByActive: (a: number) => bigint;
54
+ export const stats_pendingDelegated: (a: number) => bigint;
55
+ export const stats_pendingDelegatedByActive: (a: number) => bigint;
56
+ export const stats_pendingPrekeyRotated: (a: number) => bigint;
57
+ export const stats_pendingPrekeyRotatedByActive: (a: number) => bigint;
58
+ export const stats_pendingPrekeysExpanded: (a: number) => bigint;
59
+ export const stats_pendingPrekeysExpandedByActive: (a: number) => bigint;
60
+ export const stats_pendingRevoked: (a: number) => bigint;
61
+ export const stats_pendingRevokedByActive: (a: number) => bigint;
62
+ export const stats_prekeyRotations: (a: number) => bigint;
63
+ export const stats_prekeysExpanded: (a: number) => bigint;
64
+ export const stats_revocations: (a: number) => bigint;
65
+ export const stats_totalOps: (a: number) => bigint;
66
+ export const stats_totalPendingOps: (a: number) => bigint;
76
67
  export const __wbg_agent_free: (a: number, b: number) => void;
77
68
  export const __wbg_allagentevents_free: (a: number, b: number) => void;
78
69
  export const __wbg_ciphertextstore_free: (a: number, b: number) => void;
79
- export const __wbg_group_free: (a: number, b: number) => void;
80
- export const __wbg_history_free: (a: number, b: number) => void;
70
+ export const __wbg_individual_free: (a: number, b: number) => void;
81
71
  export const __wbg_invocation_free: (a: number, b: number) => void;
82
72
  export const __wbg_keyhive_free: (a: number, b: number) => void;
83
73
  export const __wbg_peer_free: (a: number, b: number) => void;
@@ -97,15 +87,10 @@ export const allagentevents_membershipSources: (a: number) => any;
97
87
  export const allagentevents_prekeySources: (a: number) => any;
98
88
  export const ciphertextstore_newFromWebStorage: (a: any) => number;
99
89
  export const ciphertextstore_newInMemory: () => number;
100
- export const group___wasm_refgen_toJsGroup: (a: number) => number;
101
- export const group_groupId: (a: number) => number;
102
- export const group_members: (a: number) => any;
103
- export const group_toAgent: (a: number) => number;
104
- export const group_toMembered: (a: number) => number;
105
- export const group_toPeer: (a: number) => number;
106
- export const history_contentRefs: (a: number) => [number, number];
107
- export const history_delegations: (a: number) => [number, number];
108
- export const history_revocations: (a: number) => [number, number];
90
+ export const individual_id: (a: number) => number;
91
+ export const individual_pickPrekey: (a: number, b: number) => any;
92
+ export const individual_toAgent: (a: number) => number;
93
+ export const individual_toPeer: (a: number) => number;
109
94
  export const keyhive_accessForDoc: (a: number, b: number, c: number) => any;
110
95
  export const keyhive_addMember: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
111
96
  export const keyhive_allAgentEvents: (a: number) => any;
@@ -150,66 +135,13 @@ export const peer_isDocument: (a: number) => number;
150
135
  export const peer_isGroup: (a: number) => number;
151
136
  export const peer_isIndividual: (a: number) => number;
152
137
  export const peer_toString: (a: number) => [number, number];
153
- export const setPanicHook: () => void;
154
- export const group_id: (a: number) => number;
155
- export const peer_id: (a: number) => number;
156
- export const __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
157
- export const __wbg_encrypted_free: (a: number, b: number) => void;
158
- export const __wbg_identifier_free: (a: number, b: number) => void;
159
- export const __wbg_individual_free: (a: number, b: number) => void;
160
- export const __wbg_signeddelegation_free: (a: number, b: number) => void;
161
- export const __wbg_stats_free: (a: number, b: number) => void;
162
- export const encrypted_ciphertext: (a: number) => [number, number];
163
- export const encrypted_content_ref: (a: number) => [number, number];
164
- export const encrypted_nonce: (a: number) => [number, number];
165
- export const encrypted_pcs_key_hash: (a: number) => [number, number];
166
- export const encrypted_pred_refs: (a: number) => [number, number];
167
- export const identifier_new: (a: number, b: number) => [number, number, number];
168
- export const identifier_publicId: () => number;
169
- export const identifier_toBytes: (a: number) => [number, number];
170
- export const individual_id: (a: number) => number;
171
138
  export const individual_individualId: (a: number) => number;
172
- export const individual_pickPrekey: (a: number, b: number) => any;
173
- export const individual_toAgent: (a: number) => number;
174
- export const individual_toPeer: (a: number) => number;
175
- export const signeddelegation_delegation: (a: number) => number;
176
- export const signeddelegation_signature: (a: number) => [number, number];
177
- export const signeddelegation_subjectId: (a: number) => number;
178
- export const signeddelegation_verify: (a: number) => number;
179
- export const signeddelegation_verifyingKey: (a: number) => [number, number];
180
- export const stats_activePrekeyCount: (a: number) => bigint;
181
- export const stats_cgkaOperations: (a: number) => bigint;
182
- export const stats_delegations: (a: number) => bigint;
183
- export const stats_docs: (a: number) => bigint;
184
- export const stats_groups: (a: number) => bigint;
185
- export const stats_individuals: (a: number) => bigint;
186
- export const stats_pendingCgkaOperation: (a: number) => bigint;
187
- export const stats_pendingCgkaOperationByActive: (a: number) => bigint;
188
- export const stats_pendingDelegated: (a: number) => bigint;
189
- export const stats_pendingDelegatedByActive: (a: number) => bigint;
190
- export const stats_pendingPrekeyRotated: (a: number) => bigint;
191
- export const stats_pendingPrekeyRotatedByActive: (a: number) => bigint;
192
- export const stats_pendingPrekeysExpanded: (a: number) => bigint;
193
- export const stats_pendingPrekeysExpandedByActive: (a: number) => bigint;
194
- export const stats_pendingRevoked: (a: number) => bigint;
195
- export const stats_pendingRevokedByActive: (a: number) => bigint;
196
- export const stats_prekeyRotations: (a: number) => bigint;
197
- export const stats_prekeysExpanded: (a: number) => bigint;
198
- export const stats_revocations: (a: number) => bigint;
199
- export const stats_totalOps: (a: number) => bigint;
200
- export const stats_totalPendingOps: (a: number) => bigint;
201
- export const encrypted_toBytes: (a: number) => [number, number];
202
- export const __wbg_signedcgkaoperation_free: (a: number, b: number) => void;
203
- export const signedcgkaoperation_delegation: (a: number) => number;
204
- export const signedcgkaoperation_signature: (a: number) => [number, number];
205
- export const signedcgkaoperation_verify: (a: number) => number;
206
- export const signedcgkaoperation_verifyingKey: (a: number) => [number, number];
139
+ export const peer_id: (a: number) => number;
207
140
  export const __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
208
141
  export const __wbg_cgkaoperation_free: (a: number, b: number) => void;
209
142
  export const __wbg_documentid_free: (a: number, b: number) => void;
210
143
  export const __wbg_event_free: (a: number, b: number) => void;
211
144
  export const __wbg_generatewebcryptoerror_free: (a: number, b: number) => void;
212
- export const __wbg_sharekey_free: (a: number, b: number) => void;
213
145
  export const __wbg_signer_free: (a: number, b: number) => void;
214
146
  export const cgkaoperation_variant: (a: number) => [number, number];
215
147
  export const documentid_new: (a: number, b: number) => [number, number, number];
@@ -232,8 +164,77 @@ export const signer_trySign: (a: number, b: number, c: number) => any;
232
164
  export const signer_variant: (a: number) => [number, number];
233
165
  export const signer_verifyingKey: (a: number) => [number, number];
234
166
  export const signer_webCryptoSigner: (a: any) => any;
235
- export const wasm_bindgen__convert__closures_____invoke__hfe01cfbe4f7f9695: (a: number, b: number, c: any) => [number, number];
236
- export const wasm_bindgen__convert__closures_____invoke__h6ae8cb20b693673b: (a: number, b: number, c: any, d: any) => void;
167
+ export const __wbg_signedcgkaoperation_free: (a: number, b: number) => void;
168
+ export const signedcgkaoperation_delegation: (a: number) => number;
169
+ export const signedcgkaoperation_signature: (a: number) => [number, number];
170
+ export const signedcgkaoperation_verify: (a: number) => number;
171
+ export const signedcgkaoperation_verifyingKey: (a: number) => [number, number];
172
+ export const __wbg_capability_free: (a: number, b: number) => void;
173
+ export const __wbg_group_free: (a: number, b: number) => void;
174
+ export const __wbg_membered_free: (a: number, b: number) => void;
175
+ export const __wbg_revocation_free: (a: number, b: number) => void;
176
+ export const capability_can: (a: number) => number;
177
+ export const capability_proof: (a: number) => number;
178
+ export const capability_who: (a: number) => number;
179
+ export const group___wasm_refgen_toJsGroup: (a: number) => number;
180
+ export const group_groupId: (a: number) => number;
181
+ export const group_members: (a: number) => any;
182
+ export const group_toAgent: (a: number) => number;
183
+ export const group_toMembered: (a: number) => number;
184
+ export const group_toPeer: (a: number) => number;
185
+ export const revocation_after: (a: number) => number;
186
+ export const revocation_proof: (a: number) => number;
187
+ export const revocation_revoked: (a: number) => number;
188
+ export const revocation_subject_id: (a: number) => number;
189
+ export const group_id: (a: number) => number;
190
+ export const __wbg_doccontentrefs_free: (a: number, b: number) => void;
191
+ export const __wbg_encrypted_free: (a: number, b: number) => void;
192
+ export const __wbg_individualid_free: (a: number, b: number) => void;
193
+ export const __wbg_signeddelegation_free: (a: number, b: number) => void;
194
+ export const __wbg_signedrevocation_free: (a: number, b: number) => void;
195
+ export const doccontentrefs_addChangeId: (a: number, b: number) => any;
196
+ export const doccontentrefs_change_hashes: (a: number) => any;
197
+ export const doccontentrefs_docId: (a: number) => number;
198
+ export const doccontentrefs_new: (a: number, b: number, c: number) => [number, number, number];
199
+ export const encrypted_ciphertext: (a: number) => [number, number];
200
+ export const encrypted_content_ref: (a: number) => [number, number];
201
+ export const encrypted_nonce: (a: number) => [number, number];
202
+ export const encrypted_pcs_key_hash: (a: number) => [number, number];
203
+ export const encrypted_pred_refs: (a: number) => [number, number];
204
+ export const individualid_bytes: (a: number) => [number, number];
205
+ export const signeddelegation_delegation: (a: number) => number;
206
+ export const signeddelegation_signature: (a: number) => [number, number];
207
+ export const signeddelegation_subjectId: (a: number) => number;
208
+ export const signeddelegation_verify: (a: number) => number;
209
+ export const signeddelegation_verifyingKey: (a: number) => [number, number];
210
+ export const signedrevocation_delegation: (a: number) => number;
211
+ export const signedrevocation_signature: (a: number) => [number, number];
212
+ export const signedrevocation_verify: (a: number) => number;
213
+ export const signedrevocation_verifyingKey: (a: number) => [number, number];
214
+ export const encrypted_toBytes: (a: number) => [number, number];
215
+ export const __wbg_changeid_free: (a: number, b: number) => void;
216
+ export const __wbg_delegation_free: (a: number, b: number) => void;
217
+ export const __wbg_encryptedcontentwithupdate_free: (a: number, b: number) => void;
218
+ export const __wbg_sharekey_free: (a: number, b: number) => void;
219
+ export const __wbg_signedinvocation_free: (a: number, b: number) => void;
220
+ export const __wbg_summary_free: (a: number, b: number) => void;
221
+ export const changeid___wasm_refgen_toJsChangeId: (a: number) => number;
222
+ export const changeid_bytes: (a: number) => [number, number];
223
+ export const changeid_new: (a: number, b: number) => number;
224
+ export const delegation_after: (a: number) => number;
225
+ export const delegation_can: (a: number) => number;
226
+ export const delegation_delegate: (a: number) => number;
227
+ export const delegation_proof: (a: number) => number;
228
+ export const encryptedcontentwithupdate_encrypted_content: (a: number) => number;
229
+ export const encryptedcontentwithupdate_update_op: (a: number) => number;
230
+ export const summary_access: (a: number) => number;
231
+ export const summary_doc: (a: number) => number;
232
+ export const __wbg_history_free: (a: number, b: number) => void;
233
+ export const history_contentRefs: (a: number) => [number, number];
234
+ export const history_delegations: (a: number) => [number, number];
235
+ export const history_revocations: (a: number) => [number, number];
236
+ export const wasm_bindgen__convert__closures_____invoke__h3280982d348b8ce7: (a: number, b: number, c: any) => [number, number];
237
+ export const wasm_bindgen__convert__closures_____invoke__hed1b57a71ca47f43: (a: number, b: number, c: any, d: any) => void;
237
238
  export const __wbindgen_malloc: (a: number, b: number) => number;
238
239
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
239
240
  export const __wbindgen_exn_store: (a: number) => void;
@@ -142,6 +142,7 @@ export class Document {
142
142
  * Upcasts; to the JS-import type for [`JsDocument`].
143
143
  */
144
144
  __wasm_refgen_toJsDocument(): Document;
145
+ members(): Promise<Capability[]>;
145
146
  toAgent(): Agent;
146
147
  toMembered(): Membered;
147
148
  toPeer(): Peer;