@xmtp/wasm-bindings 1.6.1 → 1.6.6-dev.ce60f3f

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.
@@ -1,5 +1,3 @@
1
- import { JSArrayBufferCopy } from './snippets/wasm-array-cp-201e2a98f0e691f7/copy.min.js';
2
-
3
1
  let wasm;
4
2
 
5
3
  let cachedUint8ArrayMemory0 = null;
@@ -95,41 +93,10 @@ function getDataViewMemory0() {
95
93
  return cachedDataViewMemory0;
96
94
  }
97
95
 
98
- function addToExternrefTable0(obj) {
99
- const idx = wasm.__externref_table_alloc();
100
- wasm.__wbindgen_export_4.set(idx, obj);
101
- return idx;
102
- }
103
-
104
- function handleError(f, args) {
105
- try {
106
- return f.apply(this, args);
107
- } catch (e) {
108
- const idx = addToExternrefTable0(e);
109
- wasm.__wbindgen_exn_store(idx);
110
- }
111
- }
112
-
113
96
  function isLikeNone(x) {
114
97
  return x === undefined || x === null;
115
98
  }
116
99
 
117
- function getArrayU8FromWasm0(ptr, len) {
118
- ptr = ptr >>> 0;
119
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
120
- }
121
-
122
- function getArrayJsValueFromWasm0(ptr, len) {
123
- ptr = ptr >>> 0;
124
- const mem = getDataViewMemory0();
125
- const result = [];
126
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
127
- result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
128
- }
129
- wasm.__externref_drop_slice(ptr, len);
130
- return result;
131
- }
132
-
133
100
  function debugString(val) {
134
101
  // primitive types
135
102
  const type = typeof val;
@@ -195,13 +162,40 @@ function debugString(val) {
195
162
  return className;
196
163
  }
197
164
 
165
+ function addToExternrefTable0(obj) {
166
+ const idx = wasm.__externref_table_alloc();
167
+ wasm.__wbindgen_externrefs.set(idx, obj);
168
+ return idx;
169
+ }
170
+
171
+ function handleError(f, args) {
172
+ try {
173
+ return f.apply(this, args);
174
+ } catch (e) {
175
+ const idx = addToExternrefTable0(e);
176
+ wasm.__wbindgen_exn_store(idx);
177
+ }
178
+ }
179
+
180
+ function getArrayU8FromWasm0(ptr, len) {
181
+ ptr = ptr >>> 0;
182
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
183
+ }
184
+
185
+ function getArrayJsValueFromWasm0(ptr, len) {
186
+ ptr = ptr >>> 0;
187
+ const mem = getDataViewMemory0();
188
+ const result = [];
189
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
190
+ result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
191
+ }
192
+ wasm.__externref_drop_slice(ptr, len);
193
+ return result;
194
+ }
195
+
198
196
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
199
197
  ? { register: () => {}, unregister: () => {} }
200
- : new FinalizationRegistry(
201
- state => {
202
- wasm.__wbindgen_export_7.get(state.dtor)(state.a, state.b);
203
- }
204
- );
198
+ : new FinalizationRegistry(state => state.dtor(state.a, state.b));
205
199
 
206
200
  function makeMutClosure(arg0, arg1, dtor, f) {
207
201
  const state = { a: arg0, b: arg1, cnt: 1, dtor };
@@ -216,26 +210,21 @@ function makeMutClosure(arg0, arg1, dtor, f) {
216
210
  try {
217
211
  return f(a, state.b, ...args);
218
212
  } finally {
219
- if (--state.cnt === 0) {
220
- wasm.__wbindgen_export_7.get(state.dtor)(a, state.b);
221
- CLOSURE_DTORS.unregister(state);
222
- } else {
223
- state.a = a;
224
- }
213
+ state.a = a;
214
+ real._wbg_cb_unref();
215
+ }
216
+ };
217
+ real._wbg_cb_unref = () => {
218
+ if (--state.cnt === 0) {
219
+ state.dtor(state.a, state.b);
220
+ state.a = 0;
221
+ CLOSURE_DTORS.unregister(state);
225
222
  }
226
223
  };
227
- real.original = state;
228
224
  CLOSURE_DTORS.register(real, state, state);
229
225
  return real;
230
226
  }
231
227
 
232
- function passArray8ToWasm0(arg, malloc) {
233
- const ptr = malloc(arg.length * 1, 1) >>> 0;
234
- getUint8ArrayMemory0().set(arg, ptr / 1);
235
- WASM_VECTOR_LEN = arg.length;
236
- return ptr;
237
- }
238
-
239
228
  function passArrayJsValueToWasm0(array, malloc) {
240
229
  const ptr = malloc(array.length * 4, 4) >>> 0;
241
230
  for (let i = 0; i < array.length; i++) {
@@ -246,91 +235,69 @@ function passArrayJsValueToWasm0(array, malloc) {
246
235
  return ptr;
247
236
  }
248
237
 
238
+ function takeFromExternrefTable0(idx) {
239
+ const value = wasm.__wbindgen_externrefs.get(idx);
240
+ wasm.__externref_table_dealloc(idx);
241
+ return value;
242
+ }
243
+
249
244
  function _assertClass(instance, klass) {
250
245
  if (!(instance instanceof klass)) {
251
246
  throw new Error(`expected instance of ${klass.name}`);
252
247
  }
253
248
  }
254
-
255
- function takeFromExternrefTable0(idx) {
256
- const value = wasm.__wbindgen_export_4.get(idx);
257
- wasm.__externref_table_dealloc(idx);
258
- return value;
259
- }
260
249
  /**
261
- * @param {string} signature_text
262
- * @param {Uint8Array} signature_bytes
263
- * @param {Uint8Array} public_key
250
+ * @param {Uint8Array} bytes
251
+ * @returns {RemoteAttachment}
264
252
  */
265
- export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
266
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
267
- const len0 = WASM_VECTOR_LEN;
268
- const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
269
- if (ret[1]) {
270
- throw takeFromExternrefTable0(ret[0]);
253
+ export function decodeRemoteAttachment(bytes) {
254
+ const ret = wasm.decodeRemoteAttachment(bytes);
255
+ if (ret[2]) {
256
+ throw takeFromExternrefTable0(ret[1]);
271
257
  }
258
+ return RemoteAttachment.__wrap(ret[0]);
272
259
  }
273
260
 
274
- /**
275
- * @param {string} v3_host
276
- * @param {string | null | undefined} gateway_host
277
- * @param {SignatureRequestHandle} signature_request
278
- * @returns {Promise<void>}
279
- */
280
- export function applySignatureRequest(v3_host, gateway_host, signature_request) {
281
- const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
282
- const len0 = WASM_VECTOR_LEN;
283
- var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
284
- var len1 = WASM_VECTOR_LEN;
285
- _assertClass(signature_request, SignatureRequestHandle);
286
- const ret = wasm.applySignatureRequest(ptr0, len0, ptr1, len1, signature_request.__wbg_ptr);
287
- return ret;
261
+ function passArray8ToWasm0(arg, malloc) {
262
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
263
+ getUint8ArrayMemory0().set(arg, ptr / 1);
264
+ WASM_VECTOR_LEN = arg.length;
265
+ return ptr;
288
266
  }
289
-
290
267
  /**
291
- * @param {string} v3_host
292
- * @param {string | null | undefined} gateway_host
293
- * @param {Identifier} recovery_identifier
294
- * @param {string} inbox_id
295
- * @param {Uint8Array[]} installation_ids
296
- * @returns {SignatureRequestHandle}
268
+ * @param {RemoteAttachment} remoteAttachment
269
+ * @returns {Uint8Array}
297
270
  */
298
- export function revokeInstallationsSignatureRequest(v3_host, gateway_host, recovery_identifier, inbox_id, installation_ids) {
299
- const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
300
- const len0 = WASM_VECTOR_LEN;
301
- var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
302
- var len1 = WASM_VECTOR_LEN;
303
- const ptr2 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
304
- const len2 = WASM_VECTOR_LEN;
305
- const ptr3 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
306
- const len3 = WASM_VECTOR_LEN;
307
- const ret = wasm.revokeInstallationsSignatureRequest(ptr0, len0, ptr1, len1, recovery_identifier, ptr2, len2, ptr3, len3);
271
+ export function encodeRemoteAttachment(remoteAttachment) {
272
+ _assertClass(remoteAttachment, RemoteAttachment);
273
+ var ptr0 = remoteAttachment.__destroy_into_raw();
274
+ const ret = wasm.encodeRemoteAttachment(ptr0);
308
275
  if (ret[2]) {
309
276
  throw takeFromExternrefTable0(ret[1]);
310
277
  }
311
- return SignatureRequestHandle.__wrap(ret[0]);
278
+ return takeFromExternrefTable0(ret[0]);
312
279
  }
313
280
 
314
281
  /**
315
282
  * @param {Uint8Array} bytes
316
- * @returns {MultiRemoteAttachment}
283
+ * @returns {Reply}
317
284
  */
318
- export function decodeMultiRemoteAttachment(bytes) {
319
- const ret = wasm.decodeMultiRemoteAttachment(bytes);
285
+ export function decodeReply(bytes) {
286
+ const ret = wasm.decodeReply(bytes);
320
287
  if (ret[2]) {
321
288
  throw takeFromExternrefTable0(ret[1]);
322
289
  }
323
- return MultiRemoteAttachment.__wrap(ret[0]);
290
+ return Reply.__wrap(ret[0]);
324
291
  }
325
292
 
326
293
  /**
327
- * @param {MultiRemoteAttachment} multiRemoteAttachment
294
+ * @param {Reply} reply
328
295
  * @returns {Uint8Array}
329
296
  */
330
- export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
331
- _assertClass(multiRemoteAttachment, MultiRemoteAttachment);
332
- var ptr0 = multiRemoteAttachment.__destroy_into_raw();
333
- const ret = wasm.encodeMultiRemoteAttachment(ptr0);
297
+ export function encodeReply(reply) {
298
+ _assertClass(reply, Reply);
299
+ var ptr0 = reply.__destroy_into_raw();
300
+ const ret = wasm.encodeReply(ptr0);
334
301
  if (ret[2]) {
335
302
  throw takeFromExternrefTable0(ret[1]);
336
303
  }
@@ -338,13 +305,13 @@ export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
338
305
  }
339
306
 
340
307
  /**
341
- * @param {Reaction} reaction
308
+ * @param {Actions} actions
342
309
  * @returns {Uint8Array}
343
310
  */
344
- export function encodeReaction(reaction) {
345
- _assertClass(reaction, Reaction);
346
- var ptr0 = reaction.__destroy_into_raw();
347
- const ret = wasm.encodeReaction(ptr0);
311
+ export function encodeActions(actions) {
312
+ _assertClass(actions, Actions);
313
+ var ptr0 = actions.__destroy_into_raw();
314
+ const ret = wasm.encodeActions(ptr0);
348
315
  if (ret[2]) {
349
316
  throw takeFromExternrefTable0(ret[1]);
350
317
  }
@@ -353,79 +320,41 @@ export function encodeReaction(reaction) {
353
320
 
354
321
  /**
355
322
  * @param {Uint8Array} bytes
356
- * @returns {Reaction}
323
+ * @returns {Actions}
357
324
  */
358
- export function decodeReaction(bytes) {
359
- const ret = wasm.decodeReaction(bytes);
325
+ export function decodeActions(bytes) {
326
+ const ret = wasm.decodeActions(bytes);
360
327
  if (ret[2]) {
361
328
  throw takeFromExternrefTable0(ret[1]);
362
329
  }
363
- return Reaction.__wrap(ret[0]);
330
+ return Actions.__wrap(ret[0]);
364
331
  }
365
332
 
366
333
  /**
367
334
  * @param {string} host
368
- * @param {string} inbox_id
369
- * @param {Identifier} account_identifier
370
- * @param {string | null} [db_path]
371
- * @param {Uint8Array | null} [encryption_key]
372
- * @param {string | null} [device_sync_server_url]
373
- * @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
374
- * @param {LogOptions | null} [log_options]
375
- * @param {boolean | null} [allow_offline]
376
- * @param {boolean | null} [disable_events]
377
- * @param {string | null} [app_version]
378
- * @param {string | null} [gateway_host]
379
- * @returns {Promise<Client>}
335
+ * @param {string | null | undefined} gatewayHost
336
+ * @param {Identifier} accountIdentifier
337
+ * @returns {Promise<string | undefined>}
380
338
  */
381
- export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline, disable_events, app_version, gateway_host) {
339
+ export function getInboxIdForIdentifier(host, gatewayHost, accountIdentifier) {
382
340
  const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
383
341
  const len0 = WASM_VECTOR_LEN;
384
- const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
385
- const len1 = WASM_VECTOR_LEN;
386
- var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
387
- var len2 = WASM_VECTOR_LEN;
388
- var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
389
- var len3 = WASM_VECTOR_LEN;
390
- let ptr4 = 0;
391
- if (!isLikeNone(log_options)) {
392
- _assertClass(log_options, LogOptions);
393
- ptr4 = log_options.__destroy_into_raw();
394
- }
395
- var ptr5 = isLikeNone(app_version) ? 0 : passStringToWasm0(app_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
396
- var len5 = WASM_VECTOR_LEN;
397
- var ptr6 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
398
- var len6 = WASM_VECTOR_LEN;
399
- const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, isLikeNone(device_sync_worker_mode) ? 3 : ((__wbindgen_enum_DeviceSyncWorkerMode.indexOf(device_sync_worker_mode) + 1 || 3) - 1), ptr4, isLikeNone(allow_offline) ? 0xFFFFFF : allow_offline ? 1 : 0, isLikeNone(disable_events) ? 0xFFFFFF : disable_events ? 1 : 0, ptr5, len5, ptr6, len6);
400
- return ret;
401
- }
402
-
403
- /**
404
- * @param {string} v3_host
405
- * @param {string | null | undefined} gateway_host
406
- * @param {string[]} inbox_ids
407
- * @returns {Promise<InboxState[]>}
408
- */
409
- export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
410
- const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
411
- const len0 = WASM_VECTOR_LEN;
412
- var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
342
+ var ptr1 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
413
343
  var len1 = WASM_VECTOR_LEN;
414
- const ptr2 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
415
- const len2 = WASM_VECTOR_LEN;
416
- const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
344
+ const ret = wasm.getInboxIdForIdentifier(ptr0, len0, ptr1, len1, accountIdentifier);
417
345
  return ret;
418
346
  }
419
347
 
420
348
  /**
421
349
  * @param {Identifier} accountIdentifier
350
+ * @param {bigint | null} [nonce]
422
351
  * @returns {string}
423
352
  */
424
- export function generateInboxId(accountIdentifier) {
353
+ export function generateInboxId(accountIdentifier, nonce) {
425
354
  let deferred2_0;
426
355
  let deferred2_1;
427
356
  try {
428
- const ret = wasm.generateInboxId(accountIdentifier);
357
+ const ret = wasm.generateInboxId(accountIdentifier, !isLikeNone(nonce), isLikeNone(nonce) ? BigInt(0) : nonce);
429
358
  var ptr1 = ret[0];
430
359
  var len1 = ret[1];
431
360
  if (ret[3]) {
@@ -441,53 +370,399 @@ export function generateInboxId(accountIdentifier) {
441
370
  }
442
371
 
443
372
  /**
444
- * @param {string} v3_host
445
- * @param {string | null | undefined} gateway_host
446
- * @param {Identifier} accountIdentifier
447
- * @returns {Promise<string | undefined>}
373
+ * @param {Uint8Array} bytes
374
+ * @returns {GroupUpdated}
448
375
  */
449
- export function getInboxIdForIdentifier(v3_host, gateway_host, accountIdentifier) {
450
- const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
451
- const len0 = WASM_VECTOR_LEN;
452
- var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
453
- var len1 = WASM_VECTOR_LEN;
454
- const ret = wasm.getInboxIdForIdentifier(ptr0, len0, ptr1, len1, accountIdentifier);
455
- return ret;
376
+ export function decodeGroupUpdated(bytes) {
377
+ const ret = wasm.decodeGroupUpdated(bytes);
378
+ if (ret[2]) {
379
+ throw takeFromExternrefTable0(ret[1]);
380
+ }
381
+ return GroupUpdated.__wrap(ret[0]);
456
382
  }
457
383
 
458
384
  /**
459
- * Entry point invoked by JavaScript in a worker.
460
- * @param {number} ptr
385
+ * @param {Uint8Array} bytes
386
+ * @returns {Intent}
461
387
  */
462
- export function task_worker_entry_point(ptr) {
463
- const ret = wasm.task_worker_entry_point(ptr);
464
- if (ret[1]) {
465
- throw takeFromExternrefTable0(ret[0]);
388
+ export function decodeIntent(bytes) {
389
+ const ret = wasm.decodeIntent(bytes);
390
+ if (ret[2]) {
391
+ throw takeFromExternrefTable0(ret[1]);
466
392
  }
393
+ return Intent.__wrap(ret[0]);
467
394
  }
468
395
 
469
- function __wbg_adapter_8(arg0, arg1) {
470
- wasm.wasm_bindgen__convert__closures_____invoke__hb3fd7a1e3a7fa14d(arg0, arg1);
471
- }
472
-
473
- function __wbg_adapter_13(arg0, arg1) {
474
- wasm.wasm_bindgen__convert__closures_____invoke__h135d62b0906d3413(arg0, arg1);
396
+ /**
397
+ * @param {Intent} intent
398
+ * @returns {Uint8Array}
399
+ */
400
+ export function encodeIntent(intent) {
401
+ _assertClass(intent, Intent);
402
+ var ptr0 = intent.__destroy_into_raw();
403
+ const ret = wasm.encodeIntent(ptr0);
404
+ if (ret[2]) {
405
+ throw takeFromExternrefTable0(ret[1]);
406
+ }
407
+ return takeFromExternrefTable0(ret[0]);
475
408
  }
476
409
 
477
- function __wbg_adapter_18(arg0, arg1, arg2) {
478
- wasm.closure7227_externref_shim(arg0, arg1, arg2);
410
+ /**
411
+ * @param {Uint8Array} bytes
412
+ * @returns {ReadReceipt}
413
+ */
414
+ export function decodeReadReceipt(bytes) {
415
+ const ret = wasm.decodeReadReceipt(bytes);
416
+ if (ret[2]) {
417
+ throw takeFromExternrefTable0(ret[1]);
418
+ }
419
+ return ReadReceipt.__wrap(ret[0]);
479
420
  }
480
421
 
481
- function __wbg_adapter_33(arg0, arg1) {
482
- wasm.wasm_bindgen__convert__closures_____invoke__h849ef726e44c1bb5(arg0, arg1);
422
+ /**
423
+ * @param {ReadReceipt} readReceipt
424
+ * @returns {Uint8Array}
425
+ */
426
+ export function encodeReadReceipt(readReceipt) {
427
+ _assertClass(readReceipt, ReadReceipt);
428
+ var ptr0 = readReceipt.__destroy_into_raw();
429
+ const ret = wasm.encodeReadReceipt(ptr0);
430
+ if (ret[2]) {
431
+ throw takeFromExternrefTable0(ret[1]);
432
+ }
433
+ return takeFromExternrefTable0(ret[0]);
483
434
  }
484
435
 
485
- function __wbg_adapter_899(arg0, arg1, arg2, arg3) {
486
- wasm.closure8188_externref_shim(arg0, arg1, arg2, arg3);
436
+ /**
437
+ * @param {string} v3_host
438
+ * @param {string | null | undefined} gateway_host
439
+ * @param {string[]} inbox_ids
440
+ * @returns {Promise<InboxState[]>}
441
+ */
442
+ export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
443
+ const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
444
+ const len0 = WASM_VECTOR_LEN;
445
+ var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
446
+ var len1 = WASM_VECTOR_LEN;
447
+ const ptr2 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
448
+ const len2 = WASM_VECTOR_LEN;
449
+ const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
450
+ return ret;
487
451
  }
488
452
 
489
453
  /**
490
- * @enum {0 | 1}
454
+ * @param {Uint8Array} bytes
455
+ * @returns {Attachment}
456
+ */
457
+ export function decodeAttachment(bytes) {
458
+ const ret = wasm.decodeAttachment(bytes);
459
+ if (ret[2]) {
460
+ throw takeFromExternrefTable0(ret[1]);
461
+ }
462
+ return Attachment.__wrap(ret[0]);
463
+ }
464
+
465
+ /**
466
+ * @param {Attachment} attachment
467
+ * @returns {Uint8Array}
468
+ */
469
+ export function encodeAttachment(attachment) {
470
+ _assertClass(attachment, Attachment);
471
+ var ptr0 = attachment.__destroy_into_raw();
472
+ const ret = wasm.encodeAttachment(ptr0);
473
+ if (ret[2]) {
474
+ throw takeFromExternrefTable0(ret[1]);
475
+ }
476
+ return takeFromExternrefTable0(ret[0]);
477
+ }
478
+
479
+ /**
480
+ * @param {Uint8Array} bytes
481
+ * @returns {any}
482
+ */
483
+ export function decodeWalletSendCalls(bytes) {
484
+ const ret = wasm.decodeWalletSendCalls(bytes);
485
+ if (ret[2]) {
486
+ throw takeFromExternrefTable0(ret[1]);
487
+ }
488
+ return takeFromExternrefTable0(ret[0]);
489
+ }
490
+
491
+ /**
492
+ * @param {any} wallet_send_calls
493
+ * @returns {Uint8Array}
494
+ */
495
+ export function encodeWalletSendCalls(wallet_send_calls) {
496
+ const ret = wasm.encodeWalletSendCalls(wallet_send_calls);
497
+ if (ret[2]) {
498
+ throw takeFromExternrefTable0(ret[1]);
499
+ }
500
+ return takeFromExternrefTable0(ret[0]);
501
+ }
502
+
503
+ /**
504
+ * @param {Uint8Array} bytes
505
+ * @returns {TransactionReference}
506
+ */
507
+ export function decodeTransactionReference(bytes) {
508
+ const ret = wasm.decodeTransactionReference(bytes);
509
+ if (ret[2]) {
510
+ throw takeFromExternrefTable0(ret[1]);
511
+ }
512
+ return TransactionReference.__wrap(ret[0]);
513
+ }
514
+
515
+ /**
516
+ * @param {TransactionReference} transactionReference
517
+ * @returns {Uint8Array}
518
+ */
519
+ export function encodeTransactionReference(transactionReference) {
520
+ _assertClass(transactionReference, TransactionReference);
521
+ var ptr0 = transactionReference.__destroy_into_raw();
522
+ const ret = wasm.encodeTransactionReference(ptr0);
523
+ if (ret[2]) {
524
+ throw takeFromExternrefTable0(ret[1]);
525
+ }
526
+ return takeFromExternrefTable0(ret[0]);
527
+ }
528
+
529
+ /**
530
+ * @param {MultiRemoteAttachment} multiRemoteAttachment
531
+ * @returns {Uint8Array}
532
+ */
533
+ export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
534
+ _assertClass(multiRemoteAttachment, MultiRemoteAttachment);
535
+ var ptr0 = multiRemoteAttachment.__destroy_into_raw();
536
+ const ret = wasm.encodeMultiRemoteAttachment(ptr0);
537
+ if (ret[2]) {
538
+ throw takeFromExternrefTable0(ret[1]);
539
+ }
540
+ return takeFromExternrefTable0(ret[0]);
541
+ }
542
+
543
+ /**
544
+ * @param {Uint8Array} bytes
545
+ * @returns {MultiRemoteAttachment}
546
+ */
547
+ export function decodeMultiRemoteAttachment(bytes) {
548
+ const ret = wasm.decodeMultiRemoteAttachment(bytes);
549
+ if (ret[2]) {
550
+ throw takeFromExternrefTable0(ret[1]);
551
+ }
552
+ return MultiRemoteAttachment.__wrap(ret[0]);
553
+ }
554
+
555
+ /**
556
+ * @param {Uint8Array} bytes
557
+ * @returns {string}
558
+ */
559
+ export function decodeXmtpText(bytes) {
560
+ let deferred2_0;
561
+ let deferred2_1;
562
+ try {
563
+ const ret = wasm.decodeXmtpText(bytes);
564
+ var ptr1 = ret[0];
565
+ var len1 = ret[1];
566
+ if (ret[3]) {
567
+ ptr1 = 0; len1 = 0;
568
+ throw takeFromExternrefTable0(ret[2]);
569
+ }
570
+ deferred2_0 = ptr1;
571
+ deferred2_1 = len1;
572
+ return getStringFromWasm0(ptr1, len1);
573
+ } finally {
574
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
575
+ }
576
+ }
577
+
578
+ /**
579
+ * @param {string} text
580
+ * @returns {Uint8Array}
581
+ */
582
+ export function encodeXmtpText(text) {
583
+ const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
584
+ const len0 = WASM_VECTOR_LEN;
585
+ const ret = wasm.encodeXmtpText(ptr0, len0);
586
+ if (ret[2]) {
587
+ throw takeFromExternrefTable0(ret[1]);
588
+ }
589
+ return takeFromExternrefTable0(ret[0]);
590
+ }
591
+
592
+ /**
593
+ * @param {Uint8Array} bytes
594
+ * @returns {Reaction}
595
+ */
596
+ export function decodeReaction(bytes) {
597
+ const ret = wasm.decodeReaction(bytes);
598
+ if (ret[2]) {
599
+ throw takeFromExternrefTable0(ret[1]);
600
+ }
601
+ return Reaction.__wrap(ret[0]);
602
+ }
603
+
604
+ /**
605
+ * @param {Reaction} reaction
606
+ * @returns {Uint8Array}
607
+ */
608
+ export function encodeReaction(reaction) {
609
+ _assertClass(reaction, Reaction);
610
+ var ptr0 = reaction.__destroy_into_raw();
611
+ const ret = wasm.encodeReaction(ptr0);
612
+ if (ret[2]) {
613
+ throw takeFromExternrefTable0(ret[1]);
614
+ }
615
+ return takeFromExternrefTable0(ret[0]);
616
+ }
617
+
618
+ /**
619
+ * @param {string} host
620
+ * @param {string} inbox_id
621
+ * @param {Identifier} account_identifier
622
+ * @param {string | null} [db_path]
623
+ * @param {Uint8Array | null} [encryption_key]
624
+ * @param {string | null} [device_sync_server_url]
625
+ * @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
626
+ * @param {LogOptions | null} [log_options]
627
+ * @param {boolean | null} [allow_offline]
628
+ * @param {boolean | null} [disable_events]
629
+ * @param {string | null} [app_version]
630
+ * @param {string | null} [gateway_host]
631
+ * @param {bigint | null} [nonce]
632
+ * @param {any | null} [auth_callback]
633
+ * @param {AuthHandle | null} [auth_handle]
634
+ * @param {ClientMode | null} [client_mode]
635
+ * @returns {Promise<Client>}
636
+ */
637
+ export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline, disable_events, app_version, gateway_host, nonce, auth_callback, auth_handle, client_mode) {
638
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
639
+ const len0 = WASM_VECTOR_LEN;
640
+ const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
641
+ const len1 = WASM_VECTOR_LEN;
642
+ var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
643
+ var len2 = WASM_VECTOR_LEN;
644
+ var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
645
+ var len3 = WASM_VECTOR_LEN;
646
+ let ptr4 = 0;
647
+ if (!isLikeNone(log_options)) {
648
+ _assertClass(log_options, LogOptions);
649
+ ptr4 = log_options.__destroy_into_raw();
650
+ }
651
+ var ptr5 = isLikeNone(app_version) ? 0 : passStringToWasm0(app_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
652
+ var len5 = WASM_VECTOR_LEN;
653
+ var ptr6 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
654
+ var len6 = WASM_VECTOR_LEN;
655
+ let ptr7 = 0;
656
+ if (!isLikeNone(auth_handle)) {
657
+ _assertClass(auth_handle, AuthHandle);
658
+ ptr7 = auth_handle.__destroy_into_raw();
659
+ }
660
+ const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, isLikeNone(device_sync_worker_mode) ? 3 : ((__wbindgen_enum_DeviceSyncWorkerMode.indexOf(device_sync_worker_mode) + 1 || 3) - 1), ptr4, isLikeNone(allow_offline) ? 0xFFFFFF : allow_offline ? 1 : 0, isLikeNone(disable_events) ? 0xFFFFFF : disable_events ? 1 : 0, ptr5, len5, ptr6, len6, !isLikeNone(nonce), isLikeNone(nonce) ? BigInt(0) : nonce, isLikeNone(auth_callback) ? 0 : addToExternrefTable0(auth_callback), ptr7, isLikeNone(client_mode) ? 2 : client_mode);
661
+ return ret;
662
+ }
663
+
664
+ /**
665
+ * @param {string} signature_text
666
+ * @param {Uint8Array} signature_bytes
667
+ * @param {Uint8Array} public_key
668
+ */
669
+ export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
670
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
671
+ const len0 = WASM_VECTOR_LEN;
672
+ const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
673
+ if (ret[1]) {
674
+ throw takeFromExternrefTable0(ret[0]);
675
+ }
676
+ }
677
+
678
+ /**
679
+ * @param {string} v3_host
680
+ * @param {string | null | undefined} gateway_host
681
+ * @param {Identifier} recovery_identifier
682
+ * @param {string} inbox_id
683
+ * @param {Uint8Array[]} installation_ids
684
+ * @returns {SignatureRequestHandle}
685
+ */
686
+ export function revokeInstallationsSignatureRequest(v3_host, gateway_host, recovery_identifier, inbox_id, installation_ids) {
687
+ const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
688
+ const len0 = WASM_VECTOR_LEN;
689
+ var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
690
+ var len1 = WASM_VECTOR_LEN;
691
+ const ptr2 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
692
+ const len2 = WASM_VECTOR_LEN;
693
+ const ptr3 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
694
+ const len3 = WASM_VECTOR_LEN;
695
+ const ret = wasm.revokeInstallationsSignatureRequest(ptr0, len0, ptr1, len1, recovery_identifier, ptr2, len2, ptr3, len3);
696
+ if (ret[2]) {
697
+ throw takeFromExternrefTable0(ret[1]);
698
+ }
699
+ return SignatureRequestHandle.__wrap(ret[0]);
700
+ }
701
+
702
+ /**
703
+ * @param {string} v3_host
704
+ * @param {string | null | undefined} gateway_host
705
+ * @param {SignatureRequestHandle} signature_request
706
+ * @returns {Promise<void>}
707
+ */
708
+ export function applySignatureRequest(v3_host, gateway_host, signature_request) {
709
+ const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
710
+ const len0 = WASM_VECTOR_LEN;
711
+ var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
712
+ var len1 = WASM_VECTOR_LEN;
713
+ _assertClass(signature_request, SignatureRequestHandle);
714
+ const ret = wasm.applySignatureRequest(ptr0, len0, ptr1, len1, signature_request.__wbg_ptr);
715
+ return ret;
716
+ }
717
+
718
+ /**
719
+ * Entry point invoked by JavaScript in a worker.
720
+ * @param {number} ptr
721
+ */
722
+ export function task_worker_entry_point(ptr) {
723
+ const ret = wasm.task_worker_entry_point(ptr);
724
+ if (ret[1]) {
725
+ throw takeFromExternrefTable0(ret[0]);
726
+ }
727
+ }
728
+
729
+ function wasm_bindgen__convert__closures_____invoke__h7a7839898bdc8c05(arg0, arg1) {
730
+ wasm.wasm_bindgen__convert__closures_____invoke__h7a7839898bdc8c05(arg0, arg1);
731
+ }
732
+
733
+ function wasm_bindgen__convert__closures_____invoke__h922fe5fb24b1beed(arg0, arg1) {
734
+ wasm.wasm_bindgen__convert__closures_____invoke__h922fe5fb24b1beed(arg0, arg1);
735
+ }
736
+
737
+ function wasm_bindgen__convert__closures_____invoke__h03e85ac1b34d0273(arg0, arg1, arg2) {
738
+ wasm.wasm_bindgen__convert__closures_____invoke__h03e85ac1b34d0273(arg0, arg1, arg2);
739
+ }
740
+
741
+ function wasm_bindgen__convert__closures_____invoke__he553f5a75ceef16c(arg0, arg1) {
742
+ wasm.wasm_bindgen__convert__closures_____invoke__he553f5a75ceef16c(arg0, arg1);
743
+ }
744
+
745
+ function wasm_bindgen__convert__closures_____invoke__h68a31ad8ab9398c3(arg0, arg1, arg2, arg3) {
746
+ wasm.wasm_bindgen__convert__closures_____invoke__h68a31ad8ab9398c3(arg0, arg1, arg2, arg3);
747
+ }
748
+
749
+ /**
750
+ * @enum {0 | 1 | 2}
751
+ */
752
+ export const ActionStyle = Object.freeze({
753
+ Primary: 0, "0": "Primary",
754
+ Secondary: 1, "1": "Secondary",
755
+ Danger: 2, "2": "Danger",
756
+ });
757
+ /**
758
+ * @enum {0 | 1}
759
+ */
760
+ export const ClientMode = Object.freeze({
761
+ Default: 0, "0": "Default",
762
+ Notification: 1, "1": "Notification",
763
+ });
764
+ /**
765
+ * @enum {0 | 1}
491
766
  */
492
767
  export const ConsentEntityType = Object.freeze({
493
768
  GroupId: 0, "0": "GroupId",
@@ -565,6 +840,13 @@ export const ListConversationsOrderBy = Object.freeze({
565
840
  CreatedAt: 0, "0": "CreatedAt",
566
841
  LastActivity: 1, "1": "LastActivity",
567
842
  });
843
+ /**
844
+ * @enum {0 | 1}
845
+ */
846
+ export const MessageSortBy = Object.freeze({
847
+ SentAt: 0, "0": "SentAt",
848
+ InsertedAt: 1, "1": "InsertedAt",
849
+ });
568
850
  /**
569
851
  * @enum {0 | 1 | 2 | 3 | 4}
570
852
  */
@@ -576,7 +858,7 @@ export const MetadataField = Object.freeze({
576
858
  MessageExpirationMS: 4, "4": "MessageExpirationMS",
577
859
  });
578
860
  /**
579
- * @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}
861
+ * @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12}
580
862
  */
581
863
  export const PayloadType = Object.freeze({
582
864
  Text: 0, "0": "Text",
@@ -589,7 +871,9 @@ export const PayloadType = Object.freeze({
589
871
  GroupUpdated: 7, "7": "GroupUpdated",
590
872
  ReadReceipt: 8, "8": "ReadReceipt",
591
873
  WalletSendCalls: 9, "9": "WalletSendCalls",
592
- Custom: 10, "10": "Custom",
874
+ Intent: 10, "10": "Intent",
875
+ Actions: 11, "11": "Actions",
876
+ Custom: 12, "12": "Custom",
593
877
  });
594
878
  /**
595
879
  * @enum {0 | 1 | 2}
@@ -678,6 +962,279 @@ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate
678
962
 
679
963
  const __wbindgen_enum_RequestRedirect = ["follow", "error", "manual"];
680
964
 
965
+ const ActionFinalization = (typeof FinalizationRegistry === 'undefined')
966
+ ? { register: () => {}, unregister: () => {} }
967
+ : new FinalizationRegistry(ptr => wasm.__wbg_action_free(ptr >>> 0, 1));
968
+
969
+ export class Action {
970
+
971
+ static __wrap(ptr) {
972
+ ptr = ptr >>> 0;
973
+ const obj = Object.create(Action.prototype);
974
+ obj.__wbg_ptr = ptr;
975
+ ActionFinalization.register(obj, obj.__wbg_ptr, obj);
976
+ return obj;
977
+ }
978
+
979
+ static __unwrap(jsValue) {
980
+ if (!(jsValue instanceof Action)) {
981
+ return 0;
982
+ }
983
+ return jsValue.__destroy_into_raw();
984
+ }
985
+
986
+ __destroy_into_raw() {
987
+ const ptr = this.__wbg_ptr;
988
+ this.__wbg_ptr = 0;
989
+ ActionFinalization.unregister(this);
990
+ return ptr;
991
+ }
992
+
993
+ free() {
994
+ const ptr = this.__destroy_into_raw();
995
+ wasm.__wbg_action_free(ptr, 0);
996
+ }
997
+ /**
998
+ * @returns {string}
999
+ */
1000
+ get id() {
1001
+ let deferred1_0;
1002
+ let deferred1_1;
1003
+ try {
1004
+ const ret = wasm.__wbg_get_action_id(this.__wbg_ptr);
1005
+ deferred1_0 = ret[0];
1006
+ deferred1_1 = ret[1];
1007
+ return getStringFromWasm0(ret[0], ret[1]);
1008
+ } finally {
1009
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1010
+ }
1011
+ }
1012
+ /**
1013
+ * @param {string} arg0
1014
+ */
1015
+ set id(arg0) {
1016
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1017
+ const len0 = WASM_VECTOR_LEN;
1018
+ wasm.__wbg_set_action_id(this.__wbg_ptr, ptr0, len0);
1019
+ }
1020
+ /**
1021
+ * @returns {string}
1022
+ */
1023
+ get label() {
1024
+ let deferred1_0;
1025
+ let deferred1_1;
1026
+ try {
1027
+ const ret = wasm.__wbg_get_action_label(this.__wbg_ptr);
1028
+ deferred1_0 = ret[0];
1029
+ deferred1_1 = ret[1];
1030
+ return getStringFromWasm0(ret[0], ret[1]);
1031
+ } finally {
1032
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1033
+ }
1034
+ }
1035
+ /**
1036
+ * @param {string} arg0
1037
+ */
1038
+ set label(arg0) {
1039
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1040
+ const len0 = WASM_VECTOR_LEN;
1041
+ wasm.__wbg_set_action_label(this.__wbg_ptr, ptr0, len0);
1042
+ }
1043
+ /**
1044
+ * @returns {string | undefined}
1045
+ */
1046
+ get imageUrl() {
1047
+ const ret = wasm.__wbg_get_action_imageUrl(this.__wbg_ptr);
1048
+ let v1;
1049
+ if (ret[0] !== 0) {
1050
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
1051
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1052
+ }
1053
+ return v1;
1054
+ }
1055
+ /**
1056
+ * @param {string | null} [arg0]
1057
+ */
1058
+ set imageUrl(arg0) {
1059
+ var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1060
+ var len0 = WASM_VECTOR_LEN;
1061
+ wasm.__wbg_set_action_imageUrl(this.__wbg_ptr, ptr0, len0);
1062
+ }
1063
+ /**
1064
+ * @returns {ActionStyle | undefined}
1065
+ */
1066
+ get style() {
1067
+ const ret = wasm.__wbg_get_action_style(this.__wbg_ptr);
1068
+ return ret === 3 ? undefined : ret;
1069
+ }
1070
+ /**
1071
+ * @param {ActionStyle | null} [arg0]
1072
+ */
1073
+ set style(arg0) {
1074
+ wasm.__wbg_set_action_style(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0);
1075
+ }
1076
+ /**
1077
+ * @returns {bigint | undefined}
1078
+ */
1079
+ get expiresAtNs() {
1080
+ const ret = wasm.__wbg_get_action_expiresAtNs(this.__wbg_ptr);
1081
+ return ret[0] === 0 ? undefined : ret[1];
1082
+ }
1083
+ /**
1084
+ * @param {bigint | null} [arg0]
1085
+ */
1086
+ set expiresAtNs(arg0) {
1087
+ wasm.__wbg_set_action_expiresAtNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
1088
+ }
1089
+ /**
1090
+ * @param {string} id
1091
+ * @param {string} label
1092
+ * @param {string | null} [image_url]
1093
+ * @param {ActionStyle | null} [style]
1094
+ * @param {bigint | null} [expires_at_ns]
1095
+ */
1096
+ constructor(id, label, image_url, style, expires_at_ns) {
1097
+ const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1098
+ const len0 = WASM_VECTOR_LEN;
1099
+ const ptr1 = passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1100
+ const len1 = WASM_VECTOR_LEN;
1101
+ var ptr2 = isLikeNone(image_url) ? 0 : passStringToWasm0(image_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1102
+ var len2 = WASM_VECTOR_LEN;
1103
+ const ret = wasm.action_new(ptr0, len0, ptr1, len1, ptr2, len2, isLikeNone(style) ? 3 : style, !isLikeNone(expires_at_ns), isLikeNone(expires_at_ns) ? BigInt(0) : expires_at_ns);
1104
+ this.__wbg_ptr = ret >>> 0;
1105
+ ActionFinalization.register(this, this.__wbg_ptr, this);
1106
+ return this;
1107
+ }
1108
+ }
1109
+ if (Symbol.dispose) Action.prototype[Symbol.dispose] = Action.prototype.free;
1110
+
1111
+ const ActionsFinalization = (typeof FinalizationRegistry === 'undefined')
1112
+ ? { register: () => {}, unregister: () => {} }
1113
+ : new FinalizationRegistry(ptr => wasm.__wbg_actions_free(ptr >>> 0, 1));
1114
+
1115
+ export class Actions {
1116
+
1117
+ static __wrap(ptr) {
1118
+ ptr = ptr >>> 0;
1119
+ const obj = Object.create(Actions.prototype);
1120
+ obj.__wbg_ptr = ptr;
1121
+ ActionsFinalization.register(obj, obj.__wbg_ptr, obj);
1122
+ return obj;
1123
+ }
1124
+
1125
+ __destroy_into_raw() {
1126
+ const ptr = this.__wbg_ptr;
1127
+ this.__wbg_ptr = 0;
1128
+ ActionsFinalization.unregister(this);
1129
+ return ptr;
1130
+ }
1131
+
1132
+ free() {
1133
+ const ptr = this.__destroy_into_raw();
1134
+ wasm.__wbg_actions_free(ptr, 0);
1135
+ }
1136
+ /**
1137
+ * @returns {string}
1138
+ */
1139
+ get id() {
1140
+ let deferred1_0;
1141
+ let deferred1_1;
1142
+ try {
1143
+ const ret = wasm.__wbg_get_actions_id(this.__wbg_ptr);
1144
+ deferred1_0 = ret[0];
1145
+ deferred1_1 = ret[1];
1146
+ return getStringFromWasm0(ret[0], ret[1]);
1147
+ } finally {
1148
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1149
+ }
1150
+ }
1151
+ /**
1152
+ * @param {string} arg0
1153
+ */
1154
+ set id(arg0) {
1155
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1156
+ const len0 = WASM_VECTOR_LEN;
1157
+ wasm.__wbg_set_action_id(this.__wbg_ptr, ptr0, len0);
1158
+ }
1159
+ /**
1160
+ * @returns {string}
1161
+ */
1162
+ get description() {
1163
+ let deferred1_0;
1164
+ let deferred1_1;
1165
+ try {
1166
+ const ret = wasm.__wbg_get_actions_description(this.__wbg_ptr);
1167
+ deferred1_0 = ret[0];
1168
+ deferred1_1 = ret[1];
1169
+ return getStringFromWasm0(ret[0], ret[1]);
1170
+ } finally {
1171
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1172
+ }
1173
+ }
1174
+ /**
1175
+ * @param {string} arg0
1176
+ */
1177
+ set description(arg0) {
1178
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1179
+ const len0 = WASM_VECTOR_LEN;
1180
+ wasm.__wbg_set_action_label(this.__wbg_ptr, ptr0, len0);
1181
+ }
1182
+ /**
1183
+ * @returns {bigint | undefined}
1184
+ */
1185
+ get expiresAtNs() {
1186
+ const ret = wasm.__wbg_get_actions_expiresAtNs(this.__wbg_ptr);
1187
+ return ret[0] === 0 ? undefined : ret[1];
1188
+ }
1189
+ /**
1190
+ * @param {bigint | null} [arg0]
1191
+ */
1192
+ set expiresAtNs(arg0) {
1193
+ wasm.__wbg_set_action_expiresAtNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
1194
+ }
1195
+ /**
1196
+ * @param {Action} action
1197
+ */
1198
+ addAction(action) {
1199
+ _assertClass(action, Action);
1200
+ var ptr0 = action.__destroy_into_raw();
1201
+ wasm.actions_addAction(this.__wbg_ptr, ptr0);
1202
+ }
1203
+ /**
1204
+ * @returns {Action[]}
1205
+ */
1206
+ getActions() {
1207
+ const ret = wasm.actions_getActions(this.__wbg_ptr);
1208
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
1209
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
1210
+ return v1;
1211
+ }
1212
+ /**
1213
+ * @param {Action[]} actions
1214
+ */
1215
+ setActions(actions) {
1216
+ const ptr0 = passArrayJsValueToWasm0(actions, wasm.__wbindgen_malloc);
1217
+ const len0 = WASM_VECTOR_LEN;
1218
+ wasm.actions_setActions(this.__wbg_ptr, ptr0, len0);
1219
+ }
1220
+ /**
1221
+ * @param {string} id
1222
+ * @param {string} description
1223
+ * @param {bigint | null} [expires_at_ns]
1224
+ */
1225
+ constructor(id, description, expires_at_ns) {
1226
+ const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1227
+ const len0 = WASM_VECTOR_LEN;
1228
+ const ptr1 = passStringToWasm0(description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1229
+ const len1 = WASM_VECTOR_LEN;
1230
+ const ret = wasm.actions_new(ptr0, len0, ptr1, len1, !isLikeNone(expires_at_ns), isLikeNone(expires_at_ns) ? BigInt(0) : expires_at_ns);
1231
+ this.__wbg_ptr = ret >>> 0;
1232
+ ActionsFinalization.register(this, this.__wbg_ptr, this);
1233
+ return this;
1234
+ }
1235
+ }
1236
+ if (Symbol.dispose) Actions.prototype[Symbol.dispose] = Actions.prototype.free;
1237
+
681
1238
  const ApiStatsFinalization = (typeof FinalizationRegistry === 'undefined')
682
1239
  ? { register: () => {}, unregister: () => {} }
683
1240
  : new FinalizationRegistry(ptr => wasm.__wbg_apistats_free(ptr >>> 0, 1));
@@ -898,6 +1455,49 @@ export class Attachment {
898
1455
  }
899
1456
  if (Symbol.dispose) Attachment.prototype[Symbol.dispose] = Attachment.prototype.free;
900
1457
 
1458
+ const AuthHandleFinalization = (typeof FinalizationRegistry === 'undefined')
1459
+ ? { register: () => {}, unregister: () => {} }
1460
+ : new FinalizationRegistry(ptr => wasm.__wbg_authhandle_free(ptr >>> 0, 1));
1461
+
1462
+ export class AuthHandle {
1463
+
1464
+ __destroy_into_raw() {
1465
+ const ptr = this.__wbg_ptr;
1466
+ this.__wbg_ptr = 0;
1467
+ AuthHandleFinalization.unregister(this);
1468
+ return ptr;
1469
+ }
1470
+
1471
+ free() {
1472
+ const ptr = this.__destroy_into_raw();
1473
+ wasm.__wbg_authhandle_free(ptr, 0);
1474
+ }
1475
+ /**
1476
+ * @returns {number}
1477
+ */
1478
+ id() {
1479
+ const ret = wasm.authhandle_id(this.__wbg_ptr);
1480
+ return ret >>> 0;
1481
+ }
1482
+ constructor() {
1483
+ const ret = wasm.authhandle_new();
1484
+ this.__wbg_ptr = ret >>> 0;
1485
+ AuthHandleFinalization.register(this, this.__wbg_ptr, this);
1486
+ return this;
1487
+ }
1488
+ /**
1489
+ * @param {Credential} credential
1490
+ * @returns {Promise<void>}
1491
+ */
1492
+ set(credential) {
1493
+ _assertClass(credential, Credential);
1494
+ var ptr0 = credential.__destroy_into_raw();
1495
+ const ret = wasm.authhandle_set(this.__wbg_ptr, ptr0);
1496
+ return ret;
1497
+ }
1498
+ }
1499
+ if (Symbol.dispose) AuthHandle.prototype[Symbol.dispose] = AuthHandle.prototype.free;
1500
+
901
1501
  const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
902
1502
  ? { register: () => {}, unregister: () => {} }
903
1503
  : new FinalizationRegistry(ptr => wasm.__wbg_client_free(ptr >>> 0, 1));
@@ -924,119 +1524,63 @@ export class Client {
924
1524
  wasm.__wbg_client_free(ptr, 0);
925
1525
  }
926
1526
  /**
927
- * @param {SignatureRequestHandle} signature_request
928
- * @returns {Promise<void>}
929
- */
930
- registerIdentity(signature_request) {
931
- _assertClass(signature_request, SignatureRequestHandle);
932
- var ptr0 = signature_request.__destroy_into_raw();
933
- const ret = wasm.client_registerIdentity(this.__wbg_ptr, ptr0);
934
- return ret;
935
- }
936
- /**
937
- * @param {SignatureRequestHandle} signature_request
938
- * @returns {Promise<void>}
939
- */
940
- applySignatureRequest(signature_request) {
941
- _assertClass(signature_request, SignatureRequestHandle);
942
- const ret = wasm.client_applySignatureRequest(this.__wbg_ptr, signature_request.__wbg_ptr);
943
- return ret;
944
- }
945
- /**
946
- * @param {string} signature_text
947
- * @returns {Uint8Array}
1527
+ * @param {ConsentEntityType} entity_type
1528
+ * @param {string} entity
1529
+ * @returns {Promise<ConsentState>}
948
1530
  */
949
- signWithInstallationKey(signature_text) {
950
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1531
+ getConsentState(entity_type, entity) {
1532
+ const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
951
1533
  const len0 = WASM_VECTOR_LEN;
952
- const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
953
- if (ret[2]) {
954
- throw takeFromExternrefTable0(ret[1]);
955
- }
956
- return takeFromExternrefTable0(ret[0]);
957
- }
958
- /**
959
- * @returns {SignatureRequestHandle | undefined}
960
- */
961
- createInboxSignatureRequest() {
962
- const ret = wasm.client_createInboxSignatureRequest(this.__wbg_ptr);
963
- if (ret[2]) {
964
- throw takeFromExternrefTable0(ret[1]);
965
- }
966
- return ret[0] === 0 ? undefined : SignatureRequestHandle.__wrap(ret[0]);
967
- }
968
- /**
969
- * @param {Identifier} new_identifier
970
- * @returns {Promise<SignatureRequestHandle>}
971
- */
972
- addWalletSignatureRequest(new_identifier) {
973
- const ret = wasm.client_addWalletSignatureRequest(this.__wbg_ptr, new_identifier);
974
- return ret;
975
- }
976
- /**
977
- * @param {Identifier} identifier
978
- * @returns {Promise<SignatureRequestHandle>}
979
- */
980
- revokeWalletSignatureRequest(identifier) {
981
- const ret = wasm.client_revokeWalletSignatureRequest(this.__wbg_ptr, identifier);
1534
+ const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
982
1535
  return ret;
983
1536
  }
984
1537
  /**
985
- * @param {string} signature_text
986
- * @param {Uint8Array} signature_bytes
987
- */
988
- verifySignedWithInstallationKey(signature_text, signature_bytes) {
989
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
990
- const len0 = WASM_VECTOR_LEN;
991
- const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
992
- if (ret[1]) {
993
- throw takeFromExternrefTable0(ret[0]);
994
- }
995
- }
996
- /**
997
- * @param {Uint8Array[]} installation_ids
998
- * @returns {Promise<SignatureRequestHandle>}
1538
+ * @param {Consent[]} records
1539
+ * @returns {Promise<void>}
999
1540
  */
1000
- revokeInstallationsSignatureRequest(installation_ids) {
1001
- const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
1541
+ setConsentStates(records) {
1542
+ const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
1002
1543
  const len0 = WASM_VECTOR_LEN;
1003
- const ret = wasm.client_revokeInstallationsSignatureRequest(this.__wbg_ptr, ptr0, len0);
1004
- return ret;
1005
- }
1006
- /**
1007
- * @param {Identifier} new_recovery_identifier
1008
- * @returns {Promise<SignatureRequestHandle>}
1009
- */
1010
- changeRecoveryIdentifierSignatureRequest(new_recovery_identifier) {
1011
- const ret = wasm.client_changeRecoveryIdentifierSignatureRequest(this.__wbg_ptr, new_recovery_identifier);
1544
+ const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
1012
1545
  return ret;
1013
1546
  }
1014
1547
  /**
1015
- * @returns {Promise<SignatureRequestHandle>}
1548
+ *
1549
+ * * Get the client's inbox state.
1550
+ * *
1551
+ * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
1552
+ * * Otherwise, the state will be read from the local database.
1553
+ *
1554
+ * @param {boolean} refresh_from_network
1555
+ * @returns {Promise<InboxState>}
1016
1556
  */
1017
- revokeAllOtherInstallationsSignatureRequest() {
1018
- const ret = wasm.client_revokeAllOtherInstallationsSignatureRequest(this.__wbg_ptr);
1557
+ inboxState(refresh_from_network) {
1558
+ const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
1019
1559
  return ret;
1020
1560
  }
1021
1561
  /**
1022
- * @param {ConsentEntityType} entity_type
1023
- * @param {string} entity
1024
- * @returns {Promise<ConsentState>}
1562
+ * @param {string} inbox_id
1563
+ * @returns {Promise<InboxState>}
1025
1564
  */
1026
- getConsentState(entity_type, entity) {
1027
- const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1565
+ getLatestInboxState(inbox_id) {
1566
+ const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1028
1567
  const len0 = WASM_VECTOR_LEN;
1029
- const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
1568
+ const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
1030
1569
  return ret;
1031
1570
  }
1032
1571
  /**
1033
- * @param {Consent[]} records
1034
- * @returns {Promise<void>}
1572
+ *
1573
+ * * Get key package statuses for a list of installation IDs.
1574
+ * *
1575
+ * * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
1576
+ *
1577
+ * @param {string[]} installation_ids
1578
+ * @returns {Promise<any>}
1035
1579
  */
1036
- setConsentStates(records) {
1037
- const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
1580
+ getKeyPackageStatusesForInstallationIds(installation_ids) {
1581
+ const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
1038
1582
  const len0 = WASM_VECTOR_LEN;
1039
- const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
1583
+ const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
1040
1584
  return ret;
1041
1585
  }
1042
1586
  /**
@@ -1217,62 +1761,118 @@ export class Client {
1217
1761
  * @param {Identifier} identifier
1218
1762
  * @returns {Promise<string | undefined>}
1219
1763
  */
1220
- findInboxIdByIdentifier(identifier) {
1221
- const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
1764
+ findInboxIdByIdentifier(identifier) {
1765
+ const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
1766
+ return ret;
1767
+ }
1768
+ /**
1769
+ * @returns {string}
1770
+ */
1771
+ get inboxId() {
1772
+ let deferred1_0;
1773
+ let deferred1_1;
1774
+ try {
1775
+ const ret = wasm.client_inboxId(this.__wbg_ptr);
1776
+ deferred1_0 = ret[0];
1777
+ deferred1_1 = ret[1];
1778
+ return getStringFromWasm0(ret[0], ret[1]);
1779
+ } finally {
1780
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1781
+ }
1782
+ }
1783
+ /**
1784
+ * @param {SignatureRequestHandle} signature_request
1785
+ * @returns {Promise<void>}
1786
+ */
1787
+ registerIdentity(signature_request) {
1788
+ _assertClass(signature_request, SignatureRequestHandle);
1789
+ var ptr0 = signature_request.__destroy_into_raw();
1790
+ const ret = wasm.client_registerIdentity(this.__wbg_ptr, ptr0);
1791
+ return ret;
1792
+ }
1793
+ /**
1794
+ * @param {SignatureRequestHandle} signature_request
1795
+ * @returns {Promise<void>}
1796
+ */
1797
+ applySignatureRequest(signature_request) {
1798
+ _assertClass(signature_request, SignatureRequestHandle);
1799
+ const ret = wasm.client_applySignatureRequest(this.__wbg_ptr, signature_request.__wbg_ptr);
1800
+ return ret;
1801
+ }
1802
+ /**
1803
+ * @param {string} signature_text
1804
+ * @returns {Uint8Array}
1805
+ */
1806
+ signWithInstallationKey(signature_text) {
1807
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1808
+ const len0 = WASM_VECTOR_LEN;
1809
+ const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
1810
+ if (ret[2]) {
1811
+ throw takeFromExternrefTable0(ret[1]);
1812
+ }
1813
+ return takeFromExternrefTable0(ret[0]);
1814
+ }
1815
+ /**
1816
+ * @returns {SignatureRequestHandle | undefined}
1817
+ */
1818
+ createInboxSignatureRequest() {
1819
+ const ret = wasm.client_createInboxSignatureRequest(this.__wbg_ptr);
1820
+ if (ret[2]) {
1821
+ throw takeFromExternrefTable0(ret[1]);
1822
+ }
1823
+ return ret[0] === 0 ? undefined : SignatureRequestHandle.__wrap(ret[0]);
1824
+ }
1825
+ /**
1826
+ * @param {Identifier} new_identifier
1827
+ * @returns {Promise<SignatureRequestHandle>}
1828
+ */
1829
+ addWalletSignatureRequest(new_identifier) {
1830
+ const ret = wasm.client_addWalletSignatureRequest(this.__wbg_ptr, new_identifier);
1831
+ return ret;
1832
+ }
1833
+ /**
1834
+ * @param {Identifier} identifier
1835
+ * @returns {Promise<SignatureRequestHandle>}
1836
+ */
1837
+ revokeWalletSignatureRequest(identifier) {
1838
+ const ret = wasm.client_revokeWalletSignatureRequest(this.__wbg_ptr, identifier);
1222
1839
  return ret;
1223
1840
  }
1224
1841
  /**
1225
- * @returns {string}
1842
+ * @param {string} signature_text
1843
+ * @param {Uint8Array} signature_bytes
1226
1844
  */
1227
- get inboxId() {
1228
- let deferred1_0;
1229
- let deferred1_1;
1230
- try {
1231
- const ret = wasm.client_inboxId(this.__wbg_ptr);
1232
- deferred1_0 = ret[0];
1233
- deferred1_1 = ret[1];
1234
- return getStringFromWasm0(ret[0], ret[1]);
1235
- } finally {
1236
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1845
+ verifySignedWithInstallationKey(signature_text, signature_bytes) {
1846
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1847
+ const len0 = WASM_VECTOR_LEN;
1848
+ const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
1849
+ if (ret[1]) {
1850
+ throw takeFromExternrefTable0(ret[0]);
1237
1851
  }
1238
1852
  }
1239
1853
  /**
1240
- *
1241
- * * Get the client's inbox state.
1242
- * *
1243
- * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
1244
- * * Otherwise, the state will be read from the local database.
1245
- *
1246
- * @param {boolean} refresh_from_network
1247
- * @returns {Promise<InboxState>}
1854
+ * @param {Uint8Array[]} installation_ids
1855
+ * @returns {Promise<SignatureRequestHandle>}
1248
1856
  */
1249
- inboxState(refresh_from_network) {
1250
- const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
1857
+ revokeInstallationsSignatureRequest(installation_ids) {
1858
+ const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
1859
+ const len0 = WASM_VECTOR_LEN;
1860
+ const ret = wasm.client_revokeInstallationsSignatureRequest(this.__wbg_ptr, ptr0, len0);
1251
1861
  return ret;
1252
1862
  }
1253
1863
  /**
1254
- * @param {string} inbox_id
1255
- * @returns {Promise<InboxState>}
1864
+ * @param {Identifier} new_recovery_identifier
1865
+ * @returns {Promise<SignatureRequestHandle>}
1256
1866
  */
1257
- getLatestInboxState(inbox_id) {
1258
- const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1259
- const len0 = WASM_VECTOR_LEN;
1260
- const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
1867
+ changeRecoveryIdentifierSignatureRequest(new_recovery_identifier) {
1868
+ const ret = wasm.client_changeRecoveryIdentifierSignatureRequest(this.__wbg_ptr, new_recovery_identifier);
1261
1869
  return ret;
1262
1870
  }
1263
1871
  /**
1264
- *
1265
- * * Get key package statuses for a list of installation IDs.
1266
- * *
1267
- * * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
1268
- *
1269
- * @param {string[]} installation_ids
1270
- * @returns {Promise<any>}
1872
+ * @returns {Promise<SignatureRequestHandle | undefined>}
1271
1873
  */
1272
- getKeyPackageStatusesForInstallationIds(installation_ids) {
1273
- const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
1274
- const len0 = WASM_VECTOR_LEN;
1275
- const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
1874
+ revokeAllOtherInstallationsSignatureRequest() {
1875
+ const ret = wasm.client_revokeAllOtherInstallationsSignatureRequest(this.__wbg_ptr);
1276
1876
  return ret;
1277
1877
  }
1278
1878
  }
@@ -1429,7 +2029,7 @@ export class ContentTypeId {
1429
2029
  set authorityId(arg0) {
1430
2030
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1431
2031
  const len0 = WASM_VECTOR_LEN;
1432
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
2032
+ wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
1433
2033
  }
1434
2034
  /**
1435
2035
  * @returns {string}
@@ -1452,7 +2052,7 @@ export class ContentTypeId {
1452
2052
  set typeId(arg0) {
1453
2053
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1454
2054
  const len0 = WASM_VECTOR_LEN;
1455
- wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
2055
+ wasm.__wbg_set_attachment_content(this.__wbg_ptr, ptr0, len0);
1456
2056
  }
1457
2057
  /**
1458
2058
  * @returns {number}
@@ -1508,25 +2108,6 @@ export class Conversation {
1508
2108
  const ptr = this.__destroy_into_raw();
1509
2109
  wasm.__wbg_conversation_free(ptr, 0);
1510
2110
  }
1511
- /**
1512
- * @returns {ConsentState}
1513
- */
1514
- consentState() {
1515
- const ret = wasm.conversation_consentState(this.__wbg_ptr);
1516
- if (ret[2]) {
1517
- throw takeFromExternrefTable0(ret[1]);
1518
- }
1519
- return ret[0];
1520
- }
1521
- /**
1522
- * @param {ConsentState} state
1523
- */
1524
- updateConsentState(state) {
1525
- const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
1526
- if (ret[1]) {
1527
- throw takeFromExternrefTable0(ret[0]);
1528
- }
1529
- }
1530
2111
  /**
1531
2112
  * @returns {string[]}
1532
2113
  */
@@ -1705,6 +2286,16 @@ export class Conversation {
1705
2286
  wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
1706
2287
  }
1707
2288
  }
2289
+ /**
2290
+ * @param {string} app_data
2291
+ * @returns {Promise<void>}
2292
+ */
2293
+ updateAppData(app_data) {
2294
+ const ptr0 = passStringToWasm0(app_data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2295
+ const len0 = WASM_VECTOR_LEN;
2296
+ const ret = wasm.conversation_updateAppData(this.__wbg_ptr, ptr0, len0);
2297
+ return ret;
2298
+ }
1708
2299
  /**
1709
2300
  * @returns {string}
1710
2301
  */
@@ -1726,6 +2317,16 @@ export class Conversation {
1726
2317
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
1727
2318
  }
1728
2319
  }
2320
+ /**
2321
+ * @returns {GroupMembershipState}
2322
+ */
2323
+ membershipState() {
2324
+ const ret = wasm.conversation_membershipState(this.__wbg_ptr);
2325
+ if (ret[2]) {
2326
+ throw takeFromExternrefTable0(ret[1]);
2327
+ }
2328
+ return ret[0];
2329
+ }
1729
2330
  /**
1730
2331
  * Publish all unpublished messages
1731
2332
  * @returns {Promise<void>}
@@ -2027,6 +2628,27 @@ export class Conversation {
2027
2628
  }
2028
2629
  return StreamCloser.__wrap(ret[0]);
2029
2630
  }
2631
+ /**
2632
+ * @returns {string}
2633
+ */
2634
+ appData() {
2635
+ let deferred2_0;
2636
+ let deferred2_1;
2637
+ try {
2638
+ const ret = wasm.conversation_appData(this.__wbg_ptr);
2639
+ var ptr1 = ret[0];
2640
+ var len1 = ret[1];
2641
+ if (ret[3]) {
2642
+ ptr1 = 0; len1 = 0;
2643
+ throw takeFromExternrefTable0(ret[2]);
2644
+ }
2645
+ deferred2_0 = ptr1;
2646
+ deferred2_1 = len1;
2647
+ return getStringFromWasm0(ptr1, len1);
2648
+ } finally {
2649
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
2650
+ }
2651
+ }
2030
2652
  /**
2031
2653
  * @param {string} inbox_id
2032
2654
  * @returns {boolean}
@@ -2060,6 +2682,25 @@ export class Conversation {
2060
2682
  }
2061
2683
  return ret[0] !== 0;
2062
2684
  }
2685
+ /**
2686
+ * @returns {ConsentState}
2687
+ */
2688
+ consentState() {
2689
+ const ret = wasm.conversation_consentState(this.__wbg_ptr);
2690
+ if (ret[2]) {
2691
+ throw takeFromExternrefTable0(ret[1]);
2692
+ }
2693
+ return ret[0];
2694
+ }
2695
+ /**
2696
+ * @param {ConsentState} state
2697
+ */
2698
+ updateConsentState(state) {
2699
+ const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
2700
+ if (ret[1]) {
2701
+ throw takeFromExternrefTable0(ret[0]);
2702
+ }
2703
+ }
2063
2704
  }
2064
2705
  if (Symbol.dispose) Conversation.prototype[Symbol.dispose] = Conversation.prototype.free;
2065
2706
 
@@ -2633,8 +3274,9 @@ export class CreateGroupOptions {
2633
3274
  * @param {string | null} [group_description]
2634
3275
  * @param {PermissionPolicySet | null} [custom_permission_policy_set]
2635
3276
  * @param {MessageDisappearingSettings | null} [message_disappearing_settings]
3277
+ * @param {string | null} [app_data]
2636
3278
  */
2637
- constructor(permissions, group_name, group_image_url_square, group_description, custom_permission_policy_set, message_disappearing_settings) {
3279
+ constructor(permissions, group_name, group_image_url_square, group_description, custom_permission_policy_set, message_disappearing_settings, app_data) {
2638
3280
  var ptr0 = isLikeNone(group_name) ? 0 : passStringToWasm0(group_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2639
3281
  var len0 = WASM_VECTOR_LEN;
2640
3282
  var ptr1 = isLikeNone(group_image_url_square) ? 0 : passStringToWasm0(group_image_url_square, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -2651,7 +3293,9 @@ export class CreateGroupOptions {
2651
3293
  _assertClass(message_disappearing_settings, MessageDisappearingSettings);
2652
3294
  ptr4 = message_disappearing_settings.__destroy_into_raw();
2653
3295
  }
2654
- const ret = wasm.creategroupoptions_new(isLikeNone(permissions) ? 3 : permissions, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4);
3296
+ var ptr5 = isLikeNone(app_data) ? 0 : passStringToWasm0(app_data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3297
+ var len5 = WASM_VECTOR_LEN;
3298
+ const ret = wasm.creategroupoptions_new(isLikeNone(permissions) ? 3 : permissions, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, ptr5, len5);
2655
3299
  this.__wbg_ptr = ret >>> 0;
2656
3300
  CreateGroupOptionsFinalization.register(this, this.__wbg_ptr, this);
2657
3301
  return this;
@@ -2765,9 +3409,64 @@ export class CreateGroupOptions {
2765
3409
  }
2766
3410
  wasm.__wbg_set_createdmoptions_messageDisappearingSettings(this.__wbg_ptr, ptr0);
2767
3411
  }
3412
+ /**
3413
+ * @returns {string | undefined}
3414
+ */
3415
+ get appData() {
3416
+ const ret = wasm.__wbg_get_creategroupoptions_appData(this.__wbg_ptr);
3417
+ let v1;
3418
+ if (ret[0] !== 0) {
3419
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
3420
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
3421
+ }
3422
+ return v1;
3423
+ }
3424
+ /**
3425
+ * @param {string | null} [arg0]
3426
+ */
3427
+ set appData(arg0) {
3428
+ var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3429
+ var len0 = WASM_VECTOR_LEN;
3430
+ wasm.__wbg_set_creategroupoptions_appData(this.__wbg_ptr, ptr0, len0);
3431
+ }
2768
3432
  }
2769
3433
  if (Symbol.dispose) CreateGroupOptions.prototype[Symbol.dispose] = CreateGroupOptions.prototype.free;
2770
3434
 
3435
+ const CredentialFinalization = (typeof FinalizationRegistry === 'undefined')
3436
+ ? { register: () => {}, unregister: () => {} }
3437
+ : new FinalizationRegistry(ptr => wasm.__wbg_credential_free(ptr >>> 0, 1));
3438
+
3439
+ export class Credential {
3440
+
3441
+ __destroy_into_raw() {
3442
+ const ptr = this.__wbg_ptr;
3443
+ this.__wbg_ptr = 0;
3444
+ CredentialFinalization.unregister(this);
3445
+ return ptr;
3446
+ }
3447
+
3448
+ free() {
3449
+ const ptr = this.__destroy_into_raw();
3450
+ wasm.__wbg_credential_free(ptr, 0);
3451
+ }
3452
+ /**
3453
+ * @param {string | null | undefined} name
3454
+ * @param {string} value
3455
+ * @param {bigint} expires_at_seconds
3456
+ */
3457
+ constructor(name, value, expires_at_seconds) {
3458
+ var ptr0 = isLikeNone(name) ? 0 : passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3459
+ var len0 = WASM_VECTOR_LEN;
3460
+ const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3461
+ const len1 = WASM_VECTOR_LEN;
3462
+ const ret = wasm.credential_new(ptr0, len0, ptr1, len1, expires_at_seconds);
3463
+ this.__wbg_ptr = ret >>> 0;
3464
+ CredentialFinalization.register(this, this.__wbg_ptr, this);
3465
+ return this;
3466
+ }
3467
+ }
3468
+ if (Symbol.dispose) Credential.prototype[Symbol.dispose] = Credential.prototype.free;
3469
+
2771
3470
  const DecodedMessageFinalization = (typeof FinalizationRegistry === 'undefined')
2772
3471
  ? { register: () => {}, unregister: () => {} }
2773
3472
  : new FinalizationRegistry(ptr => wasm.__wbg_decodedmessage_free(ptr >>> 0, 1));
@@ -3021,6 +3720,16 @@ export class DecodedMessageContent {
3021
3720
  const ptr = this.__destroy_into_raw();
3022
3721
  wasm.__wbg_decodedmessagecontent_free(ptr, 0);
3023
3722
  }
3723
+ /**
3724
+ * @returns {Actions | undefined}
3725
+ */
3726
+ asActions() {
3727
+ const ret = wasm.decodedmessagecontent_asActions(this.__wbg_ptr);
3728
+ if (ret[2]) {
3729
+ throw takeFromExternrefTable0(ret[1]);
3730
+ }
3731
+ return ret[0] === 0 ? undefined : Actions.__wrap(ret[0]);
3732
+ }
3024
3733
  /**
3025
3734
  * @returns {ReactionPayload | undefined}
3026
3735
  */
@@ -3108,6 +3817,16 @@ export class DecodedMessageContent {
3108
3817
  const ret = wasm.decodedmessagecontent_asCustom(this.__wbg_ptr);
3109
3818
  return ret === 0 ? undefined : EncodedContent.__wrap(ret);
3110
3819
  }
3820
+ /**
3821
+ * @returns {Intent | undefined}
3822
+ */
3823
+ asIntent() {
3824
+ const ret = wasm.decodedmessagecontent_asIntent(this.__wbg_ptr);
3825
+ if (ret[2]) {
3826
+ throw takeFromExternrefTable0(ret[1]);
3827
+ }
3828
+ return ret[0] === 0 ? undefined : Intent.__wrap(ret[0]);
3829
+ }
3111
3830
  }
3112
3831
  if (Symbol.dispose) DecodedMessageContent.prototype[Symbol.dispose] = DecodedMessageContent.prototype.free;
3113
3832
 
@@ -3631,7 +4350,7 @@ export class GroupUpdated {
3631
4350
  set initiatedByInboxId(arg0) {
3632
4351
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3633
4352
  const len0 = WASM_VECTOR_LEN;
3634
- wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
4353
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
3635
4354
  }
3636
4355
  /**
3637
4356
  * @returns {Inbox[]}
@@ -3662,27 +4381,112 @@ export class GroupUpdated {
3662
4381
  /**
3663
4382
  * @param {Inbox[]} arg0
3664
4383
  */
3665
- set removedInboxes(arg0) {
4384
+ set removedInboxes(arg0) {
4385
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
4386
+ const len0 = WASM_VECTOR_LEN;
4387
+ wasm.__wbg_set_groupupdated_removedInboxes(this.__wbg_ptr, ptr0, len0);
4388
+ }
4389
+ /**
4390
+ * @returns {Inbox[]}
4391
+ */
4392
+ get leftInboxes() {
4393
+ const ret = wasm.__wbg_get_groupupdated_leftInboxes(this.__wbg_ptr);
4394
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4395
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
4396
+ return v1;
4397
+ }
4398
+ /**
4399
+ * @param {Inbox[]} arg0
4400
+ */
4401
+ set leftInboxes(arg0) {
4402
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
4403
+ const len0 = WASM_VECTOR_LEN;
4404
+ wasm.__wbg_set_groupupdated_leftInboxes(this.__wbg_ptr, ptr0, len0);
4405
+ }
4406
+ /**
4407
+ * @returns {MetadataFieldChange[]}
4408
+ */
4409
+ get metadataFieldChanges() {
4410
+ const ret = wasm.__wbg_get_groupupdated_metadataFieldChanges(this.__wbg_ptr);
4411
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4412
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
4413
+ return v1;
4414
+ }
4415
+ /**
4416
+ * @param {MetadataFieldChange[]} arg0
4417
+ */
4418
+ set metadataFieldChanges(arg0) {
4419
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
4420
+ const len0 = WASM_VECTOR_LEN;
4421
+ wasm.__wbg_set_groupupdated_metadataFieldChanges(this.__wbg_ptr, ptr0, len0);
4422
+ }
4423
+ /**
4424
+ * @returns {Inbox[]}
4425
+ */
4426
+ get addedAdminInboxes() {
4427
+ const ret = wasm.__wbg_get_groupupdated_addedAdminInboxes(this.__wbg_ptr);
4428
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4429
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
4430
+ return v1;
4431
+ }
4432
+ /**
4433
+ * @param {Inbox[]} arg0
4434
+ */
4435
+ set addedAdminInboxes(arg0) {
4436
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
4437
+ const len0 = WASM_VECTOR_LEN;
4438
+ wasm.__wbg_set_groupupdated_addedAdminInboxes(this.__wbg_ptr, ptr0, len0);
4439
+ }
4440
+ /**
4441
+ * @returns {Inbox[]}
4442
+ */
4443
+ get removedAdminInboxes() {
4444
+ const ret = wasm.__wbg_get_groupupdated_removedAdminInboxes(this.__wbg_ptr);
4445
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4446
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
4447
+ return v1;
4448
+ }
4449
+ /**
4450
+ * @param {Inbox[]} arg0
4451
+ */
4452
+ set removedAdminInboxes(arg0) {
4453
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
4454
+ const len0 = WASM_VECTOR_LEN;
4455
+ wasm.__wbg_set_groupupdated_removedAdminInboxes(this.__wbg_ptr, ptr0, len0);
4456
+ }
4457
+ /**
4458
+ * @returns {Inbox[]}
4459
+ */
4460
+ get addedSuperAdminInboxes() {
4461
+ const ret = wasm.__wbg_get_groupupdated_addedSuperAdminInboxes(this.__wbg_ptr);
4462
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4463
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
4464
+ return v1;
4465
+ }
4466
+ /**
4467
+ * @param {Inbox[]} arg0
4468
+ */
4469
+ set addedSuperAdminInboxes(arg0) {
3666
4470
  const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
3667
4471
  const len0 = WASM_VECTOR_LEN;
3668
- wasm.__wbg_set_groupupdated_removedInboxes(this.__wbg_ptr, ptr0, len0);
4472
+ wasm.__wbg_set_groupupdated_addedSuperAdminInboxes(this.__wbg_ptr, ptr0, len0);
3669
4473
  }
3670
4474
  /**
3671
- * @returns {MetadataFieldChange[]}
4475
+ * @returns {Inbox[]}
3672
4476
  */
3673
- get metadataFieldChanges() {
3674
- const ret = wasm.__wbg_get_groupupdated_metadataFieldChanges(this.__wbg_ptr);
4477
+ get removedSuperAdminInboxes() {
4478
+ const ret = wasm.__wbg_get_groupupdated_removedSuperAdminInboxes(this.__wbg_ptr);
3675
4479
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
3676
4480
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
3677
4481
  return v1;
3678
4482
  }
3679
4483
  /**
3680
- * @param {MetadataFieldChange[]} arg0
4484
+ * @param {Inbox[]} arg0
3681
4485
  */
3682
- set metadataFieldChanges(arg0) {
4486
+ set removedSuperAdminInboxes(arg0) {
3683
4487
  const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
3684
4488
  const len0 = WASM_VECTOR_LEN;
3685
- wasm.__wbg_set_groupupdated_metadataFieldChanges(this.__wbg_ptr, ptr0, len0);
4489
+ wasm.__wbg_set_groupupdated_removedSuperAdminInboxes(this.__wbg_ptr, ptr0, len0);
3686
4490
  }
3687
4491
  }
3688
4492
  if (Symbol.dispose) GroupUpdated.prototype[Symbol.dispose] = GroupUpdated.prototype.free;
@@ -3870,7 +4674,7 @@ export class Inbox {
3870
4674
  set inboxId(arg0) {
3871
4675
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3872
4676
  const len0 = WASM_VECTOR_LEN;
3873
- wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
4677
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
3874
4678
  }
3875
4679
  }
3876
4680
  if (Symbol.dispose) Inbox.prototype[Symbol.dispose] = Inbox.prototype.free;
@@ -3939,7 +4743,7 @@ export class InboxState {
3939
4743
  set inboxId(arg0) {
3940
4744
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3941
4745
  const len0 = WASM_VECTOR_LEN;
3942
- wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
4746
+ wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
3943
4747
  }
3944
4748
  /**
3945
4749
  * @returns {Identifier}
@@ -4088,6 +4892,108 @@ export class Installation {
4088
4892
  }
4089
4893
  if (Symbol.dispose) Installation.prototype[Symbol.dispose] = Installation.prototype.free;
4090
4894
 
4895
+ const IntentFinalization = (typeof FinalizationRegistry === 'undefined')
4896
+ ? { register: () => {}, unregister: () => {} }
4897
+ : new FinalizationRegistry(ptr => wasm.__wbg_intent_free(ptr >>> 0, 1));
4898
+
4899
+ export class Intent {
4900
+
4901
+ static __wrap(ptr) {
4902
+ ptr = ptr >>> 0;
4903
+ const obj = Object.create(Intent.prototype);
4904
+ obj.__wbg_ptr = ptr;
4905
+ IntentFinalization.register(obj, obj.__wbg_ptr, obj);
4906
+ return obj;
4907
+ }
4908
+
4909
+ __destroy_into_raw() {
4910
+ const ptr = this.__wbg_ptr;
4911
+ this.__wbg_ptr = 0;
4912
+ IntentFinalization.unregister(this);
4913
+ return ptr;
4914
+ }
4915
+
4916
+ free() {
4917
+ const ptr = this.__destroy_into_raw();
4918
+ wasm.__wbg_intent_free(ptr, 0);
4919
+ }
4920
+ /**
4921
+ * @returns {string}
4922
+ */
4923
+ get id() {
4924
+ let deferred1_0;
4925
+ let deferred1_1;
4926
+ try {
4927
+ const ret = wasm.__wbg_get_intent_id(this.__wbg_ptr);
4928
+ deferred1_0 = ret[0];
4929
+ deferred1_1 = ret[1];
4930
+ return getStringFromWasm0(ret[0], ret[1]);
4931
+ } finally {
4932
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
4933
+ }
4934
+ }
4935
+ /**
4936
+ * @param {string} arg0
4937
+ */
4938
+ set id(arg0) {
4939
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4940
+ const len0 = WASM_VECTOR_LEN;
4941
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
4942
+ }
4943
+ /**
4944
+ * @returns {string}
4945
+ */
4946
+ get actionId() {
4947
+ let deferred1_0;
4948
+ let deferred1_1;
4949
+ try {
4950
+ const ret = wasm.__wbg_get_intent_actionId(this.__wbg_ptr);
4951
+ deferred1_0 = ret[0];
4952
+ deferred1_1 = ret[1];
4953
+ return getStringFromWasm0(ret[0], ret[1]);
4954
+ } finally {
4955
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
4956
+ }
4957
+ }
4958
+ /**
4959
+ * @param {string} arg0
4960
+ */
4961
+ set actionId(arg0) {
4962
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4963
+ const len0 = WASM_VECTOR_LEN;
4964
+ wasm.__wbg_set_intent_actionId(this.__wbg_ptr, ptr0, len0);
4965
+ }
4966
+ /**
4967
+ * @returns {any}
4968
+ */
4969
+ get metadata() {
4970
+ const ret = wasm.__wbg_get_intent_metadata(this.__wbg_ptr);
4971
+ return ret;
4972
+ }
4973
+ /**
4974
+ * @param {any} arg0
4975
+ */
4976
+ set metadata(arg0) {
4977
+ wasm.__wbg_set_intent_metadata(this.__wbg_ptr, arg0);
4978
+ }
4979
+ /**
4980
+ * @param {string} id
4981
+ * @param {string} action_id
4982
+ * @param {any} metadata
4983
+ */
4984
+ constructor(id, action_id, metadata) {
4985
+ const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4986
+ const len0 = WASM_VECTOR_LEN;
4987
+ const ptr1 = passStringToWasm0(action_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4988
+ const len1 = WASM_VECTOR_LEN;
4989
+ const ret = wasm.intent_new(ptr0, len0, ptr1, len1, metadata);
4990
+ this.__wbg_ptr = ret >>> 0;
4991
+ IntentFinalization.register(this, this.__wbg_ptr, this);
4992
+ return this;
4993
+ }
4994
+ }
4995
+ if (Symbol.dispose) Intent.prototype[Symbol.dispose] = Intent.prototype.free;
4996
+
4091
4997
  const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
4092
4998
  ? { register: () => {}, unregister: () => {} }
4093
4999
  : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1));
@@ -4258,7 +5164,7 @@ export class KeyPackageStatus {
4258
5164
  _assertClass(arg0, Lifetime);
4259
5165
  ptr0 = arg0.__destroy_into_raw();
4260
5166
  }
4261
- wasm.__wbg_set_keypackagestatus_lifetime(this.__wbg_ptr, ptr0);
5167
+ wasm.__wbg_set_createdmoptions_messageDisappearingSettings(this.__wbg_ptr, ptr0);
4262
5168
  }
4263
5169
  /**
4264
5170
  * @returns {string | undefined}
@@ -4312,14 +5218,14 @@ export class Lifetime {
4312
5218
  * @returns {bigint}
4313
5219
  */
4314
5220
  get not_before() {
4315
- const ret = wasm.__wbg_get_lifetime_not_before(this.__wbg_ptr);
5221
+ const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
4316
5222
  return BigInt.asUintN(64, ret);
4317
5223
  }
4318
5224
  /**
4319
5225
  * @param {bigint} arg0
4320
5226
  */
4321
5227
  set not_before(arg0) {
4322
- wasm.__wbg_set_lifetime_not_before(this.__wbg_ptr, arg0);
5228
+ wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
4323
5229
  }
4324
5230
  /**
4325
5231
  * @returns {bigint}
@@ -4398,7 +5304,7 @@ export class ListConversationsOptions {
4398
5304
  * @param {bigint | null} [arg0]
4399
5305
  */
4400
5306
  set createdAfterNs(arg0) {
4401
- wasm.__wbg_set_listconversationsoptions_createdAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5307
+ wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
4402
5308
  }
4403
5309
  /**
4404
5310
  * @returns {bigint | undefined}
@@ -4499,15 +5405,18 @@ export class ListMessagesOptions {
4499
5405
  * @param {any[] | null} [exclude_content_types]
4500
5406
  * @param {GroupMessageKind | null} [kind]
4501
5407
  * @param {string[] | null} [exclude_sender_inbox_ids]
5408
+ * @param {MessageSortBy | null} [sort_by]
5409
+ * @param {bigint | null} [inserted_after_ns]
5410
+ * @param {bigint | null} [inserted_before_ns]
4502
5411
  */
4503
- constructor(sent_before_ns, sent_after_ns, limit, delivery_status, direction, content_types, exclude_content_types, kind, exclude_sender_inbox_ids) {
5412
+ constructor(sent_before_ns, sent_after_ns, limit, delivery_status, direction, content_types, exclude_content_types, kind, exclude_sender_inbox_ids, sort_by, inserted_after_ns, inserted_before_ns) {
4504
5413
  var ptr0 = isLikeNone(content_types) ? 0 : passArrayJsValueToWasm0(content_types, wasm.__wbindgen_malloc);
4505
5414
  var len0 = WASM_VECTOR_LEN;
4506
5415
  var ptr1 = isLikeNone(exclude_content_types) ? 0 : passArrayJsValueToWasm0(exclude_content_types, wasm.__wbindgen_malloc);
4507
5416
  var len1 = WASM_VECTOR_LEN;
4508
5417
  var ptr2 = isLikeNone(exclude_sender_inbox_ids) ? 0 : passArrayJsValueToWasm0(exclude_sender_inbox_ids, wasm.__wbindgen_malloc);
4509
5418
  var len2 = WASM_VECTOR_LEN;
4510
- const ret = wasm.listmessagesoptions_new(!isLikeNone(sent_before_ns), isLikeNone(sent_before_ns) ? BigInt(0) : sent_before_ns, !isLikeNone(sent_after_ns), isLikeNone(sent_after_ns) ? BigInt(0) : sent_after_ns, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit, isLikeNone(delivery_status) ? 3 : delivery_status, isLikeNone(direction) ? 2 : direction, ptr0, len0, ptr1, len1, isLikeNone(kind) ? 2 : kind, ptr2, len2);
5419
+ const ret = wasm.listmessagesoptions_new(!isLikeNone(sent_before_ns), isLikeNone(sent_before_ns) ? BigInt(0) : sent_before_ns, !isLikeNone(sent_after_ns), isLikeNone(sent_after_ns) ? BigInt(0) : sent_after_ns, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit, isLikeNone(delivery_status) ? 3 : delivery_status, isLikeNone(direction) ? 2 : direction, ptr0, len0, ptr1, len1, isLikeNone(kind) ? 2 : kind, ptr2, len2, isLikeNone(sort_by) ? 2 : sort_by, !isLikeNone(inserted_after_ns), isLikeNone(inserted_after_ns) ? BigInt(0) : inserted_after_ns, !isLikeNone(inserted_before_ns), isLikeNone(inserted_before_ns) ? BigInt(0) : inserted_before_ns);
4511
5420
  this.__wbg_ptr = ret >>> 0;
4512
5421
  ListMessagesOptionsFinalization.register(this, this.__wbg_ptr, this);
4513
5422
  return this;
@@ -4563,7 +5472,7 @@ export class ListMessagesOptions {
4563
5472
  * @param {bigint | null} [arg0]
4564
5473
  */
4565
5474
  set sentBeforeNs(arg0) {
4566
- wasm.__wbg_set_listmessagesoptions_sentBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5475
+ wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
4567
5476
  }
4568
5477
  /**
4569
5478
  * @returns {bigint | undefined}
@@ -4576,7 +5485,7 @@ export class ListMessagesOptions {
4576
5485
  * @param {bigint | null} [arg0]
4577
5486
  */
4578
5487
  set sentAfterNs(arg0) {
4579
- wasm.__wbg_set_listmessagesoptions_sentAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5488
+ wasm.__wbg_set_listconversationsoptions_createdBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
4580
5489
  }
4581
5490
  /**
4582
5491
  * @returns {bigint | undefined}
@@ -4589,7 +5498,7 @@ export class ListMessagesOptions {
4589
5498
  * @param {bigint | null} [arg0]
4590
5499
  */
4591
5500
  set limit(arg0) {
4592
- wasm.__wbg_set_listmessagesoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5501
+ wasm.__wbg_set_listconversationsoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
4593
5502
  }
4594
5503
  /**
4595
5504
  * @returns {DeliveryStatus | undefined}
@@ -4650,6 +5559,45 @@ export class ListMessagesOptions {
4650
5559
  var len0 = WASM_VECTOR_LEN;
4651
5560
  wasm.__wbg_set_listmessagesoptions_excludeSenderInboxIds(this.__wbg_ptr, ptr0, len0);
4652
5561
  }
5562
+ /**
5563
+ * @returns {MessageSortBy | undefined}
5564
+ */
5565
+ get sortBy() {
5566
+ const ret = wasm.__wbg_get_listmessagesoptions_sortBy(this.__wbg_ptr);
5567
+ return ret === 2 ? undefined : ret;
5568
+ }
5569
+ /**
5570
+ * @param {MessageSortBy | null} [arg0]
5571
+ */
5572
+ set sortBy(arg0) {
5573
+ wasm.__wbg_set_listmessagesoptions_sortBy(this.__wbg_ptr, isLikeNone(arg0) ? 2 : arg0);
5574
+ }
5575
+ /**
5576
+ * @returns {bigint | undefined}
5577
+ */
5578
+ get insertedAfterNs() {
5579
+ const ret = wasm.__wbg_get_listmessagesoptions_insertedAfterNs(this.__wbg_ptr);
5580
+ return ret[0] === 0 ? undefined : ret[1];
5581
+ }
5582
+ /**
5583
+ * @param {bigint | null} [arg0]
5584
+ */
5585
+ set insertedAfterNs(arg0) {
5586
+ wasm.__wbg_set_listmessagesoptions_insertedAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5587
+ }
5588
+ /**
5589
+ * @returns {bigint | undefined}
5590
+ */
5591
+ get insertedBeforeNs() {
5592
+ const ret = wasm.__wbg_get_listmessagesoptions_insertedBeforeNs(this.__wbg_ptr);
5593
+ return ret[0] === 0 ? undefined : ret[1];
5594
+ }
5595
+ /**
5596
+ * @param {bigint | null} [arg0]
5597
+ */
5598
+ set insertedBeforeNs(arg0) {
5599
+ wasm.__wbg_set_listmessagesoptions_insertedBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5600
+ }
4653
5601
  }
4654
5602
  if (Symbol.dispose) ListMessagesOptions.prototype[Symbol.dispose] = ListMessagesOptions.prototype.free;
4655
5603
 
@@ -4790,14 +5738,14 @@ export class Message {
4790
5738
  * @returns {bigint}
4791
5739
  */
4792
5740
  get sentAtNs() {
4793
- const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
5741
+ const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
4794
5742
  return ret;
4795
5743
  }
4796
5744
  /**
4797
5745
  * @param {bigint} arg0
4798
5746
  */
4799
5747
  set sentAtNs(arg0) {
4800
- wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
5748
+ wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
4801
5749
  }
4802
5750
  /**
4803
5751
  * @returns {string}
@@ -4954,14 +5902,14 @@ export class MessageDisappearingSettings {
4954
5902
  * @returns {bigint}
4955
5903
  */
4956
5904
  get inNs() {
4957
- const ret = wasm.__wbg_get_messagedisappearingsettings_inNs(this.__wbg_ptr);
5905
+ const ret = wasm.__wbg_get_lifetime_not_after(this.__wbg_ptr);
4958
5906
  return ret;
4959
5907
  }
4960
5908
  /**
4961
5909
  * @param {bigint} arg0
4962
5910
  */
4963
5911
  set inNs(arg0) {
4964
- wasm.__wbg_set_messagedisappearingsettings_inNs(this.__wbg_ptr, arg0);
5912
+ wasm.__wbg_set_lifetime_not_after(this.__wbg_ptr, arg0);
4965
5913
  }
4966
5914
  /**
4967
5915
  * @param {bigint} from_ns
@@ -5089,7 +6037,7 @@ export class MetadataFieldChange {
5089
6037
  set fieldName(arg0) {
5090
6038
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5091
6039
  const len0 = WASM_VECTOR_LEN;
5092
- wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
6040
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
5093
6041
  }
5094
6042
  /**
5095
6043
  * @returns {string | undefined}
@@ -5547,7 +6495,7 @@ export class Reaction {
5547
6495
  set reference(arg0) {
5548
6496
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5549
6497
  const len0 = WASM_VECTOR_LEN;
5550
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
6498
+ wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
5551
6499
  }
5552
6500
  /**
5553
6501
  * @returns {string}
@@ -5570,7 +6518,7 @@ export class Reaction {
5570
6518
  set referenceInboxId(arg0) {
5571
6519
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5572
6520
  const len0 = WASM_VECTOR_LEN;
5573
- wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
6521
+ wasm.__wbg_set_attachment_content(this.__wbg_ptr, ptr0, len0);
5574
6522
  }
5575
6523
  /**
5576
6524
  * @returns {ReactionAction}
@@ -5606,7 +6554,7 @@ export class Reaction {
5606
6554
  set content(arg0) {
5607
6555
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5608
6556
  const len0 = WASM_VECTOR_LEN;
5609
- wasm.__wbg_set_reaction_content(this.__wbg_ptr, ptr0, len0);
6557
+ wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
5610
6558
  }
5611
6559
  /**
5612
6560
  * @returns {ReactionSchema}
@@ -5689,7 +6637,7 @@ export class ReactionPayload {
5689
6637
  set reference(arg0) {
5690
6638
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5691
6639
  const len0 = WASM_VECTOR_LEN;
5692
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
6640
+ wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
5693
6641
  }
5694
6642
  /**
5695
6643
  * @returns {string}
@@ -5712,7 +6660,7 @@ export class ReactionPayload {
5712
6660
  set referenceInboxId(arg0) {
5713
6661
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5714
6662
  const len0 = WASM_VECTOR_LEN;
5715
- wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
6663
+ wasm.__wbg_set_attachment_content(this.__wbg_ptr, ptr0, len0);
5716
6664
  }
5717
6665
  /**
5718
6666
  * @returns {ReactionActionPayload}
@@ -5748,7 +6696,7 @@ export class ReactionPayload {
5748
6696
  set content(arg0) {
5749
6697
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5750
6698
  const len0 = WASM_VECTOR_LEN;
5751
- wasm.__wbg_set_reaction_content(this.__wbg_ptr, ptr0, len0);
6699
+ wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
5752
6700
  }
5753
6701
  /**
5754
6702
  * @returns {ReactionSchemaPayload}
@@ -5840,7 +6788,7 @@ export class RemoteAttachment {
5840
6788
  set url(arg0) {
5841
6789
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5842
6790
  const len0 = WASM_VECTOR_LEN;
5843
- wasm.__wbg_set_conversationdebuginfo_forkDetails(this.__wbg_ptr, ptr0, len0);
6791
+ wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
5844
6792
  }
5845
6793
  /**
5846
6794
  * @returns {string}
@@ -5863,7 +6811,7 @@ export class RemoteAttachment {
5863
6811
  set contentDigest(arg0) {
5864
6812
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5865
6813
  const len0 = WASM_VECTOR_LEN;
5866
- wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
6814
+ wasm.__wbg_set_remoteattachment_contentDigest(this.__wbg_ptr, ptr0, len0);
5867
6815
  }
5868
6816
  /**
5869
6817
  * @returns {Uint8Array}
@@ -5880,7 +6828,7 @@ export class RemoteAttachment {
5880
6828
  set secret(arg0) {
5881
6829
  const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
5882
6830
  const len0 = WASM_VECTOR_LEN;
5883
- wasm.__wbg_set_conversationdebuginfo_remoteCommitLog(this.__wbg_ptr, ptr0, len0);
6831
+ wasm.__wbg_set_remoteattachment_secret(this.__wbg_ptr, ptr0, len0);
5884
6832
  }
5885
6833
  /**
5886
6834
  * @returns {Uint8Array}
@@ -5940,17 +6888,17 @@ export class RemoteAttachment {
5940
6888
  wasm.__wbg_set_remoteattachment_scheme(this.__wbg_ptr, ptr0, len0);
5941
6889
  }
5942
6890
  /**
5943
- * @returns {bigint}
6891
+ * @returns {number}
5944
6892
  */
5945
6893
  get contentLength() {
5946
- const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
5947
- return ret;
6894
+ const ret = wasm.__wbg_get_remoteattachment_contentLength(this.__wbg_ptr);
6895
+ return ret >>> 0;
5948
6896
  }
5949
6897
  /**
5950
- * @param {bigint} arg0
6898
+ * @param {number} arg0
5951
6899
  */
5952
6900
  set contentLength(arg0) {
5953
- wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
6901
+ wasm.__wbg_set_remoteattachment_contentLength(this.__wbg_ptr, arg0);
5954
6902
  }
5955
6903
  /**
5956
6904
  * @returns {string | undefined}
@@ -6175,6 +7123,109 @@ export class RemoteAttachmentInfo {
6175
7123
  }
6176
7124
  if (Symbol.dispose) RemoteAttachmentInfo.prototype[Symbol.dispose] = RemoteAttachmentInfo.prototype.free;
6177
7125
 
7126
+ const ReplyFinalization = (typeof FinalizationRegistry === 'undefined')
7127
+ ? { register: () => {}, unregister: () => {} }
7128
+ : new FinalizationRegistry(ptr => wasm.__wbg_reply_free(ptr >>> 0, 1));
7129
+
7130
+ export class Reply {
7131
+
7132
+ static __wrap(ptr) {
7133
+ ptr = ptr >>> 0;
7134
+ const obj = Object.create(Reply.prototype);
7135
+ obj.__wbg_ptr = ptr;
7136
+ ReplyFinalization.register(obj, obj.__wbg_ptr, obj);
7137
+ return obj;
7138
+ }
7139
+
7140
+ __destroy_into_raw() {
7141
+ const ptr = this.__wbg_ptr;
7142
+ this.__wbg_ptr = 0;
7143
+ ReplyFinalization.unregister(this);
7144
+ return ptr;
7145
+ }
7146
+
7147
+ free() {
7148
+ const ptr = this.__destroy_into_raw();
7149
+ wasm.__wbg_reply_free(ptr, 0);
7150
+ }
7151
+ /**
7152
+ * @returns {EncodedContent}
7153
+ */
7154
+ get content() {
7155
+ const ret = wasm.__wbg_get_reply_content(this.__wbg_ptr);
7156
+ return EncodedContent.__wrap(ret);
7157
+ }
7158
+ /**
7159
+ * @param {EncodedContent} arg0
7160
+ */
7161
+ set content(arg0) {
7162
+ _assertClass(arg0, EncodedContent);
7163
+ var ptr0 = arg0.__destroy_into_raw();
7164
+ wasm.__wbg_set_reply_content(this.__wbg_ptr, ptr0);
7165
+ }
7166
+ /**
7167
+ * @returns {string}
7168
+ */
7169
+ get reference() {
7170
+ let deferred1_0;
7171
+ let deferred1_1;
7172
+ try {
7173
+ const ret = wasm.__wbg_get_reply_reference(this.__wbg_ptr);
7174
+ deferred1_0 = ret[0];
7175
+ deferred1_1 = ret[1];
7176
+ return getStringFromWasm0(ret[0], ret[1]);
7177
+ } finally {
7178
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
7179
+ }
7180
+ }
7181
+ /**
7182
+ * @param {string} arg0
7183
+ */
7184
+ set reference(arg0) {
7185
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7186
+ const len0 = WASM_VECTOR_LEN;
7187
+ wasm.__wbg_set_remoteattachment_scheme(this.__wbg_ptr, ptr0, len0);
7188
+ }
7189
+ /**
7190
+ * @returns {string | undefined}
7191
+ */
7192
+ get referenceInboxId() {
7193
+ const ret = wasm.__wbg_get_reply_referenceInboxId(this.__wbg_ptr);
7194
+ let v1;
7195
+ if (ret[0] !== 0) {
7196
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
7197
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
7198
+ }
7199
+ return v1;
7200
+ }
7201
+ /**
7202
+ * @param {string | null} [arg0]
7203
+ */
7204
+ set referenceInboxId(arg0) {
7205
+ var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7206
+ var len0 = WASM_VECTOR_LEN;
7207
+ wasm.__wbg_set_remoteattachment_filename(this.__wbg_ptr, ptr0, len0);
7208
+ }
7209
+ /**
7210
+ * @param {EncodedContent} content
7211
+ * @param {string} reference
7212
+ * @param {string | null} [referenceInboxId]
7213
+ */
7214
+ constructor(content, reference, referenceInboxId) {
7215
+ _assertClass(content, EncodedContent);
7216
+ var ptr0 = content.__destroy_into_raw();
7217
+ const ptr1 = passStringToWasm0(reference, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7218
+ const len1 = WASM_VECTOR_LEN;
7219
+ var ptr2 = isLikeNone(referenceInboxId) ? 0 : passStringToWasm0(referenceInboxId, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7220
+ var len2 = WASM_VECTOR_LEN;
7221
+ const ret = wasm.reply_new(ptr0, ptr1, len1, ptr2, len2);
7222
+ this.__wbg_ptr = ret >>> 0;
7223
+ ReplyFinalization.register(this, this.__wbg_ptr, this);
7224
+ return this;
7225
+ }
7226
+ }
7227
+ if (Symbol.dispose) Reply.prototype[Symbol.dispose] = Reply.prototype.free;
7228
+
6178
7229
  const SendMessageOptsFinalization = (typeof FinalizationRegistry === 'undefined')
6179
7230
  ? { register: () => {}, unregister: () => {} }
6180
7231
  : new FinalizationRegistry(ptr => wasm.__wbg_sendmessageopts_free(ptr >>> 0, 1));
@@ -6387,7 +7438,7 @@ export class TextContent {
6387
7438
  set content(arg0) {
6388
7439
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6389
7440
  const len0 = WASM_VECTOR_LEN;
6390
- wasm.__wbg_set_textcontent_content(this.__wbg_ptr, ptr0, len0);
7441
+ wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
6391
7442
  }
6392
7443
  }
6393
7444
  if (Symbol.dispose) TextContent.prototype[Symbol.dispose] = TextContent.prototype.free;
@@ -6438,7 +7489,7 @@ export class TransactionMetadata {
6438
7489
  set transactionType(arg0) {
6439
7490
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6440
7491
  const len0 = WASM_VECTOR_LEN;
6441
- wasm.__wbg_set_transactionmetadata_transactionType(this.__wbg_ptr, ptr0, len0);
7492
+ wasm.__wbg_set_conversationdebuginfo_forkDetails(this.__wbg_ptr, ptr0, len0);
6442
7493
  }
6443
7494
  /**
6444
7495
  * @returns {string}
@@ -6461,7 +7512,7 @@ export class TransactionMetadata {
6461
7512
  set currency(arg0) {
6462
7513
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6463
7514
  const len0 = WASM_VECTOR_LEN;
6464
- wasm.__wbg_set_reaction_content(this.__wbg_ptr, ptr0, len0);
7515
+ wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
6465
7516
  }
6466
7517
  /**
6467
7518
  * @returns {number}
@@ -6510,7 +7561,7 @@ export class TransactionMetadata {
6510
7561
  set fromAddress(arg0) {
6511
7562
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6512
7563
  const len0 = WASM_VECTOR_LEN;
6513
- wasm.__wbg_set_transactionmetadata_fromAddress(this.__wbg_ptr, ptr0, len0);
7564
+ wasm.__wbg_set_conversationdebuginfo_remoteCommitLog(this.__wbg_ptr, ptr0, len0);
6514
7565
  }
6515
7566
  /**
6516
7567
  * @returns {string}
@@ -6749,67 +7800,156 @@ async function __wbg_load(module, imports) {
6749
7800
  function __wbg_get_imports() {
6750
7801
  const imports = {};
6751
7802
  imports.wbg = {};
6752
- imports.wbg.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
7803
+ imports.wbg.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
6753
7804
  const ret = Error(getStringFromWasm0(arg0, arg1));
6754
7805
  return ret;
6755
7806
  };
6756
- imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
6757
- const ret = String(arg1);
7807
+ imports.wbg.__wbg_Number_bb48ca12f395cd08 = function(arg0) {
7808
+ const ret = Number(arg0);
7809
+ return ret;
7810
+ };
7811
+ imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
7812
+ const ret = String(arg1);
7813
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7814
+ const len1 = WASM_VECTOR_LEN;
7815
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
7816
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
7817
+ };
7818
+ imports.wbg.__wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd = function(arg0, arg1) {
7819
+ const v = arg1;
7820
+ const ret = typeof(v) === 'bigint' ? v : undefined;
7821
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
7822
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
7823
+ };
7824
+ imports.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68 = function(arg0) {
7825
+ const v = arg0;
7826
+ const ret = typeof(v) === 'boolean' ? v : undefined;
7827
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
7828
+ };
7829
+ imports.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
7830
+ const ret = debugString(arg1);
6758
7831
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6759
7832
  const len1 = WASM_VECTOR_LEN;
6760
7833
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
6761
7834
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
6762
7835
  };
6763
- imports.wbg.__wbg_abort_67e1b49bf6614565 = function(arg0) {
6764
- arg0.abort();
7836
+ imports.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f = function(arg0, arg1) {
7837
+ const ret = arg0 in arg1;
7838
+ return ret;
7839
+ };
7840
+ imports.wbg.__wbg___wbindgen_is_bigint_cb320707dcd35f0b = function(arg0) {
7841
+ const ret = typeof(arg0) === 'bigint';
7842
+ return ret;
7843
+ };
7844
+ imports.wbg.__wbg___wbindgen_is_function_ee8a6c5833c90377 = function(arg0) {
7845
+ const ret = typeof(arg0) === 'function';
7846
+ return ret;
7847
+ };
7848
+ imports.wbg.__wbg___wbindgen_is_null_5e69f72e906cc57c = function(arg0) {
7849
+ const ret = arg0 === null;
7850
+ return ret;
7851
+ };
7852
+ imports.wbg.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
7853
+ const val = arg0;
7854
+ const ret = typeof(val) === 'object' && val !== null;
7855
+ return ret;
7856
+ };
7857
+ imports.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
7858
+ const ret = typeof(arg0) === 'string';
7859
+ return ret;
7860
+ };
7861
+ imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
7862
+ const ret = arg0 === undefined;
7863
+ return ret;
7864
+ };
7865
+ imports.wbg.__wbg___wbindgen_jsval_eq_6b13ab83478b1c50 = function(arg0, arg1) {
7866
+ const ret = arg0 === arg1;
7867
+ return ret;
7868
+ };
7869
+ imports.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147 = function(arg0, arg1) {
7870
+ const ret = arg0 == arg1;
7871
+ return ret;
7872
+ };
7873
+ imports.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
7874
+ const obj = arg1;
7875
+ const ret = typeof(obj) === 'number' ? obj : undefined;
7876
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
7877
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
7878
+ };
7879
+ imports.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
7880
+ const obj = arg1;
7881
+ const ret = typeof(obj) === 'string' ? obj : undefined;
7882
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7883
+ var len1 = WASM_VECTOR_LEN;
7884
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
7885
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
7886
+ };
7887
+ imports.wbg.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
7888
+ throw new Error(getStringFromWasm0(arg0, arg1));
7889
+ };
7890
+ imports.wbg.__wbg___wbindgen_try_into_number_e60ef6e208abc399 = function(arg0) {
7891
+ let result;
7892
+ try { result = +arg0 } catch (e) { result = e }
7893
+ const ret = result;
7894
+ return ret;
6765
7895
  };
6766
- imports.wbg.__wbg_abort_d830bf2e9aa6ec5b = function(arg0, arg1) {
7896
+ imports.wbg.__wbg__wbg_cb_unref_2454a539ea5790d9 = function(arg0) {
7897
+ arg0._wbg_cb_unref();
7898
+ };
7899
+ imports.wbg.__wbg_abort_28ad55c5825b004d = function(arg0, arg1) {
6767
7900
  arg0.abort(arg1);
6768
7901
  };
6769
- imports.wbg.__wbg_add_bd7fa428f539a577 = function(arg0, arg1) {
6770
- const ret = arg0.add(arg1);
7902
+ imports.wbg.__wbg_abort_e7eb059f72f9ed0c = function(arg0) {
7903
+ arg0.abort();
7904
+ };
7905
+ imports.wbg.__wbg_action_new = function(arg0) {
7906
+ const ret = Action.__wrap(arg0);
7907
+ return ret;
7908
+ };
7909
+ imports.wbg.__wbg_action_unwrap = function(arg0) {
7910
+ const ret = Action.__unwrap(arg0);
6771
7911
  return ret;
6772
7912
  };
6773
- imports.wbg.__wbg_append_72a3c0addd2bce38 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
7913
+ imports.wbg.__wbg_append_b577eb3a177bc0fa = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
6774
7914
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
6775
7915
  }, arguments) };
6776
- imports.wbg.__wbg_arrayBuffer_9c99b8e2809e8cbb = function() { return handleError(function (arg0) {
7916
+ imports.wbg.__wbg_arrayBuffer_b375eccb84b4ddf3 = function() { return handleError(function (arg0) {
6777
7917
  const ret = arg0.arrayBuffer();
6778
7918
  return ret;
6779
7919
  }, arguments) };
6780
- imports.wbg.__wbg_body_4851aa049324a851 = function(arg0) {
7920
+ imports.wbg.__wbg_body_587542b2fd8e06c0 = function(arg0) {
6781
7921
  const ret = arg0.body;
6782
7922
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
6783
7923
  };
6784
- imports.wbg.__wbg_buffer_8d40b1d762fb3c66 = function(arg0) {
7924
+ imports.wbg.__wbg_buffer_ccc4520b36d3ccf4 = function(arg0) {
6785
7925
  const ret = arg0.buffer;
6786
7926
  return ret;
6787
7927
  };
6788
- imports.wbg.__wbg_byobRequest_2c036bceca1e6037 = function(arg0) {
7928
+ imports.wbg.__wbg_byobRequest_2344e6975f27456e = function(arg0) {
6789
7929
  const ret = arg0.byobRequest;
6790
7930
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
6791
7931
  };
6792
- imports.wbg.__wbg_byteLength_331a6b5545834024 = function(arg0) {
7932
+ imports.wbg.__wbg_byteLength_bcd42e4025299788 = function(arg0) {
6793
7933
  const ret = arg0.byteLength;
6794
7934
  return ret;
6795
7935
  };
6796
- imports.wbg.__wbg_byteOffset_49a5b5608000358b = function(arg0) {
7936
+ imports.wbg.__wbg_byteOffset_ca3a6cf7944b364b = function(arg0) {
6797
7937
  const ret = arg0.byteOffset;
6798
7938
  return ret;
6799
7939
  };
6800
- imports.wbg.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
6801
- const ret = arg0.call(arg1);
7940
+ imports.wbg.__wbg_call_525440f72fbfc0ea = function() { return handleError(function (arg0, arg1, arg2) {
7941
+ const ret = arg0.call(arg1, arg2);
6802
7942
  return ret;
6803
7943
  }, arguments) };
6804
- imports.wbg.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (arg0, arg1, arg2) {
6805
- const ret = arg0.call(arg1, arg2);
7944
+ imports.wbg.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (arg0, arg1) {
7945
+ const ret = arg0.call(arg1);
6806
7946
  return ret;
6807
7947
  }, arguments) };
6808
- imports.wbg.__wbg_cancel_8bb5b8f4906b658a = function(arg0) {
7948
+ imports.wbg.__wbg_cancel_48ab6f9dc366e369 = function(arg0) {
6809
7949
  const ret = arg0.cancel();
6810
7950
  return ret;
6811
7951
  };
6812
- imports.wbg.__wbg_catch_c80ecae90cb8ed4e = function(arg0, arg1) {
7952
+ imports.wbg.__wbg_catch_943836faa5d29bfb = function(arg0, arg1) {
6813
7953
  const ret = arg0.catch(arg1);
6814
7954
  return ret;
6815
7955
  };
@@ -6825,30 +7965,24 @@ function __wbg_get_imports() {
6825
7965
  const ret = clearTimeout(arg0);
6826
7966
  return ret;
6827
7967
  };
6828
- imports.wbg.__wbg_clearTimeout_6222fede17abcb1a = function(arg0) {
7968
+ imports.wbg.__wbg_clearTimeout_7a42b49784aea641 = function(arg0) {
6829
7969
  const ret = clearTimeout(arg0);
6830
7970
  return ret;
6831
7971
  };
6832
- imports.wbg.__wbg_clear_dcb6cf8aaaa1dbd5 = function(arg0) {
6833
- arg0.clear();
6834
- };
6835
- imports.wbg.__wbg_clear_f94469174061203f = function(arg0) {
6836
- arg0.clear();
6837
- };
6838
7972
  imports.wbg.__wbg_client_new = function(arg0) {
6839
7973
  const ret = Client.__wrap(arg0);
6840
7974
  return ret;
6841
7975
  };
6842
- imports.wbg.__wbg_close_9870d6f25f3c1f31 = function(arg0) {
6843
- arg0.close();
6844
- };
6845
- imports.wbg.__wbg_close_cccada6053ee3a65 = function() { return handleError(function (arg0) {
7976
+ imports.wbg.__wbg_close_5a6caed3231b68cd = function() { return handleError(function (arg0) {
6846
7977
  arg0.close();
6847
7978
  }, arguments) };
6848
- imports.wbg.__wbg_close_d71a78219dc23e91 = function() { return handleError(function (arg0) {
7979
+ imports.wbg.__wbg_close_6956df845478561a = function() { return handleError(function (arg0) {
6849
7980
  arg0.close();
6850
7981
  }, arguments) };
6851
- imports.wbg.__wbg_code_89056d52bf1a8bb0 = function(arg0) {
7982
+ imports.wbg.__wbg_close_6b987dbb02427741 = function(arg0) {
7983
+ arg0.close();
7984
+ };
7985
+ imports.wbg.__wbg_code_218f5fdf8c7fcabd = function(arg0) {
6852
7986
  const ret = arg0.code;
6853
7987
  return ret;
6854
7988
  };
@@ -6864,11 +7998,11 @@ function __wbg_get_imports() {
6864
7998
  const ret = ConversationListItem.__wrap(arg0);
6865
7999
  return ret;
6866
8000
  };
6867
- imports.wbg.__wbg_createSyncAccessHandle_d06aab2e41a339b2 = function(arg0) {
8001
+ imports.wbg.__wbg_createSyncAccessHandle_63bd856e74273e32 = function(arg0) {
6868
8002
  const ret = arg0.createSyncAccessHandle();
6869
8003
  return ret;
6870
8004
  };
6871
- imports.wbg.__wbg_create_c81beed67ad2881c = function(arg0) {
8005
+ imports.wbg.__wbg_create_f2b6bfa66a83e88e = function(arg0) {
6872
8006
  const ret = Object.create(arg0);
6873
8007
  return ret;
6874
8008
  };
@@ -6876,10 +8010,10 @@ function __wbg_get_imports() {
6876
8010
  const ret = arg0.crypto;
6877
8011
  return ret;
6878
8012
  };
6879
- imports.wbg.__wbg_debug_7f3000e7358ea482 = function(arg0, arg1, arg2, arg3) {
8013
+ imports.wbg.__wbg_debug_e55e1461940eb14d = function(arg0, arg1, arg2, arg3) {
6880
8014
  console.debug(arg0, arg1, arg2, arg3);
6881
8015
  };
6882
- imports.wbg.__wbg_debug_c906769d2f88c17b = function(arg0) {
8016
+ imports.wbg.__wbg_debug_f4b0c59db649db48 = function(arg0) {
6883
8017
  console.debug(arg0);
6884
8018
  };
6885
8019
  imports.wbg.__wbg_decodedmessage_new = function(arg0) {
@@ -6890,32 +8024,21 @@ function __wbg_get_imports() {
6890
8024
  const ret = DecodedMessage.__unwrap(arg0);
6891
8025
  return ret;
6892
8026
  };
6893
- imports.wbg.__wbg_delete_34b4d9b89634f0c0 = function(arg0, arg1) {
6894
- const ret = arg0.delete(arg1);
6895
- return ret;
6896
- };
6897
- imports.wbg.__wbg_delete_ded22f5899363180 = function(arg0, arg1) {
6898
- const ret = arg0.delete(arg1);
6899
- return ret;
6900
- };
6901
- imports.wbg.__wbg_done_75ed0ee6dd243d9d = function(arg0) {
8027
+ imports.wbg.__wbg_done_2042aa2670fb1db1 = function(arg0) {
6902
8028
  const ret = arg0.done;
6903
8029
  return ret;
6904
8030
  };
6905
- imports.wbg.__wbg_enqueue_452bc2343d1c2ff9 = function() { return handleError(function (arg0, arg1) {
8031
+ imports.wbg.__wbg_enqueue_7b18a650aec77898 = function() { return handleError(function (arg0, arg1) {
6906
8032
  arg0.enqueue(arg1);
6907
8033
  }, arguments) };
6908
- imports.wbg.__wbg_entries_1a3c3b9544532397 = function(arg0) {
8034
+ imports.wbg.__wbg_entries_a1e792d46512c8bf = function(arg0) {
6909
8035
  const ret = arg0.entries();
6910
8036
  return ret;
6911
8037
  };
6912
- imports.wbg.__wbg_entries_2be2f15bd5554996 = function(arg0) {
8038
+ imports.wbg.__wbg_entries_e171b586f8f6bdbf = function(arg0) {
6913
8039
  const ret = Object.entries(arg0);
6914
8040
  return ret;
6915
8041
  };
6916
- imports.wbg.__wbg_error_0889f151acea569e = function(arg0, arg1, arg2, arg3) {
6917
- console.error(arg0, arg1, arg2, arg3);
6918
- };
6919
8042
  imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
6920
8043
  let deferred0_0;
6921
8044
  let deferred0_1;
@@ -6927,133 +8050,132 @@ function __wbg_get_imports() {
6927
8050
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
6928
8051
  }
6929
8052
  };
6930
- imports.wbg.__wbg_error_99981e16d476aa5c = function(arg0) {
8053
+ imports.wbg.__wbg_error_a7f8fbb0523dae15 = function(arg0) {
6931
8054
  console.error(arg0);
6932
8055
  };
8056
+ imports.wbg.__wbg_error_d8b22cf4e59a6791 = function(arg0, arg1, arg2, arg3) {
8057
+ console.error(arg0, arg1, arg2, arg3);
8058
+ };
6933
8059
  imports.wbg.__wbg_error_e98c298703cffa97 = function(arg0, arg1) {
6934
8060
  console.error(getStringFromWasm0(arg0, arg1));
6935
8061
  };
6936
- imports.wbg.__wbg_fetch_36d024dbd9192353 = function(arg0, arg1, arg2) {
6937
- const ret = arg0.fetch(arg1, arg2);
6938
- return ret;
6939
- };
6940
8062
  imports.wbg.__wbg_fetch_53eef7df7b439a49 = function(arg0, arg1) {
6941
8063
  const ret = fetch(arg0, arg1);
6942
8064
  return ret;
6943
8065
  };
6944
- imports.wbg.__wbg_fetch_87aed7f306ec6d63 = function(arg0, arg1) {
6945
- const ret = arg0.fetch(arg1);
8066
+ imports.wbg.__wbg_fetch_74a3e84ebd2c9a0e = function(arg0) {
8067
+ const ret = fetch(arg0);
6946
8068
  return ret;
6947
8069
  };
6948
- imports.wbg.__wbg_fetch_f156d10be9a5c88a = function(arg0) {
6949
- const ret = fetch(arg0);
8070
+ imports.wbg.__wbg_fetch_8725865ff47e7fcc = function(arg0, arg1, arg2) {
8071
+ const ret = arg0.fetch(arg1, arg2);
6950
8072
  return ret;
6951
8073
  };
6952
- imports.wbg.__wbg_fill_c8751cf67b766c70 = function(arg0, arg1, arg2, arg3) {
8074
+ imports.wbg.__wbg_fetch_f8ba0e29a9d6de0d = function(arg0, arg1) {
8075
+ const ret = arg0.fetch(arg1);
8076
+ return ret;
8077
+ };
8078
+ imports.wbg.__wbg_fill_f6f1b48c9e4bb626 = function(arg0, arg1, arg2, arg3) {
6953
8079
  const ret = arg0.fill(arg1, arg2 >>> 0, arg3 >>> 0);
6954
8080
  return ret;
6955
8081
  };
6956
- imports.wbg.__wbg_flush_d2487a24f3bc3cf4 = function() { return handleError(function (arg0) {
8082
+ imports.wbg.__wbg_flush_b49c3916f841ba87 = function() { return handleError(function (arg0) {
6957
8083
  arg0.flush();
6958
8084
  }, arguments) };
6959
- imports.wbg.__wbg_from_88bc52ce20ba6318 = function(arg0) {
8085
+ imports.wbg.__wbg_from_a4ad7cbddd0d7135 = function(arg0) {
6960
8086
  const ret = Array.from(arg0);
6961
8087
  return ret;
6962
8088
  };
6963
- imports.wbg.__wbg_getDate_9615e288fc892247 = function(arg0) {
8089
+ imports.wbg.__wbg_getDate_5a70d2f6a482d99f = function(arg0) {
6964
8090
  const ret = arg0.getDate();
6965
8091
  return ret;
6966
8092
  };
6967
- imports.wbg.__wbg_getDay_c9c4f57fb4ef6fef = function(arg0) {
8093
+ imports.wbg.__wbg_getDay_a150a3fd757619d1 = function(arg0) {
6968
8094
  const ret = arg0.getDay();
6969
8095
  return ret;
6970
8096
  };
6971
- imports.wbg.__wbg_getDirectoryHandle_0fb26677897f1e21 = function(arg0, arg1, arg2, arg3) {
8097
+ imports.wbg.__wbg_getDirectoryHandle_45b9305ebb42f05a = function(arg0, arg1, arg2, arg3) {
6972
8098
  const ret = arg0.getDirectoryHandle(getStringFromWasm0(arg1, arg2), arg3);
6973
8099
  return ret;
6974
8100
  };
6975
- imports.wbg.__wbg_getDirectory_8564f4b4ae7ee35c = function(arg0) {
8101
+ imports.wbg.__wbg_getDirectory_7e7a55f640412401 = function(arg0) {
6976
8102
  const ret = arg0.getDirectory();
6977
8103
  return ret;
6978
8104
  };
6979
- imports.wbg.__wbg_getFileHandle_9f23d09c2497fa5f = function(arg0, arg1, arg2, arg3) {
8105
+ imports.wbg.__wbg_getFileHandle_acd9b5e4404b60dd = function(arg0, arg1, arg2, arg3) {
6980
8106
  const ret = arg0.getFileHandle(getStringFromWasm0(arg1, arg2), arg3);
6981
8107
  return ret;
6982
8108
  };
6983
- imports.wbg.__wbg_getFullYear_e351a9fa7d2fab83 = function(arg0) {
8109
+ imports.wbg.__wbg_getFullYear_8240d5a15191feae = function(arg0) {
6984
8110
  const ret = arg0.getFullYear();
6985
8111
  return ret;
6986
8112
  };
6987
- imports.wbg.__wbg_getHours_4cc14de357c9e723 = function(arg0) {
8113
+ imports.wbg.__wbg_getHours_5e476e0b9ebc42d1 = function(arg0) {
6988
8114
  const ret = arg0.getHours();
6989
8115
  return ret;
6990
8116
  };
6991
- imports.wbg.__wbg_getMinutes_6cde8fdd08b0c2ec = function(arg0) {
8117
+ imports.wbg.__wbg_getMinutes_c95dfb65f1ea8f02 = function(arg0) {
6992
8118
  const ret = arg0.getMinutes();
6993
8119
  return ret;
6994
8120
  };
6995
- imports.wbg.__wbg_getMonth_8cc234bce5c8bcac = function(arg0) {
8121
+ imports.wbg.__wbg_getMonth_25c1c5a601d72773 = function(arg0) {
6996
8122
  const ret = arg0.getMonth();
6997
8123
  return ret;
6998
8124
  };
6999
- imports.wbg.__wbg_getRandomValues_3c9c0d586e575a16 = function() { return handleError(function (arg0, arg1) {
7000
- globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
7001
- }, arguments) };
7002
- imports.wbg.__wbg_getRandomValues_8e6341dd77432a34 = function() { return handleError(function (arg0, arg1) {
8125
+ imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
7003
8126
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
7004
8127
  }, arguments) };
7005
8128
  imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
7006
8129
  arg0.getRandomValues(arg1);
7007
8130
  }, arguments) };
8131
+ imports.wbg.__wbg_getRandomValues_c51ec1a88ebf4945 = function() { return handleError(function (arg0, arg1) {
8132
+ globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
8133
+ }, arguments) };
7008
8134
  imports.wbg.__wbg_getReader_48e00749fe3f6089 = function() { return handleError(function (arg0) {
7009
8135
  const ret = arg0.getReader();
7010
8136
  return ret;
7011
8137
  }, arguments) };
7012
- imports.wbg.__wbg_getSeconds_c2f02452d804ece0 = function(arg0) {
8138
+ imports.wbg.__wbg_getSeconds_8113bf8709718eb2 = function(arg0) {
7013
8139
  const ret = arg0.getSeconds();
7014
8140
  return ret;
7015
8141
  };
7016
- imports.wbg.__wbg_getSize_56a06761973a6cd7 = function() { return handleError(function (arg0) {
8142
+ imports.wbg.__wbg_getSize_f43fed70ca1762f1 = function() { return handleError(function (arg0) {
7017
8143
  const ret = arg0.getSize();
7018
8144
  return ret;
7019
8145
  }, arguments) };
7020
- imports.wbg.__wbg_getTime_6bb3f64e0f18f817 = function(arg0) {
8146
+ imports.wbg.__wbg_getTime_14776bfb48a1bff9 = function(arg0) {
7021
8147
  const ret = arg0.getTime();
7022
8148
  return ret;
7023
8149
  };
7024
- imports.wbg.__wbg_getTimezoneOffset_1e3ddc1382e7c8b0 = function(arg0) {
8150
+ imports.wbg.__wbg_getTimezoneOffset_d391cb11d54969f8 = function(arg0) {
7025
8151
  const ret = arg0.getTimezoneOffset();
7026
8152
  return ret;
7027
8153
  };
7028
- imports.wbg.__wbg_getUint32_2dc0ed17b0324774 = function(arg0, arg1) {
8154
+ imports.wbg.__wbg_getUint32_741d4a7dc32fc0d5 = function(arg0, arg1) {
7029
8155
  const ret = arg0.getUint32(arg1 >>> 0);
7030
8156
  return ret;
7031
8157
  };
7032
- imports.wbg.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) {
8158
+ imports.wbg.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
7033
8159
  const ret = arg0[arg1 >>> 0];
7034
8160
  return ret;
7035
8161
  };
7036
- imports.wbg.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
7037
- const ret = Reflect.get(arg0, arg1);
7038
- return ret;
7039
- }, arguments) };
7040
- imports.wbg.__wbg_get_5ee3191755594360 = function(arg0, arg1) {
7041
- const ret = arg0.get(arg1);
7042
- return ret;
7043
- };
7044
- imports.wbg.__wbg_getdone_f026246f6bbe58d3 = function(arg0) {
8162
+ imports.wbg.__wbg_get_done_a0463af43a1fc764 = function(arg0) {
7045
8163
  const ret = arg0.done;
7046
8164
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
7047
8165
  };
7048
- imports.wbg.__wbg_getindex_61bb13d19869849b = function(arg0, arg1) {
8166
+ imports.wbg.__wbg_get_efcb449f58ec27c2 = function() { return handleError(function (arg0, arg1) {
8167
+ const ret = Reflect.get(arg0, arg1);
8168
+ return ret;
8169
+ }, arguments) };
8170
+ imports.wbg.__wbg_get_index_af1d9818a935f6ae = function(arg0, arg1) {
7049
8171
  const ret = arg0[arg1 >>> 0];
7050
8172
  return ret;
7051
8173
  };
7052
- imports.wbg.__wbg_getvalue_31e5a08f61e5aa42 = function(arg0) {
8174
+ imports.wbg.__wbg_get_value_5ce96c9f81ce7398 = function(arg0) {
7053
8175
  const ret = arg0.value;
7054
8176
  return ret;
7055
8177
  };
7056
- imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
8178
+ imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
7057
8179
  const ret = arg0[arg1];
7058
8180
  return ret;
7059
8181
  };
@@ -7065,15 +8187,11 @@ function __wbg_get_imports() {
7065
8187
  const ret = GroupSyncSummary.__wrap(arg0);
7066
8188
  return ret;
7067
8189
  };
7068
- imports.wbg.__wbg_has_6a9bff5f4208cfca = function(arg0, arg1) {
7069
- const ret = arg0.has(arg1);
7070
- return ret;
7071
- };
7072
- imports.wbg.__wbg_has_b89e451f638123e3 = function() { return handleError(function (arg0, arg1) {
8190
+ imports.wbg.__wbg_has_787fafc980c3ccdb = function() { return handleError(function (arg0, arg1) {
7073
8191
  const ret = Reflect.has(arg0, arg1);
7074
8192
  return ret;
7075
8193
  }, arguments) };
7076
- imports.wbg.__wbg_headers_29fec3c72865cd75 = function(arg0) {
8194
+ imports.wbg.__wbg_headers_b87d7eaba61c3278 = function(arg0) {
7077
8195
  const ret = arg0.headers;
7078
8196
  return ret;
7079
8197
  };
@@ -7089,10 +8207,10 @@ function __wbg_get_imports() {
7089
8207
  const ret = InboxState.__wrap(arg0);
7090
8208
  return ret;
7091
8209
  };
7092
- imports.wbg.__wbg_info_15c3631232fceddb = function(arg0, arg1, arg2, arg3) {
8210
+ imports.wbg.__wbg_info_68cd5b51ef7e5137 = function(arg0, arg1, arg2, arg3) {
7093
8211
  console.info(arg0, arg1, arg2, arg3);
7094
8212
  };
7095
- imports.wbg.__wbg_info_6cf68c1a86a92f6a = function(arg0) {
8213
+ imports.wbg.__wbg_info_e674a11f4f50cc0c = function(arg0) {
7096
8214
  console.info(arg0);
7097
8215
  };
7098
8216
  imports.wbg.__wbg_installation_new = function(arg0) {
@@ -7103,7 +8221,7 @@ function __wbg_get_imports() {
7103
8221
  const ret = Installation.__unwrap(arg0);
7104
8222
  return ret;
7105
8223
  };
7106
- imports.wbg.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function(arg0) {
8224
+ imports.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
7107
8225
  let result;
7108
8226
  try {
7109
8227
  result = arg0 instanceof ArrayBuffer;
@@ -7113,7 +8231,7 @@ function __wbg_get_imports() {
7113
8231
  const ret = result;
7114
8232
  return ret;
7115
8233
  };
7116
- imports.wbg.__wbg_instanceof_DomException_bd63c2a0e0b53ed5 = function(arg0) {
8234
+ imports.wbg.__wbg_instanceof_DomException_83b15e7b042a0b1a = function(arg0) {
7117
8235
  let result;
7118
8236
  try {
7119
8237
  result = arg0 instanceof DOMException;
@@ -7123,7 +8241,17 @@ function __wbg_get_imports() {
7123
8241
  const ret = result;
7124
8242
  return ret;
7125
8243
  };
7126
- imports.wbg.__wbg_instanceof_Response_50fde2cd696850bf = function(arg0) {
8244
+ imports.wbg.__wbg_instanceof_Map_8579b5e2ab5437c7 = function(arg0) {
8245
+ let result;
8246
+ try {
8247
+ result = arg0 instanceof Map;
8248
+ } catch (_) {
8249
+ result = false;
8250
+ }
8251
+ const ret = result;
8252
+ return ret;
8253
+ };
8254
+ imports.wbg.__wbg_instanceof_Response_f4f3e87e07f3135c = function(arg0) {
7127
8255
  let result;
7128
8256
  try {
7129
8257
  result = arg0 instanceof Response;
@@ -7133,7 +8261,7 @@ function __wbg_get_imports() {
7133
8261
  const ret = result;
7134
8262
  return ret;
7135
8263
  };
7136
- imports.wbg.__wbg_instanceof_Uint8Array_9a8378d955933db7 = function(arg0) {
8264
+ imports.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
7137
8265
  let result;
7138
8266
  try {
7139
8267
  result = arg0 instanceof Uint8Array;
@@ -7143,7 +8271,7 @@ function __wbg_get_imports() {
7143
8271
  const ret = result;
7144
8272
  return ret;
7145
8273
  };
7146
- imports.wbg.__wbg_instanceof_WorkerGlobalScope_85d487cc157fd065 = function(arg0) {
8274
+ imports.wbg.__wbg_instanceof_WorkerGlobalScope_e31f49b6d33fcadd = function(arg0) {
7147
8275
  let result;
7148
8276
  try {
7149
8277
  result = arg0 instanceof WorkerGlobalScope;
@@ -7153,27 +8281,27 @@ function __wbg_get_imports() {
7153
8281
  const ret = result;
7154
8282
  return ret;
7155
8283
  };
7156
- imports.wbg.__wbg_iterator_f370b34483c71a1c = function() {
7157
- const ret = Symbol.iterator;
8284
+ imports.wbg.__wbg_isArray_96e0af9891d0945d = function(arg0) {
8285
+ const ret = Array.isArray(arg0);
7158
8286
  return ret;
7159
8287
  };
7160
- imports.wbg.__wbg_keys_200bc2675df61794 = function(arg0) {
7161
- const ret = arg0.keys();
8288
+ imports.wbg.__wbg_isSafeInteger_d216eda7911dde36 = function(arg0) {
8289
+ const ret = Number.isSafeInteger(arg0);
7162
8290
  return ret;
7163
8291
  };
7164
- imports.wbg.__wbg_keys_822161a7faf55538 = function(arg0) {
7165
- const ret = arg0.keys();
8292
+ imports.wbg.__wbg_iterator_e5822695327a3c39 = function() {
8293
+ const ret = Symbol.iterator;
7166
8294
  return ret;
7167
8295
  };
7168
- imports.wbg.__wbg_length_186546c51cd61acd = function(arg0) {
8296
+ imports.wbg.__wbg_length_69bca3cb64fc8748 = function(arg0) {
7169
8297
  const ret = arg0.length;
7170
8298
  return ret;
7171
8299
  };
7172
- imports.wbg.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
8300
+ imports.wbg.__wbg_length_a95b69f903b746c4 = function(arg0) {
7173
8301
  const ret = arg0.length;
7174
8302
  return ret;
7175
8303
  };
7176
- imports.wbg.__wbg_length_9d771c54845e987f = function(arg0) {
8304
+ imports.wbg.__wbg_length_cdd215e10d9dd507 = function(arg0) {
7177
8305
  const ret = arg0.length;
7178
8306
  return ret;
7179
8307
  };
@@ -7189,7 +8317,7 @@ function __wbg_get_imports() {
7189
8317
  imports.wbg.__wbg_measure_7728846525e2cced = function() { return handleError(function (arg0, arg1, arg2, arg3) {
7190
8318
  arg0.measure(getStringFromWasm0(arg1, arg2), arg3);
7191
8319
  }, arguments) };
7192
- imports.wbg.__wbg_message_5481231e71ccaf7b = function(arg0, arg1) {
8320
+ imports.wbg.__wbg_message_bd42dbe3f2f3ed8e = function(arg0, arg1) {
7193
8321
  const ret = arg1.message;
7194
8322
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7195
8323
  const len1 = WASM_VECTOR_LEN;
@@ -7220,41 +8348,41 @@ function __wbg_get_imports() {
7220
8348
  const ret = arg0.msCrypto;
7221
8349
  return ret;
7222
8350
  };
7223
- imports.wbg.__wbg_name_f75f535832c8ea6b = function(arg0, arg1) {
8351
+ imports.wbg.__wbg_name_3a33ad25b892b2dd = function(arg0, arg1) {
7224
8352
  const ret = arg1.name;
7225
8353
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7226
8354
  const len1 = WASM_VECTOR_LEN;
7227
8355
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
7228
8356
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
7229
8357
  };
7230
- imports.wbg.__wbg_navigator_bfaf1b0b0eb48da2 = function(arg0) {
8358
+ imports.wbg.__wbg_navigator_ae06f1666ea7c968 = function(arg0) {
7231
8359
  const ret = arg0.navigator;
7232
8360
  return ret;
7233
8361
  };
7234
- imports.wbg.__wbg_new0_b0a0a38c201e6df5 = function() {
8362
+ imports.wbg.__wbg_new_0_f9740686d739025c = function() {
7235
8363
  const ret = new Date();
7236
8364
  return ret;
7237
8365
  };
7238
- imports.wbg.__wbg_new_0dc86f3faa8a3b53 = function(arg0) {
7239
- const ret = new Set(arg0);
7240
- return ret;
7241
- };
7242
- imports.wbg.__wbg_new_19c25a3f2fa63a02 = function() {
8366
+ imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
7243
8367
  const ret = new Object();
7244
8368
  return ret;
7245
8369
  };
7246
- imports.wbg.__wbg_new_1f3a344cf3123716 = function() {
7247
- const ret = new Array();
8370
+ imports.wbg.__wbg_new_1c342efbe54a5bfd = function(arg0, arg1, arg2) {
8371
+ const ret = new DataView(arg0, arg1 >>> 0, arg2 >>> 0);
7248
8372
  return ret;
7249
8373
  };
7250
- imports.wbg.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
8374
+ imports.wbg.__wbg_new_2531773dac38ebb3 = function() { return handleError(function () {
8375
+ const ret = new AbortController();
8376
+ return ret;
8377
+ }, arguments) };
8378
+ imports.wbg.__wbg_new_3c3d849046688a66 = function(arg0, arg1) {
7251
8379
  try {
7252
8380
  var state0 = {a: arg0, b: arg1};
7253
8381
  var cb0 = (arg0, arg1) => {
7254
8382
  const a = state0.a;
7255
8383
  state0.a = 0;
7256
8384
  try {
7257
- return __wbg_adapter_899(a, state0.b, arg0, arg1);
8385
+ return wasm_bindgen__convert__closures_____invoke__h68a31ad8ab9398c3(a, state0.b, arg0, arg1);
7258
8386
  } finally {
7259
8387
  state0.a = a;
7260
8388
  }
@@ -7265,75 +8393,71 @@ function __wbg_get_imports() {
7265
8393
  state0.a = state0.b = 0;
7266
8394
  }
7267
8395
  };
7268
- imports.wbg.__wbg_new_2ff1f68f3676ea53 = function() {
8396
+ imports.wbg.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
8397
+ const ret = new Uint8Array(arg0);
8398
+ return ret;
8399
+ };
8400
+ imports.wbg.__wbg_new_68651c719dcda04e = function() {
7269
8401
  const ret = new Map();
7270
8402
  return ret;
7271
8403
  };
7272
- imports.wbg.__wbg_new_5a2ae4557f92b50e = function(arg0) {
7273
- const ret = new Date(arg0);
8404
+ imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
8405
+ const ret = new Error();
7274
8406
  return ret;
7275
8407
  };
7276
- imports.wbg.__wbg_new_638ebfaedbf32a5e = function(arg0) {
7277
- const ret = new Uint8Array(arg0);
8408
+ imports.wbg.__wbg_new_93d9417ed3fb115d = function(arg0) {
8409
+ const ret = new Date(arg0);
7278
8410
  return ret;
7279
8411
  };
7280
- imports.wbg.__wbg_new_66b9434b4e59b63e = function() { return handleError(function () {
7281
- const ret = new AbortController();
8412
+ imports.wbg.__wbg_new_9edf9838a2def39c = function() { return handleError(function () {
8413
+ const ret = new Headers();
7282
8414
  return ret;
7283
8415
  }, arguments) };
7284
- imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
7285
- const ret = new Error();
7286
- return ret;
7287
- };
7288
- imports.wbg.__wbg_new_da9dc54c5db29dfa = function(arg0, arg1) {
8416
+ imports.wbg.__wbg_new_a7442b4b19c1a356 = function(arg0, arg1) {
7289
8417
  const ret = new Error(getStringFromWasm0(arg0, arg1));
7290
8418
  return ret;
7291
8419
  };
7292
- imports.wbg.__wbg_new_f60d6f09990bdb99 = function(arg0, arg1, arg2) {
7293
- const ret = new DataView(arg0, arg1 >>> 0, arg2 >>> 0);
8420
+ imports.wbg.__wbg_new_e17d9f43105b08be = function() {
8421
+ const ret = new Array();
7294
8422
  return ret;
7295
8423
  };
7296
- imports.wbg.__wbg_new_f6e53210afea8e45 = function() { return handleError(function () {
7297
- const ret = new Headers();
7298
- return ret;
7299
- }, arguments) };
7300
- imports.wbg.__wbg_newfromslice_074c56947bd43469 = function(arg0, arg1) {
8424
+ imports.wbg.__wbg_new_from_slice_92f4d78ca282a2d2 = function(arg0, arg1) {
7301
8425
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
7302
8426
  return ret;
7303
8427
  };
7304
- imports.wbg.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) {
8428
+ imports.wbg.__wbg_new_no_args_ee98eee5275000a4 = function(arg0, arg1) {
7305
8429
  const ret = new Function(getStringFromWasm0(arg0, arg1));
7306
8430
  return ret;
7307
8431
  };
7308
- imports.wbg.__wbg_newwithbyteoffsetandlength_e8f53910b4d42b45 = function(arg0, arg1, arg2) {
8432
+ imports.wbg.__wbg_new_with_byte_offset_and_length_46e3e6a5e9f9e89b = function(arg0, arg1, arg2) {
7309
8433
  const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
7310
8434
  return ret;
7311
8435
  };
7312
- imports.wbg.__wbg_newwithintounderlyingsource_b47f6a6a596a7f24 = function(arg0, arg1) {
8436
+ imports.wbg.__wbg_new_with_into_underlying_source_b47f6a6a596a7f24 = function(arg0, arg1) {
7313
8437
  const ret = new ReadableStream(IntoUnderlyingSource.__wrap(arg0), arg1);
7314
8438
  return ret;
7315
8439
  };
7316
- imports.wbg.__wbg_newwithlength_a167dcc7aaa3ba77 = function(arg0) {
8440
+ imports.wbg.__wbg_new_with_length_01aa0dc35aa13543 = function(arg0) {
7317
8441
  const ret = new Uint8Array(arg0 >>> 0);
7318
8442
  return ret;
7319
8443
  };
7320
- imports.wbg.__wbg_newwithstrandinit_b5d168a29a3fd85f = function() { return handleError(function (arg0, arg1, arg2) {
8444
+ imports.wbg.__wbg_new_with_str_and_init_0ae7728b6ec367b1 = function() { return handleError(function (arg0, arg1, arg2) {
7321
8445
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
7322
8446
  return ret;
7323
8447
  }, arguments) };
7324
- imports.wbg.__wbg_newwithyearmonthday_9d5466a369f2521d = function(arg0, arg1, arg2) {
8448
+ imports.wbg.__wbg_new_with_year_month_day_6236812cf591750d = function(arg0, arg1, arg2) {
7325
8449
  const ret = new Date(arg0 >>> 0, arg1, arg2);
7326
8450
  return ret;
7327
8451
  };
7328
- imports.wbg.__wbg_next_1142e1658f75ec63 = function() { return handleError(function (arg0) {
8452
+ imports.wbg.__wbg_next_020810e0ae8ebcb0 = function() { return handleError(function (arg0) {
7329
8453
  const ret = arg0.next();
7330
8454
  return ret;
7331
8455
  }, arguments) };
7332
- imports.wbg.__wbg_next_5b3530e612fde77d = function(arg0) {
8456
+ imports.wbg.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
7333
8457
  const ret = arg0.next;
7334
8458
  return ret;
7335
8459
  };
7336
- imports.wbg.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) {
8460
+ imports.wbg.__wbg_next_eedaffcadc567b75 = function() { return handleError(function (arg0) {
7337
8461
  const ret = arg0.next();
7338
8462
  return ret;
7339
8463
  }, arguments) };
@@ -7341,40 +8465,45 @@ function __wbg_get_imports() {
7341
8465
  const ret = arg0.node;
7342
8466
  return ret;
7343
8467
  };
7344
- imports.wbg.__wbg_now_1e80617bcee43265 = function() {
7345
- const ret = Date.now();
7346
- return ret;
7347
- };
7348
8468
  imports.wbg.__wbg_now_2c95c9de01293173 = function(arg0) {
7349
8469
  const ret = arg0.now();
7350
8470
  return ret;
7351
8471
  };
7352
- imports.wbg.__wbg_now_2f0bbf3fd348701f = function(arg0) {
7353
- const ret = globalThis.performance.now();
7354
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
7355
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
8472
+ imports.wbg.__wbg_now_793306c526e2e3b6 = function() {
8473
+ const ret = Date.now();
8474
+ return ret;
7356
8475
  };
7357
- imports.wbg.__wbg_onclose_6c8f213130a86e05 = function(arg0) {
8476
+ imports.wbg.__wbg_on_auth_required_29e9f07ec738ae41 = function() { return handleError(function (arg0) {
8477
+ const ret = arg0.on_auth_required();
8478
+ return ret;
8479
+ }, arguments) };
8480
+ imports.wbg.__wbg_on_close_770a5331097d64e5 = function(arg0) {
7358
8481
  arg0.on_close();
7359
8482
  };
7360
- imports.wbg.__wbg_onconsentupdate_cd008b56bd308bca = function(arg0, arg1) {
8483
+ imports.wbg.__wbg_on_consent_update_ceb3de42638bcfa5 = function(arg0, arg1) {
7361
8484
  arg0.on_consent_update(arg1);
7362
8485
  };
7363
- imports.wbg.__wbg_onconversation_89e91ba5da6e7d31 = function(arg0, arg1) {
8486
+ imports.wbg.__wbg_on_conversation_143b4bca3d329240 = function(arg0, arg1) {
7364
8487
  arg0.on_conversation(Conversation.__wrap(arg1));
7365
8488
  };
7366
- imports.wbg.__wbg_onerror_047567bdcaa0c379 = function(arg0, arg1) {
8489
+ imports.wbg.__wbg_on_error_082f3f10a72b4ecb = function(arg0, arg1) {
7367
8490
  arg0.on_error(arg1);
7368
8491
  };
7369
- imports.wbg.__wbg_onmessage_7103e4915945ddd3 = function(arg0, arg1) {
7370
- arg0.on_message(Message.__wrap(arg1));
8492
+ imports.wbg.__wbg_on_message_deleted_0ac863244e327d7b = function(arg0, arg1, arg2) {
8493
+ let deferred0_0;
8494
+ let deferred0_1;
8495
+ try {
8496
+ deferred0_0 = arg1;
8497
+ deferred0_1 = arg2;
8498
+ arg0.on_message_deleted(getStringFromWasm0(arg1, arg2));
8499
+ } finally {
8500
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
8501
+ }
7371
8502
  };
7372
- imports.wbg.__wbg_onmessagedeleted_b2ddb8ee5fcf999c = function(arg0, arg1, arg2) {
7373
- var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
7374
- wasm.__wbindgen_free(arg1, arg2 * 1, 1);
7375
- arg0.on_message_deleted(v0);
8503
+ imports.wbg.__wbg_on_message_f57e56480857f803 = function(arg0, arg1) {
8504
+ arg0.on_message(Message.__wrap(arg1));
7376
8505
  };
7377
- imports.wbg.__wbg_onuserpreferenceupdate_ed9d4c8c250e03d2 = function(arg0, arg1, arg2) {
8506
+ imports.wbg.__wbg_on_user_preference_update_856836c512006b95 = function(arg0, arg1, arg2) {
7378
8507
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
7379
8508
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
7380
8509
  arg0.on_user_preference_update(v0);
@@ -7387,47 +8516,47 @@ function __wbg_get_imports() {
7387
8516
  const ret = arg0.performance;
7388
8517
  return ret;
7389
8518
  };
7390
- imports.wbg.__wbg_postMessage_38909232d65f5870 = function() { return handleError(function (arg0, arg1) {
8519
+ imports.wbg.__wbg_postMessage_de7175726e2c1bc7 = function() { return handleError(function (arg0, arg1) {
7391
8520
  arg0.postMessage(arg1);
7392
8521
  }, arguments) };
7393
8522
  imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
7394
8523
  const ret = arg0.process;
7395
8524
  return ret;
7396
8525
  };
7397
- imports.wbg.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
8526
+ imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
7398
8527
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
7399
8528
  };
7400
- imports.wbg.__wbg_push_330b2eb93e4e1212 = function(arg0, arg1) {
8529
+ imports.wbg.__wbg_push_df81a39d04db858c = function(arg0, arg1) {
7401
8530
  const ret = arg0.push(arg1);
7402
8531
  return ret;
7403
8532
  };
7404
- imports.wbg.__wbg_queueMicrotask_25d0739ac89e8c88 = function(arg0) {
7405
- queueMicrotask(arg0);
7406
- };
7407
- imports.wbg.__wbg_queueMicrotask_4488407636f5bf24 = function(arg0) {
8533
+ imports.wbg.__wbg_queueMicrotask_34d692c25c47d05b = function(arg0) {
7408
8534
  const ret = arg0.queueMicrotask;
7409
8535
  return ret;
7410
8536
  };
8537
+ imports.wbg.__wbg_queueMicrotask_9d76cacb20c84d58 = function(arg0) {
8538
+ queueMicrotask(arg0);
8539
+ };
7411
8540
  imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
7412
8541
  arg0.randomFillSync(arg1);
7413
8542
  }, arguments) };
7414
- imports.wbg.__wbg_random_7ed63a0b38ee3b75 = function() {
8543
+ imports.wbg.__wbg_random_babe96ffc73e60a2 = function() {
7415
8544
  const ret = Math.random();
7416
8545
  return ret;
7417
8546
  };
7418
- imports.wbg.__wbg_read_a43bb46027f02ee9 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
7419
- const ret = arg0.read(getArrayU8FromWasm0(arg1, arg2), arg3);
7420
- return ret;
7421
- }, arguments) };
7422
- imports.wbg.__wbg_read_bc925c758aa4d897 = function(arg0) {
8547
+ imports.wbg.__wbg_read_48f1593df542f968 = function(arg0) {
7423
8548
  const ret = arg0.read();
7424
8549
  return ret;
7425
8550
  };
7426
- imports.wbg.__wbg_read_e271e94623077591 = function() { return handleError(function (arg0, arg1, arg2) {
8551
+ imports.wbg.__wbg_read_e2b5efb864451cae = function() { return handleError(function (arg0, arg1, arg2) {
7427
8552
  const ret = arg0.read(arg1, arg2);
7428
8553
  return ret;
7429
8554
  }, arguments) };
7430
- imports.wbg.__wbg_releaseLock_ff29b586502a8221 = function(arg0) {
8555
+ imports.wbg.__wbg_read_f7d59b68d039d64d = function() { return handleError(function (arg0, arg1, arg2, arg3) {
8556
+ const ret = arg0.read(getArrayU8FromWasm0(arg1, arg2), arg3);
8557
+ return ret;
8558
+ }, arguments) };
8559
+ imports.wbg.__wbg_releaseLock_5d0b5a68887b891d = function(arg0) {
7431
8560
  arg0.releaseLock();
7432
8561
  };
7433
8562
  imports.wbg.__wbg_remoteattachmentinfo_new = function(arg0) {
@@ -7438,7 +8567,7 @@ function __wbg_get_imports() {
7438
8567
  const ret = RemoteAttachmentInfo.__unwrap(arg0);
7439
8568
  return ret;
7440
8569
  };
7441
- imports.wbg.__wbg_removeEntry_3ab786c4d0e6a154 = function(arg0, arg1, arg2) {
8570
+ imports.wbg.__wbg_removeEntry_ad74c4d6bc5669bf = function(arg0, arg1, arg2) {
7442
8571
  const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2));
7443
8572
  return ret;
7444
8573
  };
@@ -7446,18 +8575,18 @@ function __wbg_get_imports() {
7446
8575
  const ret = module.require;
7447
8576
  return ret;
7448
8577
  }, arguments) };
7449
- imports.wbg.__wbg_resolve_4055c623acdd6a1b = function(arg0) {
8578
+ imports.wbg.__wbg_resolve_caf97c30b83f7053 = function(arg0) {
7450
8579
  const ret = Promise.resolve(arg0);
7451
8580
  return ret;
7452
8581
  };
7453
- imports.wbg.__wbg_respond_6c2c4e20ef85138e = function() { return handleError(function (arg0, arg1) {
8582
+ imports.wbg.__wbg_respond_0f4dbf5386f5c73e = function() { return handleError(function (arg0, arg1) {
7454
8583
  arg0.respond(arg1 >>> 0);
7455
8584
  }, arguments) };
7456
8585
  imports.wbg.__wbg_setInterval_ed3b5e3c3ebb8a6d = function() { return handleError(function (arg0, arg1) {
7457
8586
  const ret = setInterval(arg0, arg1);
7458
8587
  return ret;
7459
8588
  }, arguments) };
7460
- imports.wbg.__wbg_setTimeout_2b339866a2aa3789 = function(arg0, arg1) {
8589
+ imports.wbg.__wbg_setTimeout_7bb3429662ab1e70 = function(arg0, arg1) {
7461
8590
  const ret = setTimeout(arg0, arg1);
7462
8591
  return ret;
7463
8592
  };
@@ -7472,75 +8601,75 @@ function __wbg_get_imports() {
7472
8601
  const ret = setTimeout(arg0, arg1);
7473
8602
  return ret;
7474
8603
  }, arguments) };
7475
- imports.wbg.__wbg_setUint32_8a9564ae127df4c5 = function(arg0, arg1, arg2) {
8604
+ imports.wbg.__wbg_setUint32_7c19a62c08deac62 = function(arg0, arg1, arg2) {
7476
8605
  arg0.setUint32(arg1 >>> 0, arg2 >>> 0);
7477
8606
  };
7478
- imports.wbg.__wbg_set_1353b2a5e96bc48c = function(arg0, arg1, arg2) {
7479
- arg0.set(getArrayU8FromWasm0(arg1, arg2));
7480
- };
7481
- imports.wbg.__wbg_set_1c17f9738fac2718 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
7482
- arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
7483
- }, arguments) };
7484
8607
  imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
7485
8608
  arg0[arg1] = arg2;
7486
8609
  };
7487
- imports.wbg.__wbg_set_453345bcda80b89a = function() { return handleError(function (arg0, arg1, arg2) {
7488
- const ret = Reflect.set(arg0, arg1, arg2);
7489
- return ret;
8610
+ imports.wbg.__wbg_set_8b342d8cd9d2a02c = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
8611
+ arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
7490
8612
  }, arguments) };
7491
- imports.wbg.__wbg_set_90f6c0f7bd8c0415 = function(arg0, arg1, arg2) {
7492
- arg0[arg1 >>> 0] = arg2;
7493
- };
7494
- imports.wbg.__wbg_set_b7f1cf4fae26fe2a = function(arg0, arg1, arg2) {
8613
+ imports.wbg.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
7495
8614
  const ret = arg0.set(arg1, arg2);
7496
8615
  return ret;
7497
8616
  };
7498
- imports.wbg.__wbg_setat_f8fc70f546036b10 = function(arg0, arg1) {
8617
+ imports.wbg.__wbg_set_9e6516df7b7d0f19 = function(arg0, arg1, arg2) {
8618
+ arg0.set(getArrayU8FromWasm0(arg1, arg2));
8619
+ };
8620
+ imports.wbg.__wbg_set_at_ec187fadbab331e2 = function(arg0, arg1) {
7499
8621
  arg0.at = arg1;
7500
8622
  };
7501
- imports.wbg.__wbg_setbody_c8460bdf44147df8 = function(arg0, arg1) {
8623
+ imports.wbg.__wbg_set_body_3c365989753d61f4 = function(arg0, arg1) {
7502
8624
  arg0.body = arg1;
7503
8625
  };
7504
- imports.wbg.__wbg_setcache_90ca4ad8a8ad40d3 = function(arg0, arg1) {
8626
+ imports.wbg.__wbg_set_c213c871859d6500 = function(arg0, arg1, arg2) {
8627
+ arg0[arg1 >>> 0] = arg2;
8628
+ };
8629
+ imports.wbg.__wbg_set_c2abbebe8b9ebee1 = function() { return handleError(function (arg0, arg1, arg2) {
8630
+ const ret = Reflect.set(arg0, arg1, arg2);
8631
+ return ret;
8632
+ }, arguments) };
8633
+ imports.wbg.__wbg_set_cache_2f9deb19b92b81e3 = function(arg0, arg1) {
7505
8634
  arg0.cache = __wbindgen_enum_RequestCache[arg1];
7506
8635
  };
7507
- imports.wbg.__wbg_setcreate_1eb73f4ea713c1ad = function(arg0, arg1) {
8636
+ imports.wbg.__wbg_set_create_89d91caa5a7a3a2b = function(arg0, arg1) {
7508
8637
  arg0.create = arg1 !== 0;
7509
8638
  };
7510
- imports.wbg.__wbg_setcreate_2d32aa4bbcd1d7af = function(arg0, arg1) {
8639
+ imports.wbg.__wbg_set_create_cd6996d11cc76544 = function(arg0, arg1) {
7511
8640
  arg0.create = arg1 !== 0;
7512
8641
  };
7513
- imports.wbg.__wbg_setcredentials_9cd60d632c9d5dfc = function(arg0, arg1) {
8642
+ imports.wbg.__wbg_set_credentials_f621cd2d85c0c228 = function(arg0, arg1) {
7514
8643
  arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
7515
8644
  };
7516
- imports.wbg.__wbg_setheaders_0052283e2f3503d1 = function(arg0, arg1) {
8645
+ imports.wbg.__wbg_set_headers_6926da238cd32ee4 = function(arg0, arg1) {
7517
8646
  arg0.headers = arg1;
7518
8647
  };
7519
- imports.wbg.__wbg_sethighwatermark_3d5961f834647d41 = function(arg0, arg1) {
8648
+ imports.wbg.__wbg_set_high_water_mark_5142ac1d2fb46365 = function(arg0, arg1) {
7520
8649
  arg0.highWaterMark = arg1;
7521
8650
  };
7522
- imports.wbg.__wbg_setintegrity_de8bf847597602b5 = function(arg0, arg1, arg2) {
8651
+ imports.wbg.__wbg_set_integrity_62a46fc792832f41 = function(arg0, arg1, arg2) {
7523
8652
  arg0.integrity = getStringFromWasm0(arg1, arg2);
7524
8653
  };
7525
- imports.wbg.__wbg_setmethod_9b504d5b855b329c = function(arg0, arg1, arg2) {
8654
+ imports.wbg.__wbg_set_method_c02d8cbbe204ac2d = function(arg0, arg1, arg2) {
7526
8655
  arg0.method = getStringFromWasm0(arg1, arg2);
7527
8656
  };
7528
- imports.wbg.__wbg_setmode_a23e1a2ad8b512f8 = function(arg0, arg1) {
8657
+ imports.wbg.__wbg_set_mode_52ef73cfa79639cb = function(arg0, arg1) {
7529
8658
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
7530
8659
  };
7531
- imports.wbg.__wbg_setredirect_9542307f3ab946a9 = function(arg0, arg1) {
8660
+ imports.wbg.__wbg_set_redirect_df0285496ec45ff8 = function(arg0, arg1) {
7532
8661
  arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
7533
8662
  };
7534
- imports.wbg.__wbg_setreferrer_c8dd38f95f31e178 = function(arg0, arg1, arg2) {
8663
+ imports.wbg.__wbg_set_referrer_ec9cf8a8a315d50c = function(arg0, arg1, arg2) {
7535
8664
  arg0.referrer = getStringFromWasm0(arg1, arg2);
7536
8665
  };
7537
- imports.wbg.__wbg_setreferrerpolicy_164abad8ed6e3886 = function(arg0, arg1) {
8666
+ imports.wbg.__wbg_set_referrer_policy_99c1f299b4e37446 = function(arg0, arg1) {
7538
8667
  arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
7539
8668
  };
7540
- imports.wbg.__wbg_setsignal_8c45ad1247a74809 = function(arg0, arg1) {
8669
+ imports.wbg.__wbg_set_signal_dda2cf7ccb6bee0f = function(arg0, arg1) {
7541
8670
  arg0.signal = arg1;
7542
8671
  };
7543
- imports.wbg.__wbg_signal_da4d466ce86118b5 = function(arg0) {
8672
+ imports.wbg.__wbg_signal_4db5aa055bf9eb9a = function(arg0) {
7544
8673
  const ret = arg0.signal;
7545
8674
  return ret;
7546
8675
  };
@@ -7548,11 +8677,7 @@ function __wbg_get_imports() {
7548
8677
  const ret = SignatureRequestHandle.__wrap(arg0);
7549
8678
  return ret;
7550
8679
  };
7551
- imports.wbg.__wbg_size_af8602b0b838d49e = function(arg0) {
7552
- const ret = arg0.size;
7553
- return ret;
7554
- };
7555
- imports.wbg.__wbg_slice_974daea329f5c01d = function(arg0, arg1, arg2) {
8680
+ imports.wbg.__wbg_slice_3e7e2fc0da7cc625 = function(arg0, arg1, arg2) {
7556
8681
  const ret = arg0.slice(arg1 >>> 0, arg2 >>> 0);
7557
8682
  return ret;
7558
8683
  };
@@ -7563,78 +8688,72 @@ function __wbg_get_imports() {
7563
8688
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
7564
8689
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
7565
8690
  };
7566
- imports.wbg.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() {
8691
+ imports.wbg.__wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e = function() {
7567
8692
  const ret = typeof global === 'undefined' ? null : global;
7568
8693
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
7569
8694
  };
7570
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() {
8695
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac = function() {
7571
8696
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
7572
8697
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
7573
8698
  };
7574
- imports.wbg.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
8699
+ imports.wbg.__wbg_static_accessor_SELF_6fdf4b64710cc91b = function() {
7575
8700
  const ret = typeof self === 'undefined' ? null : self;
7576
8701
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
7577
8702
  };
7578
- imports.wbg.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() {
8703
+ imports.wbg.__wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2 = function() {
7579
8704
  const ret = typeof window === 'undefined' ? null : window;
7580
8705
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
7581
8706
  };
7582
- imports.wbg.__wbg_status_3fea3036088621d6 = function(arg0) {
8707
+ imports.wbg.__wbg_status_de7eed5a7a5bfd5d = function(arg0) {
7583
8708
  const ret = arg0.status;
7584
8709
  return ret;
7585
8710
  };
7586
- imports.wbg.__wbg_storage_32b4ac688c114c3d = function(arg0) {
8711
+ imports.wbg.__wbg_storage_2fd28cd0598c9a9b = function(arg0) {
7587
8712
  const ret = arg0.storage;
7588
8713
  return ret;
7589
8714
  };
7590
- imports.wbg.__wbg_stringify_b98c93d0a190446a = function() { return handleError(function (arg0) {
8715
+ imports.wbg.__wbg_stringify_b5fb28f6465d9c3e = function() { return handleError(function (arg0) {
7591
8716
  const ret = JSON.stringify(arg0);
7592
8717
  return ret;
7593
8718
  }, arguments) };
7594
- imports.wbg.__wbg_subarray_70fd07feefe14294 = function(arg0, arg1, arg2) {
8719
+ imports.wbg.__wbg_subarray_480600f3d6a9f26c = function(arg0, arg1, arg2) {
7595
8720
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
7596
8721
  return ret;
7597
8722
  };
7598
- imports.wbg.__wbg_text_0f69a215637b9b34 = function() { return handleError(function (arg0) {
8723
+ imports.wbg.__wbg_text_dc33c15c17bdfb52 = function() { return handleError(function (arg0) {
7599
8724
  const ret = arg0.text();
7600
8725
  return ret;
7601
8726
  }, arguments) };
7602
- imports.wbg.__wbg_then_b33a773d723afa3e = function(arg0, arg1, arg2) {
7603
- const ret = arg0.then(arg1, arg2);
8727
+ imports.wbg.__wbg_then_4f46f6544e6b4a28 = function(arg0, arg1) {
8728
+ const ret = arg0.then(arg1);
7604
8729
  return ret;
7605
8730
  };
7606
- imports.wbg.__wbg_then_e22500defe16819f = function(arg0, arg1) {
7607
- const ret = arg0.then(arg1);
8731
+ imports.wbg.__wbg_then_70d05cf780a18d77 = function(arg0, arg1, arg2) {
8732
+ const ret = arg0.then(arg1, arg2);
7608
8733
  return ret;
7609
8734
  };
7610
- imports.wbg.__wbg_toString_2ca967683e5874bc = function() { return handleError(function (arg0, arg1) {
8735
+ imports.wbg.__wbg_toString_331854e6e3c16849 = function() { return handleError(function (arg0, arg1) {
7611
8736
  const ret = arg0.toString(arg1);
7612
8737
  return ret;
7613
8738
  }, arguments) };
7614
- imports.wbg.__wbg_toString_78df35411a4fd40c = function(arg0) {
8739
+ imports.wbg.__wbg_toString_7da7c8dbec78fcb8 = function(arg0) {
7615
8740
  const ret = arg0.toString();
7616
8741
  return ret;
7617
8742
  };
7618
- imports.wbg.__wbg_toU8Array_7fa7fb3ae8554ad0 = function(arg0, arg1, arg2, arg3) {
7619
- JSArrayBufferCopy.toU8Array(arg0, arg1 >>> 0, arg2 >>> 0, arg3);
7620
- };
7621
- imports.wbg.__wbg_toU8Slice_11519abfa5176ae4 = function(arg0, arg1, arg2, arg3) {
7622
- JSArrayBufferCopy.toU8Slice(arg0, arg1, arg2 >>> 0, arg3 >>> 0);
7623
- };
7624
- imports.wbg.__wbg_truncate_0fe935591188a14c = function() { return handleError(function (arg0, arg1) {
7625
- arg0.truncate(arg1 >>> 0);
7626
- }, arguments) };
7627
- imports.wbg.__wbg_truncate_7cddd971e3cf0a8c = function() { return handleError(function (arg0, arg1) {
8743
+ imports.wbg.__wbg_truncate_6511a04243d4c36b = function() { return handleError(function (arg0, arg1) {
7628
8744
  arg0.truncate(arg1);
7629
8745
  }, arguments) };
7630
- imports.wbg.__wbg_url_e5720dfacf77b05e = function(arg0, arg1) {
8746
+ imports.wbg.__wbg_truncate_f99e4636535b6562 = function() { return handleError(function (arg0, arg1) {
8747
+ arg0.truncate(arg1 >>> 0);
8748
+ }, arguments) };
8749
+ imports.wbg.__wbg_url_b36d2a5008eb056f = function(arg0, arg1) {
7631
8750
  const ret = arg1.url;
7632
8751
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7633
8752
  const len1 = WASM_VECTOR_LEN;
7634
8753
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
7635
8754
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
7636
8755
  };
7637
- imports.wbg.__wbg_value_dd9372230531eade = function(arg0) {
8756
+ imports.wbg.__wbg_value_692627309814bb8c = function(arg0) {
7638
8757
  const ret = arg0.value;
7639
8758
  return ret;
7640
8759
  };
@@ -7642,94 +8761,21 @@ function __wbg_get_imports() {
7642
8761
  const ret = arg0.versions;
7643
8762
  return ret;
7644
8763
  };
7645
- imports.wbg.__wbg_view_91cc97d57ab30530 = function(arg0) {
8764
+ imports.wbg.__wbg_view_f6c15ac9fed63bbd = function(arg0) {
7646
8765
  const ret = arg0.view;
7647
8766
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
7648
8767
  };
7649
- imports.wbg.__wbg_warn_90eb15d986910fe9 = function(arg0, arg1, arg2, arg3) {
7650
- console.warn(arg0, arg1, arg2, arg3);
7651
- };
7652
- imports.wbg.__wbg_warn_e2ada06313f92f09 = function(arg0) {
8768
+ imports.wbg.__wbg_warn_1d74dddbe2fd1dbb = function(arg0) {
7653
8769
  console.warn(arg0);
7654
8770
  };
7655
- imports.wbg.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) {
7656
- const v = arg0;
7657
- const ret = typeof(v) === 'boolean' ? v : undefined;
7658
- return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
7659
- };
7660
- imports.wbg.__wbg_wbindgencbdrop_eb10308566512b88 = function(arg0) {
7661
- const obj = arg0.original;
7662
- if (obj.cnt-- == 1) {
7663
- obj.a = 0;
7664
- return true;
7665
- }
7666
- const ret = false;
7667
- return ret;
7668
- };
7669
- imports.wbg.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
7670
- const ret = debugString(arg1);
7671
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7672
- const len1 = WASM_VECTOR_LEN;
7673
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
7674
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
7675
- };
7676
- imports.wbg.__wbg_wbindgenin_d7a1ee10933d2d55 = function(arg0, arg1) {
7677
- const ret = arg0 in arg1;
7678
- return ret;
7679
- };
7680
- imports.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
7681
- const ret = typeof(arg0) === 'function';
7682
- return ret;
7683
- };
7684
- imports.wbg.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
7685
- const val = arg0;
7686
- const ret = typeof(val) === 'object' && val !== null;
7687
- return ret;
7688
- };
7689
- imports.wbg.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
7690
- const ret = typeof(arg0) === 'string';
7691
- return ret;
7692
- };
7693
- imports.wbg.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
7694
- const ret = arg0 === undefined;
7695
- return ret;
7696
- };
7697
- imports.wbg.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function(arg0, arg1) {
7698
- const ret = arg0 == arg1;
7699
- return ret;
7700
- };
7701
- imports.wbg.__wbg_wbindgenmemory_d84da70f7c42d172 = function() {
7702
- const ret = wasm.memory;
7703
- return ret;
7704
- };
7705
- imports.wbg.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) {
7706
- const obj = arg1;
7707
- const ret = typeof(obj) === 'number' ? obj : undefined;
7708
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
7709
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
7710
- };
7711
- imports.wbg.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
7712
- const obj = arg1;
7713
- const ret = typeof(obj) === 'string' ? obj : undefined;
7714
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7715
- var len1 = WASM_VECTOR_LEN;
7716
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
7717
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
7718
- };
7719
- imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
7720
- throw new Error(getStringFromWasm0(arg0, arg1));
7721
- };
7722
- imports.wbg.__wbg_wbindgentryintonumber_aef53fe1d23c5fd4 = function(arg0) {
7723
- let result;
7724
- try { result = +arg0 } catch (e) { result = e }
7725
- const ret = result;
7726
- return ret;
8771
+ imports.wbg.__wbg_warn_8f5b5437666d0885 = function(arg0, arg1, arg2, arg3) {
8772
+ console.warn(arg0, arg1, arg2, arg3);
7727
8773
  };
7728
- imports.wbg.__wbg_write_9ac6a5f58a8c835c = function() { return handleError(function (arg0, arg1, arg2, arg3) {
8774
+ imports.wbg.__wbg_write_0c22b53589bfcada = function() { return handleError(function (arg0, arg1, arg2, arg3) {
7729
8775
  const ret = arg0.write(getArrayU8FromWasm0(arg1, arg2), arg3);
7730
8776
  return ret;
7731
8777
  }, arguments) };
7732
- imports.wbg.__wbg_write_c0e234eeb0039d0d = function() { return handleError(function (arg0, arg1, arg2) {
8778
+ imports.wbg.__wbg_write_5c1be3e4039a6ed1 = function() { return handleError(function (arg0, arg1, arg2) {
7733
8779
  const ret = arg0.write(arg1, arg2);
7734
8780
  return ret;
7735
8781
  }, arguments) };
@@ -7741,11 +8787,6 @@ function __wbg_get_imports() {
7741
8787
  const ret = XmtpCursor.__unwrap(arg0);
7742
8788
  return ret;
7743
8789
  };
7744
- imports.wbg.__wbindgen_cast_071bb8cd1f636a07 = function(arg0, arg1) {
7745
- // Cast intrinsic for `Closure(Closure { dtor_idx: 6809, function: Function { arguments: [], shim_idx: 6810, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7746
- const ret = makeMutClosure(arg0, arg1, 6809, __wbg_adapter_33);
7747
- return ret;
7748
- };
7749
8790
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
7750
8791
  // Cast intrinsic for `Ref(String) -> Externref`.
7751
8792
  const ret = getStringFromWasm0(arg0, arg1);
@@ -7763,9 +8804,9 @@ function __wbg_get_imports() {
7763
8804
  const ret = v0;
7764
8805
  return ret;
7765
8806
  };
7766
- imports.wbg.__wbindgen_cast_653b2620668ca290 = function(arg0, arg1) {
7767
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7216, function: Function { arguments: [Externref], shim_idx: 7227, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7768
- const ret = makeMutClosure(arg0, arg1, 7216, __wbg_adapter_18);
8807
+ imports.wbg.__wbindgen_cast_8dd080359318db87 = function(arg0, arg1) {
8808
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7157, function: Function { arguments: [], shim_idx: 7158, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8809
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h9f4e0badb87b6c7f, wasm_bindgen__convert__closures_____invoke__he553f5a75ceef16c);
7769
8810
  return ret;
7770
8811
  };
7771
8812
  imports.wbg.__wbindgen_cast_8e37b4ad2f2ba653 = function(arg0, arg1) {
@@ -7775,6 +8816,11 @@ function __wbg_get_imports() {
7775
8816
  const ret = v0;
7776
8817
  return ret;
7777
8818
  };
8819
+ imports.wbg.__wbindgen_cast_937cd3a5cd557156 = function(arg0, arg1) {
8820
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7190, function: Function { arguments: [Externref], shim_idx: 7191, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8821
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h4589b9dda0a82164, wasm_bindgen__convert__closures_____invoke__h03e85ac1b34d0273);
8822
+ return ret;
8823
+ };
7778
8824
  imports.wbg.__wbindgen_cast_998222446b91a002 = function(arg0, arg1) {
7779
8825
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
7780
8826
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -7787,9 +8833,9 @@ function __wbg_get_imports() {
7787
8833
  const ret = arg0;
7788
8834
  return ret;
7789
8835
  };
7790
- imports.wbg.__wbindgen_cast_9af4c227e00b9082 = function(arg0, arg1) {
7791
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7203, function: Function { arguments: [], shim_idx: 7204, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7792
- const ret = makeMutClosure(arg0, arg1, 7203, __wbg_adapter_13);
8836
+ imports.wbg.__wbindgen_cast_9cb605fb7719cb4c = function(arg0, arg1) {
8837
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 6993, function: Function { arguments: [], shim_idx: 6994, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8838
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h68c8e9e8c7c33e7c, wasm_bindgen__convert__closures_____invoke__h7a7839898bdc8c05);
7793
8839
  return ret;
7794
8840
  };
7795
8841
  imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
@@ -7802,11 +8848,6 @@ function __wbg_get_imports() {
7802
8848
  const ret = arg0;
7803
8849
  return ret;
7804
8850
  };
7805
- imports.wbg.__wbindgen_cast_d90c0f8b32072ebf = function(arg0, arg1) {
7806
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4939, function: Function { arguments: [], shim_idx: 4940, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7807
- const ret = makeMutClosure(arg0, arg1, 4939, __wbg_adapter_8);
7808
- return ret;
7809
- };
7810
8851
  imports.wbg.__wbindgen_cast_e081be35fe620ec4 = function(arg0, arg1) {
7811
8852
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
7812
8853
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -7814,6 +8855,11 @@ function __wbg_get_imports() {
7814
8855
  const ret = v0;
7815
8856
  return ret;
7816
8857
  };
8858
+ imports.wbg.__wbindgen_cast_e852fcf288a63fef = function(arg0, arg1) {
8859
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 6778, function: Function { arguments: [], shim_idx: 6779, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8860
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hf682406d9647bfe2, wasm_bindgen__convert__closures_____invoke__h922fe5fb24b1beed);
8861
+ return ret;
8862
+ };
7817
8863
  imports.wbg.__wbindgen_cast_f20a506f31063fd0 = function(arg0, arg1) {
7818
8864
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
7819
8865
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -7822,7 +8868,7 @@ function __wbg_get_imports() {
7822
8868
  return ret;
7823
8869
  };
7824
8870
  imports.wbg.__wbindgen_init_externref_table = function() {
7825
- const table = wasm.__wbindgen_export_4;
8871
+ const table = wasm.__wbindgen_externrefs;
7826
8872
  const offset = table.grow(4);
7827
8873
  table.set(0, undefined);
7828
8874
  table.set(offset + 0, undefined);
@@ -7835,10 +8881,6 @@ function __wbg_get_imports() {
7835
8881
  return imports;
7836
8882
  }
7837
8883
 
7838
- function __wbg_init_memory(imports, memory) {
7839
-
7840
- }
7841
-
7842
8884
  function __wbg_finalize_init(instance, module) {
7843
8885
  wasm = instance.exports;
7844
8886
  __wbg_init.__wbindgen_wasm_module = module;
@@ -7864,8 +8906,6 @@ function initSync(module) {
7864
8906
 
7865
8907
  const imports = __wbg_get_imports();
7866
8908
 
7867
- __wbg_init_memory(imports);
7868
-
7869
8909
  if (!(module instanceof WebAssembly.Module)) {
7870
8910
  module = new WebAssembly.Module(module);
7871
8911
  }
@@ -7896,8 +8936,6 @@ async function __wbg_init(module_or_path) {
7896
8936
  module_or_path = fetch(module_or_path);
7897
8937
  }
7898
8938
 
7899
- __wbg_init_memory(imports);
7900
-
7901
8939
  const { instance, module } = await __wbg_load(await module_or_path, imports);
7902
8940
 
7903
8941
  return __wbg_finalize_init(instance, module);