@keyhive/keyhive 0.0.0-alpha.49 → 0.0.0-alpha.50

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
@@ -29,19 +29,38 @@ export const signedrevocation_signature: (a: number) => [number, number];
29
29
  export const signedrevocation_verify: (a: number) => number;
30
30
  export const signedrevocation_verifyingKey: (a: number) => [number, number];
31
31
  export const contactcard_individualId: (a: number) => number;
32
+ export const __wbg_access_free: (a: number, b: number) => void;
33
+ export const __wbg_archive_free: (a: number, b: number) => void;
34
+ export const __wbg_event_free: (a: number, b: number) => void;
35
+ export const access_toString: (a: number) => [number, number];
36
+ export const access_tryFromString: (a: number, b: number) => number;
37
+ export const archive_toBytes: (a: number) => [number, number, number, number];
38
+ export const archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
39
+ export const archive_try_from_bytes: (a: number, b: number) => [number, number, number];
40
+ export const event_isDelegated: (a: number) => number;
41
+ export const event_isRevoked: (a: number) => number;
42
+ export const event_toBytes: (a: number) => [number, number, number, number];
43
+ export const event_tryIntoSignedDelegation: (a: number) => number;
44
+ export const event_tryIntoSignedRevocation: (a: number) => number;
45
+ export const event_variant: (a: number) => [number, number];
32
46
  export const __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
33
47
  export const __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
34
48
  export const __wbg_cgkaoperation_free: (a: number, b: number) => void;
49
+ export const __wbg_ciphertextstore_free: (a: number, b: number) => void;
35
50
  export const __wbg_doccontentrefs_free: (a: number, b: number) => void;
36
51
  export const __wbg_documentid_free: (a: number, b: number) => void;
37
52
  export const __wbg_generatewebcryptoerror_free: (a: number, b: number) => void;
53
+ export const __wbg_group_free: (a: number, b: number) => void;
38
54
  export const __wbg_groupid_free: (a: number, b: number) => void;
39
55
  export const __wbg_identifier_free: (a: number, b: number) => void;
56
+ export const __wbg_individualid_free: (a: number, b: number) => void;
40
57
  export const __wbg_membered_free: (a: number, b: number) => void;
41
58
  export const __wbg_peer_free: (a: number, b: number) => void;
42
59
  export const __wbg_signer_free: (a: number, b: number) => void;
43
60
  export const __wbg_stats_free: (a: number, b: number) => void;
44
61
  export const cgkaoperation_variant: (a: number) => [number, number];
62
+ export const ciphertextstore_newFromWebStorage: (a: any) => number;
63
+ export const ciphertextstore_newInMemory: () => number;
45
64
  export const doccontentrefs_addChangeId: (a: number, b: number) => any;
46
65
  export const doccontentrefs_change_hashes: (a: number) => any;
47
66
  export const doccontentrefs_docId: (a: number) => number;
@@ -51,9 +70,15 @@ export const documentid_toBytes: (a: number) => [number, number];
51
70
  export const documentid_toJsValue: (a: number) => any;
52
71
  export const documentid_toString: (a: number) => [number, number];
53
72
  export const generatewebcryptoerror_message: (a: number) => [number, number];
73
+ export const group___wasm_refgen_toGroup: (a: number) => number;
74
+ export const group_members: (a: number) => any;
75
+ export const group_toAgent: (a: number) => number;
76
+ export const group_toMembered: (a: number) => number;
77
+ export const group_toPeer: (a: number) => number;
54
78
  export const groupid_toString: (a: number) => [number, number];
55
79
  export const identifier_new: (a: number, b: number) => [number, number, number];
56
80
  export const identifier_toBytes: (a: number) => [number, number];
81
+ export const individualid_bytes: (a: number) => [number, number];
57
82
  export const peer___wasm_refgen_toPeer: (a: number) => number;
58
83
  export const peer_id: (a: number) => number;
59
84
  export const peer_isDocument: (a: number) => number;
@@ -85,9 +110,23 @@ export const stats_pendingPrekeysExpandedByActive: (a: number) => bigint;
85
110
  export const stats_pendingRevoked: (a: number) => bigint;
86
111
  export const stats_pendingRevokedByActive: (a: number) => bigint;
87
112
  export const stats_revocations: (a: number) => bigint;
113
+ export const group_groupId: (a: number) => number;
114
+ export const group_id: (a: number) => number;
115
+ export const __wbg_encrypted_free: (a: number, b: number) => void;
116
+ export const __wbg_signeddelegation_free: (a: number, b: number) => void;
117
+ export const encrypted_ciphertext: (a: number) => [number, number];
118
+ export const encrypted_content_ref: (a: number) => [number, number];
119
+ export const encrypted_nonce: (a: number) => [number, number];
120
+ export const encrypted_pcs_key_hash: (a: number) => [number, number];
121
+ export const encrypted_pred_refs: (a: number) => [number, number];
122
+ export const signeddelegation_delegation: (a: number) => number;
123
+ export const signeddelegation_signature: (a: number) => [number, number];
124
+ export const signeddelegation_verify: (a: number) => number;
125
+ export const signeddelegation_verifyingKey: (a: number) => [number, number];
126
+ export const encrypted_toBytes: (a: number) => [number, number];
127
+ export const setPanicHook: () => void;
88
128
  export const __wbg_agent_free: (a: number, b: number) => void;
89
129
  export const __wbg_keyhive_free: (a: number, b: number) => void;
90
- export const __wbg_sharekey_free: (a: number, b: number) => void;
91
130
  export const agent_id: (a: number) => number;
92
131
  export const agent_isDocument: (a: number) => number;
93
132
  export const agent_isGroup: (a: number) => number;
@@ -113,6 +152,7 @@ export const keyhive_ingestEventsBytes: (a: number, b: any) => any;
113
152
  export const keyhive_init: (a: number, b: number, c: any) => any;
114
153
  export const keyhive_intoArchive: (a: number) => any;
115
154
  export const keyhive_membershipOpsForAgent: (a: number, b: number) => any;
155
+ export const keyhive_pendingEventHashes: (a: number) => any;
116
156
  export const keyhive_reachableDocs: (a: number) => any;
117
157
  export const keyhive_receiveContactCard: (a: number, b: number) => any;
118
158
  export const keyhive_revokeMember: (a: number, b: number, c: number, d: number) => any;
@@ -123,7 +163,6 @@ export const keyhive_tryDecrypt: (a: number, b: number, c: number) => any;
123
163
  export const keyhive_tryEncrypt: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
124
164
  export const keyhive_tryEncryptArchive: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
125
165
  export const keyhive_trySign: (a: number, b: number, c: number) => any;
126
- export const setPanicHook: () => void;
127
166
  export const keyhive_whoami: (a: number) => number;
128
167
  export const __wbg_changeid_free: (a: number, b: number) => void;
129
168
  export const __wbg_invocation_free: (a: number, b: number) => void;
@@ -139,49 +178,14 @@ export const revocation_revoked: (a: number) => number;
139
178
  export const revocation_subject_id: (a: number) => number;
140
179
  export const summary_access: (a: number) => number;
141
180
  export const summary_doc: (a: number) => number;
142
- export const __wbg_history_free: (a: number, b: number) => void;
143
- export const history_contentRefs: (a: number) => [number, number];
144
- export const history_delegations: (a: number) => [number, number];
145
- export const history_revocations: (a: number) => [number, number];
146
- export const __wbg_encrypted_free: (a: number, b: number) => void;
147
- export const __wbg_signeddelegation_free: (a: number, b: number) => void;
148
- export const encrypted_ciphertext: (a: number) => [number, number];
149
- export const encrypted_content_ref: (a: number) => [number, number];
150
- export const encrypted_nonce: (a: number) => [number, number];
151
- export const encrypted_pcs_key_hash: (a: number) => [number, number];
152
- export const encrypted_pred_refs: (a: number) => [number, number];
153
- export const signeddelegation_delegation: (a: number) => number;
154
- export const signeddelegation_signature: (a: number) => [number, number];
155
- export const signeddelegation_verify: (a: number) => number;
156
- export const signeddelegation_verifyingKey: (a: number) => [number, number];
157
- export const encrypted_toBytes: (a: number) => [number, number];
158
- export const __wbg_access_free: (a: number, b: number) => void;
159
- export const __wbg_archive_free: (a: number, b: number) => void;
160
- export const __wbg_event_free: (a: number, b: number) => void;
161
- export const access_toString: (a: number) => [number, number];
162
- export const access_tryFromString: (a: number, b: number) => number;
163
- export const archive_toBytes: (a: number) => [number, number, number, number];
164
- export const archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
165
- export const archive_try_from_bytes: (a: number, b: number) => [number, number, number];
166
- export const event_isDelegated: (a: number) => number;
167
- export const event_isRevoked: (a: number) => number;
168
- export const event_toBytes: (a: number) => [number, number, number, number];
169
- export const event_tryIntoSignedDelegation: (a: number) => number;
170
- export const event_tryIntoSignedRevocation: (a: number) => number;
171
- export const event_variant: (a: number) => [number, number];
172
181
  export const __wbg_capability_free: (a: number, b: number) => void;
173
- export const __wbg_ciphertextstore_free: (a: number, b: number) => void;
174
182
  export const __wbg_delegation_free: (a: number, b: number) => void;
175
183
  export const __wbg_document_free: (a: number, b: number) => void;
176
- export const __wbg_group_free: (a: number, b: number) => void;
177
184
  export const __wbg_individual_free: (a: number, b: number) => void;
178
- export const __wbg_individualid_free: (a: number, b: number) => void;
179
185
  export const __wbg_membership_free: (a: number, b: number) => void;
180
186
  export const capability_can: (a: number) => number;
181
187
  export const capability_proof: (a: number) => number;
182
188
  export const capability_who: (a: number) => number;
183
- export const ciphertextstore_newFromWebStorage: (a: any) => number;
184
- export const ciphertextstore_newInMemory: () => number;
185
189
  export const delegation_after: (a: number) => number;
186
190
  export const delegation_can: (a: number) => number;
187
191
  export const delegation_delegate: (a: number) => number;
@@ -191,25 +195,22 @@ export const document_doc_id: (a: number) => number;
191
195
  export const document_toAgent: (a: number) => number;
192
196
  export const document_toMembered: (a: number) => number;
193
197
  export const document_toPeer: (a: number) => number;
194
- export const group___wasm_refgen_toGroup: (a: number) => number;
195
- export const group_members: (a: number) => any;
196
- export const group_toAgent: (a: number) => number;
197
- export const group_toMembered: (a: number) => number;
198
- export const group_toPeer: (a: number) => number;
199
198
  export const individual_pickPrekey: (a: number, b: number) => any;
200
199
  export const individual_toAgent: (a: number) => number;
201
200
  export const individual_toPeer: (a: number) => number;
202
- export const individualid_bytes: (a: number) => [number, number];
203
201
  export const membership_can: (a: number) => number;
204
202
  export const membership_who: (a: number) => number;
205
203
  export const document_id: (a: number) => number;
206
- export const group_groupId: (a: number) => number;
207
- export const group_id: (a: number) => number;
208
204
  export const individual_id: (a: number) => number;
209
205
  export const individual_individualId: (a: number) => number;
210
- export const wasm_bindgen__convert__closures_____invoke__h270e774e62b586ab: (a: number, b: number, c: any) => void;
211
- export const wasm_bindgen__closure__destroy__h1ba2ea4e4548722a: (a: number, b: number) => void;
212
- export const wasm_bindgen__convert__closures_____invoke__h1069d9784c192ccc: (a: number, b: number, c: any, d: any) => void;
206
+ export const __wbg_history_free: (a: number, b: number) => void;
207
+ export const __wbg_sharekey_free: (a: number, b: number) => void;
208
+ export const history_contentRefs: (a: number) => [number, number];
209
+ export const history_delegations: (a: number) => [number, number];
210
+ export const history_revocations: (a: number) => [number, number];
211
+ export const wasm_bindgen__convert__closures_____invoke__hb8b6941fceac7069: (a: number, b: number, c: any) => void;
212
+ export const wasm_bindgen__closure__destroy__h56c1987c5374a416: (a: number, b: number) => void;
213
+ export const wasm_bindgen__convert__closures_____invoke__h0e2a667a85375385: (a: number, b: number, c: any, d: any) => void;
213
214
  export const __wbindgen_malloc: (a: number, b: number) => number;
214
215
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
215
216
  export const __wbindgen_exn_store: (a: number) => void;
@@ -1,12 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- /**
4
- * Panic hook lets us get better error messages if our Rust code ever panics.
5
- *
6
- * This function needs to be called at least once during initialisation.
7
- * 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
8
- */
9
- export function setPanicHook(): void;
3
+
10
4
  export class Access {
11
5
  private constructor();
12
6
  free(): void;
@@ -14,6 +8,7 @@ export class Access {
14
8
  toString(): string;
15
9
  static tryFromString(s: string): Access | undefined;
16
10
  }
11
+
17
12
  export class Agent {
18
13
  private constructor();
19
14
  free(): void;
@@ -24,6 +19,7 @@ export class Agent {
24
19
  isGroup(): boolean;
25
20
  readonly id: Identifier;
26
21
  }
22
+
27
23
  export class Archive {
28
24
  free(): void;
29
25
  [Symbol.dispose](): void;
@@ -31,16 +27,19 @@ export class Archive {
31
27
  tryToKeyhive(ciphertext_store: CiphertextStore, signer: Signer, event_handler: Function): Promise<Keyhive>;
32
28
  toBytes(): Uint8Array;
33
29
  }
30
+
34
31
  export class CannotParseEd25519SigningKey {
35
32
  private constructor();
36
33
  free(): void;
37
34
  [Symbol.dispose](): void;
38
35
  }
36
+
39
37
  export class CannotParseIdentifier {
40
38
  private constructor();
41
39
  free(): void;
42
40
  [Symbol.dispose](): void;
43
41
  }
42
+
44
43
  export class Capability {
45
44
  private constructor();
46
45
  free(): void;
@@ -49,12 +48,14 @@ export class Capability {
49
48
  readonly who: Agent;
50
49
  readonly proof: SignedDelegation;
51
50
  }
51
+
52
52
  export class CgkaOperation {
53
53
  private constructor();
54
54
  free(): void;
55
55
  [Symbol.dispose](): void;
56
56
  readonly variant: string;
57
57
  }
58
+
58
59
  export class ChangeId {
59
60
  free(): void;
60
61
  [Symbol.dispose](): void;
@@ -65,6 +66,7 @@ export class ChangeId {
65
66
  constructor(bytes: Uint8Array);
66
67
  readonly bytes: Uint8Array;
67
68
  }
69
+
68
70
  export class CiphertextStore {
69
71
  private constructor();
70
72
  free(): void;
@@ -72,6 +74,7 @@ export class CiphertextStore {
72
74
  static newInMemory(): CiphertextStore;
73
75
  static newFromWebStorage(storage: Storage): CiphertextStore;
74
76
  }
77
+
75
78
  export class ContactCard {
76
79
  private constructor();
77
80
  free(): void;
@@ -84,6 +87,7 @@ export class ContactCard {
84
87
  readonly id: Identifier;
85
88
  readonly shareKey: ShareKey;
86
89
  }
90
+
87
91
  export class Delegation {
88
92
  private constructor();
89
93
  free(): void;
@@ -93,6 +97,7 @@ export class Delegation {
93
97
  readonly proof: SignedDelegation | undefined;
94
98
  readonly delegate: Agent;
95
99
  }
100
+
96
101
  export class DocContentRefs {
97
102
  free(): void;
98
103
  [Symbol.dispose](): void;
@@ -101,6 +106,7 @@ export class DocContentRefs {
101
106
  readonly change_hashes: Promise<ChangeId[]>;
102
107
  readonly docId: DocumentId;
103
108
  }
109
+
104
110
  export class Document {
105
111
  private constructor();
106
112
  free(): void;
@@ -115,6 +121,7 @@ export class Document {
115
121
  readonly id: Identifier;
116
122
  readonly doc_id: DocumentId;
117
123
  }
124
+
118
125
  export class DocumentId {
119
126
  free(): void;
120
127
  [Symbol.dispose](): void;
@@ -123,6 +130,7 @@ export class DocumentId {
123
130
  constructor(bytes: Uint8Array);
124
131
  toBytes(): Uint8Array;
125
132
  }
133
+
126
134
  export class Encrypted {
127
135
  private constructor();
128
136
  free(): void;
@@ -134,6 +142,7 @@ export class Encrypted {
134
142
  readonly nonce: Uint8Array;
135
143
  readonly pred_refs: Uint8Array;
136
144
  }
145
+
137
146
  export class EncryptedContentWithUpdate {
138
147
  private constructor();
139
148
  free(): void;
@@ -141,6 +150,7 @@ export class EncryptedContentWithUpdate {
141
150
  encrypted_content(): Encrypted;
142
151
  update_op(): SignedCgkaOperation | undefined;
143
152
  }
153
+
144
154
  export class Event {
145
155
  private constructor();
146
156
  free(): void;
@@ -156,12 +166,14 @@ export class Event {
156
166
  readonly isDelegated: boolean;
157
167
  readonly variant: string;
158
168
  }
169
+
159
170
  export class GenerateWebCryptoError {
160
171
  private constructor();
161
172
  free(): void;
162
173
  [Symbol.dispose](): void;
163
174
  message(): string;
164
175
  }
176
+
165
177
  export class Group {
166
178
  private constructor();
167
179
  free(): void;
@@ -177,12 +189,14 @@ export class Group {
177
189
  readonly id: Identifier;
178
190
  readonly groupId: GroupId;
179
191
  }
192
+
180
193
  export class GroupId {
181
194
  private constructor();
182
195
  free(): void;
183
196
  [Symbol.dispose](): void;
184
197
  toString(): string;
185
198
  }
199
+
186
200
  export class History {
187
201
  private constructor();
188
202
  free(): void;
@@ -191,12 +205,14 @@ export class History {
191
205
  revocations(): SignedRevocation[];
192
206
  contentRefs(): DocContentRefs[];
193
207
  }
208
+
194
209
  export class Identifier {
195
210
  free(): void;
196
211
  [Symbol.dispose](): void;
197
212
  constructor(bytes: Uint8Array);
198
213
  toBytes(): Uint8Array;
199
214
  }
215
+
200
216
  export class Individual {
201
217
  private constructor();
202
218
  free(): void;
@@ -207,17 +223,20 @@ export class Individual {
207
223
  readonly individualId: IndividualId;
208
224
  readonly id: Identifier;
209
225
  }
226
+
210
227
  export class IndividualId {
211
228
  private constructor();
212
229
  free(): void;
213
230
  [Symbol.dispose](): void;
214
231
  readonly bytes: Uint8Array;
215
232
  }
233
+
216
234
  export class Invocation {
217
235
  private constructor();
218
236
  free(): void;
219
237
  [Symbol.dispose](): void;
220
238
  }
239
+
221
240
  export class Keyhive {
222
241
  private constructor();
223
242
  free(): void;
@@ -241,6 +260,7 @@ export class Keyhive {
241
260
  forcePcsUpdate(doc: Document): Promise<void>;
242
261
  ingestEventsBytes(events_bytes_array: Array<any>): Promise<Array<any>>;
243
262
  tryEncryptArchive(doc: Document, content_ref: ChangeId, pred_refs: ChangeId[], content: Uint8Array): Promise<EncryptedContentWithUpdate>;
263
+ pendingEventHashes(): Promise<Set<any>>;
244
264
  receiveContactCard(contact_card: ContactCard): Promise<Individual>;
245
265
  docMemberCapabilities(doc_id: DocumentId): Promise<Membership[]>;
246
266
  membershipOpsForAgent(agent: Agent): Promise<Map<any, any>>;
@@ -254,11 +274,13 @@ export class Keyhive {
254
274
  readonly whoami: IndividualId;
255
275
  readonly idString: string;
256
276
  }
277
+
257
278
  export class Membered {
258
279
  private constructor();
259
280
  free(): void;
260
281
  [Symbol.dispose](): void;
261
282
  }
283
+
262
284
  export class Membership {
263
285
  private constructor();
264
286
  free(): void;
@@ -266,6 +288,7 @@ export class Membership {
266
288
  readonly can: Access;
267
289
  readonly who: Agent;
268
290
  }
291
+
269
292
  export class Peer {
270
293
  private constructor();
271
294
  free(): void;
@@ -280,6 +303,7 @@ export class Peer {
280
303
  isGroup(): boolean;
281
304
  readonly id: Identifier;
282
305
  }
306
+
283
307
  export class Revocation {
284
308
  private constructor();
285
309
  free(): void;
@@ -289,11 +313,13 @@ export class Revocation {
289
313
  readonly proof: SignedDelegation | undefined;
290
314
  readonly revoked: SignedDelegation;
291
315
  }
316
+
292
317
  export class ShareKey {
293
318
  private constructor();
294
319
  free(): void;
295
320
  [Symbol.dispose](): void;
296
321
  }
322
+
297
323
  export class Signed {
298
324
  private constructor();
299
325
  free(): void;
@@ -305,6 +331,7 @@ export class Signed {
305
331
  readonly payload: Uint8Array;
306
332
  readonly signature: Uint8Array;
307
333
  }
334
+
308
335
  export class SignedCgkaOperation {
309
336
  private constructor();
310
337
  free(): void;
@@ -314,6 +341,7 @@ export class SignedCgkaOperation {
314
341
  readonly verifyingKey: Uint8Array;
315
342
  readonly signature: Uint8Array;
316
343
  }
344
+
317
345
  export class SignedDelegation {
318
346
  private constructor();
319
347
  free(): void;
@@ -323,11 +351,13 @@ export class SignedDelegation {
323
351
  readonly verifyingKey: Uint8Array;
324
352
  readonly signature: Uint8Array;
325
353
  }
354
+
326
355
  export class SignedInvocation {
327
356
  private constructor();
328
357
  free(): void;
329
358
  [Symbol.dispose](): void;
330
359
  }
360
+
331
361
  export class SignedRevocation {
332
362
  private constructor();
333
363
  free(): void;
@@ -337,6 +367,7 @@ export class SignedRevocation {
337
367
  readonly verifyingKey: Uint8Array;
338
368
  readonly signature: Uint8Array;
339
369
  }
370
+
340
371
  export class Signer {
341
372
  private constructor();
342
373
  free(): void;
@@ -351,6 +382,7 @@ export class Signer {
351
382
  readonly verifyingKey: Uint8Array;
352
383
  readonly variant: string;
353
384
  }
385
+
354
386
  export class Stats {
355
387
  private constructor();
356
388
  free(): void;
@@ -372,6 +404,7 @@ export class Stats {
372
404
  readonly docs: bigint;
373
405
  readonly groups: bigint;
374
406
  }
407
+
375
408
  export class Summary {
376
409
  private constructor();
377
410
  free(): void;
@@ -380,6 +413,14 @@ export class Summary {
380
413
  readonly access: Access;
381
414
  }
382
415
 
416
+ /**
417
+ * Panic hook lets us get better error messages if our Rust code ever panics.
418
+ *
419
+ * This function needs to be called at least once during initialisation.
420
+ * 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
421
+ */
422
+ export function setPanicHook(): void;
423
+
383
424
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
384
425
 
385
426
  export interface InitOutput {
@@ -412,19 +453,38 @@ export interface InitOutput {
412
453
  readonly signedrevocation_verify: (a: number) => number;
413
454
  readonly signedrevocation_verifyingKey: (a: number) => [number, number];
414
455
  readonly contactcard_individualId: (a: number) => number;
456
+ readonly __wbg_access_free: (a: number, b: number) => void;
457
+ readonly __wbg_archive_free: (a: number, b: number) => void;
458
+ readonly __wbg_event_free: (a: number, b: number) => void;
459
+ readonly access_toString: (a: number) => [number, number];
460
+ readonly access_tryFromString: (a: number, b: number) => number;
461
+ readonly archive_toBytes: (a: number) => [number, number, number, number];
462
+ readonly archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
463
+ readonly archive_try_from_bytes: (a: number, b: number) => [number, number, number];
464
+ readonly event_isDelegated: (a: number) => number;
465
+ readonly event_isRevoked: (a: number) => number;
466
+ readonly event_toBytes: (a: number) => [number, number, number, number];
467
+ readonly event_tryIntoSignedDelegation: (a: number) => number;
468
+ readonly event_tryIntoSignedRevocation: (a: number) => number;
469
+ readonly event_variant: (a: number) => [number, number];
415
470
  readonly __wbg_cannotparseed25519signingkey_free: (a: number, b: number) => void;
416
471
  readonly __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
417
472
  readonly __wbg_cgkaoperation_free: (a: number, b: number) => void;
473
+ readonly __wbg_ciphertextstore_free: (a: number, b: number) => void;
418
474
  readonly __wbg_doccontentrefs_free: (a: number, b: number) => void;
419
475
  readonly __wbg_documentid_free: (a: number, b: number) => void;
420
476
  readonly __wbg_generatewebcryptoerror_free: (a: number, b: number) => void;
477
+ readonly __wbg_group_free: (a: number, b: number) => void;
421
478
  readonly __wbg_groupid_free: (a: number, b: number) => void;
422
479
  readonly __wbg_identifier_free: (a: number, b: number) => void;
480
+ readonly __wbg_individualid_free: (a: number, b: number) => void;
423
481
  readonly __wbg_membered_free: (a: number, b: number) => void;
424
482
  readonly __wbg_peer_free: (a: number, b: number) => void;
425
483
  readonly __wbg_signer_free: (a: number, b: number) => void;
426
484
  readonly __wbg_stats_free: (a: number, b: number) => void;
427
485
  readonly cgkaoperation_variant: (a: number) => [number, number];
486
+ readonly ciphertextstore_newFromWebStorage: (a: any) => number;
487
+ readonly ciphertextstore_newInMemory: () => number;
428
488
  readonly doccontentrefs_addChangeId: (a: number, b: number) => any;
429
489
  readonly doccontentrefs_change_hashes: (a: number) => any;
430
490
  readonly doccontentrefs_docId: (a: number) => number;
@@ -434,9 +494,15 @@ export interface InitOutput {
434
494
  readonly documentid_toJsValue: (a: number) => any;
435
495
  readonly documentid_toString: (a: number) => [number, number];
436
496
  readonly generatewebcryptoerror_message: (a: number) => [number, number];
497
+ readonly group___wasm_refgen_toGroup: (a: number) => number;
498
+ readonly group_members: (a: number) => any;
499
+ readonly group_toAgent: (a: number) => number;
500
+ readonly group_toMembered: (a: number) => number;
501
+ readonly group_toPeer: (a: number) => number;
437
502
  readonly groupid_toString: (a: number) => [number, number];
438
503
  readonly identifier_new: (a: number, b: number) => [number, number, number];
439
504
  readonly identifier_toBytes: (a: number) => [number, number];
505
+ readonly individualid_bytes: (a: number) => [number, number];
440
506
  readonly peer___wasm_refgen_toPeer: (a: number) => number;
441
507
  readonly peer_id: (a: number) => number;
442
508
  readonly peer_isDocument: (a: number) => number;
@@ -468,9 +534,23 @@ export interface InitOutput {
468
534
  readonly stats_pendingRevoked: (a: number) => bigint;
469
535
  readonly stats_pendingRevokedByActive: (a: number) => bigint;
470
536
  readonly stats_revocations: (a: number) => bigint;
537
+ readonly group_groupId: (a: number) => number;
538
+ readonly group_id: (a: number) => number;
539
+ readonly __wbg_encrypted_free: (a: number, b: number) => void;
540
+ readonly __wbg_signeddelegation_free: (a: number, b: number) => void;
541
+ readonly encrypted_ciphertext: (a: number) => [number, number];
542
+ readonly encrypted_content_ref: (a: number) => [number, number];
543
+ readonly encrypted_nonce: (a: number) => [number, number];
544
+ readonly encrypted_pcs_key_hash: (a: number) => [number, number];
545
+ readonly encrypted_pred_refs: (a: number) => [number, number];
546
+ readonly signeddelegation_delegation: (a: number) => number;
547
+ readonly signeddelegation_signature: (a: number) => [number, number];
548
+ readonly signeddelegation_verify: (a: number) => number;
549
+ readonly signeddelegation_verifyingKey: (a: number) => [number, number];
550
+ readonly encrypted_toBytes: (a: number) => [number, number];
551
+ readonly setPanicHook: () => void;
471
552
  readonly __wbg_agent_free: (a: number, b: number) => void;
472
553
  readonly __wbg_keyhive_free: (a: number, b: number) => void;
473
- readonly __wbg_sharekey_free: (a: number, b: number) => void;
474
554
  readonly agent_id: (a: number) => number;
475
555
  readonly agent_isDocument: (a: number) => number;
476
556
  readonly agent_isGroup: (a: number) => number;
@@ -496,6 +576,7 @@ export interface InitOutput {
496
576
  readonly keyhive_init: (a: number, b: number, c: any) => any;
497
577
  readonly keyhive_intoArchive: (a: number) => any;
498
578
  readonly keyhive_membershipOpsForAgent: (a: number, b: number) => any;
579
+ readonly keyhive_pendingEventHashes: (a: number) => any;
499
580
  readonly keyhive_reachableDocs: (a: number) => any;
500
581
  readonly keyhive_receiveContactCard: (a: number, b: number) => any;
501
582
  readonly keyhive_revokeMember: (a: number, b: number, c: number, d: number) => any;
@@ -506,7 +587,6 @@ export interface InitOutput {
506
587
  readonly keyhive_tryEncrypt: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
507
588
  readonly keyhive_tryEncryptArchive: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
508
589
  readonly keyhive_trySign: (a: number, b: number, c: number) => any;
509
- readonly setPanicHook: () => void;
510
590
  readonly keyhive_whoami: (a: number) => number;
511
591
  readonly __wbg_changeid_free: (a: number, b: number) => void;
512
592
  readonly __wbg_invocation_free: (a: number, b: number) => void;
@@ -522,49 +602,14 @@ export interface InitOutput {
522
602
  readonly revocation_subject_id: (a: number) => number;
523
603
  readonly summary_access: (a: number) => number;
524
604
  readonly summary_doc: (a: number) => number;
525
- readonly __wbg_history_free: (a: number, b: number) => void;
526
- readonly history_contentRefs: (a: number) => [number, number];
527
- readonly history_delegations: (a: number) => [number, number];
528
- readonly history_revocations: (a: number) => [number, number];
529
- readonly __wbg_encrypted_free: (a: number, b: number) => void;
530
- readonly __wbg_signeddelegation_free: (a: number, b: number) => void;
531
- readonly encrypted_ciphertext: (a: number) => [number, number];
532
- readonly encrypted_content_ref: (a: number) => [number, number];
533
- readonly encrypted_nonce: (a: number) => [number, number];
534
- readonly encrypted_pcs_key_hash: (a: number) => [number, number];
535
- readonly encrypted_pred_refs: (a: number) => [number, number];
536
- readonly signeddelegation_delegation: (a: number) => number;
537
- readonly signeddelegation_signature: (a: number) => [number, number];
538
- readonly signeddelegation_verify: (a: number) => number;
539
- readonly signeddelegation_verifyingKey: (a: number) => [number, number];
540
- readonly encrypted_toBytes: (a: number) => [number, number];
541
- readonly __wbg_access_free: (a: number, b: number) => void;
542
- readonly __wbg_archive_free: (a: number, b: number) => void;
543
- readonly __wbg_event_free: (a: number, b: number) => void;
544
- readonly access_toString: (a: number) => [number, number];
545
- readonly access_tryFromString: (a: number, b: number) => number;
546
- readonly archive_toBytes: (a: number) => [number, number, number, number];
547
- readonly archive_tryToKeyhive: (a: number, b: number, c: number, d: any) => any;
548
- readonly archive_try_from_bytes: (a: number, b: number) => [number, number, number];
549
- readonly event_isDelegated: (a: number) => number;
550
- readonly event_isRevoked: (a: number) => number;
551
- readonly event_toBytes: (a: number) => [number, number, number, number];
552
- readonly event_tryIntoSignedDelegation: (a: number) => number;
553
- readonly event_tryIntoSignedRevocation: (a: number) => number;
554
- readonly event_variant: (a: number) => [number, number];
555
605
  readonly __wbg_capability_free: (a: number, b: number) => void;
556
- readonly __wbg_ciphertextstore_free: (a: number, b: number) => void;
557
606
  readonly __wbg_delegation_free: (a: number, b: number) => void;
558
607
  readonly __wbg_document_free: (a: number, b: number) => void;
559
- readonly __wbg_group_free: (a: number, b: number) => void;
560
608
  readonly __wbg_individual_free: (a: number, b: number) => void;
561
- readonly __wbg_individualid_free: (a: number, b: number) => void;
562
609
  readonly __wbg_membership_free: (a: number, b: number) => void;
563
610
  readonly capability_can: (a: number) => number;
564
611
  readonly capability_proof: (a: number) => number;
565
612
  readonly capability_who: (a: number) => number;
566
- readonly ciphertextstore_newFromWebStorage: (a: any) => number;
567
- readonly ciphertextstore_newInMemory: () => number;
568
613
  readonly delegation_after: (a: number) => number;
569
614
  readonly delegation_can: (a: number) => number;
570
615
  readonly delegation_delegate: (a: number) => number;
@@ -574,25 +619,22 @@ export interface InitOutput {
574
619
  readonly document_toAgent: (a: number) => number;
575
620
  readonly document_toMembered: (a: number) => number;
576
621
  readonly document_toPeer: (a: number) => number;
577
- readonly group___wasm_refgen_toGroup: (a: number) => number;
578
- readonly group_members: (a: number) => any;
579
- readonly group_toAgent: (a: number) => number;
580
- readonly group_toMembered: (a: number) => number;
581
- readonly group_toPeer: (a: number) => number;
582
622
  readonly individual_pickPrekey: (a: number, b: number) => any;
583
623
  readonly individual_toAgent: (a: number) => number;
584
624
  readonly individual_toPeer: (a: number) => number;
585
- readonly individualid_bytes: (a: number) => [number, number];
586
625
  readonly membership_can: (a: number) => number;
587
626
  readonly membership_who: (a: number) => number;
588
627
  readonly document_id: (a: number) => number;
589
- readonly group_groupId: (a: number) => number;
590
- readonly group_id: (a: number) => number;
591
628
  readonly individual_id: (a: number) => number;
592
629
  readonly individual_individualId: (a: number) => number;
593
- readonly wasm_bindgen__convert__closures_____invoke__h270e774e62b586ab: (a: number, b: number, c: any) => void;
594
- readonly wasm_bindgen__closure__destroy__h1ba2ea4e4548722a: (a: number, b: number) => void;
595
- readonly wasm_bindgen__convert__closures_____invoke__h1069d9784c192ccc: (a: number, b: number, c: any, d: any) => void;
630
+ readonly __wbg_history_free: (a: number, b: number) => void;
631
+ readonly __wbg_sharekey_free: (a: number, b: number) => void;
632
+ readonly history_contentRefs: (a: number) => [number, number];
633
+ readonly history_delegations: (a: number) => [number, number];
634
+ readonly history_revocations: (a: number) => [number, number];
635
+ readonly wasm_bindgen__convert__closures_____invoke__hb8b6941fceac7069: (a: number, b: number, c: any) => void;
636
+ readonly wasm_bindgen__closure__destroy__h56c1987c5374a416: (a: number, b: number) => void;
637
+ readonly wasm_bindgen__convert__closures_____invoke__h0e2a667a85375385: (a: number, b: number, c: any, d: any) => void;
596
638
  readonly __wbindgen_malloc: (a: number, b: number) => number;
597
639
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
598
640
  readonly __wbindgen_exn_store: (a: number) => void;
@@ -605,6 +647,7 @@ export interface InitOutput {
605
647
  }
606
648
 
607
649
  export type SyncInitInput = BufferSource | WebAssembly.Module;
650
+
608
651
  /**
609
652
  * Instantiates the given `module`, which can either be bytes or
610
653
  * a precompiled `WebAssembly.Module`.