@xmtp/wasm-bindings 1.6.0-dev.419b6dc → 1.6.0-dev.e545a64
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 +386 -374
- package/dist/bindings_wasm.js +221 -157
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +371 -365
- package/dist/version.json +3 -3
- package/package.json +1 -1
package/dist/bindings_wasm.js
CHANGED
|
@@ -234,29 +234,6 @@ function takeFromExternrefTable0(idx) {
|
|
|
234
234
|
wasm.__externref_table_dealloc(idx);
|
|
235
235
|
return value;
|
|
236
236
|
}
|
|
237
|
-
|
|
238
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
239
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
240
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
241
|
-
WASM_VECTOR_LEN = arg.length;
|
|
242
|
-
return ptr;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
function _assertClass(instance, klass) {
|
|
246
|
-
if (!(instance instanceof klass)) {
|
|
247
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
function passArrayJsValueToWasm0(array, malloc) {
|
|
252
|
-
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
253
|
-
for (let i = 0; i < array.length; i++) {
|
|
254
|
-
const add = addToExternrefTable0(array[i]);
|
|
255
|
-
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
256
|
-
}
|
|
257
|
-
WASM_VECTOR_LEN = array.length;
|
|
258
|
-
return ptr;
|
|
259
|
-
}
|
|
260
237
|
/**
|
|
261
238
|
* @param {string} signature_text
|
|
262
239
|
* @param {Uint8Array} signature_bytes
|
|
@@ -271,6 +248,15 @@ export function verifySignedWithPublicKey(signature_text, signature_bytes, publi
|
|
|
271
248
|
}
|
|
272
249
|
}
|
|
273
250
|
|
|
251
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
252
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
253
|
+
for (let i = 0; i < array.length; i++) {
|
|
254
|
+
const add = addToExternrefTable0(array[i]);
|
|
255
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
256
|
+
}
|
|
257
|
+
WASM_VECTOR_LEN = array.length;
|
|
258
|
+
return ptr;
|
|
259
|
+
}
|
|
274
260
|
/**
|
|
275
261
|
* @param {string} v3_host
|
|
276
262
|
* @param {string | null | undefined} gateway_host
|
|
@@ -295,6 +281,11 @@ export function revokeInstallationsSignatureRequest(v3_host, gateway_host, recov
|
|
|
295
281
|
return SignatureRequestHandle.__wrap(ret[0]);
|
|
296
282
|
}
|
|
297
283
|
|
|
284
|
+
function _assertClass(instance, klass) {
|
|
285
|
+
if (!(instance instanceof klass)) {
|
|
286
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
298
289
|
/**
|
|
299
290
|
* @param {string} v3_host
|
|
300
291
|
* @param {string | null | undefined} gateway_host
|
|
@@ -311,56 +302,27 @@ export function applySignatureRequest(v3_host, gateway_host, signature_request)
|
|
|
311
302
|
return ret;
|
|
312
303
|
}
|
|
313
304
|
|
|
314
|
-
|
|
315
|
-
*
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
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]);
|
|
305
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
306
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
307
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
308
|
+
WASM_VECTOR_LEN = arg.length;
|
|
309
|
+
return ptr;
|
|
352
310
|
}
|
|
353
|
-
|
|
354
311
|
/**
|
|
355
|
-
* @param {
|
|
356
|
-
* @
|
|
312
|
+
* @param {string} v3_host
|
|
313
|
+
* @param {string | null | undefined} gateway_host
|
|
314
|
+
* @param {string[]} inbox_ids
|
|
315
|
+
* @returns {Promise<InboxState[]>}
|
|
357
316
|
*/
|
|
358
|
-
export function
|
|
359
|
-
const
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
317
|
+
export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
|
|
318
|
+
const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
319
|
+
const len0 = WASM_VECTOR_LEN;
|
|
320
|
+
var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
321
|
+
var len1 = WASM_VECTOR_LEN;
|
|
322
|
+
const ptr2 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
323
|
+
const len2 = WASM_VECTOR_LEN;
|
|
324
|
+
const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
325
|
+
return ret;
|
|
364
326
|
}
|
|
365
327
|
|
|
366
328
|
/**
|
|
@@ -402,20 +364,29 @@ export function generateInboxId(accountIdentifier) {
|
|
|
402
364
|
}
|
|
403
365
|
|
|
404
366
|
/**
|
|
405
|
-
* @param {
|
|
406
|
-
* @
|
|
407
|
-
* @param {string[]} inbox_ids
|
|
408
|
-
* @returns {Promise<InboxState[]>}
|
|
367
|
+
* @param {Reaction} reaction
|
|
368
|
+
* @returns {Uint8Array}
|
|
409
369
|
*/
|
|
410
|
-
export function
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
370
|
+
export function encodeReaction(reaction) {
|
|
371
|
+
_assertClass(reaction, Reaction);
|
|
372
|
+
var ptr0 = reaction.__destroy_into_raw();
|
|
373
|
+
const ret = wasm.encodeReaction(ptr0);
|
|
374
|
+
if (ret[2]) {
|
|
375
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
376
|
+
}
|
|
377
|
+
return takeFromExternrefTable0(ret[0]);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* @param {Uint8Array} bytes
|
|
382
|
+
* @returns {Reaction}
|
|
383
|
+
*/
|
|
384
|
+
export function decodeReaction(bytes) {
|
|
385
|
+
const ret = wasm.decodeReaction(bytes);
|
|
386
|
+
if (ret[2]) {
|
|
387
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
388
|
+
}
|
|
389
|
+
return Reaction.__wrap(ret[0]);
|
|
419
390
|
}
|
|
420
391
|
|
|
421
392
|
/**
|
|
@@ -455,6 +426,32 @@ export function createClient(host, inbox_id, account_identifier, db_path, encryp
|
|
|
455
426
|
return ret;
|
|
456
427
|
}
|
|
457
428
|
|
|
429
|
+
/**
|
|
430
|
+
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
431
|
+
* @returns {Uint8Array}
|
|
432
|
+
*/
|
|
433
|
+
export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
|
|
434
|
+
_assertClass(multiRemoteAttachment, MultiRemoteAttachment);
|
|
435
|
+
var ptr0 = multiRemoteAttachment.__destroy_into_raw();
|
|
436
|
+
const ret = wasm.encodeMultiRemoteAttachment(ptr0);
|
|
437
|
+
if (ret[2]) {
|
|
438
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
439
|
+
}
|
|
440
|
+
return takeFromExternrefTable0(ret[0]);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* @param {Uint8Array} bytes
|
|
445
|
+
* @returns {MultiRemoteAttachment}
|
|
446
|
+
*/
|
|
447
|
+
export function decodeMultiRemoteAttachment(bytes) {
|
|
448
|
+
const ret = wasm.decodeMultiRemoteAttachment(bytes);
|
|
449
|
+
if (ret[2]) {
|
|
450
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
451
|
+
}
|
|
452
|
+
return MultiRemoteAttachment.__wrap(ret[0]);
|
|
453
|
+
}
|
|
454
|
+
|
|
458
455
|
/**
|
|
459
456
|
* Entry point invoked by JavaScript in a worker.
|
|
460
457
|
* @param {number} ptr
|
|
@@ -466,24 +463,24 @@ export function task_worker_entry_point(ptr) {
|
|
|
466
463
|
}
|
|
467
464
|
}
|
|
468
465
|
|
|
469
|
-
function
|
|
470
|
-
wasm.
|
|
466
|
+
function __wbg_adapter_20(arg0, arg1) {
|
|
467
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h8d2688e22b07e25f(arg0, arg1);
|
|
471
468
|
}
|
|
472
469
|
|
|
473
|
-
function
|
|
474
|
-
wasm.
|
|
470
|
+
function __wbg_adapter_23(arg0, arg1, arg2) {
|
|
471
|
+
wasm.closure6985_externref_shim(arg0, arg1, arg2);
|
|
475
472
|
}
|
|
476
473
|
|
|
477
|
-
function
|
|
474
|
+
function __wbg_adapter_28(arg0, arg1) {
|
|
478
475
|
wasm.wasm_bindgen__convert__closures_____invoke__h6553f0a100c562a9(arg0, arg1);
|
|
479
476
|
}
|
|
480
477
|
|
|
481
|
-
function
|
|
482
|
-
wasm.
|
|
478
|
+
function __wbg_adapter_31(arg0, arg1) {
|
|
479
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h040a93cf6078a98e(arg0, arg1);
|
|
483
480
|
}
|
|
484
481
|
|
|
485
|
-
function
|
|
486
|
-
wasm.
|
|
482
|
+
function __wbg_adapter_937(arg0, arg1, arg2, arg3) {
|
|
483
|
+
wasm.closure7952_externref_shim(arg0, arg1, arg2, arg3);
|
|
487
484
|
}
|
|
488
485
|
|
|
489
486
|
/**
|
|
@@ -534,14 +531,13 @@ export const DeliveryStatus = Object.freeze({
|
|
|
534
531
|
Failed: 2, "2": "Failed",
|
|
535
532
|
});
|
|
536
533
|
/**
|
|
537
|
-
* @enum {0 | 1 | 2 | 3
|
|
534
|
+
* @enum {0 | 1 | 2 | 3}
|
|
538
535
|
*/
|
|
539
536
|
export const GroupMembershipState = Object.freeze({
|
|
540
537
|
Allowed: 0, "0": "Allowed",
|
|
541
538
|
Rejected: 1, "1": "Rejected",
|
|
542
539
|
Pending: 2, "2": "Pending",
|
|
543
540
|
Restored: 3, "3": "Restored",
|
|
544
|
-
PendingRemove: 4, "4": "PendingRemove",
|
|
545
541
|
});
|
|
546
542
|
/**
|
|
547
543
|
* @enum {0 | 1}
|
|
@@ -1011,27 +1007,6 @@ export class Client {
|
|
|
1011
1007
|
throw takeFromExternrefTable0(ret[0]);
|
|
1012
1008
|
}
|
|
1013
1009
|
}
|
|
1014
|
-
/**
|
|
1015
|
-
* @param {Consent[]} records
|
|
1016
|
-
* @returns {Promise<void>}
|
|
1017
|
-
*/
|
|
1018
|
-
setConsentStates(records) {
|
|
1019
|
-
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
1020
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1021
|
-
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
1022
|
-
return ret;
|
|
1023
|
-
}
|
|
1024
|
-
/**
|
|
1025
|
-
* @param {ConsentEntityType} entity_type
|
|
1026
|
-
* @param {string} entity
|
|
1027
|
-
* @returns {Promise<ConsentState>}
|
|
1028
|
-
*/
|
|
1029
|
-
getConsentState(entity_type, entity) {
|
|
1030
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1031
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1032
|
-
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
1033
|
-
return ret;
|
|
1034
|
-
}
|
|
1035
1010
|
/**
|
|
1036
1011
|
*
|
|
1037
1012
|
* * Get the client's inbox state.
|
|
@@ -1071,6 +1046,27 @@ export class Client {
|
|
|
1071
1046
|
const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
|
|
1072
1047
|
return ret;
|
|
1073
1048
|
}
|
|
1049
|
+
/**
|
|
1050
|
+
* @param {Consent[]} records
|
|
1051
|
+
* @returns {Promise<void>}
|
|
1052
|
+
*/
|
|
1053
|
+
setConsentStates(records) {
|
|
1054
|
+
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
1055
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1056
|
+
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
1057
|
+
return ret;
|
|
1058
|
+
}
|
|
1059
|
+
/**
|
|
1060
|
+
* @param {ConsentEntityType} entity_type
|
|
1061
|
+
* @param {string} entity
|
|
1062
|
+
* @returns {Promise<ConsentState>}
|
|
1063
|
+
*/
|
|
1064
|
+
getConsentState(entity_type, entity) {
|
|
1065
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1066
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1067
|
+
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
1068
|
+
return ret;
|
|
1069
|
+
}
|
|
1074
1070
|
/**
|
|
1075
1071
|
* @returns {Identifier}
|
|
1076
1072
|
*/
|
|
@@ -1197,7 +1193,7 @@ export class Client {
|
|
|
1197
1193
|
return Conversations.__wrap(ret);
|
|
1198
1194
|
}
|
|
1199
1195
|
/**
|
|
1200
|
-
* @returns {Promise<
|
|
1196
|
+
* @returns {Promise<GroupSyncSummary>}
|
|
1201
1197
|
*/
|
|
1202
1198
|
syncPreferences() {
|
|
1203
1199
|
const ret = wasm.client_syncPreferences(this.__wbg_ptr);
|
|
@@ -1406,7 +1402,7 @@ export class ContentTypeId {
|
|
|
1406
1402
|
set authorityId(arg0) {
|
|
1407
1403
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1408
1404
|
const len0 = WASM_VECTOR_LEN;
|
|
1409
|
-
wasm.
|
|
1405
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
1410
1406
|
}
|
|
1411
1407
|
/**
|
|
1412
1408
|
* @returns {string}
|
|
@@ -1429,7 +1425,7 @@ export class ContentTypeId {
|
|
|
1429
1425
|
set typeId(arg0) {
|
|
1430
1426
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1431
1427
|
const len0 = WASM_VECTOR_LEN;
|
|
1432
|
-
wasm.
|
|
1428
|
+
wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
|
|
1433
1429
|
}
|
|
1434
1430
|
/**
|
|
1435
1431
|
* @returns {number}
|
|
@@ -2444,7 +2440,7 @@ export class Conversations {
|
|
|
2444
2440
|
}
|
|
2445
2441
|
/**
|
|
2446
2442
|
* @param {any[] | null} [consent_states]
|
|
2447
|
-
* @returns {Promise<
|
|
2443
|
+
* @returns {Promise<GroupSyncSummary>}
|
|
2448
2444
|
*/
|
|
2449
2445
|
syncAllConversations(consent_states) {
|
|
2450
2446
|
var ptr0 = isLikeNone(consent_states) ? 0 : passArrayJsValueToWasm0(consent_states, wasm.__wbindgen_malloc);
|
|
@@ -3503,6 +3499,70 @@ export class GroupPermissions {
|
|
|
3503
3499
|
}
|
|
3504
3500
|
if (Symbol.dispose) GroupPermissions.prototype[Symbol.dispose] = GroupPermissions.prototype.free;
|
|
3505
3501
|
|
|
3502
|
+
const GroupSyncSummaryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3503
|
+
? { register: () => {}, unregister: () => {} }
|
|
3504
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_groupsyncsummary_free(ptr >>> 0, 1));
|
|
3505
|
+
|
|
3506
|
+
export class GroupSyncSummary {
|
|
3507
|
+
|
|
3508
|
+
static __wrap(ptr) {
|
|
3509
|
+
ptr = ptr >>> 0;
|
|
3510
|
+
const obj = Object.create(GroupSyncSummary.prototype);
|
|
3511
|
+
obj.__wbg_ptr = ptr;
|
|
3512
|
+
GroupSyncSummaryFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3513
|
+
return obj;
|
|
3514
|
+
}
|
|
3515
|
+
|
|
3516
|
+
__destroy_into_raw() {
|
|
3517
|
+
const ptr = this.__wbg_ptr;
|
|
3518
|
+
this.__wbg_ptr = 0;
|
|
3519
|
+
GroupSyncSummaryFinalization.unregister(this);
|
|
3520
|
+
return ptr;
|
|
3521
|
+
}
|
|
3522
|
+
|
|
3523
|
+
free() {
|
|
3524
|
+
const ptr = this.__destroy_into_raw();
|
|
3525
|
+
wasm.__wbg_groupsyncsummary_free(ptr, 0);
|
|
3526
|
+
}
|
|
3527
|
+
/**
|
|
3528
|
+
* @returns {number}
|
|
3529
|
+
*/
|
|
3530
|
+
get numEligible() {
|
|
3531
|
+
const ret = wasm.__wbg_get_groupsyncsummary_numEligible(this.__wbg_ptr);
|
|
3532
|
+
return ret >>> 0;
|
|
3533
|
+
}
|
|
3534
|
+
/**
|
|
3535
|
+
* @param {number} arg0
|
|
3536
|
+
*/
|
|
3537
|
+
set numEligible(arg0) {
|
|
3538
|
+
wasm.__wbg_set_groupsyncsummary_numEligible(this.__wbg_ptr, arg0);
|
|
3539
|
+
}
|
|
3540
|
+
/**
|
|
3541
|
+
* @returns {number}
|
|
3542
|
+
*/
|
|
3543
|
+
get numSynced() {
|
|
3544
|
+
const ret = wasm.__wbg_get_groupsyncsummary_numSynced(this.__wbg_ptr);
|
|
3545
|
+
return ret >>> 0;
|
|
3546
|
+
}
|
|
3547
|
+
/**
|
|
3548
|
+
* @param {number} arg0
|
|
3549
|
+
*/
|
|
3550
|
+
set numSynced(arg0) {
|
|
3551
|
+
wasm.__wbg_set_groupsyncsummary_numSynced(this.__wbg_ptr, arg0);
|
|
3552
|
+
}
|
|
3553
|
+
/**
|
|
3554
|
+
* @param {number} num_eligible
|
|
3555
|
+
* @param {number} num_synced
|
|
3556
|
+
*/
|
|
3557
|
+
constructor(num_eligible, num_synced) {
|
|
3558
|
+
const ret = wasm.groupsyncsummary_new(num_eligible, num_synced);
|
|
3559
|
+
this.__wbg_ptr = ret >>> 0;
|
|
3560
|
+
GroupSyncSummaryFinalization.register(this, this.__wbg_ptr, this);
|
|
3561
|
+
return this;
|
|
3562
|
+
}
|
|
3563
|
+
}
|
|
3564
|
+
if (Symbol.dispose) GroupSyncSummary.prototype[Symbol.dispose] = GroupSyncSummary.prototype.free;
|
|
3565
|
+
|
|
3506
3566
|
const GroupUpdatedFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3507
3567
|
? { register: () => {}, unregister: () => {} }
|
|
3508
3568
|
: new FinalizationRegistry(ptr => wasm.__wbg_groupupdated_free(ptr >>> 0, 1));
|
|
@@ -3839,7 +3899,7 @@ export class InboxState {
|
|
|
3839
3899
|
set inboxId(arg0) {
|
|
3840
3900
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3841
3901
|
const len0 = WASM_VECTOR_LEN;
|
|
3842
|
-
wasm.
|
|
3902
|
+
wasm.__wbg_set_inboxstate_inboxId(this.__wbg_ptr, ptr0, len0);
|
|
3843
3903
|
}
|
|
3844
3904
|
/**
|
|
3845
3905
|
* @returns {Identifier}
|
|
@@ -4164,7 +4224,7 @@ export class KeyPackageStatus {
|
|
|
4164
4224
|
* @returns {Lifetime | undefined}
|
|
4165
4225
|
*/
|
|
4166
4226
|
get lifetime() {
|
|
4167
|
-
const ret = wasm.
|
|
4227
|
+
const ret = wasm.__wbg_get_createdmoptions_messageDisappearingSettings(this.__wbg_ptr);
|
|
4168
4228
|
return ret === 0 ? undefined : Lifetime.__wrap(ret);
|
|
4169
4229
|
}
|
|
4170
4230
|
/**
|
|
@@ -4444,7 +4504,7 @@ export class ListMessagesOptions {
|
|
|
4444
4504
|
* @param {bigint | null} [arg0]
|
|
4445
4505
|
*/
|
|
4446
4506
|
set sentBeforeNs(arg0) {
|
|
4447
|
-
wasm.
|
|
4507
|
+
wasm.__wbg_set_listmessagesoptions_sentBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
4448
4508
|
}
|
|
4449
4509
|
/**
|
|
4450
4510
|
* @returns {bigint | undefined}
|
|
@@ -4457,7 +4517,7 @@ export class ListMessagesOptions {
|
|
|
4457
4517
|
* @param {bigint | null} [arg0]
|
|
4458
4518
|
*/
|
|
4459
4519
|
set sentAfterNs(arg0) {
|
|
4460
|
-
wasm.
|
|
4520
|
+
wasm.__wbg_set_listmessagesoptions_sentAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
4461
4521
|
}
|
|
4462
4522
|
/**
|
|
4463
4523
|
* @returns {bigint | undefined}
|
|
@@ -4470,7 +4530,7 @@ export class ListMessagesOptions {
|
|
|
4470
4530
|
* @param {bigint | null} [arg0]
|
|
4471
4531
|
*/
|
|
4472
4532
|
set limit(arg0) {
|
|
4473
|
-
wasm.
|
|
4533
|
+
wasm.__wbg_set_listmessagesoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
4474
4534
|
}
|
|
4475
4535
|
/**
|
|
4476
4536
|
* @returns {DeliveryStatus | undefined}
|
|
@@ -4694,14 +4754,14 @@ export class Message {
|
|
|
4694
4754
|
* @returns {bigint}
|
|
4695
4755
|
*/
|
|
4696
4756
|
get sentAtNs() {
|
|
4697
|
-
const ret = wasm.
|
|
4757
|
+
const ret = wasm.__wbg_get_message_sentAtNs(this.__wbg_ptr);
|
|
4698
4758
|
return ret;
|
|
4699
4759
|
}
|
|
4700
4760
|
/**
|
|
4701
4761
|
* @param {bigint} arg0
|
|
4702
4762
|
*/
|
|
4703
4763
|
set sentAtNs(arg0) {
|
|
4704
|
-
wasm.
|
|
4764
|
+
wasm.__wbg_set_message_sentAtNs(this.__wbg_ptr, arg0);
|
|
4705
4765
|
}
|
|
4706
4766
|
/**
|
|
4707
4767
|
* @returns {string}
|
|
@@ -5451,7 +5511,7 @@ export class Reaction {
|
|
|
5451
5511
|
set reference(arg0) {
|
|
5452
5512
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5453
5513
|
const len0 = WASM_VECTOR_LEN;
|
|
5454
|
-
wasm.
|
|
5514
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
5455
5515
|
}
|
|
5456
5516
|
/**
|
|
5457
5517
|
* @returns {string}
|
|
@@ -5474,7 +5534,7 @@ export class Reaction {
|
|
|
5474
5534
|
set referenceInboxId(arg0) {
|
|
5475
5535
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5476
5536
|
const len0 = WASM_VECTOR_LEN;
|
|
5477
|
-
wasm.
|
|
5537
|
+
wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
|
|
5478
5538
|
}
|
|
5479
5539
|
/**
|
|
5480
5540
|
* @returns {ReactionAction}
|
|
@@ -5510,7 +5570,7 @@ export class Reaction {
|
|
|
5510
5570
|
set content(arg0) {
|
|
5511
5571
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5512
5572
|
const len0 = WASM_VECTOR_LEN;
|
|
5513
|
-
wasm.
|
|
5573
|
+
wasm.__wbg_set_reaction_content(this.__wbg_ptr, ptr0, len0);
|
|
5514
5574
|
}
|
|
5515
5575
|
/**
|
|
5516
5576
|
* @returns {ReactionSchema}
|
|
@@ -5593,7 +5653,7 @@ export class ReactionPayload {
|
|
|
5593
5653
|
set reference(arg0) {
|
|
5594
5654
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5595
5655
|
const len0 = WASM_VECTOR_LEN;
|
|
5596
|
-
wasm.
|
|
5656
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
5597
5657
|
}
|
|
5598
5658
|
/**
|
|
5599
5659
|
* @returns {string}
|
|
@@ -5616,7 +5676,7 @@ export class ReactionPayload {
|
|
|
5616
5676
|
set referenceInboxId(arg0) {
|
|
5617
5677
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5618
5678
|
const len0 = WASM_VECTOR_LEN;
|
|
5619
|
-
wasm.
|
|
5679
|
+
wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
|
|
5620
5680
|
}
|
|
5621
5681
|
/**
|
|
5622
5682
|
* @returns {ReactionActionPayload}
|
|
@@ -5652,7 +5712,7 @@ export class ReactionPayload {
|
|
|
5652
5712
|
set content(arg0) {
|
|
5653
5713
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5654
5714
|
const len0 = WASM_VECTOR_LEN;
|
|
5655
|
-
wasm.
|
|
5715
|
+
wasm.__wbg_set_reaction_content(this.__wbg_ptr, ptr0, len0);
|
|
5656
5716
|
}
|
|
5657
5717
|
/**
|
|
5658
5718
|
* @returns {ReactionSchemaPayload}
|
|
@@ -5767,7 +5827,7 @@ export class RemoteAttachment {
|
|
|
5767
5827
|
set contentDigest(arg0) {
|
|
5768
5828
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5769
5829
|
const len0 = WASM_VECTOR_LEN;
|
|
5770
|
-
wasm.
|
|
5830
|
+
wasm.__wbg_set_reaction_content(this.__wbg_ptr, ptr0, len0);
|
|
5771
5831
|
}
|
|
5772
5832
|
/**
|
|
5773
5833
|
* @returns {Uint8Array}
|
|
@@ -6282,7 +6342,7 @@ export class TextContent {
|
|
|
6282
6342
|
set content(arg0) {
|
|
6283
6343
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6284
6344
|
const len0 = WASM_VECTOR_LEN;
|
|
6285
|
-
wasm.
|
|
6345
|
+
wasm.__wbg_set_textcontent_content(this.__wbg_ptr, ptr0, len0);
|
|
6286
6346
|
}
|
|
6287
6347
|
}
|
|
6288
6348
|
if (Symbol.dispose) TextContent.prototype[Symbol.dispose] = TextContent.prototype.free;
|
|
@@ -6333,7 +6393,7 @@ export class TransactionMetadata {
|
|
|
6333
6393
|
set transactionType(arg0) {
|
|
6334
6394
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6335
6395
|
const len0 = WASM_VECTOR_LEN;
|
|
6336
|
-
wasm.
|
|
6396
|
+
wasm.__wbg_set_remoteattachment_url(this.__wbg_ptr, ptr0, len0);
|
|
6337
6397
|
}
|
|
6338
6398
|
/**
|
|
6339
6399
|
* @returns {string}
|
|
@@ -6356,7 +6416,7 @@ export class TransactionMetadata {
|
|
|
6356
6416
|
set currency(arg0) {
|
|
6357
6417
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6358
6418
|
const len0 = WASM_VECTOR_LEN;
|
|
6359
|
-
wasm.
|
|
6419
|
+
wasm.__wbg_set_reaction_content(this.__wbg_ptr, ptr0, len0);
|
|
6360
6420
|
}
|
|
6361
6421
|
/**
|
|
6362
6422
|
* @returns {number}
|
|
@@ -6405,7 +6465,7 @@ export class TransactionMetadata {
|
|
|
6405
6465
|
set fromAddress(arg0) {
|
|
6406
6466
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6407
6467
|
const len0 = WASM_VECTOR_LEN;
|
|
6408
|
-
wasm.
|
|
6468
|
+
wasm.__wbg_set_remoteattachment_secret(this.__wbg_ptr, ptr0, len0);
|
|
6409
6469
|
}
|
|
6410
6470
|
/**
|
|
6411
6471
|
* @returns {string}
|
|
@@ -6428,7 +6488,7 @@ export class TransactionMetadata {
|
|
|
6428
6488
|
set toAddress(arg0) {
|
|
6429
6489
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6430
6490
|
const len0 = WASM_VECTOR_LEN;
|
|
6431
|
-
wasm.
|
|
6491
|
+
wasm.__wbg_set_remoteattachment_salt(this.__wbg_ptr, ptr0, len0);
|
|
6432
6492
|
}
|
|
6433
6493
|
}
|
|
6434
6494
|
if (Symbol.dispose) TransactionMetadata.prototype[Symbol.dispose] = TransactionMetadata.prototype.free;
|
|
@@ -6956,6 +7016,10 @@ function __wbg_get_imports() {
|
|
|
6956
7016
|
const ret = GroupMetadata.__wrap(arg0);
|
|
6957
7017
|
return ret;
|
|
6958
7018
|
};
|
|
7019
|
+
imports.wbg.__wbg_groupsyncsummary_new = function(arg0) {
|
|
7020
|
+
const ret = GroupSyncSummary.__wrap(arg0);
|
|
7021
|
+
return ret;
|
|
7022
|
+
};
|
|
6959
7023
|
imports.wbg.__wbg_has_6a9bff5f4208cfca = function(arg0, arg1) {
|
|
6960
7024
|
const ret = arg0.has(arg1);
|
|
6961
7025
|
return ret;
|
|
@@ -7145,7 +7209,7 @@ function __wbg_get_imports() {
|
|
|
7145
7209
|
const a = state0.a;
|
|
7146
7210
|
state0.a = 0;
|
|
7147
7211
|
try {
|
|
7148
|
-
return
|
|
7212
|
+
return __wbg_adapter_937(a, state0.b, arg0, arg1);
|
|
7149
7213
|
} finally {
|
|
7150
7214
|
state0.a = a;
|
|
7151
7215
|
}
|
|
@@ -7627,9 +7691,24 @@ function __wbg_get_imports() {
|
|
|
7627
7691
|
const ret = XmtpCursor.__unwrap(arg0);
|
|
7628
7692
|
return ret;
|
|
7629
7693
|
};
|
|
7630
|
-
imports.wbg.
|
|
7631
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
7632
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
7694
|
+
imports.wbg.__wbindgen_cast_06f4b0bccb3e1aea = function(arg0, arg1) {
|
|
7695
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 6961, function: Function { arguments: [], shim_idx: 6962, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7696
|
+
const ret = makeMutClosure(arg0, arg1, 6961, __wbg_adapter_28);
|
|
7697
|
+
return ret;
|
|
7698
|
+
};
|
|
7699
|
+
imports.wbg.__wbindgen_cast_153161d960afd87d = function(arg0, arg1) {
|
|
7700
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4721, function: Function { arguments: [], shim_idx: 4722, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7701
|
+
const ret = makeMutClosure(arg0, arg1, 4721, __wbg_adapter_20);
|
|
7702
|
+
return ret;
|
|
7703
|
+
};
|
|
7704
|
+
imports.wbg.__wbindgen_cast_16b7e2dfc06164c9 = function(arg0, arg1) {
|
|
7705
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 6974, function: Function { arguments: [Externref], shim_idx: 6985, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7706
|
+
const ret = makeMutClosure(arg0, arg1, 6974, __wbg_adapter_23);
|
|
7707
|
+
return ret;
|
|
7708
|
+
};
|
|
7709
|
+
imports.wbg.__wbindgen_cast_17774b9c59ee1366 = function(arg0, arg1) {
|
|
7710
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 6564, function: Function { arguments: [], shim_idx: 6565, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7711
|
+
const ret = makeMutClosure(arg0, arg1, 6564, __wbg_adapter_31);
|
|
7633
7712
|
return ret;
|
|
7634
7713
|
};
|
|
7635
7714
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
@@ -7637,11 +7716,6 @@ function __wbg_get_imports() {
|
|
|
7637
7716
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
7638
7717
|
return ret;
|
|
7639
7718
|
};
|
|
7640
|
-
imports.wbg.__wbindgen_cast_4281f6fa3a7af8cb = function(arg0, arg1) {
|
|
7641
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 6955, function: Function { arguments: [], shim_idx: 6956, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7642
|
-
const ret = makeMutClosure(arg0, arg1, 6955, __wbg_adapter_30);
|
|
7643
|
-
return ret;
|
|
7644
|
-
};
|
|
7645
7719
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
7646
7720
|
// Cast intrinsic for `U64 -> Externref`.
|
|
7647
7721
|
const ret = BigInt.asUintN(64, arg0);
|
|
@@ -7654,11 +7728,6 @@ function __wbg_get_imports() {
|
|
|
7654
7728
|
const ret = v0;
|
|
7655
7729
|
return ret;
|
|
7656
7730
|
};
|
|
7657
|
-
imports.wbg.__wbindgen_cast_5cdffc6a64ddb7af = function(arg0, arg1) {
|
|
7658
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 4739, function: Function { arguments: [], shim_idx: 4740, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7659
|
-
const ret = makeMutClosure(arg0, arg1, 4739, __wbg_adapter_14);
|
|
7660
|
-
return ret;
|
|
7661
|
-
};
|
|
7662
7731
|
imports.wbg.__wbindgen_cast_8e37b4ad2f2ba653 = function(arg0, arg1) {
|
|
7663
7732
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
7664
7733
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -7702,11 +7771,6 @@ function __wbg_get_imports() {
|
|
|
7702
7771
|
const ret = v0;
|
|
7703
7772
|
return ret;
|
|
7704
7773
|
};
|
|
7705
|
-
imports.wbg.__wbindgen_cast_fa4bd61d4b49ccb5 = function(arg0, arg1) {
|
|
7706
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 6968, function: Function { arguments: [Externref], shim_idx: 6979, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7707
|
-
const ret = makeMutClosure(arg0, arg1, 6968, __wbg_adapter_33);
|
|
7708
|
-
return ret;
|
|
7709
|
-
};
|
|
7710
7774
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
7711
7775
|
const table = wasm.__wbindgen_export_4;
|
|
7712
7776
|
const offset = table.grow(4);
|
|
Binary file
|