@xmtp/wasm-bindings 1.2.0-dev.cae98b4 → 1.2.0-rc2
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 +183 -153
- package/dist/bindings_wasm.js +321 -245
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +149 -131
- package/dist/version.json +3 -3
- package/package.json +2 -2
package/dist/bindings_wasm.js
CHANGED
|
@@ -242,6 +242,35 @@ function takeFromExternrefTable0(idx) {
|
|
|
242
242
|
wasm.__externref_table_dealloc(idx);
|
|
243
243
|
return value;
|
|
244
244
|
}
|
|
245
|
+
/**
|
|
246
|
+
* @param {string} host
|
|
247
|
+
* @param {string} inbox_id
|
|
248
|
+
* @param {Identifier} account_identifier
|
|
249
|
+
* @param {string | null} [db_path]
|
|
250
|
+
* @param {Uint8Array | null} [encryption_key]
|
|
251
|
+
* @param {string | null} [device_sync_server_url]
|
|
252
|
+
* @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
|
|
253
|
+
* @param {LogOptions | null} [log_options]
|
|
254
|
+
* @returns {Promise<Client>}
|
|
255
|
+
*/
|
|
256
|
+
export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options) {
|
|
257
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
258
|
+
const len0 = WASM_VECTOR_LEN;
|
|
259
|
+
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
260
|
+
const len1 = WASM_VECTOR_LEN;
|
|
261
|
+
var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
262
|
+
var len2 = WASM_VECTOR_LEN;
|
|
263
|
+
var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
264
|
+
var len3 = WASM_VECTOR_LEN;
|
|
265
|
+
let ptr4 = 0;
|
|
266
|
+
if (!isLikeNone(log_options)) {
|
|
267
|
+
_assertClass(log_options, LogOptions);
|
|
268
|
+
ptr4 = log_options.__destroy_into_raw();
|
|
269
|
+
}
|
|
270
|
+
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);
|
|
271
|
+
return ret;
|
|
272
|
+
}
|
|
273
|
+
|
|
245
274
|
/**
|
|
246
275
|
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
247
276
|
* @returns {Uint8Array}
|
|
@@ -308,35 +337,6 @@ export function verifySignedWithPublicKey(signature_text, signature_bytes, publi
|
|
|
308
337
|
}
|
|
309
338
|
}
|
|
310
339
|
|
|
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
340
|
/**
|
|
341
341
|
* @param {string} host
|
|
342
342
|
* @param {Identifier} accountIdentifier
|
|
@@ -381,20 +381,20 @@ function __wbg_adapter_53(arg0, arg1) {
|
|
|
381
381
|
}
|
|
382
382
|
|
|
383
383
|
function __wbg_adapter_56(arg0, arg1, arg2) {
|
|
384
|
-
wasm.
|
|
384
|
+
wasm.closure4467_externref_shim(arg0, arg1, arg2);
|
|
385
385
|
}
|
|
386
386
|
|
|
387
387
|
function __wbg_adapter_59(arg0, arg1) {
|
|
388
388
|
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f45197f24caef5a(arg0, arg1);
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
function
|
|
392
|
-
const ret = wasm.
|
|
391
|
+
function __wbg_adapter_650(arg0, arg1, arg2, arg3, arg4) {
|
|
392
|
+
const ret = wasm.closure5474_externref_shim(arg0, arg1, arg2, arg3, arg4);
|
|
393
393
|
return ret !== 0;
|
|
394
394
|
}
|
|
395
395
|
|
|
396
|
-
function
|
|
397
|
-
wasm.
|
|
396
|
+
function __wbg_adapter_751(arg0, arg1, arg2, arg3) {
|
|
397
|
+
wasm.closure5473_externref_shim(arg0, arg1, arg2, arg3);
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
/**
|
|
@@ -444,12 +444,13 @@ export const DeliveryStatus = Object.freeze({
|
|
|
444
444
|
Failed: 2, "2": "Failed",
|
|
445
445
|
});
|
|
446
446
|
/**
|
|
447
|
-
* @enum {0 | 1 | 2}
|
|
447
|
+
* @enum {0 | 1 | 2 | 3}
|
|
448
448
|
*/
|
|
449
449
|
export const GroupMembershipState = Object.freeze({
|
|
450
450
|
Allowed: 0, "0": "Allowed",
|
|
451
451
|
Rejected: 1, "1": "Rejected",
|
|
452
452
|
Pending: 2, "2": "Pending",
|
|
453
|
+
Restored: 3, "3": "Restored",
|
|
453
454
|
});
|
|
454
455
|
/**
|
|
455
456
|
* @enum {0 | 1}
|
|
@@ -576,24 +577,112 @@ export class Client {
|
|
|
576
577
|
wasm.__wbg_client_free(ptr, 0);
|
|
577
578
|
}
|
|
578
579
|
/**
|
|
579
|
-
* @
|
|
580
|
-
* @returns {Promise<void>}
|
|
580
|
+
* @returns {Identifier}
|
|
581
581
|
*/
|
|
582
|
-
|
|
583
|
-
const
|
|
582
|
+
get accountIdentifier() {
|
|
583
|
+
const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
|
|
584
|
+
return ret;
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* @returns {string}
|
|
588
|
+
*/
|
|
589
|
+
get inboxId() {
|
|
590
|
+
let deferred1_0;
|
|
591
|
+
let deferred1_1;
|
|
592
|
+
try {
|
|
593
|
+
const ret = wasm.client_inboxId(this.__wbg_ptr);
|
|
594
|
+
deferred1_0 = ret[0];
|
|
595
|
+
deferred1_1 = ret[1];
|
|
596
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
597
|
+
} finally {
|
|
598
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* @returns {boolean}
|
|
603
|
+
*/
|
|
604
|
+
get isRegistered() {
|
|
605
|
+
const ret = wasm.client_isRegistered(this.__wbg_ptr);
|
|
606
|
+
return ret !== 0;
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* @returns {string}
|
|
610
|
+
*/
|
|
611
|
+
get installationId() {
|
|
612
|
+
let deferred1_0;
|
|
613
|
+
let deferred1_1;
|
|
614
|
+
try {
|
|
615
|
+
const ret = wasm.client_installationId(this.__wbg_ptr);
|
|
616
|
+
deferred1_0 = ret[0];
|
|
617
|
+
deferred1_1 = ret[1];
|
|
618
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
619
|
+
} finally {
|
|
620
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* @returns {Uint8Array}
|
|
625
|
+
*/
|
|
626
|
+
get installationIdBytes() {
|
|
627
|
+
const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
|
|
628
|
+
return ret;
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
* Output booleans should be zipped with the index of input identifiers
|
|
632
|
+
* @param {Identifier[]} account_identifiers
|
|
633
|
+
* @returns {Promise<any>}
|
|
634
|
+
*/
|
|
635
|
+
canMessage(account_identifiers) {
|
|
636
|
+
const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
584
637
|
const len0 = WASM_VECTOR_LEN;
|
|
585
|
-
const ret = wasm.
|
|
638
|
+
const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
|
|
586
639
|
return ret;
|
|
587
640
|
}
|
|
588
641
|
/**
|
|
589
|
-
* @
|
|
590
|
-
* @param {string} entity
|
|
591
|
-
* @returns {Promise<ConsentState>}
|
|
642
|
+
* @returns {Promise<void>}
|
|
592
643
|
*/
|
|
593
|
-
|
|
594
|
-
const
|
|
644
|
+
registerIdentity() {
|
|
645
|
+
const ret = wasm.client_registerIdentity(this.__wbg_ptr);
|
|
646
|
+
return ret;
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* @returns {Promise<void>}
|
|
650
|
+
*/
|
|
651
|
+
sendSyncRequest() {
|
|
652
|
+
const ret = wasm.client_sendSyncRequest(this.__wbg_ptr);
|
|
653
|
+
return ret;
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* @param {Identifier} identifier
|
|
657
|
+
* @returns {Promise<string | undefined>}
|
|
658
|
+
*/
|
|
659
|
+
findInboxIdByIdentifier(identifier) {
|
|
660
|
+
const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
|
|
661
|
+
return ret;
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* @param {string[]} inbox_ids
|
|
665
|
+
* @param {boolean} refresh_from_network
|
|
666
|
+
* @returns {Promise<InboxState[]>}
|
|
667
|
+
*/
|
|
668
|
+
inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
|
|
669
|
+
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
595
670
|
const len0 = WASM_VECTOR_LEN;
|
|
596
|
-
const ret = wasm.
|
|
671
|
+
const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
|
|
672
|
+
return ret;
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* @returns {Conversations}
|
|
676
|
+
*/
|
|
677
|
+
conversations() {
|
|
678
|
+
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
679
|
+
return Conversations.__wrap(ret);
|
|
680
|
+
}
|
|
681
|
+
/**
|
|
682
|
+
* @returns {Promise<number>}
|
|
683
|
+
*/
|
|
684
|
+
syncPreferences() {
|
|
685
|
+
const ret = wasm.client_syncPreferences(this.__wbg_ptr);
|
|
597
686
|
return ret;
|
|
598
687
|
}
|
|
599
688
|
/**
|
|
@@ -716,119 +805,24 @@ export class Client {
|
|
|
716
805
|
}
|
|
717
806
|
}
|
|
718
807
|
/**
|
|
719
|
-
* @
|
|
720
|
-
*/
|
|
721
|
-
get accountIdentifier() {
|
|
722
|
-
const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
|
|
723
|
-
return ret;
|
|
724
|
-
}
|
|
725
|
-
/**
|
|
726
|
-
* @returns {string}
|
|
727
|
-
*/
|
|
728
|
-
get inboxId() {
|
|
729
|
-
let deferred1_0;
|
|
730
|
-
let deferred1_1;
|
|
731
|
-
try {
|
|
732
|
-
const ret = wasm.client_inboxId(this.__wbg_ptr);
|
|
733
|
-
deferred1_0 = ret[0];
|
|
734
|
-
deferred1_1 = ret[1];
|
|
735
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
736
|
-
} finally {
|
|
737
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
/**
|
|
741
|
-
* @returns {boolean}
|
|
742
|
-
*/
|
|
743
|
-
get isRegistered() {
|
|
744
|
-
const ret = wasm.client_isRegistered(this.__wbg_ptr);
|
|
745
|
-
return ret !== 0;
|
|
746
|
-
}
|
|
747
|
-
/**
|
|
748
|
-
* @returns {string}
|
|
749
|
-
*/
|
|
750
|
-
get installationId() {
|
|
751
|
-
let deferred1_0;
|
|
752
|
-
let deferred1_1;
|
|
753
|
-
try {
|
|
754
|
-
const ret = wasm.client_installationId(this.__wbg_ptr);
|
|
755
|
-
deferred1_0 = ret[0];
|
|
756
|
-
deferred1_1 = ret[1];
|
|
757
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
758
|
-
} finally {
|
|
759
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
/**
|
|
763
|
-
* @returns {Uint8Array}
|
|
764
|
-
*/
|
|
765
|
-
get installationIdBytes() {
|
|
766
|
-
const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
|
|
767
|
-
return ret;
|
|
768
|
-
}
|
|
769
|
-
/**
|
|
770
|
-
* Output booleans should be zipped with the index of input identifiers
|
|
771
|
-
* @param {Identifier[]} account_identifiers
|
|
772
|
-
* @returns {Promise<any>}
|
|
773
|
-
*/
|
|
774
|
-
canMessage(account_identifiers) {
|
|
775
|
-
const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
776
|
-
const len0 = WASM_VECTOR_LEN;
|
|
777
|
-
const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
|
|
778
|
-
return ret;
|
|
779
|
-
}
|
|
780
|
-
/**
|
|
781
|
-
* @returns {Promise<void>}
|
|
782
|
-
*/
|
|
783
|
-
registerIdentity() {
|
|
784
|
-
const ret = wasm.client_registerIdentity(this.__wbg_ptr);
|
|
785
|
-
return ret;
|
|
786
|
-
}
|
|
787
|
-
/**
|
|
788
|
-
* @returns {Promise<void>}
|
|
789
|
-
*/
|
|
790
|
-
sendHistorySyncRequest() {
|
|
791
|
-
const ret = wasm.client_sendHistorySyncRequest(this.__wbg_ptr);
|
|
792
|
-
return ret;
|
|
793
|
-
}
|
|
794
|
-
/**
|
|
808
|
+
* @param {Consent[]} records
|
|
795
809
|
* @returns {Promise<void>}
|
|
796
810
|
*/
|
|
797
|
-
|
|
798
|
-
const
|
|
799
|
-
return ret;
|
|
800
|
-
}
|
|
801
|
-
/**
|
|
802
|
-
* @param {Identifier} identifier
|
|
803
|
-
* @returns {Promise<string | undefined>}
|
|
804
|
-
*/
|
|
805
|
-
findInboxIdByIdentifier(identifier) {
|
|
806
|
-
const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
|
|
807
|
-
return ret;
|
|
808
|
-
}
|
|
809
|
-
/**
|
|
810
|
-
* @param {string[]} inbox_ids
|
|
811
|
-
* @param {boolean} refresh_from_network
|
|
812
|
-
* @returns {Promise<InboxState[]>}
|
|
813
|
-
*/
|
|
814
|
-
inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
|
|
815
|
-
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
811
|
+
setConsentStates(records) {
|
|
812
|
+
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
816
813
|
const len0 = WASM_VECTOR_LEN;
|
|
817
|
-
const ret = wasm.
|
|
814
|
+
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
818
815
|
return ret;
|
|
819
816
|
}
|
|
820
817
|
/**
|
|
821
|
-
* @
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
825
|
-
return Conversations.__wrap(ret);
|
|
826
|
-
}
|
|
827
|
-
/**
|
|
828
|
-
* @returns {Promise<number>}
|
|
818
|
+
* @param {ConsentEntityType} entity_type
|
|
819
|
+
* @param {string} entity
|
|
820
|
+
* @returns {Promise<ConsentState>}
|
|
829
821
|
*/
|
|
830
|
-
|
|
831
|
-
const
|
|
822
|
+
getConsentState(entity_type, entity) {
|
|
823
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
824
|
+
const len0 = WASM_VECTOR_LEN;
|
|
825
|
+
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
832
826
|
return ret;
|
|
833
827
|
}
|
|
834
828
|
/**
|
|
@@ -1599,6 +1593,88 @@ export class Conversation {
|
|
|
1599
1593
|
}
|
|
1600
1594
|
return takeFromExternrefTable0(ret[0]);
|
|
1601
1595
|
}
|
|
1596
|
+
/**
|
|
1597
|
+
* @returns {Promise<any>}
|
|
1598
|
+
*/
|
|
1599
|
+
getDebugInfo() {
|
|
1600
|
+
const ret = wasm.conversation_getDebugInfo(this.__wbg_ptr);
|
|
1601
|
+
return ret;
|
|
1602
|
+
}
|
|
1603
|
+
/**
|
|
1604
|
+
* @returns {Promise<Conversation[]>}
|
|
1605
|
+
*/
|
|
1606
|
+
findDuplicateDms() {
|
|
1607
|
+
const ret = wasm.conversation_findDuplicateDms(this.__wbg_ptr);
|
|
1608
|
+
return ret;
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
const ConversationDebugInfoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1613
|
+
? { register: () => {}, unregister: () => {} }
|
|
1614
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_conversationdebuginfo_free(ptr >>> 0, 1));
|
|
1615
|
+
|
|
1616
|
+
export class ConversationDebugInfo {
|
|
1617
|
+
|
|
1618
|
+
__destroy_into_raw() {
|
|
1619
|
+
const ptr = this.__wbg_ptr;
|
|
1620
|
+
this.__wbg_ptr = 0;
|
|
1621
|
+
ConversationDebugInfoFinalization.unregister(this);
|
|
1622
|
+
return ptr;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
free() {
|
|
1626
|
+
const ptr = this.__destroy_into_raw();
|
|
1627
|
+
wasm.__wbg_conversationdebuginfo_free(ptr, 0);
|
|
1628
|
+
}
|
|
1629
|
+
/**
|
|
1630
|
+
* @returns {bigint}
|
|
1631
|
+
*/
|
|
1632
|
+
get epoch() {
|
|
1633
|
+
const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
|
|
1634
|
+
return BigInt.asUintN(64, ret);
|
|
1635
|
+
}
|
|
1636
|
+
/**
|
|
1637
|
+
* @param {bigint} arg0
|
|
1638
|
+
*/
|
|
1639
|
+
set epoch(arg0) {
|
|
1640
|
+
wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
|
|
1641
|
+
}
|
|
1642
|
+
/**
|
|
1643
|
+
* @returns {boolean}
|
|
1644
|
+
*/
|
|
1645
|
+
get maybeForked() {
|
|
1646
|
+
const ret = wasm.__wbg_get_conversationdebuginfo_maybeForked(this.__wbg_ptr);
|
|
1647
|
+
return ret !== 0;
|
|
1648
|
+
}
|
|
1649
|
+
/**
|
|
1650
|
+
* @param {boolean} arg0
|
|
1651
|
+
*/
|
|
1652
|
+
set maybeForked(arg0) {
|
|
1653
|
+
wasm.__wbg_set_conversationdebuginfo_maybeForked(this.__wbg_ptr, arg0);
|
|
1654
|
+
}
|
|
1655
|
+
/**
|
|
1656
|
+
* @returns {string}
|
|
1657
|
+
*/
|
|
1658
|
+
get forkDetails() {
|
|
1659
|
+
let deferred1_0;
|
|
1660
|
+
let deferred1_1;
|
|
1661
|
+
try {
|
|
1662
|
+
const ret = wasm.__wbg_get_conversationdebuginfo_forkDetails(this.__wbg_ptr);
|
|
1663
|
+
deferred1_0 = ret[0];
|
|
1664
|
+
deferred1_1 = ret[1];
|
|
1665
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1666
|
+
} finally {
|
|
1667
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
/**
|
|
1671
|
+
* @param {string} arg0
|
|
1672
|
+
*/
|
|
1673
|
+
set forkDetails(arg0) {
|
|
1674
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1675
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1676
|
+
wasm.__wbg_set_conversationdebuginfo_forkDetails(this.__wbg_ptr, ptr0, len0);
|
|
1677
|
+
}
|
|
1602
1678
|
}
|
|
1603
1679
|
|
|
1604
1680
|
const ConversationListItemFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1703,6 +1779,22 @@ export class Conversations {
|
|
|
1703
1779
|
const ptr = this.__destroy_into_raw();
|
|
1704
1780
|
wasm.__wbg_conversations_free(ptr, 0);
|
|
1705
1781
|
}
|
|
1782
|
+
/**
|
|
1783
|
+
* @param {CreateGroupOptions | null} [options]
|
|
1784
|
+
* @returns {Conversation}
|
|
1785
|
+
*/
|
|
1786
|
+
createGroupOptimistic(options) {
|
|
1787
|
+
let ptr0 = 0;
|
|
1788
|
+
if (!isLikeNone(options)) {
|
|
1789
|
+
_assertClass(options, CreateGroupOptions);
|
|
1790
|
+
ptr0 = options.__destroy_into_raw();
|
|
1791
|
+
}
|
|
1792
|
+
const ret = wasm.conversations_createGroupOptimistic(this.__wbg_ptr, ptr0);
|
|
1793
|
+
if (ret[2]) {
|
|
1794
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1795
|
+
}
|
|
1796
|
+
return Conversation.__wrap(ret[0]);
|
|
1797
|
+
}
|
|
1706
1798
|
/**
|
|
1707
1799
|
* @param {Identifier[]} account_identifiers
|
|
1708
1800
|
* @param {CreateGroupOptions | null} [options]
|
|
@@ -1822,48 +1914,23 @@ export class Conversations {
|
|
|
1822
1914
|
return ret;
|
|
1823
1915
|
}
|
|
1824
1916
|
/**
|
|
1825
|
-
* @
|
|
1826
|
-
* @returns {Array<any>}
|
|
1827
|
-
*/
|
|
1828
|
-
list(opts) {
|
|
1829
|
-
let ptr0 = 0;
|
|
1830
|
-
if (!isLikeNone(opts)) {
|
|
1831
|
-
_assertClass(opts, ListConversationsOptions);
|
|
1832
|
-
ptr0 = opts.__destroy_into_raw();
|
|
1833
|
-
}
|
|
1834
|
-
const ret = wasm.conversations_list(this.__wbg_ptr, ptr0);
|
|
1835
|
-
if (ret[2]) {
|
|
1836
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1837
|
-
}
|
|
1838
|
-
return takeFromExternrefTable0(ret[0]);
|
|
1839
|
-
}
|
|
1840
|
-
/**
|
|
1841
|
-
* @param {ListConversationsOptions | null} [opts]
|
|
1842
|
-
* @returns {Array<any>}
|
|
1917
|
+
* @returns {Promise<void>}
|
|
1843
1918
|
*/
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
_assertClass(opts, ListConversationsOptions);
|
|
1848
|
-
ptr0 = opts.__destroy_into_raw();
|
|
1849
|
-
}
|
|
1850
|
-
const ret = wasm.conversations_listGroups(this.__wbg_ptr, ptr0);
|
|
1851
|
-
if (ret[2]) {
|
|
1852
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1853
|
-
}
|
|
1854
|
-
return takeFromExternrefTable0(ret[0]);
|
|
1919
|
+
syncDeviceSync() {
|
|
1920
|
+
const ret = wasm.conversations_syncDeviceSync(this.__wbg_ptr);
|
|
1921
|
+
return ret;
|
|
1855
1922
|
}
|
|
1856
1923
|
/**
|
|
1857
1924
|
* @param {ListConversationsOptions | null} [opts]
|
|
1858
1925
|
* @returns {Array<any>}
|
|
1859
1926
|
*/
|
|
1860
|
-
|
|
1927
|
+
list(opts) {
|
|
1861
1928
|
let ptr0 = 0;
|
|
1862
1929
|
if (!isLikeNone(opts)) {
|
|
1863
1930
|
_assertClass(opts, ListConversationsOptions);
|
|
1864
1931
|
ptr0 = opts.__destroy_into_raw();
|
|
1865
1932
|
}
|
|
1866
|
-
const ret = wasm.
|
|
1933
|
+
const ret = wasm.conversations_list(this.__wbg_ptr, ptr0);
|
|
1867
1934
|
if (ret[2]) {
|
|
1868
1935
|
throw takeFromExternrefTable0(ret[1]);
|
|
1869
1936
|
}
|
|
@@ -1891,35 +1958,16 @@ export class Conversations {
|
|
|
1891
1958
|
}
|
|
1892
1959
|
return StreamCloser.__wrap(ret[0]);
|
|
1893
1960
|
}
|
|
1894
|
-
/**
|
|
1895
|
-
* @param {any} callback
|
|
1896
|
-
* @returns {StreamCloser}
|
|
1897
|
-
*/
|
|
1898
|
-
streamGroups(callback) {
|
|
1899
|
-
const ret = wasm.conversations_streamGroups(this.__wbg_ptr, callback);
|
|
1900
|
-
if (ret[2]) {
|
|
1901
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1902
|
-
}
|
|
1903
|
-
return StreamCloser.__wrap(ret[0]);
|
|
1904
|
-
}
|
|
1905
|
-
/**
|
|
1906
|
-
* @param {any} callback
|
|
1907
|
-
* @returns {StreamCloser}
|
|
1908
|
-
*/
|
|
1909
|
-
streamDms(callback) {
|
|
1910
|
-
const ret = wasm.conversations_streamDms(this.__wbg_ptr, callback);
|
|
1911
|
-
if (ret[2]) {
|
|
1912
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1913
|
-
}
|
|
1914
|
-
return StreamCloser.__wrap(ret[0]);
|
|
1915
|
-
}
|
|
1916
1961
|
/**
|
|
1917
1962
|
* @param {any} callback
|
|
1918
1963
|
* @param {ConversationType | null} [conversation_type]
|
|
1964
|
+
* @param {any[] | null} [consent_states]
|
|
1919
1965
|
* @returns {StreamCloser}
|
|
1920
1966
|
*/
|
|
1921
|
-
streamAllMessages(callback, conversation_type) {
|
|
1922
|
-
|
|
1967
|
+
streamAllMessages(callback, conversation_type, consent_states) {
|
|
1968
|
+
var ptr0 = isLikeNone(consent_states) ? 0 : passArrayJsValueToWasm0(consent_states, wasm.__wbindgen_malloc);
|
|
1969
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1970
|
+
const ret = wasm.conversations_streamAllMessages(this.__wbg_ptr, callback, isLikeNone(conversation_type) ? 3 : conversation_type, ptr0, len0);
|
|
1923
1971
|
if (ret[2]) {
|
|
1924
1972
|
throw takeFromExternrefTable0(ret[1]);
|
|
1925
1973
|
}
|
|
@@ -2539,20 +2587,20 @@ export class HmacKey {
|
|
|
2539
2587
|
set key(arg0) {
|
|
2540
2588
|
const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
2541
2589
|
const len0 = WASM_VECTOR_LEN;
|
|
2542
|
-
wasm.
|
|
2590
|
+
wasm.__wbg_set_conversationdebuginfo_forkDetails(this.__wbg_ptr, ptr0, len0);
|
|
2543
2591
|
}
|
|
2544
2592
|
/**
|
|
2545
2593
|
* @returns {bigint}
|
|
2546
2594
|
*/
|
|
2547
2595
|
get epoch() {
|
|
2548
|
-
const ret = wasm.
|
|
2596
|
+
const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
|
|
2549
2597
|
return ret;
|
|
2550
2598
|
}
|
|
2551
2599
|
/**
|
|
2552
2600
|
* @param {bigint} arg0
|
|
2553
2601
|
*/
|
|
2554
2602
|
set epoch(arg0) {
|
|
2555
|
-
wasm.
|
|
2603
|
+
wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
|
|
2556
2604
|
}
|
|
2557
2605
|
}
|
|
2558
2606
|
|
|
@@ -2602,7 +2650,7 @@ export class InboxState {
|
|
|
2602
2650
|
set inboxId(arg0) {
|
|
2603
2651
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2604
2652
|
const len0 = WASM_VECTOR_LEN;
|
|
2605
|
-
wasm.
|
|
2653
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
2606
2654
|
}
|
|
2607
2655
|
/**
|
|
2608
2656
|
* @returns {Identifier}
|
|
@@ -3040,6 +3088,19 @@ export class ListConversationsOptions {
|
|
|
3040
3088
|
var len0 = WASM_VECTOR_LEN;
|
|
3041
3089
|
wasm.__wbg_set_listconversationsoptions_consentStates(this.__wbg_ptr, ptr0, len0);
|
|
3042
3090
|
}
|
|
3091
|
+
/**
|
|
3092
|
+
* @returns {ConversationType | undefined}
|
|
3093
|
+
*/
|
|
3094
|
+
get conversationType() {
|
|
3095
|
+
const ret = wasm.__wbg_get_listconversationsoptions_conversationType(this.__wbg_ptr);
|
|
3096
|
+
return ret === 3 ? undefined : ret;
|
|
3097
|
+
}
|
|
3098
|
+
/**
|
|
3099
|
+
* @param {ConversationType | null} [arg0]
|
|
3100
|
+
*/
|
|
3101
|
+
set conversationType(arg0) {
|
|
3102
|
+
wasm.__wbg_set_listconversationsoptions_conversationType(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0);
|
|
3103
|
+
}
|
|
3043
3104
|
/**
|
|
3044
3105
|
* @returns {bigint | undefined}
|
|
3045
3106
|
*/
|
|
@@ -3067,17 +3128,17 @@ export class ListConversationsOptions {
|
|
|
3067
3128
|
wasm.__wbg_set_listconversationsoptions_createdBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
3068
3129
|
}
|
|
3069
3130
|
/**
|
|
3070
|
-
* @returns {boolean}
|
|
3131
|
+
* @returns {boolean | undefined}
|
|
3071
3132
|
*/
|
|
3072
3133
|
get includeDuplicateDms() {
|
|
3073
3134
|
const ret = wasm.__wbg_get_listconversationsoptions_includeDuplicateDms(this.__wbg_ptr);
|
|
3074
|
-
return ret !== 0;
|
|
3135
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3075
3136
|
}
|
|
3076
3137
|
/**
|
|
3077
|
-
* @param {boolean} arg0
|
|
3138
|
+
* @param {boolean | null} [arg0]
|
|
3078
3139
|
*/
|
|
3079
3140
|
set includeDuplicateDms(arg0) {
|
|
3080
|
-
wasm.__wbg_set_listconversationsoptions_includeDuplicateDms(this.__wbg_ptr, arg0);
|
|
3141
|
+
wasm.__wbg_set_listconversationsoptions_includeDuplicateDms(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
|
|
3081
3142
|
}
|
|
3082
3143
|
/**
|
|
3083
3144
|
* @returns {bigint | undefined}
|
|
@@ -3093,16 +3154,17 @@ export class ListConversationsOptions {
|
|
|
3093
3154
|
wasm.__wbg_set_listconversationsoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
3094
3155
|
}
|
|
3095
3156
|
/**
|
|
3096
|
-
* @param {any[] | null
|
|
3097
|
-
* @param {
|
|
3098
|
-
* @param {bigint | null
|
|
3099
|
-
* @param {
|
|
3157
|
+
* @param {any[] | null} [consent_states]
|
|
3158
|
+
* @param {ConversationType | null} [conversation_type]
|
|
3159
|
+
* @param {bigint | null} [created_after_ns]
|
|
3160
|
+
* @param {bigint | null} [created_before_ns]
|
|
3161
|
+
* @param {boolean | null} [include_duplicate_dms]
|
|
3100
3162
|
* @param {bigint | null} [limit]
|
|
3101
3163
|
*/
|
|
3102
|
-
constructor(consent_states, created_after_ns, created_before_ns, include_duplicate_dms, limit) {
|
|
3164
|
+
constructor(consent_states, conversation_type, created_after_ns, created_before_ns, include_duplicate_dms, limit) {
|
|
3103
3165
|
var ptr0 = isLikeNone(consent_states) ? 0 : passArrayJsValueToWasm0(consent_states, wasm.__wbindgen_malloc);
|
|
3104
3166
|
var len0 = WASM_VECTOR_LEN;
|
|
3105
|
-
const ret = wasm.listconversationsoptions_new(ptr0, len0, !isLikeNone(created_after_ns), isLikeNone(created_after_ns) ? BigInt(0) : created_after_ns, !isLikeNone(created_before_ns), isLikeNone(created_before_ns) ? BigInt(0) : created_before_ns, include_duplicate_dms, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit);
|
|
3167
|
+
const ret = wasm.listconversationsoptions_new(ptr0, len0, isLikeNone(conversation_type) ? 3 : conversation_type, !isLikeNone(created_after_ns), isLikeNone(created_after_ns) ? BigInt(0) : created_after_ns, !isLikeNone(created_before_ns), isLikeNone(created_before_ns) ? BigInt(0) : created_before_ns, isLikeNone(include_duplicate_dms) ? 0xFFFFFF : include_duplicate_dms ? 1 : 0, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit);
|
|
3106
3168
|
this.__wbg_ptr = ret >>> 0;
|
|
3107
3169
|
ListConversationsOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
3108
3170
|
return this;
|
|
@@ -3211,6 +3273,19 @@ export class ListMessagesOptions {
|
|
|
3211
3273
|
set direction(arg0) {
|
|
3212
3274
|
wasm.__wbg_set_listmessagesoptions_direction(this.__wbg_ptr, isLikeNone(arg0) ? 2 : arg0);
|
|
3213
3275
|
}
|
|
3276
|
+
/**
|
|
3277
|
+
* @returns {GroupMessageKind | undefined}
|
|
3278
|
+
*/
|
|
3279
|
+
get kind() {
|
|
3280
|
+
const ret = wasm.__wbg_get_listmessagesoptions_kind(this.__wbg_ptr);
|
|
3281
|
+
return ret === 2 ? undefined : ret;
|
|
3282
|
+
}
|
|
3283
|
+
/**
|
|
3284
|
+
* @param {GroupMessageKind | null} [arg0]
|
|
3285
|
+
*/
|
|
3286
|
+
set kind(arg0) {
|
|
3287
|
+
wasm.__wbg_set_listmessagesoptions_kind(this.__wbg_ptr, isLikeNone(arg0) ? 2 : arg0);
|
|
3288
|
+
}
|
|
3214
3289
|
/**
|
|
3215
3290
|
* @param {bigint | null} [sent_before_ns]
|
|
3216
3291
|
* @param {bigint | null} [sent_after_ns]
|
|
@@ -3218,11 +3293,12 @@ export class ListMessagesOptions {
|
|
|
3218
3293
|
* @param {DeliveryStatus | null} [delivery_status]
|
|
3219
3294
|
* @param {SortDirection | null} [direction]
|
|
3220
3295
|
* @param {any[] | null} [content_types]
|
|
3296
|
+
* @param {GroupMessageKind | null} [kind]
|
|
3221
3297
|
*/
|
|
3222
|
-
constructor(sent_before_ns, sent_after_ns, limit, delivery_status, direction, content_types) {
|
|
3298
|
+
constructor(sent_before_ns, sent_after_ns, limit, delivery_status, direction, content_types, kind) {
|
|
3223
3299
|
var ptr0 = isLikeNone(content_types) ? 0 : passArrayJsValueToWasm0(content_types, wasm.__wbindgen_malloc);
|
|
3224
3300
|
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);
|
|
3301
|
+
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
3302
|
this.__wbg_ptr = ret >>> 0;
|
|
3227
3303
|
ListMessagesOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
3228
3304
|
return this;
|
|
@@ -3365,14 +3441,14 @@ export class Message {
|
|
|
3365
3441
|
* @returns {bigint}
|
|
3366
3442
|
*/
|
|
3367
3443
|
get sentAtNs() {
|
|
3368
|
-
const ret = wasm.
|
|
3444
|
+
const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
|
|
3369
3445
|
return ret;
|
|
3370
3446
|
}
|
|
3371
3447
|
/**
|
|
3372
3448
|
* @param {bigint} arg0
|
|
3373
3449
|
*/
|
|
3374
3450
|
set sentAtNs(arg0) {
|
|
3375
|
-
wasm.
|
|
3451
|
+
wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
|
|
3376
3452
|
}
|
|
3377
3453
|
/**
|
|
3378
3454
|
* @returns {string}
|
|
@@ -3515,14 +3591,14 @@ export class MessageDisappearingSettings {
|
|
|
3515
3591
|
* @returns {bigint}
|
|
3516
3592
|
*/
|
|
3517
3593
|
get fromNs() {
|
|
3518
|
-
const ret = wasm.
|
|
3594
|
+
const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
|
|
3519
3595
|
return ret;
|
|
3520
3596
|
}
|
|
3521
3597
|
/**
|
|
3522
3598
|
* @param {bigint} arg0
|
|
3523
3599
|
*/
|
|
3524
3600
|
set fromNs(arg0) {
|
|
3525
|
-
wasm.
|
|
3601
|
+
wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
|
|
3526
3602
|
}
|
|
3527
3603
|
/**
|
|
3528
3604
|
* @returns {bigint}
|
|
@@ -4017,7 +4093,7 @@ export class Reaction {
|
|
|
4017
4093
|
set reference(arg0) {
|
|
4018
4094
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4019
4095
|
const len0 = WASM_VECTOR_LEN;
|
|
4020
|
-
wasm.
|
|
4096
|
+
wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
|
|
4021
4097
|
}
|
|
4022
4098
|
/**
|
|
4023
4099
|
* @returns {string}
|
|
@@ -4040,7 +4116,7 @@ export class Reaction {
|
|
|
4040
4116
|
set referenceInboxId(arg0) {
|
|
4041
4117
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4042
4118
|
const len0 = WASM_VECTOR_LEN;
|
|
4043
|
-
wasm.
|
|
4119
|
+
wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
|
|
4044
4120
|
}
|
|
4045
4121
|
/**
|
|
4046
4122
|
* @returns {ReactionAction}
|
|
@@ -4584,7 +4660,7 @@ function __wbg_get_imports() {
|
|
|
4584
4660
|
const a = state0.a;
|
|
4585
4661
|
state0.a = 0;
|
|
4586
4662
|
try {
|
|
4587
|
-
return
|
|
4663
|
+
return __wbg_adapter_650(a, state0.b, arg0, arg1, arg2);
|
|
4588
4664
|
} finally {
|
|
4589
4665
|
state0.a = a;
|
|
4590
4666
|
}
|
|
@@ -4614,7 +4690,7 @@ function __wbg_get_imports() {
|
|
|
4614
4690
|
const a = state0.a;
|
|
4615
4691
|
state0.a = 0;
|
|
4616
4692
|
try {
|
|
4617
|
-
return
|
|
4693
|
+
return __wbg_adapter_650(a, state0.b, arg0, arg1, arg2);
|
|
4618
4694
|
} finally {
|
|
4619
4695
|
state0.a = a;
|
|
4620
4696
|
}
|
|
@@ -4939,7 +5015,7 @@ function __wbg_get_imports() {
|
|
|
4939
5015
|
const a = state0.a;
|
|
4940
5016
|
state0.a = 0;
|
|
4941
5017
|
try {
|
|
4942
|
-
return
|
|
5018
|
+
return __wbg_adapter_751(a, state0.b, arg0, arg1);
|
|
4943
5019
|
} finally {
|
|
4944
5020
|
state0.a = a;
|
|
4945
5021
|
}
|
|
@@ -5046,19 +5122,19 @@ function __wbg_get_imports() {
|
|
|
5046
5122
|
const ret = arg0.now();
|
|
5047
5123
|
return ret;
|
|
5048
5124
|
};
|
|
5049
|
-
imports.wbg.
|
|
5125
|
+
imports.wbg.__wbg_onconsentupdate_54b67b0fd155194a = function(arg0, arg1) {
|
|
5050
5126
|
arg0.on_consent_update(arg1);
|
|
5051
5127
|
};
|
|
5052
|
-
imports.wbg.
|
|
5128
|
+
imports.wbg.__wbg_onconversation_9e5e519465264aba = function(arg0, arg1) {
|
|
5053
5129
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
5054
5130
|
};
|
|
5055
|
-
imports.wbg.
|
|
5131
|
+
imports.wbg.__wbg_onerror_f6bdb41a50104955 = function(arg0, arg1) {
|
|
5056
5132
|
arg0.on_error(arg1);
|
|
5057
5133
|
};
|
|
5058
|
-
imports.wbg.
|
|
5134
|
+
imports.wbg.__wbg_onmessage_048799d39150b7df = function(arg0, arg1) {
|
|
5059
5135
|
arg0.on_message(Message.__wrap(arg1));
|
|
5060
5136
|
};
|
|
5061
|
-
imports.wbg.
|
|
5137
|
+
imports.wbg.__wbg_onuserpreferenceupdate_198647719323549b = function(arg0, arg1, arg2) {
|
|
5062
5138
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
5063
5139
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
5064
5140
|
arg0.on_user_preference_update(v0);
|
|
@@ -5354,20 +5430,20 @@ function __wbg_get_imports() {
|
|
|
5354
5430
|
const ret = false;
|
|
5355
5431
|
return ret;
|
|
5356
5432
|
};
|
|
5357
|
-
imports.wbg.
|
|
5358
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5433
|
+
imports.wbg.__wbindgen_closure_wrapper17242 = function(arg0, arg1, arg2) {
|
|
5434
|
+
const ret = makeMutClosure(arg0, arg1, 4101, __wbg_adapter_50);
|
|
5359
5435
|
return ret;
|
|
5360
5436
|
};
|
|
5361
|
-
imports.wbg.
|
|
5362
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5437
|
+
imports.wbg.__wbindgen_closure_wrapper17286 = function(arg0, arg1, arg2) {
|
|
5438
|
+
const ret = makeMutClosure(arg0, arg1, 4111, __wbg_adapter_53);
|
|
5363
5439
|
return ret;
|
|
5364
5440
|
};
|
|
5365
|
-
imports.wbg.
|
|
5366
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5441
|
+
imports.wbg.__wbindgen_closure_wrapper20508 = function(arg0, arg1, arg2) {
|
|
5442
|
+
const ret = makeMutClosure(arg0, arg1, 4468, __wbg_adapter_56);
|
|
5367
5443
|
return ret;
|
|
5368
5444
|
};
|
|
5369
|
-
imports.wbg.
|
|
5370
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5445
|
+
imports.wbg.__wbindgen_closure_wrapper20629 = function(arg0, arg1, arg2) {
|
|
5446
|
+
const ret = makeMutClosure(arg0, arg1, 4482, __wbg_adapter_59);
|
|
5371
5447
|
return ret;
|
|
5372
5448
|
};
|
|
5373
5449
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|