@keyhive/keyhive 0.0.0-alpha.36 → 0.0.0-alpha.38

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.36",
3
+ "version": "0.0.0-alpha.38",
4
4
  "description": "",
5
5
  "main": "pkg/keyhive_wasm.js",
6
6
  "keywords": [],
@@ -334,6 +334,12 @@ export class Stats {
334
334
  private constructor();
335
335
  free(): void;
336
336
  [Symbol.dispose](): void;
337
+ toString(): string;
338
+ readonly individuals: bigint;
339
+ readonly groups: bigint;
340
+ readonly docs: bigint;
341
+ readonly delegations: bigint;
342
+ readonly revocations: bigint;
337
343
  }
338
344
  export class Summary {
339
345
  private constructor();
@@ -236,15 +236,6 @@ function makeMutClosure(arg0, arg1, dtor, f) {
236
236
  CLOSURE_DTORS.register(real, state, state);
237
237
  return real;
238
238
  }
239
- /**
240
- * Panic hook lets us get better error messages if our Rust code ever panics.
241
- *
242
- * This function needs to be called at least once during initialisation.
243
- * https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/template-deep-dive/src-utils-rs.html#2-what-is-console_error_panic_hook
244
- */
245
- export function setPanicHook() {
246
- wasm.setPanicHook();
247
- }
248
239
 
249
240
  function passArrayJsValueToWasm0(array, malloc) {
250
241
  const ptr = malloc(array.length * 4, 4) >>> 0;
@@ -268,12 +259,22 @@ function takeFromExternrefTable0(idx) {
268
259
  wasm.__externref_table_dealloc(idx);
269
260
  return value;
270
261
  }
271
- function __wbg_adapter_8(arg0, arg1, arg2) {
272
- wasm.closure425_externref_shim(arg0, arg1, arg2);
262
+ /**
263
+ * Panic hook lets us get better error messages if our Rust code ever panics.
264
+ *
265
+ * This function needs to be called at least once during initialisation.
266
+ * https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/template-deep-dive/src-utils-rs.html#2-what-is-console_error_panic_hook
267
+ */
268
+ export function setPanicHook() {
269
+ wasm.setPanicHook();
270
+ }
271
+
272
+ function __wbg_adapter_14(arg0, arg1, arg2) {
273
+ wasm.closure427_externref_shim(arg0, arg1, arg2);
273
274
  }
274
275
 
275
- function __wbg_adapter_299(arg0, arg1, arg2, arg3) {
276
- wasm.closure583_externref_shim(arg0, arg1, arg2, arg3);
276
+ function __wbg_adapter_305(arg0, arg1, arg2, arg3) {
277
+ wasm.closure584_externref_shim(arg0, arg1, arg2, arg3);
277
278
  }
278
279
 
279
280
  const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1347,14 +1348,14 @@ export class Group {
1347
1348
  * @returns {Identifier}
1348
1349
  */
1349
1350
  get id() {
1350
- const ret = wasm.group_groupId(this.__wbg_ptr);
1351
+ const ret = wasm.doccontentrefs_docId(this.__wbg_ptr);
1351
1352
  return Identifier.__wrap(ret);
1352
1353
  }
1353
1354
  /**
1354
1355
  * @returns {GroupId}
1355
1356
  */
1356
1357
  get groupId() {
1357
- const ret = wasm.group_groupId(this.__wbg_ptr);
1358
+ const ret = wasm.doccontentrefs_docId(this.__wbg_ptr);
1358
1359
  return GroupId.__wrap(ret);
1359
1360
  }
1360
1361
  /**
@@ -2637,6 +2638,56 @@ export class Stats {
2637
2638
  const ptr = this.__destroy_into_raw();
2638
2639
  wasm.__wbg_stats_free(ptr, 0);
2639
2640
  }
2641
+ /**
2642
+ * @returns {bigint}
2643
+ */
2644
+ get individuals() {
2645
+ const ret = wasm.stats_individuals(this.__wbg_ptr);
2646
+ return BigInt.asUintN(64, ret);
2647
+ }
2648
+ /**
2649
+ * @returns {bigint}
2650
+ */
2651
+ get groups() {
2652
+ const ret = wasm.stats_groups(this.__wbg_ptr);
2653
+ return BigInt.asUintN(64, ret);
2654
+ }
2655
+ /**
2656
+ * @returns {bigint}
2657
+ */
2658
+ get docs() {
2659
+ const ret = wasm.stats_docs(this.__wbg_ptr);
2660
+ return BigInt.asUintN(64, ret);
2661
+ }
2662
+ /**
2663
+ * @returns {bigint}
2664
+ */
2665
+ get delegations() {
2666
+ const ret = wasm.stats_delegations(this.__wbg_ptr);
2667
+ return BigInt.asUintN(64, ret);
2668
+ }
2669
+ /**
2670
+ * @returns {bigint}
2671
+ */
2672
+ get revocations() {
2673
+ const ret = wasm.stats_revocations(this.__wbg_ptr);
2674
+ return BigInt.asUintN(64, ret);
2675
+ }
2676
+ /**
2677
+ * @returns {string}
2678
+ */
2679
+ toString() {
2680
+ let deferred1_0;
2681
+ let deferred1_1;
2682
+ try {
2683
+ const ret = wasm.stats_toString(this.__wbg_ptr);
2684
+ deferred1_0 = ret[0];
2685
+ deferred1_1 = ret[1];
2686
+ return getStringFromWasm0(ret[0], ret[1]);
2687
+ } finally {
2688
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2689
+ }
2690
+ }
2640
2691
  }
2641
2692
  if (Symbol.dispose) Stats.prototype[Symbol.dispose] = Stats.prototype.free;
2642
2693
 
@@ -2949,7 +3000,7 @@ export function __wbg_new_2e3c58a15f39f5f9(arg0, arg1) {
2949
3000
  const a = state0.a;
2950
3001
  state0.a = 0;
2951
3002
  try {
2952
- return __wbg_adapter_299(a, state0.b, arg0, arg1);
3003
+ return __wbg_adapter_305(a, state0.b, arg0, arg1);
2953
3004
  } finally {
2954
3005
  state0.a = a;
2955
3006
  }
@@ -3222,6 +3273,12 @@ export function __wbindgen_cast_25a0a844437d0e92(arg0, arg1) {
3222
3273
  return ret;
3223
3274
  };
3224
3275
 
3276
+ export function __wbindgen_cast_31c2247b25467632(arg0, arg1) {
3277
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 426, function: Function { arguments: [Externref], shim_idx: 427, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3278
+ const ret = makeMutClosure(arg0, arg1, 426, __wbg_adapter_14);
3279
+ return ret;
3280
+ };
3281
+
3225
3282
  export function __wbindgen_cast_6300122139088863(arg0, arg1) {
3226
3283
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
3227
3284
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -3276,12 +3333,6 @@ export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
3276
3333
  return ret;
3277
3334
  };
3278
3335
 
3279
- export function __wbindgen_cast_eec2736b920f1ce2(arg0, arg1) {
3280
- // Cast intrinsic for `Closure(Closure { dtor_idx: 424, function: Function { arguments: [Externref], shim_idx: 425, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3281
- const ret = makeMutClosure(arg0, arg1, 424, __wbg_adapter_8);
3282
- return ret;
3283
- };
3284
-
3285
3336
  export function __wbindgen_init_externref_table() {
3286
3337
  const table = wasm.__wbindgen_export_2;
3287
3338
  const offset = table.grow(4);
Binary file
@@ -1,7 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const setPanicHook: () => void;
5
4
  export const __wbg_agent_free: (a: number, b: number) => void;
6
5
  export const agent_toString: (a: number) => [number, number];
7
6
  export const agent_isIndividual: (a: number) => number;
@@ -23,11 +22,10 @@ export const delegation_after: (a: number) => number;
23
22
  export const __wbg_encryptedcontentwithupdate_free: (a: number, b: number) => void;
24
23
  export const encryptedcontentwithupdate_encrypted_content: (a: number) => number;
25
24
  export const encryptedcontentwithupdate_update_op: (a: number) => number;
26
- export const __wbg_individual_free: (a: number, b: number) => void;
27
- export const individual_toPeer: (a: number) => number;
28
- export const individual_toAgent: (a: number) => number;
29
- export const individual_id: (a: number) => number;
30
- export const individual_pickPrekey: (a: number, b: number) => any;
25
+ export const __wbg_history_free: (a: number, b: number) => void;
26
+ export const history_delegations: (a: number) => [number, number];
27
+ export const history_revocations: (a: number) => [number, number];
28
+ export const history_contentRefs: (a: number) => [number, number];
31
29
  export const __wbg_keyhive_free: (a: number, b: number) => void;
32
30
  export const keyhive_init: (a: number, b: number, c: any) => any;
33
31
  export const keyhive_id: (a: number) => number;
@@ -70,64 +68,6 @@ export const signeddelegation_verify: (a: number) => number;
70
68
  export const signeddelegation_delegation: (a: number) => number;
71
69
  export const signeddelegation_verifyingKey: (a: number) => [number, number];
72
70
  export const signeddelegation_signature: (a: number) => [number, number];
73
- export const individual_individualId: (a: number) => number;
74
- export const __wbg_document_free: (a: number, b: number) => void;
75
- export const document_doc_id: (a: number) => number;
76
- export const document_toPeer: (a: number) => number;
77
- export const document_toAgent: (a: number) => number;
78
- export const document_toMembered: (a: number) => number;
79
- export const document___wasm_refgen_toDocument: (a: number) => number;
80
- export const __wbg_invocation_free: (a: number, b: number) => void;
81
- export const __wbg_stats_free: (a: number, b: number) => void;
82
- export const __wbg_summary_free: (a: number, b: number) => void;
83
- export const summary_doc: (a: number) => number;
84
- export const summary_access: (a: number) => number;
85
- export const document_id: (a: number) => number;
86
- export const __wbg_membered_free: (a: number, b: number) => void;
87
- export const __wbg_revocation_free: (a: number, b: number) => void;
88
- export const revocation_subject_id: (a: number) => number;
89
- export const revocation_revoked: (a: number) => number;
90
- export const revocation_proof: (a: number) => number;
91
- export const revocation_after: (a: number) => number;
92
- export const __wbg_cgkaoperation_free: (a: number, b: number) => void;
93
- export const cgkaoperation_variant: (a: number) => [number, number];
94
- export const __wbg_changeid_free: (a: number, b: number) => void;
95
- export const changeid_new: (a: number, b: number) => number;
96
- export const changeid_bytes: (a: number) => [number, number];
97
- export const changeid___wasm_refgen_toChangeId: (a: number) => number;
98
- export const __wbg_doccontentrefs_free: (a: number, b: number) => void;
99
- export const doccontentrefs_new: (a: number, b: number, c: number) => [number, number, number];
100
- export const doccontentrefs_addChangeId: (a: number, b: number) => any;
101
- export const doccontentrefs_docId: (a: number) => number;
102
- export const doccontentrefs_change_hashes: (a: number) => any;
103
- export const __wbg_documentid_free: (a: number, b: number) => void;
104
- export const documentid_new: (a: number, b: number) => [number, number, number];
105
- export const documentid_toString: (a: number) => [number, number];
106
- export const documentid_toJsValue: (a: number) => any;
107
- export const documentid_toBytes: (a: number) => [number, number];
108
- export const __wbg_event_free: (a: number, b: number) => void;
109
- export const event_variant: (a: number) => [number, number];
110
- export const event_isDelegated: (a: number) => number;
111
- export const event_isRevoked: (a: number) => number;
112
- export const event_tryIntoSignedDelegation: (a: number) => number;
113
- export const event_tryIntoSignedRevocation: (a: number) => number;
114
- export const __wbg_sharekey_free: (a: number, b: number) => void;
115
- export const __wbg_signer_free: (a: number, b: number) => void;
116
- export const signer_generate: () => any;
117
- export const signer_generateMemory: () => number;
118
- export const signer_generateWebCrypto: () => any;
119
- export const signer_memorySignerFromBytes: (a: number, b: number) => [number, number, number];
120
- export const signer_webCryptoSigner: (a: any) => any;
121
- export const signer_variant: (a: number) => [number, number];
122
- export const signer_trySign: (a: number, b: number, c: number) => any;
123
- export const signer_verifyingKey: (a: number) => [number, number];
124
- export const signer_clone: (a: number) => number;
125
- export const __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
126
- export const __wbg_generatewebcryptoerror_free: (a: number, b: number) => void;
127
- export const generatewebcryptoerror_message: (a: number) => [number, number];
128
- export const __wbg_access_free: (a: number, b: number) => void;
129
- export const access_tryFromString: (a: number, b: number) => number;
130
- export const access_toString: (a: number) => [number, number];
131
71
  export const __wbg_archive_free: (a: number, b: number) => void;
132
72
  export const archive_try_from_bytes: (a: number, b: number) => [number, number, number];
133
73
  export const archive_toBytes: (a: number) => [number, number, number, number];
@@ -139,20 +79,36 @@ export const contactcard_signature: (a: number) => [number, number];
139
79
  export const contactcard_toAgent: (a: number) => number;
140
80
  export const contactcard_fromJson: (a: number, b: number) => [number, number, number];
141
81
  export const contactcard_toJson: (a: number) => [number, number, number, number];
82
+ export const __wbg_doccontentrefs_free: (a: number, b: number) => void;
83
+ export const doccontentrefs_new: (a: number, b: number, c: number) => [number, number, number];
84
+ export const doccontentrefs_addChangeId: (a: number, b: number) => any;
85
+ export const doccontentrefs_docId: (a: number) => number;
86
+ export const doccontentrefs_change_hashes: (a: number) => any;
142
87
  export const __wbg_encrypted_free: (a: number, b: number) => void;
143
88
  export const encrypted_ciphertext: (a: number) => [number, number];
144
89
  export const encrypted_nonce: (a: number) => [number, number];
145
90
  export const encrypted_pcs_key_hash: (a: number) => [number, number];
146
91
  export const encrypted_content_ref: (a: number) => [number, number];
147
92
  export const encrypted_pred_refs: (a: number) => [number, number];
148
- export const __wbg_groupid_free: (a: number, b: number) => void;
149
- export const groupid_toString: (a: number) => [number, number];
93
+ export const __wbg_event_free: (a: number, b: number) => void;
94
+ export const event_variant: (a: number) => [number, number];
95
+ export const event_isDelegated: (a: number) => number;
96
+ export const event_isRevoked: (a: number) => number;
97
+ export const event_tryIntoSignedDelegation: (a: number) => number;
98
+ export const event_tryIntoSignedRevocation: (a: number) => number;
99
+ export const __wbg_group_free: (a: number, b: number) => void;
100
+ export const group_members: (a: number) => any;
101
+ export const group_toPeer: (a: number) => number;
102
+ export const group_toAgent: (a: number) => number;
103
+ export const group_toMembered: (a: number) => number;
104
+ export const group___wasm_refgen_toGroup: (a: number) => number;
150
105
  export const __wbg_identifier_free: (a: number, b: number) => void;
151
106
  export const identifier_new: (a: number, b: number) => [number, number, number];
152
107
  export const identifier_toBytes: (a: number) => [number, number];
153
108
  export const __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
154
109
  export const __wbg_individualid_free: (a: number, b: number) => void;
155
110
  export const individualid_bytes: (a: number) => [number, number];
111
+ export const __wbg_membered_free: (a: number, b: number) => void;
156
112
  export const __wbg_peer_free: (a: number, b: number) => void;
157
113
  export const peer_id: (a: number) => number;
158
114
  export const peer_toString: (a: number) => [number, number];
@@ -172,20 +128,70 @@ export const signedrevocation_verify: (a: number) => number;
172
128
  export const signedrevocation_delegation: (a: number) => number;
173
129
  export const signedrevocation_verifyingKey: (a: number) => [number, number];
174
130
  export const signedrevocation_signature: (a: number) => [number, number];
131
+ export const __wbg_stats_free: (a: number, b: number) => void;
132
+ export const stats_individuals: (a: number) => bigint;
133
+ export const stats_groups: (a: number) => bigint;
134
+ export const stats_docs: (a: number) => bigint;
135
+ export const stats_delegations: (a: number) => bigint;
136
+ export const stats_revocations: (a: number) => bigint;
137
+ export const stats_toString: (a: number) => [number, number];
175
138
  export const encrypted_toBytes: (a: number) => [number, number];
176
- export const __wbg_group_free: (a: number, b: number) => void;
177
- export const group_groupId: (a: number) => number;
178
- export const group_members: (a: number) => any;
179
- export const group_toPeer: (a: number) => number;
180
- export const group_toAgent: (a: number) => number;
181
- export const group_toMembered: (a: number) => number;
182
- export const group___wasm_refgen_toGroup: (a: number) => number;
183
- export const __wbg_history_free: (a: number, b: number) => void;
184
- export const history_delegations: (a: number) => [number, number];
185
- export const history_revocations: (a: number) => [number, number];
186
- export const history_contentRefs: (a: number) => [number, number];
187
139
  export const group_id: (a: number) => number;
140
+ export const group_groupId: (a: number) => number;
141
+ export const __wbg_individual_free: (a: number, b: number) => void;
142
+ export const individual_toPeer: (a: number) => number;
143
+ export const individual_toAgent: (a: number) => number;
144
+ export const individual_id: (a: number) => number;
145
+ export const individual_pickPrekey: (a: number, b: number) => any;
146
+ export const individual_individualId: (a: number) => number;
147
+ export const __wbg_invocation_free: (a: number, b: number) => void;
188
148
  export const __wbg_signedinvocation_free: (a: number, b: number) => void;
149
+ export const __wbg_revocation_free: (a: number, b: number) => void;
150
+ export const revocation_subject_id: (a: number) => number;
151
+ export const revocation_revoked: (a: number) => number;
152
+ export const revocation_proof: (a: number) => number;
153
+ export const revocation_after: (a: number) => number;
154
+ export const __wbg_sharekey_free: (a: number, b: number) => void;
155
+ export const setPanicHook: () => void;
156
+ export const __wbg_access_free: (a: number, b: number) => void;
157
+ export const access_tryFromString: (a: number, b: number) => number;
158
+ export const access_toString: (a: number) => [number, number];
159
+ export const __wbg_cgkaoperation_free: (a: number, b: number) => void;
160
+ export const cgkaoperation_variant: (a: number) => [number, number];
161
+ export const __wbg_changeid_free: (a: number, b: number) => void;
162
+ export const changeid_new: (a: number, b: number) => number;
163
+ export const changeid_bytes: (a: number) => [number, number];
164
+ export const changeid___wasm_refgen_toChangeId: (a: number) => number;
165
+ export const __wbg_document_free: (a: number, b: number) => void;
166
+ export const document_doc_id: (a: number) => number;
167
+ export const document_toPeer: (a: number) => number;
168
+ export const document_toAgent: (a: number) => number;
169
+ export const document_toMembered: (a: number) => number;
170
+ export const document___wasm_refgen_toDocument: (a: number) => number;
171
+ export const __wbg_documentid_free: (a: number, b: number) => void;
172
+ export const documentid_new: (a: number, b: number) => [number, number, number];
173
+ export const documentid_toString: (a: number) => [number, number];
174
+ export const documentid_toJsValue: (a: number) => any;
175
+ export const documentid_toBytes: (a: number) => [number, number];
176
+ export const __wbg_groupid_free: (a: number, b: number) => void;
177
+ export const groupid_toString: (a: number) => [number, number];
178
+ export const __wbg_signer_free: (a: number, b: number) => void;
179
+ export const signer_generate: () => any;
180
+ export const signer_generateMemory: () => number;
181
+ export const signer_generateWebCrypto: () => any;
182
+ export const signer_memorySignerFromBytes: (a: number, b: number) => [number, number, number];
183
+ export const signer_webCryptoSigner: (a: any) => any;
184
+ export const signer_variant: (a: number) => [number, number];
185
+ export const signer_trySign: (a: number, b: number, c: number) => any;
186
+ export const signer_verifyingKey: (a: number) => [number, number];
187
+ export const signer_clone: (a: number) => number;
188
+ export const __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
189
+ export const __wbg_generatewebcryptoerror_free: (a: number, b: number) => void;
190
+ export const generatewebcryptoerror_message: (a: number) => [number, number];
191
+ export const __wbg_summary_free: (a: number, b: number) => void;
192
+ export const summary_doc: (a: number) => number;
193
+ export const summary_access: (a: number) => number;
194
+ export const document_id: (a: number) => number;
189
195
  export const __wbindgen_exn_store: (a: number) => void;
190
196
  export const __externref_table_alloc: () => number;
191
197
  export const __wbindgen_export_2: WebAssembly.Table;
@@ -195,6 +201,6 @@ export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) =>
195
201
  export const __externref_drop_slice: (a: number, b: number) => void;
196
202
  export const __wbindgen_export_7: WebAssembly.Table;
197
203
  export const __externref_table_dealloc: (a: number) => void;
198
- export const closure425_externref_shim: (a: number, b: number, c: any) => void;
199
- export const closure583_externref_shim: (a: number, b: number, c: any, d: any) => void;
204
+ export const closure427_externref_shim: (a: number, b: number, c: any) => void;
205
+ export const closure584_externref_shim: (a: number, b: number, c: any, d: any) => void;
200
206
  export const __wbindgen_start: () => void;
@@ -334,6 +334,12 @@ export class Stats {
334
334
  private constructor();
335
335
  free(): void;
336
336
  [Symbol.dispose](): void;
337
+ toString(): string;
338
+ readonly individuals: bigint;
339
+ readonly groups: bigint;
340
+ readonly docs: bigint;
341
+ readonly delegations: bigint;
342
+ readonly revocations: bigint;
337
343
  }
338
344
  export class Summary {
339
345
  private constructor();
@@ -226,15 +226,6 @@ function makeMutClosure(arg0, arg1, dtor, f) {
226
226
  CLOSURE_DTORS.register(real, state, state);
227
227
  return real;
228
228
  }
229
- /**
230
- * Panic hook lets us get better error messages if our Rust code ever panics.
231
- *
232
- * This function needs to be called at least once during initialisation.
233
- * https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/template-deep-dive/src-utils-rs.html#2-what-is-console_error_panic_hook
234
- */
235
- exports.setPanicHook = function() {
236
- wasm.setPanicHook();
237
- };
238
229
 
239
230
  function passArrayJsValueToWasm0(array, malloc) {
240
231
  const ptr = malloc(array.length * 4, 4) >>> 0;
@@ -258,12 +249,22 @@ function takeFromExternrefTable0(idx) {
258
249
  wasm.__externref_table_dealloc(idx);
259
250
  return value;
260
251
  }
261
- function __wbg_adapter_14(arg0, arg1, arg2) {
262
- wasm.closure425_externref_shim(arg0, arg1, arg2);
252
+ /**
253
+ * Panic hook lets us get better error messages if our Rust code ever panics.
254
+ *
255
+ * This function needs to be called at least once during initialisation.
256
+ * https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/template-deep-dive/src-utils-rs.html#2-what-is-console_error_panic_hook
257
+ */
258
+ exports.setPanicHook = function() {
259
+ wasm.setPanicHook();
260
+ };
261
+
262
+ function __wbg_adapter_8(arg0, arg1, arg2) {
263
+ wasm.closure427_externref_shim(arg0, arg1, arg2);
263
264
  }
264
265
 
265
- function __wbg_adapter_299(arg0, arg1, arg2, arg3) {
266
- wasm.closure583_externref_shim(arg0, arg1, arg2, arg3);
266
+ function __wbg_adapter_305(arg0, arg1, arg2, arg3) {
267
+ wasm.closure584_externref_shim(arg0, arg1, arg2, arg3);
267
268
  }
268
269
 
269
270
  const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1373,14 +1374,14 @@ class Group {
1373
1374
  * @returns {Identifier}
1374
1375
  */
1375
1376
  get id() {
1376
- const ret = wasm.group_groupId(this.__wbg_ptr);
1377
+ const ret = wasm.doccontentrefs_docId(this.__wbg_ptr);
1377
1378
  return Identifier.__wrap(ret);
1378
1379
  }
1379
1380
  /**
1380
1381
  * @returns {GroupId}
1381
1382
  */
1382
1383
  get groupId() {
1383
- const ret = wasm.group_groupId(this.__wbg_ptr);
1384
+ const ret = wasm.doccontentrefs_docId(this.__wbg_ptr);
1384
1385
  return GroupId.__wrap(ret);
1385
1386
  }
1386
1387
  /**
@@ -2701,6 +2702,56 @@ class Stats {
2701
2702
  const ptr = this.__destroy_into_raw();
2702
2703
  wasm.__wbg_stats_free(ptr, 0);
2703
2704
  }
2705
+ /**
2706
+ * @returns {bigint}
2707
+ */
2708
+ get individuals() {
2709
+ const ret = wasm.stats_individuals(this.__wbg_ptr);
2710
+ return BigInt.asUintN(64, ret);
2711
+ }
2712
+ /**
2713
+ * @returns {bigint}
2714
+ */
2715
+ get groups() {
2716
+ const ret = wasm.stats_groups(this.__wbg_ptr);
2717
+ return BigInt.asUintN(64, ret);
2718
+ }
2719
+ /**
2720
+ * @returns {bigint}
2721
+ */
2722
+ get docs() {
2723
+ const ret = wasm.stats_docs(this.__wbg_ptr);
2724
+ return BigInt.asUintN(64, ret);
2725
+ }
2726
+ /**
2727
+ * @returns {bigint}
2728
+ */
2729
+ get delegations() {
2730
+ const ret = wasm.stats_delegations(this.__wbg_ptr);
2731
+ return BigInt.asUintN(64, ret);
2732
+ }
2733
+ /**
2734
+ * @returns {bigint}
2735
+ */
2736
+ get revocations() {
2737
+ const ret = wasm.stats_revocations(this.__wbg_ptr);
2738
+ return BigInt.asUintN(64, ret);
2739
+ }
2740
+ /**
2741
+ * @returns {string}
2742
+ */
2743
+ toString() {
2744
+ let deferred1_0;
2745
+ let deferred1_1;
2746
+ try {
2747
+ const ret = wasm.stats_toString(this.__wbg_ptr);
2748
+ deferred1_0 = ret[0];
2749
+ deferred1_1 = ret[1];
2750
+ return getStringFromWasm0(ret[0], ret[1]);
2751
+ } finally {
2752
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2753
+ }
2754
+ }
2704
2755
  }
2705
2756
  if (Symbol.dispose) Stats.prototype[Symbol.dispose] = Stats.prototype.free;
2706
2757
 
@@ -3017,7 +3068,7 @@ exports.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
3017
3068
  const a = state0.a;
3018
3069
  state0.a = 0;
3019
3070
  try {
3020
- return __wbg_adapter_299(a, state0.b, arg0, arg1);
3071
+ return __wbg_adapter_305(a, state0.b, arg0, arg1);
3021
3072
  } finally {
3022
3073
  state0.a = a;
3023
3074
  }
@@ -3290,6 +3341,12 @@ exports.__wbindgen_cast_25a0a844437d0e92 = function(arg0, arg1) {
3290
3341
  return ret;
3291
3342
  };
3292
3343
 
3344
+ exports.__wbindgen_cast_31c2247b25467632 = function(arg0, arg1) {
3345
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 426, function: Function { arguments: [Externref], shim_idx: 427, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3346
+ const ret = makeMutClosure(arg0, arg1, 426, __wbg_adapter_8);
3347
+ return ret;
3348
+ };
3349
+
3293
3350
  exports.__wbindgen_cast_6300122139088863 = function(arg0, arg1) {
3294
3351
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
3295
3352
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -3344,12 +3401,6 @@ exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
3344
3401
  return ret;
3345
3402
  };
3346
3403
 
3347
- exports.__wbindgen_cast_eec2736b920f1ce2 = function(arg0, arg1) {
3348
- // Cast intrinsic for `Closure(Closure { dtor_idx: 424, function: Function { arguments: [Externref], shim_idx: 425, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3349
- const ret = makeMutClosure(arg0, arg1, 424, __wbg_adapter_14);
3350
- return ret;
3351
- };
3352
-
3353
3404
  exports.__wbindgen_init_externref_table = function() {
3354
3405
  const table = wasm.__wbindgen_export_2;
3355
3406
  const offset = table.grow(4);
Binary file