@keyhive/keyhive 0.0.0-alpha.44 → 0.0.0-alpha.46

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.44",
3
+ "version": "0.0.0-alpha.46",
4
4
  "description": "",
5
5
  "main": "pkg/keyhive_wasm.js",
6
6
  "keywords": [],
@@ -358,6 +358,7 @@ export class Stats {
358
358
  readonly delegations: bigint;
359
359
  readonly individuals: bigint;
360
360
  readonly revocations: bigint;
361
+ readonly activePrekeyCount: bigint;
361
362
  readonly docs: bigint;
362
363
  readonly groups: bigint;
363
364
  }
@@ -247,16 +247,6 @@ function passArray8ToWasm0(arg, malloc) {
247
247
  WASM_VECTOR_LEN = arg.length;
248
248
  return ptr;
249
249
  }
250
-
251
- function passArrayJsValueToWasm0(array, malloc) {
252
- const ptr = malloc(array.length * 4, 4) >>> 0;
253
- for (let i = 0; i < array.length; i++) {
254
- const add = addToExternrefTable0(array[i]);
255
- getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
256
- }
257
- WASM_VECTOR_LEN = array.length;
258
- return ptr;
259
- }
260
250
  /**
261
251
  * Panic hook lets us get better error messages if our Rust code ever panics.
262
252
  *
@@ -267,12 +257,21 @@ export function setPanicHook() {
267
257
  wasm.setPanicHook();
268
258
  }
269
259
 
270
- function wasm_bindgen__convert__closures_____invoke__h7f888ae473d7b77e(arg0, arg1, arg2) {
271
- wasm.wasm_bindgen__convert__closures_____invoke__h7f888ae473d7b77e(arg0, arg1, arg2);
260
+ function passArrayJsValueToWasm0(array, malloc) {
261
+ const ptr = malloc(array.length * 4, 4) >>> 0;
262
+ for (let i = 0; i < array.length; i++) {
263
+ const add = addToExternrefTable0(array[i]);
264
+ getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
265
+ }
266
+ WASM_VECTOR_LEN = array.length;
267
+ return ptr;
268
+ }
269
+ function wasm_bindgen__convert__closures_____invoke__h0df73e580b12a696(arg0, arg1, arg2) {
270
+ wasm.wasm_bindgen__convert__closures_____invoke__h0df73e580b12a696(arg0, arg1, arg2);
272
271
  }
273
272
 
274
- function wasm_bindgen__convert__closures_____invoke__h326fdb3bcde44ceb(arg0, arg1, arg2, arg3) {
275
- wasm.wasm_bindgen__convert__closures_____invoke__h326fdb3bcde44ceb(arg0, arg1, arg2, arg3);
273
+ function wasm_bindgen__convert__closures_____invoke__h98c29a8e83383ba7(arg0, arg1, arg2, arg3) {
274
+ wasm.wasm_bindgen__convert__closures_____invoke__h98c29a8e83383ba7(arg0, arg1, arg2, arg3);
276
275
  }
277
276
 
278
277
  const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1384,7 +1383,7 @@ export class Group {
1384
1383
  * @returns {Identifier}
1385
1384
  */
1386
1385
  get id() {
1387
- const ret = wasm.document_doc_id(this.__wbg_ptr);
1386
+ const ret = wasm.doccontentrefs_docId(this.__wbg_ptr);
1388
1387
  return Identifier.__wrap(ret);
1389
1388
  }
1390
1389
  /**
@@ -1405,7 +1404,7 @@ export class Group {
1405
1404
  * @returns {GroupId}
1406
1405
  */
1407
1406
  get groupId() {
1408
- const ret = wasm.document_doc_id(this.__wbg_ptr);
1407
+ const ret = wasm.doccontentrefs_docId(this.__wbg_ptr);
1409
1408
  return GroupId.__wrap(ret);
1410
1409
  }
1411
1410
  /**
@@ -2708,6 +2707,13 @@ export class Stats {
2708
2707
  const ret = wasm.stats_revocations(this.__wbg_ptr);
2709
2708
  return BigInt.asUintN(64, ret);
2710
2709
  }
2710
+ /**
2711
+ * @returns {bigint}
2712
+ */
2713
+ get activePrekeyCount() {
2714
+ const ret = wasm.stats_activePrekeyCount(this.__wbg_ptr);
2715
+ return BigInt.asUintN(64, ret);
2716
+ }
2711
2717
  /**
2712
2718
  * @returns {bigint}
2713
2719
  */
@@ -3107,7 +3113,7 @@ export function __wbg_new_3c3d849046688a66(arg0, arg1) {
3107
3113
  const a = state0.a;
3108
3114
  state0.a = 0;
3109
3115
  try {
3110
- return wasm_bindgen__convert__closures_____invoke__h326fdb3bcde44ceb(a, state0.b, arg0, arg1);
3116
+ return wasm_bindgen__convert__closures_____invoke__h98c29a8e83383ba7(a, state0.b, arg0, arg1);
3111
3117
  } finally {
3112
3118
  state0.a = a;
3113
3119
  }
@@ -3389,15 +3395,15 @@ export function __wbindgen_cast_ae91babfc5c19b28(arg0, arg1) {
3389
3395
  return ret;
3390
3396
  };
3391
3397
 
3392
- export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
3393
- // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
3394
- const ret = getArrayU8FromWasm0(arg0, arg1);
3398
+ export function __wbindgen_cast_b2e692da0ea8478a(arg0, arg1) {
3399
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 464, function: Function { arguments: [Externref], shim_idx: 465, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3400
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5b88280100d48bc0, wasm_bindgen__convert__closures_____invoke__h0df73e580b12a696);
3395
3401
  return ret;
3396
3402
  };
3397
3403
 
3398
- export function __wbindgen_cast_e3bce663fd3c56b3(arg0, arg1) {
3399
- // Cast intrinsic for `Closure(Closure { dtor_idx: 465, function: Function { arguments: [Externref], shim_idx: 466, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3400
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__haffc2f8a6add1279, wasm_bindgen__convert__closures_____invoke__h7f888ae473d7b77e);
3404
+ export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
3405
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
3406
+ const ret = getArrayU8FromWasm0(arg0, arg1);
3401
3407
  return ret;
3402
3408
  };
3403
3409
 
Binary file
@@ -1,20 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const __wbg_agent_free: (a: number, b: number) => void;
5
- export const __wbg_ciphertextstore_free: (a: number, b: number) => void;
6
4
  export const __wbg_contactcard_free: (a: number, b: number) => void;
7
5
  export const __wbg_encryptedcontentwithupdate_free: (a: number, b: number) => void;
8
6
  export const __wbg_signed_free: (a: number, b: number) => void;
9
7
  export const __wbg_signedcgkaoperation_free: (a: number, b: number) => void;
10
8
  export const __wbg_signedrevocation_free: (a: number, b: number) => void;
11
- export const agent_id: (a: number) => number;
12
- export const agent_isDocument: (a: number) => number;
13
- export const agent_isGroup: (a: number) => number;
14
- export const agent_isIndividual: (a: number) => number;
15
- export const agent_toString: (a: number) => [number, number];
16
- export const ciphertextstore_newFromWebStorage: (a: any) => number;
17
- export const ciphertextstore_newInMemory: () => number;
18
9
  export const contactcard_fromJson: (a: number, b: number) => [number, number, number];
19
10
  export const contactcard_id: (a: number) => number;
20
11
  export const contactcard_shareKey: (a: number) => number;
@@ -38,21 +29,14 @@ export const signedrevocation_signature: (a: number) => [number, number];
38
29
  export const signedrevocation_verify: (a: number) => number;
39
30
  export const signedrevocation_verifyingKey: (a: number) => [number, number];
40
31
  export const contactcard_individualId: (a: number) => number;
41
- export const __wbg_access_free: (a: number, b: number) => void;
42
- export const __wbg_archive_free: (a: number, b: number) => void;
43
- export const __wbg_event_free: (a: number, b: number) => void;
44
- export const access_toString: (a: number) => [number, number];
45
- export const access_tryFromString: (a: number, b: number) => number;
46
- export const archive_toBytes: (a: number) => [number, number, number, number];
47
- export const archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
48
- export const archive_try_from_bytes: (a: number, b: number) => [number, number, number];
49
- export const event_isDelegated: (a: number) => number;
50
- export const event_isRevoked: (a: number) => number;
51
- export const event_toBytes: (a: number) => [number, number, number, number];
52
- export const event_tryIntoSignedDelegation: (a: number) => number;
53
- export const event_tryIntoSignedRevocation: (a: number) => number;
54
- export const event_variant: (a: number) => [number, number];
32
+ export const setPanicHook: () => void;
33
+ export const __wbg_agent_free: (a: number, b: number) => void;
55
34
  export const __wbg_keyhive_free: (a: number, b: number) => void;
35
+ export const agent_id: (a: number) => number;
36
+ export const agent_isDocument: (a: number) => number;
37
+ export const agent_isGroup: (a: number) => number;
38
+ export const agent_isIndividual: (a: number) => number;
39
+ export const agent_toString: (a: number) => [number, number];
56
40
  export const keyhive_accessForDoc: (a: number, b: number, c: number) => any;
57
41
  export const keyhive_addMember: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
58
42
  export const keyhive_contactCard: (a: number) => any;
@@ -84,16 +68,60 @@ export const keyhive_tryEncrypt: (a: number, b: number, c: number, d: number, e:
84
68
  export const keyhive_tryEncryptArchive: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
85
69
  export const keyhive_trySign: (a: number, b: number, c: number) => any;
86
70
  export const keyhive_whoami: (a: number) => number;
71
+ export const __wbg_capability_free: (a: number, b: number) => void;
72
+ export const __wbg_ciphertextstore_free: (a: number, b: number) => void;
73
+ export const __wbg_delegation_free: (a: number, b: number) => void;
74
+ export const __wbg_document_free: (a: number, b: number) => void;
75
+ export const __wbg_individual_free: (a: number, b: number) => void;
76
+ export const __wbg_membership_free: (a: number, b: number) => void;
77
+ export const __wbg_sharekey_free: (a: number, b: number) => void;
78
+ export const capability_can: (a: number) => number;
79
+ export const capability_proof: (a: number) => number;
80
+ export const capability_who: (a: number) => number;
81
+ export const ciphertextstore_newFromWebStorage: (a: any) => number;
82
+ export const ciphertextstore_newInMemory: () => number;
83
+ export const delegation_after: (a: number) => number;
84
+ export const delegation_can: (a: number) => number;
85
+ export const delegation_delegate: (a: number) => number;
86
+ export const delegation_proof: (a: number) => number;
87
+ export const document___wasm_refgen_toDocument: (a: number) => number;
88
+ export const document_doc_id: (a: number) => number;
89
+ export const document_toAgent: (a: number) => number;
90
+ export const document_toMembered: (a: number) => number;
91
+ export const document_toPeer: (a: number) => number;
92
+ export const individual_pickPrekey: (a: number, b: number) => any;
93
+ export const individual_toAgent: (a: number) => number;
94
+ export const individual_toPeer: (a: number) => number;
95
+ export const membership_can: (a: number) => number;
96
+ export const membership_who: (a: number) => number;
97
+ export const document_id: (a: number) => number;
98
+ export const individual_id: (a: number) => number;
99
+ export const individual_individualId: (a: number) => number;
100
+ export const __wbg_access_free: (a: number, b: number) => void;
101
+ export const __wbg_archive_free: (a: number, b: number) => void;
102
+ export const __wbg_event_free: (a: number, b: number) => void;
103
+ export const access_toString: (a: number) => [number, number];
104
+ export const access_tryFromString: (a: number, b: number) => number;
105
+ export const archive_toBytes: (a: number) => [number, number, number, number];
106
+ export const archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
107
+ export const archive_try_from_bytes: (a: number, b: number) => [number, number, number];
108
+ export const event_isDelegated: (a: number) => number;
109
+ export const event_isRevoked: (a: number) => number;
110
+ export const event_toBytes: (a: number) => [number, number, number, number];
111
+ export const event_tryIntoSignedDelegation: (a: number) => number;
112
+ export const event_tryIntoSignedRevocation: (a: number) => number;
113
+ export const event_variant: (a: number) => [number, number];
87
114
  export const __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
88
115
  export const __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
89
116
  export const __wbg_cgkaoperation_free: (a: number, b: number) => void;
90
117
  export const __wbg_doccontentrefs_free: (a: number, b: number) => void;
91
118
  export const __wbg_documentid_free: (a: number, b: number) => void;
92
- export const __wbg_encrypted_free: (a: number, b: number) => void;
93
119
  export const __wbg_generatewebcryptoerror_free: (a: number, b: number) => void;
120
+ export const __wbg_group_free: (a: number, b: number) => void;
94
121
  export const __wbg_groupid_free: (a: number, b: number) => void;
95
122
  export const __wbg_identifier_free: (a: number, b: number) => void;
96
123
  export const __wbg_individualid_free: (a: number, b: number) => void;
124
+ export const __wbg_membered_free: (a: number, b: number) => void;
97
125
  export const __wbg_peer_free: (a: number, b: number) => void;
98
126
  export const __wbg_signer_free: (a: number, b: number) => void;
99
127
  export const __wbg_stats_free: (a: number, b: number) => void;
@@ -106,12 +134,12 @@ export const documentid_new: (a: number, b: number) => [number, number, number];
106
134
  export const documentid_toBytes: (a: number) => [number, number];
107
135
  export const documentid_toJsValue: (a: number) => any;
108
136
  export const documentid_toString: (a: number) => [number, number];
109
- export const encrypted_ciphertext: (a: number) => [number, number];
110
- export const encrypted_content_ref: (a: number) => [number, number];
111
- export const encrypted_nonce: (a: number) => [number, number];
112
- export const encrypted_pcs_key_hash: (a: number) => [number, number];
113
- export const encrypted_pred_refs: (a: number) => [number, number];
114
137
  export const generatewebcryptoerror_message: (a: number) => [number, number];
138
+ export const group___wasm_refgen_toGroup: (a: number) => number;
139
+ export const group_members: (a: number) => any;
140
+ export const group_toAgent: (a: number) => number;
141
+ export const group_toMembered: (a: number) => number;
142
+ export const group_toPeer: (a: number) => number;
115
143
  export const groupid_toString: (a: number) => [number, number];
116
144
  export const identifier_new: (a: number, b: number) => [number, number, number];
117
145
  export const identifier_toBytes: (a: number) => [number, number];
@@ -131,17 +159,29 @@ export const signer_trySign: (a: number, b: number, c: number) => any;
131
159
  export const signer_variant: (a: number) => [number, number];
132
160
  export const signer_verifyingKey: (a: number) => [number, number];
133
161
  export const signer_webCryptoSigner: (a: any) => any;
162
+ export const stats_activePrekeyCount: (a: number) => bigint;
134
163
  export const stats_delegations: (a: number) => bigint;
135
164
  export const stats_docs: (a: number) => bigint;
136
165
  export const stats_groups: (a: number) => bigint;
137
166
  export const stats_individuals: (a: number) => bigint;
138
167
  export const stats_revocations: (a: number) => bigint;
168
+ export const group_groupId: (a: number) => number;
169
+ export const group_id: (a: number) => number;
170
+ export const __wbg_encrypted_free: (a: number, b: number) => void;
171
+ export const __wbg_signeddelegation_free: (a: number, b: number) => void;
172
+ export const encrypted_ciphertext: (a: number) => [number, number];
173
+ export const encrypted_content_ref: (a: number) => [number, number];
174
+ export const encrypted_nonce: (a: number) => [number, number];
175
+ export const encrypted_pcs_key_hash: (a: number) => [number, number];
176
+ export const encrypted_pred_refs: (a: number) => [number, number];
177
+ export const signeddelegation_delegation: (a: number) => number;
178
+ export const signeddelegation_signature: (a: number) => [number, number];
179
+ export const signeddelegation_verify: (a: number) => number;
180
+ export const signeddelegation_verifyingKey: (a: number) => [number, number];
139
181
  export const encrypted_toBytes: (a: number) => [number, number];
140
- export const setPanicHook: () => void;
141
182
  export const __wbg_changeid_free: (a: number, b: number) => void;
142
183
  export const __wbg_history_free: (a: number, b: number) => void;
143
184
  export const __wbg_invocation_free: (a: number, b: number) => void;
144
- export const __wbg_membered_free: (a: number, b: number) => void;
145
185
  export const __wbg_revocation_free: (a: number, b: number) => void;
146
186
  export const __wbg_signedinvocation_free: (a: number, b: number) => void;
147
187
  export const __wbg_summary_free: (a: number, b: number) => void;
@@ -157,48 +197,9 @@ export const revocation_revoked: (a: number) => number;
157
197
  export const revocation_subject_id: (a: number) => number;
158
198
  export const summary_access: (a: number) => number;
159
199
  export const summary_doc: (a: number) => number;
160
- export const __wbg_delegation_free: (a: number, b: number) => void;
161
- export const __wbg_document_free: (a: number, b: number) => void;
162
- export const __wbg_group_free: (a: number, b: number) => void;
163
- export const __wbg_individual_free: (a: number, b: number) => void;
164
- export const __wbg_sharekey_free: (a: number, b: number) => void;
165
- export const delegation_after: (a: number) => number;
166
- export const delegation_can: (a: number) => number;
167
- export const delegation_delegate: (a: number) => number;
168
- export const delegation_proof: (a: number) => number;
169
- export const document___wasm_refgen_toDocument: (a: number) => number;
170
- export const document_doc_id: (a: number) => number;
171
- export const document_toAgent: (a: number) => number;
172
- export const document_toMembered: (a: number) => number;
173
- export const document_toPeer: (a: number) => number;
174
- export const group___wasm_refgen_toGroup: (a: number) => number;
175
- export const group_members: (a: number) => any;
176
- export const group_toAgent: (a: number) => number;
177
- export const group_toMembered: (a: number) => number;
178
- export const group_toPeer: (a: number) => number;
179
- export const individual_pickPrekey: (a: number, b: number) => any;
180
- export const individual_toAgent: (a: number) => number;
181
- export const individual_toPeer: (a: number) => number;
182
- export const document_id: (a: number) => number;
183
- export const group_groupId: (a: number) => number;
184
- export const group_id: (a: number) => number;
185
- export const individual_id: (a: number) => number;
186
- export const individual_individualId: (a: number) => number;
187
- export const __wbg_membership_free: (a: number, b: number) => void;
188
- export const __wbg_signeddelegation_free: (a: number, b: number) => void;
189
- export const membership_can: (a: number) => number;
190
- export const membership_who: (a: number) => number;
191
- export const signeddelegation_delegation: (a: number) => number;
192
- export const signeddelegation_signature: (a: number) => [number, number];
193
- export const signeddelegation_verify: (a: number) => number;
194
- export const signeddelegation_verifyingKey: (a: number) => [number, number];
195
- export const __wbg_capability_free: (a: number, b: number) => void;
196
- export const capability_can: (a: number) => number;
197
- export const capability_proof: (a: number) => number;
198
- export const capability_who: (a: number) => number;
199
- export const wasm_bindgen__convert__closures_____invoke__h7f888ae473d7b77e: (a: number, b: number, c: any) => void;
200
- export const wasm_bindgen__closure__destroy__haffc2f8a6add1279: (a: number, b: number) => void;
201
- export const wasm_bindgen__convert__closures_____invoke__h326fdb3bcde44ceb: (a: number, b: number, c: any, d: any) => void;
200
+ export const wasm_bindgen__convert__closures_____invoke__h0df73e580b12a696: (a: number, b: number, c: any) => void;
201
+ export const wasm_bindgen__closure__destroy__h5b88280100d48bc0: (a: number, b: number) => void;
202
+ export const wasm_bindgen__convert__closures_____invoke__h98c29a8e83383ba7: (a: number, b: number, c: any, d: any) => void;
202
203
  export const __wbindgen_malloc: (a: number, b: number) => number;
203
204
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
204
205
  export const __wbindgen_exn_store: (a: number) => void;
@@ -358,6 +358,7 @@ export class Stats {
358
358
  readonly delegations: bigint;
359
359
  readonly individuals: bigint;
360
360
  readonly revocations: bigint;
361
+ readonly activePrekeyCount: bigint;
361
362
  readonly docs: bigint;
362
363
  readonly groups: bigint;
363
364
  }
@@ -237,16 +237,6 @@ function passArray8ToWasm0(arg, malloc) {
237
237
  WASM_VECTOR_LEN = arg.length;
238
238
  return ptr;
239
239
  }
240
-
241
- function passArrayJsValueToWasm0(array, malloc) {
242
- const ptr = malloc(array.length * 4, 4) >>> 0;
243
- for (let i = 0; i < array.length; i++) {
244
- const add = addToExternrefTable0(array[i]);
245
- getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
246
- }
247
- WASM_VECTOR_LEN = array.length;
248
- return ptr;
249
- }
250
240
  /**
251
241
  * Panic hook lets us get better error messages if our Rust code ever panics.
252
242
  *
@@ -257,12 +247,21 @@ exports.setPanicHook = function() {
257
247
  wasm.setPanicHook();
258
248
  };
259
249
 
260
- function wasm_bindgen__convert__closures_____invoke__h7f888ae473d7b77e(arg0, arg1, arg2) {
261
- wasm.wasm_bindgen__convert__closures_____invoke__h7f888ae473d7b77e(arg0, arg1, arg2);
250
+ function passArrayJsValueToWasm0(array, malloc) {
251
+ const ptr = malloc(array.length * 4, 4) >>> 0;
252
+ for (let i = 0; i < array.length; i++) {
253
+ const add = addToExternrefTable0(array[i]);
254
+ getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
255
+ }
256
+ WASM_VECTOR_LEN = array.length;
257
+ return ptr;
258
+ }
259
+ function wasm_bindgen__convert__closures_____invoke__h0df73e580b12a696(arg0, arg1, arg2) {
260
+ wasm.wasm_bindgen__convert__closures_____invoke__h0df73e580b12a696(arg0, arg1, arg2);
262
261
  }
263
262
 
264
- function wasm_bindgen__convert__closures_____invoke__h326fdb3bcde44ceb(arg0, arg1, arg2, arg3) {
265
- wasm.wasm_bindgen__convert__closures_____invoke__h326fdb3bcde44ceb(arg0, arg1, arg2, arg3);
263
+ function wasm_bindgen__convert__closures_____invoke__h98c29a8e83383ba7(arg0, arg1, arg2, arg3) {
264
+ wasm.wasm_bindgen__convert__closures_____invoke__h98c29a8e83383ba7(arg0, arg1, arg2, arg3);
266
265
  }
267
266
 
268
267
  const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1410,7 +1409,7 @@ class Group {
1410
1409
  * @returns {Identifier}
1411
1410
  */
1412
1411
  get id() {
1413
- const ret = wasm.document_doc_id(this.__wbg_ptr);
1412
+ const ret = wasm.doccontentrefs_docId(this.__wbg_ptr);
1414
1413
  return Identifier.__wrap(ret);
1415
1414
  }
1416
1415
  /**
@@ -1431,7 +1430,7 @@ class Group {
1431
1430
  * @returns {GroupId}
1432
1431
  */
1433
1432
  get groupId() {
1434
- const ret = wasm.document_doc_id(this.__wbg_ptr);
1433
+ const ret = wasm.doccontentrefs_docId(this.__wbg_ptr);
1435
1434
  return GroupId.__wrap(ret);
1436
1435
  }
1437
1436
  /**
@@ -2772,6 +2771,13 @@ class Stats {
2772
2771
  const ret = wasm.stats_revocations(this.__wbg_ptr);
2773
2772
  return BigInt.asUintN(64, ret);
2774
2773
  }
2774
+ /**
2775
+ * @returns {bigint}
2776
+ */
2777
+ get activePrekeyCount() {
2778
+ const ret = wasm.stats_activePrekeyCount(this.__wbg_ptr);
2779
+ return BigInt.asUintN(64, ret);
2780
+ }
2775
2781
  /**
2776
2782
  * @returns {bigint}
2777
2783
  */
@@ -3175,7 +3181,7 @@ exports.__wbg_new_3c3d849046688a66 = function(arg0, arg1) {
3175
3181
  const a = state0.a;
3176
3182
  state0.a = 0;
3177
3183
  try {
3178
- return wasm_bindgen__convert__closures_____invoke__h326fdb3bcde44ceb(a, state0.b, arg0, arg1);
3184
+ return wasm_bindgen__convert__closures_____invoke__h98c29a8e83383ba7(a, state0.b, arg0, arg1);
3179
3185
  } finally {
3180
3186
  state0.a = a;
3181
3187
  }
@@ -3457,15 +3463,15 @@ exports.__wbindgen_cast_ae91babfc5c19b28 = function(arg0, arg1) {
3457
3463
  return ret;
3458
3464
  };
3459
3465
 
3460
- exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
3461
- // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
3462
- const ret = getArrayU8FromWasm0(arg0, arg1);
3466
+ exports.__wbindgen_cast_b2e692da0ea8478a = function(arg0, arg1) {
3467
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 464, function: Function { arguments: [Externref], shim_idx: 465, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3468
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5b88280100d48bc0, wasm_bindgen__convert__closures_____invoke__h0df73e580b12a696);
3463
3469
  return ret;
3464
3470
  };
3465
3471
 
3466
- exports.__wbindgen_cast_e3bce663fd3c56b3 = function(arg0, arg1) {
3467
- // Cast intrinsic for `Closure(Closure { dtor_idx: 465, function: Function { arguments: [Externref], shim_idx: 466, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3468
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__haffc2f8a6add1279, wasm_bindgen__convert__closures_____invoke__h7f888ae473d7b77e);
3472
+ exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
3473
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
3474
+ const ret = getArrayU8FromWasm0(arg0, arg1);
3469
3475
  return ret;
3470
3476
  };
3471
3477
 
Binary file