@xmtp/wasm-bindings 1.2.0-dev.cae98b4 → 1.2.0-rc1
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/README.md +6 -2
- package/dist/bindings_wasm.d.ts +245 -212
- package/dist/bindings_wasm.js +359 -244
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +203 -183
- package/dist/version.json +3 -3
- package/package.json +2 -2
package/dist/bindings_wasm.js
CHANGED
|
@@ -224,11 +224,51 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
224
224
|
return ptr;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
+
function takeFromExternrefTable0(idx) {
|
|
228
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
229
|
+
wasm.__externref_table_dealloc(idx);
|
|
230
|
+
return value;
|
|
231
|
+
}
|
|
232
|
+
|
|
227
233
|
function _assertClass(instance, klass) {
|
|
228
234
|
if (!(instance instanceof klass)) {
|
|
229
235
|
throw new Error(`expected instance of ${klass.name}`);
|
|
230
236
|
}
|
|
231
237
|
}
|
|
238
|
+
/**
|
|
239
|
+
* @param {string} host
|
|
240
|
+
* @param {Identifier} accountIdentifier
|
|
241
|
+
* @returns {Promise<string | undefined>}
|
|
242
|
+
*/
|
|
243
|
+
export function getInboxIdForIdentifier(host, accountIdentifier) {
|
|
244
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
245
|
+
const len0 = WASM_VECTOR_LEN;
|
|
246
|
+
const ret = wasm.getInboxIdForIdentifier(ptr0, len0, accountIdentifier);
|
|
247
|
+
return ret;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* @param {Identifier} accountIdentifier
|
|
252
|
+
* @returns {string}
|
|
253
|
+
*/
|
|
254
|
+
export function generateInboxId(accountIdentifier) {
|
|
255
|
+
let deferred2_0;
|
|
256
|
+
let deferred2_1;
|
|
257
|
+
try {
|
|
258
|
+
const ret = wasm.generateInboxId(accountIdentifier);
|
|
259
|
+
var ptr1 = ret[0];
|
|
260
|
+
var len1 = ret[1];
|
|
261
|
+
if (ret[3]) {
|
|
262
|
+
ptr1 = 0; len1 = 0;
|
|
263
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
264
|
+
}
|
|
265
|
+
deferred2_0 = ptr1;
|
|
266
|
+
deferred2_1 = len1;
|
|
267
|
+
return getStringFromWasm0(ptr1, len1);
|
|
268
|
+
} finally {
|
|
269
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
232
272
|
|
|
233
273
|
function passArray8ToWasm0(arg, malloc) {
|
|
234
274
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
@@ -236,12 +276,35 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
236
276
|
WASM_VECTOR_LEN = arg.length;
|
|
237
277
|
return ptr;
|
|
238
278
|
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
279
|
+
/**
|
|
280
|
+
* @param {string} host
|
|
281
|
+
* @param {string} inbox_id
|
|
282
|
+
* @param {Identifier} account_identifier
|
|
283
|
+
* @param {string | null} [db_path]
|
|
284
|
+
* @param {Uint8Array | null} [encryption_key]
|
|
285
|
+
* @param {string | null} [device_sync_server_url]
|
|
286
|
+
* @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
|
|
287
|
+
* @param {LogOptions | null} [log_options]
|
|
288
|
+
* @returns {Promise<Client>}
|
|
289
|
+
*/
|
|
290
|
+
export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options) {
|
|
291
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
292
|
+
const len0 = WASM_VECTOR_LEN;
|
|
293
|
+
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
294
|
+
const len1 = WASM_VECTOR_LEN;
|
|
295
|
+
var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
296
|
+
var len2 = WASM_VECTOR_LEN;
|
|
297
|
+
var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
298
|
+
var len3 = WASM_VECTOR_LEN;
|
|
299
|
+
let ptr4 = 0;
|
|
300
|
+
if (!isLikeNone(log_options)) {
|
|
301
|
+
_assertClass(log_options, LogOptions);
|
|
302
|
+
ptr4 = log_options.__destroy_into_raw();
|
|
303
|
+
}
|
|
304
|
+
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);
|
|
305
|
+
return ret;
|
|
244
306
|
}
|
|
307
|
+
|
|
245
308
|
/**
|
|
246
309
|
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
247
310
|
* @returns {Uint8Array}
|
|
@@ -308,70 +371,6 @@ export function verifySignedWithPublicKey(signature_text, signature_bytes, publi
|
|
|
308
371
|
}
|
|
309
372
|
}
|
|
310
373
|
|
|
311
|
-
/**
|
|
312
|
-
* @param {string} host
|
|
313
|
-
* @param {string} inbox_id
|
|
314
|
-
* @param {Identifier} account_identifier
|
|
315
|
-
* @param {string | null} [db_path]
|
|
316
|
-
* @param {Uint8Array | null} [encryption_key]
|
|
317
|
-
* @param {string | null} [device_sync_server_url]
|
|
318
|
-
* @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
|
|
319
|
-
* @param {LogOptions | null} [log_options]
|
|
320
|
-
* @returns {Promise<Client>}
|
|
321
|
-
*/
|
|
322
|
-
export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options) {
|
|
323
|
-
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
324
|
-
const len0 = WASM_VECTOR_LEN;
|
|
325
|
-
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
326
|
-
const len1 = WASM_VECTOR_LEN;
|
|
327
|
-
var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
328
|
-
var len2 = WASM_VECTOR_LEN;
|
|
329
|
-
var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
330
|
-
var len3 = WASM_VECTOR_LEN;
|
|
331
|
-
let ptr4 = 0;
|
|
332
|
-
if (!isLikeNone(log_options)) {
|
|
333
|
-
_assertClass(log_options, LogOptions);
|
|
334
|
-
ptr4 = log_options.__destroy_into_raw();
|
|
335
|
-
}
|
|
336
|
-
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);
|
|
337
|
-
return ret;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* @param {string} host
|
|
342
|
-
* @param {Identifier} accountIdentifier
|
|
343
|
-
* @returns {Promise<string | undefined>}
|
|
344
|
-
*/
|
|
345
|
-
export function getInboxIdForIdentifier(host, accountIdentifier) {
|
|
346
|
-
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
347
|
-
const len0 = WASM_VECTOR_LEN;
|
|
348
|
-
const ret = wasm.getInboxIdForIdentifier(ptr0, len0, accountIdentifier);
|
|
349
|
-
return ret;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* @param {Identifier} accountIdentifier
|
|
354
|
-
* @returns {string}
|
|
355
|
-
*/
|
|
356
|
-
export function generateInboxId(accountIdentifier) {
|
|
357
|
-
let deferred2_0;
|
|
358
|
-
let deferred2_1;
|
|
359
|
-
try {
|
|
360
|
-
const ret = wasm.generateInboxId(accountIdentifier);
|
|
361
|
-
var ptr1 = ret[0];
|
|
362
|
-
var len1 = ret[1];
|
|
363
|
-
if (ret[3]) {
|
|
364
|
-
ptr1 = 0; len1 = 0;
|
|
365
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
366
|
-
}
|
|
367
|
-
deferred2_0 = ptr1;
|
|
368
|
-
deferred2_1 = len1;
|
|
369
|
-
return getStringFromWasm0(ptr1, len1);
|
|
370
|
-
} finally {
|
|
371
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
|
|
375
374
|
function __wbg_adapter_50(arg0, arg1) {
|
|
376
375
|
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6040dd5f55152215(arg0, arg1);
|
|
377
376
|
}
|
|
@@ -381,20 +380,20 @@ function __wbg_adapter_53(arg0, arg1) {
|
|
|
381
380
|
}
|
|
382
381
|
|
|
383
382
|
function __wbg_adapter_56(arg0, arg1, arg2) {
|
|
384
|
-
wasm.
|
|
383
|
+
wasm.closure4460_externref_shim(arg0, arg1, arg2);
|
|
385
384
|
}
|
|
386
385
|
|
|
387
386
|
function __wbg_adapter_59(arg0, arg1) {
|
|
388
387
|
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f45197f24caef5a(arg0, arg1);
|
|
389
388
|
}
|
|
390
389
|
|
|
391
|
-
function
|
|
392
|
-
const ret = wasm.
|
|
390
|
+
function __wbg_adapter_652(arg0, arg1, arg2, arg3, arg4) {
|
|
391
|
+
const ret = wasm.closure5467_externref_shim(arg0, arg1, arg2, arg3, arg4);
|
|
393
392
|
return ret !== 0;
|
|
394
393
|
}
|
|
395
394
|
|
|
396
|
-
function
|
|
397
|
-
wasm.
|
|
395
|
+
function __wbg_adapter_753(arg0, arg1, arg2, arg3) {
|
|
396
|
+
wasm.closure5466_externref_shim(arg0, arg1, arg2, arg3);
|
|
398
397
|
}
|
|
399
398
|
|
|
400
399
|
/**
|
|
@@ -444,12 +443,13 @@ export const DeliveryStatus = Object.freeze({
|
|
|
444
443
|
Failed: 2, "2": "Failed",
|
|
445
444
|
});
|
|
446
445
|
/**
|
|
447
|
-
* @enum {0 | 1 | 2}
|
|
446
|
+
* @enum {0 | 1 | 2 | 3}
|
|
448
447
|
*/
|
|
449
448
|
export const GroupMembershipState = Object.freeze({
|
|
450
449
|
Allowed: 0, "0": "Allowed",
|
|
451
450
|
Rejected: 1, "1": "Rejected",
|
|
452
451
|
Pending: 2, "2": "Pending",
|
|
452
|
+
Restored: 3, "3": "Restored",
|
|
453
453
|
});
|
|
454
454
|
/**
|
|
455
455
|
* @enum {0 | 1}
|
|
@@ -597,124 +597,44 @@ export class Client {
|
|
|
597
597
|
return ret;
|
|
598
598
|
}
|
|
599
599
|
/**
|
|
600
|
-
*
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
if (ret[0] !== 0) {
|
|
609
|
-
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
610
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
611
|
-
}
|
|
612
|
-
return v1;
|
|
613
|
-
}
|
|
614
|
-
/**
|
|
615
|
-
* @param {Identifier} new_identifier
|
|
616
|
-
* @returns {Promise<string>}
|
|
617
|
-
*/
|
|
618
|
-
addWalletSignatureText(new_identifier) {
|
|
619
|
-
const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, new_identifier);
|
|
620
|
-
return ret;
|
|
621
|
-
}
|
|
622
|
-
/**
|
|
623
|
-
* @param {Identifier} identifier
|
|
624
|
-
* @returns {Promise<string>}
|
|
600
|
+
*
|
|
601
|
+
* * Get the client's inbox state.
|
|
602
|
+
* *
|
|
603
|
+
* * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
|
|
604
|
+
* * Otherwise, the state will be read from the local database.
|
|
605
|
+
*
|
|
606
|
+
* @param {boolean} refresh_from_network
|
|
607
|
+
* @returns {Promise<InboxState>}
|
|
625
608
|
*/
|
|
626
|
-
|
|
627
|
-
const ret = wasm.
|
|
609
|
+
inboxState(refresh_from_network) {
|
|
610
|
+
const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
|
|
628
611
|
return ret;
|
|
629
612
|
}
|
|
630
613
|
/**
|
|
631
|
-
* @
|
|
614
|
+
* @param {string} inbox_id
|
|
615
|
+
* @returns {Promise<InboxState>}
|
|
632
616
|
*/
|
|
633
|
-
|
|
634
|
-
const
|
|
617
|
+
getLatestInboxState(inbox_id) {
|
|
618
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
619
|
+
const len0 = WASM_VECTOR_LEN;
|
|
620
|
+
const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
|
|
635
621
|
return ret;
|
|
636
622
|
}
|
|
637
623
|
/**
|
|
638
|
-
*
|
|
639
|
-
*
|
|
624
|
+
*
|
|
625
|
+
* * Get key package statuses for a list of installation IDs.
|
|
626
|
+
* *
|
|
627
|
+
* * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
|
|
628
|
+
*
|
|
629
|
+
* @param {string[]} installation_ids
|
|
630
|
+
* @returns {Promise<any>}
|
|
640
631
|
*/
|
|
641
|
-
|
|
632
|
+
getKeyPackageStatusesForInstallationIds(installation_ids) {
|
|
642
633
|
const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
643
634
|
const len0 = WASM_VECTOR_LEN;
|
|
644
|
-
const ret = wasm.
|
|
645
|
-
return ret;
|
|
646
|
-
}
|
|
647
|
-
/**
|
|
648
|
-
* @param {Identifier} new_recovery_identifier
|
|
649
|
-
* @returns {Promise<string>}
|
|
650
|
-
*/
|
|
651
|
-
changeRecoveryIdentifierSignatureText(new_recovery_identifier) {
|
|
652
|
-
const ret = wasm.client_changeRecoveryIdentifierSignatureText(this.__wbg_ptr, new_recovery_identifier);
|
|
653
|
-
return ret;
|
|
654
|
-
}
|
|
655
|
-
/**
|
|
656
|
-
* @param {SignatureRequestType} signature_type
|
|
657
|
-
* @param {Uint8Array} signature_bytes
|
|
658
|
-
* @returns {Promise<void>}
|
|
659
|
-
*/
|
|
660
|
-
addEcdsaSignature(signature_type, signature_bytes) {
|
|
661
|
-
const ret = wasm.client_addEcdsaSignature(this.__wbg_ptr, signature_type, signature_bytes);
|
|
662
|
-
return ret;
|
|
663
|
-
}
|
|
664
|
-
/**
|
|
665
|
-
* @param {SignatureRequestType} signature_type
|
|
666
|
-
* @param {PasskeySignature} signature
|
|
667
|
-
* @returns {Promise<void>}
|
|
668
|
-
*/
|
|
669
|
-
addPasskeySignature(signature_type, signature) {
|
|
670
|
-
_assertClass(signature, PasskeySignature);
|
|
671
|
-
var ptr0 = signature.__destroy_into_raw();
|
|
672
|
-
const ret = wasm.client_addPasskeySignature(this.__wbg_ptr, signature_type, ptr0);
|
|
673
|
-
return ret;
|
|
674
|
-
}
|
|
675
|
-
/**
|
|
676
|
-
* @param {SignatureRequestType} signature_type
|
|
677
|
-
* @param {Uint8Array} signature_bytes
|
|
678
|
-
* @param {bigint} chain_id
|
|
679
|
-
* @param {bigint | null} [block_number]
|
|
680
|
-
* @returns {Promise<void>}
|
|
681
|
-
*/
|
|
682
|
-
addScwSignature(signature_type, signature_bytes, chain_id, block_number) {
|
|
683
|
-
const ret = wasm.client_addScwSignature(this.__wbg_ptr, signature_type, signature_bytes, chain_id, !isLikeNone(block_number), isLikeNone(block_number) ? BigInt(0) : block_number);
|
|
684
|
-
return ret;
|
|
685
|
-
}
|
|
686
|
-
/**
|
|
687
|
-
* @returns {Promise<void>}
|
|
688
|
-
*/
|
|
689
|
-
applySignatureRequests() {
|
|
690
|
-
const ret = wasm.client_applySignatureRequests(this.__wbg_ptr);
|
|
635
|
+
const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
|
|
691
636
|
return ret;
|
|
692
637
|
}
|
|
693
|
-
/**
|
|
694
|
-
* @param {string} signature_text
|
|
695
|
-
* @returns {Uint8Array}
|
|
696
|
-
*/
|
|
697
|
-
signWithInstallationKey(signature_text) {
|
|
698
|
-
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
699
|
-
const len0 = WASM_VECTOR_LEN;
|
|
700
|
-
const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
|
|
701
|
-
if (ret[2]) {
|
|
702
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
703
|
-
}
|
|
704
|
-
return takeFromExternrefTable0(ret[0]);
|
|
705
|
-
}
|
|
706
|
-
/**
|
|
707
|
-
* @param {string} signature_text
|
|
708
|
-
* @param {Uint8Array} signature_bytes
|
|
709
|
-
*/
|
|
710
|
-
verifySignedWithInstallationKey(signature_text, signature_bytes) {
|
|
711
|
-
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
712
|
-
const len0 = WASM_VECTOR_LEN;
|
|
713
|
-
const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
|
|
714
|
-
if (ret[1]) {
|
|
715
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
638
|
/**
|
|
719
639
|
* @returns {Identifier}
|
|
720
640
|
*/
|
|
@@ -787,15 +707,8 @@ export class Client {
|
|
|
787
707
|
/**
|
|
788
708
|
* @returns {Promise<void>}
|
|
789
709
|
*/
|
|
790
|
-
|
|
791
|
-
const ret = wasm.
|
|
792
|
-
return ret;
|
|
793
|
-
}
|
|
794
|
-
/**
|
|
795
|
-
* @returns {Promise<void>}
|
|
796
|
-
*/
|
|
797
|
-
sendConsentSyncRequest() {
|
|
798
|
-
const ret = wasm.client_sendConsentSyncRequest(this.__wbg_ptr);
|
|
710
|
+
sendSyncRequest() {
|
|
711
|
+
const ret = wasm.client_sendSyncRequest(this.__wbg_ptr);
|
|
799
712
|
return ret;
|
|
800
713
|
}
|
|
801
714
|
/**
|
|
@@ -832,44 +745,124 @@ export class Client {
|
|
|
832
745
|
return ret;
|
|
833
746
|
}
|
|
834
747
|
/**
|
|
835
|
-
*
|
|
836
|
-
* * Get the client's inbox state.
|
|
837
|
-
* *
|
|
838
|
-
* * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
|
|
839
|
-
* * Otherwise, the state will be read from the local database.
|
|
840
|
-
*
|
|
841
|
-
* @param {boolean} refresh_from_network
|
|
842
|
-
* @returns {Promise<InboxState>}
|
|
748
|
+
* @returns {string | undefined}
|
|
843
749
|
*/
|
|
844
|
-
|
|
845
|
-
const ret = wasm.
|
|
750
|
+
createInboxSignatureText() {
|
|
751
|
+
const ret = wasm.client_createInboxSignatureText(this.__wbg_ptr);
|
|
752
|
+
if (ret[3]) {
|
|
753
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
754
|
+
}
|
|
755
|
+
let v1;
|
|
756
|
+
if (ret[0] !== 0) {
|
|
757
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
758
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
759
|
+
}
|
|
760
|
+
return v1;
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
* @param {Identifier} new_identifier
|
|
764
|
+
* @returns {Promise<string>}
|
|
765
|
+
*/
|
|
766
|
+
addWalletSignatureText(new_identifier) {
|
|
767
|
+
const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, new_identifier);
|
|
846
768
|
return ret;
|
|
847
769
|
}
|
|
848
770
|
/**
|
|
849
|
-
* @param {
|
|
850
|
-
* @returns {Promise<
|
|
771
|
+
* @param {Identifier} identifier
|
|
772
|
+
* @returns {Promise<string>}
|
|
851
773
|
*/
|
|
852
|
-
|
|
853
|
-
const
|
|
854
|
-
const len0 = WASM_VECTOR_LEN;
|
|
855
|
-
const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
|
|
774
|
+
revokeWalletSignatureText(identifier) {
|
|
775
|
+
const ret = wasm.client_revokeWalletSignatureText(this.__wbg_ptr, identifier);
|
|
856
776
|
return ret;
|
|
857
777
|
}
|
|
858
778
|
/**
|
|
859
|
-
*
|
|
860
|
-
* * Get key package statuses for a list of installation IDs.
|
|
861
|
-
* *
|
|
862
|
-
* * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
|
|
863
|
-
*
|
|
864
|
-
* @param {string[]} installation_ids
|
|
865
|
-
* @returns {Promise<any>}
|
|
779
|
+
* @returns {Promise<string>}
|
|
866
780
|
*/
|
|
867
|
-
|
|
781
|
+
revokeAllOtherInstallationsSignatureText() {
|
|
782
|
+
const ret = wasm.client_revokeAllOtherInstallationsSignatureText(this.__wbg_ptr);
|
|
783
|
+
return ret;
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* @param {Uint8Array[]} installation_ids
|
|
787
|
+
* @returns {Promise<string>}
|
|
788
|
+
*/
|
|
789
|
+
revokeInstallationsSignatureText(installation_ids) {
|
|
868
790
|
const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
869
791
|
const len0 = WASM_VECTOR_LEN;
|
|
870
|
-
const ret = wasm.
|
|
792
|
+
const ret = wasm.client_revokeInstallationsSignatureText(this.__wbg_ptr, ptr0, len0);
|
|
793
|
+
return ret;
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
* @param {Identifier} new_recovery_identifier
|
|
797
|
+
* @returns {Promise<string>}
|
|
798
|
+
*/
|
|
799
|
+
changeRecoveryIdentifierSignatureText(new_recovery_identifier) {
|
|
800
|
+
const ret = wasm.client_changeRecoveryIdentifierSignatureText(this.__wbg_ptr, new_recovery_identifier);
|
|
871
801
|
return ret;
|
|
872
802
|
}
|
|
803
|
+
/**
|
|
804
|
+
* @param {SignatureRequestType} signature_type
|
|
805
|
+
* @param {Uint8Array} signature_bytes
|
|
806
|
+
* @returns {Promise<void>}
|
|
807
|
+
*/
|
|
808
|
+
addEcdsaSignature(signature_type, signature_bytes) {
|
|
809
|
+
const ret = wasm.client_addEcdsaSignature(this.__wbg_ptr, signature_type, signature_bytes);
|
|
810
|
+
return ret;
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* @param {SignatureRequestType} signature_type
|
|
814
|
+
* @param {PasskeySignature} signature
|
|
815
|
+
* @returns {Promise<void>}
|
|
816
|
+
*/
|
|
817
|
+
addPasskeySignature(signature_type, signature) {
|
|
818
|
+
_assertClass(signature, PasskeySignature);
|
|
819
|
+
var ptr0 = signature.__destroy_into_raw();
|
|
820
|
+
const ret = wasm.client_addPasskeySignature(this.__wbg_ptr, signature_type, ptr0);
|
|
821
|
+
return ret;
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* @param {SignatureRequestType} signature_type
|
|
825
|
+
* @param {Uint8Array} signature_bytes
|
|
826
|
+
* @param {bigint} chain_id
|
|
827
|
+
* @param {bigint | null} [block_number]
|
|
828
|
+
* @returns {Promise<void>}
|
|
829
|
+
*/
|
|
830
|
+
addScwSignature(signature_type, signature_bytes, chain_id, block_number) {
|
|
831
|
+
const ret = wasm.client_addScwSignature(this.__wbg_ptr, signature_type, signature_bytes, chain_id, !isLikeNone(block_number), isLikeNone(block_number) ? BigInt(0) : block_number);
|
|
832
|
+
return ret;
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* @returns {Promise<void>}
|
|
836
|
+
*/
|
|
837
|
+
applySignatureRequests() {
|
|
838
|
+
const ret = wasm.client_applySignatureRequests(this.__wbg_ptr);
|
|
839
|
+
return ret;
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* @param {string} signature_text
|
|
843
|
+
* @returns {Uint8Array}
|
|
844
|
+
*/
|
|
845
|
+
signWithInstallationKey(signature_text) {
|
|
846
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
847
|
+
const len0 = WASM_VECTOR_LEN;
|
|
848
|
+
const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
|
|
849
|
+
if (ret[2]) {
|
|
850
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
851
|
+
}
|
|
852
|
+
return takeFromExternrefTable0(ret[0]);
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* @param {string} signature_text
|
|
856
|
+
* @param {Uint8Array} signature_bytes
|
|
857
|
+
*/
|
|
858
|
+
verifySignedWithInstallationKey(signature_text, signature_bytes) {
|
|
859
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
860
|
+
const len0 = WASM_VECTOR_LEN;
|
|
861
|
+
const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
|
|
862
|
+
if (ret[1]) {
|
|
863
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
864
|
+
}
|
|
865
|
+
}
|
|
873
866
|
}
|
|
874
867
|
|
|
875
868
|
const ConsentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1599,6 +1592,88 @@ export class Conversation {
|
|
|
1599
1592
|
}
|
|
1600
1593
|
return takeFromExternrefTable0(ret[0]);
|
|
1601
1594
|
}
|
|
1595
|
+
/**
|
|
1596
|
+
* @returns {Promise<any>}
|
|
1597
|
+
*/
|
|
1598
|
+
getDebugInfo() {
|
|
1599
|
+
const ret = wasm.conversation_getDebugInfo(this.__wbg_ptr);
|
|
1600
|
+
return ret;
|
|
1601
|
+
}
|
|
1602
|
+
/**
|
|
1603
|
+
* @returns {Promise<Conversation[]>}
|
|
1604
|
+
*/
|
|
1605
|
+
findDuplicateDms() {
|
|
1606
|
+
const ret = wasm.conversation_findDuplicateDms(this.__wbg_ptr);
|
|
1607
|
+
return ret;
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
const ConversationDebugInfoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1612
|
+
? { register: () => {}, unregister: () => {} }
|
|
1613
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_conversationdebuginfo_free(ptr >>> 0, 1));
|
|
1614
|
+
|
|
1615
|
+
export class ConversationDebugInfo {
|
|
1616
|
+
|
|
1617
|
+
__destroy_into_raw() {
|
|
1618
|
+
const ptr = this.__wbg_ptr;
|
|
1619
|
+
this.__wbg_ptr = 0;
|
|
1620
|
+
ConversationDebugInfoFinalization.unregister(this);
|
|
1621
|
+
return ptr;
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
free() {
|
|
1625
|
+
const ptr = this.__destroy_into_raw();
|
|
1626
|
+
wasm.__wbg_conversationdebuginfo_free(ptr, 0);
|
|
1627
|
+
}
|
|
1628
|
+
/**
|
|
1629
|
+
* @returns {bigint}
|
|
1630
|
+
*/
|
|
1631
|
+
get epoch() {
|
|
1632
|
+
const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
|
|
1633
|
+
return BigInt.asUintN(64, ret);
|
|
1634
|
+
}
|
|
1635
|
+
/**
|
|
1636
|
+
* @param {bigint} arg0
|
|
1637
|
+
*/
|
|
1638
|
+
set epoch(arg0) {
|
|
1639
|
+
wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
|
|
1640
|
+
}
|
|
1641
|
+
/**
|
|
1642
|
+
* @returns {boolean}
|
|
1643
|
+
*/
|
|
1644
|
+
get maybeForked() {
|
|
1645
|
+
const ret = wasm.__wbg_get_conversationdebuginfo_maybeForked(this.__wbg_ptr);
|
|
1646
|
+
return ret !== 0;
|
|
1647
|
+
}
|
|
1648
|
+
/**
|
|
1649
|
+
* @param {boolean} arg0
|
|
1650
|
+
*/
|
|
1651
|
+
set maybeForked(arg0) {
|
|
1652
|
+
wasm.__wbg_set_conversationdebuginfo_maybeForked(this.__wbg_ptr, arg0);
|
|
1653
|
+
}
|
|
1654
|
+
/**
|
|
1655
|
+
* @returns {string}
|
|
1656
|
+
*/
|
|
1657
|
+
get forkDetails() {
|
|
1658
|
+
let deferred1_0;
|
|
1659
|
+
let deferred1_1;
|
|
1660
|
+
try {
|
|
1661
|
+
const ret = wasm.__wbg_get_conversationdebuginfo_forkDetails(this.__wbg_ptr);
|
|
1662
|
+
deferred1_0 = ret[0];
|
|
1663
|
+
deferred1_1 = ret[1];
|
|
1664
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1665
|
+
} finally {
|
|
1666
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
/**
|
|
1670
|
+
* @param {string} arg0
|
|
1671
|
+
*/
|
|
1672
|
+
set forkDetails(arg0) {
|
|
1673
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1674
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1675
|
+
wasm.__wbg_set_conversationdebuginfo_forkDetails(this.__wbg_ptr, ptr0, len0);
|
|
1676
|
+
}
|
|
1602
1677
|
}
|
|
1603
1678
|
|
|
1604
1679
|
const ConversationListItemFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1703,6 +1778,22 @@ export class Conversations {
|
|
|
1703
1778
|
const ptr = this.__destroy_into_raw();
|
|
1704
1779
|
wasm.__wbg_conversations_free(ptr, 0);
|
|
1705
1780
|
}
|
|
1781
|
+
/**
|
|
1782
|
+
* @param {CreateGroupOptions | null} [options]
|
|
1783
|
+
* @returns {Conversation}
|
|
1784
|
+
*/
|
|
1785
|
+
createGroupOptimistic(options) {
|
|
1786
|
+
let ptr0 = 0;
|
|
1787
|
+
if (!isLikeNone(options)) {
|
|
1788
|
+
_assertClass(options, CreateGroupOptions);
|
|
1789
|
+
ptr0 = options.__destroy_into_raw();
|
|
1790
|
+
}
|
|
1791
|
+
const ret = wasm.conversations_createGroupOptimistic(this.__wbg_ptr, ptr0);
|
|
1792
|
+
if (ret[2]) {
|
|
1793
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1794
|
+
}
|
|
1795
|
+
return Conversation.__wrap(ret[0]);
|
|
1796
|
+
}
|
|
1706
1797
|
/**
|
|
1707
1798
|
* @param {Identifier[]} account_identifiers
|
|
1708
1799
|
* @param {CreateGroupOptions | null} [options]
|
|
@@ -1821,6 +1912,13 @@ export class Conversations {
|
|
|
1821
1912
|
const ret = wasm.conversations_syncAllConversations(this.__wbg_ptr, ptr0, len0);
|
|
1822
1913
|
return ret;
|
|
1823
1914
|
}
|
|
1915
|
+
/**
|
|
1916
|
+
* @returns {Promise<void>}
|
|
1917
|
+
*/
|
|
1918
|
+
syncDeviceSync() {
|
|
1919
|
+
const ret = wasm.conversations_syncDeviceSync(this.__wbg_ptr);
|
|
1920
|
+
return ret;
|
|
1921
|
+
}
|
|
1824
1922
|
/**
|
|
1825
1923
|
* @param {ListConversationsOptions | null} [opts]
|
|
1826
1924
|
* @returns {Array<any>}
|
|
@@ -1916,10 +2014,13 @@ export class Conversations {
|
|
|
1916
2014
|
/**
|
|
1917
2015
|
* @param {any} callback
|
|
1918
2016
|
* @param {ConversationType | null} [conversation_type]
|
|
2017
|
+
* @param {any[] | null} [consent_states]
|
|
1919
2018
|
* @returns {StreamCloser}
|
|
1920
2019
|
*/
|
|
1921
|
-
streamAllMessages(callback, conversation_type) {
|
|
1922
|
-
|
|
2020
|
+
streamAllMessages(callback, conversation_type, consent_states) {
|
|
2021
|
+
var ptr0 = isLikeNone(consent_states) ? 0 : passArrayJsValueToWasm0(consent_states, wasm.__wbindgen_malloc);
|
|
2022
|
+
var len0 = WASM_VECTOR_LEN;
|
|
2023
|
+
const ret = wasm.conversations_streamAllMessages(this.__wbg_ptr, callback, isLikeNone(conversation_type) ? 3 : conversation_type, ptr0, len0);
|
|
1923
2024
|
if (ret[2]) {
|
|
1924
2025
|
throw takeFromExternrefTable0(ret[1]);
|
|
1925
2026
|
}
|
|
@@ -2539,20 +2640,20 @@ export class HmacKey {
|
|
|
2539
2640
|
set key(arg0) {
|
|
2540
2641
|
const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
2541
2642
|
const len0 = WASM_VECTOR_LEN;
|
|
2542
|
-
wasm.
|
|
2643
|
+
wasm.__wbg_set_conversationdebuginfo_forkDetails(this.__wbg_ptr, ptr0, len0);
|
|
2543
2644
|
}
|
|
2544
2645
|
/**
|
|
2545
2646
|
* @returns {bigint}
|
|
2546
2647
|
*/
|
|
2547
2648
|
get epoch() {
|
|
2548
|
-
const ret = wasm.
|
|
2649
|
+
const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
|
|
2549
2650
|
return ret;
|
|
2550
2651
|
}
|
|
2551
2652
|
/**
|
|
2552
2653
|
* @param {bigint} arg0
|
|
2553
2654
|
*/
|
|
2554
2655
|
set epoch(arg0) {
|
|
2555
|
-
wasm.
|
|
2656
|
+
wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
|
|
2556
2657
|
}
|
|
2557
2658
|
}
|
|
2558
2659
|
|
|
@@ -2602,7 +2703,7 @@ export class InboxState {
|
|
|
2602
2703
|
set inboxId(arg0) {
|
|
2603
2704
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2604
2705
|
const len0 = WASM_VECTOR_LEN;
|
|
2605
|
-
wasm.
|
|
2706
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
2606
2707
|
}
|
|
2607
2708
|
/**
|
|
2608
2709
|
* @returns {Identifier}
|
|
@@ -3211,6 +3312,19 @@ export class ListMessagesOptions {
|
|
|
3211
3312
|
set direction(arg0) {
|
|
3212
3313
|
wasm.__wbg_set_listmessagesoptions_direction(this.__wbg_ptr, isLikeNone(arg0) ? 2 : arg0);
|
|
3213
3314
|
}
|
|
3315
|
+
/**
|
|
3316
|
+
* @returns {GroupMessageKind | undefined}
|
|
3317
|
+
*/
|
|
3318
|
+
get kind() {
|
|
3319
|
+
const ret = wasm.__wbg_get_listmessagesoptions_kind(this.__wbg_ptr);
|
|
3320
|
+
return ret === 2 ? undefined : ret;
|
|
3321
|
+
}
|
|
3322
|
+
/**
|
|
3323
|
+
* @param {GroupMessageKind | null} [arg0]
|
|
3324
|
+
*/
|
|
3325
|
+
set kind(arg0) {
|
|
3326
|
+
wasm.__wbg_set_listmessagesoptions_kind(this.__wbg_ptr, isLikeNone(arg0) ? 2 : arg0);
|
|
3327
|
+
}
|
|
3214
3328
|
/**
|
|
3215
3329
|
* @param {bigint | null} [sent_before_ns]
|
|
3216
3330
|
* @param {bigint | null} [sent_after_ns]
|
|
@@ -3218,11 +3332,12 @@ export class ListMessagesOptions {
|
|
|
3218
3332
|
* @param {DeliveryStatus | null} [delivery_status]
|
|
3219
3333
|
* @param {SortDirection | null} [direction]
|
|
3220
3334
|
* @param {any[] | null} [content_types]
|
|
3335
|
+
* @param {GroupMessageKind | null} [kind]
|
|
3221
3336
|
*/
|
|
3222
|
-
constructor(sent_before_ns, sent_after_ns, limit, delivery_status, direction, content_types) {
|
|
3337
|
+
constructor(sent_before_ns, sent_after_ns, limit, delivery_status, direction, content_types, kind) {
|
|
3223
3338
|
var ptr0 = isLikeNone(content_types) ? 0 : passArrayJsValueToWasm0(content_types, wasm.__wbindgen_malloc);
|
|
3224
3339
|
var len0 = WASM_VECTOR_LEN;
|
|
3225
|
-
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);
|
|
3340
|
+
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, isLikeNone(kind) ? 2 : kind);
|
|
3226
3341
|
this.__wbg_ptr = ret >>> 0;
|
|
3227
3342
|
ListMessagesOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
3228
3343
|
return this;
|
|
@@ -3365,14 +3480,14 @@ export class Message {
|
|
|
3365
3480
|
* @returns {bigint}
|
|
3366
3481
|
*/
|
|
3367
3482
|
get sentAtNs() {
|
|
3368
|
-
const ret = wasm.
|
|
3483
|
+
const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
|
|
3369
3484
|
return ret;
|
|
3370
3485
|
}
|
|
3371
3486
|
/**
|
|
3372
3487
|
* @param {bigint} arg0
|
|
3373
3488
|
*/
|
|
3374
3489
|
set sentAtNs(arg0) {
|
|
3375
|
-
wasm.
|
|
3490
|
+
wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
|
|
3376
3491
|
}
|
|
3377
3492
|
/**
|
|
3378
3493
|
* @returns {string}
|
|
@@ -3515,14 +3630,14 @@ export class MessageDisappearingSettings {
|
|
|
3515
3630
|
* @returns {bigint}
|
|
3516
3631
|
*/
|
|
3517
3632
|
get fromNs() {
|
|
3518
|
-
const ret = wasm.
|
|
3633
|
+
const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
|
|
3519
3634
|
return ret;
|
|
3520
3635
|
}
|
|
3521
3636
|
/**
|
|
3522
3637
|
* @param {bigint} arg0
|
|
3523
3638
|
*/
|
|
3524
3639
|
set fromNs(arg0) {
|
|
3525
|
-
wasm.
|
|
3640
|
+
wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
|
|
3526
3641
|
}
|
|
3527
3642
|
/**
|
|
3528
3643
|
* @returns {bigint}
|
|
@@ -4017,7 +4132,7 @@ export class Reaction {
|
|
|
4017
4132
|
set reference(arg0) {
|
|
4018
4133
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4019
4134
|
const len0 = WASM_VECTOR_LEN;
|
|
4020
|
-
wasm.
|
|
4135
|
+
wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
|
|
4021
4136
|
}
|
|
4022
4137
|
/**
|
|
4023
4138
|
* @returns {string}
|
|
@@ -4040,7 +4155,7 @@ export class Reaction {
|
|
|
4040
4155
|
set referenceInboxId(arg0) {
|
|
4041
4156
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4042
4157
|
const len0 = WASM_VECTOR_LEN;
|
|
4043
|
-
wasm.
|
|
4158
|
+
wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
|
|
4044
4159
|
}
|
|
4045
4160
|
/**
|
|
4046
4161
|
* @returns {ReactionAction}
|
|
@@ -4584,7 +4699,7 @@ function __wbg_get_imports() {
|
|
|
4584
4699
|
const a = state0.a;
|
|
4585
4700
|
state0.a = 0;
|
|
4586
4701
|
try {
|
|
4587
|
-
return
|
|
4702
|
+
return __wbg_adapter_652(a, state0.b, arg0, arg1, arg2);
|
|
4588
4703
|
} finally {
|
|
4589
4704
|
state0.a = a;
|
|
4590
4705
|
}
|
|
@@ -4614,7 +4729,7 @@ function __wbg_get_imports() {
|
|
|
4614
4729
|
const a = state0.a;
|
|
4615
4730
|
state0.a = 0;
|
|
4616
4731
|
try {
|
|
4617
|
-
return
|
|
4732
|
+
return __wbg_adapter_652(a, state0.b, arg0, arg1, arg2);
|
|
4618
4733
|
} finally {
|
|
4619
4734
|
state0.a = a;
|
|
4620
4735
|
}
|
|
@@ -4939,7 +5054,7 @@ function __wbg_get_imports() {
|
|
|
4939
5054
|
const a = state0.a;
|
|
4940
5055
|
state0.a = 0;
|
|
4941
5056
|
try {
|
|
4942
|
-
return
|
|
5057
|
+
return __wbg_adapter_753(a, state0.b, arg0, arg1);
|
|
4943
5058
|
} finally {
|
|
4944
5059
|
state0.a = a;
|
|
4945
5060
|
}
|
|
@@ -5046,19 +5161,19 @@ function __wbg_get_imports() {
|
|
|
5046
5161
|
const ret = arg0.now();
|
|
5047
5162
|
return ret;
|
|
5048
5163
|
};
|
|
5049
|
-
imports.wbg.
|
|
5164
|
+
imports.wbg.__wbg_onconsentupdate_5a23153c4da12d2f = function(arg0, arg1) {
|
|
5050
5165
|
arg0.on_consent_update(arg1);
|
|
5051
5166
|
};
|
|
5052
|
-
imports.wbg.
|
|
5167
|
+
imports.wbg.__wbg_onconversation_31b65a43349398a1 = function(arg0, arg1) {
|
|
5053
5168
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
5054
5169
|
};
|
|
5055
|
-
imports.wbg.
|
|
5170
|
+
imports.wbg.__wbg_onerror_f9ea1c3816616b61 = function(arg0, arg1) {
|
|
5056
5171
|
arg0.on_error(arg1);
|
|
5057
5172
|
};
|
|
5058
|
-
imports.wbg.
|
|
5173
|
+
imports.wbg.__wbg_onmessage_c4f143e88c048184 = function(arg0, arg1) {
|
|
5059
5174
|
arg0.on_message(Message.__wrap(arg1));
|
|
5060
5175
|
};
|
|
5061
|
-
imports.wbg.
|
|
5176
|
+
imports.wbg.__wbg_onuserpreferenceupdate_df90cad511ab99f8 = function(arg0, arg1, arg2) {
|
|
5062
5177
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
5063
5178
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
5064
5179
|
arg0.on_user_preference_update(v0);
|
|
@@ -5354,20 +5469,20 @@ function __wbg_get_imports() {
|
|
|
5354
5469
|
const ret = false;
|
|
5355
5470
|
return ret;
|
|
5356
5471
|
};
|
|
5357
|
-
imports.wbg.
|
|
5358
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5472
|
+
imports.wbg.__wbindgen_closure_wrapper17267 = function(arg0, arg1, arg2) {
|
|
5473
|
+
const ret = makeMutClosure(arg0, arg1, 4093, __wbg_adapter_50);
|
|
5359
5474
|
return ret;
|
|
5360
5475
|
};
|
|
5361
|
-
imports.wbg.
|
|
5362
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5476
|
+
imports.wbg.__wbindgen_closure_wrapper17311 = function(arg0, arg1, arg2) {
|
|
5477
|
+
const ret = makeMutClosure(arg0, arg1, 4103, __wbg_adapter_53);
|
|
5363
5478
|
return ret;
|
|
5364
5479
|
};
|
|
5365
|
-
imports.wbg.
|
|
5366
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5480
|
+
imports.wbg.__wbindgen_closure_wrapper20525 = function(arg0, arg1, arg2) {
|
|
5481
|
+
const ret = makeMutClosure(arg0, arg1, 4461, __wbg_adapter_56);
|
|
5367
5482
|
return ret;
|
|
5368
5483
|
};
|
|
5369
|
-
imports.wbg.
|
|
5370
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5484
|
+
imports.wbg.__wbindgen_closure_wrapper20646 = function(arg0, arg1, arg2) {
|
|
5485
|
+
const ret = makeMutClosure(arg0, arg1, 4475, __wbg_adapter_59);
|
|
5371
5486
|
return ret;
|
|
5372
5487
|
};
|
|
5373
5488
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|