@xmtp/wasm-bindings 0.0.21 → 1.0.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 +2 -3
- package/dist/bindings_wasm.d.ts +199 -169
- package/dist/bindings_wasm.js +313 -180
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +156 -146
- package/package.json +1 -1
package/dist/bindings_wasm.js
CHANGED
|
@@ -230,48 +230,11 @@ function _assertClass(instance, klass) {
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
234
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
235
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
236
|
-
WASM_VECTOR_LEN = arg.length;
|
|
237
|
-
return ptr;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
233
|
function takeFromExternrefTable0(idx) {
|
|
241
234
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
242
235
|
wasm.__externref_table_dealloc(idx);
|
|
243
236
|
return value;
|
|
244
237
|
}
|
|
245
|
-
/**
|
|
246
|
-
* @param {string} host
|
|
247
|
-
* @param {string} inbox_id
|
|
248
|
-
* @param {string} account_address
|
|
249
|
-
* @param {string | null} [db_path]
|
|
250
|
-
* @param {Uint8Array | null} [encryption_key]
|
|
251
|
-
* @param {string | null} [history_sync_url]
|
|
252
|
-
* @param {LogOptions | null} [log_options]
|
|
253
|
-
* @returns {Promise<Client>}
|
|
254
|
-
*/
|
|
255
|
-
export function createClient(host, inbox_id, account_address, db_path, encryption_key, history_sync_url, log_options) {
|
|
256
|
-
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
257
|
-
const len0 = WASM_VECTOR_LEN;
|
|
258
|
-
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
259
|
-
const len1 = WASM_VECTOR_LEN;
|
|
260
|
-
const ptr2 = passStringToWasm0(account_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
261
|
-
const len2 = WASM_VECTOR_LEN;
|
|
262
|
-
var ptr3 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
263
|
-
var len3 = WASM_VECTOR_LEN;
|
|
264
|
-
var ptr4 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
265
|
-
var len4 = WASM_VECTOR_LEN;
|
|
266
|
-
let ptr5 = 0;
|
|
267
|
-
if (!isLikeNone(log_options)) {
|
|
268
|
-
_assertClass(log_options, LogOptions);
|
|
269
|
-
ptr5 = log_options.__destroy_into_raw();
|
|
270
|
-
}
|
|
271
|
-
const ret = wasm.createClient(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr4, len4, ptr5);
|
|
272
|
-
return ret;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
238
|
/**
|
|
276
239
|
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
277
240
|
* @returns {Uint8Array}
|
|
@@ -326,29 +289,29 @@ export function decodeReaction(bytes) {
|
|
|
326
289
|
|
|
327
290
|
/**
|
|
328
291
|
* @param {string} host
|
|
329
|
-
* @param {
|
|
292
|
+
* @param {Identifier} account_identifier
|
|
330
293
|
* @returns {Promise<string | undefined>}
|
|
331
294
|
*/
|
|
332
|
-
export function getInboxIdForAddress(host,
|
|
295
|
+
export function getInboxIdForAddress(host, account_identifier) {
|
|
333
296
|
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
334
297
|
const len0 = WASM_VECTOR_LEN;
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
const ret = wasm.getInboxIdForAddress(ptr0, len0, ptr1
|
|
298
|
+
_assertClass(account_identifier, Identifier);
|
|
299
|
+
var ptr1 = account_identifier.__destroy_into_raw();
|
|
300
|
+
const ret = wasm.getInboxIdForAddress(ptr0, len0, ptr1);
|
|
338
301
|
return ret;
|
|
339
302
|
}
|
|
340
303
|
|
|
341
304
|
/**
|
|
342
|
-
* @param {
|
|
305
|
+
* @param {Identifier} account_identifier
|
|
343
306
|
* @returns {string}
|
|
344
307
|
*/
|
|
345
|
-
export function generateInboxId(
|
|
308
|
+
export function generateInboxId(account_identifier) {
|
|
346
309
|
let deferred3_0;
|
|
347
310
|
let deferred3_1;
|
|
348
311
|
try {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
const ret = wasm.generateInboxId(ptr0
|
|
312
|
+
_assertClass(account_identifier, Identifier);
|
|
313
|
+
var ptr0 = account_identifier.__destroy_into_raw();
|
|
314
|
+
const ret = wasm.generateInboxId(ptr0);
|
|
352
315
|
var ptr2 = ret[0];
|
|
353
316
|
var len2 = ret[1];
|
|
354
317
|
if (ret[3]) {
|
|
@@ -363,6 +326,42 @@ export function generateInboxId(account_address) {
|
|
|
363
326
|
}
|
|
364
327
|
}
|
|
365
328
|
|
|
329
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
330
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
331
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
332
|
+
WASM_VECTOR_LEN = arg.length;
|
|
333
|
+
return ptr;
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* @param {string} host
|
|
337
|
+
* @param {string} inbox_id
|
|
338
|
+
* @param {Identifier} account_identifier
|
|
339
|
+
* @param {string | null} [db_path]
|
|
340
|
+
* @param {Uint8Array | null} [encryption_key]
|
|
341
|
+
* @param {string | null} [history_sync_url]
|
|
342
|
+
* @param {LogOptions | null} [log_options]
|
|
343
|
+
* @returns {Promise<Client>}
|
|
344
|
+
*/
|
|
345
|
+
export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, history_sync_url, log_options) {
|
|
346
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
347
|
+
const len0 = WASM_VECTOR_LEN;
|
|
348
|
+
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
349
|
+
const len1 = WASM_VECTOR_LEN;
|
|
350
|
+
_assertClass(account_identifier, Identifier);
|
|
351
|
+
var ptr2 = account_identifier.__destroy_into_raw();
|
|
352
|
+
var ptr3 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
353
|
+
var len3 = WASM_VECTOR_LEN;
|
|
354
|
+
var ptr4 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
355
|
+
var len4 = WASM_VECTOR_LEN;
|
|
356
|
+
let ptr5 = 0;
|
|
357
|
+
if (!isLikeNone(log_options)) {
|
|
358
|
+
_assertClass(log_options, LogOptions);
|
|
359
|
+
ptr5 = log_options.__destroy_into_raw();
|
|
360
|
+
}
|
|
361
|
+
const ret = wasm.createClient(ptr0, len0, ptr1, len1, ptr2, ptr3, len3, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr4, len4, ptr5);
|
|
362
|
+
return ret;
|
|
363
|
+
}
|
|
364
|
+
|
|
366
365
|
/**
|
|
367
366
|
* @param {string} signature_text
|
|
368
367
|
* @param {Uint8Array} signature_bytes
|
|
@@ -382,25 +381,24 @@ function __wbg_adapter_46(arg0, arg1) {
|
|
|
382
381
|
}
|
|
383
382
|
|
|
384
383
|
function __wbg_adapter_49(arg0, arg1, arg2) {
|
|
385
|
-
wasm.
|
|
384
|
+
wasm.closure3746_externref_shim(arg0, arg1, arg2);
|
|
386
385
|
}
|
|
387
386
|
|
|
388
|
-
function
|
|
389
|
-
const ret = wasm.
|
|
387
|
+
function __wbg_adapter_591(arg0, arg1, arg2, arg3, arg4) {
|
|
388
|
+
const ret = wasm.closure4755_externref_shim(arg0, arg1, arg2, arg3, arg4);
|
|
390
389
|
return ret !== 0;
|
|
391
390
|
}
|
|
392
391
|
|
|
393
|
-
function
|
|
394
|
-
wasm.
|
|
392
|
+
function __wbg_adapter_692(arg0, arg1, arg2, arg3) {
|
|
393
|
+
wasm.closure4754_externref_shim(arg0, arg1, arg2, arg3);
|
|
395
394
|
}
|
|
396
395
|
|
|
397
396
|
/**
|
|
398
|
-
* @enum {0 | 1
|
|
397
|
+
* @enum {0 | 1}
|
|
399
398
|
*/
|
|
400
399
|
export const ConsentEntityType = Object.freeze({
|
|
401
400
|
GroupId: 0, "0": "GroupId",
|
|
402
401
|
InboxId: 1, "1": "InboxId",
|
|
403
|
-
Address: 2, "2": "Address",
|
|
404
402
|
});
|
|
405
403
|
/**
|
|
406
404
|
* @enum {0 | 1 | 2}
|
|
@@ -464,6 +462,13 @@ export const GroupPermissionsOptions = Object.freeze({
|
|
|
464
462
|
AdminOnly: 1, "1": "AdminOnly",
|
|
465
463
|
CustomPolicy: 2, "2": "CustomPolicy",
|
|
466
464
|
});
|
|
465
|
+
/**
|
|
466
|
+
* @enum {0 | 1}
|
|
467
|
+
*/
|
|
468
|
+
export const IdentifierKind = Object.freeze({
|
|
469
|
+
Ethereum: 0, "0": "Ethereum",
|
|
470
|
+
Passkey: 1, "1": "Passkey",
|
|
471
|
+
});
|
|
467
472
|
/**
|
|
468
473
|
* @enum {0 | 1 | 2 | 3 | 4}
|
|
469
474
|
*/
|
|
@@ -570,6 +575,27 @@ export class Client {
|
|
|
570
575
|
const ptr = this.__destroy_into_raw();
|
|
571
576
|
wasm.__wbg_client_free(ptr, 0);
|
|
572
577
|
}
|
|
578
|
+
/**
|
|
579
|
+
* @param {Consent[]} records
|
|
580
|
+
* @returns {Promise<void>}
|
|
581
|
+
*/
|
|
582
|
+
setConsentStates(records) {
|
|
583
|
+
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
584
|
+
const len0 = WASM_VECTOR_LEN;
|
|
585
|
+
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
586
|
+
return ret;
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* @param {ConsentEntityType} entity_type
|
|
590
|
+
* @param {string} entity
|
|
591
|
+
* @returns {Promise<ConsentState>}
|
|
592
|
+
*/
|
|
593
|
+
getConsentState(entity_type, entity) {
|
|
594
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
595
|
+
const len0 = WASM_VECTOR_LEN;
|
|
596
|
+
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
597
|
+
return ret;
|
|
598
|
+
}
|
|
573
599
|
/**
|
|
574
600
|
*
|
|
575
601
|
* * Get the client's inbox state.
|
|
@@ -595,19 +621,11 @@ export class Client {
|
|
|
595
621
|
return ret;
|
|
596
622
|
}
|
|
597
623
|
/**
|
|
598
|
-
* @returns {
|
|
624
|
+
* @returns {Identifier}
|
|
599
625
|
*/
|
|
600
626
|
get accountAddress() {
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
try {
|
|
604
|
-
const ret = wasm.client_accountAddress(this.__wbg_ptr);
|
|
605
|
-
deferred1_0 = ret[0];
|
|
606
|
-
deferred1_1 = ret[1];
|
|
607
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
608
|
-
} finally {
|
|
609
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
610
|
-
}
|
|
627
|
+
const ret = wasm.client_accountAddress(this.__wbg_ptr);
|
|
628
|
+
return Identifier.__wrap(ret);
|
|
611
629
|
}
|
|
612
630
|
/**
|
|
613
631
|
* @returns {string}
|
|
@@ -654,11 +672,12 @@ export class Client {
|
|
|
654
672
|
return ret;
|
|
655
673
|
}
|
|
656
674
|
/**
|
|
657
|
-
*
|
|
675
|
+
* Output booleans should be zipped with the index of input identifiers
|
|
676
|
+
* @param {Identifier[]} account_identifiers
|
|
658
677
|
* @returns {Promise<any>}
|
|
659
678
|
*/
|
|
660
|
-
canMessage(
|
|
661
|
-
const ptr0 = passArrayJsValueToWasm0(
|
|
679
|
+
canMessage(account_identifiers) {
|
|
680
|
+
const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
662
681
|
const len0 = WASM_VECTOR_LEN;
|
|
663
682
|
const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
|
|
664
683
|
return ret;
|
|
@@ -685,13 +704,13 @@ export class Client {
|
|
|
685
704
|
return ret;
|
|
686
705
|
}
|
|
687
706
|
/**
|
|
688
|
-
* @param {
|
|
707
|
+
* @param {Identifier} identifier
|
|
689
708
|
* @returns {Promise<string | undefined>}
|
|
690
709
|
*/
|
|
691
|
-
findInboxIdByAddress(
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
const ret = wasm.client_findInboxIdByAddress(this.__wbg_ptr, ptr0
|
|
710
|
+
findInboxIdByAddress(identifier) {
|
|
711
|
+
_assertClass(identifier, Identifier);
|
|
712
|
+
var ptr0 = identifier.__destroy_into_raw();
|
|
713
|
+
const ret = wasm.client_findInboxIdByAddress(this.__wbg_ptr, ptr0);
|
|
695
714
|
return ret;
|
|
696
715
|
}
|
|
697
716
|
/**
|
|
@@ -701,27 +720,6 @@ export class Client {
|
|
|
701
720
|
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
702
721
|
return Conversations.__wrap(ret);
|
|
703
722
|
}
|
|
704
|
-
/**
|
|
705
|
-
* @param {Consent[]} records
|
|
706
|
-
* @returns {Promise<void>}
|
|
707
|
-
*/
|
|
708
|
-
setConsentStates(records) {
|
|
709
|
-
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
710
|
-
const len0 = WASM_VECTOR_LEN;
|
|
711
|
-
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
712
|
-
return ret;
|
|
713
|
-
}
|
|
714
|
-
/**
|
|
715
|
-
* @param {ConsentEntityType} entity_type
|
|
716
|
-
* @param {string} entity
|
|
717
|
-
* @returns {Promise<ConsentState>}
|
|
718
|
-
*/
|
|
719
|
-
getConsentState(entity_type, entity) {
|
|
720
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
721
|
-
const len0 = WASM_VECTOR_LEN;
|
|
722
|
-
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
723
|
-
return ret;
|
|
724
|
-
}
|
|
725
723
|
/**
|
|
726
724
|
* @returns {string | undefined}
|
|
727
725
|
*/
|
|
@@ -738,23 +736,23 @@ export class Client {
|
|
|
738
736
|
return v1;
|
|
739
737
|
}
|
|
740
738
|
/**
|
|
741
|
-
* @param {
|
|
739
|
+
* @param {Identifier} new_identifier
|
|
742
740
|
* @returns {Promise<string>}
|
|
743
741
|
*/
|
|
744
|
-
addWalletSignatureText(
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, ptr0
|
|
742
|
+
addWalletSignatureText(new_identifier) {
|
|
743
|
+
_assertClass(new_identifier, Identifier);
|
|
744
|
+
var ptr0 = new_identifier.__destroy_into_raw();
|
|
745
|
+
const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, ptr0);
|
|
748
746
|
return ret;
|
|
749
747
|
}
|
|
750
748
|
/**
|
|
751
|
-
* @param {
|
|
749
|
+
* @param {Identifier} identifier
|
|
752
750
|
* @returns {Promise<string>}
|
|
753
751
|
*/
|
|
754
|
-
revokeWalletSignatureText(
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
const ret = wasm.client_revokeWalletSignatureText(this.__wbg_ptr, ptr0
|
|
752
|
+
revokeWalletSignatureText(identifier) {
|
|
753
|
+
_assertClass(identifier, Identifier);
|
|
754
|
+
var ptr0 = identifier.__destroy_into_raw();
|
|
755
|
+
const ret = wasm.client_revokeWalletSignatureText(this.__wbg_ptr, ptr0);
|
|
758
756
|
return ret;
|
|
759
757
|
}
|
|
760
758
|
/**
|
|
@@ -779,8 +777,19 @@ export class Client {
|
|
|
779
777
|
* @param {Uint8Array} signature_bytes
|
|
780
778
|
* @returns {Promise<void>}
|
|
781
779
|
*/
|
|
782
|
-
|
|
783
|
-
const ret = wasm.
|
|
780
|
+
addEcdsaSignature(signature_type, signature_bytes) {
|
|
781
|
+
const ret = wasm.client_addEcdsaSignature(this.__wbg_ptr, signature_type, signature_bytes);
|
|
782
|
+
return ret;
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* @param {SignatureRequestType} signature_type
|
|
786
|
+
* @param {PasskeySignature} signature
|
|
787
|
+
* @returns {Promise<void>}
|
|
788
|
+
*/
|
|
789
|
+
addPasskeySignature(signature_type, signature) {
|
|
790
|
+
_assertClass(signature, PasskeySignature);
|
|
791
|
+
var ptr0 = signature.__destroy_into_raw();
|
|
792
|
+
const ret = wasm.client_addPasskeySignature(this.__wbg_ptr, signature_type, ptr0);
|
|
784
793
|
return ret;
|
|
785
794
|
}
|
|
786
795
|
/**
|
|
@@ -1056,25 +1065,6 @@ export class Conversation {
|
|
|
1056
1065
|
const ptr = this.__destroy_into_raw();
|
|
1057
1066
|
wasm.__wbg_conversation_free(ptr, 0);
|
|
1058
1067
|
}
|
|
1059
|
-
/**
|
|
1060
|
-
* @returns {ConsentState}
|
|
1061
|
-
*/
|
|
1062
|
-
consentState() {
|
|
1063
|
-
const ret = wasm.conversation_consentState(this.__wbg_ptr);
|
|
1064
|
-
if (ret[2]) {
|
|
1065
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1066
|
-
}
|
|
1067
|
-
return ret[0];
|
|
1068
|
-
}
|
|
1069
|
-
/**
|
|
1070
|
-
* @param {ConsentState} state
|
|
1071
|
-
*/
|
|
1072
|
-
updateConsentState(state) {
|
|
1073
|
-
const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
|
|
1074
|
-
if (ret[1]) {
|
|
1075
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
1068
|
/**
|
|
1079
1069
|
* @returns {string}
|
|
1080
1070
|
*/
|
|
@@ -1224,11 +1214,11 @@ export class Conversation {
|
|
|
1224
1214
|
return ret[0] !== 0;
|
|
1225
1215
|
}
|
|
1226
1216
|
/**
|
|
1227
|
-
* @param {
|
|
1217
|
+
* @param {Identifier[]} account_identifiers
|
|
1228
1218
|
* @returns {Promise<void>}
|
|
1229
1219
|
*/
|
|
1230
|
-
addMembers(
|
|
1231
|
-
const ptr0 = passArrayJsValueToWasm0(
|
|
1220
|
+
addMembers(account_identifiers) {
|
|
1221
|
+
const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
1232
1222
|
const len0 = WASM_VECTOR_LEN;
|
|
1233
1223
|
const ret = wasm.conversation_addMembers(this.__wbg_ptr, ptr0, len0);
|
|
1234
1224
|
return ret;
|
|
@@ -1294,11 +1284,11 @@ export class Conversation {
|
|
|
1294
1284
|
return ret;
|
|
1295
1285
|
}
|
|
1296
1286
|
/**
|
|
1297
|
-
* @param {
|
|
1287
|
+
* @param {Identifier[]} account_identifiers
|
|
1298
1288
|
* @returns {Promise<void>}
|
|
1299
1289
|
*/
|
|
1300
|
-
removeMembers(
|
|
1301
|
-
const ptr0 = passArrayJsValueToWasm0(
|
|
1290
|
+
removeMembers(account_identifiers) {
|
|
1291
|
+
const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
1302
1292
|
const len0 = WASM_VECTOR_LEN;
|
|
1303
1293
|
const ret = wasm.conversation_removeMembers(this.__wbg_ptr, ptr0, len0);
|
|
1304
1294
|
return ret;
|
|
@@ -1434,6 +1424,21 @@ export class Conversation {
|
|
|
1434
1424
|
}
|
|
1435
1425
|
return ret[0] !== 0;
|
|
1436
1426
|
}
|
|
1427
|
+
/**
|
|
1428
|
+
* @returns {string | undefined}
|
|
1429
|
+
*/
|
|
1430
|
+
pausedForVersion() {
|
|
1431
|
+
const ret = wasm.conversation_pausedForVersion(this.__wbg_ptr);
|
|
1432
|
+
if (ret[3]) {
|
|
1433
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1434
|
+
}
|
|
1435
|
+
let v1;
|
|
1436
|
+
if (ret[0] !== 0) {
|
|
1437
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
1438
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1439
|
+
}
|
|
1440
|
+
return v1;
|
|
1441
|
+
}
|
|
1437
1442
|
/**
|
|
1438
1443
|
* @returns {string}
|
|
1439
1444
|
*/
|
|
@@ -1540,6 +1545,25 @@ export class Conversation {
|
|
|
1540
1545
|
}
|
|
1541
1546
|
return takeFromExternrefTable0(ret[0]);
|
|
1542
1547
|
}
|
|
1548
|
+
/**
|
|
1549
|
+
* @returns {ConsentState}
|
|
1550
|
+
*/
|
|
1551
|
+
consentState() {
|
|
1552
|
+
const ret = wasm.conversation_consentState(this.__wbg_ptr);
|
|
1553
|
+
if (ret[2]) {
|
|
1554
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1555
|
+
}
|
|
1556
|
+
return ret[0];
|
|
1557
|
+
}
|
|
1558
|
+
/**
|
|
1559
|
+
* @param {ConsentState} state
|
|
1560
|
+
*/
|
|
1561
|
+
updateConsentState(state) {
|
|
1562
|
+
const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
|
|
1563
|
+
if (ret[1]) {
|
|
1564
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1543
1567
|
}
|
|
1544
1568
|
|
|
1545
1569
|
const ConversationListItemFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1645,12 +1669,12 @@ export class Conversations {
|
|
|
1645
1669
|
wasm.__wbg_conversations_free(ptr, 0);
|
|
1646
1670
|
}
|
|
1647
1671
|
/**
|
|
1648
|
-
* @param {
|
|
1672
|
+
* @param {Identifier[]} account_identifiers
|
|
1649
1673
|
* @param {CreateGroupOptions | null} [options]
|
|
1650
1674
|
* @returns {Promise<Conversation>}
|
|
1651
1675
|
*/
|
|
1652
|
-
createGroup(
|
|
1653
|
-
const ptr0 = passArrayJsValueToWasm0(
|
|
1676
|
+
createGroup(account_identifiers, options) {
|
|
1677
|
+
const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
1654
1678
|
const len0 = WASM_VECTOR_LEN;
|
|
1655
1679
|
let ptr1 = 0;
|
|
1656
1680
|
if (!isLikeNone(options)) {
|
|
@@ -1677,19 +1701,19 @@ export class Conversations {
|
|
|
1677
1701
|
return ret;
|
|
1678
1702
|
}
|
|
1679
1703
|
/**
|
|
1680
|
-
* @param {
|
|
1704
|
+
* @param {Identifier} account_identifier
|
|
1681
1705
|
* @param {CreateDMOptions | null} [options]
|
|
1682
1706
|
* @returns {Promise<Conversation>}
|
|
1683
1707
|
*/
|
|
1684
|
-
createDm(
|
|
1685
|
-
|
|
1686
|
-
|
|
1708
|
+
createDm(account_identifier, options) {
|
|
1709
|
+
_assertClass(account_identifier, Identifier);
|
|
1710
|
+
var ptr0 = account_identifier.__destroy_into_raw();
|
|
1687
1711
|
let ptr1 = 0;
|
|
1688
1712
|
if (!isLikeNone(options)) {
|
|
1689
1713
|
_assertClass(options, CreateDMOptions);
|
|
1690
1714
|
ptr1 = options.__destroy_into_raw();
|
|
1691
1715
|
}
|
|
1692
|
-
const ret = wasm.conversations_createDm(this.__wbg_ptr, ptr0,
|
|
1716
|
+
const ret = wasm.conversations_createDm(this.__wbg_ptr, ptr0, ptr1);
|
|
1693
1717
|
return ret;
|
|
1694
1718
|
}
|
|
1695
1719
|
/**
|
|
@@ -2266,7 +2290,7 @@ export class GroupMember {
|
|
|
2266
2290
|
wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
|
|
2267
2291
|
}
|
|
2268
2292
|
/**
|
|
2269
|
-
* @returns {
|
|
2293
|
+
* @returns {Identifier[]}
|
|
2270
2294
|
*/
|
|
2271
2295
|
get accountAddresses() {
|
|
2272
2296
|
const ret = wasm.__wbg_get_groupmember_accountAddresses(this.__wbg_ptr);
|
|
@@ -2275,7 +2299,7 @@ export class GroupMember {
|
|
|
2275
2299
|
return v1;
|
|
2276
2300
|
}
|
|
2277
2301
|
/**
|
|
2278
|
-
* @param {
|
|
2302
|
+
* @param {Identifier[]} arg0
|
|
2279
2303
|
*/
|
|
2280
2304
|
set accountAddresses(arg0) {
|
|
2281
2305
|
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
@@ -2327,15 +2351,15 @@ export class GroupMember {
|
|
|
2327
2351
|
}
|
|
2328
2352
|
/**
|
|
2329
2353
|
* @param {string} inbox_id
|
|
2330
|
-
* @param {
|
|
2354
|
+
* @param {Identifier[]} account_identifiers
|
|
2331
2355
|
* @param {string[]} installation_ids
|
|
2332
2356
|
* @param {PermissionLevel} permission_level
|
|
2333
2357
|
* @param {ConsentState} consent_state
|
|
2334
2358
|
*/
|
|
2335
|
-
constructor(inbox_id,
|
|
2359
|
+
constructor(inbox_id, account_identifiers, installation_ids, permission_level, consent_state) {
|
|
2336
2360
|
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2337
2361
|
const len0 = WASM_VECTOR_LEN;
|
|
2338
|
-
const ptr1 = passArrayJsValueToWasm0(
|
|
2362
|
+
const ptr1 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
2339
2363
|
const len1 = WASM_VECTOR_LEN;
|
|
2340
2364
|
const ptr2 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
2341
2365
|
const len2 = WASM_VECTOR_LEN;
|
|
@@ -2499,39 +2523,46 @@ export class HmacKey {
|
|
|
2499
2523
|
}
|
|
2500
2524
|
}
|
|
2501
2525
|
|
|
2502
|
-
const
|
|
2526
|
+
const IdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2503
2527
|
? { register: () => {}, unregister: () => {} }
|
|
2504
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
2528
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_identifier_free(ptr >>> 0, 1));
|
|
2505
2529
|
|
|
2506
|
-
export class
|
|
2530
|
+
export class Identifier {
|
|
2507
2531
|
|
|
2508
2532
|
static __wrap(ptr) {
|
|
2509
2533
|
ptr = ptr >>> 0;
|
|
2510
|
-
const obj = Object.create(
|
|
2534
|
+
const obj = Object.create(Identifier.prototype);
|
|
2511
2535
|
obj.__wbg_ptr = ptr;
|
|
2512
|
-
|
|
2536
|
+
IdentifierFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2513
2537
|
return obj;
|
|
2514
2538
|
}
|
|
2515
2539
|
|
|
2540
|
+
static __unwrap(jsValue) {
|
|
2541
|
+
if (!(jsValue instanceof Identifier)) {
|
|
2542
|
+
return 0;
|
|
2543
|
+
}
|
|
2544
|
+
return jsValue.__destroy_into_raw();
|
|
2545
|
+
}
|
|
2546
|
+
|
|
2516
2547
|
__destroy_into_raw() {
|
|
2517
2548
|
const ptr = this.__wbg_ptr;
|
|
2518
2549
|
this.__wbg_ptr = 0;
|
|
2519
|
-
|
|
2550
|
+
IdentifierFinalization.unregister(this);
|
|
2520
2551
|
return ptr;
|
|
2521
2552
|
}
|
|
2522
2553
|
|
|
2523
2554
|
free() {
|
|
2524
2555
|
const ptr = this.__destroy_into_raw();
|
|
2525
|
-
wasm.
|
|
2556
|
+
wasm.__wbg_identifier_free(ptr, 0);
|
|
2526
2557
|
}
|
|
2527
2558
|
/**
|
|
2528
2559
|
* @returns {string}
|
|
2529
2560
|
*/
|
|
2530
|
-
get
|
|
2561
|
+
get identifier() {
|
|
2531
2562
|
let deferred1_0;
|
|
2532
2563
|
let deferred1_1;
|
|
2533
2564
|
try {
|
|
2534
|
-
const ret = wasm.
|
|
2565
|
+
const ret = wasm.__wbg_get_identifier_identifier(this.__wbg_ptr);
|
|
2535
2566
|
deferred1_0 = ret[0];
|
|
2536
2567
|
deferred1_1 = ret[1];
|
|
2537
2568
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -2542,19 +2573,79 @@ export class InboxState {
|
|
|
2542
2573
|
/**
|
|
2543
2574
|
* @param {string} arg0
|
|
2544
2575
|
*/
|
|
2545
|
-
set
|
|
2576
|
+
set identifier(arg0) {
|
|
2546
2577
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2547
2578
|
const len0 = WASM_VECTOR_LEN;
|
|
2548
|
-
wasm.
|
|
2579
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
2580
|
+
}
|
|
2581
|
+
/**
|
|
2582
|
+
* @returns {IdentifierKind}
|
|
2583
|
+
*/
|
|
2584
|
+
get identifier_kind() {
|
|
2585
|
+
const ret = wasm.__wbg_get_identifier_identifier_kind(this.__wbg_ptr);
|
|
2586
|
+
return ret;
|
|
2587
|
+
}
|
|
2588
|
+
/**
|
|
2589
|
+
* @param {IdentifierKind} arg0
|
|
2590
|
+
*/
|
|
2591
|
+
set identifier_kind(arg0) {
|
|
2592
|
+
wasm.__wbg_set_identifier_identifier_kind(this.__wbg_ptr, arg0);
|
|
2593
|
+
}
|
|
2594
|
+
/**
|
|
2595
|
+
* @returns {string | undefined}
|
|
2596
|
+
*/
|
|
2597
|
+
get relying_party() {
|
|
2598
|
+
const ret = wasm.__wbg_get_identifier_relying_party(this.__wbg_ptr);
|
|
2599
|
+
let v1;
|
|
2600
|
+
if (ret[0] !== 0) {
|
|
2601
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
2602
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2603
|
+
}
|
|
2604
|
+
return v1;
|
|
2605
|
+
}
|
|
2606
|
+
/**
|
|
2607
|
+
* @param {string | null} [arg0]
|
|
2608
|
+
*/
|
|
2609
|
+
set relying_party(arg0) {
|
|
2610
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2611
|
+
var len0 = WASM_VECTOR_LEN;
|
|
2612
|
+
wasm.__wbg_set_identifier_relying_party(this.__wbg_ptr, ptr0, len0);
|
|
2613
|
+
}
|
|
2614
|
+
}
|
|
2615
|
+
|
|
2616
|
+
const InboxStateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2617
|
+
? { register: () => {}, unregister: () => {} }
|
|
2618
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_inboxstate_free(ptr >>> 0, 1));
|
|
2619
|
+
|
|
2620
|
+
export class InboxState {
|
|
2621
|
+
|
|
2622
|
+
static __wrap(ptr) {
|
|
2623
|
+
ptr = ptr >>> 0;
|
|
2624
|
+
const obj = Object.create(InboxState.prototype);
|
|
2625
|
+
obj.__wbg_ptr = ptr;
|
|
2626
|
+
InboxStateFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2627
|
+
return obj;
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2630
|
+
__destroy_into_raw() {
|
|
2631
|
+
const ptr = this.__wbg_ptr;
|
|
2632
|
+
this.__wbg_ptr = 0;
|
|
2633
|
+
InboxStateFinalization.unregister(this);
|
|
2634
|
+
return ptr;
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
free() {
|
|
2638
|
+
const ptr = this.__destroy_into_raw();
|
|
2639
|
+
wasm.__wbg_inboxstate_free(ptr, 0);
|
|
2549
2640
|
}
|
|
2550
2641
|
/**
|
|
2551
2642
|
* @returns {string}
|
|
2552
2643
|
*/
|
|
2553
|
-
get
|
|
2644
|
+
get inboxId() {
|
|
2554
2645
|
let deferred1_0;
|
|
2555
2646
|
let deferred1_1;
|
|
2556
2647
|
try {
|
|
2557
|
-
const ret = wasm.
|
|
2648
|
+
const ret = wasm.__wbg_get_inboxstate_inboxId(this.__wbg_ptr);
|
|
2558
2649
|
deferred1_0 = ret[0];
|
|
2559
2650
|
deferred1_1 = ret[1];
|
|
2560
2651
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -2565,10 +2656,25 @@ export class InboxState {
|
|
|
2565
2656
|
/**
|
|
2566
2657
|
* @param {string} arg0
|
|
2567
2658
|
*/
|
|
2568
|
-
set
|
|
2659
|
+
set inboxId(arg0) {
|
|
2569
2660
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2570
2661
|
const len0 = WASM_VECTOR_LEN;
|
|
2571
|
-
wasm.
|
|
2662
|
+
wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
|
|
2663
|
+
}
|
|
2664
|
+
/**
|
|
2665
|
+
* @returns {Identifier}
|
|
2666
|
+
*/
|
|
2667
|
+
get recoveryIdentifier() {
|
|
2668
|
+
const ret = wasm.__wbg_get_inboxstate_recoveryIdentifier(this.__wbg_ptr);
|
|
2669
|
+
return Identifier.__wrap(ret);
|
|
2670
|
+
}
|
|
2671
|
+
/**
|
|
2672
|
+
* @param {Identifier} arg0
|
|
2673
|
+
*/
|
|
2674
|
+
set recoveryIdentifier(arg0) {
|
|
2675
|
+
_assertClass(arg0, Identifier);
|
|
2676
|
+
var ptr0 = arg0.__destroy_into_raw();
|
|
2677
|
+
wasm.__wbg_set_inboxstate_recoveryIdentifier(this.__wbg_ptr, ptr0);
|
|
2572
2678
|
}
|
|
2573
2679
|
/**
|
|
2574
2680
|
* @returns {Installation[]}
|
|
@@ -2588,7 +2694,7 @@ export class InboxState {
|
|
|
2588
2694
|
wasm.__wbg_set_inboxstate_installations(this.__wbg_ptr, ptr0, len0);
|
|
2589
2695
|
}
|
|
2590
2696
|
/**
|
|
2591
|
-
* @returns {
|
|
2697
|
+
* @returns {Identifier[]}
|
|
2592
2698
|
*/
|
|
2593
2699
|
get accountAddresses() {
|
|
2594
2700
|
const ret = wasm.__wbg_get_inboxstate_accountAddresses(this.__wbg_ptr);
|
|
@@ -2597,7 +2703,7 @@ export class InboxState {
|
|
|
2597
2703
|
return v1;
|
|
2598
2704
|
}
|
|
2599
2705
|
/**
|
|
2600
|
-
* @param {
|
|
2706
|
+
* @param {Identifier[]} arg0
|
|
2601
2707
|
*/
|
|
2602
2708
|
set accountAddresses(arg0) {
|
|
2603
2709
|
const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
@@ -2606,20 +2712,20 @@ export class InboxState {
|
|
|
2606
2712
|
}
|
|
2607
2713
|
/**
|
|
2608
2714
|
* @param {string} inbox_id
|
|
2609
|
-
* @param {
|
|
2715
|
+
* @param {Identifier} recovery_identifier
|
|
2610
2716
|
* @param {Installation[]} installations
|
|
2611
|
-
* @param {
|
|
2717
|
+
* @param {Identifier[]} account_identifiers
|
|
2612
2718
|
*/
|
|
2613
|
-
constructor(inbox_id,
|
|
2719
|
+
constructor(inbox_id, recovery_identifier, installations, account_identifiers) {
|
|
2614
2720
|
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2615
2721
|
const len0 = WASM_VECTOR_LEN;
|
|
2616
|
-
|
|
2617
|
-
|
|
2722
|
+
_assertClass(recovery_identifier, Identifier);
|
|
2723
|
+
var ptr1 = recovery_identifier.__destroy_into_raw();
|
|
2618
2724
|
const ptr2 = passArrayJsValueToWasm0(installations, wasm.__wbindgen_malloc);
|
|
2619
2725
|
const len2 = WASM_VECTOR_LEN;
|
|
2620
|
-
const ptr3 = passArrayJsValueToWasm0(
|
|
2726
|
+
const ptr3 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
2621
2727
|
const len3 = WASM_VECTOR_LEN;
|
|
2622
|
-
const ret = wasm.inboxstate_new(ptr0, len0, ptr1,
|
|
2728
|
+
const ret = wasm.inboxstate_new(ptr0, len0, ptr1, ptr2, len2, ptr3, len3);
|
|
2623
2729
|
this.__wbg_ptr = ret >>> 0;
|
|
2624
2730
|
InboxStateFinalization.register(this, this.__wbg_ptr, this);
|
|
2625
2731
|
return this;
|
|
@@ -3508,6 +3614,25 @@ export class MultiRemoteAttachment {
|
|
|
3508
3614
|
}
|
|
3509
3615
|
}
|
|
3510
3616
|
|
|
3617
|
+
const PasskeySignatureFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3618
|
+
? { register: () => {}, unregister: () => {} }
|
|
3619
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_passkeysignature_free(ptr >>> 0, 1));
|
|
3620
|
+
|
|
3621
|
+
export class PasskeySignature {
|
|
3622
|
+
|
|
3623
|
+
__destroy_into_raw() {
|
|
3624
|
+
const ptr = this.__wbg_ptr;
|
|
3625
|
+
this.__wbg_ptr = 0;
|
|
3626
|
+
PasskeySignatureFinalization.unregister(this);
|
|
3627
|
+
return ptr;
|
|
3628
|
+
}
|
|
3629
|
+
|
|
3630
|
+
free() {
|
|
3631
|
+
const ptr = this.__destroy_into_raw();
|
|
3632
|
+
wasm.__wbg_passkeysignature_free(ptr, 0);
|
|
3633
|
+
}
|
|
3634
|
+
}
|
|
3635
|
+
|
|
3511
3636
|
const PermissionPolicySetFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3512
3637
|
? { register: () => {}, unregister: () => {} }
|
|
3513
3638
|
: new FinalizationRegistry(ptr => wasm.__wbg_permissionpolicyset_free(ptr >>> 0, 1));
|
|
@@ -4253,7 +4378,7 @@ function __wbg_get_imports() {
|
|
|
4253
4378
|
const a = state0.a;
|
|
4254
4379
|
state0.a = 0;
|
|
4255
4380
|
try {
|
|
4256
|
-
return
|
|
4381
|
+
return __wbg_adapter_591(a, state0.b, arg0, arg1, arg2);
|
|
4257
4382
|
} finally {
|
|
4258
4383
|
state0.a = a;
|
|
4259
4384
|
}
|
|
@@ -4283,7 +4408,7 @@ function __wbg_get_imports() {
|
|
|
4283
4408
|
const a = state0.a;
|
|
4284
4409
|
state0.a = 0;
|
|
4285
4410
|
try {
|
|
4286
|
-
return
|
|
4411
|
+
return __wbg_adapter_591(a, state0.b, arg0, arg1, arg2);
|
|
4287
4412
|
} finally {
|
|
4288
4413
|
state0.a = a;
|
|
4289
4414
|
}
|
|
@@ -4408,6 +4533,14 @@ function __wbg_get_imports() {
|
|
|
4408
4533
|
const ret = arg0.headers;
|
|
4409
4534
|
return ret;
|
|
4410
4535
|
};
|
|
4536
|
+
imports.wbg.__wbg_identifier_new = function(arg0) {
|
|
4537
|
+
const ret = Identifier.__wrap(arg0);
|
|
4538
|
+
return ret;
|
|
4539
|
+
};
|
|
4540
|
+
imports.wbg.__wbg_identifier_unwrap = function(arg0) {
|
|
4541
|
+
const ret = Identifier.__unwrap(arg0);
|
|
4542
|
+
return ret;
|
|
4543
|
+
};
|
|
4411
4544
|
imports.wbg.__wbg_inboxstate_new = function(arg0) {
|
|
4412
4545
|
const ret = InboxState.__wrap(arg0);
|
|
4413
4546
|
return ret;
|
|
@@ -4567,7 +4700,7 @@ function __wbg_get_imports() {
|
|
|
4567
4700
|
const a = state0.a;
|
|
4568
4701
|
state0.a = 0;
|
|
4569
4702
|
try {
|
|
4570
|
-
return
|
|
4703
|
+
return __wbg_adapter_692(a, state0.b, arg0, arg1);
|
|
4571
4704
|
} finally {
|
|
4572
4705
|
state0.a = a;
|
|
4573
4706
|
}
|
|
@@ -4674,19 +4807,19 @@ function __wbg_get_imports() {
|
|
|
4674
4807
|
const ret = arg0.now();
|
|
4675
4808
|
return ret;
|
|
4676
4809
|
};
|
|
4677
|
-
imports.wbg.
|
|
4810
|
+
imports.wbg.__wbg_onconsentupdate_844b7f7e44492d30 = function(arg0, arg1) {
|
|
4678
4811
|
arg0.on_consent_update(arg1);
|
|
4679
4812
|
};
|
|
4680
|
-
imports.wbg.
|
|
4813
|
+
imports.wbg.__wbg_onconversation_35931efedaf204ea = function(arg0, arg1) {
|
|
4681
4814
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
4682
4815
|
};
|
|
4683
|
-
imports.wbg.
|
|
4816
|
+
imports.wbg.__wbg_onerror_c64021ce19f936d9 = function(arg0, arg1) {
|
|
4684
4817
|
arg0.on_error(arg1);
|
|
4685
4818
|
};
|
|
4686
|
-
imports.wbg.
|
|
4819
|
+
imports.wbg.__wbg_onmessage_0d3ed9807e0227a5 = function(arg0, arg1) {
|
|
4687
4820
|
arg0.on_message(Message.__wrap(arg1));
|
|
4688
4821
|
};
|
|
4689
|
-
imports.wbg.
|
|
4822
|
+
imports.wbg.__wbg_onuserpreferenceupdate_95e5a0b779408514 = function(arg0, arg1, arg2) {
|
|
4690
4823
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
4691
4824
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
4692
4825
|
arg0.on_user_preference_update(v0);
|
|
@@ -4966,12 +5099,12 @@ function __wbg_get_imports() {
|
|
|
4966
5099
|
const ret = false;
|
|
4967
5100
|
return ret;
|
|
4968
5101
|
};
|
|
4969
|
-
imports.wbg.
|
|
4970
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5102
|
+
imports.wbg.__wbindgen_closure_wrapper16176 = function(arg0, arg1, arg2) {
|
|
5103
|
+
const ret = makeMutClosure(arg0, arg1, 3674, __wbg_adapter_46);
|
|
4971
5104
|
return ret;
|
|
4972
5105
|
};
|
|
4973
|
-
imports.wbg.
|
|
4974
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5106
|
+
imports.wbg.__wbindgen_closure_wrapper16472 = function(arg0, arg1, arg2) {
|
|
5107
|
+
const ret = makeMutClosure(arg0, arg1, 3747, __wbg_adapter_49);
|
|
4975
5108
|
return ret;
|
|
4976
5109
|
};
|
|
4977
5110
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|