@xmtp/wasm-bindings 1.3.3 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bindings_wasm.d.ts +100 -96
- package/dist/bindings_wasm.js +344 -324
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +79 -77
- package/dist/version.json +3 -3
- package/package.json +1 -1
package/dist/bindings_wasm.js
CHANGED
|
@@ -216,6 +216,45 @@ function debugString(val) {
|
|
|
216
216
|
return className;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
+
function _assertClass(instance, klass) {
|
|
220
|
+
if (!(instance instanceof klass)) {
|
|
221
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* @param {string} host
|
|
226
|
+
* @param {string} inbox_id
|
|
227
|
+
* @param {Identifier} account_identifier
|
|
228
|
+
* @param {string | null} [db_path]
|
|
229
|
+
* @param {Uint8Array | null} [encryption_key]
|
|
230
|
+
* @param {string | null} [device_sync_server_url]
|
|
231
|
+
* @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
|
|
232
|
+
* @param {LogOptions | null} [log_options]
|
|
233
|
+
* @param {boolean | null} [allow_offline]
|
|
234
|
+
* @param {boolean | null} [disable_events]
|
|
235
|
+
* @param {string | null} [app_version]
|
|
236
|
+
* @returns {Promise<Client>}
|
|
237
|
+
*/
|
|
238
|
+
export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline, disable_events, app_version) {
|
|
239
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
240
|
+
const len0 = WASM_VECTOR_LEN;
|
|
241
|
+
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
242
|
+
const len1 = WASM_VECTOR_LEN;
|
|
243
|
+
var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
244
|
+
var len2 = WASM_VECTOR_LEN;
|
|
245
|
+
var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
246
|
+
var len3 = WASM_VECTOR_LEN;
|
|
247
|
+
let ptr4 = 0;
|
|
248
|
+
if (!isLikeNone(log_options)) {
|
|
249
|
+
_assertClass(log_options, LogOptions);
|
|
250
|
+
ptr4 = log_options.__destroy_into_raw();
|
|
251
|
+
}
|
|
252
|
+
var ptr5 = isLikeNone(app_version) ? 0 : passStringToWasm0(app_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
253
|
+
var len5 = WASM_VECTOR_LEN;
|
|
254
|
+
const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, isLikeNone(device_sync_worker_mode) ? 3 : ((__wbindgen_enum_DeviceSyncWorkerMode.indexOf(device_sync_worker_mode) + 1 || 3) - 1), ptr4, isLikeNone(allow_offline) ? 0xFFFFFF : allow_offline ? 1 : 0, isLikeNone(disable_events) ? 0xFFFFFF : disable_events ? 1 : 0, ptr5, len5);
|
|
255
|
+
return ret;
|
|
256
|
+
}
|
|
257
|
+
|
|
219
258
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
220
259
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
221
260
|
for (let i = 0; i < array.length; i++) {
|
|
@@ -231,11 +270,30 @@ function takeFromExternrefTable0(idx) {
|
|
|
231
270
|
wasm.__externref_table_dealloc(idx);
|
|
232
271
|
return value;
|
|
233
272
|
}
|
|
273
|
+
/**
|
|
274
|
+
* @param {Reaction} reaction
|
|
275
|
+
* @returns {Uint8Array}
|
|
276
|
+
*/
|
|
277
|
+
export function encodeReaction(reaction) {
|
|
278
|
+
_assertClass(reaction, Reaction);
|
|
279
|
+
var ptr0 = reaction.__destroy_into_raw();
|
|
280
|
+
const ret = wasm.encodeReaction(ptr0);
|
|
281
|
+
if (ret[2]) {
|
|
282
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
283
|
+
}
|
|
284
|
+
return takeFromExternrefTable0(ret[0]);
|
|
285
|
+
}
|
|
234
286
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
287
|
+
/**
|
|
288
|
+
* @param {Uint8Array} bytes
|
|
289
|
+
* @returns {Reaction}
|
|
290
|
+
*/
|
|
291
|
+
export function decodeReaction(bytes) {
|
|
292
|
+
const ret = wasm.decodeReaction(bytes);
|
|
293
|
+
if (ret[2]) {
|
|
294
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
238
295
|
}
|
|
296
|
+
return Reaction.__wrap(ret[0]);
|
|
239
297
|
}
|
|
240
298
|
|
|
241
299
|
function passArray8ToWasm0(arg, malloc) {
|
|
@@ -244,41 +302,6 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
244
302
|
WASM_VECTOR_LEN = arg.length;
|
|
245
303
|
return ptr;
|
|
246
304
|
}
|
|
247
|
-
/**
|
|
248
|
-
* @param {string} host
|
|
249
|
-
* @param {Identifier} accountIdentifier
|
|
250
|
-
* @returns {Promise<string | undefined>}
|
|
251
|
-
*/
|
|
252
|
-
export function getInboxIdForIdentifier(host, accountIdentifier) {
|
|
253
|
-
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
254
|
-
const len0 = WASM_VECTOR_LEN;
|
|
255
|
-
const ret = wasm.getInboxIdForIdentifier(ptr0, len0, accountIdentifier);
|
|
256
|
-
return ret;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* @param {Identifier} accountIdentifier
|
|
261
|
-
* @returns {string}
|
|
262
|
-
*/
|
|
263
|
-
export function generateInboxId(accountIdentifier) {
|
|
264
|
-
let deferred2_0;
|
|
265
|
-
let deferred2_1;
|
|
266
|
-
try {
|
|
267
|
-
const ret = wasm.generateInboxId(accountIdentifier);
|
|
268
|
-
var ptr1 = ret[0];
|
|
269
|
-
var len1 = ret[1];
|
|
270
|
-
if (ret[3]) {
|
|
271
|
-
ptr1 = 0; len1 = 0;
|
|
272
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
273
|
-
}
|
|
274
|
-
deferred2_0 = ptr1;
|
|
275
|
-
deferred2_1 = len1;
|
|
276
|
-
return getStringFromWasm0(ptr1, len1);
|
|
277
|
-
} finally {
|
|
278
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
305
|
/**
|
|
283
306
|
* @param {string} host
|
|
284
307
|
* @param {string[]} inbox_ids
|
|
@@ -338,37 +361,6 @@ export function applySignatureRequest(host, signature_request) {
|
|
|
338
361
|
return ret;
|
|
339
362
|
}
|
|
340
363
|
|
|
341
|
-
/**
|
|
342
|
-
* @param {string} host
|
|
343
|
-
* @param {string} inbox_id
|
|
344
|
-
* @param {Identifier} account_identifier
|
|
345
|
-
* @param {string | null} [db_path]
|
|
346
|
-
* @param {Uint8Array | null} [encryption_key]
|
|
347
|
-
* @param {string | null} [device_sync_server_url]
|
|
348
|
-
* @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
|
|
349
|
-
* @param {LogOptions | null} [log_options]
|
|
350
|
-
* @param {boolean | null} [allow_offline]
|
|
351
|
-
* @param {boolean | null} [disable_events]
|
|
352
|
-
* @returns {Promise<Client>}
|
|
353
|
-
*/
|
|
354
|
-
export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline, disable_events) {
|
|
355
|
-
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
356
|
-
const len0 = WASM_VECTOR_LEN;
|
|
357
|
-
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
358
|
-
const len1 = WASM_VECTOR_LEN;
|
|
359
|
-
var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
360
|
-
var len2 = WASM_VECTOR_LEN;
|
|
361
|
-
var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
362
|
-
var len3 = WASM_VECTOR_LEN;
|
|
363
|
-
let ptr4 = 0;
|
|
364
|
-
if (!isLikeNone(log_options)) {
|
|
365
|
-
_assertClass(log_options, LogOptions);
|
|
366
|
-
ptr4 = log_options.__destroy_into_raw();
|
|
367
|
-
}
|
|
368
|
-
const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, isLikeNone(device_sync_worker_mode) ? 3 : ((__wbindgen_enum_DeviceSyncWorkerMode.indexOf(device_sync_worker_mode) + 1 || 3) - 1), ptr4, isLikeNone(allow_offline) ? 0xFFFFFF : allow_offline ? 1 : 0, isLikeNone(disable_events) ? 0xFFFFFF : disable_events ? 1 : 0);
|
|
369
|
-
return ret;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
364
|
/**
|
|
373
365
|
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
374
366
|
* @returns {Uint8Array}
|
|
@@ -396,29 +388,38 @@ export function decodeMultiRemoteAttachment(bytes) {
|
|
|
396
388
|
}
|
|
397
389
|
|
|
398
390
|
/**
|
|
399
|
-
* @param {
|
|
400
|
-
* @
|
|
391
|
+
* @param {string} host
|
|
392
|
+
* @param {Identifier} accountIdentifier
|
|
393
|
+
* @returns {Promise<string | undefined>}
|
|
401
394
|
*/
|
|
402
|
-
export function
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
const ret = wasm.
|
|
406
|
-
|
|
407
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
408
|
-
}
|
|
409
|
-
return takeFromExternrefTable0(ret[0]);
|
|
395
|
+
export function getInboxIdForIdentifier(host, accountIdentifier) {
|
|
396
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
397
|
+
const len0 = WASM_VECTOR_LEN;
|
|
398
|
+
const ret = wasm.getInboxIdForIdentifier(ptr0, len0, accountIdentifier);
|
|
399
|
+
return ret;
|
|
410
400
|
}
|
|
411
401
|
|
|
412
402
|
/**
|
|
413
|
-
* @param {
|
|
414
|
-
* @returns {
|
|
403
|
+
* @param {Identifier} accountIdentifier
|
|
404
|
+
* @returns {string}
|
|
415
405
|
*/
|
|
416
|
-
export function
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
406
|
+
export function generateInboxId(accountIdentifier) {
|
|
407
|
+
let deferred2_0;
|
|
408
|
+
let deferred2_1;
|
|
409
|
+
try {
|
|
410
|
+
const ret = wasm.generateInboxId(accountIdentifier);
|
|
411
|
+
var ptr1 = ret[0];
|
|
412
|
+
var len1 = ret[1];
|
|
413
|
+
if (ret[3]) {
|
|
414
|
+
ptr1 = 0; len1 = 0;
|
|
415
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
416
|
+
}
|
|
417
|
+
deferred2_0 = ptr1;
|
|
418
|
+
deferred2_1 = len1;
|
|
419
|
+
return getStringFromWasm0(ptr1, len1);
|
|
420
|
+
} finally {
|
|
421
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
420
422
|
}
|
|
421
|
-
return Reaction.__wrap(ret[0]);
|
|
422
423
|
}
|
|
423
424
|
|
|
424
425
|
/**
|
|
@@ -433,19 +434,19 @@ export function task_worker_entry_point(ptr) {
|
|
|
433
434
|
}
|
|
434
435
|
|
|
435
436
|
function __wbg_adapter_50(arg0, arg1) {
|
|
436
|
-
wasm.
|
|
437
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h469745bf9f974f96(arg0, arg1);
|
|
437
438
|
}
|
|
438
439
|
|
|
439
440
|
function __wbg_adapter_53(arg0, arg1) {
|
|
440
|
-
wasm.
|
|
441
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc5db0b12f1fa1c9f(arg0, arg1);
|
|
441
442
|
}
|
|
442
443
|
|
|
443
444
|
function __wbg_adapter_56(arg0, arg1, arg2) {
|
|
444
|
-
wasm.
|
|
445
|
+
wasm.closure4980_externref_shim(arg0, arg1, arg2);
|
|
445
446
|
}
|
|
446
447
|
|
|
447
|
-
function
|
|
448
|
-
wasm.
|
|
448
|
+
function __wbg_adapter_785(arg0, arg1, arg2, arg3) {
|
|
449
|
+
wasm.closure5924_externref_shim(arg0, arg1, arg2, arg3);
|
|
449
450
|
}
|
|
450
451
|
|
|
451
452
|
/**
|
|
@@ -703,50 +704,224 @@ export class ApiStats {
|
|
|
703
704
|
return BigInt.asUintN(64, ret);
|
|
704
705
|
}
|
|
705
706
|
/**
|
|
706
|
-
* @param {bigint} arg0
|
|
707
|
+
* @param {bigint} arg0
|
|
708
|
+
*/
|
|
709
|
+
set subscribe_messages(arg0) {
|
|
710
|
+
wasm.__wbg_set_apistats_subscribe_messages(this.__wbg_ptr, arg0);
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* @returns {bigint}
|
|
714
|
+
*/
|
|
715
|
+
get subscribe_welcomes() {
|
|
716
|
+
const ret = wasm.__wbg_get_apistats_subscribe_welcomes(this.__wbg_ptr);
|
|
717
|
+
return BigInt.asUintN(64, ret);
|
|
718
|
+
}
|
|
719
|
+
/**
|
|
720
|
+
* @param {bigint} arg0
|
|
721
|
+
*/
|
|
722
|
+
set subscribe_welcomes(arg0) {
|
|
723
|
+
wasm.__wbg_set_apistats_subscribe_welcomes(this.__wbg_ptr, arg0);
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
728
|
+
? { register: () => {}, unregister: () => {} }
|
|
729
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_client_free(ptr >>> 0, 1));
|
|
730
|
+
|
|
731
|
+
export class Client {
|
|
732
|
+
|
|
733
|
+
static __wrap(ptr) {
|
|
734
|
+
ptr = ptr >>> 0;
|
|
735
|
+
const obj = Object.create(Client.prototype);
|
|
736
|
+
obj.__wbg_ptr = ptr;
|
|
737
|
+
ClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
738
|
+
return obj;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
__destroy_into_raw() {
|
|
742
|
+
const ptr = this.__wbg_ptr;
|
|
743
|
+
this.__wbg_ptr = 0;
|
|
744
|
+
ClientFinalization.unregister(this);
|
|
745
|
+
return ptr;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
free() {
|
|
749
|
+
const ptr = this.__destroy_into_raw();
|
|
750
|
+
wasm.__wbg_client_free(ptr, 0);
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* @returns {Identifier}
|
|
754
|
+
*/
|
|
755
|
+
get accountIdentifier() {
|
|
756
|
+
const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
|
|
757
|
+
return ret;
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
* @returns {string}
|
|
761
|
+
*/
|
|
762
|
+
get inboxId() {
|
|
763
|
+
let deferred1_0;
|
|
764
|
+
let deferred1_1;
|
|
765
|
+
try {
|
|
766
|
+
const ret = wasm.client_inboxId(this.__wbg_ptr);
|
|
767
|
+
deferred1_0 = ret[0];
|
|
768
|
+
deferred1_1 = ret[1];
|
|
769
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
770
|
+
} finally {
|
|
771
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* @returns {boolean}
|
|
776
|
+
*/
|
|
777
|
+
get isRegistered() {
|
|
778
|
+
const ret = wasm.client_isRegistered(this.__wbg_ptr);
|
|
779
|
+
return ret !== 0;
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* @returns {string}
|
|
783
|
+
*/
|
|
784
|
+
get installationId() {
|
|
785
|
+
let deferred1_0;
|
|
786
|
+
let deferred1_1;
|
|
787
|
+
try {
|
|
788
|
+
const ret = wasm.client_installationId(this.__wbg_ptr);
|
|
789
|
+
deferred1_0 = ret[0];
|
|
790
|
+
deferred1_1 = ret[1];
|
|
791
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
792
|
+
} finally {
|
|
793
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* @returns {Uint8Array}
|
|
798
|
+
*/
|
|
799
|
+
get installationIdBytes() {
|
|
800
|
+
const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
|
|
801
|
+
return ret;
|
|
802
|
+
}
|
|
803
|
+
/**
|
|
804
|
+
* @returns {string}
|
|
805
|
+
*/
|
|
806
|
+
get appVersion() {
|
|
807
|
+
let deferred1_0;
|
|
808
|
+
let deferred1_1;
|
|
809
|
+
try {
|
|
810
|
+
const ret = wasm.client_appVersion(this.__wbg_ptr);
|
|
811
|
+
deferred1_0 = ret[0];
|
|
812
|
+
deferred1_1 = ret[1];
|
|
813
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
814
|
+
} finally {
|
|
815
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
/**
|
|
819
|
+
* @returns {string}
|
|
820
|
+
*/
|
|
821
|
+
get libxmtpVersion() {
|
|
822
|
+
let deferred1_0;
|
|
823
|
+
let deferred1_1;
|
|
824
|
+
try {
|
|
825
|
+
const ret = wasm.client_libxmtpVersion(this.__wbg_ptr);
|
|
826
|
+
deferred1_0 = ret[0];
|
|
827
|
+
deferred1_1 = ret[1];
|
|
828
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
829
|
+
} finally {
|
|
830
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
/**
|
|
834
|
+
* Output booleans should be zipped with the index of input identifiers
|
|
835
|
+
* @param {Identifier[]} account_identifiers
|
|
836
|
+
* @returns {Promise<any>}
|
|
837
|
+
*/
|
|
838
|
+
canMessage(account_identifiers) {
|
|
839
|
+
const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
840
|
+
const len0 = WASM_VECTOR_LEN;
|
|
841
|
+
const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
|
|
842
|
+
return ret;
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
* @returns {Promise<void>}
|
|
846
|
+
*/
|
|
847
|
+
sendSyncRequest() {
|
|
848
|
+
const ret = wasm.client_sendSyncRequest(this.__wbg_ptr);
|
|
849
|
+
return ret;
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* @param {Identifier} identifier
|
|
853
|
+
* @returns {Promise<string | undefined>}
|
|
854
|
+
*/
|
|
855
|
+
findInboxIdByIdentifier(identifier) {
|
|
856
|
+
const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
|
|
857
|
+
return ret;
|
|
858
|
+
}
|
|
859
|
+
/**
|
|
860
|
+
* @param {string[]} inbox_ids
|
|
861
|
+
* @param {boolean} refresh_from_network
|
|
862
|
+
* @returns {Promise<InboxState[]>}
|
|
863
|
+
*/
|
|
864
|
+
inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
|
|
865
|
+
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
866
|
+
const len0 = WASM_VECTOR_LEN;
|
|
867
|
+
const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
|
|
868
|
+
return ret;
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* @returns {Conversations}
|
|
872
|
+
*/
|
|
873
|
+
conversations() {
|
|
874
|
+
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
875
|
+
return Conversations.__wrap(ret);
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* @returns {Promise<number>}
|
|
707
879
|
*/
|
|
708
|
-
|
|
709
|
-
wasm.
|
|
880
|
+
syncPreferences() {
|
|
881
|
+
const ret = wasm.client_syncPreferences(this.__wbg_ptr);
|
|
882
|
+
return ret;
|
|
710
883
|
}
|
|
711
884
|
/**
|
|
712
|
-
* @returns {
|
|
885
|
+
* @returns {ApiStats}
|
|
713
886
|
*/
|
|
714
|
-
|
|
715
|
-
const ret = wasm.
|
|
716
|
-
return
|
|
887
|
+
apiStatistics() {
|
|
888
|
+
const ret = wasm.client_apiStatistics(this.__wbg_ptr);
|
|
889
|
+
return ApiStats.__wrap(ret);
|
|
717
890
|
}
|
|
718
891
|
/**
|
|
719
|
-
* @
|
|
892
|
+
* @returns {IdentityStats}
|
|
720
893
|
*/
|
|
721
|
-
|
|
722
|
-
wasm.
|
|
894
|
+
apiIdentityStatistics() {
|
|
895
|
+
const ret = wasm.client_apiIdentityStatistics(this.__wbg_ptr);
|
|
896
|
+
return IdentityStats.__wrap(ret);
|
|
723
897
|
}
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
898
|
+
/**
|
|
899
|
+
* @returns {string}
|
|
900
|
+
*/
|
|
901
|
+
apiAggregateStatistics() {
|
|
902
|
+
let deferred1_0;
|
|
903
|
+
let deferred1_1;
|
|
904
|
+
try {
|
|
905
|
+
const ret = wasm.client_apiAggregateStatistics(this.__wbg_ptr);
|
|
906
|
+
deferred1_0 = ret[0];
|
|
907
|
+
deferred1_1 = ret[1];
|
|
908
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
909
|
+
} finally {
|
|
910
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
911
|
+
}
|
|
738
912
|
}
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
const ptr = this.__wbg_ptr;
|
|
742
|
-
this.__wbg_ptr = 0;
|
|
743
|
-
ClientFinalization.unregister(this);
|
|
744
|
-
return ptr;
|
|
913
|
+
clearAllStatistics() {
|
|
914
|
+
wasm.client_clearAllStatistics(this.__wbg_ptr);
|
|
745
915
|
}
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
916
|
+
/**
|
|
917
|
+
* @param {string} server_url
|
|
918
|
+
* @returns {Promise<string>}
|
|
919
|
+
*/
|
|
920
|
+
uploadDebugArchive(server_url) {
|
|
921
|
+
const ptr0 = passStringToWasm0(server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
922
|
+
const len0 = WASM_VECTOR_LEN;
|
|
923
|
+
const ret = wasm.client_uploadDebugArchive(this.__wbg_ptr, ptr0, len0);
|
|
924
|
+
return ret;
|
|
750
925
|
}
|
|
751
926
|
/**
|
|
752
927
|
* @param {Consent[]} records
|
|
@@ -903,150 +1078,6 @@ export class Client {
|
|
|
903
1078
|
throw takeFromExternrefTable0(ret[0]);
|
|
904
1079
|
}
|
|
905
1080
|
}
|
|
906
|
-
/**
|
|
907
|
-
* @returns {Identifier}
|
|
908
|
-
*/
|
|
909
|
-
get accountIdentifier() {
|
|
910
|
-
const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
|
|
911
|
-
return ret;
|
|
912
|
-
}
|
|
913
|
-
/**
|
|
914
|
-
* @returns {string}
|
|
915
|
-
*/
|
|
916
|
-
get inboxId() {
|
|
917
|
-
let deferred1_0;
|
|
918
|
-
let deferred1_1;
|
|
919
|
-
try {
|
|
920
|
-
const ret = wasm.client_inboxId(this.__wbg_ptr);
|
|
921
|
-
deferred1_0 = ret[0];
|
|
922
|
-
deferred1_1 = ret[1];
|
|
923
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
924
|
-
} finally {
|
|
925
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
926
|
-
}
|
|
927
|
-
}
|
|
928
|
-
/**
|
|
929
|
-
* @returns {boolean}
|
|
930
|
-
*/
|
|
931
|
-
get isRegistered() {
|
|
932
|
-
const ret = wasm.client_isRegistered(this.__wbg_ptr);
|
|
933
|
-
return ret !== 0;
|
|
934
|
-
}
|
|
935
|
-
/**
|
|
936
|
-
* @returns {string}
|
|
937
|
-
*/
|
|
938
|
-
get installationId() {
|
|
939
|
-
let deferred1_0;
|
|
940
|
-
let deferred1_1;
|
|
941
|
-
try {
|
|
942
|
-
const ret = wasm.client_installationId(this.__wbg_ptr);
|
|
943
|
-
deferred1_0 = ret[0];
|
|
944
|
-
deferred1_1 = ret[1];
|
|
945
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
946
|
-
} finally {
|
|
947
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
/**
|
|
951
|
-
* @returns {Uint8Array}
|
|
952
|
-
*/
|
|
953
|
-
get installationIdBytes() {
|
|
954
|
-
const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
|
|
955
|
-
return ret;
|
|
956
|
-
}
|
|
957
|
-
/**
|
|
958
|
-
* Output booleans should be zipped with the index of input identifiers
|
|
959
|
-
* @param {Identifier[]} account_identifiers
|
|
960
|
-
* @returns {Promise<any>}
|
|
961
|
-
*/
|
|
962
|
-
canMessage(account_identifiers) {
|
|
963
|
-
const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
964
|
-
const len0 = WASM_VECTOR_LEN;
|
|
965
|
-
const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
|
|
966
|
-
return ret;
|
|
967
|
-
}
|
|
968
|
-
/**
|
|
969
|
-
* @returns {Promise<void>}
|
|
970
|
-
*/
|
|
971
|
-
sendSyncRequest() {
|
|
972
|
-
const ret = wasm.client_sendSyncRequest(this.__wbg_ptr);
|
|
973
|
-
return ret;
|
|
974
|
-
}
|
|
975
|
-
/**
|
|
976
|
-
* @param {Identifier} identifier
|
|
977
|
-
* @returns {Promise<string | undefined>}
|
|
978
|
-
*/
|
|
979
|
-
findInboxIdByIdentifier(identifier) {
|
|
980
|
-
const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
|
|
981
|
-
return ret;
|
|
982
|
-
}
|
|
983
|
-
/**
|
|
984
|
-
* @param {string[]} inbox_ids
|
|
985
|
-
* @param {boolean} refresh_from_network
|
|
986
|
-
* @returns {Promise<InboxState[]>}
|
|
987
|
-
*/
|
|
988
|
-
inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
|
|
989
|
-
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
990
|
-
const len0 = WASM_VECTOR_LEN;
|
|
991
|
-
const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
|
|
992
|
-
return ret;
|
|
993
|
-
}
|
|
994
|
-
/**
|
|
995
|
-
* @returns {Conversations}
|
|
996
|
-
*/
|
|
997
|
-
conversations() {
|
|
998
|
-
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
999
|
-
return Conversations.__wrap(ret);
|
|
1000
|
-
}
|
|
1001
|
-
/**
|
|
1002
|
-
* @returns {Promise<number>}
|
|
1003
|
-
*/
|
|
1004
|
-
syncPreferences() {
|
|
1005
|
-
const ret = wasm.client_syncPreferences(this.__wbg_ptr);
|
|
1006
|
-
return ret;
|
|
1007
|
-
}
|
|
1008
|
-
/**
|
|
1009
|
-
* @returns {ApiStats}
|
|
1010
|
-
*/
|
|
1011
|
-
apiStatistics() {
|
|
1012
|
-
const ret = wasm.client_apiStatistics(this.__wbg_ptr);
|
|
1013
|
-
return ApiStats.__wrap(ret);
|
|
1014
|
-
}
|
|
1015
|
-
/**
|
|
1016
|
-
* @returns {IdentityStats}
|
|
1017
|
-
*/
|
|
1018
|
-
apiIdentityStatistics() {
|
|
1019
|
-
const ret = wasm.client_apiIdentityStatistics(this.__wbg_ptr);
|
|
1020
|
-
return IdentityStats.__wrap(ret);
|
|
1021
|
-
}
|
|
1022
|
-
/**
|
|
1023
|
-
* @returns {string}
|
|
1024
|
-
*/
|
|
1025
|
-
apiAggregateStatistics() {
|
|
1026
|
-
let deferred1_0;
|
|
1027
|
-
let deferred1_1;
|
|
1028
|
-
try {
|
|
1029
|
-
const ret = wasm.client_apiAggregateStatistics(this.__wbg_ptr);
|
|
1030
|
-
deferred1_0 = ret[0];
|
|
1031
|
-
deferred1_1 = ret[1];
|
|
1032
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
1033
|
-
} finally {
|
|
1034
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
clearAllStatistics() {
|
|
1038
|
-
wasm.client_clearAllStatistics(this.__wbg_ptr);
|
|
1039
|
-
}
|
|
1040
|
-
/**
|
|
1041
|
-
* @param {string} server_url
|
|
1042
|
-
* @returns {Promise<string>}
|
|
1043
|
-
*/
|
|
1044
|
-
uploadDebugArchive(server_url) {
|
|
1045
|
-
const ptr0 = passStringToWasm0(server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1046
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1047
|
-
const ret = wasm.client_uploadDebugArchive(this.__wbg_ptr, ptr0, len0);
|
|
1048
|
-
return ret;
|
|
1049
|
-
}
|
|
1050
1081
|
}
|
|
1051
1082
|
|
|
1052
1083
|
const ConsentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1813,14 +1844,14 @@ export class ConversationDebugInfo {
|
|
|
1813
1844
|
* @returns {bigint}
|
|
1814
1845
|
*/
|
|
1815
1846
|
get epoch() {
|
|
1816
|
-
const ret = wasm.
|
|
1847
|
+
const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
|
|
1817
1848
|
return BigInt.asUintN(64, ret);
|
|
1818
1849
|
}
|
|
1819
1850
|
/**
|
|
1820
1851
|
* @param {bigint} arg0
|
|
1821
1852
|
*/
|
|
1822
1853
|
set epoch(arg0) {
|
|
1823
|
-
wasm.
|
|
1854
|
+
wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
|
|
1824
1855
|
}
|
|
1825
1856
|
/**
|
|
1826
1857
|
* @returns {boolean}
|
|
@@ -1885,14 +1916,14 @@ export class ConversationDebugInfo {
|
|
|
1885
1916
|
* @returns {bigint}
|
|
1886
1917
|
*/
|
|
1887
1918
|
get cursor() {
|
|
1888
|
-
const ret = wasm.
|
|
1919
|
+
const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
|
|
1889
1920
|
return ret;
|
|
1890
1921
|
}
|
|
1891
1922
|
/**
|
|
1892
1923
|
* @param {bigint} arg0
|
|
1893
1924
|
*/
|
|
1894
1925
|
set cursor(arg0) {
|
|
1895
|
-
wasm.
|
|
1926
|
+
wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
|
|
1896
1927
|
}
|
|
1897
1928
|
}
|
|
1898
1929
|
|
|
@@ -2814,14 +2845,14 @@ export class HmacKey {
|
|
|
2814
2845
|
* @returns {bigint}
|
|
2815
2846
|
*/
|
|
2816
2847
|
get epoch() {
|
|
2817
|
-
const ret = wasm.
|
|
2848
|
+
const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
|
|
2818
2849
|
return ret;
|
|
2819
2850
|
}
|
|
2820
2851
|
/**
|
|
2821
2852
|
* @param {bigint} arg0
|
|
2822
2853
|
*/
|
|
2823
2854
|
set epoch(arg0) {
|
|
2824
|
-
wasm.
|
|
2855
|
+
wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
|
|
2825
2856
|
}
|
|
2826
2857
|
}
|
|
2827
2858
|
|
|
@@ -3335,27 +3366,27 @@ export class Lifetime {
|
|
|
3335
3366
|
* @returns {bigint}
|
|
3336
3367
|
*/
|
|
3337
3368
|
get not_before() {
|
|
3338
|
-
const ret = wasm.
|
|
3369
|
+
const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
|
|
3339
3370
|
return BigInt.asUintN(64, ret);
|
|
3340
3371
|
}
|
|
3341
3372
|
/**
|
|
3342
3373
|
* @param {bigint} arg0
|
|
3343
3374
|
*/
|
|
3344
3375
|
set not_before(arg0) {
|
|
3345
|
-
wasm.
|
|
3376
|
+
wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
|
|
3346
3377
|
}
|
|
3347
3378
|
/**
|
|
3348
3379
|
* @returns {bigint}
|
|
3349
3380
|
*/
|
|
3350
3381
|
get not_after() {
|
|
3351
|
-
const ret = wasm.
|
|
3382
|
+
const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
|
|
3352
3383
|
return BigInt.asUintN(64, ret);
|
|
3353
3384
|
}
|
|
3354
3385
|
/**
|
|
3355
3386
|
* @param {bigint} arg0
|
|
3356
3387
|
*/
|
|
3357
3388
|
set not_after(arg0) {
|
|
3358
|
-
wasm.
|
|
3389
|
+
wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
|
|
3359
3390
|
}
|
|
3360
3391
|
}
|
|
3361
3392
|
|
|
@@ -3749,14 +3780,14 @@ export class Message {
|
|
|
3749
3780
|
* @returns {bigint}
|
|
3750
3781
|
*/
|
|
3751
3782
|
get sentAtNs() {
|
|
3752
|
-
const ret = wasm.
|
|
3783
|
+
const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
|
|
3753
3784
|
return ret;
|
|
3754
3785
|
}
|
|
3755
3786
|
/**
|
|
3756
3787
|
* @param {bigint} arg0
|
|
3757
3788
|
*/
|
|
3758
3789
|
set sentAtNs(arg0) {
|
|
3759
|
-
wasm.
|
|
3790
|
+
wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
|
|
3760
3791
|
}
|
|
3761
3792
|
/**
|
|
3762
3793
|
* @returns {string}
|
|
@@ -3899,27 +3930,27 @@ export class MessageDisappearingSettings {
|
|
|
3899
3930
|
* @returns {bigint}
|
|
3900
3931
|
*/
|
|
3901
3932
|
get fromNs() {
|
|
3902
|
-
const ret = wasm.
|
|
3933
|
+
const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
|
|
3903
3934
|
return ret;
|
|
3904
3935
|
}
|
|
3905
3936
|
/**
|
|
3906
3937
|
* @param {bigint} arg0
|
|
3907
3938
|
*/
|
|
3908
3939
|
set fromNs(arg0) {
|
|
3909
|
-
wasm.
|
|
3940
|
+
wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
|
|
3910
3941
|
}
|
|
3911
3942
|
/**
|
|
3912
3943
|
* @returns {bigint}
|
|
3913
3944
|
*/
|
|
3914
3945
|
get inNs() {
|
|
3915
|
-
const ret = wasm.
|
|
3946
|
+
const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
|
|
3916
3947
|
return ret;
|
|
3917
3948
|
}
|
|
3918
3949
|
/**
|
|
3919
3950
|
* @param {bigint} arg0
|
|
3920
3951
|
*/
|
|
3921
3952
|
set inNs(arg0) {
|
|
3922
|
-
wasm.
|
|
3953
|
+
wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
|
|
3923
3954
|
}
|
|
3924
3955
|
/**
|
|
3925
3956
|
* @param {bigint} from_ns
|
|
@@ -4401,7 +4432,7 @@ export class Reaction {
|
|
|
4401
4432
|
set reference(arg0) {
|
|
4402
4433
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4403
4434
|
const len0 = WASM_VECTOR_LEN;
|
|
4404
|
-
wasm.
|
|
4435
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
4405
4436
|
}
|
|
4406
4437
|
/**
|
|
4407
4438
|
* @returns {string}
|
|
@@ -4424,7 +4455,7 @@ export class Reaction {
|
|
|
4424
4455
|
set referenceInboxId(arg0) {
|
|
4425
4456
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4426
4457
|
const len0 = WASM_VECTOR_LEN;
|
|
4427
|
-
wasm.
|
|
4458
|
+
wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
|
|
4428
4459
|
}
|
|
4429
4460
|
/**
|
|
4430
4461
|
* @returns {ReactionAction}
|
|
@@ -4919,7 +4950,7 @@ function __wbg_get_imports() {
|
|
|
4919
4950
|
const ret = clearInterval(arg0);
|
|
4920
4951
|
return ret;
|
|
4921
4952
|
};
|
|
4922
|
-
imports.wbg.
|
|
4953
|
+
imports.wbg.__wbg_clearTimeout_0b53d391c1b94dda = function(arg0) {
|
|
4923
4954
|
const ret = clearTimeout(arg0);
|
|
4924
4955
|
return ret;
|
|
4925
4956
|
};
|
|
@@ -5023,7 +5054,7 @@ function __wbg_get_imports() {
|
|
|
5023
5054
|
imports.wbg.__wbg_error_e98c298703cffa97 = function(arg0, arg1) {
|
|
5024
5055
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
5025
5056
|
};
|
|
5026
|
-
imports.wbg.
|
|
5057
|
+
imports.wbg.__wbg_fetch_11bff8299d0ecd2b = function(arg0) {
|
|
5027
5058
|
const ret = fetch(arg0);
|
|
5028
5059
|
return ret;
|
|
5029
5060
|
};
|
|
@@ -5078,10 +5109,10 @@ function __wbg_get_imports() {
|
|
|
5078
5109
|
const ret = arg0.getMonth();
|
|
5079
5110
|
return ret;
|
|
5080
5111
|
};
|
|
5081
|
-
imports.wbg.
|
|
5112
|
+
imports.wbg.__wbg_getRandomValues_3c9c0d586e575a16 = function() { return handleError(function (arg0, arg1) {
|
|
5082
5113
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
5083
5114
|
}, arguments) };
|
|
5084
|
-
imports.wbg.
|
|
5115
|
+
imports.wbg.__wbg_getRandomValues_6a045a3b2ebf24ca = function() { return handleError(function (arg0, arg1) {
|
|
5085
5116
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
5086
5117
|
}, arguments) };
|
|
5087
5118
|
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
@@ -5318,7 +5349,7 @@ function __wbg_get_imports() {
|
|
|
5318
5349
|
const a = state0.a;
|
|
5319
5350
|
state0.a = 0;
|
|
5320
5351
|
try {
|
|
5321
|
-
return
|
|
5352
|
+
return __wbg_adapter_785(a, state0.b, arg0, arg1);
|
|
5322
5353
|
} finally {
|
|
5323
5354
|
state0.a = a;
|
|
5324
5355
|
}
|
|
@@ -5373,10 +5404,6 @@ function __wbg_get_imports() {
|
|
|
5373
5404
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
5374
5405
|
return ret;
|
|
5375
5406
|
};
|
|
5376
|
-
imports.wbg.__wbg_newwithbase_161c299e7a34e2eb = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
5377
|
-
const ret = new URL(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
5378
|
-
return ret;
|
|
5379
|
-
}, arguments) };
|
|
5380
5407
|
imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
|
|
5381
5408
|
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
5382
5409
|
return ret;
|
|
@@ -5417,46 +5444,39 @@ function __wbg_get_imports() {
|
|
|
5417
5444
|
const ret = arg0.now();
|
|
5418
5445
|
return ret;
|
|
5419
5446
|
};
|
|
5420
|
-
imports.wbg.
|
|
5421
|
-
const ret = Date.now();
|
|
5422
|
-
return ret;
|
|
5423
|
-
};
|
|
5424
|
-
imports.wbg.__wbg_now_8acb9b4a8cf17365 = function(arg0) {
|
|
5447
|
+
imports.wbg.__wbg_now_683d7b91b94bab7e = function(arg0) {
|
|
5425
5448
|
const ret = globalThis.performance.now();
|
|
5426
5449
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
5427
5450
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
5428
5451
|
};
|
|
5452
|
+
imports.wbg.__wbg_now_807e54c39636c349 = function() {
|
|
5453
|
+
const ret = Date.now();
|
|
5454
|
+
return ret;
|
|
5455
|
+
};
|
|
5429
5456
|
imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) {
|
|
5430
5457
|
const ret = arg0.now();
|
|
5431
5458
|
return ret;
|
|
5432
5459
|
};
|
|
5433
|
-
imports.wbg.
|
|
5460
|
+
imports.wbg.__wbg_onclose_a9f796841c1a29f2 = function(arg0) {
|
|
5434
5461
|
arg0.on_close();
|
|
5435
5462
|
};
|
|
5436
|
-
imports.wbg.
|
|
5463
|
+
imports.wbg.__wbg_onconsentupdate_c62bfe942ceafce6 = function(arg0, arg1) {
|
|
5437
5464
|
arg0.on_consent_update(arg1);
|
|
5438
5465
|
};
|
|
5439
|
-
imports.wbg.
|
|
5466
|
+
imports.wbg.__wbg_onconversation_1096518febd6d077 = function(arg0, arg1) {
|
|
5440
5467
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
5441
5468
|
};
|
|
5442
|
-
imports.wbg.
|
|
5469
|
+
imports.wbg.__wbg_onerror_541be1bbcfd71e2b = function(arg0, arg1) {
|
|
5443
5470
|
arg0.on_error(arg1);
|
|
5444
5471
|
};
|
|
5445
|
-
imports.wbg.
|
|
5472
|
+
imports.wbg.__wbg_onmessage_3f9a2b0832eeb414 = function(arg0, arg1) {
|
|
5446
5473
|
arg0.on_message(Message.__wrap(arg1));
|
|
5447
5474
|
};
|
|
5448
|
-
imports.wbg.
|
|
5475
|
+
imports.wbg.__wbg_onuserpreferenceupdate_1018cdb398602922 = function(arg0, arg1, arg2) {
|
|
5449
5476
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
5450
5477
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
5451
5478
|
arg0.on_user_preference_update(v0);
|
|
5452
5479
|
};
|
|
5453
|
-
imports.wbg.__wbg_pathname_9b0b04c4e19316d0 = function(arg0, arg1) {
|
|
5454
|
-
const ret = arg1.pathname;
|
|
5455
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5456
|
-
const len1 = WASM_VECTOR_LEN;
|
|
5457
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
5458
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
5459
|
-
};
|
|
5460
5480
|
imports.wbg.__wbg_performance_121b9855d716e029 = function() {
|
|
5461
5481
|
const ret = globalThis.performance;
|
|
5462
5482
|
return ret;
|
|
@@ -5532,6 +5552,10 @@ function __wbg_get_imports() {
|
|
|
5532
5552
|
const ret = setInterval(arg0, arg1);
|
|
5533
5553
|
return ret;
|
|
5534
5554
|
}, arguments) };
|
|
5555
|
+
imports.wbg.__wbg_setTimeout_73ce8df12de4f2f2 = function(arg0, arg1) {
|
|
5556
|
+
const ret = setTimeout(arg0, arg1);
|
|
5557
|
+
return ret;
|
|
5558
|
+
};
|
|
5535
5559
|
imports.wbg.__wbg_setTimeout_8f06012fba12034e = function(arg0, arg1) {
|
|
5536
5560
|
globalThis.setTimeout(arg0, arg1);
|
|
5537
5561
|
};
|
|
@@ -5539,10 +5563,6 @@ function __wbg_get_imports() {
|
|
|
5539
5563
|
const ret = setTimeout(arg0, arg1);
|
|
5540
5564
|
return ret;
|
|
5541
5565
|
}, arguments) };
|
|
5542
|
-
imports.wbg.__wbg_setTimeout_e64b2910d9d7169a = function(arg0, arg1) {
|
|
5543
|
-
const ret = setTimeout(arg0, arg1);
|
|
5544
|
-
return ret;
|
|
5545
|
-
};
|
|
5546
5566
|
imports.wbg.__wbg_setUint32_ad8826b8caeaf63d = function(arg0, arg1, arg2) {
|
|
5547
5567
|
arg0.setUint32(arg1 >>> 0, arg2 >>> 0);
|
|
5548
5568
|
};
|
|
@@ -5738,16 +5758,16 @@ function __wbg_get_imports() {
|
|
|
5738
5758
|
const ret = false;
|
|
5739
5759
|
return ret;
|
|
5740
5760
|
};
|
|
5741
|
-
imports.wbg.
|
|
5742
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5761
|
+
imports.wbg.__wbindgen_closure_wrapper19576 = function(arg0, arg1, arg2) {
|
|
5762
|
+
const ret = makeMutClosure(arg0, arg1, 4664, __wbg_adapter_50);
|
|
5743
5763
|
return ret;
|
|
5744
5764
|
};
|
|
5745
|
-
imports.wbg.
|
|
5746
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5765
|
+
imports.wbg.__wbindgen_closure_wrapper21727 = function(arg0, arg1, arg2) {
|
|
5766
|
+
const ret = makeMutClosure(arg0, arg1, 4957, __wbg_adapter_53);
|
|
5747
5767
|
return ret;
|
|
5748
5768
|
};
|
|
5749
|
-
imports.wbg.
|
|
5750
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5769
|
+
imports.wbg.__wbindgen_closure_wrapper22376 = function(arg0, arg1, arg2) {
|
|
5770
|
+
const ret = makeMutClosure(arg0, arg1, 4981, __wbg_adapter_56);
|
|
5751
5771
|
return ret;
|
|
5752
5772
|
};
|
|
5753
5773
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|