@xmtp/wasm-bindings 1.6.6 → 1.6.8
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 +526 -504
- package/dist/bindings_wasm.js +418 -328
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +474 -466
- package/package.json +1 -1
package/dist/bindings_wasm.js
CHANGED
|
@@ -230,67 +230,111 @@ function takeFromExternrefTable0(idx) {
|
|
|
230
230
|
wasm.__externref_table_dealloc(idx);
|
|
231
231
|
return value;
|
|
232
232
|
}
|
|
233
|
+
/**
|
|
234
|
+
* @param {string} signature_text
|
|
235
|
+
* @param {Uint8Array} signature_bytes
|
|
236
|
+
* @param {Uint8Array} public_key
|
|
237
|
+
*/
|
|
238
|
+
export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
|
|
239
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
240
|
+
const len0 = WASM_VECTOR_LEN;
|
|
241
|
+
const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
|
|
242
|
+
if (ret[1]) {
|
|
243
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
233
246
|
|
|
234
|
-
function
|
|
235
|
-
|
|
236
|
-
|
|
247
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
248
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
249
|
+
for (let i = 0; i < array.length; i++) {
|
|
250
|
+
const add = addToExternrefTable0(array[i]);
|
|
251
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
237
252
|
}
|
|
253
|
+
WASM_VECTOR_LEN = array.length;
|
|
254
|
+
return ptr;
|
|
238
255
|
}
|
|
239
256
|
/**
|
|
240
|
-
* @param {
|
|
241
|
-
* @
|
|
257
|
+
* @param {string} v3_host
|
|
258
|
+
* @param {string | null | undefined} gateway_host
|
|
259
|
+
* @param {Identifier} recovery_identifier
|
|
260
|
+
* @param {string} inbox_id
|
|
261
|
+
* @param {Uint8Array[]} installation_ids
|
|
262
|
+
* @returns {SignatureRequestHandle}
|
|
242
263
|
*/
|
|
243
|
-
export function
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
264
|
+
export function revokeInstallationsSignatureRequest(v3_host, gateway_host, recovery_identifier, inbox_id, installation_ids) {
|
|
265
|
+
const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
266
|
+
const len0 = WASM_VECTOR_LEN;
|
|
267
|
+
var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
268
|
+
var len1 = WASM_VECTOR_LEN;
|
|
269
|
+
const ptr2 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
270
|
+
const len2 = WASM_VECTOR_LEN;
|
|
271
|
+
const ptr3 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
272
|
+
const len3 = WASM_VECTOR_LEN;
|
|
273
|
+
const ret = wasm.revokeInstallationsSignatureRequest(ptr0, len0, ptr1, len1, recovery_identifier, ptr2, len2, ptr3, len3);
|
|
247
274
|
if (ret[2]) {
|
|
248
275
|
throw takeFromExternrefTable0(ret[1]);
|
|
249
276
|
}
|
|
250
|
-
return
|
|
277
|
+
return SignatureRequestHandle.__wrap(ret[0]);
|
|
251
278
|
}
|
|
252
279
|
|
|
280
|
+
function _assertClass(instance, klass) {
|
|
281
|
+
if (!(instance instanceof klass)) {
|
|
282
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
253
285
|
/**
|
|
254
|
-
* @param {
|
|
255
|
-
* @
|
|
286
|
+
* @param {string} v3_host
|
|
287
|
+
* @param {string | null | undefined} gateway_host
|
|
288
|
+
* @param {SignatureRequestHandle} signature_request
|
|
289
|
+
* @returns {Promise<void>}
|
|
256
290
|
*/
|
|
257
|
-
export function
|
|
258
|
-
const
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
291
|
+
export function applySignatureRequest(v3_host, gateway_host, signature_request) {
|
|
292
|
+
const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
293
|
+
const len0 = WASM_VECTOR_LEN;
|
|
294
|
+
var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
295
|
+
var len1 = WASM_VECTOR_LEN;
|
|
296
|
+
_assertClass(signature_request, SignatureRequestHandle);
|
|
297
|
+
const ret = wasm.applySignatureRequest(ptr0, len0, ptr1, len1, signature_request.__wbg_ptr);
|
|
298
|
+
return ret;
|
|
263
299
|
}
|
|
264
300
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
301
|
+
/**
|
|
302
|
+
* @param {string} v3_host
|
|
303
|
+
* @param {string | null | undefined} gateway_host
|
|
304
|
+
* @param {string[]} inbox_ids
|
|
305
|
+
* @returns {Promise<InboxState[]>}
|
|
306
|
+
*/
|
|
307
|
+
export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
|
|
308
|
+
const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
309
|
+
const len0 = WASM_VECTOR_LEN;
|
|
310
|
+
var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
311
|
+
var len1 = WASM_VECTOR_LEN;
|
|
312
|
+
const ptr2 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
313
|
+
const len2 = WASM_VECTOR_LEN;
|
|
314
|
+
const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
315
|
+
return ret;
|
|
273
316
|
}
|
|
317
|
+
|
|
274
318
|
/**
|
|
275
319
|
* @param {Uint8Array} bytes
|
|
276
|
-
* @returns {
|
|
320
|
+
* @returns {LeaveRequest}
|
|
277
321
|
*/
|
|
278
|
-
export function
|
|
279
|
-
const ret = wasm.
|
|
322
|
+
export function decodeLeaveRequest(bytes) {
|
|
323
|
+
const ret = wasm.decodeLeaveRequest(bytes);
|
|
280
324
|
if (ret[2]) {
|
|
281
325
|
throw takeFromExternrefTable0(ret[1]);
|
|
282
326
|
}
|
|
283
|
-
return
|
|
327
|
+
return LeaveRequest.__wrap(ret[0]);
|
|
284
328
|
}
|
|
285
329
|
|
|
286
330
|
/**
|
|
287
|
-
* @param {
|
|
331
|
+
* @param {LeaveRequest} leaveRequest
|
|
288
332
|
* @returns {Uint8Array}
|
|
289
333
|
*/
|
|
290
|
-
export function
|
|
291
|
-
_assertClass(
|
|
292
|
-
var ptr0 =
|
|
293
|
-
const ret = wasm.
|
|
334
|
+
export function encodeLeaveRequest(leaveRequest) {
|
|
335
|
+
_assertClass(leaveRequest, LeaveRequest);
|
|
336
|
+
var ptr0 = leaveRequest.__destroy_into_raw();
|
|
337
|
+
const ret = wasm.encodeLeaveRequest(ptr0);
|
|
294
338
|
if (ret[2]) {
|
|
295
339
|
throw takeFromExternrefTable0(ret[1]);
|
|
296
340
|
}
|
|
@@ -299,22 +343,24 @@ export function encodeReadReceipt(readReceipt) {
|
|
|
299
343
|
|
|
300
344
|
/**
|
|
301
345
|
* @param {Uint8Array} bytes
|
|
302
|
-
* @returns {
|
|
346
|
+
* @returns {MultiRemoteAttachment}
|
|
303
347
|
*/
|
|
304
|
-
export function
|
|
305
|
-
const ret = wasm.
|
|
348
|
+
export function decodeMultiRemoteAttachment(bytes) {
|
|
349
|
+
const ret = wasm.decodeMultiRemoteAttachment(bytes);
|
|
306
350
|
if (ret[2]) {
|
|
307
351
|
throw takeFromExternrefTable0(ret[1]);
|
|
308
352
|
}
|
|
309
|
-
return
|
|
353
|
+
return MultiRemoteAttachment.__wrap(ret[0]);
|
|
310
354
|
}
|
|
311
355
|
|
|
312
356
|
/**
|
|
313
|
-
* @param {
|
|
357
|
+
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
314
358
|
* @returns {Uint8Array}
|
|
315
359
|
*/
|
|
316
|
-
export function
|
|
317
|
-
|
|
360
|
+
export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
|
|
361
|
+
_assertClass(multiRemoteAttachment, MultiRemoteAttachment);
|
|
362
|
+
var ptr0 = multiRemoteAttachment.__destroy_into_raw();
|
|
363
|
+
const ret = wasm.encodeMultiRemoteAttachment(ptr0);
|
|
318
364
|
if (ret[2]) {
|
|
319
365
|
throw takeFromExternrefTable0(ret[1]);
|
|
320
366
|
}
|
|
@@ -322,40 +368,29 @@ export function encodeWalletSendCalls(wallet_send_calls) {
|
|
|
322
368
|
}
|
|
323
369
|
|
|
324
370
|
/**
|
|
325
|
-
* @param {
|
|
326
|
-
* @returns {
|
|
371
|
+
* @param {Uint8Array} bytes
|
|
372
|
+
* @returns {Actions}
|
|
327
373
|
*/
|
|
328
|
-
export function
|
|
329
|
-
const
|
|
330
|
-
const len0 = WASM_VECTOR_LEN;
|
|
331
|
-
const ret = wasm.encodeXmtpText(ptr0, len0);
|
|
374
|
+
export function decodeActions(bytes) {
|
|
375
|
+
const ret = wasm.decodeActions(bytes);
|
|
332
376
|
if (ret[2]) {
|
|
333
377
|
throw takeFromExternrefTable0(ret[1]);
|
|
334
378
|
}
|
|
335
|
-
return
|
|
379
|
+
return Actions.__wrap(ret[0]);
|
|
336
380
|
}
|
|
337
381
|
|
|
338
382
|
/**
|
|
339
|
-
* @param {
|
|
340
|
-
* @returns {
|
|
383
|
+
* @param {Actions} actions
|
|
384
|
+
* @returns {Uint8Array}
|
|
341
385
|
*/
|
|
342
|
-
export function
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
var len1 = ret[1];
|
|
349
|
-
if (ret[3]) {
|
|
350
|
-
ptr1 = 0; len1 = 0;
|
|
351
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
352
|
-
}
|
|
353
|
-
deferred2_0 = ptr1;
|
|
354
|
-
deferred2_1 = len1;
|
|
355
|
-
return getStringFromWasm0(ptr1, len1);
|
|
356
|
-
} finally {
|
|
357
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
386
|
+
export function encodeActions(actions) {
|
|
387
|
+
_assertClass(actions, Actions);
|
|
388
|
+
var ptr0 = actions.__destroy_into_raw();
|
|
389
|
+
const ret = wasm.encodeActions(ptr0);
|
|
390
|
+
if (ret[2]) {
|
|
391
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
358
392
|
}
|
|
393
|
+
return takeFromExternrefTable0(ret[0]);
|
|
359
394
|
}
|
|
360
395
|
|
|
361
396
|
/**
|
|
@@ -391,73 +426,87 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
391
426
|
return ptr;
|
|
392
427
|
}
|
|
393
428
|
/**
|
|
394
|
-
* @param {string}
|
|
395
|
-
* @param {string | null | undefined} gateway_host
|
|
396
|
-
* @param {SignatureRequestHandle} signature_request
|
|
397
|
-
* @returns {Promise<void>}
|
|
398
|
-
*/
|
|
399
|
-
export function applySignatureRequest(v3_host, gateway_host, signature_request) {
|
|
400
|
-
const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
401
|
-
const len0 = WASM_VECTOR_LEN;
|
|
402
|
-
var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
403
|
-
var len1 = WASM_VECTOR_LEN;
|
|
404
|
-
_assertClass(signature_request, SignatureRequestHandle);
|
|
405
|
-
const ret = wasm.applySignatureRequest(ptr0, len0, ptr1, len1, signature_request.__wbg_ptr);
|
|
406
|
-
return ret;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* @param {string} v3_host
|
|
411
|
-
* @param {string | null | undefined} gateway_host
|
|
412
|
-
* @param {Identifier} recovery_identifier
|
|
429
|
+
* @param {string} host
|
|
413
430
|
* @param {string} inbox_id
|
|
414
|
-
* @param {
|
|
415
|
-
* @
|
|
431
|
+
* @param {Identifier} account_identifier
|
|
432
|
+
* @param {string | null} [db_path]
|
|
433
|
+
* @param {Uint8Array | null} [encryption_key]
|
|
434
|
+
* @param {string | null} [device_sync_server_url]
|
|
435
|
+
* @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
|
|
436
|
+
* @param {LogOptions | null} [log_options]
|
|
437
|
+
* @param {boolean | null} [allow_offline]
|
|
438
|
+
* @param {boolean | null} [disable_events]
|
|
439
|
+
* @param {string | null} [app_version]
|
|
440
|
+
* @param {string | null} [gateway_host]
|
|
441
|
+
* @param {bigint | null} [nonce]
|
|
442
|
+
* @param {any | null} [auth_callback]
|
|
443
|
+
* @param {AuthHandle | null} [auth_handle]
|
|
444
|
+
* @param {ClientMode | null} [client_mode]
|
|
445
|
+
* @returns {Promise<Client>}
|
|
416
446
|
*/
|
|
417
|
-
export function
|
|
418
|
-
const ptr0 = passStringToWasm0(
|
|
447
|
+
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) {
|
|
448
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
419
449
|
const len0 = WASM_VECTOR_LEN;
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
if (
|
|
428
|
-
|
|
450
|
+
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
451
|
+
const len1 = WASM_VECTOR_LEN;
|
|
452
|
+
var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
453
|
+
var len2 = WASM_VECTOR_LEN;
|
|
454
|
+
var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
455
|
+
var len3 = WASM_VECTOR_LEN;
|
|
456
|
+
let ptr4 = 0;
|
|
457
|
+
if (!isLikeNone(log_options)) {
|
|
458
|
+
_assertClass(log_options, LogOptions);
|
|
459
|
+
ptr4 = log_options.__destroy_into_raw();
|
|
429
460
|
}
|
|
430
|
-
|
|
461
|
+
var ptr5 = isLikeNone(app_version) ? 0 : passStringToWasm0(app_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
462
|
+
var len5 = WASM_VECTOR_LEN;
|
|
463
|
+
var ptr6 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
464
|
+
var len6 = WASM_VECTOR_LEN;
|
|
465
|
+
let ptr7 = 0;
|
|
466
|
+
if (!isLikeNone(auth_handle)) {
|
|
467
|
+
_assertClass(auth_handle, AuthHandle);
|
|
468
|
+
ptr7 = auth_handle.__destroy_into_raw();
|
|
469
|
+
}
|
|
470
|
+
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);
|
|
471
|
+
return ret;
|
|
431
472
|
}
|
|
432
473
|
|
|
433
474
|
/**
|
|
434
|
-
* @param {
|
|
435
|
-
* @param {
|
|
436
|
-
* @
|
|
475
|
+
* @param {Identifier} accountIdentifier
|
|
476
|
+
* @param {bigint | null} [nonce]
|
|
477
|
+
* @returns {string}
|
|
437
478
|
*/
|
|
438
|
-
export function
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
479
|
+
export function generateInboxId(accountIdentifier, nonce) {
|
|
480
|
+
let deferred2_0;
|
|
481
|
+
let deferred2_1;
|
|
482
|
+
try {
|
|
483
|
+
const ret = wasm.generateInboxId(accountIdentifier, !isLikeNone(nonce), isLikeNone(nonce) ? BigInt(0) : nonce);
|
|
484
|
+
var ptr1 = ret[0];
|
|
485
|
+
var len1 = ret[1];
|
|
486
|
+
if (ret[3]) {
|
|
487
|
+
ptr1 = 0; len1 = 0;
|
|
488
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
489
|
+
}
|
|
490
|
+
deferred2_0 = ptr1;
|
|
491
|
+
deferred2_1 = len1;
|
|
492
|
+
return getStringFromWasm0(ptr1, len1);
|
|
493
|
+
} finally {
|
|
494
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
444
495
|
}
|
|
445
496
|
}
|
|
446
497
|
|
|
447
498
|
/**
|
|
448
|
-
* @param {string}
|
|
449
|
-
* @param {string | null | undefined}
|
|
450
|
-
* @param {
|
|
451
|
-
* @returns {Promise<
|
|
499
|
+
* @param {string} host
|
|
500
|
+
* @param {string | null | undefined} gatewayHost
|
|
501
|
+
* @param {Identifier} accountIdentifier
|
|
502
|
+
* @returns {Promise<string | undefined>}
|
|
452
503
|
*/
|
|
453
|
-
export function
|
|
454
|
-
const ptr0 = passStringToWasm0(
|
|
504
|
+
export function getInboxIdForIdentifier(host, gatewayHost, accountIdentifier) {
|
|
505
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
455
506
|
const len0 = WASM_VECTOR_LEN;
|
|
456
|
-
var ptr1 = isLikeNone(
|
|
507
|
+
var ptr1 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
457
508
|
var len1 = WASM_VECTOR_LEN;
|
|
458
|
-
const
|
|
459
|
-
const len2 = WASM_VECTOR_LEN;
|
|
460
|
-
const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
509
|
+
const ret = wasm.getInboxIdForIdentifier(ptr0, len0, ptr1, len1, accountIdentifier);
|
|
461
510
|
return ret;
|
|
462
511
|
}
|
|
463
512
|
|
|
@@ -475,24 +524,22 @@ export function decodeGroupUpdated(bytes) {
|
|
|
475
524
|
|
|
476
525
|
/**
|
|
477
526
|
* @param {Uint8Array} bytes
|
|
478
|
-
* @returns {
|
|
527
|
+
* @returns {any}
|
|
479
528
|
*/
|
|
480
|
-
export function
|
|
481
|
-
const ret = wasm.
|
|
529
|
+
export function decodeWalletSendCalls(bytes) {
|
|
530
|
+
const ret = wasm.decodeWalletSendCalls(bytes);
|
|
482
531
|
if (ret[2]) {
|
|
483
532
|
throw takeFromExternrefTable0(ret[1]);
|
|
484
533
|
}
|
|
485
|
-
return
|
|
534
|
+
return takeFromExternrefTable0(ret[0]);
|
|
486
535
|
}
|
|
487
536
|
|
|
488
537
|
/**
|
|
489
|
-
* @param {
|
|
538
|
+
* @param {any} wallet_send_calls
|
|
490
539
|
* @returns {Uint8Array}
|
|
491
540
|
*/
|
|
492
|
-
export function
|
|
493
|
-
|
|
494
|
-
var ptr0 = remoteAttachment.__destroy_into_raw();
|
|
495
|
-
const ret = wasm.encodeRemoteAttachment(ptr0);
|
|
541
|
+
export function encodeWalletSendCalls(wallet_send_calls) {
|
|
542
|
+
const ret = wasm.encodeWalletSendCalls(wallet_send_calls);
|
|
496
543
|
if (ret[2]) {
|
|
497
544
|
throw takeFromExternrefTable0(ret[1]);
|
|
498
545
|
}
|
|
@@ -501,24 +548,35 @@ export function encodeRemoteAttachment(remoteAttachment) {
|
|
|
501
548
|
|
|
502
549
|
/**
|
|
503
550
|
* @param {Uint8Array} bytes
|
|
504
|
-
* @returns {
|
|
551
|
+
* @returns {string}
|
|
505
552
|
*/
|
|
506
|
-
export function
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
553
|
+
export function decodeXmtpText(bytes) {
|
|
554
|
+
let deferred2_0;
|
|
555
|
+
let deferred2_1;
|
|
556
|
+
try {
|
|
557
|
+
const ret = wasm.decodeXmtpText(bytes);
|
|
558
|
+
var ptr1 = ret[0];
|
|
559
|
+
var len1 = ret[1];
|
|
560
|
+
if (ret[3]) {
|
|
561
|
+
ptr1 = 0; len1 = 0;
|
|
562
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
563
|
+
}
|
|
564
|
+
deferred2_0 = ptr1;
|
|
565
|
+
deferred2_1 = len1;
|
|
566
|
+
return getStringFromWasm0(ptr1, len1);
|
|
567
|
+
} finally {
|
|
568
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
510
569
|
}
|
|
511
|
-
return TransactionReference.__wrap(ret[0]);
|
|
512
570
|
}
|
|
513
571
|
|
|
514
572
|
/**
|
|
515
|
-
* @param {
|
|
573
|
+
* @param {string} text
|
|
516
574
|
* @returns {Uint8Array}
|
|
517
575
|
*/
|
|
518
|
-
export function
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
const ret = wasm.
|
|
576
|
+
export function encodeXmtpText(text) {
|
|
577
|
+
const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
578
|
+
const len0 = WASM_VECTOR_LEN;
|
|
579
|
+
const ret = wasm.encodeXmtpText(ptr0, len0);
|
|
522
580
|
if (ret[2]) {
|
|
523
581
|
throw takeFromExternrefTable0(ret[1]);
|
|
524
582
|
}
|
|
@@ -526,13 +584,13 @@ export function encodeTransactionReference(transactionReference) {
|
|
|
526
584
|
}
|
|
527
585
|
|
|
528
586
|
/**
|
|
529
|
-
* @param {
|
|
587
|
+
* @param {Attachment} attachment
|
|
530
588
|
* @returns {Uint8Array}
|
|
531
589
|
*/
|
|
532
|
-
export function
|
|
533
|
-
_assertClass(
|
|
534
|
-
var ptr0 =
|
|
535
|
-
const ret = wasm.
|
|
590
|
+
export function encodeAttachment(attachment) {
|
|
591
|
+
_assertClass(attachment, Attachment);
|
|
592
|
+
var ptr0 = attachment.__destroy_into_raw();
|
|
593
|
+
const ret = wasm.encodeAttachment(ptr0);
|
|
536
594
|
if (ret[2]) {
|
|
537
595
|
throw takeFromExternrefTable0(ret[1]);
|
|
538
596
|
}
|
|
@@ -541,36 +599,50 @@ export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
|
|
|
541
599
|
|
|
542
600
|
/**
|
|
543
601
|
* @param {Uint8Array} bytes
|
|
544
|
-
* @returns {
|
|
602
|
+
* @returns {Attachment}
|
|
545
603
|
*/
|
|
546
|
-
export function
|
|
547
|
-
const ret = wasm.
|
|
604
|
+
export function decodeAttachment(bytes) {
|
|
605
|
+
const ret = wasm.decodeAttachment(bytes);
|
|
548
606
|
if (ret[2]) {
|
|
549
607
|
throw takeFromExternrefTable0(ret[1]);
|
|
550
608
|
}
|
|
551
|
-
return
|
|
609
|
+
return Attachment.__wrap(ret[0]);
|
|
552
610
|
}
|
|
553
611
|
|
|
554
612
|
/**
|
|
555
613
|
* @param {Uint8Array} bytes
|
|
556
|
-
* @returns {
|
|
614
|
+
* @returns {ReadReceipt}
|
|
557
615
|
*/
|
|
558
|
-
export function
|
|
559
|
-
const ret = wasm.
|
|
616
|
+
export function decodeReadReceipt(bytes) {
|
|
617
|
+
const ret = wasm.decodeReadReceipt(bytes);
|
|
560
618
|
if (ret[2]) {
|
|
561
619
|
throw takeFromExternrefTable0(ret[1]);
|
|
562
620
|
}
|
|
563
|
-
return
|
|
621
|
+
return ReadReceipt.__wrap(ret[0]);
|
|
564
622
|
}
|
|
565
623
|
|
|
566
624
|
/**
|
|
567
|
-
* @param {
|
|
625
|
+
* @param {ReadReceipt} readReceipt
|
|
568
626
|
* @returns {Uint8Array}
|
|
569
627
|
*/
|
|
570
|
-
export function
|
|
571
|
-
_assertClass(
|
|
572
|
-
var ptr0 =
|
|
573
|
-
const ret = wasm.
|
|
628
|
+
export function encodeReadReceipt(readReceipt) {
|
|
629
|
+
_assertClass(readReceipt, ReadReceipt);
|
|
630
|
+
var ptr0 = readReceipt.__destroy_into_raw();
|
|
631
|
+
const ret = wasm.encodeReadReceipt(ptr0);
|
|
632
|
+
if (ret[2]) {
|
|
633
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
634
|
+
}
|
|
635
|
+
return takeFromExternrefTable0(ret[0]);
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* @param {RemoteAttachment} remoteAttachment
|
|
640
|
+
* @returns {Uint8Array}
|
|
641
|
+
*/
|
|
642
|
+
export function encodeRemoteAttachment(remoteAttachment) {
|
|
643
|
+
_assertClass(remoteAttachment, RemoteAttachment);
|
|
644
|
+
var ptr0 = remoteAttachment.__destroy_into_raw();
|
|
645
|
+
const ret = wasm.encodeRemoteAttachment(ptr0);
|
|
574
646
|
if (ret[2]) {
|
|
575
647
|
throw takeFromExternrefTable0(ret[1]);
|
|
576
648
|
}
|
|
@@ -578,114 +650,67 @@ export function encodeActions(actions) {
|
|
|
578
650
|
}
|
|
579
651
|
|
|
580
652
|
/**
|
|
581
|
-
* @param {
|
|
582
|
-
* @
|
|
583
|
-
* @param {Identifier} account_identifier
|
|
584
|
-
* @param {string | null} [db_path]
|
|
585
|
-
* @param {Uint8Array | null} [encryption_key]
|
|
586
|
-
* @param {string | null} [device_sync_server_url]
|
|
587
|
-
* @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
|
|
588
|
-
* @param {LogOptions | null} [log_options]
|
|
589
|
-
* @param {boolean | null} [allow_offline]
|
|
590
|
-
* @param {boolean | null} [disable_events]
|
|
591
|
-
* @param {string | null} [app_version]
|
|
592
|
-
* @param {string | null} [gateway_host]
|
|
593
|
-
* @param {bigint | null} [nonce]
|
|
594
|
-
* @param {any | null} [auth_callback]
|
|
595
|
-
* @param {AuthHandle | null} [auth_handle]
|
|
596
|
-
* @param {ClientMode | null} [client_mode]
|
|
597
|
-
* @returns {Promise<Client>}
|
|
653
|
+
* @param {Uint8Array} bytes
|
|
654
|
+
* @returns {RemoteAttachment}
|
|
598
655
|
*/
|
|
599
|
-
export function
|
|
600
|
-
const
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
const len1 = WASM_VECTOR_LEN;
|
|
604
|
-
var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
605
|
-
var len2 = WASM_VECTOR_LEN;
|
|
606
|
-
var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
607
|
-
var len3 = WASM_VECTOR_LEN;
|
|
608
|
-
let ptr4 = 0;
|
|
609
|
-
if (!isLikeNone(log_options)) {
|
|
610
|
-
_assertClass(log_options, LogOptions);
|
|
611
|
-
ptr4 = log_options.__destroy_into_raw();
|
|
612
|
-
}
|
|
613
|
-
var ptr5 = isLikeNone(app_version) ? 0 : passStringToWasm0(app_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
614
|
-
var len5 = WASM_VECTOR_LEN;
|
|
615
|
-
var ptr6 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
616
|
-
var len6 = WASM_VECTOR_LEN;
|
|
617
|
-
let ptr7 = 0;
|
|
618
|
-
if (!isLikeNone(auth_handle)) {
|
|
619
|
-
_assertClass(auth_handle, AuthHandle);
|
|
620
|
-
ptr7 = auth_handle.__destroy_into_raw();
|
|
656
|
+
export function decodeRemoteAttachment(bytes) {
|
|
657
|
+
const ret = wasm.decodeRemoteAttachment(bytes);
|
|
658
|
+
if (ret[2]) {
|
|
659
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
621
660
|
}
|
|
622
|
-
|
|
623
|
-
return ret;
|
|
661
|
+
return RemoteAttachment.__wrap(ret[0]);
|
|
624
662
|
}
|
|
625
663
|
|
|
626
664
|
/**
|
|
627
|
-
* @param {
|
|
628
|
-
* @
|
|
629
|
-
* @param {Identifier} accountIdentifier
|
|
630
|
-
* @returns {Promise<string | undefined>}
|
|
665
|
+
* @param {Uint8Array} bytes
|
|
666
|
+
* @returns {TransactionReference}
|
|
631
667
|
*/
|
|
632
|
-
export function
|
|
633
|
-
const
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
return ret;
|
|
668
|
+
export function decodeTransactionReference(bytes) {
|
|
669
|
+
const ret = wasm.decodeTransactionReference(bytes);
|
|
670
|
+
if (ret[2]) {
|
|
671
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
672
|
+
}
|
|
673
|
+
return TransactionReference.__wrap(ret[0]);
|
|
639
674
|
}
|
|
640
675
|
|
|
641
676
|
/**
|
|
642
|
-
* @param {
|
|
643
|
-
* @
|
|
644
|
-
* @returns {string}
|
|
677
|
+
* @param {TransactionReference} transactionReference
|
|
678
|
+
* @returns {Uint8Array}
|
|
645
679
|
*/
|
|
646
|
-
export function
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
var len1 = ret[1];
|
|
653
|
-
if (ret[3]) {
|
|
654
|
-
ptr1 = 0; len1 = 0;
|
|
655
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
656
|
-
}
|
|
657
|
-
deferred2_0 = ptr1;
|
|
658
|
-
deferred2_1 = len1;
|
|
659
|
-
return getStringFromWasm0(ptr1, len1);
|
|
660
|
-
} finally {
|
|
661
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
680
|
+
export function encodeTransactionReference(transactionReference) {
|
|
681
|
+
_assertClass(transactionReference, TransactionReference);
|
|
682
|
+
var ptr0 = transactionReference.__destroy_into_raw();
|
|
683
|
+
const ret = wasm.encodeTransactionReference(ptr0);
|
|
684
|
+
if (ret[2]) {
|
|
685
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
662
686
|
}
|
|
687
|
+
return takeFromExternrefTable0(ret[0]);
|
|
663
688
|
}
|
|
664
689
|
|
|
665
690
|
/**
|
|
666
|
-
* @param {
|
|
667
|
-
* @returns {
|
|
691
|
+
* @param {Reply} reply
|
|
692
|
+
* @returns {Uint8Array}
|
|
668
693
|
*/
|
|
669
|
-
export function
|
|
670
|
-
|
|
694
|
+
export function encodeReply(reply) {
|
|
695
|
+
_assertClass(reply, Reply);
|
|
696
|
+
var ptr0 = reply.__destroy_into_raw();
|
|
697
|
+
const ret = wasm.encodeReply(ptr0);
|
|
671
698
|
if (ret[2]) {
|
|
672
699
|
throw takeFromExternrefTable0(ret[1]);
|
|
673
700
|
}
|
|
674
|
-
return
|
|
701
|
+
return takeFromExternrefTable0(ret[0]);
|
|
675
702
|
}
|
|
676
703
|
|
|
677
704
|
/**
|
|
678
|
-
* @param {
|
|
679
|
-
* @returns {
|
|
705
|
+
* @param {Uint8Array} bytes
|
|
706
|
+
* @returns {Reply}
|
|
680
707
|
*/
|
|
681
|
-
export function
|
|
682
|
-
|
|
683
|
-
var ptr0 = attachment.__destroy_into_raw();
|
|
684
|
-
const ret = wasm.encodeAttachment(ptr0);
|
|
708
|
+
export function decodeReply(bytes) {
|
|
709
|
+
const ret = wasm.decodeReply(bytes);
|
|
685
710
|
if (ret[2]) {
|
|
686
711
|
throw takeFromExternrefTable0(ret[1]);
|
|
687
712
|
}
|
|
688
|
-
return
|
|
713
|
+
return Reply.__wrap(ret[0]);
|
|
689
714
|
}
|
|
690
715
|
|
|
691
716
|
/**
|
|
@@ -729,6 +754,10 @@ function wasm_bindgen__convert__closures_____invoke__h753a3e053785270d(arg0, arg
|
|
|
729
754
|
wasm.wasm_bindgen__convert__closures_____invoke__h753a3e053785270d(arg0, arg1);
|
|
730
755
|
}
|
|
731
756
|
|
|
757
|
+
function wasm_bindgen__convert__closures_____invoke__hafab8b28acda63ce(arg0, arg1) {
|
|
758
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hafab8b28acda63ce(arg0, arg1);
|
|
759
|
+
}
|
|
760
|
+
|
|
732
761
|
function wasm_bindgen__convert__closures_____invoke__h9011598bdd38acb2(arg0, arg1) {
|
|
733
762
|
wasm.wasm_bindgen__convert__closures_____invoke__h9011598bdd38acb2(arg0, arg1);
|
|
734
763
|
}
|
|
@@ -737,10 +766,6 @@ function wasm_bindgen__convert__closures_____invoke__h34df32c886f66f02(arg0, arg
|
|
|
737
766
|
wasm.wasm_bindgen__convert__closures_____invoke__h34df32c886f66f02(arg0, arg1, arg2);
|
|
738
767
|
}
|
|
739
768
|
|
|
740
|
-
function wasm_bindgen__convert__closures_____invoke__hafab8b28acda63ce(arg0, arg1) {
|
|
741
|
-
wasm.wasm_bindgen__convert__closures_____invoke__hafab8b28acda63ce(arg0, arg1);
|
|
742
|
-
}
|
|
743
|
-
|
|
744
769
|
function wasm_bindgen__convert__closures_____invoke__h18a484e2affd7fe5(arg0, arg1, arg2, arg3) {
|
|
745
770
|
wasm.wasm_bindgen__convert__closures_____invoke__h18a484e2affd7fe5(arg0, arg1, arg2, arg3);
|
|
746
771
|
}
|
|
@@ -776,19 +801,20 @@ export const ConsentState = Object.freeze({
|
|
|
776
801
|
Denied: 2, "2": "Denied",
|
|
777
802
|
});
|
|
778
803
|
/**
|
|
779
|
-
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}
|
|
804
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}
|
|
780
805
|
*/
|
|
781
806
|
export const ContentType = Object.freeze({
|
|
782
807
|
Unknown: 0, "0": "Unknown",
|
|
783
808
|
Text: 1, "1": "Text",
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
809
|
+
LeaveRequest: 2, "2": "LeaveRequest",
|
|
810
|
+
GroupMembershipChange: 3, "3": "GroupMembershipChange",
|
|
811
|
+
GroupUpdated: 4, "4": "GroupUpdated",
|
|
812
|
+
Reaction: 5, "5": "Reaction",
|
|
813
|
+
ReadReceipt: 6, "6": "ReadReceipt",
|
|
814
|
+
Reply: 7, "7": "Reply",
|
|
815
|
+
Attachment: 8, "8": "Attachment",
|
|
816
|
+
RemoteAttachment: 9, "9": "RemoteAttachment",
|
|
817
|
+
TransactionReference: 10, "10": "TransactionReference",
|
|
792
818
|
});
|
|
793
819
|
/**
|
|
794
820
|
* @enum {0 | 1 | 2 | 3}
|
|
@@ -857,7 +883,7 @@ export const MetadataField = Object.freeze({
|
|
|
857
883
|
MessageExpirationMS: 4, "4": "MessageExpirationMS",
|
|
858
884
|
});
|
|
859
885
|
/**
|
|
860
|
-
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12}
|
|
886
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13}
|
|
861
887
|
*/
|
|
862
888
|
export const PayloadType = Object.freeze({
|
|
863
889
|
Text: 0, "0": "Text",
|
|
@@ -869,10 +895,11 @@ export const PayloadType = Object.freeze({
|
|
|
869
895
|
TransactionReference: 6, "6": "TransactionReference",
|
|
870
896
|
GroupUpdated: 7, "7": "GroupUpdated",
|
|
871
897
|
ReadReceipt: 8, "8": "ReadReceipt",
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
898
|
+
LeaveRequest: 9, "9": "LeaveRequest",
|
|
899
|
+
WalletSendCalls: 10, "10": "WalletSendCalls",
|
|
900
|
+
Intent: 11, "11": "Intent",
|
|
901
|
+
Actions: 12, "12": "Actions",
|
|
902
|
+
Custom: 13, "13": "Custom",
|
|
876
903
|
});
|
|
877
904
|
/**
|
|
878
905
|
* @enum {0 | 1 | 2}
|
|
@@ -2028,7 +2055,7 @@ export class ContentTypeId {
|
|
|
2028
2055
|
set authorityId(arg0) {
|
|
2029
2056
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2030
2057
|
const len0 = WASM_VECTOR_LEN;
|
|
2031
|
-
wasm.
|
|
2058
|
+
wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
|
|
2032
2059
|
}
|
|
2033
2060
|
/**
|
|
2034
2061
|
* @returns {string}
|
|
@@ -2051,7 +2078,7 @@ export class ContentTypeId {
|
|
|
2051
2078
|
set typeId(arg0) {
|
|
2052
2079
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2053
2080
|
const len0 = WASM_VECTOR_LEN;
|
|
2054
|
-
wasm.
|
|
2081
|
+
wasm.__wbg_set_attachment_content(this.__wbg_ptr, ptr0, len0);
|
|
2055
2082
|
}
|
|
2056
2083
|
/**
|
|
2057
2084
|
* @returns {number}
|
|
@@ -2107,6 +2134,25 @@ export class Conversation {
|
|
|
2107
2134
|
const ptr = this.__destroy_into_raw();
|
|
2108
2135
|
wasm.__wbg_conversation_free(ptr, 0);
|
|
2109
2136
|
}
|
|
2137
|
+
/**
|
|
2138
|
+
* @returns {ConsentState}
|
|
2139
|
+
*/
|
|
2140
|
+
consentState() {
|
|
2141
|
+
const ret = wasm.conversation_consentState(this.__wbg_ptr);
|
|
2142
|
+
if (ret[2]) {
|
|
2143
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2144
|
+
}
|
|
2145
|
+
return ret[0];
|
|
2146
|
+
}
|
|
2147
|
+
/**
|
|
2148
|
+
* @param {ConsentState} state
|
|
2149
|
+
*/
|
|
2150
|
+
updateConsentState(state) {
|
|
2151
|
+
const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
|
|
2152
|
+
if (ret[1]) {
|
|
2153
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
2154
|
+
}
|
|
2155
|
+
}
|
|
2110
2156
|
/**
|
|
2111
2157
|
* @returns {string[]}
|
|
2112
2158
|
*/
|
|
@@ -2157,6 +2203,13 @@ export class Conversation {
|
|
|
2157
2203
|
const ret = wasm.conversation_addMembers(this.__wbg_ptr, ptr0, len0);
|
|
2158
2204
|
return ret;
|
|
2159
2205
|
}
|
|
2206
|
+
/**
|
|
2207
|
+
* @returns {Promise<void>}
|
|
2208
|
+
*/
|
|
2209
|
+
leaveGroup() {
|
|
2210
|
+
const ret = wasm.conversation_leaveGroup(this.__wbg_ptr);
|
|
2211
|
+
return ret;
|
|
2212
|
+
}
|
|
2160
2213
|
/**
|
|
2161
2214
|
* @returns {Promise<any>}
|
|
2162
2215
|
*/
|
|
@@ -2367,19 +2420,6 @@ export class Conversation {
|
|
|
2367
2420
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
2368
2421
|
}
|
|
2369
2422
|
}
|
|
2370
|
-
/**
|
|
2371
|
-
* @param {ListMessagesOptions | null} [opts]
|
|
2372
|
-
* @returns {Promise<DecodedMessage[]>}
|
|
2373
|
-
*/
|
|
2374
|
-
findMessagesV2(opts) {
|
|
2375
|
-
let ptr0 = 0;
|
|
2376
|
-
if (!isLikeNone(opts)) {
|
|
2377
|
-
_assertClass(opts, ListMessagesOptions);
|
|
2378
|
-
ptr0 = opts.__destroy_into_raw();
|
|
2379
|
-
}
|
|
2380
|
-
const ret = wasm.conversation_findMessagesV2(this.__wbg_ptr, ptr0);
|
|
2381
|
-
return ret;
|
|
2382
|
-
}
|
|
2383
2423
|
/**
|
|
2384
2424
|
* @returns {string}
|
|
2385
2425
|
*/
|
|
@@ -2460,6 +2500,19 @@ export class Conversation {
|
|
|
2460
2500
|
const ret = wasm.conversation_getLastReadTimes(this.__wbg_ptr);
|
|
2461
2501
|
return ret;
|
|
2462
2502
|
}
|
|
2503
|
+
/**
|
|
2504
|
+
* @param {ListMessagesOptions | null} [opts]
|
|
2505
|
+
* @returns {Promise<DecodedMessage[]>}
|
|
2506
|
+
*/
|
|
2507
|
+
findEnrichedMessages(opts) {
|
|
2508
|
+
let ptr0 = 0;
|
|
2509
|
+
if (!isLikeNone(opts)) {
|
|
2510
|
+
_assertClass(opts, ListMessagesOptions);
|
|
2511
|
+
ptr0 = opts.__destroy_into_raw();
|
|
2512
|
+
}
|
|
2513
|
+
const ret = wasm.conversation_findEnrichedMessages(this.__wbg_ptr, ptr0);
|
|
2514
|
+
return ret;
|
|
2515
|
+
}
|
|
2463
2516
|
/**
|
|
2464
2517
|
* @returns {string}
|
|
2465
2518
|
*/
|
|
@@ -2569,6 +2622,14 @@ export class Conversation {
|
|
|
2569
2622
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2570
2623
|
}
|
|
2571
2624
|
}
|
|
2625
|
+
/**
|
|
2626
|
+
* @param {Uint8Array} envelope_bytes
|
|
2627
|
+
* @returns {Promise<Message>}
|
|
2628
|
+
*/
|
|
2629
|
+
processStreamedGroupMessage(envelope_bytes) {
|
|
2630
|
+
const ret = wasm.conversation_processStreamedGroupMessage(this.__wbg_ptr, envelope_bytes);
|
|
2631
|
+
return ret;
|
|
2632
|
+
}
|
|
2572
2633
|
/**
|
|
2573
2634
|
* @returns {boolean}
|
|
2574
2635
|
*/
|
|
@@ -2681,25 +2742,6 @@ export class Conversation {
|
|
|
2681
2742
|
}
|
|
2682
2743
|
return ret[0] !== 0;
|
|
2683
2744
|
}
|
|
2684
|
-
/**
|
|
2685
|
-
* @returns {ConsentState}
|
|
2686
|
-
*/
|
|
2687
|
-
consentState() {
|
|
2688
|
-
const ret = wasm.conversation_consentState(this.__wbg_ptr);
|
|
2689
|
-
if (ret[2]) {
|
|
2690
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
2691
|
-
}
|
|
2692
|
-
return ret[0];
|
|
2693
|
-
}
|
|
2694
|
-
/**
|
|
2695
|
-
* @param {ConsentState} state
|
|
2696
|
-
*/
|
|
2697
|
-
updateConsentState(state) {
|
|
2698
|
-
const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
|
|
2699
|
-
if (ret[1]) {
|
|
2700
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
2701
|
-
}
|
|
2702
|
-
}
|
|
2703
2745
|
}
|
|
2704
2746
|
if (Symbol.dispose) Conversation.prototype[Symbol.dispose] = Conversation.prototype.free;
|
|
2705
2747
|
|
|
@@ -3764,6 +3806,13 @@ export class DecodedMessageContent {
|
|
|
3764
3806
|
const ret = wasm.decodedmessagecontent_asGroupUpdated(this.__wbg_ptr);
|
|
3765
3807
|
return ret === 0 ? undefined : GroupUpdated.__wrap(ret);
|
|
3766
3808
|
}
|
|
3809
|
+
/**
|
|
3810
|
+
* @returns {LeaveRequest | undefined}
|
|
3811
|
+
*/
|
|
3812
|
+
asLeaveRequest() {
|
|
3813
|
+
const ret = wasm.decodedmessagecontent_asLeaveRequest(this.__wbg_ptr);
|
|
3814
|
+
return ret === 0 ? undefined : LeaveRequest.__wrap(ret);
|
|
3815
|
+
}
|
|
3767
3816
|
/**
|
|
3768
3817
|
* @returns {RemoteAttachment | undefined}
|
|
3769
3818
|
*/
|
|
@@ -4349,7 +4398,7 @@ export class GroupUpdated {
|
|
|
4349
4398
|
set initiatedByInboxId(arg0) {
|
|
4350
4399
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4351
4400
|
const len0 = WASM_VECTOR_LEN;
|
|
4352
|
-
wasm.
|
|
4401
|
+
wasm.__wbg_set_groupupdated_initiatedByInboxId(this.__wbg_ptr, ptr0, len0);
|
|
4353
4402
|
}
|
|
4354
4403
|
/**
|
|
4355
4404
|
* @returns {Inbox[]}
|
|
@@ -4673,7 +4722,7 @@ export class Inbox {
|
|
|
4673
4722
|
set inboxId(arg0) {
|
|
4674
4723
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4675
4724
|
const len0 = WASM_VECTOR_LEN;
|
|
4676
|
-
wasm.
|
|
4725
|
+
wasm.__wbg_set_groupupdated_initiatedByInboxId(this.__wbg_ptr, ptr0, len0);
|
|
4677
4726
|
}
|
|
4678
4727
|
}
|
|
4679
4728
|
if (Symbol.dispose) Inbox.prototype[Symbol.dispose] = Inbox.prototype.free;
|
|
@@ -5188,6 +5237,47 @@ export class KeyPackageStatus {
|
|
|
5188
5237
|
}
|
|
5189
5238
|
if (Symbol.dispose) KeyPackageStatus.prototype[Symbol.dispose] = KeyPackageStatus.prototype.free;
|
|
5190
5239
|
|
|
5240
|
+
const LeaveRequestFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5241
|
+
? { register: () => {}, unregister: () => {} }
|
|
5242
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_leaverequest_free(ptr >>> 0, 1));
|
|
5243
|
+
|
|
5244
|
+
export class LeaveRequest {
|
|
5245
|
+
|
|
5246
|
+
static __wrap(ptr) {
|
|
5247
|
+
ptr = ptr >>> 0;
|
|
5248
|
+
const obj = Object.create(LeaveRequest.prototype);
|
|
5249
|
+
obj.__wbg_ptr = ptr;
|
|
5250
|
+
LeaveRequestFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
5251
|
+
return obj;
|
|
5252
|
+
}
|
|
5253
|
+
|
|
5254
|
+
__destroy_into_raw() {
|
|
5255
|
+
const ptr = this.__wbg_ptr;
|
|
5256
|
+
this.__wbg_ptr = 0;
|
|
5257
|
+
LeaveRequestFinalization.unregister(this);
|
|
5258
|
+
return ptr;
|
|
5259
|
+
}
|
|
5260
|
+
|
|
5261
|
+
free() {
|
|
5262
|
+
const ptr = this.__destroy_into_raw();
|
|
5263
|
+
wasm.__wbg_leaverequest_free(ptr, 0);
|
|
5264
|
+
}
|
|
5265
|
+
/**
|
|
5266
|
+
* @returns {Uint8Array | undefined}
|
|
5267
|
+
*/
|
|
5268
|
+
get authenticatedNote() {
|
|
5269
|
+
const ret = wasm.__wbg_get_leaverequest_authenticatedNote(this.__wbg_ptr);
|
|
5270
|
+
return ret;
|
|
5271
|
+
}
|
|
5272
|
+
/**
|
|
5273
|
+
* @param {Uint8Array | null} [arg0]
|
|
5274
|
+
*/
|
|
5275
|
+
set authenticatedNote(arg0) {
|
|
5276
|
+
wasm.__wbg_set_leaverequest_authenticatedNote(this.__wbg_ptr, isLikeNone(arg0) ? 0 : addToExternrefTable0(arg0));
|
|
5277
|
+
}
|
|
5278
|
+
}
|
|
5279
|
+
if (Symbol.dispose) LeaveRequest.prototype[Symbol.dispose] = LeaveRequest.prototype.free;
|
|
5280
|
+
|
|
5191
5281
|
const LifetimeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5192
5282
|
? { register: () => {}, unregister: () => {} }
|
|
5193
5283
|
: new FinalizationRegistry(ptr => wasm.__wbg_lifetime_free(ptr >>> 0, 1));
|
|
@@ -5217,27 +5307,27 @@ export class Lifetime {
|
|
|
5217
5307
|
* @returns {bigint}
|
|
5218
5308
|
*/
|
|
5219
5309
|
get not_before() {
|
|
5220
|
-
const ret = wasm.
|
|
5310
|
+
const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
|
|
5221
5311
|
return BigInt.asUintN(64, ret);
|
|
5222
5312
|
}
|
|
5223
5313
|
/**
|
|
5224
5314
|
* @param {bigint} arg0
|
|
5225
5315
|
*/
|
|
5226
5316
|
set not_before(arg0) {
|
|
5227
|
-
wasm.
|
|
5317
|
+
wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
|
|
5228
5318
|
}
|
|
5229
5319
|
/**
|
|
5230
5320
|
* @returns {bigint}
|
|
5231
5321
|
*/
|
|
5232
5322
|
get not_after() {
|
|
5233
|
-
const ret = wasm.
|
|
5323
|
+
const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
|
|
5234
5324
|
return BigInt.asUintN(64, ret);
|
|
5235
5325
|
}
|
|
5236
5326
|
/**
|
|
5237
5327
|
* @param {bigint} arg0
|
|
5238
5328
|
*/
|
|
5239
5329
|
set not_after(arg0) {
|
|
5240
|
-
wasm.
|
|
5330
|
+
wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
|
|
5241
5331
|
}
|
|
5242
5332
|
}
|
|
5243
5333
|
if (Symbol.dispose) Lifetime.prototype[Symbol.dispose] = Lifetime.prototype.free;
|
|
@@ -6036,7 +6126,7 @@ export class MetadataFieldChange {
|
|
|
6036
6126
|
set fieldName(arg0) {
|
|
6037
6127
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6038
6128
|
const len0 = WASM_VECTOR_LEN;
|
|
6039
|
-
wasm.
|
|
6129
|
+
wasm.__wbg_set_groupupdated_initiatedByInboxId(this.__wbg_ptr, ptr0, len0);
|
|
6040
6130
|
}
|
|
6041
6131
|
/**
|
|
6042
6132
|
* @returns {string | undefined}
|
|
@@ -6494,7 +6584,7 @@ export class Reaction {
|
|
|
6494
6584
|
set reference(arg0) {
|
|
6495
6585
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6496
6586
|
const len0 = WASM_VECTOR_LEN;
|
|
6497
|
-
wasm.
|
|
6587
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
6498
6588
|
}
|
|
6499
6589
|
/**
|
|
6500
6590
|
* @returns {string}
|
|
@@ -6517,7 +6607,7 @@ export class Reaction {
|
|
|
6517
6607
|
set referenceInboxId(arg0) {
|
|
6518
6608
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6519
6609
|
const len0 = WASM_VECTOR_LEN;
|
|
6520
|
-
wasm.
|
|
6610
|
+
wasm.__wbg_set_reaction_referenceInboxId(this.__wbg_ptr, ptr0, len0);
|
|
6521
6611
|
}
|
|
6522
6612
|
/**
|
|
6523
6613
|
* @returns {ReactionAction}
|
|
@@ -6636,7 +6726,7 @@ export class ReactionPayload {
|
|
|
6636
6726
|
set reference(arg0) {
|
|
6637
6727
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6638
6728
|
const len0 = WASM_VECTOR_LEN;
|
|
6639
|
-
wasm.
|
|
6729
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
6640
6730
|
}
|
|
6641
6731
|
/**
|
|
6642
6732
|
* @returns {string}
|
|
@@ -6659,7 +6749,7 @@ export class ReactionPayload {
|
|
|
6659
6749
|
set referenceInboxId(arg0) {
|
|
6660
6750
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6661
6751
|
const len0 = WASM_VECTOR_LEN;
|
|
6662
|
-
wasm.
|
|
6752
|
+
wasm.__wbg_set_reaction_referenceInboxId(this.__wbg_ptr, ptr0, len0);
|
|
6663
6753
|
}
|
|
6664
6754
|
/**
|
|
6665
6755
|
* @returns {ReactionActionPayload}
|
|
@@ -6787,7 +6877,7 @@ export class RemoteAttachment {
|
|
|
6787
6877
|
set url(arg0) {
|
|
6788
6878
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6789
6879
|
const len0 = WASM_VECTOR_LEN;
|
|
6790
|
-
wasm.
|
|
6880
|
+
wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
|
|
6791
6881
|
}
|
|
6792
6882
|
/**
|
|
6793
6883
|
* @returns {string}
|
|
@@ -6810,7 +6900,7 @@ export class RemoteAttachment {
|
|
|
6810
6900
|
set contentDigest(arg0) {
|
|
6811
6901
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6812
6902
|
const len0 = WASM_VECTOR_LEN;
|
|
6813
|
-
wasm.
|
|
6903
|
+
wasm.__wbg_set_attachment_content(this.__wbg_ptr, ptr0, len0);
|
|
6814
6904
|
}
|
|
6815
6905
|
/**
|
|
6816
6906
|
* @returns {Uint8Array}
|
|
@@ -7183,7 +7273,7 @@ export class Reply {
|
|
|
7183
7273
|
set reference(arg0) {
|
|
7184
7274
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7185
7275
|
const len0 = WASM_VECTOR_LEN;
|
|
7186
|
-
wasm.
|
|
7276
|
+
wasm.__wbg_set_remoteattachment_scheme(this.__wbg_ptr, ptr0, len0);
|
|
7187
7277
|
}
|
|
7188
7278
|
/**
|
|
7189
7279
|
* @returns {string | undefined}
|
|
@@ -7203,7 +7293,7 @@ export class Reply {
|
|
|
7203
7293
|
set referenceInboxId(arg0) {
|
|
7204
7294
|
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7205
7295
|
var len0 = WASM_VECTOR_LEN;
|
|
7206
|
-
wasm.
|
|
7296
|
+
wasm.__wbg_set_remoteattachment_filename(this.__wbg_ptr, ptr0, len0);
|
|
7207
7297
|
}
|
|
7208
7298
|
/**
|
|
7209
7299
|
* @param {EncodedContent} content
|
|
@@ -7437,7 +7527,7 @@ export class TextContent {
|
|
|
7437
7527
|
set content(arg0) {
|
|
7438
7528
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
7439
7529
|
const len0 = WASM_VECTOR_LEN;
|
|
7440
|
-
wasm.
|
|
7530
|
+
wasm.__wbg_set_groupupdated_initiatedByInboxId(this.__wbg_ptr, ptr0, len0);
|
|
7441
7531
|
}
|
|
7442
7532
|
}
|
|
7443
7533
|
if (Symbol.dispose) TextContent.prototype[Symbol.dispose] = TextContent.prototype.free;
|
|
@@ -8472,26 +8562,26 @@ function __wbg_get_imports() {
|
|
|
8472
8562
|
const ret = Date.now();
|
|
8473
8563
|
return ret;
|
|
8474
8564
|
};
|
|
8475
|
-
imports.wbg.
|
|
8565
|
+
imports.wbg.__wbg_on_auth_required_884c3ae8438cc478 = function() { return handleError(function (arg0) {
|
|
8476
8566
|
const ret = arg0.on_auth_required();
|
|
8477
8567
|
return ret;
|
|
8478
8568
|
}, arguments) };
|
|
8479
|
-
imports.wbg.
|
|
8569
|
+
imports.wbg.__wbg_on_close_db7d4d40c2a42d99 = function(arg0) {
|
|
8480
8570
|
arg0.on_close();
|
|
8481
8571
|
};
|
|
8482
|
-
imports.wbg.
|
|
8572
|
+
imports.wbg.__wbg_on_consent_update_f7a1e7774ce44423 = function(arg0, arg1) {
|
|
8483
8573
|
arg0.on_consent_update(arg1);
|
|
8484
8574
|
};
|
|
8485
|
-
imports.wbg.
|
|
8575
|
+
imports.wbg.__wbg_on_conversation_3c5fe02f5d11dd38 = function(arg0, arg1) {
|
|
8486
8576
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
8487
8577
|
};
|
|
8488
|
-
imports.wbg.
|
|
8578
|
+
imports.wbg.__wbg_on_error_de1dd00d3e3ad8c1 = function(arg0, arg1) {
|
|
8489
8579
|
arg0.on_error(arg1);
|
|
8490
8580
|
};
|
|
8491
|
-
imports.wbg.
|
|
8581
|
+
imports.wbg.__wbg_on_message_d54c6d4e3fbf933f = function(arg0, arg1) {
|
|
8492
8582
|
arg0.on_message(Message.__wrap(arg1));
|
|
8493
8583
|
};
|
|
8494
|
-
imports.wbg.
|
|
8584
|
+
imports.wbg.__wbg_on_message_deleted_3cbc940dccca9a39 = function(arg0, arg1, arg2) {
|
|
8495
8585
|
let deferred0_0;
|
|
8496
8586
|
let deferred0_1;
|
|
8497
8587
|
try {
|
|
@@ -8502,7 +8592,7 @@ function __wbg_get_imports() {
|
|
|
8502
8592
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
8503
8593
|
}
|
|
8504
8594
|
};
|
|
8505
|
-
imports.wbg.
|
|
8595
|
+
imports.wbg.__wbg_on_user_preference_update_3e76d73275e49cc8 = function(arg0, arg1, arg2) {
|
|
8506
8596
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
8507
8597
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
8508
8598
|
arg0.on_user_preference_update(v0);
|
|
@@ -8786,9 +8876,9 @@ function __wbg_get_imports() {
|
|
|
8786
8876
|
const ret = XmtpCursor.__unwrap(arg0);
|
|
8787
8877
|
return ret;
|
|
8788
8878
|
};
|
|
8789
|
-
imports.wbg.
|
|
8790
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
8791
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
8879
|
+
imports.wbg.__wbindgen_cast_0a6e8e0063ffb241 = function(arg0, arg1) {
|
|
8880
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7180, function: Function { arguments: [], shim_idx: 7181, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8881
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h83869f5b20c236a6, wasm_bindgen__convert__closures_____invoke__hafab8b28acda63ce);
|
|
8792
8882
|
return ret;
|
|
8793
8883
|
};
|
|
8794
8884
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
@@ -8808,8 +8898,13 @@ function __wbg_get_imports() {
|
|
|
8808
8898
|
const ret = v0;
|
|
8809
8899
|
return ret;
|
|
8810
8900
|
};
|
|
8811
|
-
imports.wbg.
|
|
8812
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
8901
|
+
imports.wbg.__wbindgen_cast_4df210e5afc68b63 = function(arg0, arg1) {
|
|
8902
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 6803, function: Function { arguments: [], shim_idx: 6804, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8903
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5e0a3136249b832f, wasm_bindgen__convert__closures_____invoke__h9011598bdd38acb2);
|
|
8904
|
+
return ret;
|
|
8905
|
+
};
|
|
8906
|
+
imports.wbg.__wbindgen_cast_653b2620668ca290 = function(arg0, arg1) {
|
|
8907
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7216, function: Function { arguments: [Externref], shim_idx: 7227, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8813
8908
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5faecc40242ea0ca, wasm_bindgen__convert__closures_____invoke__h34df32c886f66f02);
|
|
8814
8909
|
return ret;
|
|
8815
8910
|
};
|
|
@@ -8832,8 +8927,8 @@ function __wbg_get_imports() {
|
|
|
8832
8927
|
const ret = arg0;
|
|
8833
8928
|
return ret;
|
|
8834
8929
|
};
|
|
8835
|
-
imports.wbg.
|
|
8836
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
8930
|
+
imports.wbg.__wbindgen_cast_bf4309e1be8fe4e3 = function(arg0, arg1) {
|
|
8931
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7017, function: Function { arguments: [], shim_idx: 7018, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8837
8932
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8a0c80adf0f210e5, wasm_bindgen__convert__closures_____invoke__h753a3e053785270d);
|
|
8838
8933
|
return ret;
|
|
8839
8934
|
};
|
|
@@ -8842,11 +8937,6 @@ function __wbg_get_imports() {
|
|
|
8842
8937
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
8843
8938
|
return ret;
|
|
8844
8939
|
};
|
|
8845
|
-
imports.wbg.__wbindgen_cast_d24c038e51b83c0a = function(arg0, arg1) {
|
|
8846
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 7183, function: Function { arguments: [], shim_idx: 7184, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
8847
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h83869f5b20c236a6, wasm_bindgen__convert__closures_____invoke__hafab8b28acda63ce);
|
|
8848
|
-
return ret;
|
|
8849
|
-
};
|
|
8850
8940
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
8851
8941
|
// Cast intrinsic for `F64 -> Externref`.
|
|
8852
8942
|
const ret = arg0;
|