@xmtp/wasm-bindings 1.2.0 → 1.2.2
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 +233 -226
- package/dist/bindings_wasm.js +271 -245
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +212 -210
- package/dist/snippets/wasm-array-cp-201e2a98f0e691f7/copy.min.js +1 -0
- package/dist/version.json +2 -2
- package/package.json +6 -2
- package/dist/snippets/sqlite-wasm-rs-7363ec544fce135b/src/vfs/utils.js +0 -11
package/dist/bindings_wasm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JSArrayBufferCopy } from './snippets/wasm-array-cp-201e2a98f0e691f7/copy.min.js';
|
|
2
2
|
|
|
3
3
|
let wasm;
|
|
4
4
|
|
|
@@ -216,6 +216,41 @@ 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
|
+
* @returns {Promise<Client>}
|
|
235
|
+
*/
|
|
236
|
+
export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline) {
|
|
237
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
238
|
+
const len0 = WASM_VECTOR_LEN;
|
|
239
|
+
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
240
|
+
const len1 = WASM_VECTOR_LEN;
|
|
241
|
+
var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
242
|
+
var len2 = WASM_VECTOR_LEN;
|
|
243
|
+
var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
244
|
+
var len3 = WASM_VECTOR_LEN;
|
|
245
|
+
let ptr4 = 0;
|
|
246
|
+
if (!isLikeNone(log_options)) {
|
|
247
|
+
_assertClass(log_options, LogOptions);
|
|
248
|
+
ptr4 = log_options.__destroy_into_raw();
|
|
249
|
+
}
|
|
250
|
+
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);
|
|
251
|
+
return ret;
|
|
252
|
+
}
|
|
253
|
+
|
|
219
254
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
220
255
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
221
256
|
for (let i = 0; i < array.length; i++) {
|
|
@@ -231,19 +266,20 @@ function takeFromExternrefTable0(idx) {
|
|
|
231
266
|
wasm.__externref_table_dealloc(idx);
|
|
232
267
|
return value;
|
|
233
268
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
269
|
+
/**
|
|
270
|
+
* @param {string} signature_text
|
|
271
|
+
* @param {Uint8Array} signature_bytes
|
|
272
|
+
* @param {Uint8Array} public_key
|
|
273
|
+
*/
|
|
274
|
+
export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
|
|
275
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
276
|
+
const len0 = WASM_VECTOR_LEN;
|
|
277
|
+
const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
|
|
278
|
+
if (ret[1]) {
|
|
279
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
238
280
|
}
|
|
239
281
|
}
|
|
240
282
|
|
|
241
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
242
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
243
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
244
|
-
WASM_VECTOR_LEN = arg.length;
|
|
245
|
-
return ptr;
|
|
246
|
-
}
|
|
247
283
|
/**
|
|
248
284
|
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
249
285
|
* @returns {Uint8Array}
|
|
@@ -296,49 +332,12 @@ export function decodeReaction(bytes) {
|
|
|
296
332
|
return Reaction.__wrap(ret[0]);
|
|
297
333
|
}
|
|
298
334
|
|
|
299
|
-
|
|
300
|
-
*
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
|
|
305
|
-
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
306
|
-
const len0 = WASM_VECTOR_LEN;
|
|
307
|
-
const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
|
|
308
|
-
if (ret[1]) {
|
|
309
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* @param {string} host
|
|
315
|
-
* @param {string} inbox_id
|
|
316
|
-
* @param {Identifier} account_identifier
|
|
317
|
-
* @param {string | null} [db_path]
|
|
318
|
-
* @param {Uint8Array | null} [encryption_key]
|
|
319
|
-
* @param {string | null} [device_sync_server_url]
|
|
320
|
-
* @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
|
|
321
|
-
* @param {LogOptions | null} [log_options]
|
|
322
|
-
* @returns {Promise<Client>}
|
|
323
|
-
*/
|
|
324
|
-
export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options) {
|
|
325
|
-
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
326
|
-
const len0 = WASM_VECTOR_LEN;
|
|
327
|
-
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
328
|
-
const len1 = WASM_VECTOR_LEN;
|
|
329
|
-
var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
330
|
-
var len2 = WASM_VECTOR_LEN;
|
|
331
|
-
var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
332
|
-
var len3 = WASM_VECTOR_LEN;
|
|
333
|
-
let ptr4 = 0;
|
|
334
|
-
if (!isLikeNone(log_options)) {
|
|
335
|
-
_assertClass(log_options, LogOptions);
|
|
336
|
-
ptr4 = log_options.__destroy_into_raw();
|
|
337
|
-
}
|
|
338
|
-
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);
|
|
339
|
-
return ret;
|
|
335
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
336
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
337
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
338
|
+
WASM_VECTOR_LEN = arg.length;
|
|
339
|
+
return ptr;
|
|
340
340
|
}
|
|
341
|
-
|
|
342
341
|
/**
|
|
343
342
|
* @param {string} host
|
|
344
343
|
* @param {Identifier} accountIdentifier
|
|
@@ -375,23 +374,23 @@ export function generateInboxId(accountIdentifier) {
|
|
|
375
374
|
}
|
|
376
375
|
|
|
377
376
|
function __wbg_adapter_50(arg0, arg1) {
|
|
378
|
-
wasm.
|
|
377
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc094ec3bdf8c16b7(arg0, arg1);
|
|
379
378
|
}
|
|
380
379
|
|
|
381
380
|
function __wbg_adapter_53(arg0, arg1) {
|
|
382
|
-
wasm.
|
|
381
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0eb99f8c2f057fcc(arg0, arg1);
|
|
383
382
|
}
|
|
384
383
|
|
|
385
384
|
function __wbg_adapter_56(arg0, arg1, arg2) {
|
|
386
|
-
wasm.
|
|
385
|
+
wasm.closure4569_externref_shim(arg0, arg1, arg2);
|
|
387
386
|
}
|
|
388
387
|
|
|
389
388
|
function __wbg_adapter_59(arg0, arg1) {
|
|
390
|
-
wasm.
|
|
389
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h232599d7dcf89d52(arg0, arg1);
|
|
391
390
|
}
|
|
392
391
|
|
|
393
|
-
function
|
|
394
|
-
wasm.
|
|
392
|
+
function __wbg_adapter_775(arg0, arg1, arg2, arg3) {
|
|
393
|
+
wasm.closure5545_externref_shim(arg0, arg1, arg2, arg3);
|
|
395
394
|
}
|
|
396
395
|
|
|
397
396
|
/**
|
|
@@ -704,146 +703,6 @@ export class Client {
|
|
|
704
703
|
const ptr = this.__destroy_into_raw();
|
|
705
704
|
wasm.__wbg_client_free(ptr, 0);
|
|
706
705
|
}
|
|
707
|
-
/**
|
|
708
|
-
* @param {Consent[]} records
|
|
709
|
-
* @returns {Promise<void>}
|
|
710
|
-
*/
|
|
711
|
-
setConsentStates(records) {
|
|
712
|
-
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
713
|
-
const len0 = WASM_VECTOR_LEN;
|
|
714
|
-
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
715
|
-
return ret;
|
|
716
|
-
}
|
|
717
|
-
/**
|
|
718
|
-
* @param {ConsentEntityType} entity_type
|
|
719
|
-
* @param {string} entity
|
|
720
|
-
* @returns {Promise<ConsentState>}
|
|
721
|
-
*/
|
|
722
|
-
getConsentState(entity_type, entity) {
|
|
723
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
724
|
-
const len0 = WASM_VECTOR_LEN;
|
|
725
|
-
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
726
|
-
return ret;
|
|
727
|
-
}
|
|
728
|
-
/**
|
|
729
|
-
* @returns {string | undefined}
|
|
730
|
-
*/
|
|
731
|
-
createInboxSignatureText() {
|
|
732
|
-
const ret = wasm.client_createInboxSignatureText(this.__wbg_ptr);
|
|
733
|
-
if (ret[3]) {
|
|
734
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
735
|
-
}
|
|
736
|
-
let v1;
|
|
737
|
-
if (ret[0] !== 0) {
|
|
738
|
-
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
739
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
740
|
-
}
|
|
741
|
-
return v1;
|
|
742
|
-
}
|
|
743
|
-
/**
|
|
744
|
-
* @param {Identifier} new_identifier
|
|
745
|
-
* @returns {Promise<string>}
|
|
746
|
-
*/
|
|
747
|
-
addWalletSignatureText(new_identifier) {
|
|
748
|
-
const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, new_identifier);
|
|
749
|
-
return ret;
|
|
750
|
-
}
|
|
751
|
-
/**
|
|
752
|
-
* @param {Identifier} identifier
|
|
753
|
-
* @returns {Promise<string>}
|
|
754
|
-
*/
|
|
755
|
-
revokeWalletSignatureText(identifier) {
|
|
756
|
-
const ret = wasm.client_revokeWalletSignatureText(this.__wbg_ptr, identifier);
|
|
757
|
-
return ret;
|
|
758
|
-
}
|
|
759
|
-
/**
|
|
760
|
-
* @returns {Promise<string>}
|
|
761
|
-
*/
|
|
762
|
-
revokeAllOtherInstallationsSignatureText() {
|
|
763
|
-
const ret = wasm.client_revokeAllOtherInstallationsSignatureText(this.__wbg_ptr);
|
|
764
|
-
return ret;
|
|
765
|
-
}
|
|
766
|
-
/**
|
|
767
|
-
* @param {Uint8Array[]} installation_ids
|
|
768
|
-
* @returns {Promise<string>}
|
|
769
|
-
*/
|
|
770
|
-
revokeInstallationsSignatureText(installation_ids) {
|
|
771
|
-
const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
772
|
-
const len0 = WASM_VECTOR_LEN;
|
|
773
|
-
const ret = wasm.client_revokeInstallationsSignatureText(this.__wbg_ptr, ptr0, len0);
|
|
774
|
-
return ret;
|
|
775
|
-
}
|
|
776
|
-
/**
|
|
777
|
-
* @param {Identifier} new_recovery_identifier
|
|
778
|
-
* @returns {Promise<string>}
|
|
779
|
-
*/
|
|
780
|
-
changeRecoveryIdentifierSignatureText(new_recovery_identifier) {
|
|
781
|
-
const ret = wasm.client_changeRecoveryIdentifierSignatureText(this.__wbg_ptr, new_recovery_identifier);
|
|
782
|
-
return ret;
|
|
783
|
-
}
|
|
784
|
-
/**
|
|
785
|
-
* @param {SignatureRequestType} signature_type
|
|
786
|
-
* @param {Uint8Array} signature_bytes
|
|
787
|
-
* @returns {Promise<void>}
|
|
788
|
-
*/
|
|
789
|
-
addEcdsaSignature(signature_type, signature_bytes) {
|
|
790
|
-
const ret = wasm.client_addEcdsaSignature(this.__wbg_ptr, signature_type, signature_bytes);
|
|
791
|
-
return ret;
|
|
792
|
-
}
|
|
793
|
-
/**
|
|
794
|
-
* @param {SignatureRequestType} signature_type
|
|
795
|
-
* @param {PasskeySignature} signature
|
|
796
|
-
* @returns {Promise<void>}
|
|
797
|
-
*/
|
|
798
|
-
addPasskeySignature(signature_type, signature) {
|
|
799
|
-
_assertClass(signature, PasskeySignature);
|
|
800
|
-
var ptr0 = signature.__destroy_into_raw();
|
|
801
|
-
const ret = wasm.client_addPasskeySignature(this.__wbg_ptr, signature_type, ptr0);
|
|
802
|
-
return ret;
|
|
803
|
-
}
|
|
804
|
-
/**
|
|
805
|
-
* @param {SignatureRequestType} signature_type
|
|
806
|
-
* @param {Uint8Array} signature_bytes
|
|
807
|
-
* @param {bigint} chain_id
|
|
808
|
-
* @param {bigint | null} [block_number]
|
|
809
|
-
* @returns {Promise<void>}
|
|
810
|
-
*/
|
|
811
|
-
addScwSignature(signature_type, signature_bytes, chain_id, block_number) {
|
|
812
|
-
const ret = wasm.client_addScwSignature(this.__wbg_ptr, signature_type, signature_bytes, chain_id, !isLikeNone(block_number), isLikeNone(block_number) ? BigInt(0) : block_number);
|
|
813
|
-
return ret;
|
|
814
|
-
}
|
|
815
|
-
/**
|
|
816
|
-
* @returns {Promise<void>}
|
|
817
|
-
*/
|
|
818
|
-
applySignatureRequests() {
|
|
819
|
-
const ret = wasm.client_applySignatureRequests(this.__wbg_ptr);
|
|
820
|
-
return ret;
|
|
821
|
-
}
|
|
822
|
-
/**
|
|
823
|
-
* @param {string} signature_text
|
|
824
|
-
* @returns {Uint8Array}
|
|
825
|
-
*/
|
|
826
|
-
signWithInstallationKey(signature_text) {
|
|
827
|
-
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
828
|
-
const len0 = WASM_VECTOR_LEN;
|
|
829
|
-
const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
|
|
830
|
-
if (ret[2]) {
|
|
831
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
832
|
-
}
|
|
833
|
-
return takeFromExternrefTable0(ret[0]);
|
|
834
|
-
}
|
|
835
|
-
/**
|
|
836
|
-
* @param {string} signature_text
|
|
837
|
-
* @param {Uint8Array} signature_bytes
|
|
838
|
-
*/
|
|
839
|
-
verifySignedWithInstallationKey(signature_text, signature_bytes) {
|
|
840
|
-
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
841
|
-
const len0 = WASM_VECTOR_LEN;
|
|
842
|
-
const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
|
|
843
|
-
if (ret[1]) {
|
|
844
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
706
|
/**
|
|
848
707
|
* @returns {Identifier}
|
|
849
708
|
*/
|
|
@@ -982,6 +841,9 @@ export class Client {
|
|
|
982
841
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
983
842
|
}
|
|
984
843
|
}
|
|
844
|
+
clearAllStatistics() {
|
|
845
|
+
wasm.client_clearAllStatistics(this.__wbg_ptr);
|
|
846
|
+
}
|
|
985
847
|
/**
|
|
986
848
|
* @param {string} server_url
|
|
987
849
|
* @returns {Promise<string>}
|
|
@@ -992,6 +854,146 @@ export class Client {
|
|
|
992
854
|
const ret = wasm.client_uploadDebugArchive(this.__wbg_ptr, ptr0, len0);
|
|
993
855
|
return ret;
|
|
994
856
|
}
|
|
857
|
+
/**
|
|
858
|
+
* @returns {string | undefined}
|
|
859
|
+
*/
|
|
860
|
+
createInboxSignatureText() {
|
|
861
|
+
const ret = wasm.client_createInboxSignatureText(this.__wbg_ptr);
|
|
862
|
+
if (ret[3]) {
|
|
863
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
864
|
+
}
|
|
865
|
+
let v1;
|
|
866
|
+
if (ret[0] !== 0) {
|
|
867
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
868
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
869
|
+
}
|
|
870
|
+
return v1;
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* @param {Identifier} new_identifier
|
|
874
|
+
* @returns {Promise<string>}
|
|
875
|
+
*/
|
|
876
|
+
addWalletSignatureText(new_identifier) {
|
|
877
|
+
const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, new_identifier);
|
|
878
|
+
return ret;
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* @param {Identifier} identifier
|
|
882
|
+
* @returns {Promise<string>}
|
|
883
|
+
*/
|
|
884
|
+
revokeWalletSignatureText(identifier) {
|
|
885
|
+
const ret = wasm.client_revokeWalletSignatureText(this.__wbg_ptr, identifier);
|
|
886
|
+
return ret;
|
|
887
|
+
}
|
|
888
|
+
/**
|
|
889
|
+
* @returns {Promise<string>}
|
|
890
|
+
*/
|
|
891
|
+
revokeAllOtherInstallationsSignatureText() {
|
|
892
|
+
const ret = wasm.client_revokeAllOtherInstallationsSignatureText(this.__wbg_ptr);
|
|
893
|
+
return ret;
|
|
894
|
+
}
|
|
895
|
+
/**
|
|
896
|
+
* @param {Uint8Array[]} installation_ids
|
|
897
|
+
* @returns {Promise<string>}
|
|
898
|
+
*/
|
|
899
|
+
revokeInstallationsSignatureText(installation_ids) {
|
|
900
|
+
const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
901
|
+
const len0 = WASM_VECTOR_LEN;
|
|
902
|
+
const ret = wasm.client_revokeInstallationsSignatureText(this.__wbg_ptr, ptr0, len0);
|
|
903
|
+
return ret;
|
|
904
|
+
}
|
|
905
|
+
/**
|
|
906
|
+
* @param {Identifier} new_recovery_identifier
|
|
907
|
+
* @returns {Promise<string>}
|
|
908
|
+
*/
|
|
909
|
+
changeRecoveryIdentifierSignatureText(new_recovery_identifier) {
|
|
910
|
+
const ret = wasm.client_changeRecoveryIdentifierSignatureText(this.__wbg_ptr, new_recovery_identifier);
|
|
911
|
+
return ret;
|
|
912
|
+
}
|
|
913
|
+
/**
|
|
914
|
+
* @param {SignatureRequestType} signature_type
|
|
915
|
+
* @param {Uint8Array} signature_bytes
|
|
916
|
+
* @returns {Promise<void>}
|
|
917
|
+
*/
|
|
918
|
+
addEcdsaSignature(signature_type, signature_bytes) {
|
|
919
|
+
const ret = wasm.client_addEcdsaSignature(this.__wbg_ptr, signature_type, signature_bytes);
|
|
920
|
+
return ret;
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* @param {SignatureRequestType} signature_type
|
|
924
|
+
* @param {PasskeySignature} signature
|
|
925
|
+
* @returns {Promise<void>}
|
|
926
|
+
*/
|
|
927
|
+
addPasskeySignature(signature_type, signature) {
|
|
928
|
+
_assertClass(signature, PasskeySignature);
|
|
929
|
+
var ptr0 = signature.__destroy_into_raw();
|
|
930
|
+
const ret = wasm.client_addPasskeySignature(this.__wbg_ptr, signature_type, ptr0);
|
|
931
|
+
return ret;
|
|
932
|
+
}
|
|
933
|
+
/**
|
|
934
|
+
* @param {SignatureRequestType} signature_type
|
|
935
|
+
* @param {Uint8Array} signature_bytes
|
|
936
|
+
* @param {bigint} chain_id
|
|
937
|
+
* @param {bigint | null} [block_number]
|
|
938
|
+
* @returns {Promise<void>}
|
|
939
|
+
*/
|
|
940
|
+
addScwSignature(signature_type, signature_bytes, chain_id, block_number) {
|
|
941
|
+
const ret = wasm.client_addScwSignature(this.__wbg_ptr, signature_type, signature_bytes, chain_id, !isLikeNone(block_number), isLikeNone(block_number) ? BigInt(0) : block_number);
|
|
942
|
+
return ret;
|
|
943
|
+
}
|
|
944
|
+
/**
|
|
945
|
+
* @returns {Promise<void>}
|
|
946
|
+
*/
|
|
947
|
+
applySignatureRequests() {
|
|
948
|
+
const ret = wasm.client_applySignatureRequests(this.__wbg_ptr);
|
|
949
|
+
return ret;
|
|
950
|
+
}
|
|
951
|
+
/**
|
|
952
|
+
* @param {string} signature_text
|
|
953
|
+
* @returns {Uint8Array}
|
|
954
|
+
*/
|
|
955
|
+
signWithInstallationKey(signature_text) {
|
|
956
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
957
|
+
const len0 = WASM_VECTOR_LEN;
|
|
958
|
+
const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
|
|
959
|
+
if (ret[2]) {
|
|
960
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
961
|
+
}
|
|
962
|
+
return takeFromExternrefTable0(ret[0]);
|
|
963
|
+
}
|
|
964
|
+
/**
|
|
965
|
+
* @param {string} signature_text
|
|
966
|
+
* @param {Uint8Array} signature_bytes
|
|
967
|
+
*/
|
|
968
|
+
verifySignedWithInstallationKey(signature_text, signature_bytes) {
|
|
969
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
970
|
+
const len0 = WASM_VECTOR_LEN;
|
|
971
|
+
const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
|
|
972
|
+
if (ret[1]) {
|
|
973
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
/**
|
|
977
|
+
* @param {Consent[]} records
|
|
978
|
+
* @returns {Promise<void>}
|
|
979
|
+
*/
|
|
980
|
+
setConsentStates(records) {
|
|
981
|
+
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
982
|
+
const len0 = WASM_VECTOR_LEN;
|
|
983
|
+
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
984
|
+
return ret;
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* @param {ConsentEntityType} entity_type
|
|
988
|
+
* @param {string} entity
|
|
989
|
+
* @returns {Promise<ConsentState>}
|
|
990
|
+
*/
|
|
991
|
+
getConsentState(entity_type, entity) {
|
|
992
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
993
|
+
const len0 = WASM_VECTOR_LEN;
|
|
994
|
+
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
995
|
+
return ret;
|
|
996
|
+
}
|
|
995
997
|
/**
|
|
996
998
|
*
|
|
997
999
|
* * Get the client's inbox state.
|
|
@@ -2106,6 +2108,15 @@ export class Conversations {
|
|
|
2106
2108
|
}
|
|
2107
2109
|
return takeFromExternrefTable0(ret[0]);
|
|
2108
2110
|
}
|
|
2111
|
+
/**
|
|
2112
|
+
* Returns a 'ReadableStream' of Conversations
|
|
2113
|
+
* @param {ConversationType | null} [conversation_type]
|
|
2114
|
+
* @returns {Promise<ReadableStream>}
|
|
2115
|
+
*/
|
|
2116
|
+
streamLocal(conversation_type) {
|
|
2117
|
+
const ret = wasm.conversations_streamLocal(this.__wbg_ptr, isLikeNone(conversation_type) ? 3 : conversation_type);
|
|
2118
|
+
return ret;
|
|
2119
|
+
}
|
|
2109
2120
|
/**
|
|
2110
2121
|
* @param {any} callback
|
|
2111
2122
|
* @param {ConversationType | null} [conversation_type]
|
|
@@ -2528,7 +2539,7 @@ export class GroupMember {
|
|
|
2528
2539
|
set inboxId(arg0) {
|
|
2529
2540
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2530
2541
|
const len0 = WASM_VECTOR_LEN;
|
|
2531
|
-
wasm.
|
|
2542
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
2532
2543
|
}
|
|
2533
2544
|
/**
|
|
2534
2545
|
* @returns {Identifier[]}
|
|
@@ -2889,7 +2900,7 @@ export class InboxState {
|
|
|
2889
2900
|
set inboxId(arg0) {
|
|
2890
2901
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2891
2902
|
const len0 = WASM_VECTOR_LEN;
|
|
2892
|
-
wasm.
|
|
2903
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
2893
2904
|
}
|
|
2894
2905
|
/**
|
|
2895
2906
|
* @returns {Identifier}
|
|
@@ -3155,6 +3166,14 @@ const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undef
|
|
|
3155
3166
|
|
|
3156
3167
|
export class IntoUnderlyingSource {
|
|
3157
3168
|
|
|
3169
|
+
static __wrap(ptr) {
|
|
3170
|
+
ptr = ptr >>> 0;
|
|
3171
|
+
const obj = Object.create(IntoUnderlyingSource.prototype);
|
|
3172
|
+
obj.__wbg_ptr = ptr;
|
|
3173
|
+
IntoUnderlyingSourceFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3174
|
+
return obj;
|
|
3175
|
+
}
|
|
3176
|
+
|
|
3158
3177
|
__destroy_into_raw() {
|
|
3159
3178
|
const ptr = this.__wbg_ptr;
|
|
3160
3179
|
this.__wbg_ptr = 0;
|
|
@@ -3213,7 +3232,7 @@ export class KeyPackageStatus {
|
|
|
3213
3232
|
_assertClass(arg0, Lifetime);
|
|
3214
3233
|
ptr0 = arg0.__destroy_into_raw();
|
|
3215
3234
|
}
|
|
3216
|
-
wasm.
|
|
3235
|
+
wasm.__wbg_set_createdmoptions_messageDisappearingSettings(this.__wbg_ptr, ptr0);
|
|
3217
3236
|
}
|
|
3218
3237
|
/**
|
|
3219
3238
|
* @returns {string | undefined}
|
|
@@ -3266,14 +3285,14 @@ export class Lifetime {
|
|
|
3266
3285
|
* @returns {bigint}
|
|
3267
3286
|
*/
|
|
3268
3287
|
get not_before() {
|
|
3269
|
-
const ret = wasm.
|
|
3288
|
+
const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
|
|
3270
3289
|
return BigInt.asUintN(64, ret);
|
|
3271
3290
|
}
|
|
3272
3291
|
/**
|
|
3273
3292
|
* @param {bigint} arg0
|
|
3274
3293
|
*/
|
|
3275
3294
|
set not_before(arg0) {
|
|
3276
|
-
wasm.
|
|
3295
|
+
wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
|
|
3277
3296
|
}
|
|
3278
3297
|
/**
|
|
3279
3298
|
* @returns {bigint}
|
|
@@ -3351,7 +3370,7 @@ export class ListConversationsOptions {
|
|
|
3351
3370
|
* @param {bigint | null} [arg0]
|
|
3352
3371
|
*/
|
|
3353
3372
|
set createdAfterNs(arg0) {
|
|
3354
|
-
wasm.
|
|
3373
|
+
wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
3355
3374
|
}
|
|
3356
3375
|
/**
|
|
3357
3376
|
* @returns {bigint | undefined}
|
|
@@ -3458,7 +3477,7 @@ export class ListMessagesOptions {
|
|
|
3458
3477
|
* @param {bigint | null} [arg0]
|
|
3459
3478
|
*/
|
|
3460
3479
|
set sentBeforeNs(arg0) {
|
|
3461
|
-
wasm.
|
|
3480
|
+
wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
3462
3481
|
}
|
|
3463
3482
|
/**
|
|
3464
3483
|
* @returns {bigint | undefined}
|
|
@@ -3843,14 +3862,14 @@ export class MessageDisappearingSettings {
|
|
|
3843
3862
|
* @returns {bigint}
|
|
3844
3863
|
*/
|
|
3845
3864
|
get inNs() {
|
|
3846
|
-
const ret = wasm.
|
|
3865
|
+
const ret = wasm.__wbg_get_lifetime_not_after(this.__wbg_ptr);
|
|
3847
3866
|
return ret;
|
|
3848
3867
|
}
|
|
3849
3868
|
/**
|
|
3850
3869
|
* @param {bigint} arg0
|
|
3851
3870
|
*/
|
|
3852
3871
|
set inNs(arg0) {
|
|
3853
|
-
wasm.
|
|
3872
|
+
wasm.__wbg_set_lifetime_not_after(this.__wbg_ptr, arg0);
|
|
3854
3873
|
}
|
|
3855
3874
|
/**
|
|
3856
3875
|
* @param {bigint} from_ns
|
|
@@ -4332,7 +4351,7 @@ export class Reaction {
|
|
|
4332
4351
|
set reference(arg0) {
|
|
4333
4352
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4334
4353
|
const len0 = WASM_VECTOR_LEN;
|
|
4335
|
-
wasm.
|
|
4354
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
4336
4355
|
}
|
|
4337
4356
|
/**
|
|
4338
4357
|
* @returns {string}
|
|
@@ -4355,7 +4374,7 @@ export class Reaction {
|
|
|
4355
4374
|
set referenceInboxId(arg0) {
|
|
4356
4375
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4357
4376
|
const len0 = WASM_VECTOR_LEN;
|
|
4358
|
-
wasm.
|
|
4377
|
+
wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
|
|
4359
4378
|
}
|
|
4360
4379
|
/**
|
|
4361
4380
|
* @returns {ReactionAction}
|
|
@@ -4787,11 +4806,11 @@ function __wbg_get_imports() {
|
|
|
4787
4806
|
const ret = clearInterval(arg0);
|
|
4788
4807
|
return ret;
|
|
4789
4808
|
};
|
|
4790
|
-
imports.wbg.
|
|
4809
|
+
imports.wbg.__wbg_clearTimeout_121ece162c044c80 = function(arg0) {
|
|
4791
4810
|
const ret = clearTimeout(arg0);
|
|
4792
4811
|
return ret;
|
|
4793
4812
|
};
|
|
4794
|
-
imports.wbg.
|
|
4813
|
+
imports.wbg.__wbg_clearTimeout_5a54f8841c30079a = function(arg0) {
|
|
4795
4814
|
const ret = clearTimeout(arg0);
|
|
4796
4815
|
return ret;
|
|
4797
4816
|
};
|
|
@@ -4892,12 +4911,12 @@ function __wbg_get_imports() {
|
|
|
4892
4911
|
imports.wbg.__wbg_error_80de38b3f7cc3c3c = function(arg0, arg1, arg2, arg3) {
|
|
4893
4912
|
console.error(arg0, arg1, arg2, arg3);
|
|
4894
4913
|
};
|
|
4895
|
-
imports.wbg.
|
|
4896
|
-
const ret =
|
|
4914
|
+
imports.wbg.__wbg_fetch_43e69ddf509149f8 = function(arg0) {
|
|
4915
|
+
const ret = fetch(arg0);
|
|
4897
4916
|
return ret;
|
|
4898
4917
|
};
|
|
4899
|
-
imports.wbg.
|
|
4900
|
-
const ret = fetch(
|
|
4918
|
+
imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
|
|
4919
|
+
const ret = arg0.fetch(arg1);
|
|
4901
4920
|
return ret;
|
|
4902
4921
|
};
|
|
4903
4922
|
imports.wbg.__wbg_fill_3311db9cdf18c6c4 = function(arg0, arg1, arg2, arg3) {
|
|
@@ -4950,7 +4969,7 @@ function __wbg_get_imports() {
|
|
|
4950
4969
|
imports.wbg.__wbg_getRandomValues_3c9c0d586e575a16 = function() { return handleError(function (arg0, arg1) {
|
|
4951
4970
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
4952
4971
|
}, arguments) };
|
|
4953
|
-
imports.wbg.
|
|
4972
|
+
imports.wbg.__wbg_getRandomValues_4222c05e65c4cb4d = function() { return handleError(function (arg0, arg1) {
|
|
4954
4973
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
4955
4974
|
}, arguments) };
|
|
4956
4975
|
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
@@ -5187,7 +5206,7 @@ function __wbg_get_imports() {
|
|
|
5187
5206
|
const a = state0.a;
|
|
5188
5207
|
state0.a = 0;
|
|
5189
5208
|
try {
|
|
5190
|
-
return
|
|
5209
|
+
return __wbg_adapter_775(a, state0.b, arg0, arg1);
|
|
5191
5210
|
} finally {
|
|
5192
5211
|
state0.a = a;
|
|
5193
5212
|
}
|
|
@@ -5250,6 +5269,10 @@ function __wbg_get_imports() {
|
|
|
5250
5269
|
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
5251
5270
|
return ret;
|
|
5252
5271
|
};
|
|
5272
|
+
imports.wbg.__wbg_newwithintounderlyingsource_b47f6a6a596a7f24 = function(arg0, arg1) {
|
|
5273
|
+
const ret = new ReadableStream(IntoUnderlyingSource.__wrap(arg0), arg1);
|
|
5274
|
+
return ret;
|
|
5275
|
+
};
|
|
5253
5276
|
imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
|
|
5254
5277
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
5255
5278
|
return ret;
|
|
@@ -5282,6 +5305,11 @@ function __wbg_get_imports() {
|
|
|
5282
5305
|
const ret = arg0.now();
|
|
5283
5306
|
return ret;
|
|
5284
5307
|
};
|
|
5308
|
+
imports.wbg.__wbg_now_7b5abb0a69e028e7 = function(arg0) {
|
|
5309
|
+
const ret = globalThis.performance.now();
|
|
5310
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
5311
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
5312
|
+
};
|
|
5285
5313
|
imports.wbg.__wbg_now_807e54c39636c349 = function() {
|
|
5286
5314
|
const ret = Date.now();
|
|
5287
5315
|
return ret;
|
|
@@ -5290,24 +5318,19 @@ function __wbg_get_imports() {
|
|
|
5290
5318
|
const ret = arg0.now();
|
|
5291
5319
|
return ret;
|
|
5292
5320
|
};
|
|
5293
|
-
imports.wbg.
|
|
5294
|
-
const ret = globalThis.performance.now();
|
|
5295
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
5296
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
5297
|
-
};
|
|
5298
|
-
imports.wbg.__wbg_onconsentupdate_4ebce420dd750015 = function(arg0, arg1) {
|
|
5321
|
+
imports.wbg.__wbg_onconsentupdate_41b7339687cc011c = function(arg0, arg1) {
|
|
5299
5322
|
arg0.on_consent_update(arg1);
|
|
5300
5323
|
};
|
|
5301
|
-
imports.wbg.
|
|
5324
|
+
imports.wbg.__wbg_onconversation_7404b2379eb67834 = function(arg0, arg1) {
|
|
5302
5325
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
5303
5326
|
};
|
|
5304
|
-
imports.wbg.
|
|
5327
|
+
imports.wbg.__wbg_onerror_eb2eb9eb1d76fa24 = function(arg0, arg1) {
|
|
5305
5328
|
arg0.on_error(arg1);
|
|
5306
5329
|
};
|
|
5307
|
-
imports.wbg.
|
|
5330
|
+
imports.wbg.__wbg_onmessage_1ad7dbda90e7e92d = function(arg0, arg1) {
|
|
5308
5331
|
arg0.on_message(Message.__wrap(arg1));
|
|
5309
5332
|
};
|
|
5310
|
-
imports.wbg.
|
|
5333
|
+
imports.wbg.__wbg_onuserpreferenceupdate_71b80aff3461dfa2 = function(arg0, arg1, arg2) {
|
|
5311
5334
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
5312
5335
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
5313
5336
|
arg0.on_user_preference_update(v0);
|
|
@@ -5391,14 +5414,14 @@ function __wbg_get_imports() {
|
|
|
5391
5414
|
const ret = setInterval(arg0, arg1);
|
|
5392
5415
|
return ret;
|
|
5393
5416
|
}, arguments) };
|
|
5394
|
-
imports.wbg.__wbg_setTimeout_2e707715f8cc9497 = function(arg0, arg1) {
|
|
5395
|
-
const ret = setTimeout(arg0, arg1);
|
|
5396
|
-
return ret;
|
|
5397
|
-
};
|
|
5398
5417
|
imports.wbg.__wbg_setTimeout_db2dbaeefb6f39c7 = function() { return handleError(function (arg0, arg1) {
|
|
5399
5418
|
const ret = setTimeout(arg0, arg1);
|
|
5400
5419
|
return ret;
|
|
5401
5420
|
}, arguments) };
|
|
5421
|
+
imports.wbg.__wbg_setTimeout_e64b2910d9d7169a = function(arg0, arg1) {
|
|
5422
|
+
const ret = setTimeout(arg0, arg1);
|
|
5423
|
+
return ret;
|
|
5424
|
+
};
|
|
5402
5425
|
imports.wbg.__wbg_setTimeout_eefe7f4c234b0c6b = function() { return handleError(function (arg0, arg1) {
|
|
5403
5426
|
const ret = setTimeout(arg0, arg1);
|
|
5404
5427
|
return ret;
|
|
@@ -5441,6 +5464,9 @@ function __wbg_get_imports() {
|
|
|
5441
5464
|
imports.wbg.__wbg_setheaders_834c0bdb6a8949ad = function(arg0, arg1) {
|
|
5442
5465
|
arg0.headers = arg1;
|
|
5443
5466
|
};
|
|
5467
|
+
imports.wbg.__wbg_sethighwatermark_793c99c89830c8e9 = function(arg0, arg1) {
|
|
5468
|
+
arg0.highWaterMark = arg1;
|
|
5469
|
+
};
|
|
5444
5470
|
imports.wbg.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
|
|
5445
5471
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
5446
5472
|
};
|
|
@@ -5513,15 +5539,15 @@ function __wbg_get_imports() {
|
|
|
5513
5539
|
const ret = arg0.then(arg1, arg2);
|
|
5514
5540
|
return ret;
|
|
5515
5541
|
};
|
|
5516
|
-
imports.wbg.__wbg_toSlice_543b72cb118ed345 = function(arg0, arg1, arg2, arg3) {
|
|
5517
|
-
JSUtils.toSlice(arg0, arg1, arg2 >>> 0, arg3 >>> 0);
|
|
5518
|
-
};
|
|
5519
5542
|
imports.wbg.__wbg_toString_ba82658ec370add0 = function() { return handleError(function (arg0, arg1) {
|
|
5520
5543
|
const ret = arg0.toString(arg1);
|
|
5521
5544
|
return ret;
|
|
5522
5545
|
}, arguments) };
|
|
5523
|
-
imports.wbg.
|
|
5524
|
-
|
|
5546
|
+
imports.wbg.__wbg_toU8Array_7fa7fb3ae8554ad0 = function(arg0, arg1, arg2, arg3) {
|
|
5547
|
+
JSArrayBufferCopy.toU8Array(arg0, arg1 >>> 0, arg2 >>> 0, arg3);
|
|
5548
|
+
};
|
|
5549
|
+
imports.wbg.__wbg_toU8Slice_11519abfa5176ae4 = function(arg0, arg1, arg2, arg3) {
|
|
5550
|
+
JSArrayBufferCopy.toU8Slice(arg0, arg1, arg2 >>> 0, arg3 >>> 0);
|
|
5525
5551
|
};
|
|
5526
5552
|
imports.wbg.__wbg_truncate_29261a6365c72b01 = function() { return handleError(function (arg0, arg1) {
|
|
5527
5553
|
arg0.truncate(arg1 >>> 0);
|
|
@@ -5591,20 +5617,20 @@ function __wbg_get_imports() {
|
|
|
5591
5617
|
const ret = false;
|
|
5592
5618
|
return ret;
|
|
5593
5619
|
};
|
|
5594
|
-
imports.wbg.
|
|
5595
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5620
|
+
imports.wbg.__wbindgen_closure_wrapper17557 = function(arg0, arg1, arg2) {
|
|
5621
|
+
const ret = makeMutClosure(arg0, arg1, 4207, __wbg_adapter_50);
|
|
5596
5622
|
return ret;
|
|
5597
5623
|
};
|
|
5598
|
-
imports.wbg.
|
|
5599
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5624
|
+
imports.wbg.__wbindgen_closure_wrapper17717 = function(arg0, arg1, arg2) {
|
|
5625
|
+
const ret = makeMutClosure(arg0, arg1, 4265, __wbg_adapter_53);
|
|
5600
5626
|
return ret;
|
|
5601
5627
|
};
|
|
5602
|
-
imports.wbg.
|
|
5603
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5628
|
+
imports.wbg.__wbindgen_closure_wrapper20829 = function(arg0, arg1, arg2) {
|
|
5629
|
+
const ret = makeMutClosure(arg0, arg1, 4570, __wbg_adapter_56);
|
|
5604
5630
|
return ret;
|
|
5605
5631
|
};
|
|
5606
|
-
imports.wbg.
|
|
5607
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5632
|
+
imports.wbg.__wbindgen_closure_wrapper20939 = function(arg0, arg1, arg2) {
|
|
5633
|
+
const ret = makeMutClosure(arg0, arg1, 4581, __wbg_adapter_59);
|
|
5608
5634
|
return ret;
|
|
5609
5635
|
};
|
|
5610
5636
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|