@keyhive/keyhive 0.0.0-alpha.11 → 0.0.0-alpha.12

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.11",
3
+ "version": "0.0.0-alpha.12",
4
4
  "description": "",
5
5
  "main": "pkg/keyhive_wasm.js",
6
6
  "keywords": [],
@@ -249,15 +249,6 @@ function _assertClass(instance, klass) {
249
249
  throw new Error(`expected instance of ${klass.name}`);
250
250
  }
251
251
  }
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
- export function setPanicHook() {
259
- wasm.setPanicHook();
260
- }
261
252
 
262
253
  function passArrayJsValueToWasm0(array, malloc) {
263
254
  const ptr = malloc(array.length * 4, 4) >>> 0;
@@ -268,12 +259,22 @@ function passArrayJsValueToWasm0(array, malloc) {
268
259
  WASM_VECTOR_LEN = array.length;
269
260
  return ptr;
270
261
  }
271
- function __wbg_adapter_14(arg0, arg1, arg2) {
272
- wasm.closure439_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_6(arg0, arg1, arg2) {
273
+ wasm.closure438_externref_shim(arg0, arg1, arg2);
273
274
  }
274
275
 
275
- function __wbg_adapter_259(arg0, arg1, arg2, arg3) {
276
- wasm.closure584_externref_shim(arg0, arg1, arg2, arg3);
276
+ function __wbg_adapter_261(arg0, arg1, arg2, arg3) {
277
+ wasm.closure581_externref_shim(arg0, arg1, arg2, arg3);
277
278
  }
278
279
 
279
280
  const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1842,6 +1843,14 @@ const JsReceiveStaticEventErrorFinalization = (typeof FinalizationRegistry === '
1842
1843
 
1843
1844
  export class JsReceiveStaticEventError {
1844
1845
 
1846
+ static __wrap(ptr) {
1847
+ ptr = ptr >>> 0;
1848
+ const obj = Object.create(JsReceiveStaticEventError.prototype);
1849
+ obj.__wbg_ptr = ptr;
1850
+ JsReceiveStaticEventErrorFinalization.register(obj, obj.__wbg_ptr, obj);
1851
+ return obj;
1852
+ }
1853
+
1845
1854
  __destroy_into_raw() {
1846
1855
  const ptr = this.__wbg_ptr;
1847
1856
  this.__wbg_ptr = 0;
@@ -3143,6 +3152,11 @@ export function __wbg_instanceof_Crypto_33ac2d91cca59233(arg0) {
3143
3152
  return ret;
3144
3153
  };
3145
3154
 
3155
+ export function __wbg_jsreceivestaticeventerror_new(arg0) {
3156
+ const ret = JsReceiveStaticEventError.__wrap(arg0);
3157
+ return ret;
3158
+ };
3159
+
3146
3160
  export function __wbg_keyhive_new(arg0) {
3147
3161
  const ret = Keyhive.__wrap(arg0);
3148
3162
  return ret;
@@ -3165,7 +3179,7 @@ export function __wbg_new_2e3c58a15f39f5f9(arg0, arg1) {
3165
3179
  const a = state0.a;
3166
3180
  state0.a = 0;
3167
3181
  try {
3168
- return __wbg_adapter_259(a, state0.b, arg0, arg1);
3182
+ return __wbg_adapter_261(a, state0.b, arg0, arg1);
3169
3183
  } finally {
3170
3184
  state0.a = a;
3171
3185
  }
@@ -3404,12 +3418,6 @@ export function __wbindgen_cast_25a0a844437d0e92(arg0, arg1) {
3404
3418
  return ret;
3405
3419
  };
3406
3420
 
3407
- export function __wbindgen_cast_499dd6f9d0cae433(arg0, arg1) {
3408
- // Cast intrinsic for `Closure(Closure { dtor_idx: 438, function: Function { arguments: [Externref], shim_idx: 439, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3409
- const ret = makeMutClosure(arg0, arg1, 438, __wbg_adapter_14);
3410
- return ret;
3411
- };
3412
-
3413
3421
  export function __wbindgen_cast_ae91babfc5c19b28(arg0, arg1) {
3414
3422
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
3415
3423
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -3424,6 +3432,12 @@ export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
3424
3432
  return ret;
3425
3433
  };
3426
3434
 
3435
+ export function __wbindgen_cast_d1811abcfa894aa8(arg0, arg1) {
3436
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 437, function: Function { arguments: [Externref], shim_idx: 438, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3437
+ const ret = makeMutClosure(arg0, arg1, 437, __wbg_adapter_6);
3438
+ return ret;
3439
+ };
3440
+
3427
3441
  export function __wbindgen_init_externref_table() {
3428
3442
  const table = wasm.__wbindgen_export_2;
3429
3443
  const offset = table.grow(4);
Binary file
@@ -1,6 +1,9 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const __wbg_invocation_free: (a: number, b: number) => void;
5
+ export const __wbg_addmembererror_free: (a: number, b: number) => void;
6
+ export const addmembererror_message: (a: number) => [number, number];
4
7
  export const __wbg_agent_free: (a: number, b: number) => void;
5
8
  export const agent_toString: (a: number) => [number, number];
6
9
  export const agent_isIndividual: (a: number) => number;
@@ -20,27 +23,21 @@ export const delegation_can: (a: number) => number;
20
23
  export const delegation_proof: (a: number) => number;
21
24
  export const delegation_after: (a: number) => number;
22
25
  export const __wbg_delegationerror_free: (a: number, b: number) => void;
23
- export const __wbg_document_free: (a: number, b: number) => void;
24
- export const document_id: (a: number) => number;
25
- export const document_doc_id: (a: number) => number;
26
- export const document_toPeer: (a: number) => number;
27
- export const document_toAgent: (a: number) => number;
28
- export const document_toMembered: (a: number) => number;
29
26
  export const __wbg_encryptedcontentwithupdate_free: (a: number, b: number) => void;
30
27
  export const encryptedcontentwithupdate_encrypted_content: (a: number) => number;
31
28
  export const encryptedcontentwithupdate_update_op: (a: number) => number;
29
+ export const __wbg_event_free: (a: number, b: number) => void;
30
+ export const event_variant: (a: number) => [number, number];
31
+ export const event_isDelegated: (a: number) => number;
32
+ export const event_isRevoked: (a: number) => number;
33
+ export const event_tryIntoSignedDelegation: (a: number) => number;
34
+ export const event_tryIntoSignedRevocation: (a: number) => number;
35
+ export const __wbg_membered_free: (a: number, b: number) => void;
32
36
  export const __wbg_peer_free: (a: number, b: number) => void;
33
37
  export const peer_toString: (a: number) => [number, number];
34
38
  export const peer_isIndividual: (a: number) => number;
35
39
  export const peer_isGroup: (a: number) => number;
36
40
  export const peer_isDocument: (a: number) => number;
37
- export const __wbg_signed_free: (a: number, b: number) => void;
38
- export const signed_fromBytes: (a: number, b: number) => number;
39
- export const signed_toBytes: (a: number) => [number, number];
40
- export const signed_verify: (a: number) => number;
41
- export const signed_payload: (a: number) => [number, number];
42
- export const signed_verifyingKey: (a: number) => [number, number];
43
- export const signed_signature: (a: number) => [number, number];
44
41
  export const __wbg_signedcgkaoperation_free: (a: number, b: number) => void;
45
42
  export const signedcgkaoperation_verify: (a: number) => number;
46
43
  export const signedcgkaoperation_delegation: (a: number) => number;
@@ -56,6 +53,9 @@ export const signedrevocation_verify: (a: number) => number;
56
53
  export const signedrevocation_delegation: (a: number) => number;
57
54
  export const signedrevocation_verifyingKey: (a: number) => [number, number];
58
55
  export const signedrevocation_signature: (a: number) => [number, number];
56
+ export const __wbg_summary_free: (a: number, b: number) => void;
57
+ export const summary_doc: (a: number) => number;
58
+ export const summary_access: (a: number) => number;
59
59
  export const __wbg_archive_free: (a: number, b: number) => void;
60
60
  export const archive_try_from_bytes: (a: number, b: number) => [number, number, number];
61
61
  export const archive_toBytes: (a: number) => [number, number, number, number];
@@ -64,19 +64,32 @@ export const __wbg_tryfromarchiveerror_free: (a: number, b: number) => void;
64
64
  export const tryfromarchiveerror_toError: (a: number) => any;
65
65
  export const __wbg_serializationerror_free: (a: number, b: number) => void;
66
66
  export const serializationerror_toError: (a: number) => any;
67
- export const __wbg_individual_free: (a: number, b: number) => void;
68
- export const individual_toPeer: (a: number) => number;
69
- export const individual_toAgent: (a: number) => number;
70
- export const individual_id: (a: number) => number;
71
- export const individual_individualId: (a: number) => number;
72
- export const individual_pickPrekey: (a: number, b: number) => number;
67
+ export const __wbg_group_free: (a: number, b: number) => void;
68
+ export const group_id: (a: number) => number;
69
+ export const group_groupId: (a: number) => number;
70
+ export const group_members: (a: number) => [number, number];
71
+ export const group_toPeer: (a: number) => number;
72
+ export const group_toAgent: (a: number) => number;
73
+ export const group_toMembered: (a: number) => number;
73
74
  export const __wbg_changeref_free: (a: number, b: number) => void;
74
75
  export const changeref_new: (a: number, b: number) => number;
75
76
  export const changeref_bytes: (a: number) => [number, number];
76
- export const __wbg_individualid_free: (a: number, b: number) => void;
77
- export const individualid_bytes: (a: number) => [number, number];
78
- export const __wbg_addmembererror_free: (a: number, b: number) => void;
79
- export const addmembererror_message: (a: number) => [number, number];
77
+ export const __wbg_doccontentrefs_free: (a: number, b: number) => void;
78
+ export const doccontentrefs_new: (a: number, b: number, c: number) => [number, number, number];
79
+ export const doccontentrefs_addChangeRef: (a: number, b: number) => void;
80
+ export const doccontentrefs_docId: (a: number) => number;
81
+ export const doccontentrefs_change_hashes: (a: number) => [number, number];
82
+ export const __wbg_signedinvocation_free: (a: number, b: number) => void;
83
+ export const __wbg_history_free: (a: number, b: number) => void;
84
+ export const history_delegations: (a: number) => [number, number];
85
+ export const history_revocations: (a: number) => [number, number];
86
+ export const history_contentRefs: (a: number) => [number, number];
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_sharekey_free: (a: number, b: number) => void;
80
93
  export const __wbg_cgkaoperation_free: (a: number, b: number) => void;
81
94
  export const cgkaoperation_variant: (a: number) => [number, number];
82
95
  export const __wbg_ciphertextstore_free: (a: number, b: number) => void;
@@ -102,11 +115,20 @@ export const encrypted_nonce: (a: number) => [number, number];
102
115
  export const encrypted_pcs_key_hash: (a: number) => [number, number];
103
116
  export const encrypted_content_ref: (a: number) => [number, number];
104
117
  export const encrypted_pred_refs: (a: number) => [number, number];
118
+ export const __wbg_generatedocerror_free: (a: number, b: number) => void;
119
+ export const generatedocerror_message: (a: number) => [number, number];
105
120
  export const __wbg_groupid_free: (a: number, b: number) => void;
106
121
  export const groupid_toString: (a: number) => [number, number];
107
122
  export const __wbg_identifier_free: (a: number, b: number) => void;
108
123
  export const identifier_toBytes: (a: number) => [number, number];
109
124
  export const __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
125
+ export const __wbg_signed_free: (a: number, b: number) => void;
126
+ export const signed_fromBytes: (a: number, b: number) => number;
127
+ export const signed_toBytes: (a: number) => [number, number];
128
+ export const signed_verify: (a: number) => number;
129
+ export const signed_payload: (a: number) => [number, number];
130
+ export const signed_verifyingKey: (a: number) => [number, number];
131
+ export const signed_signature: (a: number) => [number, number];
110
132
  export const __wbg_signer_free: (a: number, b: number) => void;
111
133
  export const signer_generate: () => any;
112
134
  export const signer_generateMemory: () => number;
@@ -122,50 +144,9 @@ export const __wbg_generatewebcryptoerror_free: (a: number, b: number) => void;
122
144
  export const generatewebcryptoerror_message: (a: number) => [number, number];
123
145
  export const __wbg_signingerror_free: (a: number, b: number) => void;
124
146
  export const signingerror_message: (a: number) => [number, number];
147
+ export const setPanicHook: () => void;
125
148
  export const encrypted_toBytes: (a: number) => [number, number];
126
149
  export const identifier_new: (a: number, b: number) => [number, number, number];
127
- export const __wbg_history_free: (a: number, b: number) => void;
128
- export const history_delegations: (a: number) => [number, number];
129
- export const history_revocations: (a: number) => [number, number];
130
- export const history_contentRefs: (a: number) => [number, number];
131
- export const __wbg_invocation_free: (a: number, b: number) => void;
132
- export const __wbg_membered_free: (a: number, b: number) => void;
133
- export const __wbg_sharekey_free: (a: number, b: number) => void;
134
- export const __wbg_summary_free: (a: number, b: number) => void;
135
- export const summary_doc: (a: number) => number;
136
- export const summary_access: (a: number) => number;
137
- export const __wbg_group_free: (a: number, b: number) => void;
138
- export const group_id: (a: number) => number;
139
- export const group_groupId: (a: number) => number;
140
- export const group_members: (a: number) => [number, number];
141
- export const group_toPeer: (a: number) => number;
142
- export const group_toAgent: (a: number) => number;
143
- export const group_toMembered: (a: number) => number;
144
- export const setPanicHook: () => void;
145
- export const __wbg_access_free: (a: number, b: number) => void;
146
- export const access_tryFromString: (a: number, b: number) => number;
147
- export const access_toString: (a: number) => [number, number];
148
- export const __wbg_doccontentrefs_free: (a: number, b: number) => void;
149
- export const doccontentrefs_new: (a: number, b: number, c: number) => [number, number, number];
150
- export const doccontentrefs_addChangeRef: (a: number, b: number) => void;
151
- export const doccontentrefs_docId: (a: number) => number;
152
- export const doccontentrefs_change_hashes: (a: number) => [number, number];
153
- export const __wbg_generatedocerror_free: (a: number, b: number) => void;
154
- export const generatedocerror_message: (a: number) => [number, number];
155
- export const __wbg_revocation_free: (a: number, b: number) => void;
156
- export const revocation_subject_id: (a: number) => number;
157
- export const revocation_revoked: (a: number) => number;
158
- export const revocation_proof: (a: number) => number;
159
- export const revocation_after: (a: number) => number;
160
- export const __wbg_revokemembererror_free: (a: number, b: number) => void;
161
- export const revokemembererror_message: (a: number) => [number, number];
162
- export const __wbg_signedinvocation_free: (a: number, b: number) => void;
163
- export const __wbg_event_free: (a: number, b: number) => void;
164
- export const event_variant: (a: number) => [number, number];
165
- export const event_isDelegated: (a: number) => number;
166
- export const event_isRevoked: (a: number) => number;
167
- export const event_tryIntoSignedDelegation: (a: number) => number;
168
- export const event_tryIntoSignedRevocation: (a: number) => number;
169
150
  export const __wbg_keyhive_free: (a: number, b: number) => void;
170
151
  export const keyhive_init: (a: number, b: number, c: any) => any;
171
152
  export const keyhive_id: (a: number) => number;
@@ -198,6 +179,25 @@ export const __wbg_jsencrypterror_free: (a: number, b: number) => void;
198
179
  export const __wbg_jsdecrypterror_free: (a: number, b: number) => void;
199
180
  export const __wbg_jsreceivestaticeventerror_free: (a: number, b: number) => void;
200
181
  export const keyhive_whoami: (a: number) => number;
182
+ export const __wbg_access_free: (a: number, b: number) => void;
183
+ export const access_tryFromString: (a: number, b: number) => number;
184
+ export const access_toString: (a: number) => [number, number];
185
+ export const __wbg_document_free: (a: number, b: number) => void;
186
+ export const document_id: (a: number) => number;
187
+ export const document_doc_id: (a: number) => number;
188
+ export const document_toPeer: (a: number) => number;
189
+ export const document_toAgent: (a: number) => number;
190
+ export const document_toMembered: (a: number) => number;
191
+ export const __wbg_individual_free: (a: number, b: number) => void;
192
+ export const individual_toPeer: (a: number) => number;
193
+ export const individual_toAgent: (a: number) => number;
194
+ export const individual_id: (a: number) => number;
195
+ export const individual_individualId: (a: number) => number;
196
+ export const individual_pickPrekey: (a: number, b: number) => number;
197
+ export const __wbg_individualid_free: (a: number, b: number) => void;
198
+ export const individualid_bytes: (a: number) => [number, number];
199
+ export const __wbg_revokemembererror_free: (a: number, b: number) => void;
200
+ export const revokemembererror_message: (a: number) => [number, number];
201
201
  export const __wbindgen_exn_store: (a: number) => void;
202
202
  export const __externref_table_alloc: () => number;
203
203
  export const __wbindgen_export_2: WebAssembly.Table;
@@ -207,6 +207,6 @@ export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) =>
207
207
  export const __externref_drop_slice: (a: number, b: number) => void;
208
208
  export const __wbindgen_export_7: WebAssembly.Table;
209
209
  export const __externref_table_dealloc: (a: number) => void;
210
- export const closure439_externref_shim: (a: number, b: number, c: any) => void;
211
- export const closure584_externref_shim: (a: number, b: number, c: any, d: any) => void;
210
+ export const closure438_externref_shim: (a: number, b: number, c: any) => void;
211
+ export const closure581_externref_shim: (a: number, b: number, c: any, d: any) => void;
212
212
  export const __wbindgen_start: () => void;
@@ -239,15 +239,6 @@ function _assertClass(instance, klass) {
239
239
  throw new Error(`expected instance of ${klass.name}`);
240
240
  }
241
241
  }
242
- /**
243
- * Panic hook lets us get better error messages if our Rust code ever panics.
244
- *
245
- * This function needs to be called at least once during initialisation.
246
- * 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
247
- */
248
- exports.setPanicHook = function() {
249
- wasm.setPanicHook();
250
- };
251
242
 
252
243
  function passArrayJsValueToWasm0(array, malloc) {
253
244
  const ptr = malloc(array.length * 4, 4) >>> 0;
@@ -258,12 +249,22 @@ function passArrayJsValueToWasm0(array, malloc) {
258
249
  WASM_VECTOR_LEN = array.length;
259
250
  return ptr;
260
251
  }
261
- function __wbg_adapter_6(arg0, arg1, arg2) {
262
- wasm.closure439_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_10(arg0, arg1, arg2) {
263
+ wasm.closure438_externref_shim(arg0, arg1, arg2);
263
264
  }
264
265
 
265
- function __wbg_adapter_259(arg0, arg1, arg2, arg3) {
266
- wasm.closure584_externref_shim(arg0, arg1, arg2, arg3);
266
+ function __wbg_adapter_261(arg0, arg1, arg2, arg3) {
267
+ wasm.closure581_externref_shim(arg0, arg1, arg2, arg3);
267
268
  }
268
269
 
269
270
  const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1896,6 +1897,14 @@ const JsReceiveStaticEventErrorFinalization = (typeof FinalizationRegistry === '
1896
1897
 
1897
1898
  class JsReceiveStaticEventError {
1898
1899
 
1900
+ static __wrap(ptr) {
1901
+ ptr = ptr >>> 0;
1902
+ const obj = Object.create(JsReceiveStaticEventError.prototype);
1903
+ obj.__wbg_ptr = ptr;
1904
+ JsReceiveStaticEventErrorFinalization.register(obj, obj.__wbg_ptr, obj);
1905
+ return obj;
1906
+ }
1907
+
1899
1908
  __destroy_into_raw() {
1900
1909
  const ptr = this.__wbg_ptr;
1901
1910
  this.__wbg_ptr = 0;
@@ -3235,6 +3244,11 @@ exports.__wbg_instanceof_Crypto_33ac2d91cca59233 = function(arg0) {
3235
3244
  return ret;
3236
3245
  };
3237
3246
 
3247
+ exports.__wbg_jsreceivestaticeventerror_new = function(arg0) {
3248
+ const ret = JsReceiveStaticEventError.__wrap(arg0);
3249
+ return ret;
3250
+ };
3251
+
3238
3252
  exports.__wbg_keyhive_new = function(arg0) {
3239
3253
  const ret = Keyhive.__wrap(arg0);
3240
3254
  return ret;
@@ -3257,7 +3271,7 @@ exports.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
3257
3271
  const a = state0.a;
3258
3272
  state0.a = 0;
3259
3273
  try {
3260
- return __wbg_adapter_259(a, state0.b, arg0, arg1);
3274
+ return __wbg_adapter_261(a, state0.b, arg0, arg1);
3261
3275
  } finally {
3262
3276
  state0.a = a;
3263
3277
  }
@@ -3496,12 +3510,6 @@ exports.__wbindgen_cast_25a0a844437d0e92 = function(arg0, arg1) {
3496
3510
  return ret;
3497
3511
  };
3498
3512
 
3499
- exports.__wbindgen_cast_499dd6f9d0cae433 = function(arg0, arg1) {
3500
- // Cast intrinsic for `Closure(Closure { dtor_idx: 438, function: Function { arguments: [Externref], shim_idx: 439, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3501
- const ret = makeMutClosure(arg0, arg1, 438, __wbg_adapter_6);
3502
- return ret;
3503
- };
3504
-
3505
3513
  exports.__wbindgen_cast_ae91babfc5c19b28 = function(arg0, arg1) {
3506
3514
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
3507
3515
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -3516,6 +3524,12 @@ exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
3516
3524
  return ret;
3517
3525
  };
3518
3526
 
3527
+ exports.__wbindgen_cast_d1811abcfa894aa8 = function(arg0, arg1) {
3528
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 437, function: Function { arguments: [Externref], shim_idx: 438, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3529
+ const ret = makeMutClosure(arg0, arg1, 437, __wbg_adapter_10);
3530
+ return ret;
3531
+ };
3532
+
3519
3533
  exports.__wbindgen_init_externref_table = function() {
3520
3534
  const table = wasm.__wbindgen_export_2;
3521
3535
  const offset = table.grow(4);
Binary file
@@ -1,6 +1,9 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const __wbg_invocation_free: (a: number, b: number) => void;
5
+ export const __wbg_addmembererror_free: (a: number, b: number) => void;
6
+ export const addmembererror_message: (a: number) => [number, number];
4
7
  export const __wbg_agent_free: (a: number, b: number) => void;
5
8
  export const agent_toString: (a: number) => [number, number];
6
9
  export const agent_isIndividual: (a: number) => number;
@@ -20,27 +23,21 @@ export const delegation_can: (a: number) => number;
20
23
  export const delegation_proof: (a: number) => number;
21
24
  export const delegation_after: (a: number) => number;
22
25
  export const __wbg_delegationerror_free: (a: number, b: number) => void;
23
- export const __wbg_document_free: (a: number, b: number) => void;
24
- export const document_id: (a: number) => number;
25
- export const document_doc_id: (a: number) => number;
26
- export const document_toPeer: (a: number) => number;
27
- export const document_toAgent: (a: number) => number;
28
- export const document_toMembered: (a: number) => number;
29
26
  export const __wbg_encryptedcontentwithupdate_free: (a: number, b: number) => void;
30
27
  export const encryptedcontentwithupdate_encrypted_content: (a: number) => number;
31
28
  export const encryptedcontentwithupdate_update_op: (a: number) => number;
29
+ export const __wbg_event_free: (a: number, b: number) => void;
30
+ export const event_variant: (a: number) => [number, number];
31
+ export const event_isDelegated: (a: number) => number;
32
+ export const event_isRevoked: (a: number) => number;
33
+ export const event_tryIntoSignedDelegation: (a: number) => number;
34
+ export const event_tryIntoSignedRevocation: (a: number) => number;
35
+ export const __wbg_membered_free: (a: number, b: number) => void;
32
36
  export const __wbg_peer_free: (a: number, b: number) => void;
33
37
  export const peer_toString: (a: number) => [number, number];
34
38
  export const peer_isIndividual: (a: number) => number;
35
39
  export const peer_isGroup: (a: number) => number;
36
40
  export const peer_isDocument: (a: number) => number;
37
- export const __wbg_signed_free: (a: number, b: number) => void;
38
- export const signed_fromBytes: (a: number, b: number) => number;
39
- export const signed_toBytes: (a: number) => [number, number];
40
- export const signed_verify: (a: number) => number;
41
- export const signed_payload: (a: number) => [number, number];
42
- export const signed_verifyingKey: (a: number) => [number, number];
43
- export const signed_signature: (a: number) => [number, number];
44
41
  export const __wbg_signedcgkaoperation_free: (a: number, b: number) => void;
45
42
  export const signedcgkaoperation_verify: (a: number) => number;
46
43
  export const signedcgkaoperation_delegation: (a: number) => number;
@@ -56,6 +53,9 @@ export const signedrevocation_verify: (a: number) => number;
56
53
  export const signedrevocation_delegation: (a: number) => number;
57
54
  export const signedrevocation_verifyingKey: (a: number) => [number, number];
58
55
  export const signedrevocation_signature: (a: number) => [number, number];
56
+ export const __wbg_summary_free: (a: number, b: number) => void;
57
+ export const summary_doc: (a: number) => number;
58
+ export const summary_access: (a: number) => number;
59
59
  export const __wbg_archive_free: (a: number, b: number) => void;
60
60
  export const archive_try_from_bytes: (a: number, b: number) => [number, number, number];
61
61
  export const archive_toBytes: (a: number) => [number, number, number, number];
@@ -64,19 +64,32 @@ export const __wbg_tryfromarchiveerror_free: (a: number, b: number) => void;
64
64
  export const tryfromarchiveerror_toError: (a: number) => any;
65
65
  export const __wbg_serializationerror_free: (a: number, b: number) => void;
66
66
  export const serializationerror_toError: (a: number) => any;
67
- export const __wbg_individual_free: (a: number, b: number) => void;
68
- export const individual_toPeer: (a: number) => number;
69
- export const individual_toAgent: (a: number) => number;
70
- export const individual_id: (a: number) => number;
71
- export const individual_individualId: (a: number) => number;
72
- export const individual_pickPrekey: (a: number, b: number) => number;
67
+ export const __wbg_group_free: (a: number, b: number) => void;
68
+ export const group_id: (a: number) => number;
69
+ export const group_groupId: (a: number) => number;
70
+ export const group_members: (a: number) => [number, number];
71
+ export const group_toPeer: (a: number) => number;
72
+ export const group_toAgent: (a: number) => number;
73
+ export const group_toMembered: (a: number) => number;
73
74
  export const __wbg_changeref_free: (a: number, b: number) => void;
74
75
  export const changeref_new: (a: number, b: number) => number;
75
76
  export const changeref_bytes: (a: number) => [number, number];
76
- export const __wbg_individualid_free: (a: number, b: number) => void;
77
- export const individualid_bytes: (a: number) => [number, number];
78
- export const __wbg_addmembererror_free: (a: number, b: number) => void;
79
- export const addmembererror_message: (a: number) => [number, number];
77
+ export const __wbg_doccontentrefs_free: (a: number, b: number) => void;
78
+ export const doccontentrefs_new: (a: number, b: number, c: number) => [number, number, number];
79
+ export const doccontentrefs_addChangeRef: (a: number, b: number) => void;
80
+ export const doccontentrefs_docId: (a: number) => number;
81
+ export const doccontentrefs_change_hashes: (a: number) => [number, number];
82
+ export const __wbg_signedinvocation_free: (a: number, b: number) => void;
83
+ export const __wbg_history_free: (a: number, b: number) => void;
84
+ export const history_delegations: (a: number) => [number, number];
85
+ export const history_revocations: (a: number) => [number, number];
86
+ export const history_contentRefs: (a: number) => [number, number];
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_sharekey_free: (a: number, b: number) => void;
80
93
  export const __wbg_cgkaoperation_free: (a: number, b: number) => void;
81
94
  export const cgkaoperation_variant: (a: number) => [number, number];
82
95
  export const __wbg_ciphertextstore_free: (a: number, b: number) => void;
@@ -102,11 +115,20 @@ export const encrypted_nonce: (a: number) => [number, number];
102
115
  export const encrypted_pcs_key_hash: (a: number) => [number, number];
103
116
  export const encrypted_content_ref: (a: number) => [number, number];
104
117
  export const encrypted_pred_refs: (a: number) => [number, number];
118
+ export const __wbg_generatedocerror_free: (a: number, b: number) => void;
119
+ export const generatedocerror_message: (a: number) => [number, number];
105
120
  export const __wbg_groupid_free: (a: number, b: number) => void;
106
121
  export const groupid_toString: (a: number) => [number, number];
107
122
  export const __wbg_identifier_free: (a: number, b: number) => void;
108
123
  export const identifier_toBytes: (a: number) => [number, number];
109
124
  export const __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
125
+ export const __wbg_signed_free: (a: number, b: number) => void;
126
+ export const signed_fromBytes: (a: number, b: number) => number;
127
+ export const signed_toBytes: (a: number) => [number, number];
128
+ export const signed_verify: (a: number) => number;
129
+ export const signed_payload: (a: number) => [number, number];
130
+ export const signed_verifyingKey: (a: number) => [number, number];
131
+ export const signed_signature: (a: number) => [number, number];
110
132
  export const __wbg_signer_free: (a: number, b: number) => void;
111
133
  export const signer_generate: () => any;
112
134
  export const signer_generateMemory: () => number;
@@ -122,50 +144,9 @@ export const __wbg_generatewebcryptoerror_free: (a: number, b: number) => void;
122
144
  export const generatewebcryptoerror_message: (a: number) => [number, number];
123
145
  export const __wbg_signingerror_free: (a: number, b: number) => void;
124
146
  export const signingerror_message: (a: number) => [number, number];
147
+ export const setPanicHook: () => void;
125
148
  export const encrypted_toBytes: (a: number) => [number, number];
126
149
  export const identifier_new: (a: number, b: number) => [number, number, number];
127
- export const __wbg_history_free: (a: number, b: number) => void;
128
- export const history_delegations: (a: number) => [number, number];
129
- export const history_revocations: (a: number) => [number, number];
130
- export const history_contentRefs: (a: number) => [number, number];
131
- export const __wbg_invocation_free: (a: number, b: number) => void;
132
- export const __wbg_membered_free: (a: number, b: number) => void;
133
- export const __wbg_sharekey_free: (a: number, b: number) => void;
134
- export const __wbg_summary_free: (a: number, b: number) => void;
135
- export const summary_doc: (a: number) => number;
136
- export const summary_access: (a: number) => number;
137
- export const __wbg_group_free: (a: number, b: number) => void;
138
- export const group_id: (a: number) => number;
139
- export const group_groupId: (a: number) => number;
140
- export const group_members: (a: number) => [number, number];
141
- export const group_toPeer: (a: number) => number;
142
- export const group_toAgent: (a: number) => number;
143
- export const group_toMembered: (a: number) => number;
144
- export const setPanicHook: () => void;
145
- export const __wbg_access_free: (a: number, b: number) => void;
146
- export const access_tryFromString: (a: number, b: number) => number;
147
- export const access_toString: (a: number) => [number, number];
148
- export const __wbg_doccontentrefs_free: (a: number, b: number) => void;
149
- export const doccontentrefs_new: (a: number, b: number, c: number) => [number, number, number];
150
- export const doccontentrefs_addChangeRef: (a: number, b: number) => void;
151
- export const doccontentrefs_docId: (a: number) => number;
152
- export const doccontentrefs_change_hashes: (a: number) => [number, number];
153
- export const __wbg_generatedocerror_free: (a: number, b: number) => void;
154
- export const generatedocerror_message: (a: number) => [number, number];
155
- export const __wbg_revocation_free: (a: number, b: number) => void;
156
- export const revocation_subject_id: (a: number) => number;
157
- export const revocation_revoked: (a: number) => number;
158
- export const revocation_proof: (a: number) => number;
159
- export const revocation_after: (a: number) => number;
160
- export const __wbg_revokemembererror_free: (a: number, b: number) => void;
161
- export const revokemembererror_message: (a: number) => [number, number];
162
- export const __wbg_signedinvocation_free: (a: number, b: number) => void;
163
- export const __wbg_event_free: (a: number, b: number) => void;
164
- export const event_variant: (a: number) => [number, number];
165
- export const event_isDelegated: (a: number) => number;
166
- export const event_isRevoked: (a: number) => number;
167
- export const event_tryIntoSignedDelegation: (a: number) => number;
168
- export const event_tryIntoSignedRevocation: (a: number) => number;
169
150
  export const __wbg_keyhive_free: (a: number, b: number) => void;
170
151
  export const keyhive_init: (a: number, b: number, c: any) => any;
171
152
  export const keyhive_id: (a: number) => number;
@@ -198,6 +179,25 @@ export const __wbg_jsencrypterror_free: (a: number, b: number) => void;
198
179
  export const __wbg_jsdecrypterror_free: (a: number, b: number) => void;
199
180
  export const __wbg_jsreceivestaticeventerror_free: (a: number, b: number) => void;
200
181
  export const keyhive_whoami: (a: number) => number;
182
+ export const __wbg_access_free: (a: number, b: number) => void;
183
+ export const access_tryFromString: (a: number, b: number) => number;
184
+ export const access_toString: (a: number) => [number, number];
185
+ export const __wbg_document_free: (a: number, b: number) => void;
186
+ export const document_id: (a: number) => number;
187
+ export const document_doc_id: (a: number) => number;
188
+ export const document_toPeer: (a: number) => number;
189
+ export const document_toAgent: (a: number) => number;
190
+ export const document_toMembered: (a: number) => number;
191
+ export const __wbg_individual_free: (a: number, b: number) => void;
192
+ export const individual_toPeer: (a: number) => number;
193
+ export const individual_toAgent: (a: number) => number;
194
+ export const individual_id: (a: number) => number;
195
+ export const individual_individualId: (a: number) => number;
196
+ export const individual_pickPrekey: (a: number, b: number) => number;
197
+ export const __wbg_individualid_free: (a: number, b: number) => void;
198
+ export const individualid_bytes: (a: number) => [number, number];
199
+ export const __wbg_revokemembererror_free: (a: number, b: number) => void;
200
+ export const revokemembererror_message: (a: number) => [number, number];
201
201
  export const __wbindgen_exn_store: (a: number) => void;
202
202
  export const __externref_table_alloc: () => number;
203
203
  export const __wbindgen_export_2: WebAssembly.Table;
@@ -207,6 +207,6 @@ export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) =>
207
207
  export const __externref_drop_slice: (a: number, b: number) => void;
208
208
  export const __wbindgen_export_7: WebAssembly.Table;
209
209
  export const __externref_table_dealloc: (a: number) => void;
210
- export const closure439_externref_shim: (a: number, b: number, c: any) => void;
211
- export const closure584_externref_shim: (a: number, b: number, c: any, d: any) => void;
210
+ export const closure438_externref_shim: (a: number, b: number, c: any) => void;
211
+ export const closure581_externref_shim: (a: number, b: number, c: any, d: any) => void;
212
212
  export const __wbindgen_start: () => void;