@xmtp/wasm-bindings 1.3.3 → 1.4.0-dev.7f5d8e0
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 +115 -111
- package/dist/bindings_wasm.js +362 -342
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +90 -88
- 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,54 +270,64 @@ function takeFromExternrefTable0(idx) {
|
|
|
231
270
|
wasm.__externref_table_dealloc(idx);
|
|
232
271
|
return value;
|
|
233
272
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
273
|
+
/**
|
|
274
|
+
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
275
|
+
* @returns {Uint8Array}
|
|
276
|
+
*/
|
|
277
|
+
export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
|
|
278
|
+
_assertClass(multiRemoteAttachment, MultiRemoteAttachment);
|
|
279
|
+
var ptr0 = multiRemoteAttachment.__destroy_into_raw();
|
|
280
|
+
const ret = wasm.encodeMultiRemoteAttachment(ptr0);
|
|
281
|
+
if (ret[2]) {
|
|
282
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
238
283
|
}
|
|
284
|
+
return takeFromExternrefTable0(ret[0]);
|
|
239
285
|
}
|
|
240
286
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
287
|
+
/**
|
|
288
|
+
* @param {Uint8Array} bytes
|
|
289
|
+
* @returns {MultiRemoteAttachment}
|
|
290
|
+
*/
|
|
291
|
+
export function decodeMultiRemoteAttachment(bytes) {
|
|
292
|
+
const ret = wasm.decodeMultiRemoteAttachment(bytes);
|
|
293
|
+
if (ret[2]) {
|
|
294
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
295
|
+
}
|
|
296
|
+
return MultiRemoteAttachment.__wrap(ret[0]);
|
|
246
297
|
}
|
|
298
|
+
|
|
247
299
|
/**
|
|
248
|
-
* @param {
|
|
249
|
-
* @
|
|
250
|
-
* @returns {Promise<string | undefined>}
|
|
300
|
+
* @param {Reaction} reaction
|
|
301
|
+
* @returns {Uint8Array}
|
|
251
302
|
*/
|
|
252
|
-
export function
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
const ret = wasm.
|
|
256
|
-
|
|
303
|
+
export function encodeReaction(reaction) {
|
|
304
|
+
_assertClass(reaction, Reaction);
|
|
305
|
+
var ptr0 = reaction.__destroy_into_raw();
|
|
306
|
+
const ret = wasm.encodeReaction(ptr0);
|
|
307
|
+
if (ret[2]) {
|
|
308
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
309
|
+
}
|
|
310
|
+
return takeFromExternrefTable0(ret[0]);
|
|
257
311
|
}
|
|
258
312
|
|
|
259
313
|
/**
|
|
260
|
-
* @param {
|
|
261
|
-
* @returns {
|
|
314
|
+
* @param {Uint8Array} bytes
|
|
315
|
+
* @returns {Reaction}
|
|
262
316
|
*/
|
|
263
|
-
export function
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
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);
|
|
317
|
+
export function decodeReaction(bytes) {
|
|
318
|
+
const ret = wasm.decodeReaction(bytes);
|
|
319
|
+
if (ret[2]) {
|
|
320
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
279
321
|
}
|
|
322
|
+
return Reaction.__wrap(ret[0]);
|
|
280
323
|
}
|
|
281
324
|
|
|
325
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
326
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
327
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
328
|
+
WASM_VECTOR_LEN = arg.length;
|
|
329
|
+
return ptr;
|
|
330
|
+
}
|
|
282
331
|
/**
|
|
283
332
|
* @param {string} host
|
|
284
333
|
* @param {string[]} inbox_ids
|
|
@@ -340,85 +389,37 @@ export function applySignatureRequest(host, signature_request) {
|
|
|
340
389
|
|
|
341
390
|
/**
|
|
342
391
|
* @param {string} host
|
|
343
|
-
* @param {
|
|
344
|
-
* @
|
|
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>}
|
|
392
|
+
* @param {Identifier} accountIdentifier
|
|
393
|
+
* @returns {Promise<string | undefined>}
|
|
353
394
|
*/
|
|
354
|
-
export function
|
|
395
|
+
export function getInboxIdForIdentifier(host, accountIdentifier) {
|
|
355
396
|
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
356
397
|
const len0 = WASM_VECTOR_LEN;
|
|
357
|
-
const
|
|
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);
|
|
398
|
+
const ret = wasm.getInboxIdForIdentifier(ptr0, len0, accountIdentifier);
|
|
369
399
|
return ret;
|
|
370
400
|
}
|
|
371
401
|
|
|
372
402
|
/**
|
|
373
|
-
* @param {
|
|
374
|
-
* @returns {
|
|
375
|
-
*/
|
|
376
|
-
export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
|
|
377
|
-
_assertClass(multiRemoteAttachment, MultiRemoteAttachment);
|
|
378
|
-
var ptr0 = multiRemoteAttachment.__destroy_into_raw();
|
|
379
|
-
const ret = wasm.encodeMultiRemoteAttachment(ptr0);
|
|
380
|
-
if (ret[2]) {
|
|
381
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
382
|
-
}
|
|
383
|
-
return takeFromExternrefTable0(ret[0]);
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
/**
|
|
387
|
-
* @param {Uint8Array} bytes
|
|
388
|
-
* @returns {MultiRemoteAttachment}
|
|
389
|
-
*/
|
|
390
|
-
export function decodeMultiRemoteAttachment(bytes) {
|
|
391
|
-
const ret = wasm.decodeMultiRemoteAttachment(bytes);
|
|
392
|
-
if (ret[2]) {
|
|
393
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
394
|
-
}
|
|
395
|
-
return MultiRemoteAttachment.__wrap(ret[0]);
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
/**
|
|
399
|
-
* @param {Reaction} reaction
|
|
400
|
-
* @returns {Uint8Array}
|
|
401
|
-
*/
|
|
402
|
-
export function encodeReaction(reaction) {
|
|
403
|
-
_assertClass(reaction, Reaction);
|
|
404
|
-
var ptr0 = reaction.__destroy_into_raw();
|
|
405
|
-
const ret = wasm.encodeReaction(ptr0);
|
|
406
|
-
if (ret[2]) {
|
|
407
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
408
|
-
}
|
|
409
|
-
return takeFromExternrefTable0(ret[0]);
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* @param {Uint8Array} bytes
|
|
414
|
-
* @returns {Reaction}
|
|
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.closure4978_externref_shim(arg0, arg1, arg2);
|
|
445
446
|
}
|
|
446
447
|
|
|
447
|
-
function
|
|
448
|
-
wasm.
|
|
448
|
+
function __wbg_adapter_785(arg0, arg1, arg2, arg3) {
|
|
449
|
+
wasm.closure5922_externref_shim(arg0, arg1, arg2, arg3);
|
|
449
450
|
}
|
|
450
451
|
|
|
451
452
|
/**
|
|
@@ -683,70 +684,244 @@ export class ApiStats {
|
|
|
683
684
|
wasm.__wbg_set_apistats_query_group_messages(this.__wbg_ptr, arg0);
|
|
684
685
|
}
|
|
685
686
|
/**
|
|
686
|
-
* @returns {bigint}
|
|
687
|
+
* @returns {bigint}
|
|
688
|
+
*/
|
|
689
|
+
get query_welcome_messages() {
|
|
690
|
+
const ret = wasm.__wbg_get_apistats_query_welcome_messages(this.__wbg_ptr);
|
|
691
|
+
return BigInt.asUintN(64, ret);
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* @param {bigint} arg0
|
|
695
|
+
*/
|
|
696
|
+
set query_welcome_messages(arg0) {
|
|
697
|
+
wasm.__wbg_set_apistats_query_welcome_messages(this.__wbg_ptr, arg0);
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* @returns {bigint}
|
|
701
|
+
*/
|
|
702
|
+
get subscribe_messages() {
|
|
703
|
+
const ret = wasm.__wbg_get_apistats_subscribe_messages(this.__wbg_ptr);
|
|
704
|
+
return BigInt.asUintN(64, ret);
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
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}
|
|
687
872
|
*/
|
|
688
|
-
|
|
689
|
-
const ret = wasm.
|
|
690
|
-
return
|
|
873
|
+
conversations() {
|
|
874
|
+
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
875
|
+
return Conversations.__wrap(ret);
|
|
691
876
|
}
|
|
692
877
|
/**
|
|
693
|
-
* @
|
|
878
|
+
* @returns {Promise<number>}
|
|
694
879
|
*/
|
|
695
|
-
|
|
696
|
-
wasm.
|
|
880
|
+
syncPreferences() {
|
|
881
|
+
const ret = wasm.client_syncPreferences(this.__wbg_ptr);
|
|
882
|
+
return ret;
|
|
697
883
|
}
|
|
698
884
|
/**
|
|
699
|
-
* @returns {
|
|
885
|
+
* @returns {ApiStats}
|
|
700
886
|
*/
|
|
701
|
-
|
|
702
|
-
const ret = wasm.
|
|
703
|
-
return
|
|
887
|
+
apiStatistics() {
|
|
888
|
+
const ret = wasm.client_apiStatistics(this.__wbg_ptr);
|
|
889
|
+
return ApiStats.__wrap(ret);
|
|
704
890
|
}
|
|
705
891
|
/**
|
|
706
|
-
* @
|
|
892
|
+
* @returns {IdentityStats}
|
|
707
893
|
*/
|
|
708
|
-
|
|
709
|
-
wasm.
|
|
894
|
+
apiIdentityStatistics() {
|
|
895
|
+
const ret = wasm.client_apiIdentityStatistics(this.__wbg_ptr);
|
|
896
|
+
return IdentityStats.__wrap(ret);
|
|
710
897
|
}
|
|
711
898
|
/**
|
|
712
|
-
* @returns {
|
|
899
|
+
* @returns {string}
|
|
713
900
|
*/
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
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
|
+
}
|
|
912
|
+
}
|
|
913
|
+
clearAllStatistics() {
|
|
914
|
+
wasm.client_clearAllStatistics(this.__wbg_ptr);
|
|
717
915
|
}
|
|
718
916
|
/**
|
|
719
|
-
* @param {
|
|
917
|
+
* @param {string} server_url
|
|
918
|
+
* @returns {Promise<string>}
|
|
720
919
|
*/
|
|
721
|
-
|
|
722
|
-
wasm.
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
727
|
-
? { register: () => {}, unregister: () => {} }
|
|
728
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_client_free(ptr >>> 0, 1));
|
|
729
|
-
|
|
730
|
-
export class Client {
|
|
731
|
-
|
|
732
|
-
static __wrap(ptr) {
|
|
733
|
-
ptr = ptr >>> 0;
|
|
734
|
-
const obj = Object.create(Client.prototype);
|
|
735
|
-
obj.__wbg_ptr = ptr;
|
|
736
|
-
ClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
737
|
-
return obj;
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
__destroy_into_raw() {
|
|
741
|
-
const ptr = this.__wbg_ptr;
|
|
742
|
-
this.__wbg_ptr = 0;
|
|
743
|
-
ClientFinalization.unregister(this);
|
|
744
|
-
return ptr;
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
free() {
|
|
748
|
-
const ptr = this.__destroy_into_raw();
|
|
749
|
-
wasm.__wbg_client_free(ptr, 0);
|
|
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')
|
|
@@ -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}
|
|
@@ -4621,7 +4652,7 @@ export class RemoteAttachmentInfo {
|
|
|
4621
4652
|
set url(arg0) {
|
|
4622
4653
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4623
4654
|
const len0 = WASM_VECTOR_LEN;
|
|
4624
|
-
wasm.
|
|
4655
|
+
wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
|
|
4625
4656
|
}
|
|
4626
4657
|
/**
|
|
4627
4658
|
* @returns {Uint8Array}
|
|
@@ -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_acbe14415999d6df = function(arg0) {
|
|
5434
5461
|
arg0.on_close();
|
|
5435
5462
|
};
|
|
5436
|
-
imports.wbg.
|
|
5463
|
+
imports.wbg.__wbg_onconsentupdate_5f4ba8276c7c8978 = function(arg0, arg1) {
|
|
5437
5464
|
arg0.on_consent_update(arg1);
|
|
5438
5465
|
};
|
|
5439
|
-
imports.wbg.
|
|
5466
|
+
imports.wbg.__wbg_onconversation_b000274c1f2f1d18 = function(arg0, arg1) {
|
|
5440
5467
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
5441
5468
|
};
|
|
5442
|
-
imports.wbg.
|
|
5469
|
+
imports.wbg.__wbg_onerror_1be579f39c74f272 = function(arg0, arg1) {
|
|
5443
5470
|
arg0.on_error(arg1);
|
|
5444
5471
|
};
|
|
5445
|
-
imports.wbg.
|
|
5472
|
+
imports.wbg.__wbg_onmessage_ce759809223e46c4 = function(arg0, arg1) {
|
|
5446
5473
|
arg0.on_message(Message.__wrap(arg1));
|
|
5447
5474
|
};
|
|
5448
|
-
imports.wbg.
|
|
5475
|
+
imports.wbg.__wbg_onuserpreferenceupdate_d5fbb4930d1ab1a7 = 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_wrapper19567 = function(arg0, arg1, arg2) {
|
|
5762
|
+
const ret = makeMutClosure(arg0, arg1, 4662, __wbg_adapter_50);
|
|
5743
5763
|
return ret;
|
|
5744
5764
|
};
|
|
5745
|
-
imports.wbg.
|
|
5746
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5765
|
+
imports.wbg.__wbindgen_closure_wrapper21718 = function(arg0, arg1, arg2) {
|
|
5766
|
+
const ret = makeMutClosure(arg0, arg1, 4955, __wbg_adapter_53);
|
|
5747
5767
|
return ret;
|
|
5748
5768
|
};
|
|
5749
|
-
imports.wbg.
|
|
5750
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5769
|
+
imports.wbg.__wbindgen_closure_wrapper22367 = function(arg0, arg1, arg2) {
|
|
5770
|
+
const ret = makeMutClosure(arg0, arg1, 4979, __wbg_adapter_56);
|
|
5751
5771
|
return ret;
|
|
5752
5772
|
};
|
|
5753
5773
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|