@xmtp/wasm-bindings 1.9.0-rc2 → 1.9.0-rc3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bindings_wasm.d.ts +372 -372
- package/dist/bindings_wasm.js +362 -362
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +67 -67
- package/package.json +1 -1
package/dist/bindings_wasm.js
CHANGED
|
@@ -230,91 +230,6 @@ function takeFromExternrefTable0(idx) {
|
|
|
230
230
|
wasm.__externref_table_dealloc(idx);
|
|
231
231
|
return value;
|
|
232
232
|
}
|
|
233
|
-
/**
|
|
234
|
-
* @param {string} signatureText
|
|
235
|
-
* @param {Uint8Array} signatureBytes
|
|
236
|
-
* @param {Uint8Array} publicKey
|
|
237
|
-
*/
|
|
238
|
-
export function verifySignedWithPublicKey(signatureText, signatureBytes, publicKey) {
|
|
239
|
-
const ptr0 = passStringToWasm0(signatureText, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
240
|
-
const len0 = WASM_VECTOR_LEN;
|
|
241
|
-
const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signatureBytes, publicKey);
|
|
242
|
-
if (ret[1]) {
|
|
243
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
function _assertClass(instance, klass) {
|
|
248
|
-
if (!(instance instanceof klass)) {
|
|
249
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* @param {string} host
|
|
254
|
-
* @param {string | null | undefined} gatewayHost
|
|
255
|
-
* @param {SignatureRequestHandle} signatureRequest
|
|
256
|
-
* @returns {Promise<void>}
|
|
257
|
-
*/
|
|
258
|
-
export function applySignatureRequest(host, gatewayHost, signatureRequest) {
|
|
259
|
-
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
260
|
-
const len0 = WASM_VECTOR_LEN;
|
|
261
|
-
var ptr1 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
262
|
-
var len1 = WASM_VECTOR_LEN;
|
|
263
|
-
_assertClass(signatureRequest, SignatureRequestHandle);
|
|
264
|
-
const ret = wasm.applySignatureRequest(ptr0, len0, ptr1, len1, signatureRequest.__wbg_ptr);
|
|
265
|
-
return ret;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
function passArrayJsValueToWasm0(array, malloc) {
|
|
269
|
-
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
270
|
-
for (let i = 0; i < array.length; i++) {
|
|
271
|
-
const add = addToExternrefTable0(array[i]);
|
|
272
|
-
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
273
|
-
}
|
|
274
|
-
WASM_VECTOR_LEN = array.length;
|
|
275
|
-
return ptr;
|
|
276
|
-
}
|
|
277
|
-
/**
|
|
278
|
-
* @param {string} host
|
|
279
|
-
* @param {string | null | undefined} gatewayHost
|
|
280
|
-
* @param {Identifier} recoveryIdentifier
|
|
281
|
-
* @param {string} inboxId
|
|
282
|
-
* @param {Uint8Array[]} installationIds
|
|
283
|
-
* @returns {SignatureRequestHandle}
|
|
284
|
-
*/
|
|
285
|
-
export function revokeInstallationsSignatureRequest(host, gatewayHost, recoveryIdentifier, inboxId, installationIds) {
|
|
286
|
-
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
287
|
-
const len0 = WASM_VECTOR_LEN;
|
|
288
|
-
var ptr1 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
289
|
-
var len1 = WASM_VECTOR_LEN;
|
|
290
|
-
const ptr2 = passStringToWasm0(inboxId, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
291
|
-
const len2 = WASM_VECTOR_LEN;
|
|
292
|
-
const ptr3 = passArrayJsValueToWasm0(installationIds, wasm.__wbindgen_malloc);
|
|
293
|
-
const len3 = WASM_VECTOR_LEN;
|
|
294
|
-
const ret = wasm.revokeInstallationsSignatureRequest(ptr0, len0, ptr1, len1, recoveryIdentifier, ptr2, len2, ptr3, len3);
|
|
295
|
-
if (ret[2]) {
|
|
296
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
297
|
-
}
|
|
298
|
-
return SignatureRequestHandle.__wrap(ret[0]);
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* @param {MetadataField} field
|
|
303
|
-
* @returns {string}
|
|
304
|
-
*/
|
|
305
|
-
export function metadataFieldName(field) {
|
|
306
|
-
let deferred1_0;
|
|
307
|
-
let deferred1_1;
|
|
308
|
-
try {
|
|
309
|
-
const ret = wasm.metadataFieldName(field);
|
|
310
|
-
deferred1_0 = ret[0];
|
|
311
|
-
deferred1_1 = ret[1];
|
|
312
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
313
|
-
} finally {
|
|
314
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
|
|
318
233
|
/**
|
|
319
234
|
* @param {Attachment} attachment
|
|
320
235
|
* @returns {EncodedContent}
|
|
@@ -336,26 +251,42 @@ export function contentTypeAttachment() {
|
|
|
336
251
|
}
|
|
337
252
|
|
|
338
253
|
/**
|
|
339
|
-
* @
|
|
254
|
+
* @param {ReadReceipt} read_receipt
|
|
255
|
+
* @returns {EncodedContent}
|
|
340
256
|
*/
|
|
341
|
-
export function
|
|
342
|
-
const ret = wasm.
|
|
343
|
-
|
|
257
|
+
export function encodeReadReceipt(read_receipt) {
|
|
258
|
+
const ret = wasm.encodeReadReceipt(read_receipt);
|
|
259
|
+
if (ret[2]) {
|
|
260
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
261
|
+
}
|
|
262
|
+
return takeFromExternrefTable0(ret[0]);
|
|
344
263
|
}
|
|
345
264
|
|
|
346
265
|
/**
|
|
347
266
|
* @returns {ContentTypeId}
|
|
348
267
|
*/
|
|
349
|
-
export function
|
|
350
|
-
const ret = wasm.
|
|
268
|
+
export function contentTypeReadReceipt() {
|
|
269
|
+
const ret = wasm.contentTypeReadReceipt();
|
|
351
270
|
return ret;
|
|
352
271
|
}
|
|
353
272
|
|
|
273
|
+
/**
|
|
274
|
+
* @param {TransactionReference} transaction_reference
|
|
275
|
+
* @returns {EncodedContent}
|
|
276
|
+
*/
|
|
277
|
+
export function encodeTransactionReference(transaction_reference) {
|
|
278
|
+
const ret = wasm.encodeTransactionReference(transaction_reference);
|
|
279
|
+
if (ret[2]) {
|
|
280
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
281
|
+
}
|
|
282
|
+
return takeFromExternrefTable0(ret[0]);
|
|
283
|
+
}
|
|
284
|
+
|
|
354
285
|
/**
|
|
355
286
|
* @returns {ContentTypeId}
|
|
356
287
|
*/
|
|
357
|
-
export function
|
|
358
|
-
const ret = wasm.
|
|
288
|
+
export function contentTypeTransactionReference() {
|
|
289
|
+
const ret = wasm.contentTypeTransactionReference();
|
|
359
290
|
return ret;
|
|
360
291
|
}
|
|
361
292
|
|
|
@@ -371,6 +302,14 @@ export function encodeMultiRemoteAttachment(multi_remote_attachment) {
|
|
|
371
302
|
return takeFromExternrefTable0(ret[0]);
|
|
372
303
|
}
|
|
373
304
|
|
|
305
|
+
/**
|
|
306
|
+
* @returns {ContentTypeId}
|
|
307
|
+
*/
|
|
308
|
+
export function contentTypeMultiRemoteAttachment() {
|
|
309
|
+
const ret = wasm.contentTypeMultiRemoteAttachment();
|
|
310
|
+
return ret;
|
|
311
|
+
}
|
|
312
|
+
|
|
374
313
|
/**
|
|
375
314
|
* @returns {ContentTypeId}
|
|
376
315
|
*/
|
|
@@ -396,23 +335,11 @@ export function encodeText(text) {
|
|
|
396
335
|
/**
|
|
397
336
|
* @returns {ContentTypeId}
|
|
398
337
|
*/
|
|
399
|
-
export function
|
|
400
|
-
const ret = wasm.
|
|
338
|
+
export function contentTypeReply() {
|
|
339
|
+
const ret = wasm.contentTypeReply();
|
|
401
340
|
return ret;
|
|
402
341
|
}
|
|
403
342
|
|
|
404
|
-
/**
|
|
405
|
-
* @param {Intent} intent
|
|
406
|
-
* @returns {EncodedContent}
|
|
407
|
-
*/
|
|
408
|
-
export function encodeIntent(intent) {
|
|
409
|
-
const ret = wasm.encodeIntent(intent);
|
|
410
|
-
if (ret[2]) {
|
|
411
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
412
|
-
}
|
|
413
|
-
return takeFromExternrefTable0(ret[0]);
|
|
414
|
-
}
|
|
415
|
-
|
|
416
343
|
/**
|
|
417
344
|
* @returns {ContentTypeId}
|
|
418
345
|
*/
|
|
@@ -436,183 +363,238 @@ export function encodeMarkdown(text) {
|
|
|
436
363
|
}
|
|
437
364
|
|
|
438
365
|
/**
|
|
439
|
-
* @param {
|
|
440
|
-
* @
|
|
366
|
+
* @param {string} signatureText
|
|
367
|
+
* @param {Uint8Array} signatureBytes
|
|
368
|
+
* @param {Uint8Array} publicKey
|
|
441
369
|
*/
|
|
442
|
-
export function
|
|
443
|
-
const
|
|
370
|
+
export function verifySignedWithPublicKey(signatureText, signatureBytes, publicKey) {
|
|
371
|
+
const ptr0 = passStringToWasm0(signatureText, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
372
|
+
const len0 = WASM_VECTOR_LEN;
|
|
373
|
+
const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signatureBytes, publicKey);
|
|
374
|
+
if (ret[1]) {
|
|
375
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
380
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
381
|
+
for (let i = 0; i < array.length; i++) {
|
|
382
|
+
const add = addToExternrefTable0(array[i]);
|
|
383
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
384
|
+
}
|
|
385
|
+
WASM_VECTOR_LEN = array.length;
|
|
386
|
+
return ptr;
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* @param {string} host
|
|
390
|
+
* @param {string | null | undefined} gatewayHost
|
|
391
|
+
* @param {Identifier} recoveryIdentifier
|
|
392
|
+
* @param {string} inboxId
|
|
393
|
+
* @param {Uint8Array[]} installationIds
|
|
394
|
+
* @returns {SignatureRequestHandle}
|
|
395
|
+
*/
|
|
396
|
+
export function revokeInstallationsSignatureRequest(host, gatewayHost, recoveryIdentifier, inboxId, installationIds) {
|
|
397
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
398
|
+
const len0 = WASM_VECTOR_LEN;
|
|
399
|
+
var ptr1 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
400
|
+
var len1 = WASM_VECTOR_LEN;
|
|
401
|
+
const ptr2 = passStringToWasm0(inboxId, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
402
|
+
const len2 = WASM_VECTOR_LEN;
|
|
403
|
+
const ptr3 = passArrayJsValueToWasm0(installationIds, wasm.__wbindgen_malloc);
|
|
404
|
+
const len3 = WASM_VECTOR_LEN;
|
|
405
|
+
const ret = wasm.revokeInstallationsSignatureRequest(ptr0, len0, ptr1, len1, recoveryIdentifier, ptr2, len2, ptr3, len3);
|
|
444
406
|
if (ret[2]) {
|
|
445
407
|
throw takeFromExternrefTable0(ret[1]);
|
|
446
408
|
}
|
|
447
|
-
return
|
|
409
|
+
return SignatureRequestHandle.__wrap(ret[0]);
|
|
448
410
|
}
|
|
449
411
|
|
|
412
|
+
function _assertClass(instance, klass) {
|
|
413
|
+
if (!(instance instanceof klass)) {
|
|
414
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
450
417
|
/**
|
|
451
|
-
* @
|
|
418
|
+
* @param {string} host
|
|
419
|
+
* @param {string | null | undefined} gatewayHost
|
|
420
|
+
* @param {SignatureRequestHandle} signatureRequest
|
|
421
|
+
* @returns {Promise<void>}
|
|
452
422
|
*/
|
|
453
|
-
export function
|
|
454
|
-
const
|
|
423
|
+
export function applySignatureRequest(host, gatewayHost, signatureRequest) {
|
|
424
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
425
|
+
const len0 = WASM_VECTOR_LEN;
|
|
426
|
+
var ptr1 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
427
|
+
var len1 = WASM_VECTOR_LEN;
|
|
428
|
+
_assertClass(signatureRequest, SignatureRequestHandle);
|
|
429
|
+
const ret = wasm.applySignatureRequest(ptr0, len0, ptr1, len1, signatureRequest.__wbg_ptr);
|
|
455
430
|
return ret;
|
|
456
431
|
}
|
|
457
432
|
|
|
458
433
|
/**
|
|
459
|
-
*
|
|
460
|
-
*
|
|
461
|
-
*
|
|
462
|
-
* @
|
|
463
|
-
* @returns {Promise<boolean>}
|
|
434
|
+
* @param {string} host
|
|
435
|
+
* @param {string | null | undefined} gatewayHost
|
|
436
|
+
* @param {string[]} inboxIds
|
|
437
|
+
* @returns {Promise<InboxState[]>}
|
|
464
438
|
*/
|
|
465
|
-
export function
|
|
466
|
-
const ptr0 = passStringToWasm0(
|
|
439
|
+
export function inboxStateFromInboxIds(host, gatewayHost, inboxIds) {
|
|
440
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
467
441
|
const len0 = WASM_VECTOR_LEN;
|
|
468
|
-
|
|
442
|
+
var ptr1 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
443
|
+
var len1 = WASM_VECTOR_LEN;
|
|
444
|
+
const ptr2 = passArrayJsValueToWasm0(inboxIds, wasm.__wbindgen_malloc);
|
|
445
|
+
const len2 = WASM_VECTOR_LEN;
|
|
446
|
+
const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
469
447
|
return ret;
|
|
470
448
|
}
|
|
471
449
|
|
|
472
450
|
/**
|
|
473
|
-
*
|
|
474
|
-
* This must be called before using other OPFS functions.
|
|
475
|
-
* @returns {Promise<void>}
|
|
451
|
+
* @returns {ContentTypeId}
|
|
476
452
|
*/
|
|
477
|
-
export function
|
|
478
|
-
const ret = wasm.
|
|
453
|
+
export function contentTypeGroupUpdated() {
|
|
454
|
+
const ret = wasm.contentTypeGroupUpdated();
|
|
479
455
|
return ret;
|
|
480
456
|
}
|
|
481
457
|
|
|
482
458
|
/**
|
|
483
|
-
*
|
|
484
|
-
* @param {string} filename
|
|
485
|
-
* @returns {Promise<boolean>}
|
|
459
|
+
* @returns {ContentTypeId}
|
|
486
460
|
*/
|
|
487
|
-
export function
|
|
488
|
-
const
|
|
489
|
-
const len0 = WASM_VECTOR_LEN;
|
|
490
|
-
const ret = wasm.opfsFileExists(ptr0, len0);
|
|
461
|
+
export function contentTypeLeaveRequest() {
|
|
462
|
+
const ret = wasm.contentTypeLeaveRequest();
|
|
491
463
|
return ret;
|
|
492
464
|
}
|
|
493
465
|
|
|
494
466
|
/**
|
|
495
|
-
*
|
|
496
|
-
* @
|
|
467
|
+
* Encrypts an attachment for storage as a remote attachment.
|
|
468
|
+
* @param {Attachment} attachment
|
|
469
|
+
* @returns {EncryptedAttachment}
|
|
497
470
|
*/
|
|
498
|
-
export function
|
|
499
|
-
const ret = wasm.
|
|
500
|
-
|
|
471
|
+
export function encryptAttachment(attachment) {
|
|
472
|
+
const ret = wasm.encryptAttachment(attachment);
|
|
473
|
+
if (ret[2]) {
|
|
474
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
475
|
+
}
|
|
476
|
+
return takeFromExternrefTable0(ret[0]);
|
|
501
477
|
}
|
|
502
478
|
|
|
503
479
|
/**
|
|
504
|
-
*
|
|
505
|
-
*
|
|
506
|
-
* @returns {Promise<void>}
|
|
480
|
+
* @param {RemoteAttachment} remote_attachment
|
|
481
|
+
* @returns {EncodedContent}
|
|
507
482
|
*/
|
|
508
|
-
export function
|
|
509
|
-
const ret = wasm.
|
|
510
|
-
|
|
483
|
+
export function encodeRemoteAttachment(remote_attachment) {
|
|
484
|
+
const ret = wasm.encodeRemoteAttachment(remote_attachment);
|
|
485
|
+
if (ret[2]) {
|
|
486
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
487
|
+
}
|
|
488
|
+
return takeFromExternrefTable0(ret[0]);
|
|
511
489
|
}
|
|
512
490
|
|
|
513
491
|
/**
|
|
514
|
-
*
|
|
515
|
-
* @returns {Promise<number>}
|
|
492
|
+
* @returns {ContentTypeId}
|
|
516
493
|
*/
|
|
517
|
-
export function
|
|
518
|
-
const ret = wasm.
|
|
494
|
+
export function contentTypeRemoteAttachment() {
|
|
495
|
+
const ret = wasm.contentTypeRemoteAttachment();
|
|
519
496
|
return ret;
|
|
520
497
|
}
|
|
521
498
|
|
|
499
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
500
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
501
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
502
|
+
WASM_VECTOR_LEN = arg.length;
|
|
503
|
+
return ptr;
|
|
504
|
+
}
|
|
522
505
|
/**
|
|
523
|
-
*
|
|
524
|
-
*
|
|
525
|
-
*
|
|
526
|
-
* @
|
|
527
|
-
* @returns {Promise<Uint8Array>}
|
|
506
|
+
* Decrypts an encrypted payload from a remote attachment.
|
|
507
|
+
* @param {Uint8Array} encryptedBytes
|
|
508
|
+
* @param {RemoteAttachment} remoteAttachment
|
|
509
|
+
* @returns {Attachment}
|
|
528
510
|
*/
|
|
529
|
-
export function
|
|
530
|
-
const ptr0 =
|
|
511
|
+
export function decryptAttachment(encryptedBytes, remoteAttachment) {
|
|
512
|
+
const ptr0 = passArray8ToWasm0(encryptedBytes, wasm.__wbindgen_malloc);
|
|
531
513
|
const len0 = WASM_VECTOR_LEN;
|
|
532
|
-
const ret = wasm.
|
|
533
|
-
|
|
514
|
+
const ret = wasm.decryptAttachment(ptr0, len0, remoteAttachment);
|
|
515
|
+
if (ret[2]) {
|
|
516
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
517
|
+
}
|
|
518
|
+
return takeFromExternrefTable0(ret[0]);
|
|
534
519
|
}
|
|
535
520
|
|
|
536
521
|
/**
|
|
537
|
-
*
|
|
538
|
-
* Returns an array of file names.
|
|
539
|
-
* @returns {Promise<string[]>}
|
|
522
|
+
* @returns {ContentTypeId}
|
|
540
523
|
*/
|
|
541
|
-
export function
|
|
542
|
-
const ret = wasm.
|
|
524
|
+
export function contentTypeWalletSendCalls() {
|
|
525
|
+
const ret = wasm.contentTypeWalletSendCalls();
|
|
543
526
|
return ret;
|
|
544
527
|
}
|
|
545
528
|
|
|
546
529
|
/**
|
|
547
|
-
*
|
|
548
|
-
*
|
|
549
|
-
* The byte array must contain a valid SQLite database.
|
|
550
|
-
* Note: Any existing database with the same name must be closed before importing.
|
|
551
|
-
* @param {string} filename
|
|
552
|
-
* @param {Uint8Array} data
|
|
553
|
-
* @returns {Promise<void>}
|
|
530
|
+
* @param {WalletSendCalls} wallet_send_calls
|
|
531
|
+
* @returns {EncodedContent}
|
|
554
532
|
*/
|
|
555
|
-
export function
|
|
556
|
-
const
|
|
557
|
-
|
|
558
|
-
|
|
533
|
+
export function encodeWalletSendCalls(wallet_send_calls) {
|
|
534
|
+
const ret = wasm.encodeWalletSendCalls(wallet_send_calls);
|
|
535
|
+
if (ret[2]) {
|
|
536
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
537
|
+
}
|
|
538
|
+
return takeFromExternrefTable0(ret[0]);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* @param {Intent} intent
|
|
543
|
+
* @returns {EncodedContent}
|
|
544
|
+
*/
|
|
545
|
+
export function encodeIntent(intent) {
|
|
546
|
+
const ret = wasm.encodeIntent(intent);
|
|
547
|
+
if (ret[2]) {
|
|
548
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
549
|
+
}
|
|
550
|
+
return takeFromExternrefTable0(ret[0]);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* @returns {ContentTypeId}
|
|
555
|
+
*/
|
|
556
|
+
export function contentTypeIntent() {
|
|
557
|
+
const ret = wasm.contentTypeIntent();
|
|
559
558
|
return ret;
|
|
560
559
|
}
|
|
561
560
|
|
|
562
561
|
/**
|
|
563
|
-
* @param {
|
|
564
|
-
* @
|
|
565
|
-
* @param {boolean} isSecure
|
|
566
|
-
* @param {Identifier} accountIdentifier
|
|
567
|
-
* @returns {Promise<string | undefined>}
|
|
562
|
+
* @param {Actions} actions
|
|
563
|
+
* @returns {EncodedContent}
|
|
568
564
|
*/
|
|
569
|
-
export function
|
|
570
|
-
const
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
565
|
+
export function encodeActions(actions) {
|
|
566
|
+
const ret = wasm.encodeActions(actions);
|
|
567
|
+
if (ret[2]) {
|
|
568
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
569
|
+
}
|
|
570
|
+
return takeFromExternrefTable0(ret[0]);
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* @returns {ContentTypeId}
|
|
575
|
+
*/
|
|
576
|
+
export function contentTypeActions() {
|
|
577
|
+
const ret = wasm.contentTypeActions();
|
|
575
578
|
return ret;
|
|
576
579
|
}
|
|
577
580
|
|
|
578
581
|
/**
|
|
579
|
-
* @param {
|
|
580
|
-
* @
|
|
581
|
-
* @returns {string}
|
|
582
|
+
* @param {Reaction} reaction
|
|
583
|
+
* @returns {EncodedContent}
|
|
582
584
|
*/
|
|
583
|
-
export function
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
const ret = wasm.generateInboxId(accountIdentifier, !isLikeNone(nonce), isLikeNone(nonce) ? BigInt(0) : nonce);
|
|
588
|
-
var ptr1 = ret[0];
|
|
589
|
-
var len1 = ret[1];
|
|
590
|
-
if (ret[3]) {
|
|
591
|
-
ptr1 = 0; len1 = 0;
|
|
592
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
593
|
-
}
|
|
594
|
-
deferred2_0 = ptr1;
|
|
595
|
-
deferred2_1 = len1;
|
|
596
|
-
return getStringFromWasm0(ptr1, len1);
|
|
597
|
-
} finally {
|
|
598
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
585
|
+
export function encodeReaction(reaction) {
|
|
586
|
+
const ret = wasm.encodeReaction(reaction);
|
|
587
|
+
if (ret[2]) {
|
|
588
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
599
589
|
}
|
|
590
|
+
return takeFromExternrefTable0(ret[0]);
|
|
600
591
|
}
|
|
601
592
|
|
|
602
593
|
/**
|
|
603
|
-
* @
|
|
604
|
-
* @param {string | null | undefined} gatewayHost
|
|
605
|
-
* @param {string[]} inboxIds
|
|
606
|
-
* @returns {Promise<InboxState[]>}
|
|
594
|
+
* @returns {ContentTypeId}
|
|
607
595
|
*/
|
|
608
|
-
export function
|
|
609
|
-
const
|
|
610
|
-
const len0 = WASM_VECTOR_LEN;
|
|
611
|
-
var ptr1 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
612
|
-
var len1 = WASM_VECTOR_LEN;
|
|
613
|
-
const ptr2 = passArrayJsValueToWasm0(inboxIds, wasm.__wbindgen_malloc);
|
|
614
|
-
const len2 = WASM_VECTOR_LEN;
|
|
615
|
-
const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
596
|
+
export function contentTypeReaction() {
|
|
597
|
+
const ret = wasm.contentTypeReaction();
|
|
616
598
|
return ret;
|
|
617
599
|
}
|
|
618
600
|
|
|
@@ -657,145 +639,163 @@ export function createClient(host, inboxId, accountIdentifier, dbPath, encryptio
|
|
|
657
639
|
}
|
|
658
640
|
|
|
659
641
|
/**
|
|
660
|
-
* @param {
|
|
661
|
-
* @
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
if (ret[2]) {
|
|
666
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
667
|
-
}
|
|
668
|
-
return takeFromExternrefTable0(ret[0]);
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
/**
|
|
672
|
-
* @returns {ContentTypeId}
|
|
642
|
+
* @param {string} host
|
|
643
|
+
* @param {string | null | undefined} gatewayHost
|
|
644
|
+
* @param {boolean} isSecure
|
|
645
|
+
* @param {Identifier} accountIdentifier
|
|
646
|
+
* @returns {Promise<string | undefined>}
|
|
673
647
|
*/
|
|
674
|
-
export function
|
|
675
|
-
const
|
|
648
|
+
export function getInboxIdForIdentifier(host, gatewayHost, isSecure, accountIdentifier) {
|
|
649
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
650
|
+
const len0 = WASM_VECTOR_LEN;
|
|
651
|
+
var ptr1 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
652
|
+
var len1 = WASM_VECTOR_LEN;
|
|
653
|
+
const ret = wasm.getInboxIdForIdentifier(ptr0, len0, ptr1, len1, isSecure, accountIdentifier);
|
|
676
654
|
return ret;
|
|
677
655
|
}
|
|
678
656
|
|
|
679
657
|
/**
|
|
680
|
-
* @param {
|
|
681
|
-
* @
|
|
658
|
+
* @param {Identifier} accountIdentifier
|
|
659
|
+
* @param {bigint | null} [nonce]
|
|
660
|
+
* @returns {string}
|
|
682
661
|
*/
|
|
683
|
-
export function
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
662
|
+
export function generateInboxId(accountIdentifier, nonce) {
|
|
663
|
+
let deferred2_0;
|
|
664
|
+
let deferred2_1;
|
|
665
|
+
try {
|
|
666
|
+
const ret = wasm.generateInboxId(accountIdentifier, !isLikeNone(nonce), isLikeNone(nonce) ? BigInt(0) : nonce);
|
|
667
|
+
var ptr1 = ret[0];
|
|
668
|
+
var len1 = ret[1];
|
|
669
|
+
if (ret[3]) {
|
|
670
|
+
ptr1 = 0; len1 = 0;
|
|
671
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
672
|
+
}
|
|
673
|
+
deferred2_0 = ptr1;
|
|
674
|
+
deferred2_1 = len1;
|
|
675
|
+
return getStringFromWasm0(ptr1, len1);
|
|
676
|
+
} finally {
|
|
677
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
687
678
|
}
|
|
688
|
-
return takeFromExternrefTable0(ret[0]);
|
|
689
679
|
}
|
|
690
680
|
|
|
691
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
692
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
693
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
694
|
-
WASM_VECTOR_LEN = arg.length;
|
|
695
|
-
return ptr;
|
|
696
|
-
}
|
|
697
681
|
/**
|
|
698
|
-
*
|
|
699
|
-
* @
|
|
700
|
-
* @param {RemoteAttachment} remoteAttachment
|
|
701
|
-
* @returns {Attachment}
|
|
682
|
+
* @param {MetadataField} field
|
|
683
|
+
* @returns {string}
|
|
702
684
|
*/
|
|
703
|
-
export function
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
685
|
+
export function metadataFieldName(field) {
|
|
686
|
+
let deferred1_0;
|
|
687
|
+
let deferred1_1;
|
|
688
|
+
try {
|
|
689
|
+
const ret = wasm.metadataFieldName(field);
|
|
690
|
+
deferred1_0 = ret[0];
|
|
691
|
+
deferred1_1 = ret[1];
|
|
692
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
693
|
+
} finally {
|
|
694
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
709
695
|
}
|
|
710
|
-
return takeFromExternrefTable0(ret[0]);
|
|
711
696
|
}
|
|
712
697
|
|
|
713
698
|
/**
|
|
714
|
-
*
|
|
699
|
+
* Get the number of database files stored in OPFS.
|
|
700
|
+
* @returns {Promise<number>}
|
|
715
701
|
*/
|
|
716
|
-
export function
|
|
717
|
-
const ret = wasm.
|
|
702
|
+
export function opfsFileCount() {
|
|
703
|
+
const ret = wasm.opfsFileCount();
|
|
718
704
|
return ret;
|
|
719
705
|
}
|
|
720
706
|
|
|
721
707
|
/**
|
|
722
|
-
*
|
|
723
|
-
*
|
|
724
|
-
* @returns {
|
|
708
|
+
* List all database files stored in OPFS.
|
|
709
|
+
* Returns an array of file names.
|
|
710
|
+
* @returns {Promise<string[]>}
|
|
725
711
|
*/
|
|
726
|
-
export function
|
|
727
|
-
const ret = wasm.
|
|
728
|
-
|
|
729
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
730
|
-
}
|
|
731
|
-
return takeFromExternrefTable0(ret[0]);
|
|
712
|
+
export function opfsListFiles() {
|
|
713
|
+
const ret = wasm.opfsListFiles();
|
|
714
|
+
return ret;
|
|
732
715
|
}
|
|
733
716
|
|
|
734
717
|
/**
|
|
735
|
-
*
|
|
736
|
-
*
|
|
718
|
+
* Initialize the OPFS SQLite VFS if not already initialized.
|
|
719
|
+
* This must be called before using other OPFS functions.
|
|
720
|
+
* @returns {Promise<void>}
|
|
737
721
|
*/
|
|
738
|
-
export function
|
|
739
|
-
const ret = wasm.
|
|
740
|
-
|
|
741
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
742
|
-
}
|
|
743
|
-
return takeFromExternrefTable0(ret[0]);
|
|
722
|
+
export function opfsInit() {
|
|
723
|
+
const ret = wasm.opfsInit();
|
|
724
|
+
return ret;
|
|
744
725
|
}
|
|
745
726
|
|
|
746
727
|
/**
|
|
747
|
-
*
|
|
728
|
+
* Delete all database files from OPFS.
|
|
729
|
+
* Note: All databases must be closed before calling this function.
|
|
730
|
+
* @returns {Promise<void>}
|
|
748
731
|
*/
|
|
749
|
-
export function
|
|
750
|
-
const ret = wasm.
|
|
732
|
+
export function opfsClearAll() {
|
|
733
|
+
const ret = wasm.opfsClearAll();
|
|
751
734
|
return ret;
|
|
752
735
|
}
|
|
753
736
|
|
|
754
737
|
/**
|
|
755
|
-
*
|
|
738
|
+
* Import a database from a byte array into OPFS.
|
|
739
|
+
* This will overwrite any existing database with the same name.
|
|
740
|
+
* The byte array must contain a valid SQLite database.
|
|
741
|
+
* Note: Any existing database with the same name must be closed before importing.
|
|
742
|
+
* @param {string} filename
|
|
743
|
+
* @param {Uint8Array} data
|
|
744
|
+
* @returns {Promise<void>}
|
|
756
745
|
*/
|
|
757
|
-
export function
|
|
758
|
-
const
|
|
746
|
+
export function opfsImportDb(filename, data) {
|
|
747
|
+
const ptr0 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
748
|
+
const len0 = WASM_VECTOR_LEN;
|
|
749
|
+
const ret = wasm.opfsImportDb(ptr0, len0, data);
|
|
759
750
|
return ret;
|
|
760
751
|
}
|
|
761
752
|
|
|
762
753
|
/**
|
|
763
|
-
*
|
|
764
|
-
*
|
|
754
|
+
* Delete a specific database file from OPFS.
|
|
755
|
+
* Returns true if the file was deleted, false if it didn't exist.
|
|
756
|
+
* Note: The database must be closed before calling this function.
|
|
757
|
+
* @param {string} filename
|
|
758
|
+
* @returns {Promise<boolean>}
|
|
765
759
|
*/
|
|
766
|
-
export function
|
|
767
|
-
const
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
return takeFromExternrefTable0(ret[0]);
|
|
760
|
+
export function opfsDeleteFile(filename) {
|
|
761
|
+
const ptr0 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
762
|
+
const len0 = WASM_VECTOR_LEN;
|
|
763
|
+
const ret = wasm.opfsDeleteFile(ptr0, len0);
|
|
764
|
+
return ret;
|
|
772
765
|
}
|
|
773
766
|
|
|
774
767
|
/**
|
|
775
|
-
*
|
|
768
|
+
* Export a database file from OPFS as a byte array.
|
|
769
|
+
* This can be used to backup or transfer a database.
|
|
770
|
+
* Note: The database should be closed before exporting for consistency.
|
|
771
|
+
* @param {string} filename
|
|
772
|
+
* @returns {Promise<Uint8Array>}
|
|
776
773
|
*/
|
|
777
|
-
export function
|
|
778
|
-
const
|
|
774
|
+
export function opfsExportDb(filename) {
|
|
775
|
+
const ptr0 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
776
|
+
const len0 = WASM_VECTOR_LEN;
|
|
777
|
+
const ret = wasm.opfsExportDb(ptr0, len0);
|
|
779
778
|
return ret;
|
|
780
779
|
}
|
|
781
780
|
|
|
782
781
|
/**
|
|
783
|
-
*
|
|
784
|
-
* @returns {
|
|
782
|
+
* Get the current capacity of the OPFS file pool.
|
|
783
|
+
* @returns {Promise<number>}
|
|
785
784
|
*/
|
|
786
|
-
export function
|
|
787
|
-
const ret = wasm.
|
|
788
|
-
|
|
789
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
790
|
-
}
|
|
791
|
-
return takeFromExternrefTable0(ret[0]);
|
|
785
|
+
export function opfsPoolCapacity() {
|
|
786
|
+
const ret = wasm.opfsPoolCapacity();
|
|
787
|
+
return ret;
|
|
792
788
|
}
|
|
793
789
|
|
|
794
790
|
/**
|
|
795
|
-
*
|
|
791
|
+
* Check if a database file exists in OPFS.
|
|
792
|
+
* @param {string} filename
|
|
793
|
+
* @returns {Promise<boolean>}
|
|
796
794
|
*/
|
|
797
|
-
export function
|
|
798
|
-
const
|
|
795
|
+
export function opfsFileExists(filename) {
|
|
796
|
+
const ptr0 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
797
|
+
const len0 = WASM_VECTOR_LEN;
|
|
798
|
+
const ret = wasm.opfsFileExists(ptr0, len0);
|
|
799
799
|
return ret;
|
|
800
800
|
}
|
|
801
801
|
|
|
@@ -810,24 +810,24 @@ export function task_worker_entry_point(ptr) {
|
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
812
|
|
|
813
|
-
function
|
|
814
|
-
wasm.
|
|
813
|
+
function wasm_bindgen__convert__closures_____invoke__ha66b59b58c7b6e14(arg0, arg1) {
|
|
814
|
+
wasm.wasm_bindgen__convert__closures_____invoke__ha66b59b58c7b6e14(arg0, arg1);
|
|
815
815
|
}
|
|
816
816
|
|
|
817
|
-
function
|
|
818
|
-
wasm.
|
|
817
|
+
function wasm_bindgen__convert__closures_____invoke__hb3ea4cec5b2a99b4(arg0, arg1) {
|
|
818
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hb3ea4cec5b2a99b4(arg0, arg1);
|
|
819
819
|
}
|
|
820
820
|
|
|
821
|
-
function
|
|
822
|
-
wasm.
|
|
821
|
+
function wasm_bindgen__convert__closures_____invoke__h989c99c207fff0d8(arg0, arg1, arg2) {
|
|
822
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h989c99c207fff0d8(arg0, arg1, arg2);
|
|
823
823
|
}
|
|
824
824
|
|
|
825
|
-
function
|
|
826
|
-
wasm.
|
|
825
|
+
function wasm_bindgen__convert__closures_____invoke__h57fa53c0b5bdcaf1(arg0, arg1) {
|
|
826
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h57fa53c0b5bdcaf1(arg0, arg1);
|
|
827
827
|
}
|
|
828
828
|
|
|
829
|
-
function
|
|
830
|
-
wasm.
|
|
829
|
+
function wasm_bindgen__convert__closures_____invoke__h09c21df9c40da302(arg0, arg1, arg2, arg3) {
|
|
830
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h09c21df9c40da302(arg0, arg1, arg2, arg3);
|
|
831
831
|
}
|
|
832
832
|
|
|
833
833
|
/**
|
|
@@ -1207,27 +1207,6 @@ export class Client {
|
|
|
1207
1207
|
const ret = wasm.client_revokeAllOtherInstallationsSignatureRequest(this.__wbg_ptr);
|
|
1208
1208
|
return ret;
|
|
1209
1209
|
}
|
|
1210
|
-
/**
|
|
1211
|
-
* @param {ConsentEntityType} entityType
|
|
1212
|
-
* @param {string} entity
|
|
1213
|
-
* @returns {Promise<ConsentState>}
|
|
1214
|
-
*/
|
|
1215
|
-
getConsentState(entityType, entity) {
|
|
1216
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1217
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1218
|
-
const ret = wasm.client_getConsentState(this.__wbg_ptr, entityType, ptr0, len0);
|
|
1219
|
-
return ret;
|
|
1220
|
-
}
|
|
1221
|
-
/**
|
|
1222
|
-
* @param {Consent[]} records
|
|
1223
|
-
* @returns {Promise<void>}
|
|
1224
|
-
*/
|
|
1225
|
-
setConsentStates(records) {
|
|
1226
|
-
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
1227
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1228
|
-
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
1229
|
-
return ret;
|
|
1230
|
-
}
|
|
1231
1210
|
/**
|
|
1232
1211
|
*
|
|
1233
1212
|
* * Get the client's inbox state.
|
|
@@ -1267,6 +1246,27 @@ export class Client {
|
|
|
1267
1246
|
const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
|
|
1268
1247
|
return ret;
|
|
1269
1248
|
}
|
|
1249
|
+
/**
|
|
1250
|
+
* @param {ConsentEntityType} entityType
|
|
1251
|
+
* @param {string} entity
|
|
1252
|
+
* @returns {Promise<ConsentState>}
|
|
1253
|
+
*/
|
|
1254
|
+
getConsentState(entityType, entity) {
|
|
1255
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1256
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1257
|
+
const ret = wasm.client_getConsentState(this.__wbg_ptr, entityType, ptr0, len0);
|
|
1258
|
+
return ret;
|
|
1259
|
+
}
|
|
1260
|
+
/**
|
|
1261
|
+
* @param {Consent[]} records
|
|
1262
|
+
* @returns {Promise<void>}
|
|
1263
|
+
*/
|
|
1264
|
+
setConsentStates(records) {
|
|
1265
|
+
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
1266
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1267
|
+
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
1268
|
+
return ret;
|
|
1269
|
+
}
|
|
1270
1270
|
/**
|
|
1271
1271
|
* @returns {string}
|
|
1272
1272
|
*/
|
|
@@ -3347,7 +3347,7 @@ function __wbg_get_imports() {
|
|
|
3347
3347
|
const a = state0.a;
|
|
3348
3348
|
state0.a = 0;
|
|
3349
3349
|
try {
|
|
3350
|
-
return
|
|
3350
|
+
return wasm_bindgen__convert__closures_____invoke__h09c21df9c40da302(a, state0.b, arg0, arg1);
|
|
3351
3351
|
} finally {
|
|
3352
3352
|
state0.a = a;
|
|
3353
3353
|
}
|
|
@@ -3438,29 +3438,29 @@ function __wbg_get_imports() {
|
|
|
3438
3438
|
const ret = Date.now();
|
|
3439
3439
|
return ret;
|
|
3440
3440
|
};
|
|
3441
|
-
imports.wbg.
|
|
3441
|
+
imports.wbg.__wbg_on_auth_required_8688fc88124e60dd = function() { return handleError(function (arg0) {
|
|
3442
3442
|
const ret = arg0.on_auth_required();
|
|
3443
3443
|
return ret;
|
|
3444
3444
|
}, arguments) };
|
|
3445
|
-
imports.wbg.
|
|
3445
|
+
imports.wbg.__wbg_on_close_f459d79ed67a8701 = function(arg0) {
|
|
3446
3446
|
arg0.on_close();
|
|
3447
3447
|
};
|
|
3448
|
-
imports.wbg.
|
|
3448
|
+
imports.wbg.__wbg_on_consent_update_87f340c9a6ef456e = function(arg0, arg1) {
|
|
3449
3449
|
arg0.on_consent_update(arg1);
|
|
3450
3450
|
};
|
|
3451
|
-
imports.wbg.
|
|
3451
|
+
imports.wbg.__wbg_on_conversation_04dd27d6605052c0 = function(arg0, arg1) {
|
|
3452
3452
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
3453
3453
|
};
|
|
3454
|
-
imports.wbg.
|
|
3454
|
+
imports.wbg.__wbg_on_error_37db1ea8bcc9b7a2 = function(arg0, arg1) {
|
|
3455
3455
|
arg0.on_error(arg1);
|
|
3456
3456
|
};
|
|
3457
|
-
imports.wbg.
|
|
3457
|
+
imports.wbg.__wbg_on_message_8db5bc062fb7976c = function(arg0, arg1) {
|
|
3458
3458
|
arg0.on_message(arg1);
|
|
3459
3459
|
};
|
|
3460
|
-
imports.wbg.
|
|
3460
|
+
imports.wbg.__wbg_on_message_deleted_18a2bb9078bcf1dd = function(arg0, arg1) {
|
|
3461
3461
|
arg0.on_message_deleted(arg1);
|
|
3462
3462
|
};
|
|
3463
|
-
imports.wbg.
|
|
3463
|
+
imports.wbg.__wbg_on_user_preference_update_471b1a622008a817 = function(arg0, arg1, arg2) {
|
|
3464
3464
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
3465
3465
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
3466
3466
|
arg0.on_user_preference_update(v0);
|
|
@@ -3736,6 +3736,11 @@ function __wbg_get_imports() {
|
|
|
3736
3736
|
const ret = v0;
|
|
3737
3737
|
return ret;
|
|
3738
3738
|
};
|
|
3739
|
+
imports.wbg.__wbindgen_cast_274f68c1914e222d = function(arg0, arg1) {
|
|
3740
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7196, function: Function { arguments: [], shim_idx: 7197, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3741
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hdc965c5deda6531b, wasm_bindgen__convert__closures_____invoke__h57fa53c0b5bdcaf1);
|
|
3742
|
+
return ret;
|
|
3743
|
+
};
|
|
3739
3744
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
3740
3745
|
// Cast intrinsic for `U64 -> Externref`.
|
|
3741
3746
|
const ret = BigInt.asUintN(64, arg0);
|
|
@@ -3748,16 +3753,6 @@ function __wbg_get_imports() {
|
|
|
3748
3753
|
const ret = v0;
|
|
3749
3754
|
return ret;
|
|
3750
3755
|
};
|
|
3751
|
-
imports.wbg.__wbindgen_cast_5b3f77bf4da1000d = function(arg0, arg1) {
|
|
3752
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 7369, function: Function { arguments: [], shim_idx: 7370, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3753
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h3c5639ee43c80f22, wasm_bindgen__convert__closures_____invoke__h956b60152b2cf005);
|
|
3754
|
-
return ret;
|
|
3755
|
-
};
|
|
3756
|
-
imports.wbg.__wbindgen_cast_6058acad16d556dd = function(arg0, arg1) {
|
|
3757
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 7402, function: Function { arguments: [Externref], shim_idx: 7403, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3758
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hed8af60076250245, wasm_bindgen__convert__closures_____invoke__hdff293b41f2cecc6);
|
|
3759
|
-
return ret;
|
|
3760
|
-
};
|
|
3761
3756
|
imports.wbg.__wbindgen_cast_8e37b4ad2f2ba653 = function(arg0, arg1) {
|
|
3762
3757
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3763
3758
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -3770,6 +3765,11 @@ function __wbg_get_imports() {
|
|
|
3770
3765
|
const ret = arg0;
|
|
3771
3766
|
return ret;
|
|
3772
3767
|
};
|
|
3768
|
+
imports.wbg.__wbindgen_cast_c05980acde238029 = function(arg0, arg1) {
|
|
3769
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7397, function: Function { arguments: [Externref], shim_idx: 7398, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3770
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hab695a3e04b8e88a, wasm_bindgen__convert__closures_____invoke__h989c99c207fff0d8);
|
|
3771
|
+
return ret;
|
|
3772
|
+
};
|
|
3773
3773
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
3774
3774
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
3775
3775
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
@@ -3780,11 +3780,6 @@ function __wbg_get_imports() {
|
|
|
3780
3780
|
const ret = arg0;
|
|
3781
3781
|
return ret;
|
|
3782
3782
|
};
|
|
3783
|
-
imports.wbg.__wbindgen_cast_db36af24c01ace15 = function(arg0, arg1) {
|
|
3784
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 7213, function: Function { arguments: [], shim_idx: 7214, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3785
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hfbd660e60d498df9, wasm_bindgen__convert__closures_____invoke__hceddd2b8fc291040);
|
|
3786
|
-
return ret;
|
|
3787
|
-
};
|
|
3788
3783
|
imports.wbg.__wbindgen_cast_e081be35fe620ec4 = function(arg0, arg1) {
|
|
3789
3784
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
3790
3785
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -3792,9 +3787,9 @@ function __wbg_get_imports() {
|
|
|
3792
3787
|
const ret = v0;
|
|
3793
3788
|
return ret;
|
|
3794
3789
|
};
|
|
3795
|
-
imports.wbg.
|
|
3796
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3797
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3790
|
+
imports.wbg.__wbindgen_cast_e781a0c9fb4ec5b2 = function(arg0, arg1) {
|
|
3791
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 6991, function: Function { arguments: [], shim_idx: 6992, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3792
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h3dd912ac8e2d6083, wasm_bindgen__convert__closures_____invoke__hb3ea4cec5b2a99b4);
|
|
3798
3793
|
return ret;
|
|
3799
3794
|
};
|
|
3800
3795
|
imports.wbg.__wbindgen_cast_f20a506f31063fd0 = function(arg0, arg1) {
|
|
@@ -3804,6 +3799,11 @@ function __wbg_get_imports() {
|
|
|
3804
3799
|
const ret = v0;
|
|
3805
3800
|
return ret;
|
|
3806
3801
|
};
|
|
3802
|
+
imports.wbg.__wbindgen_cast_f3b13c9e4c41522a = function(arg0, arg1) {
|
|
3803
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7365, function: Function { arguments: [], shim_idx: 7366, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3804
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h43bd69f6f2f23fdf, wasm_bindgen__convert__closures_____invoke__ha66b59b58c7b6e14);
|
|
3805
|
+
return ret;
|
|
3806
|
+
};
|
|
3807
3807
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
3808
3808
|
const table = wasm.__wbindgen_externrefs;
|
|
3809
3809
|
const offset = table.grow(4);
|