@xmtp/wasm-bindings 1.6.0-dev.07065a7 → 1.6.0-dev.21f0ffd
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 +369 -355
- package/dist/bindings_wasm.js +375 -308
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +368 -362
- package/dist/version.json +3 -3
- package/package.json +1 -1
package/dist/bindings_wasm.js
CHANGED
|
@@ -229,97 +229,17 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
229
229
|
return real;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
function takeFromExternrefTable0(idx) {
|
|
233
|
-
const value = wasm.__wbindgen_export_4.get(idx);
|
|
234
|
-
wasm.__externref_table_dealloc(idx);
|
|
235
|
-
return value;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
232
|
function _assertClass(instance, klass) {
|
|
239
233
|
if (!(instance instanceof klass)) {
|
|
240
234
|
throw new Error(`expected instance of ${klass.name}`);
|
|
241
235
|
}
|
|
242
236
|
}
|
|
243
237
|
|
|
244
|
-
function
|
|
245
|
-
const
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
return ptr;
|
|
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
|
-
/**
|
|
261
|
-
* @param {string} host
|
|
262
|
-
* @param {string} inbox_id
|
|
263
|
-
* @param {Identifier} account_identifier
|
|
264
|
-
* @param {string | null} [db_path]
|
|
265
|
-
* @param {Uint8Array | null} [encryption_key]
|
|
266
|
-
* @param {string | null} [device_sync_server_url]
|
|
267
|
-
* @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
|
|
268
|
-
* @param {LogOptions | null} [log_options]
|
|
269
|
-
* @param {boolean | null} [allow_offline]
|
|
270
|
-
* @param {boolean | null} [disable_events]
|
|
271
|
-
* @param {string | null} [app_version]
|
|
272
|
-
* @param {string | null} [gateway_host]
|
|
273
|
-
* @returns {Promise<Client>}
|
|
274
|
-
*/
|
|
275
|
-
export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline, disable_events, app_version, gateway_host) {
|
|
276
|
-
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
277
|
-
const len0 = WASM_VECTOR_LEN;
|
|
278
|
-
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
279
|
-
const len1 = WASM_VECTOR_LEN;
|
|
280
|
-
var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
281
|
-
var len2 = WASM_VECTOR_LEN;
|
|
282
|
-
var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
283
|
-
var len3 = WASM_VECTOR_LEN;
|
|
284
|
-
let ptr4 = 0;
|
|
285
|
-
if (!isLikeNone(log_options)) {
|
|
286
|
-
_assertClass(log_options, LogOptions);
|
|
287
|
-
ptr4 = log_options.__destroy_into_raw();
|
|
288
|
-
}
|
|
289
|
-
var ptr5 = isLikeNone(app_version) ? 0 : passStringToWasm0(app_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
290
|
-
var len5 = WASM_VECTOR_LEN;
|
|
291
|
-
var ptr6 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
292
|
-
var len6 = WASM_VECTOR_LEN;
|
|
293
|
-
const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, isLikeNone(device_sync_worker_mode) ? 3 : ((__wbindgen_enum_DeviceSyncWorkerMode.indexOf(device_sync_worker_mode) + 1 || 3) - 1), ptr4, isLikeNone(allow_offline) ? 0xFFFFFF : allow_offline ? 1 : 0, isLikeNone(disable_events) ? 0xFFFFFF : disable_events ? 1 : 0, ptr5, len5, ptr6, len6);
|
|
294
|
-
return ret;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
299
|
-
* @returns {Uint8Array}
|
|
300
|
-
*/
|
|
301
|
-
export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
|
|
302
|
-
_assertClass(multiRemoteAttachment, MultiRemoteAttachment);
|
|
303
|
-
var ptr0 = multiRemoteAttachment.__destroy_into_raw();
|
|
304
|
-
const ret = wasm.encodeMultiRemoteAttachment(ptr0);
|
|
305
|
-
if (ret[2]) {
|
|
306
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
307
|
-
}
|
|
308
|
-
return takeFromExternrefTable0(ret[0]);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* @param {Uint8Array} bytes
|
|
313
|
-
* @returns {MultiRemoteAttachment}
|
|
314
|
-
*/
|
|
315
|
-
export function decodeMultiRemoteAttachment(bytes) {
|
|
316
|
-
const ret = wasm.decodeMultiRemoteAttachment(bytes);
|
|
317
|
-
if (ret[2]) {
|
|
318
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
319
|
-
}
|
|
320
|
-
return MultiRemoteAttachment.__wrap(ret[0]);
|
|
238
|
+
function takeFromExternrefTable0(idx) {
|
|
239
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
240
|
+
wasm.__externref_table_dealloc(idx);
|
|
241
|
+
return value;
|
|
321
242
|
}
|
|
322
|
-
|
|
323
243
|
/**
|
|
324
244
|
* @param {Reaction} reaction
|
|
325
245
|
* @returns {Uint8Array}
|
|
@@ -384,23 +304,6 @@ export function generateInboxId(accountIdentifier) {
|
|
|
384
304
|
}
|
|
385
305
|
}
|
|
386
306
|
|
|
387
|
-
/**
|
|
388
|
-
* @param {string} v3_host
|
|
389
|
-
* @param {string | null | undefined} gateway_host
|
|
390
|
-
* @param {string[]} inbox_ids
|
|
391
|
-
* @returns {Promise<InboxState[]>}
|
|
392
|
-
*/
|
|
393
|
-
export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
|
|
394
|
-
const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
395
|
-
const len0 = WASM_VECTOR_LEN;
|
|
396
|
-
var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
397
|
-
var len1 = WASM_VECTOR_LEN;
|
|
398
|
-
const ptr2 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
399
|
-
const len2 = WASM_VECTOR_LEN;
|
|
400
|
-
const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
401
|
-
return ret;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
307
|
/**
|
|
405
308
|
* @param {string} signature_text
|
|
406
309
|
* @param {Uint8Array} signature_bytes
|
|
@@ -415,6 +318,15 @@ export function verifySignedWithPublicKey(signature_text, signature_bytes, publi
|
|
|
415
318
|
}
|
|
416
319
|
}
|
|
417
320
|
|
|
321
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
322
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
323
|
+
for (let i = 0; i < array.length; i++) {
|
|
324
|
+
const add = addToExternrefTable0(array[i]);
|
|
325
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
326
|
+
}
|
|
327
|
+
WASM_VECTOR_LEN = array.length;
|
|
328
|
+
return ptr;
|
|
329
|
+
}
|
|
418
330
|
/**
|
|
419
331
|
* @param {string} v3_host
|
|
420
332
|
* @param {string | null | undefined} gateway_host
|
|
@@ -455,6 +367,92 @@ export function applySignatureRequest(v3_host, gateway_host, signature_request)
|
|
|
455
367
|
return ret;
|
|
456
368
|
}
|
|
457
369
|
|
|
370
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
371
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
372
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
373
|
+
WASM_VECTOR_LEN = arg.length;
|
|
374
|
+
return ptr;
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* @param {string} host
|
|
378
|
+
* @param {string} inbox_id
|
|
379
|
+
* @param {Identifier} account_identifier
|
|
380
|
+
* @param {string | null} [db_path]
|
|
381
|
+
* @param {Uint8Array | null} [encryption_key]
|
|
382
|
+
* @param {string | null} [device_sync_server_url]
|
|
383
|
+
* @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
|
|
384
|
+
* @param {LogOptions | null} [log_options]
|
|
385
|
+
* @param {boolean | null} [allow_offline]
|
|
386
|
+
* @param {boolean | null} [disable_events]
|
|
387
|
+
* @param {string | null} [app_version]
|
|
388
|
+
* @param {string | null} [gateway_host]
|
|
389
|
+
* @returns {Promise<Client>}
|
|
390
|
+
*/
|
|
391
|
+
export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline, disable_events, app_version, gateway_host) {
|
|
392
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
393
|
+
const len0 = WASM_VECTOR_LEN;
|
|
394
|
+
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
395
|
+
const len1 = WASM_VECTOR_LEN;
|
|
396
|
+
var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
397
|
+
var len2 = WASM_VECTOR_LEN;
|
|
398
|
+
var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
399
|
+
var len3 = WASM_VECTOR_LEN;
|
|
400
|
+
let ptr4 = 0;
|
|
401
|
+
if (!isLikeNone(log_options)) {
|
|
402
|
+
_assertClass(log_options, LogOptions);
|
|
403
|
+
ptr4 = log_options.__destroy_into_raw();
|
|
404
|
+
}
|
|
405
|
+
var ptr5 = isLikeNone(app_version) ? 0 : passStringToWasm0(app_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
406
|
+
var len5 = WASM_VECTOR_LEN;
|
|
407
|
+
var ptr6 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
408
|
+
var len6 = WASM_VECTOR_LEN;
|
|
409
|
+
const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, isLikeNone(device_sync_worker_mode) ? 3 : ((__wbindgen_enum_DeviceSyncWorkerMode.indexOf(device_sync_worker_mode) + 1 || 3) - 1), ptr4, isLikeNone(allow_offline) ? 0xFFFFFF : allow_offline ? 1 : 0, isLikeNone(disable_events) ? 0xFFFFFF : disable_events ? 1 : 0, ptr5, len5, ptr6, len6);
|
|
410
|
+
return ret;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
415
|
+
* @returns {Uint8Array}
|
|
416
|
+
*/
|
|
417
|
+
export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
|
|
418
|
+
_assertClass(multiRemoteAttachment, MultiRemoteAttachment);
|
|
419
|
+
var ptr0 = multiRemoteAttachment.__destroy_into_raw();
|
|
420
|
+
const ret = wasm.encodeMultiRemoteAttachment(ptr0);
|
|
421
|
+
if (ret[2]) {
|
|
422
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
423
|
+
}
|
|
424
|
+
return takeFromExternrefTable0(ret[0]);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* @param {Uint8Array} bytes
|
|
429
|
+
* @returns {MultiRemoteAttachment}
|
|
430
|
+
*/
|
|
431
|
+
export function decodeMultiRemoteAttachment(bytes) {
|
|
432
|
+
const ret = wasm.decodeMultiRemoteAttachment(bytes);
|
|
433
|
+
if (ret[2]) {
|
|
434
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
435
|
+
}
|
|
436
|
+
return MultiRemoteAttachment.__wrap(ret[0]);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* @param {string} v3_host
|
|
441
|
+
* @param {string | null | undefined} gateway_host
|
|
442
|
+
* @param {string[]} inbox_ids
|
|
443
|
+
* @returns {Promise<InboxState[]>}
|
|
444
|
+
*/
|
|
445
|
+
export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
|
|
446
|
+
const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
447
|
+
const len0 = WASM_VECTOR_LEN;
|
|
448
|
+
var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
449
|
+
var len1 = WASM_VECTOR_LEN;
|
|
450
|
+
const ptr2 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
451
|
+
const len2 = WASM_VECTOR_LEN;
|
|
452
|
+
const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
453
|
+
return ret;
|
|
454
|
+
}
|
|
455
|
+
|
|
458
456
|
/**
|
|
459
457
|
* Entry point invoked by JavaScript in a worker.
|
|
460
458
|
* @param {number} ptr
|
|
@@ -466,24 +464,24 @@ export function task_worker_entry_point(ptr) {
|
|
|
466
464
|
}
|
|
467
465
|
}
|
|
468
466
|
|
|
469
|
-
function
|
|
470
|
-
wasm.
|
|
467
|
+
function __wbg_adapter_10(arg0, arg1) {
|
|
468
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h8d2688e22b07e25f(arg0, arg1);
|
|
471
469
|
}
|
|
472
470
|
|
|
473
|
-
function
|
|
474
|
-
wasm.
|
|
471
|
+
function __wbg_adapter_15(arg0, arg1) {
|
|
472
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h040a93cf6078a98e(arg0, arg1);
|
|
475
473
|
}
|
|
476
474
|
|
|
477
|
-
function
|
|
478
|
-
wasm.
|
|
475
|
+
function __wbg_adapter_22(arg0, arg1) {
|
|
476
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h6553f0a100c562a9(arg0, arg1);
|
|
479
477
|
}
|
|
480
478
|
|
|
481
|
-
function
|
|
482
|
-
wasm.
|
|
479
|
+
function __wbg_adapter_25(arg0, arg1, arg2) {
|
|
480
|
+
wasm.closure7152_externref_shim(arg0, arg1, arg2);
|
|
483
481
|
}
|
|
484
482
|
|
|
485
|
-
function
|
|
486
|
-
wasm.
|
|
483
|
+
function __wbg_adapter_937(arg0, arg1, arg2, arg3) {
|
|
484
|
+
wasm.closure8118_externref_shim(arg0, arg1, arg2, arg3);
|
|
487
485
|
}
|
|
488
486
|
|
|
489
487
|
/**
|
|
@@ -534,13 +532,14 @@ export const DeliveryStatus = Object.freeze({
|
|
|
534
532
|
Failed: 2, "2": "Failed",
|
|
535
533
|
});
|
|
536
534
|
/**
|
|
537
|
-
* @enum {0 | 1 | 2 | 3}
|
|
535
|
+
* @enum {0 | 1 | 2 | 3 | 4}
|
|
538
536
|
*/
|
|
539
537
|
export const GroupMembershipState = Object.freeze({
|
|
540
538
|
Allowed: 0, "0": "Allowed",
|
|
541
539
|
Rejected: 1, "1": "Rejected",
|
|
542
540
|
Pending: 2, "2": "Pending",
|
|
543
541
|
Restored: 3, "3": "Restored",
|
|
542
|
+
PendingRemove: 4, "4": "PendingRemove",
|
|
544
543
|
});
|
|
545
544
|
/**
|
|
546
545
|
* @enum {0 | 1}
|
|
@@ -880,40 +879,156 @@ export class Attachment {
|
|
|
880
879
|
return v1;
|
|
881
880
|
}
|
|
882
881
|
/**
|
|
883
|
-
* @param {Uint8Array} arg0
|
|
882
|
+
* @param {Uint8Array} arg0
|
|
883
|
+
*/
|
|
884
|
+
set content(arg0) {
|
|
885
|
+
const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
|
|
886
|
+
const len0 = WASM_VECTOR_LEN;
|
|
887
|
+
wasm.__wbg_set_attachment_content(this.__wbg_ptr, ptr0, len0);
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
if (Symbol.dispose) Attachment.prototype[Symbol.dispose] = Attachment.prototype.free;
|
|
891
|
+
|
|
892
|
+
const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
893
|
+
? { register: () => {}, unregister: () => {} }
|
|
894
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_client_free(ptr >>> 0, 1));
|
|
895
|
+
|
|
896
|
+
export class Client {
|
|
897
|
+
|
|
898
|
+
static __wrap(ptr) {
|
|
899
|
+
ptr = ptr >>> 0;
|
|
900
|
+
const obj = Object.create(Client.prototype);
|
|
901
|
+
obj.__wbg_ptr = ptr;
|
|
902
|
+
ClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
903
|
+
return obj;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
__destroy_into_raw() {
|
|
907
|
+
const ptr = this.__wbg_ptr;
|
|
908
|
+
this.__wbg_ptr = 0;
|
|
909
|
+
ClientFinalization.unregister(this);
|
|
910
|
+
return ptr;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
free() {
|
|
914
|
+
const ptr = this.__destroy_into_raw();
|
|
915
|
+
wasm.__wbg_client_free(ptr, 0);
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
* @returns {SignatureRequestHandle | undefined}
|
|
919
|
+
*/
|
|
920
|
+
createInboxSignatureRequest() {
|
|
921
|
+
const ret = wasm.client_createInboxSignatureRequest(this.__wbg_ptr);
|
|
922
|
+
if (ret[2]) {
|
|
923
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
924
|
+
}
|
|
925
|
+
return ret[0] === 0 ? undefined : SignatureRequestHandle.__wrap(ret[0]);
|
|
926
|
+
}
|
|
927
|
+
/**
|
|
928
|
+
* @param {Identifier} new_identifier
|
|
929
|
+
* @returns {Promise<SignatureRequestHandle>}
|
|
930
|
+
*/
|
|
931
|
+
addWalletSignatureRequest(new_identifier) {
|
|
932
|
+
const ret = wasm.client_addWalletSignatureRequest(this.__wbg_ptr, new_identifier);
|
|
933
|
+
return ret;
|
|
934
|
+
}
|
|
935
|
+
/**
|
|
936
|
+
* @param {Identifier} identifier
|
|
937
|
+
* @returns {Promise<SignatureRequestHandle>}
|
|
938
|
+
*/
|
|
939
|
+
revokeWalletSignatureRequest(identifier) {
|
|
940
|
+
const ret = wasm.client_revokeWalletSignatureRequest(this.__wbg_ptr, identifier);
|
|
941
|
+
return ret;
|
|
942
|
+
}
|
|
943
|
+
/**
|
|
944
|
+
* @returns {Promise<SignatureRequestHandle>}
|
|
945
|
+
*/
|
|
946
|
+
revokeAllOtherInstallationsSignatureRequest() {
|
|
947
|
+
const ret = wasm.client_revokeAllOtherInstallationsSignatureRequest(this.__wbg_ptr);
|
|
948
|
+
return ret;
|
|
949
|
+
}
|
|
950
|
+
/**
|
|
951
|
+
* @param {Uint8Array[]} installation_ids
|
|
952
|
+
* @returns {Promise<SignatureRequestHandle>}
|
|
953
|
+
*/
|
|
954
|
+
revokeInstallationsSignatureRequest(installation_ids) {
|
|
955
|
+
const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
956
|
+
const len0 = WASM_VECTOR_LEN;
|
|
957
|
+
const ret = wasm.client_revokeInstallationsSignatureRequest(this.__wbg_ptr, ptr0, len0);
|
|
958
|
+
return ret;
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* @param {Identifier} new_recovery_identifier
|
|
962
|
+
* @returns {Promise<SignatureRequestHandle>}
|
|
963
|
+
*/
|
|
964
|
+
changeRecoveryIdentifierSignatureRequest(new_recovery_identifier) {
|
|
965
|
+
const ret = wasm.client_changeRecoveryIdentifierSignatureRequest(this.__wbg_ptr, new_recovery_identifier);
|
|
966
|
+
return ret;
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* @param {SignatureRequestHandle} signature_request
|
|
970
|
+
* @returns {Promise<void>}
|
|
971
|
+
*/
|
|
972
|
+
applySignatureRequest(signature_request) {
|
|
973
|
+
_assertClass(signature_request, SignatureRequestHandle);
|
|
974
|
+
const ret = wasm.client_applySignatureRequest(this.__wbg_ptr, signature_request.__wbg_ptr);
|
|
975
|
+
return ret;
|
|
976
|
+
}
|
|
977
|
+
/**
|
|
978
|
+
* @param {SignatureRequestHandle} signature_request
|
|
979
|
+
* @returns {Promise<void>}
|
|
980
|
+
*/
|
|
981
|
+
registerIdentity(signature_request) {
|
|
982
|
+
_assertClass(signature_request, SignatureRequestHandle);
|
|
983
|
+
var ptr0 = signature_request.__destroy_into_raw();
|
|
984
|
+
const ret = wasm.client_registerIdentity(this.__wbg_ptr, ptr0);
|
|
985
|
+
return ret;
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
* @param {string} signature_text
|
|
989
|
+
* @returns {Uint8Array}
|
|
990
|
+
*/
|
|
991
|
+
signWithInstallationKey(signature_text) {
|
|
992
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
993
|
+
const len0 = WASM_VECTOR_LEN;
|
|
994
|
+
const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
|
|
995
|
+
if (ret[2]) {
|
|
996
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
997
|
+
}
|
|
998
|
+
return takeFromExternrefTable0(ret[0]);
|
|
999
|
+
}
|
|
1000
|
+
/**
|
|
1001
|
+
* @param {string} signature_text
|
|
1002
|
+
* @param {Uint8Array} signature_bytes
|
|
1003
|
+
*/
|
|
1004
|
+
verifySignedWithInstallationKey(signature_text, signature_bytes) {
|
|
1005
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1006
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1007
|
+
const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
|
|
1008
|
+
if (ret[1]) {
|
|
1009
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
/**
|
|
1013
|
+
* @param {Consent[]} records
|
|
1014
|
+
* @returns {Promise<void>}
|
|
884
1015
|
*/
|
|
885
|
-
|
|
886
|
-
const ptr0 =
|
|
1016
|
+
setConsentStates(records) {
|
|
1017
|
+
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
887
1018
|
const len0 = WASM_VECTOR_LEN;
|
|
888
|
-
wasm.
|
|
889
|
-
|
|
890
|
-
}
|
|
891
|
-
if (Symbol.dispose) Attachment.prototype[Symbol.dispose] = Attachment.prototype.free;
|
|
892
|
-
|
|
893
|
-
const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
894
|
-
? { register: () => {}, unregister: () => {} }
|
|
895
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_client_free(ptr >>> 0, 1));
|
|
896
|
-
|
|
897
|
-
export class Client {
|
|
898
|
-
|
|
899
|
-
static __wrap(ptr) {
|
|
900
|
-
ptr = ptr >>> 0;
|
|
901
|
-
const obj = Object.create(Client.prototype);
|
|
902
|
-
obj.__wbg_ptr = ptr;
|
|
903
|
-
ClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
904
|
-
return obj;
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
__destroy_into_raw() {
|
|
908
|
-
const ptr = this.__wbg_ptr;
|
|
909
|
-
this.__wbg_ptr = 0;
|
|
910
|
-
ClientFinalization.unregister(this);
|
|
911
|
-
return ptr;
|
|
1019
|
+
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
1020
|
+
return ret;
|
|
912
1021
|
}
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
1022
|
+
/**
|
|
1023
|
+
* @param {ConsentEntityType} entity_type
|
|
1024
|
+
* @param {string} entity
|
|
1025
|
+
* @returns {Promise<ConsentState>}
|
|
1026
|
+
*/
|
|
1027
|
+
getConsentState(entity_type, entity) {
|
|
1028
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1029
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1030
|
+
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
1031
|
+
return ret;
|
|
917
1032
|
}
|
|
918
1033
|
/**
|
|
919
1034
|
* @returns {Identifier}
|
|
@@ -1041,7 +1156,7 @@ export class Client {
|
|
|
1041
1156
|
return Conversations.__wrap(ret);
|
|
1042
1157
|
}
|
|
1043
1158
|
/**
|
|
1044
|
-
* @returns {Promise<
|
|
1159
|
+
* @returns {Promise<GroupSyncSummary>}
|
|
1045
1160
|
*/
|
|
1046
1161
|
syncPreferences() {
|
|
1047
1162
|
const ret = wasm.client_syncPreferences(this.__wbg_ptr);
|
|
@@ -1151,122 +1266,6 @@ export class Client {
|
|
|
1151
1266
|
const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
|
|
1152
1267
|
return ret;
|
|
1153
1268
|
}
|
|
1154
|
-
/**
|
|
1155
|
-
* @returns {SignatureRequestHandle | undefined}
|
|
1156
|
-
*/
|
|
1157
|
-
createInboxSignatureRequest() {
|
|
1158
|
-
const ret = wasm.client_createInboxSignatureRequest(this.__wbg_ptr);
|
|
1159
|
-
if (ret[2]) {
|
|
1160
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1161
|
-
}
|
|
1162
|
-
return ret[0] === 0 ? undefined : SignatureRequestHandle.__wrap(ret[0]);
|
|
1163
|
-
}
|
|
1164
|
-
/**
|
|
1165
|
-
* @param {Identifier} new_identifier
|
|
1166
|
-
* @returns {Promise<SignatureRequestHandle>}
|
|
1167
|
-
*/
|
|
1168
|
-
addWalletSignatureRequest(new_identifier) {
|
|
1169
|
-
const ret = wasm.client_addWalletSignatureRequest(this.__wbg_ptr, new_identifier);
|
|
1170
|
-
return ret;
|
|
1171
|
-
}
|
|
1172
|
-
/**
|
|
1173
|
-
* @param {Identifier} identifier
|
|
1174
|
-
* @returns {Promise<SignatureRequestHandle>}
|
|
1175
|
-
*/
|
|
1176
|
-
revokeWalletSignatureRequest(identifier) {
|
|
1177
|
-
const ret = wasm.client_revokeWalletSignatureRequest(this.__wbg_ptr, identifier);
|
|
1178
|
-
return ret;
|
|
1179
|
-
}
|
|
1180
|
-
/**
|
|
1181
|
-
* @returns {Promise<SignatureRequestHandle>}
|
|
1182
|
-
*/
|
|
1183
|
-
revokeAllOtherInstallationsSignatureRequest() {
|
|
1184
|
-
const ret = wasm.client_revokeAllOtherInstallationsSignatureRequest(this.__wbg_ptr);
|
|
1185
|
-
return ret;
|
|
1186
|
-
}
|
|
1187
|
-
/**
|
|
1188
|
-
* @param {Uint8Array[]} installation_ids
|
|
1189
|
-
* @returns {Promise<SignatureRequestHandle>}
|
|
1190
|
-
*/
|
|
1191
|
-
revokeInstallationsSignatureRequest(installation_ids) {
|
|
1192
|
-
const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
1193
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1194
|
-
const ret = wasm.client_revokeInstallationsSignatureRequest(this.__wbg_ptr, ptr0, len0);
|
|
1195
|
-
return ret;
|
|
1196
|
-
}
|
|
1197
|
-
/**
|
|
1198
|
-
* @param {Identifier} new_recovery_identifier
|
|
1199
|
-
* @returns {Promise<SignatureRequestHandle>}
|
|
1200
|
-
*/
|
|
1201
|
-
changeRecoveryIdentifierSignatureRequest(new_recovery_identifier) {
|
|
1202
|
-
const ret = wasm.client_changeRecoveryIdentifierSignatureRequest(this.__wbg_ptr, new_recovery_identifier);
|
|
1203
|
-
return ret;
|
|
1204
|
-
}
|
|
1205
|
-
/**
|
|
1206
|
-
* @param {SignatureRequestHandle} signature_request
|
|
1207
|
-
* @returns {Promise<void>}
|
|
1208
|
-
*/
|
|
1209
|
-
applySignatureRequest(signature_request) {
|
|
1210
|
-
_assertClass(signature_request, SignatureRequestHandle);
|
|
1211
|
-
const ret = wasm.client_applySignatureRequest(this.__wbg_ptr, signature_request.__wbg_ptr);
|
|
1212
|
-
return ret;
|
|
1213
|
-
}
|
|
1214
|
-
/**
|
|
1215
|
-
* @param {SignatureRequestHandle} signature_request
|
|
1216
|
-
* @returns {Promise<void>}
|
|
1217
|
-
*/
|
|
1218
|
-
registerIdentity(signature_request) {
|
|
1219
|
-
_assertClass(signature_request, SignatureRequestHandle);
|
|
1220
|
-
var ptr0 = signature_request.__destroy_into_raw();
|
|
1221
|
-
const ret = wasm.client_registerIdentity(this.__wbg_ptr, ptr0);
|
|
1222
|
-
return ret;
|
|
1223
|
-
}
|
|
1224
|
-
/**
|
|
1225
|
-
* @param {string} signature_text
|
|
1226
|
-
* @returns {Uint8Array}
|
|
1227
|
-
*/
|
|
1228
|
-
signWithInstallationKey(signature_text) {
|
|
1229
|
-
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1230
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1231
|
-
const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
|
|
1232
|
-
if (ret[2]) {
|
|
1233
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1234
|
-
}
|
|
1235
|
-
return takeFromExternrefTable0(ret[0]);
|
|
1236
|
-
}
|
|
1237
|
-
/**
|
|
1238
|
-
* @param {string} signature_text
|
|
1239
|
-
* @param {Uint8Array} signature_bytes
|
|
1240
|
-
*/
|
|
1241
|
-
verifySignedWithInstallationKey(signature_text, signature_bytes) {
|
|
1242
|
-
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1243
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1244
|
-
const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
|
|
1245
|
-
if (ret[1]) {
|
|
1246
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
1247
|
-
}
|
|
1248
|
-
}
|
|
1249
|
-
/**
|
|
1250
|
-
* @param {Consent[]} records
|
|
1251
|
-
* @returns {Promise<void>}
|
|
1252
|
-
*/
|
|
1253
|
-
setConsentStates(records) {
|
|
1254
|
-
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
1255
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1256
|
-
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
1257
|
-
return ret;
|
|
1258
|
-
}
|
|
1259
|
-
/**
|
|
1260
|
-
* @param {ConsentEntityType} entity_type
|
|
1261
|
-
* @param {string} entity
|
|
1262
|
-
* @returns {Promise<ConsentState>}
|
|
1263
|
-
*/
|
|
1264
|
-
getConsentState(entity_type, entity) {
|
|
1265
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1266
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1267
|
-
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
1268
|
-
return ret;
|
|
1269
|
-
}
|
|
1270
1269
|
}
|
|
1271
1270
|
if (Symbol.dispose) Client.prototype[Symbol.dispose] = Client.prototype.free;
|
|
1272
1271
|
|
|
@@ -2443,7 +2442,7 @@ export class Conversations {
|
|
|
2443
2442
|
}
|
|
2444
2443
|
/**
|
|
2445
2444
|
* @param {any[] | null} [consent_states]
|
|
2446
|
-
* @returns {Promise<
|
|
2445
|
+
* @returns {Promise<GroupSyncSummary>}
|
|
2447
2446
|
*/
|
|
2448
2447
|
syncAllConversations(consent_states) {
|
|
2449
2448
|
var ptr0 = isLikeNone(consent_states) ? 0 : passArrayJsValueToWasm0(consent_states, wasm.__wbindgen_malloc);
|
|
@@ -3502,6 +3501,70 @@ export class GroupPermissions {
|
|
|
3502
3501
|
}
|
|
3503
3502
|
if (Symbol.dispose) GroupPermissions.prototype[Symbol.dispose] = GroupPermissions.prototype.free;
|
|
3504
3503
|
|
|
3504
|
+
const GroupSyncSummaryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3505
|
+
? { register: () => {}, unregister: () => {} }
|
|
3506
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_groupsyncsummary_free(ptr >>> 0, 1));
|
|
3507
|
+
|
|
3508
|
+
export class GroupSyncSummary {
|
|
3509
|
+
|
|
3510
|
+
static __wrap(ptr) {
|
|
3511
|
+
ptr = ptr >>> 0;
|
|
3512
|
+
const obj = Object.create(GroupSyncSummary.prototype);
|
|
3513
|
+
obj.__wbg_ptr = ptr;
|
|
3514
|
+
GroupSyncSummaryFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3515
|
+
return obj;
|
|
3516
|
+
}
|
|
3517
|
+
|
|
3518
|
+
__destroy_into_raw() {
|
|
3519
|
+
const ptr = this.__wbg_ptr;
|
|
3520
|
+
this.__wbg_ptr = 0;
|
|
3521
|
+
GroupSyncSummaryFinalization.unregister(this);
|
|
3522
|
+
return ptr;
|
|
3523
|
+
}
|
|
3524
|
+
|
|
3525
|
+
free() {
|
|
3526
|
+
const ptr = this.__destroy_into_raw();
|
|
3527
|
+
wasm.__wbg_groupsyncsummary_free(ptr, 0);
|
|
3528
|
+
}
|
|
3529
|
+
/**
|
|
3530
|
+
* @returns {number}
|
|
3531
|
+
*/
|
|
3532
|
+
get numEligible() {
|
|
3533
|
+
const ret = wasm.__wbg_get_groupsyncsummary_numEligible(this.__wbg_ptr);
|
|
3534
|
+
return ret >>> 0;
|
|
3535
|
+
}
|
|
3536
|
+
/**
|
|
3537
|
+
* @param {number} arg0
|
|
3538
|
+
*/
|
|
3539
|
+
set numEligible(arg0) {
|
|
3540
|
+
wasm.__wbg_set_groupsyncsummary_numEligible(this.__wbg_ptr, arg0);
|
|
3541
|
+
}
|
|
3542
|
+
/**
|
|
3543
|
+
* @returns {number}
|
|
3544
|
+
*/
|
|
3545
|
+
get numSynced() {
|
|
3546
|
+
const ret = wasm.__wbg_get_groupsyncsummary_numSynced(this.__wbg_ptr);
|
|
3547
|
+
return ret >>> 0;
|
|
3548
|
+
}
|
|
3549
|
+
/**
|
|
3550
|
+
* @param {number} arg0
|
|
3551
|
+
*/
|
|
3552
|
+
set numSynced(arg0) {
|
|
3553
|
+
wasm.__wbg_set_groupsyncsummary_numSynced(this.__wbg_ptr, arg0);
|
|
3554
|
+
}
|
|
3555
|
+
/**
|
|
3556
|
+
* @param {number} num_eligible
|
|
3557
|
+
* @param {number} num_synced
|
|
3558
|
+
*/
|
|
3559
|
+
constructor(num_eligible, num_synced) {
|
|
3560
|
+
const ret = wasm.groupsyncsummary_new(num_eligible, num_synced);
|
|
3561
|
+
this.__wbg_ptr = ret >>> 0;
|
|
3562
|
+
GroupSyncSummaryFinalization.register(this, this.__wbg_ptr, this);
|
|
3563
|
+
return this;
|
|
3564
|
+
}
|
|
3565
|
+
}
|
|
3566
|
+
if (Symbol.dispose) GroupSyncSummary.prototype[Symbol.dispose] = GroupSyncSummary.prototype.free;
|
|
3567
|
+
|
|
3505
3568
|
const GroupUpdatedFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3506
3569
|
? { register: () => {}, unregister: () => {} }
|
|
3507
3570
|
: new FinalizationRegistry(ptr => wasm.__wbg_groupupdated_free(ptr >>> 0, 1));
|
|
@@ -3548,7 +3611,7 @@ export class GroupUpdated {
|
|
|
3548
3611
|
set initiatedByInboxId(arg0) {
|
|
3549
3612
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3550
3613
|
const len0 = WASM_VECTOR_LEN;
|
|
3551
|
-
wasm.
|
|
3614
|
+
wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
|
|
3552
3615
|
}
|
|
3553
3616
|
/**
|
|
3554
3617
|
* @returns {Inbox[]}
|
|
@@ -3787,7 +3850,7 @@ export class Inbox {
|
|
|
3787
3850
|
set inboxId(arg0) {
|
|
3788
3851
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3789
3852
|
const len0 = WASM_VECTOR_LEN;
|
|
3790
|
-
wasm.
|
|
3853
|
+
wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
|
|
3791
3854
|
}
|
|
3792
3855
|
}
|
|
3793
3856
|
if (Symbol.dispose) Inbox.prototype[Symbol.dispose] = Inbox.prototype.free;
|
|
@@ -3838,7 +3901,7 @@ export class InboxState {
|
|
|
3838
3901
|
set inboxId(arg0) {
|
|
3839
3902
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3840
3903
|
const len0 = WASM_VECTOR_LEN;
|
|
3841
|
-
wasm.
|
|
3904
|
+
wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
|
|
3842
3905
|
}
|
|
3843
3906
|
/**
|
|
3844
3907
|
* @returns {Identifier}
|
|
@@ -4163,7 +4226,7 @@ export class KeyPackageStatus {
|
|
|
4163
4226
|
* @returns {Lifetime | undefined}
|
|
4164
4227
|
*/
|
|
4165
4228
|
get lifetime() {
|
|
4166
|
-
const ret = wasm.
|
|
4229
|
+
const ret = wasm.__wbg_get_createdmoptions_messageDisappearingSettings(this.__wbg_ptr);
|
|
4167
4230
|
return ret === 0 ? undefined : Lifetime.__wrap(ret);
|
|
4168
4231
|
}
|
|
4169
4232
|
/**
|
|
@@ -4175,7 +4238,7 @@ export class KeyPackageStatus {
|
|
|
4175
4238
|
_assertClass(arg0, Lifetime);
|
|
4176
4239
|
ptr0 = arg0.__destroy_into_raw();
|
|
4177
4240
|
}
|
|
4178
|
-
wasm.
|
|
4241
|
+
wasm.__wbg_set_createdmoptions_messageDisappearingSettings(this.__wbg_ptr, ptr0);
|
|
4179
4242
|
}
|
|
4180
4243
|
/**
|
|
4181
4244
|
* @returns {string | undefined}
|
|
@@ -4229,27 +4292,27 @@ export class Lifetime {
|
|
|
4229
4292
|
* @returns {bigint}
|
|
4230
4293
|
*/
|
|
4231
4294
|
get not_before() {
|
|
4232
|
-
const ret = wasm.
|
|
4295
|
+
const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
|
|
4233
4296
|
return BigInt.asUintN(64, ret);
|
|
4234
4297
|
}
|
|
4235
4298
|
/**
|
|
4236
4299
|
* @param {bigint} arg0
|
|
4237
4300
|
*/
|
|
4238
4301
|
set not_before(arg0) {
|
|
4239
|
-
wasm.
|
|
4302
|
+
wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
|
|
4240
4303
|
}
|
|
4241
4304
|
/**
|
|
4242
4305
|
* @returns {bigint}
|
|
4243
4306
|
*/
|
|
4244
4307
|
get not_after() {
|
|
4245
|
-
const ret = wasm.
|
|
4308
|
+
const ret = wasm.__wbg_get_lifetime_not_after(this.__wbg_ptr);
|
|
4246
4309
|
return BigInt.asUintN(64, ret);
|
|
4247
4310
|
}
|
|
4248
4311
|
/**
|
|
4249
4312
|
* @param {bigint} arg0
|
|
4250
4313
|
*/
|
|
4251
4314
|
set not_after(arg0) {
|
|
4252
|
-
wasm.
|
|
4315
|
+
wasm.__wbg_set_lifetime_not_after(this.__wbg_ptr, arg0);
|
|
4253
4316
|
}
|
|
4254
4317
|
}
|
|
4255
4318
|
if (Symbol.dispose) Lifetime.prototype[Symbol.dispose] = Lifetime.prototype.free;
|
|
@@ -4315,7 +4378,7 @@ export class ListConversationsOptions {
|
|
|
4315
4378
|
* @param {bigint | null} [arg0]
|
|
4316
4379
|
*/
|
|
4317
4380
|
set createdAfterNs(arg0) {
|
|
4318
|
-
wasm.
|
|
4381
|
+
wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
4319
4382
|
}
|
|
4320
4383
|
/**
|
|
4321
4384
|
* @returns {bigint | undefined}
|
|
@@ -4443,7 +4506,7 @@ export class ListMessagesOptions {
|
|
|
4443
4506
|
* @param {bigint | null} [arg0]
|
|
4444
4507
|
*/
|
|
4445
4508
|
set sentBeforeNs(arg0) {
|
|
4446
|
-
wasm.
|
|
4509
|
+
wasm.__wbg_set_listmessagesoptions_sentBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
4447
4510
|
}
|
|
4448
4511
|
/**
|
|
4449
4512
|
* @returns {bigint | undefined}
|
|
@@ -4456,7 +4519,7 @@ export class ListMessagesOptions {
|
|
|
4456
4519
|
* @param {bigint | null} [arg0]
|
|
4457
4520
|
*/
|
|
4458
4521
|
set sentAfterNs(arg0) {
|
|
4459
|
-
wasm.
|
|
4522
|
+
wasm.__wbg_set_listmessagesoptions_sentAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
4460
4523
|
}
|
|
4461
4524
|
/**
|
|
4462
4525
|
* @returns {bigint | undefined}
|
|
@@ -4469,7 +4532,7 @@ export class ListMessagesOptions {
|
|
|
4469
4532
|
* @param {bigint | null} [arg0]
|
|
4470
4533
|
*/
|
|
4471
4534
|
set limit(arg0) {
|
|
4472
|
-
wasm.
|
|
4535
|
+
wasm.__wbg_set_listmessagesoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
4473
4536
|
}
|
|
4474
4537
|
/**
|
|
4475
4538
|
* @returns {DeliveryStatus | undefined}
|
|
@@ -4693,14 +4756,14 @@ export class Message {
|
|
|
4693
4756
|
* @returns {bigint}
|
|
4694
4757
|
*/
|
|
4695
4758
|
get sentAtNs() {
|
|
4696
|
-
const ret = wasm.
|
|
4759
|
+
const ret = wasm.__wbg_get_message_sentAtNs(this.__wbg_ptr);
|
|
4697
4760
|
return ret;
|
|
4698
4761
|
}
|
|
4699
4762
|
/**
|
|
4700
4763
|
* @param {bigint} arg0
|
|
4701
4764
|
*/
|
|
4702
4765
|
set sentAtNs(arg0) {
|
|
4703
|
-
wasm.
|
|
4766
|
+
wasm.__wbg_set_message_sentAtNs(this.__wbg_ptr, arg0);
|
|
4704
4767
|
}
|
|
4705
4768
|
/**
|
|
4706
4769
|
* @returns {string}
|
|
@@ -4857,14 +4920,14 @@ export class MessageDisappearingSettings {
|
|
|
4857
4920
|
* @returns {bigint}
|
|
4858
4921
|
*/
|
|
4859
4922
|
get inNs() {
|
|
4860
|
-
const ret = wasm.
|
|
4923
|
+
const ret = wasm.__wbg_get_lifetime_not_after(this.__wbg_ptr);
|
|
4861
4924
|
return ret;
|
|
4862
4925
|
}
|
|
4863
4926
|
/**
|
|
4864
4927
|
* @param {bigint} arg0
|
|
4865
4928
|
*/
|
|
4866
4929
|
set inNs(arg0) {
|
|
4867
|
-
wasm.
|
|
4930
|
+
wasm.__wbg_set_lifetime_not_after(this.__wbg_ptr, arg0);
|
|
4868
4931
|
}
|
|
4869
4932
|
/**
|
|
4870
4933
|
* @param {bigint} from_ns
|
|
@@ -4992,7 +5055,7 @@ export class MetadataFieldChange {
|
|
|
4992
5055
|
set fieldName(arg0) {
|
|
4993
5056
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4994
5057
|
const len0 = WASM_VECTOR_LEN;
|
|
4995
|
-
wasm.
|
|
5058
|
+
wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
|
|
4996
5059
|
}
|
|
4997
5060
|
/**
|
|
4998
5061
|
* @returns {string | undefined}
|
|
@@ -5450,7 +5513,7 @@ export class Reaction {
|
|
|
5450
5513
|
set reference(arg0) {
|
|
5451
5514
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5452
5515
|
const len0 = WASM_VECTOR_LEN;
|
|
5453
|
-
wasm.
|
|
5516
|
+
wasm.__wbg_set_reaction_reference(this.__wbg_ptr, ptr0, len0);
|
|
5454
5517
|
}
|
|
5455
5518
|
/**
|
|
5456
5519
|
* @returns {string}
|
|
@@ -5592,7 +5655,7 @@ export class ReactionPayload {
|
|
|
5592
5655
|
set reference(arg0) {
|
|
5593
5656
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5594
5657
|
const len0 = WASM_VECTOR_LEN;
|
|
5595
|
-
wasm.
|
|
5658
|
+
wasm.__wbg_set_reaction_reference(this.__wbg_ptr, ptr0, len0);
|
|
5596
5659
|
}
|
|
5597
5660
|
/**
|
|
5598
5661
|
* @returns {string}
|
|
@@ -5840,7 +5903,7 @@ export class RemoteAttachment {
|
|
|
5840
5903
|
set scheme(arg0) {
|
|
5841
5904
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5842
5905
|
const len0 = WASM_VECTOR_LEN;
|
|
5843
|
-
wasm.
|
|
5906
|
+
wasm.__wbg_set_remoteattachment_scheme(this.__wbg_ptr, ptr0, len0);
|
|
5844
5907
|
}
|
|
5845
5908
|
/**
|
|
5846
5909
|
* @returns {bigint}
|
|
@@ -6281,7 +6344,7 @@ export class TextContent {
|
|
|
6281
6344
|
set content(arg0) {
|
|
6282
6345
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6283
6346
|
const len0 = WASM_VECTOR_LEN;
|
|
6284
|
-
wasm.
|
|
6347
|
+
wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
|
|
6285
6348
|
}
|
|
6286
6349
|
}
|
|
6287
6350
|
if (Symbol.dispose) TextContent.prototype[Symbol.dispose] = TextContent.prototype.free;
|
|
@@ -6332,7 +6395,7 @@ export class TransactionMetadata {
|
|
|
6332
6395
|
set transactionType(arg0) {
|
|
6333
6396
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6334
6397
|
const len0 = WASM_VECTOR_LEN;
|
|
6335
|
-
wasm.
|
|
6398
|
+
wasm.__wbg_set_conversationdebuginfo_forkDetails(this.__wbg_ptr, ptr0, len0);
|
|
6336
6399
|
}
|
|
6337
6400
|
/**
|
|
6338
6401
|
* @returns {string}
|
|
@@ -6355,7 +6418,7 @@ export class TransactionMetadata {
|
|
|
6355
6418
|
set currency(arg0) {
|
|
6356
6419
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6357
6420
|
const len0 = WASM_VECTOR_LEN;
|
|
6358
|
-
wasm.
|
|
6421
|
+
wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
|
|
6359
6422
|
}
|
|
6360
6423
|
/**
|
|
6361
6424
|
* @returns {number}
|
|
@@ -6404,7 +6467,7 @@ export class TransactionMetadata {
|
|
|
6404
6467
|
set fromAddress(arg0) {
|
|
6405
6468
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6406
6469
|
const len0 = WASM_VECTOR_LEN;
|
|
6407
|
-
wasm.
|
|
6470
|
+
wasm.__wbg_set_conversationdebuginfo_remoteCommitLog(this.__wbg_ptr, ptr0, len0);
|
|
6408
6471
|
}
|
|
6409
6472
|
/**
|
|
6410
6473
|
* @returns {string}
|
|
@@ -6427,7 +6490,7 @@ export class TransactionMetadata {
|
|
|
6427
6490
|
set toAddress(arg0) {
|
|
6428
6491
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6429
6492
|
const len0 = WASM_VECTOR_LEN;
|
|
6430
|
-
wasm.
|
|
6493
|
+
wasm.__wbg_set_remoteattachment_salt(this.__wbg_ptr, ptr0, len0);
|
|
6431
6494
|
}
|
|
6432
6495
|
}
|
|
6433
6496
|
if (Symbol.dispose) TransactionMetadata.prototype[Symbol.dispose] = TransactionMetadata.prototype.free;
|
|
@@ -6955,6 +7018,10 @@ function __wbg_get_imports() {
|
|
|
6955
7018
|
const ret = GroupMetadata.__wrap(arg0);
|
|
6956
7019
|
return ret;
|
|
6957
7020
|
};
|
|
7021
|
+
imports.wbg.__wbg_groupsyncsummary_new = function(arg0) {
|
|
7022
|
+
const ret = GroupSyncSummary.__wrap(arg0);
|
|
7023
|
+
return ret;
|
|
7024
|
+
};
|
|
6958
7025
|
imports.wbg.__wbg_has_6a9bff5f4208cfca = function(arg0, arg1) {
|
|
6959
7026
|
const ret = arg0.has(arg1);
|
|
6960
7027
|
return ret;
|
|
@@ -7144,7 +7211,7 @@ function __wbg_get_imports() {
|
|
|
7144
7211
|
const a = state0.a;
|
|
7145
7212
|
state0.a = 0;
|
|
7146
7213
|
try {
|
|
7147
|
-
return
|
|
7214
|
+
return __wbg_adapter_937(a, state0.b, arg0, arg1);
|
|
7148
7215
|
} finally {
|
|
7149
7216
|
state0.a = a;
|
|
7150
7217
|
}
|
|
@@ -7626,26 +7693,11 @@ function __wbg_get_imports() {
|
|
|
7626
7693
|
const ret = XmtpCursor.__unwrap(arg0);
|
|
7627
7694
|
return ret;
|
|
7628
7695
|
};
|
|
7629
|
-
imports.wbg.__wbindgen_cast_12c75ee0c4bbbe04 = function(arg0, arg1) {
|
|
7630
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 6876, function: Function { arguments: [Externref], shim_idx: 6887, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7631
|
-
const ret = makeMutClosure(arg0, arg1, 6876, __wbg_adapter_30);
|
|
7632
|
-
return ret;
|
|
7633
|
-
};
|
|
7634
|
-
imports.wbg.__wbindgen_cast_1b7f7f568e748ae7 = function(arg0, arg1) {
|
|
7635
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 6863, function: Function { arguments: [], shim_idx: 6864, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7636
|
-
const ret = makeMutClosure(arg0, arg1, 6863, __wbg_adapter_19);
|
|
7637
|
-
return ret;
|
|
7638
|
-
};
|
|
7639
7696
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
7640
7697
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
7641
7698
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
7642
7699
|
return ret;
|
|
7643
7700
|
};
|
|
7644
|
-
imports.wbg.__wbindgen_cast_3bc3aaada66c6346 = function(arg0, arg1) {
|
|
7645
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 6474, function: Function { arguments: [], shim_idx: 6475, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7646
|
-
const ret = makeMutClosure(arg0, arg1, 6474, __wbg_adapter_8);
|
|
7647
|
-
return ret;
|
|
7648
|
-
};
|
|
7649
7701
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
7650
7702
|
// Cast intrinsic for `U64 -> Externref`.
|
|
7651
7703
|
const ret = BigInt.asUintN(64, arg0);
|
|
@@ -7658,6 +7710,21 @@ function __wbg_get_imports() {
|
|
|
7658
7710
|
const ret = v0;
|
|
7659
7711
|
return ret;
|
|
7660
7712
|
};
|
|
7713
|
+
imports.wbg.__wbindgen_cast_53c92800d0d29e36 = function(arg0, arg1) {
|
|
7714
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4890, function: Function { arguments: [], shim_idx: 4891, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7715
|
+
const ret = makeMutClosure(arg0, arg1, 4890, __wbg_adapter_10);
|
|
7716
|
+
return ret;
|
|
7717
|
+
};
|
|
7718
|
+
imports.wbg.__wbindgen_cast_6798c2a5eadbaf4c = function(arg0, arg1) {
|
|
7719
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 6731, function: Function { arguments: [], shim_idx: 6732, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7720
|
+
const ret = makeMutClosure(arg0, arg1, 6731, __wbg_adapter_15);
|
|
7721
|
+
return ret;
|
|
7722
|
+
};
|
|
7723
|
+
imports.wbg.__wbindgen_cast_8a5711609b1ed734 = function(arg0, arg1) {
|
|
7724
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7141, function: Function { arguments: [Externref], shim_idx: 7152, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7725
|
+
const ret = makeMutClosure(arg0, arg1, 7141, __wbg_adapter_25);
|
|
7726
|
+
return ret;
|
|
7727
|
+
};
|
|
7661
7728
|
imports.wbg.__wbindgen_cast_8e37b4ad2f2ba653 = function(arg0, arg1) {
|
|
7662
7729
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
7663
7730
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -7687,6 +7754,11 @@ function __wbg_get_imports() {
|
|
|
7687
7754
|
const ret = arg0;
|
|
7688
7755
|
return ret;
|
|
7689
7756
|
};
|
|
7757
|
+
imports.wbg.__wbindgen_cast_dd692d1ee4d0d90d = function(arg0, arg1) {
|
|
7758
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 7128, function: Function { arguments: [], shim_idx: 7129, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7759
|
+
const ret = makeMutClosure(arg0, arg1, 7128, __wbg_adapter_22);
|
|
7760
|
+
return ret;
|
|
7761
|
+
};
|
|
7690
7762
|
imports.wbg.__wbindgen_cast_e081be35fe620ec4 = function(arg0, arg1) {
|
|
7691
7763
|
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
7692
7764
|
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
@@ -7701,11 +7773,6 @@ function __wbg_get_imports() {
|
|
|
7701
7773
|
const ret = v0;
|
|
7702
7774
|
return ret;
|
|
7703
7775
|
};
|
|
7704
|
-
imports.wbg.__wbindgen_cast_fd5a474be345527f = function(arg0, arg1) {
|
|
7705
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 4644, function: Function { arguments: [], shim_idx: 4645, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7706
|
-
const ret = makeMutClosure(arg0, arg1, 4644, __wbg_adapter_35);
|
|
7707
|
-
return ret;
|
|
7708
|
-
};
|
|
7709
7776
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
7710
7777
|
const table = wasm.__wbindgen_export_4;
|
|
7711
7778
|
const offset = table.grow(4);
|