@xmtp/wasm-bindings 1.6.1-rc3 → 1.6.1-rc4
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 +380 -380
- package/dist/bindings_wasm.js +184 -184
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +335 -335
- package/dist/version.json +3 -3
- package/package.json +1 -1
package/dist/bindings_wasm.js
CHANGED
|
@@ -236,12 +236,6 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
236
236
|
return ptr;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
function _assertClass(instance, klass) {
|
|
240
|
-
if (!(instance instanceof klass)) {
|
|
241
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
239
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
246
240
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
247
241
|
for (let i = 0; i < array.length; i++) {
|
|
@@ -252,61 +246,29 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
252
246
|
return ptr;
|
|
253
247
|
}
|
|
254
248
|
|
|
249
|
+
function _assertClass(instance, klass) {
|
|
250
|
+
if (!(instance instanceof klass)) {
|
|
251
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
255
|
function takeFromExternrefTable0(idx) {
|
|
256
256
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
257
257
|
wasm.__externref_table_dealloc(idx);
|
|
258
258
|
return value;
|
|
259
259
|
}
|
|
260
260
|
/**
|
|
261
|
-
* @param {
|
|
262
|
-
* @
|
|
263
|
-
|
|
264
|
-
export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
|
|
265
|
-
_assertClass(multiRemoteAttachment, MultiRemoteAttachment);
|
|
266
|
-
var ptr0 = multiRemoteAttachment.__destroy_into_raw();
|
|
267
|
-
const ret = wasm.encodeMultiRemoteAttachment(ptr0);
|
|
268
|
-
if (ret[2]) {
|
|
269
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
270
|
-
}
|
|
271
|
-
return takeFromExternrefTable0(ret[0]);
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* @param {Uint8Array} bytes
|
|
276
|
-
* @returns {MultiRemoteAttachment}
|
|
277
|
-
*/
|
|
278
|
-
export function decodeMultiRemoteAttachment(bytes) {
|
|
279
|
-
const ret = wasm.decodeMultiRemoteAttachment(bytes);
|
|
280
|
-
if (ret[2]) {
|
|
281
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
282
|
-
}
|
|
283
|
-
return MultiRemoteAttachment.__wrap(ret[0]);
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* @param {Uint8Array} bytes
|
|
288
|
-
* @returns {Reaction}
|
|
289
|
-
*/
|
|
290
|
-
export function decodeReaction(bytes) {
|
|
291
|
-
const ret = wasm.decodeReaction(bytes);
|
|
292
|
-
if (ret[2]) {
|
|
293
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
294
|
-
}
|
|
295
|
-
return Reaction.__wrap(ret[0]);
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
/**
|
|
299
|
-
* @param {Reaction} reaction
|
|
300
|
-
* @returns {Uint8Array}
|
|
261
|
+
* @param {string} signature_text
|
|
262
|
+
* @param {Uint8Array} signature_bytes
|
|
263
|
+
* @param {Uint8Array} public_key
|
|
301
264
|
*/
|
|
302
|
-
export function
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
const ret = wasm.
|
|
306
|
-
if (ret[
|
|
307
|
-
throw takeFromExternrefTable0(ret[
|
|
265
|
+
export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
|
|
266
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
267
|
+
const len0 = WASM_VECTOR_LEN;
|
|
268
|
+
const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
|
|
269
|
+
if (ret[1]) {
|
|
270
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
308
271
|
}
|
|
309
|
-
return takeFromExternrefTable0(ret[0]);
|
|
310
272
|
}
|
|
311
273
|
|
|
312
274
|
/**
|
|
@@ -333,20 +295,6 @@ export function revokeInstallationsSignatureRequest(v3_host, gateway_host, recov
|
|
|
333
295
|
return SignatureRequestHandle.__wrap(ret[0]);
|
|
334
296
|
}
|
|
335
297
|
|
|
336
|
-
/**
|
|
337
|
-
* @param {string} signature_text
|
|
338
|
-
* @param {Uint8Array} signature_bytes
|
|
339
|
-
* @param {Uint8Array} public_key
|
|
340
|
-
*/
|
|
341
|
-
export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
|
|
342
|
-
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
343
|
-
const len0 = WASM_VECTOR_LEN;
|
|
344
|
-
const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
|
|
345
|
-
if (ret[1]) {
|
|
346
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
|
|
350
298
|
/**
|
|
351
299
|
* @param {string} v3_host
|
|
352
300
|
* @param {string | null | undefined} gateway_host
|
|
@@ -364,20 +312,55 @@ export function applySignatureRequest(v3_host, gateway_host, signature_request)
|
|
|
364
312
|
}
|
|
365
313
|
|
|
366
314
|
/**
|
|
367
|
-
* @param {
|
|
368
|
-
* @
|
|
369
|
-
* @param {string[]} inbox_ids
|
|
370
|
-
* @returns {Promise<InboxState[]>}
|
|
315
|
+
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
316
|
+
* @returns {Uint8Array}
|
|
371
317
|
*/
|
|
372
|
-
export function
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
318
|
+
export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
|
|
319
|
+
_assertClass(multiRemoteAttachment, MultiRemoteAttachment);
|
|
320
|
+
var ptr0 = multiRemoteAttachment.__destroy_into_raw();
|
|
321
|
+
const ret = wasm.encodeMultiRemoteAttachment(ptr0);
|
|
322
|
+
if (ret[2]) {
|
|
323
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
324
|
+
}
|
|
325
|
+
return takeFromExternrefTable0(ret[0]);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* @param {Uint8Array} bytes
|
|
330
|
+
* @returns {MultiRemoteAttachment}
|
|
331
|
+
*/
|
|
332
|
+
export function decodeMultiRemoteAttachment(bytes) {
|
|
333
|
+
const ret = wasm.decodeMultiRemoteAttachment(bytes);
|
|
334
|
+
if (ret[2]) {
|
|
335
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
336
|
+
}
|
|
337
|
+
return MultiRemoteAttachment.__wrap(ret[0]);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* @param {Reaction} reaction
|
|
342
|
+
* @returns {Uint8Array}
|
|
343
|
+
*/
|
|
344
|
+
export function encodeReaction(reaction) {
|
|
345
|
+
_assertClass(reaction, Reaction);
|
|
346
|
+
var ptr0 = reaction.__destroy_into_raw();
|
|
347
|
+
const ret = wasm.encodeReaction(ptr0);
|
|
348
|
+
if (ret[2]) {
|
|
349
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
350
|
+
}
|
|
351
|
+
return takeFromExternrefTable0(ret[0]);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* @param {Uint8Array} bytes
|
|
356
|
+
* @returns {Reaction}
|
|
357
|
+
*/
|
|
358
|
+
export function decodeReaction(bytes) {
|
|
359
|
+
const ret = wasm.decodeReaction(bytes);
|
|
360
|
+
if (ret[2]) {
|
|
361
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
362
|
+
}
|
|
363
|
+
return Reaction.__wrap(ret[0]);
|
|
381
364
|
}
|
|
382
365
|
|
|
383
366
|
/**
|
|
@@ -417,6 +400,23 @@ export function createClient(host, inbox_id, account_identifier, db_path, encryp
|
|
|
417
400
|
return ret;
|
|
418
401
|
}
|
|
419
402
|
|
|
403
|
+
/**
|
|
404
|
+
* @param {string} v3_host
|
|
405
|
+
* @param {string | null | undefined} gateway_host
|
|
406
|
+
* @param {string[]} inbox_ids
|
|
407
|
+
* @returns {Promise<InboxState[]>}
|
|
408
|
+
*/
|
|
409
|
+
export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
|
|
410
|
+
const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
411
|
+
const len0 = WASM_VECTOR_LEN;
|
|
412
|
+
var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
413
|
+
var len1 = WASM_VECTOR_LEN;
|
|
414
|
+
const ptr2 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
415
|
+
const len2 = WASM_VECTOR_LEN;
|
|
416
|
+
const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
417
|
+
return ret;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
420
|
/**
|
|
421
421
|
* @param {string} v3_host
|
|
422
422
|
* @param {string | null | undefined} gateway_host
|
|
@@ -466,24 +466,24 @@ export function task_worker_entry_point(ptr) {
|
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
|
|
469
|
-
function
|
|
470
|
-
wasm.
|
|
469
|
+
function __wbg_adapter_12(arg0, arg1) {
|
|
470
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h135d62b0906d3413(arg0, arg1);
|
|
471
471
|
}
|
|
472
472
|
|
|
473
|
-
function
|
|
474
|
-
wasm.
|
|
473
|
+
function __wbg_adapter_23(arg0, arg1) {
|
|
474
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hb3fd7a1e3a7fa14d(arg0, arg1);
|
|
475
475
|
}
|
|
476
476
|
|
|
477
|
-
function
|
|
478
|
-
wasm.
|
|
477
|
+
function __wbg_adapter_26(arg0, arg1) {
|
|
478
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h849ef726e44c1bb5(arg0, arg1);
|
|
479
479
|
}
|
|
480
480
|
|
|
481
|
-
function
|
|
482
|
-
wasm.
|
|
481
|
+
function __wbg_adapter_29(arg0, arg1, arg2) {
|
|
482
|
+
wasm.closure7228_externref_shim(arg0, arg1, arg2);
|
|
483
483
|
}
|
|
484
484
|
|
|
485
|
-
function
|
|
486
|
-
wasm.
|
|
485
|
+
function __wbg_adapter_899(arg0, arg1, arg2, arg3) {
|
|
486
|
+
wasm.closure8189_externref_shim(arg0, arg1, arg2, arg3);
|
|
487
487
|
}
|
|
488
488
|
|
|
489
489
|
/**
|
|
@@ -923,27 +923,6 @@ export class Client {
|
|
|
923
923
|
const ptr = this.__destroy_into_raw();
|
|
924
924
|
wasm.__wbg_client_free(ptr, 0);
|
|
925
925
|
}
|
|
926
|
-
/**
|
|
927
|
-
* @param {ConsentEntityType} entity_type
|
|
928
|
-
* @param {string} entity
|
|
929
|
-
* @returns {Promise<ConsentState>}
|
|
930
|
-
*/
|
|
931
|
-
getConsentState(entity_type, entity) {
|
|
932
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
933
|
-
const len0 = WASM_VECTOR_LEN;
|
|
934
|
-
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
935
|
-
return ret;
|
|
936
|
-
}
|
|
937
|
-
/**
|
|
938
|
-
* @param {Consent[]} records
|
|
939
|
-
* @returns {Promise<void>}
|
|
940
|
-
*/
|
|
941
|
-
setConsentStates(records) {
|
|
942
|
-
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
943
|
-
const len0 = WASM_VECTOR_LEN;
|
|
944
|
-
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
945
|
-
return ret;
|
|
946
|
-
}
|
|
947
926
|
/**
|
|
948
927
|
* @param {SignatureRequestHandle} signature_request
|
|
949
928
|
* @returns {Promise<void>}
|
|
@@ -1040,42 +1019,24 @@ export class Client {
|
|
|
1040
1019
|
return ret;
|
|
1041
1020
|
}
|
|
1042
1021
|
/**
|
|
1043
|
-
*
|
|
1044
|
-
*
|
|
1045
|
-
*
|
|
1046
|
-
* * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
|
|
1047
|
-
* * Otherwise, the state will be read from the local database.
|
|
1048
|
-
*
|
|
1049
|
-
* @param {boolean} refresh_from_network
|
|
1050
|
-
* @returns {Promise<InboxState>}
|
|
1051
|
-
*/
|
|
1052
|
-
inboxState(refresh_from_network) {
|
|
1053
|
-
const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
|
|
1054
|
-
return ret;
|
|
1055
|
-
}
|
|
1056
|
-
/**
|
|
1057
|
-
* @param {string} inbox_id
|
|
1058
|
-
* @returns {Promise<InboxState>}
|
|
1022
|
+
* @param {ConsentEntityType} entity_type
|
|
1023
|
+
* @param {string} entity
|
|
1024
|
+
* @returns {Promise<ConsentState>}
|
|
1059
1025
|
*/
|
|
1060
|
-
|
|
1061
|
-
const ptr0 = passStringToWasm0(
|
|
1026
|
+
getConsentState(entity_type, entity) {
|
|
1027
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1062
1028
|
const len0 = WASM_VECTOR_LEN;
|
|
1063
|
-
const ret = wasm.
|
|
1029
|
+
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
1064
1030
|
return ret;
|
|
1065
1031
|
}
|
|
1066
1032
|
/**
|
|
1067
|
-
*
|
|
1068
|
-
*
|
|
1069
|
-
* *
|
|
1070
|
-
* * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
|
|
1071
|
-
*
|
|
1072
|
-
* @param {string[]} installation_ids
|
|
1073
|
-
* @returns {Promise<any>}
|
|
1033
|
+
* @param {Consent[]} records
|
|
1034
|
+
* @returns {Promise<void>}
|
|
1074
1035
|
*/
|
|
1075
|
-
|
|
1076
|
-
const ptr0 = passArrayJsValueToWasm0(
|
|
1036
|
+
setConsentStates(records) {
|
|
1037
|
+
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
1077
1038
|
const len0 = WASM_VECTOR_LEN;
|
|
1078
|
-
const ret = wasm.
|
|
1039
|
+
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
1079
1040
|
return ret;
|
|
1080
1041
|
}
|
|
1081
1042
|
/**
|
|
@@ -1275,6 +1236,45 @@ export class Client {
|
|
|
1275
1236
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1276
1237
|
}
|
|
1277
1238
|
}
|
|
1239
|
+
/**
|
|
1240
|
+
*
|
|
1241
|
+
* * Get the client's inbox state.
|
|
1242
|
+
* *
|
|
1243
|
+
* * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
|
|
1244
|
+
* * Otherwise, the state will be read from the local database.
|
|
1245
|
+
*
|
|
1246
|
+
* @param {boolean} refresh_from_network
|
|
1247
|
+
* @returns {Promise<InboxState>}
|
|
1248
|
+
*/
|
|
1249
|
+
inboxState(refresh_from_network) {
|
|
1250
|
+
const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
|
|
1251
|
+
return ret;
|
|
1252
|
+
}
|
|
1253
|
+
/**
|
|
1254
|
+
* @param {string} inbox_id
|
|
1255
|
+
* @returns {Promise<InboxState>}
|
|
1256
|
+
*/
|
|
1257
|
+
getLatestInboxState(inbox_id) {
|
|
1258
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1259
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1260
|
+
const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
|
|
1261
|
+
return ret;
|
|
1262
|
+
}
|
|
1263
|
+
/**
|
|
1264
|
+
*
|
|
1265
|
+
* * Get key package statuses for a list of installation IDs.
|
|
1266
|
+
* *
|
|
1267
|
+
* * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
|
|
1268
|
+
*
|
|
1269
|
+
* @param {string[]} installation_ids
|
|
1270
|
+
* @returns {Promise<any>}
|
|
1271
|
+
*/
|
|
1272
|
+
getKeyPackageStatusesForInstallationIds(installation_ids) {
|
|
1273
|
+
const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
1274
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1275
|
+
const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
|
|
1276
|
+
return ret;
|
|
1277
|
+
}
|
|
1278
1278
|
}
|
|
1279
1279
|
if (Symbol.dispose) Client.prototype[Symbol.dispose] = Client.prototype.free;
|
|
1280
1280
|
|
|
@@ -1429,7 +1429,7 @@ export class ContentTypeId {
|
|
|
1429
1429
|
set authorityId(arg0) {
|
|
1430
1430
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1431
1431
|
const len0 = WASM_VECTOR_LEN;
|
|
1432
|
-
wasm.
|
|
1432
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
1433
1433
|
}
|
|
1434
1434
|
/**
|
|
1435
1435
|
* @returns {string}
|
|
@@ -3939,7 +3939,7 @@ export class InboxState {
|
|
|
3939
3939
|
set inboxId(arg0) {
|
|
3940
3940
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3941
3941
|
const len0 = WASM_VECTOR_LEN;
|
|
3942
|
-
wasm.
|
|
3942
|
+
wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
|
|
3943
3943
|
}
|
|
3944
3944
|
/**
|
|
3945
3945
|
* @returns {Identifier}
|
|
@@ -4563,7 +4563,7 @@ export class ListMessagesOptions {
|
|
|
4563
4563
|
* @param {bigint | null} [arg0]
|
|
4564
4564
|
*/
|
|
4565
4565
|
set sentBeforeNs(arg0) {
|
|
4566
|
-
wasm.
|
|
4566
|
+
wasm.__wbg_set_listmessagesoptions_sentBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
4567
4567
|
}
|
|
4568
4568
|
/**
|
|
4569
4569
|
* @returns {bigint | undefined}
|
|
@@ -4576,7 +4576,7 @@ export class ListMessagesOptions {
|
|
|
4576
4576
|
* @param {bigint | null} [arg0]
|
|
4577
4577
|
*/
|
|
4578
4578
|
set sentAfterNs(arg0) {
|
|
4579
|
-
wasm.
|
|
4579
|
+
wasm.__wbg_set_listmessagesoptions_sentAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
4580
4580
|
}
|
|
4581
4581
|
/**
|
|
4582
4582
|
* @returns {bigint | undefined}
|
|
@@ -4589,7 +4589,7 @@ export class ListMessagesOptions {
|
|
|
4589
4589
|
* @param {bigint | null} [arg0]
|
|
4590
4590
|
*/
|
|
4591
4591
|
set limit(arg0) {
|
|
4592
|
-
wasm.
|
|
4592
|
+
wasm.__wbg_set_listmessagesoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
4593
4593
|
}
|
|
4594
4594
|
/**
|
|
4595
4595
|
* @returns {DeliveryStatus | undefined}
|
|
@@ -4790,14 +4790,14 @@ export class Message {
|
|
|
4790
4790
|
* @returns {bigint}
|
|
4791
4791
|
*/
|
|
4792
4792
|
get sentAtNs() {
|
|
4793
|
-
const ret = wasm.
|
|
4793
|
+
const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
|
|
4794
4794
|
return ret;
|
|
4795
4795
|
}
|
|
4796
4796
|
/**
|
|
4797
4797
|
* @param {bigint} arg0
|
|
4798
4798
|
*/
|
|
4799
4799
|
set sentAtNs(arg0) {
|
|
4800
|
-
wasm.
|
|
4800
|
+
wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
|
|
4801
4801
|
}
|
|
4802
4802
|
/**
|
|
4803
4803
|
* @returns {string}
|
|
@@ -5547,7 +5547,7 @@ export class Reaction {
|
|
|
5547
5547
|
set reference(arg0) {
|
|
5548
5548
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5549
5549
|
const len0 = WASM_VECTOR_LEN;
|
|
5550
|
-
wasm.
|
|
5550
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
5551
5551
|
}
|
|
5552
5552
|
/**
|
|
5553
5553
|
* @returns {string}
|
|
@@ -5606,7 +5606,7 @@ export class Reaction {
|
|
|
5606
5606
|
set content(arg0) {
|
|
5607
5607
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5608
5608
|
const len0 = WASM_VECTOR_LEN;
|
|
5609
|
-
wasm.
|
|
5609
|
+
wasm.__wbg_set_reaction_content(this.__wbg_ptr, ptr0, len0);
|
|
5610
5610
|
}
|
|
5611
5611
|
/**
|
|
5612
5612
|
* @returns {ReactionSchema}
|
|
@@ -5689,7 +5689,7 @@ export class ReactionPayload {
|
|
|
5689
5689
|
set reference(arg0) {
|
|
5690
5690
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5691
5691
|
const len0 = WASM_VECTOR_LEN;
|
|
5692
|
-
wasm.
|
|
5692
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
5693
5693
|
}
|
|
5694
5694
|
/**
|
|
5695
5695
|
* @returns {string}
|
|
@@ -5748,7 +5748,7 @@ export class ReactionPayload {
|
|
|
5748
5748
|
set content(arg0) {
|
|
5749
5749
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5750
5750
|
const len0 = WASM_VECTOR_LEN;
|
|
5751
|
-
wasm.
|
|
5751
|
+
wasm.__wbg_set_reaction_content(this.__wbg_ptr, ptr0, len0);
|
|
5752
5752
|
}
|
|
5753
5753
|
/**
|
|
5754
5754
|
* @returns {ReactionSchemaPayload}
|
|
@@ -5840,7 +5840,7 @@ export class RemoteAttachment {
|
|
|
5840
5840
|
set url(arg0) {
|
|
5841
5841
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5842
5842
|
const len0 = WASM_VECTOR_LEN;
|
|
5843
|
-
wasm.
|
|
5843
|
+
wasm.__wbg_set_conversationdebuginfo_forkDetails(this.__wbg_ptr, ptr0, len0);
|
|
5844
5844
|
}
|
|
5845
5845
|
/**
|
|
5846
5846
|
* @returns {string}
|
|
@@ -5863,7 +5863,7 @@ export class RemoteAttachment {
|
|
|
5863
5863
|
set contentDigest(arg0) {
|
|
5864
5864
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5865
5865
|
const len0 = WASM_VECTOR_LEN;
|
|
5866
|
-
wasm.
|
|
5866
|
+
wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
|
|
5867
5867
|
}
|
|
5868
5868
|
/**
|
|
5869
5869
|
* @returns {Uint8Array}
|
|
@@ -5880,7 +5880,7 @@ export class RemoteAttachment {
|
|
|
5880
5880
|
set secret(arg0) {
|
|
5881
5881
|
const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
5882
5882
|
const len0 = WASM_VECTOR_LEN;
|
|
5883
|
-
wasm.
|
|
5883
|
+
wasm.__wbg_set_conversationdebuginfo_remoteCommitLog(this.__wbg_ptr, ptr0, len0);
|
|
5884
5884
|
}
|
|
5885
5885
|
/**
|
|
5886
5886
|
* @returns {Uint8Array}
|
|
@@ -5943,14 +5943,14 @@ export class RemoteAttachment {
|
|
|
5943
5943
|
* @returns {bigint}
|
|
5944
5944
|
*/
|
|
5945
5945
|
get contentLength() {
|
|
5946
|
-
const ret = wasm.
|
|
5946
|
+
const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
|
|
5947
5947
|
return ret;
|
|
5948
5948
|
}
|
|
5949
5949
|
/**
|
|
5950
5950
|
* @param {bigint} arg0
|
|
5951
5951
|
*/
|
|
5952
5952
|
set contentLength(arg0) {
|
|
5953
|
-
wasm.
|
|
5953
|
+
wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
|
|
5954
5954
|
}
|
|
5955
5955
|
/**
|
|
5956
5956
|
* @returns {string | undefined}
|
|
@@ -6387,7 +6387,7 @@ export class TextContent {
|
|
|
6387
6387
|
set content(arg0) {
|
|
6388
6388
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6389
6389
|
const len0 = WASM_VECTOR_LEN;
|
|
6390
|
-
wasm.
|
|
6390
|
+
wasm.__wbg_set_textcontent_content(this.__wbg_ptr, ptr0, len0);
|
|
6391
6391
|
}
|
|
6392
6392
|
}
|
|
6393
6393
|
if (Symbol.dispose) TextContent.prototype[Symbol.dispose] = TextContent.prototype.free;
|
|
@@ -6461,7 +6461,7 @@ export class TransactionMetadata {
|
|
|
6461
6461
|
set currency(arg0) {
|
|
6462
6462
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6463
6463
|
const len0 = WASM_VECTOR_LEN;
|
|
6464
|
-
wasm.
|
|
6464
|
+
wasm.__wbg_set_reaction_content(this.__wbg_ptr, ptr0, len0);
|
|
6465
6465
|
}
|
|
6466
6466
|
/**
|
|
6467
6467
|
* @returns {number}
|
|
@@ -7254,7 +7254,7 @@ function __wbg_get_imports() {
|
|
|
7254
7254
|
const a = state0.a;
|
|
7255
7255
|
state0.a = 0;
|
|
7256
7256
|
try {
|
|
7257
|
-
return
|
|
7257
|
+
return __wbg_adapter_899(a, state0.b, arg0, arg1);
|
|
7258
7258
|
} finally {
|
|
7259
7259
|
state0.a = a;
|
|
7260
7260
|
}
|
|
@@ -7354,27 +7354,27 @@ function __wbg_get_imports() {
|
|
|
7354
7354
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
7355
7355
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
7356
7356
|
};
|
|
7357
|
-
imports.wbg.
|
|
7357
|
+
imports.wbg.__wbg_onclose_9deb104d6c5aecbc = function(arg0) {
|
|
7358
7358
|
arg0.on_close();
|
|
7359
7359
|
};
|
|
7360
|
-
imports.wbg.
|
|
7360
|
+
imports.wbg.__wbg_onconsentupdate_7347e9a3d30228a5 = function(arg0, arg1) {
|
|
7361
7361
|
arg0.on_consent_update(arg1);
|
|
7362
7362
|
};
|
|
7363
|
-
imports.wbg.
|
|
7363
|
+
imports.wbg.__wbg_onconversation_33e01e95b70f8044 = function(arg0, arg1) {
|
|
7364
7364
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
7365
7365
|
};
|
|
7366
|
-
imports.wbg.
|
|
7366
|
+
imports.wbg.__wbg_onerror_70640215ac668333 = function(arg0, arg1) {
|
|
7367
7367
|
arg0.on_error(arg1);
|
|
7368
7368
|
};
|
|
7369
|
-
imports.wbg.
|
|
7369
|
+
imports.wbg.__wbg_onmessage_debbd5dfdd180805 = function(arg0, arg1) {
|
|
7370
7370
|
arg0.on_message(Message.__wrap(arg1));
|
|
7371
7371
|
};
|
|
7372
|
-
imports.wbg.
|
|
7372
|
+
imports.wbg.__wbg_onmessagedeleted_3b5d95e932717a44 = function(arg0, arg1, arg2) {
|
|
7373
7373
|
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
7374
7374
|
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
7375
7375
|
arg0.on_message_deleted(v0);
|
|
7376
7376
|
};
|
|
7377
|
-
imports.wbg.
|
|
7377
|
+
imports.wbg.__wbg_onuserpreferenceupdate_aef718dc262eff7d = function(arg0, arg1, arg2) {
|
|
7378
7378
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
7379
7379
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
7380
7380
|
arg0.on_user_preference_update(v0);
|
|
@@ -7741,9 +7741,9 @@ function __wbg_get_imports() {
|
|
|
7741
7741
|
const ret = XmtpCursor.__unwrap(arg0);
|
|
7742
7742
|
return ret;
|
|
7743
7743
|
};
|
|
7744
|
-
imports.wbg.
|
|
7745
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
7746
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
7744
|
+
imports.wbg.__wbindgen_cast_08c1e46f0bf37c36 = function(arg0, arg1) {
|
|
7745
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7204, function: Function { arguments: [], shim_idx: 7205, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7746
|
+
const ret = makeMutClosure(arg0, arg1, 7204, __wbg_adapter_12);
|
|
7747
7747
|
return ret;
|
|
7748
7748
|
};
|
|
7749
7749
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
@@ -7751,11 +7751,6 @@ function __wbg_get_imports() {
|
|
|
7751
7751
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
7752
7752
|
return ret;
|
|
7753
7753
|
};
|
|
7754
|
-
imports.wbg.__wbindgen_cast_318592a28178cd75 = function(arg0, arg1) {
|
|
7755
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 4990, function: Function { arguments: [], shim_idx: 4991, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7756
|
-
const ret = makeMutClosure(arg0, arg1, 4990, __wbg_adapter_33);
|
|
7757
|
-
return ret;
|
|
7758
|
-
};
|
|
7759
7754
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
7760
7755
|
// Cast intrinsic for `U64 -> Externref`.
|
|
7761
7756
|
const ret = BigInt.asUintN(64, arg0);
|
|
@@ -7768,6 +7763,21 @@ function __wbg_get_imports() {
|
|
|
7768
7763
|
const ret = v0;
|
|
7769
7764
|
return ret;
|
|
7770
7765
|
};
|
|
7766
|
+
imports.wbg.__wbindgen_cast_57d60d237afa669a = function(arg0, arg1) {
|
|
7767
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 6810, function: Function { arguments: [], shim_idx: 6811, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7768
|
+
const ret = makeMutClosure(arg0, arg1, 6810, __wbg_adapter_26);
|
|
7769
|
+
return ret;
|
|
7770
|
+
};
|
|
7771
|
+
imports.wbg.__wbindgen_cast_72aedd85aaf04c4c = function(arg0, arg1) {
|
|
7772
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4940, function: Function { arguments: [], shim_idx: 4941, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7773
|
+
const ret = makeMutClosure(arg0, arg1, 4940, __wbg_adapter_23);
|
|
7774
|
+
return ret;
|
|
7775
|
+
};
|
|
7776
|
+
imports.wbg.__wbindgen_cast_7690d55fcc00401c = function(arg0, arg1) {
|
|
7777
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7217, function: Function { arguments: [Externref], shim_idx: 7228, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7778
|
+
const ret = makeMutClosure(arg0, arg1, 7217, __wbg_adapter_29);
|
|
7779
|
+
return ret;
|
|
7780
|
+
};
|
|
7771
7781
|
imports.wbg.__wbindgen_cast_8e37b4ad2f2ba653 = function(arg0, arg1) {
|
|
7772
7782
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
7773
7783
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -7787,16 +7797,6 @@ function __wbg_get_imports() {
|
|
|
7787
7797
|
const ret = arg0;
|
|
7788
7798
|
return ret;
|
|
7789
7799
|
};
|
|
7790
|
-
imports.wbg.__wbindgen_cast_a3ea9c39cde1701f = function(arg0, arg1) {
|
|
7791
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 7262, function: Function { arguments: [Externref], shim_idx: 7273, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7792
|
-
const ret = makeMutClosure(arg0, arg1, 7262, __wbg_adapter_10);
|
|
7793
|
-
return ret;
|
|
7794
|
-
};
|
|
7795
|
-
imports.wbg.__wbindgen_cast_ad19eba9133de1f6 = function(arg0, arg1) {
|
|
7796
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 7249, function: Function { arguments: [], shim_idx: 7250, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7797
|
-
const ret = makeMutClosure(arg0, arg1, 7249, __wbg_adapter_25);
|
|
7798
|
-
return ret;
|
|
7799
|
-
};
|
|
7800
7800
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
7801
7801
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
7802
7802
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
Binary file
|