@xmtp/wasm-bindings 1.6.0-dev.e545a64 → 1.6.1-rc3
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 +624 -612
- package/dist/bindings_wasm.js +1112 -1062
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +494 -490
- package/dist/version.json +3 -3
- package/package.json +1 -1
package/dist/bindings_wasm.js
CHANGED
|
@@ -229,22 +229,16 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
229
229
|
return real;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
function
|
|
233
|
-
const
|
|
234
|
-
|
|
235
|
-
|
|
232
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
233
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
234
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
235
|
+
WASM_VECTOR_LEN = arg.length;
|
|
236
|
+
return ptr;
|
|
236
237
|
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
*/
|
|
242
|
-
export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
|
|
243
|
-
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
244
|
-
const len0 = WASM_VECTOR_LEN;
|
|
245
|
-
const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
|
|
246
|
-
if (ret[1]) {
|
|
247
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
238
|
+
|
|
239
|
+
function _assertClass(instance, klass) {
|
|
240
|
+
if (!(instance instanceof klass)) {
|
|
241
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
248
242
|
}
|
|
249
243
|
}
|
|
250
244
|
|
|
@@ -257,6 +251,64 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
257
251
|
WASM_VECTOR_LEN = array.length;
|
|
258
252
|
return ptr;
|
|
259
253
|
}
|
|
254
|
+
|
|
255
|
+
function takeFromExternrefTable0(idx) {
|
|
256
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
257
|
+
wasm.__externref_table_dealloc(idx);
|
|
258
|
+
return value;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
262
|
+
* @returns {Uint8Array}
|
|
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}
|
|
301
|
+
*/
|
|
302
|
+
export function encodeReaction(reaction) {
|
|
303
|
+
_assertClass(reaction, Reaction);
|
|
304
|
+
var ptr0 = reaction.__destroy_into_raw();
|
|
305
|
+
const ret = wasm.encodeReaction(ptr0);
|
|
306
|
+
if (ret[2]) {
|
|
307
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
308
|
+
}
|
|
309
|
+
return takeFromExternrefTable0(ret[0]);
|
|
310
|
+
}
|
|
311
|
+
|
|
260
312
|
/**
|
|
261
313
|
* @param {string} v3_host
|
|
262
314
|
* @param {string | null | undefined} gateway_host
|
|
@@ -281,11 +333,20 @@ export function revokeInstallationsSignatureRequest(v3_host, gateway_host, recov
|
|
|
281
333
|
return SignatureRequestHandle.__wrap(ret[0]);
|
|
282
334
|
}
|
|
283
335
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
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]);
|
|
287
347
|
}
|
|
288
348
|
}
|
|
349
|
+
|
|
289
350
|
/**
|
|
290
351
|
* @param {string} v3_host
|
|
291
352
|
* @param {string | null | undefined} gateway_host
|
|
@@ -302,12 +363,6 @@ export function applySignatureRequest(v3_host, gateway_host, signature_request)
|
|
|
302
363
|
return ret;
|
|
303
364
|
}
|
|
304
365
|
|
|
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;
|
|
310
|
-
}
|
|
311
366
|
/**
|
|
312
367
|
* @param {string} v3_host
|
|
313
368
|
* @param {string | null | undefined} gateway_host
|
|
@@ -325,70 +380,6 @@ export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
|
|
|
325
380
|
return ret;
|
|
326
381
|
}
|
|
327
382
|
|
|
328
|
-
/**
|
|
329
|
-
* @param {string} v3_host
|
|
330
|
-
* @param {string | null | undefined} gateway_host
|
|
331
|
-
* @param {Identifier} accountIdentifier
|
|
332
|
-
* @returns {Promise<string | undefined>}
|
|
333
|
-
*/
|
|
334
|
-
export function getInboxIdForIdentifier(v3_host, gateway_host, accountIdentifier) {
|
|
335
|
-
const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
336
|
-
const len0 = WASM_VECTOR_LEN;
|
|
337
|
-
var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
338
|
-
var len1 = WASM_VECTOR_LEN;
|
|
339
|
-
const ret = wasm.getInboxIdForIdentifier(ptr0, len0, ptr1, len1, accountIdentifier);
|
|
340
|
-
return ret;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* @param {Identifier} accountIdentifier
|
|
345
|
-
* @returns {string}
|
|
346
|
-
*/
|
|
347
|
-
export function generateInboxId(accountIdentifier) {
|
|
348
|
-
let deferred2_0;
|
|
349
|
-
let deferred2_1;
|
|
350
|
-
try {
|
|
351
|
-
const ret = wasm.generateInboxId(accountIdentifier);
|
|
352
|
-
var ptr1 = ret[0];
|
|
353
|
-
var len1 = ret[1];
|
|
354
|
-
if (ret[3]) {
|
|
355
|
-
ptr1 = 0; len1 = 0;
|
|
356
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
357
|
-
}
|
|
358
|
-
deferred2_0 = ptr1;
|
|
359
|
-
deferred2_1 = len1;
|
|
360
|
-
return getStringFromWasm0(ptr1, len1);
|
|
361
|
-
} finally {
|
|
362
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* @param {Reaction} reaction
|
|
368
|
-
* @returns {Uint8Array}
|
|
369
|
-
*/
|
|
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]);
|
|
390
|
-
}
|
|
391
|
-
|
|
392
383
|
/**
|
|
393
384
|
* @param {string} host
|
|
394
385
|
* @param {string} inbox_id
|
|
@@ -427,29 +418,41 @@ export function createClient(host, inbox_id, account_identifier, db_path, encryp
|
|
|
427
418
|
}
|
|
428
419
|
|
|
429
420
|
/**
|
|
430
|
-
* @param {
|
|
431
|
-
* @
|
|
421
|
+
* @param {string} v3_host
|
|
422
|
+
* @param {string | null | undefined} gateway_host
|
|
423
|
+
* @param {Identifier} accountIdentifier
|
|
424
|
+
* @returns {Promise<string | undefined>}
|
|
432
425
|
*/
|
|
433
|
-
export function
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
return takeFromExternrefTable0(ret[0]);
|
|
426
|
+
export function getInboxIdForIdentifier(v3_host, gateway_host, accountIdentifier) {
|
|
427
|
+
const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
428
|
+
const len0 = WASM_VECTOR_LEN;
|
|
429
|
+
var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
430
|
+
var len1 = WASM_VECTOR_LEN;
|
|
431
|
+
const ret = wasm.getInboxIdForIdentifier(ptr0, len0, ptr1, len1, accountIdentifier);
|
|
432
|
+
return ret;
|
|
441
433
|
}
|
|
442
434
|
|
|
443
435
|
/**
|
|
444
|
-
* @param {
|
|
445
|
-
* @returns {
|
|
436
|
+
* @param {Identifier} accountIdentifier
|
|
437
|
+
* @returns {string}
|
|
446
438
|
*/
|
|
447
|
-
export function
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
439
|
+
export function generateInboxId(accountIdentifier) {
|
|
440
|
+
let deferred2_0;
|
|
441
|
+
let deferred2_1;
|
|
442
|
+
try {
|
|
443
|
+
const ret = wasm.generateInboxId(accountIdentifier);
|
|
444
|
+
var ptr1 = ret[0];
|
|
445
|
+
var len1 = ret[1];
|
|
446
|
+
if (ret[3]) {
|
|
447
|
+
ptr1 = 0; len1 = 0;
|
|
448
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
449
|
+
}
|
|
450
|
+
deferred2_0 = ptr1;
|
|
451
|
+
deferred2_1 = len1;
|
|
452
|
+
return getStringFromWasm0(ptr1, len1);
|
|
453
|
+
} finally {
|
|
454
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
451
455
|
}
|
|
452
|
-
return MultiRemoteAttachment.__wrap(ret[0]);
|
|
453
456
|
}
|
|
454
457
|
|
|
455
458
|
/**
|
|
@@ -463,24 +466,24 @@ export function task_worker_entry_point(ptr) {
|
|
|
463
466
|
}
|
|
464
467
|
}
|
|
465
468
|
|
|
466
|
-
function
|
|
467
|
-
wasm.
|
|
469
|
+
function __wbg_adapter_10(arg0, arg1, arg2) {
|
|
470
|
+
wasm.closure7273_externref_shim(arg0, arg1, arg2);
|
|
468
471
|
}
|
|
469
472
|
|
|
470
|
-
function
|
|
471
|
-
wasm.
|
|
473
|
+
function __wbg_adapter_25(arg0, arg1) {
|
|
474
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1b0aee6a11857ece(arg0, arg1);
|
|
472
475
|
}
|
|
473
476
|
|
|
474
477
|
function __wbg_adapter_28(arg0, arg1) {
|
|
475
|
-
wasm.
|
|
478
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h02b2793523eb74f0(arg0, arg1);
|
|
476
479
|
}
|
|
477
480
|
|
|
478
|
-
function
|
|
479
|
-
wasm.
|
|
481
|
+
function __wbg_adapter_33(arg0, arg1) {
|
|
482
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h8d77716d6e2e4cde(arg0, arg1);
|
|
480
483
|
}
|
|
481
484
|
|
|
482
|
-
function
|
|
483
|
-
wasm.
|
|
485
|
+
function __wbg_adapter_853(arg0, arg1, arg2, arg3) {
|
|
486
|
+
wasm.closure8230_externref_shim(arg0, arg1, arg2, arg3);
|
|
484
487
|
}
|
|
485
488
|
|
|
486
489
|
/**
|
|
@@ -531,13 +534,14 @@ export const DeliveryStatus = Object.freeze({
|
|
|
531
534
|
Failed: 2, "2": "Failed",
|
|
532
535
|
});
|
|
533
536
|
/**
|
|
534
|
-
* @enum {0 | 1 | 2 | 3}
|
|
537
|
+
* @enum {0 | 1 | 2 | 3 | 4}
|
|
535
538
|
*/
|
|
536
539
|
export const GroupMembershipState = Object.freeze({
|
|
537
540
|
Allowed: 0, "0": "Allowed",
|
|
538
541
|
Rejected: 1, "1": "Rejected",
|
|
539
542
|
Pending: 2, "2": "Pending",
|
|
540
543
|
Restored: 3, "3": "Restored",
|
|
544
|
+
PendingRemove: 4, "4": "PendingRemove",
|
|
541
545
|
});
|
|
542
546
|
/**
|
|
543
547
|
* @enum {0 | 1}
|
|
@@ -554,6 +558,13 @@ export const GroupPermissionsOptions = Object.freeze({
|
|
|
554
558
|
AdminOnly: 1, "1": "AdminOnly",
|
|
555
559
|
CustomPolicy: 2, "2": "CustomPolicy",
|
|
556
560
|
});
|
|
561
|
+
/**
|
|
562
|
+
* @enum {0 | 1}
|
|
563
|
+
*/
|
|
564
|
+
export const ListConversationsOrderBy = Object.freeze({
|
|
565
|
+
CreatedAt: 0, "0": "CreatedAt",
|
|
566
|
+
LastActivity: 1, "1": "LastActivity",
|
|
567
|
+
});
|
|
557
568
|
/**
|
|
558
569
|
* @enum {0 | 1 | 2 | 3 | 4}
|
|
559
570
|
*/
|
|
@@ -913,54 +924,34 @@ export class Client {
|
|
|
913
924
|
wasm.__wbg_client_free(ptr, 0);
|
|
914
925
|
}
|
|
915
926
|
/**
|
|
916
|
-
* @
|
|
927
|
+
* @param {ConsentEntityType} entity_type
|
|
928
|
+
* @param {string} entity
|
|
929
|
+
* @returns {Promise<ConsentState>}
|
|
917
930
|
*/
|
|
918
|
-
|
|
919
|
-
const
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
return ret[0] === 0 ? undefined : SignatureRequestHandle.__wrap(ret[0]);
|
|
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;
|
|
924
936
|
}
|
|
925
937
|
/**
|
|
926
|
-
* @param {
|
|
927
|
-
* @returns {Promise<
|
|
938
|
+
* @param {Consent[]} records
|
|
939
|
+
* @returns {Promise<void>}
|
|
928
940
|
*/
|
|
929
|
-
|
|
930
|
-
const
|
|
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);
|
|
931
945
|
return ret;
|
|
932
946
|
}
|
|
933
947
|
/**
|
|
934
|
-
* @param {
|
|
935
|
-
* @returns {Promise<
|
|
948
|
+
* @param {SignatureRequestHandle} signature_request
|
|
949
|
+
* @returns {Promise<void>}
|
|
936
950
|
*/
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
/**
|
|
942
|
-
* @returns {Promise<SignatureRequestHandle>}
|
|
943
|
-
*/
|
|
944
|
-
revokeAllOtherInstallationsSignatureRequest() {
|
|
945
|
-
const ret = wasm.client_revokeAllOtherInstallationsSignatureRequest(this.__wbg_ptr);
|
|
946
|
-
return ret;
|
|
947
|
-
}
|
|
948
|
-
/**
|
|
949
|
-
* @param {Uint8Array[]} installation_ids
|
|
950
|
-
* @returns {Promise<SignatureRequestHandle>}
|
|
951
|
-
*/
|
|
952
|
-
revokeInstallationsSignatureRequest(installation_ids) {
|
|
953
|
-
const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
954
|
-
const len0 = WASM_VECTOR_LEN;
|
|
955
|
-
const ret = wasm.client_revokeInstallationsSignatureRequest(this.__wbg_ptr, ptr0, len0);
|
|
956
|
-
return ret;
|
|
957
|
-
}
|
|
958
|
-
/**
|
|
959
|
-
* @param {Identifier} new_recovery_identifier
|
|
960
|
-
* @returns {Promise<SignatureRequestHandle>}
|
|
961
|
-
*/
|
|
962
|
-
changeRecoveryIdentifierSignatureRequest(new_recovery_identifier) {
|
|
963
|
-
const ret = wasm.client_changeRecoveryIdentifierSignatureRequest(this.__wbg_ptr, new_recovery_identifier);
|
|
951
|
+
registerIdentity(signature_request) {
|
|
952
|
+
_assertClass(signature_request, SignatureRequestHandle);
|
|
953
|
+
var ptr0 = signature_request.__destroy_into_raw();
|
|
954
|
+
const ret = wasm.client_registerIdentity(this.__wbg_ptr, ptr0);
|
|
964
955
|
return ret;
|
|
965
956
|
}
|
|
966
957
|
/**
|
|
@@ -972,16 +963,6 @@ export class Client {
|
|
|
972
963
|
const ret = wasm.client_applySignatureRequest(this.__wbg_ptr, signature_request.__wbg_ptr);
|
|
973
964
|
return ret;
|
|
974
965
|
}
|
|
975
|
-
/**
|
|
976
|
-
* @param {SignatureRequestHandle} signature_request
|
|
977
|
-
* @returns {Promise<void>}
|
|
978
|
-
*/
|
|
979
|
-
registerIdentity(signature_request) {
|
|
980
|
-
_assertClass(signature_request, SignatureRequestHandle);
|
|
981
|
-
var ptr0 = signature_request.__destroy_into_raw();
|
|
982
|
-
const ret = wasm.client_registerIdentity(this.__wbg_ptr, ptr0);
|
|
983
|
-
return ret;
|
|
984
|
-
}
|
|
985
966
|
/**
|
|
986
967
|
* @param {string} signature_text
|
|
987
968
|
* @returns {Uint8Array}
|
|
@@ -995,6 +976,32 @@ export class Client {
|
|
|
995
976
|
}
|
|
996
977
|
return takeFromExternrefTable0(ret[0]);
|
|
997
978
|
}
|
|
979
|
+
/**
|
|
980
|
+
* @returns {SignatureRequestHandle | undefined}
|
|
981
|
+
*/
|
|
982
|
+
createInboxSignatureRequest() {
|
|
983
|
+
const ret = wasm.client_createInboxSignatureRequest(this.__wbg_ptr);
|
|
984
|
+
if (ret[2]) {
|
|
985
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
986
|
+
}
|
|
987
|
+
return ret[0] === 0 ? undefined : SignatureRequestHandle.__wrap(ret[0]);
|
|
988
|
+
}
|
|
989
|
+
/**
|
|
990
|
+
* @param {Identifier} new_identifier
|
|
991
|
+
* @returns {Promise<SignatureRequestHandle>}
|
|
992
|
+
*/
|
|
993
|
+
addWalletSignatureRequest(new_identifier) {
|
|
994
|
+
const ret = wasm.client_addWalletSignatureRequest(this.__wbg_ptr, new_identifier);
|
|
995
|
+
return ret;
|
|
996
|
+
}
|
|
997
|
+
/**
|
|
998
|
+
* @param {Identifier} identifier
|
|
999
|
+
* @returns {Promise<SignatureRequestHandle>}
|
|
1000
|
+
*/
|
|
1001
|
+
revokeWalletSignatureRequest(identifier) {
|
|
1002
|
+
const ret = wasm.client_revokeWalletSignatureRequest(this.__wbg_ptr, identifier);
|
|
1003
|
+
return ret;
|
|
1004
|
+
}
|
|
998
1005
|
/**
|
|
999
1006
|
* @param {string} signature_text
|
|
1000
1007
|
* @param {Uint8Array} signature_bytes
|
|
@@ -1007,6 +1014,31 @@ export class Client {
|
|
|
1007
1014
|
throw takeFromExternrefTable0(ret[0]);
|
|
1008
1015
|
}
|
|
1009
1016
|
}
|
|
1017
|
+
/**
|
|
1018
|
+
* @param {Uint8Array[]} installation_ids
|
|
1019
|
+
* @returns {Promise<SignatureRequestHandle>}
|
|
1020
|
+
*/
|
|
1021
|
+
revokeInstallationsSignatureRequest(installation_ids) {
|
|
1022
|
+
const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
1023
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1024
|
+
const ret = wasm.client_revokeInstallationsSignatureRequest(this.__wbg_ptr, ptr0, len0);
|
|
1025
|
+
return ret;
|
|
1026
|
+
}
|
|
1027
|
+
/**
|
|
1028
|
+
* @param {Identifier} new_recovery_identifier
|
|
1029
|
+
* @returns {Promise<SignatureRequestHandle>}
|
|
1030
|
+
*/
|
|
1031
|
+
changeRecoveryIdentifierSignatureRequest(new_recovery_identifier) {
|
|
1032
|
+
const ret = wasm.client_changeRecoveryIdentifierSignatureRequest(this.__wbg_ptr, new_recovery_identifier);
|
|
1033
|
+
return ret;
|
|
1034
|
+
}
|
|
1035
|
+
/**
|
|
1036
|
+
* @returns {Promise<SignatureRequestHandle>}
|
|
1037
|
+
*/
|
|
1038
|
+
revokeAllOtherInstallationsSignatureRequest() {
|
|
1039
|
+
const ret = wasm.client_revokeAllOtherInstallationsSignatureRequest(this.__wbg_ptr);
|
|
1040
|
+
return ret;
|
|
1041
|
+
}
|
|
1010
1042
|
/**
|
|
1011
1043
|
*
|
|
1012
1044
|
* * Get the client's inbox state.
|
|
@@ -1046,42 +1078,14 @@ export class Client {
|
|
|
1046
1078
|
const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
|
|
1047
1079
|
return ret;
|
|
1048
1080
|
}
|
|
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
|
-
}
|
|
1070
|
-
/**
|
|
1071
|
-
* @returns {Identifier}
|
|
1072
|
-
*/
|
|
1073
|
-
get accountIdentifier() {
|
|
1074
|
-
const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
|
|
1075
|
-
return ret;
|
|
1076
|
-
}
|
|
1077
1081
|
/**
|
|
1078
1082
|
* @returns {string}
|
|
1079
1083
|
*/
|
|
1080
|
-
get
|
|
1084
|
+
get appVersion() {
|
|
1081
1085
|
let deferred1_0;
|
|
1082
1086
|
let deferred1_1;
|
|
1083
1087
|
try {
|
|
1084
|
-
const ret = wasm.
|
|
1088
|
+
const ret = wasm.client_appVersion(this.__wbg_ptr);
|
|
1085
1089
|
deferred1_0 = ret[0];
|
|
1086
1090
|
deferred1_1 = ret[1];
|
|
1087
1091
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -1089,6 +1093,24 @@ export class Client {
|
|
|
1089
1093
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1090
1094
|
}
|
|
1091
1095
|
}
|
|
1096
|
+
/**
|
|
1097
|
+
* Output booleans should be zipped with the index of input identifiers
|
|
1098
|
+
* @param {Identifier[]} account_identifiers
|
|
1099
|
+
* @returns {Promise<any>}
|
|
1100
|
+
*/
|
|
1101
|
+
canMessage(account_identifiers) {
|
|
1102
|
+
const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
1103
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1104
|
+
const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
|
|
1105
|
+
return ret;
|
|
1106
|
+
}
|
|
1107
|
+
/**
|
|
1108
|
+
* @returns {Conversations}
|
|
1109
|
+
*/
|
|
1110
|
+
conversations() {
|
|
1111
|
+
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
1112
|
+
return Conversations.__wrap(ret);
|
|
1113
|
+
}
|
|
1092
1114
|
/**
|
|
1093
1115
|
* @returns {boolean}
|
|
1094
1116
|
*/
|
|
@@ -1097,35 +1119,33 @@ export class Client {
|
|
|
1097
1119
|
return ret !== 0;
|
|
1098
1120
|
}
|
|
1099
1121
|
/**
|
|
1100
|
-
* @returns {
|
|
1122
|
+
* @returns {ApiStats}
|
|
1101
1123
|
*/
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
try {
|
|
1106
|
-
const ret = wasm.client_installationId(this.__wbg_ptr);
|
|
1107
|
-
deferred1_0 = ret[0];
|
|
1108
|
-
deferred1_1 = ret[1];
|
|
1109
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
1110
|
-
} finally {
|
|
1111
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1112
|
-
}
|
|
1124
|
+
apiStatistics() {
|
|
1125
|
+
const ret = wasm.client_apiStatistics(this.__wbg_ptr);
|
|
1126
|
+
return ApiStats.__wrap(ret);
|
|
1113
1127
|
}
|
|
1114
1128
|
/**
|
|
1115
|
-
* @
|
|
1129
|
+
* @param {Uint8Array} message_id
|
|
1130
|
+
* @returns {number}
|
|
1116
1131
|
*/
|
|
1117
|
-
|
|
1118
|
-
const
|
|
1119
|
-
|
|
1132
|
+
deleteMessage(message_id) {
|
|
1133
|
+
const ptr0 = passArray8ToWasm0(message_id, wasm.__wbindgen_malloc);
|
|
1134
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1135
|
+
const ret = wasm.client_deleteMessage(this.__wbg_ptr, ptr0, len0);
|
|
1136
|
+
if (ret[2]) {
|
|
1137
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1138
|
+
}
|
|
1139
|
+
return ret[0] >>> 0;
|
|
1120
1140
|
}
|
|
1121
1141
|
/**
|
|
1122
1142
|
* @returns {string}
|
|
1123
1143
|
*/
|
|
1124
|
-
get
|
|
1144
|
+
get installationId() {
|
|
1125
1145
|
let deferred1_0;
|
|
1126
1146
|
let deferred1_1;
|
|
1127
1147
|
try {
|
|
1128
|
-
const ret = wasm.
|
|
1148
|
+
const ret = wasm.client_installationId(this.__wbg_ptr);
|
|
1129
1149
|
deferred1_0 = ret[0];
|
|
1130
1150
|
deferred1_1 = ret[1];
|
|
1131
1151
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -1149,62 +1169,55 @@ export class Client {
|
|
|
1149
1169
|
}
|
|
1150
1170
|
}
|
|
1151
1171
|
/**
|
|
1152
|
-
*
|
|
1153
|
-
* @
|
|
1154
|
-
* @returns {Promise<any>}
|
|
1172
|
+
* @param {Uint8Array} message_id
|
|
1173
|
+
* @returns {Promise<DecodedMessage>}
|
|
1155
1174
|
*/
|
|
1156
|
-
|
|
1157
|
-
const ptr0 =
|
|
1175
|
+
messageV2(message_id) {
|
|
1176
|
+
const ptr0 = passArray8ToWasm0(message_id, wasm.__wbindgen_malloc);
|
|
1158
1177
|
const len0 = WASM_VECTOR_LEN;
|
|
1159
|
-
const ret = wasm.
|
|
1178
|
+
const ret = wasm.client_messageV2(this.__wbg_ptr, ptr0, len0);
|
|
1160
1179
|
return ret;
|
|
1161
1180
|
}
|
|
1162
1181
|
/**
|
|
1163
|
-
* @returns {Promise<
|
|
1182
|
+
* @returns {Promise<GroupSyncSummary>}
|
|
1164
1183
|
*/
|
|
1165
|
-
|
|
1166
|
-
const ret = wasm.
|
|
1184
|
+
syncPreferences() {
|
|
1185
|
+
const ret = wasm.client_syncPreferences(this.__wbg_ptr);
|
|
1167
1186
|
return ret;
|
|
1168
1187
|
}
|
|
1169
1188
|
/**
|
|
1170
|
-
* @
|
|
1171
|
-
* @returns {Promise<string | undefined>}
|
|
1189
|
+
* @returns {Promise<void>}
|
|
1172
1190
|
*/
|
|
1173
|
-
|
|
1174
|
-
const ret = wasm.
|
|
1191
|
+
sendSyncRequest() {
|
|
1192
|
+
const ret = wasm.client_sendSyncRequest(this.__wbg_ptr);
|
|
1175
1193
|
return ret;
|
|
1176
1194
|
}
|
|
1177
1195
|
/**
|
|
1178
|
-
* @
|
|
1179
|
-
* @param {boolean} refresh_from_network
|
|
1180
|
-
* @returns {Promise<InboxState[]>}
|
|
1196
|
+
* @returns {Identifier}
|
|
1181
1197
|
*/
|
|
1182
|
-
|
|
1183
|
-
const
|
|
1184
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1185
|
-
const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
|
|
1198
|
+
get accountIdentifier() {
|
|
1199
|
+
const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
|
|
1186
1200
|
return ret;
|
|
1187
1201
|
}
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
*/
|
|
1191
|
-
conversations() {
|
|
1192
|
-
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
1193
|
-
return Conversations.__wrap(ret);
|
|
1202
|
+
clearAllStatistics() {
|
|
1203
|
+
wasm.client_clearAllStatistics(this.__wbg_ptr);
|
|
1194
1204
|
}
|
|
1195
1205
|
/**
|
|
1196
|
-
* @
|
|
1206
|
+
* @param {string} server_url
|
|
1207
|
+
* @returns {Promise<string>}
|
|
1197
1208
|
*/
|
|
1198
|
-
|
|
1199
|
-
const
|
|
1209
|
+
uploadDebugArchive(server_url) {
|
|
1210
|
+
const ptr0 = passStringToWasm0(server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1211
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1212
|
+
const ret = wasm.client_uploadDebugArchive(this.__wbg_ptr, ptr0, len0);
|
|
1200
1213
|
return ret;
|
|
1201
1214
|
}
|
|
1202
1215
|
/**
|
|
1203
|
-
* @returns {
|
|
1216
|
+
* @returns {Uint8Array}
|
|
1204
1217
|
*/
|
|
1205
|
-
|
|
1206
|
-
const ret = wasm.
|
|
1207
|
-
return
|
|
1218
|
+
get installationIdBytes() {
|
|
1219
|
+
const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
|
|
1220
|
+
return ret;
|
|
1208
1221
|
}
|
|
1209
1222
|
/**
|
|
1210
1223
|
* @returns {IdentityStats}
|
|
@@ -1228,41 +1241,39 @@ export class Client {
|
|
|
1228
1241
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1229
1242
|
}
|
|
1230
1243
|
}
|
|
1231
|
-
clearAllStatistics() {
|
|
1232
|
-
wasm.client_clearAllStatistics(this.__wbg_ptr);
|
|
1233
|
-
}
|
|
1234
1244
|
/**
|
|
1235
|
-
* @param {string}
|
|
1236
|
-
* @
|
|
1245
|
+
* @param {string[]} inbox_ids
|
|
1246
|
+
* @param {boolean} refresh_from_network
|
|
1247
|
+
* @returns {Promise<InboxState[]>}
|
|
1237
1248
|
*/
|
|
1238
|
-
|
|
1239
|
-
const ptr0 =
|
|
1249
|
+
inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
|
|
1250
|
+
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
1240
1251
|
const len0 = WASM_VECTOR_LEN;
|
|
1241
|
-
const ret = wasm.
|
|
1252
|
+
const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
|
|
1242
1253
|
return ret;
|
|
1243
1254
|
}
|
|
1244
1255
|
/**
|
|
1245
|
-
* @param {
|
|
1246
|
-
* @returns {
|
|
1256
|
+
* @param {Identifier} identifier
|
|
1257
|
+
* @returns {Promise<string | undefined>}
|
|
1247
1258
|
*/
|
|
1248
|
-
|
|
1249
|
-
const
|
|
1250
|
-
|
|
1251
|
-
const ret = wasm.client_deleteMessage(this.__wbg_ptr, ptr0, len0);
|
|
1252
|
-
if (ret[2]) {
|
|
1253
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1254
|
-
}
|
|
1255
|
-
return ret[0] >>> 0;
|
|
1259
|
+
findInboxIdByIdentifier(identifier) {
|
|
1260
|
+
const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
|
|
1261
|
+
return ret;
|
|
1256
1262
|
}
|
|
1257
1263
|
/**
|
|
1258
|
-
* @
|
|
1259
|
-
* @returns {Promise<DecodedMessage>}
|
|
1264
|
+
* @returns {string}
|
|
1260
1265
|
*/
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
+
get inboxId() {
|
|
1267
|
+
let deferred1_0;
|
|
1268
|
+
let deferred1_1;
|
|
1269
|
+
try {
|
|
1270
|
+
const ret = wasm.client_inboxId(this.__wbg_ptr);
|
|
1271
|
+
deferred1_0 = ret[0];
|
|
1272
|
+
deferred1_1 = ret[1];
|
|
1273
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1274
|
+
} finally {
|
|
1275
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1276
|
+
}
|
|
1266
1277
|
}
|
|
1267
1278
|
}
|
|
1268
1279
|
if (Symbol.dispose) Client.prototype[Symbol.dispose] = Client.prototype.free;
|
|
@@ -1381,6 +1392,22 @@ export class ContentTypeId {
|
|
|
1381
1392
|
const ptr = this.__destroy_into_raw();
|
|
1382
1393
|
wasm.__wbg_contenttypeid_free(ptr, 0);
|
|
1383
1394
|
}
|
|
1395
|
+
/**
|
|
1396
|
+
* @param {string} authority_id
|
|
1397
|
+
* @param {string} type_id
|
|
1398
|
+
* @param {number} version_major
|
|
1399
|
+
* @param {number} version_minor
|
|
1400
|
+
*/
|
|
1401
|
+
constructor(authority_id, type_id, version_major, version_minor) {
|
|
1402
|
+
const ptr0 = passStringToWasm0(authority_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1403
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1404
|
+
const ptr1 = passStringToWasm0(type_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1405
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1406
|
+
const ret = wasm.contenttypeid_new(ptr0, len0, ptr1, len1, version_major, version_minor);
|
|
1407
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1408
|
+
ContentTypeIdFinalization.register(this, this.__wbg_ptr, this);
|
|
1409
|
+
return this;
|
|
1410
|
+
}
|
|
1384
1411
|
/**
|
|
1385
1412
|
* @returns {string}
|
|
1386
1413
|
*/
|
|
@@ -1402,7 +1429,7 @@ export class ContentTypeId {
|
|
|
1402
1429
|
set authorityId(arg0) {
|
|
1403
1430
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1404
1431
|
const len0 = WASM_VECTOR_LEN;
|
|
1405
|
-
wasm.
|
|
1432
|
+
wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
|
|
1406
1433
|
}
|
|
1407
1434
|
/**
|
|
1408
1435
|
* @returns {string}
|
|
@@ -1453,22 +1480,6 @@ export class ContentTypeId {
|
|
|
1453
1480
|
set versionMinor(arg0) {
|
|
1454
1481
|
wasm.__wbg_set_contenttypeid_versionMinor(this.__wbg_ptr, arg0);
|
|
1455
1482
|
}
|
|
1456
|
-
/**
|
|
1457
|
-
* @param {string} authority_id
|
|
1458
|
-
* @param {string} type_id
|
|
1459
|
-
* @param {number} version_major
|
|
1460
|
-
* @param {number} version_minor
|
|
1461
|
-
*/
|
|
1462
|
-
constructor(authority_id, type_id, version_major, version_minor) {
|
|
1463
|
-
const ptr0 = passStringToWasm0(authority_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1464
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1465
|
-
const ptr1 = passStringToWasm0(type_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1466
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1467
|
-
const ret = wasm.contenttypeid_new(ptr0, len0, ptr1, len1, version_major, version_minor);
|
|
1468
|
-
this.__wbg_ptr = ret >>> 0;
|
|
1469
|
-
ContentTypeIdFinalization.register(this, this.__wbg_ptr, this);
|
|
1470
|
-
return this;
|
|
1471
|
-
}
|
|
1472
1483
|
}
|
|
1473
1484
|
if (Symbol.dispose) ContentTypeId.prototype[Symbol.dispose] = ContentTypeId.prototype.free;
|
|
1474
1485
|
|
|
@@ -1517,74 +1528,77 @@ export class Conversation {
|
|
|
1517
1528
|
}
|
|
1518
1529
|
}
|
|
1519
1530
|
/**
|
|
1520
|
-
* @returns {string}
|
|
1531
|
+
* @returns {string[]}
|
|
1521
1532
|
*/
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
const ret = wasm.conversation_id(this.__wbg_ptr);
|
|
1527
|
-
deferred1_0 = ret[0];
|
|
1528
|
-
deferred1_1 = ret[1];
|
|
1529
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
1530
|
-
} finally {
|
|
1531
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1533
|
+
adminList() {
|
|
1534
|
+
const ret = wasm.conversation_adminList(this.__wbg_ptr);
|
|
1535
|
+
if (ret[3]) {
|
|
1536
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1532
1537
|
}
|
|
1538
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1539
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1540
|
+
return v1;
|
|
1533
1541
|
}
|
|
1534
1542
|
/**
|
|
1535
|
-
* @
|
|
1536
|
-
* @param {SendMessageOpts} opts
|
|
1537
|
-
* @returns {Promise<string>}
|
|
1543
|
+
* @returns {Promise<any>}
|
|
1538
1544
|
*/
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
var ptr0 = encoded_content.__destroy_into_raw();
|
|
1542
|
-
_assertClass(opts, SendMessageOpts);
|
|
1543
|
-
var ptr1 = opts.__destroy_into_raw();
|
|
1544
|
-
const ret = wasm.conversation_send(this.__wbg_ptr, ptr0, ptr1);
|
|
1545
|
+
getDebugInfo() {
|
|
1546
|
+
const ret = wasm.conversation_getDebugInfo(this.__wbg_ptr);
|
|
1545
1547
|
return ret;
|
|
1546
1548
|
}
|
|
1547
1549
|
/**
|
|
1548
|
-
* send a message without immediately publishing to the delivery service.
|
|
1549
|
-
* @param {EncodedContent} encoded_content
|
|
1550
|
-
* @param {SendMessageOpts} opts
|
|
1551
1550
|
* @returns {string}
|
|
1552
1551
|
*/
|
|
1553
|
-
|
|
1554
|
-
let
|
|
1555
|
-
let
|
|
1552
|
+
groupName() {
|
|
1553
|
+
let deferred2_0;
|
|
1554
|
+
let deferred2_1;
|
|
1556
1555
|
try {
|
|
1557
|
-
|
|
1558
|
-
var
|
|
1559
|
-
|
|
1560
|
-
var ptr1 = opts.__destroy_into_raw();
|
|
1561
|
-
const ret = wasm.conversation_sendOptimistic(this.__wbg_ptr, ptr0, ptr1);
|
|
1562
|
-
var ptr3 = ret[0];
|
|
1563
|
-
var len3 = ret[1];
|
|
1556
|
+
const ret = wasm.conversation_groupName(this.__wbg_ptr);
|
|
1557
|
+
var ptr1 = ret[0];
|
|
1558
|
+
var len1 = ret[1];
|
|
1564
1559
|
if (ret[3]) {
|
|
1565
|
-
|
|
1560
|
+
ptr1 = 0; len1 = 0;
|
|
1566
1561
|
throw takeFromExternrefTable0(ret[2]);
|
|
1567
1562
|
}
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
return getStringFromWasm0(
|
|
1563
|
+
deferred2_0 = ptr1;
|
|
1564
|
+
deferred2_1 = len1;
|
|
1565
|
+
return getStringFromWasm0(ptr1, len1);
|
|
1571
1566
|
} finally {
|
|
1572
|
-
wasm.__wbindgen_free(
|
|
1567
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1573
1568
|
}
|
|
1574
1569
|
}
|
|
1575
1570
|
/**
|
|
1576
|
-
*
|
|
1571
|
+
* @param {Identifier[]} account_identifiers
|
|
1577
1572
|
* @returns {Promise<void>}
|
|
1578
1573
|
*/
|
|
1579
|
-
|
|
1580
|
-
const
|
|
1574
|
+
addMembers(account_identifiers) {
|
|
1575
|
+
const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
1576
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1577
|
+
const ret = wasm.conversation_addMembers(this.__wbg_ptr, ptr0, len0);
|
|
1581
1578
|
return ret;
|
|
1582
1579
|
}
|
|
1583
1580
|
/**
|
|
1581
|
+
* @returns {Promise<any>}
|
|
1582
|
+
*/
|
|
1583
|
+
listMembers() {
|
|
1584
|
+
const ret = wasm.conversation_listMembers(this.__wbg_ptr);
|
|
1585
|
+
return ret;
|
|
1586
|
+
}
|
|
1587
|
+
/**
|
|
1588
|
+
* @param {string} inbox_id
|
|
1584
1589
|
* @returns {Promise<void>}
|
|
1585
1590
|
*/
|
|
1586
|
-
|
|
1587
|
-
const
|
|
1591
|
+
removeAdmin(inbox_id) {
|
|
1592
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1593
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1594
|
+
const ret = wasm.conversation_removeAdmin(this.__wbg_ptr, ptr0, len0);
|
|
1595
|
+
return ret;
|
|
1596
|
+
}
|
|
1597
|
+
/**
|
|
1598
|
+
* @returns {bigint}
|
|
1599
|
+
*/
|
|
1600
|
+
createdAtNs() {
|
|
1601
|
+
const ret = wasm.conversation_createdAtNs(this.__wbg_ptr);
|
|
1588
1602
|
return ret;
|
|
1589
1603
|
}
|
|
1590
1604
|
/**
|
|
@@ -1601,75 +1615,35 @@ export class Conversation {
|
|
|
1601
1615
|
return ret;
|
|
1602
1616
|
}
|
|
1603
1617
|
/**
|
|
1604
|
-
* @
|
|
1605
|
-
* @returns {Promise<bigint>}
|
|
1618
|
+
* @returns {any}
|
|
1606
1619
|
*/
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
if (
|
|
1610
|
-
|
|
1611
|
-
ptr0 = opts.__destroy_into_raw();
|
|
1620
|
+
getHmacKeys() {
|
|
1621
|
+
const ret = wasm.conversation_getHmacKeys(this.__wbg_ptr);
|
|
1622
|
+
if (ret[2]) {
|
|
1623
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1612
1624
|
}
|
|
1613
|
-
|
|
1614
|
-
return ret;
|
|
1625
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1615
1626
|
}
|
|
1616
1627
|
/**
|
|
1617
1628
|
* @param {ListMessagesOptions | null} [opts]
|
|
1618
|
-
* @returns {Promise<
|
|
1629
|
+
* @returns {Promise<bigint>}
|
|
1619
1630
|
*/
|
|
1620
|
-
|
|
1631
|
+
countMessages(opts) {
|
|
1621
1632
|
let ptr0 = 0;
|
|
1622
1633
|
if (!isLikeNone(opts)) {
|
|
1623
1634
|
_assertClass(opts, ListMessagesOptions);
|
|
1624
1635
|
ptr0 = opts.__destroy_into_raw();
|
|
1625
1636
|
}
|
|
1626
|
-
const ret = wasm.
|
|
1637
|
+
const ret = wasm.conversation_countMessages(this.__wbg_ptr, ptr0);
|
|
1627
1638
|
return ret;
|
|
1628
1639
|
}
|
|
1629
1640
|
/**
|
|
1630
|
-
* @returns {Promise<
|
|
1641
|
+
* @returns {Promise<GroupMetadata>}
|
|
1631
1642
|
*/
|
|
1632
|
-
|
|
1633
|
-
const ret = wasm.
|
|
1643
|
+
groupMetadata() {
|
|
1644
|
+
const ret = wasm.conversation_groupMetadata(this.__wbg_ptr);
|
|
1634
1645
|
return ret;
|
|
1635
1646
|
}
|
|
1636
|
-
/**
|
|
1637
|
-
* @returns {string[]}
|
|
1638
|
-
*/
|
|
1639
|
-
adminList() {
|
|
1640
|
-
const ret = wasm.conversation_adminList(this.__wbg_ptr);
|
|
1641
|
-
if (ret[3]) {
|
|
1642
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
1643
|
-
}
|
|
1644
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1645
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1646
|
-
return v1;
|
|
1647
|
-
}
|
|
1648
|
-
/**
|
|
1649
|
-
* @returns {string[]}
|
|
1650
|
-
*/
|
|
1651
|
-
superAdminList() {
|
|
1652
|
-
const ret = wasm.conversation_superAdminList(this.__wbg_ptr);
|
|
1653
|
-
if (ret[3]) {
|
|
1654
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
1655
|
-
}
|
|
1656
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1657
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1658
|
-
return v1;
|
|
1659
|
-
}
|
|
1660
|
-
/**
|
|
1661
|
-
* @param {string} inbox_id
|
|
1662
|
-
* @returns {boolean}
|
|
1663
|
-
*/
|
|
1664
|
-
isAdmin(inbox_id) {
|
|
1665
|
-
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1666
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1667
|
-
const ret = wasm.conversation_isAdmin(this.__wbg_ptr, ptr0, len0);
|
|
1668
|
-
if (ret[2]) {
|
|
1669
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1670
|
-
}
|
|
1671
|
-
return ret[0] !== 0;
|
|
1672
|
-
}
|
|
1673
1647
|
/**
|
|
1674
1648
|
* @param {string} inbox_id
|
|
1675
1649
|
* @returns {boolean}
|
|
@@ -1687,110 +1661,58 @@ export class Conversation {
|
|
|
1687
1661
|
* @param {Identifier[]} account_identifiers
|
|
1688
1662
|
* @returns {Promise<void>}
|
|
1689
1663
|
*/
|
|
1690
|
-
|
|
1664
|
+
removeMembers(account_identifiers) {
|
|
1691
1665
|
const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
1692
1666
|
const len0 = WASM_VECTOR_LEN;
|
|
1693
|
-
const ret = wasm.
|
|
1667
|
+
const ret = wasm.conversation_removeMembers(this.__wbg_ptr, ptr0, len0);
|
|
1694
1668
|
return ret;
|
|
1695
1669
|
}
|
|
1696
1670
|
/**
|
|
1697
1671
|
* @param {string} inbox_id
|
|
1698
1672
|
* @returns {Promise<void>}
|
|
1699
1673
|
*/
|
|
1700
|
-
|
|
1674
|
+
addSuperAdmin(inbox_id) {
|
|
1701
1675
|
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1702
1676
|
const len0 = WASM_VECTOR_LEN;
|
|
1703
|
-
const ret = wasm.
|
|
1677
|
+
const ret = wasm.conversation_addSuperAdmin(this.__wbg_ptr, ptr0, len0);
|
|
1704
1678
|
return ret;
|
|
1705
1679
|
}
|
|
1706
1680
|
/**
|
|
1707
|
-
*
|
|
1708
|
-
* @
|
|
1681
|
+
* send a message without immediately publishing to the delivery service.
|
|
1682
|
+
* @param {EncodedContent} encoded_content
|
|
1683
|
+
* @param {SendMessageOpts} opts
|
|
1684
|
+
* @returns {string}
|
|
1709
1685
|
*/
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1686
|
+
sendOptimistic(encoded_content, opts) {
|
|
1687
|
+
let deferred4_0;
|
|
1688
|
+
let deferred4_1;
|
|
1689
|
+
try {
|
|
1690
|
+
_assertClass(encoded_content, EncodedContent);
|
|
1691
|
+
var ptr0 = encoded_content.__destroy_into_raw();
|
|
1692
|
+
_assertClass(opts, SendMessageOpts);
|
|
1693
|
+
var ptr1 = opts.__destroy_into_raw();
|
|
1694
|
+
const ret = wasm.conversation_sendOptimistic(this.__wbg_ptr, ptr0, ptr1);
|
|
1695
|
+
var ptr3 = ret[0];
|
|
1696
|
+
var len3 = ret[1];
|
|
1697
|
+
if (ret[3]) {
|
|
1698
|
+
ptr3 = 0; len3 = 0;
|
|
1699
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1700
|
+
}
|
|
1701
|
+
deferred4_0 = ptr3;
|
|
1702
|
+
deferred4_1 = len3;
|
|
1703
|
+
return getStringFromWasm0(ptr3, len3);
|
|
1704
|
+
} finally {
|
|
1705
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
1706
|
+
}
|
|
1715
1707
|
}
|
|
1716
1708
|
/**
|
|
1717
|
-
* @
|
|
1718
|
-
* @returns {Promise<void>}
|
|
1709
|
+
* @returns {string}
|
|
1719
1710
|
*/
|
|
1720
|
-
|
|
1721
|
-
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1722
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1723
|
-
const ret = wasm.conversation_addSuperAdmin(this.__wbg_ptr, ptr0, len0);
|
|
1724
|
-
return ret;
|
|
1725
|
-
}
|
|
1726
|
-
/**
|
|
1727
|
-
* @param {string} inbox_id
|
|
1728
|
-
* @returns {Promise<void>}
|
|
1729
|
-
*/
|
|
1730
|
-
removeSuperAdmin(inbox_id) {
|
|
1731
|
-
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1732
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1733
|
-
const ret = wasm.conversation_removeSuperAdmin(this.__wbg_ptr, ptr0, len0);
|
|
1734
|
-
return ret;
|
|
1735
|
-
}
|
|
1736
|
-
/**
|
|
1737
|
-
* @returns {GroupPermissions}
|
|
1738
|
-
*/
|
|
1739
|
-
groupPermissions() {
|
|
1740
|
-
const ret = wasm.conversation_groupPermissions(this.__wbg_ptr);
|
|
1741
|
-
if (ret[2]) {
|
|
1742
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1743
|
-
}
|
|
1744
|
-
return GroupPermissions.__wrap(ret[0]);
|
|
1745
|
-
}
|
|
1746
|
-
/**
|
|
1747
|
-
* @param {string[]} inbox_ids
|
|
1748
|
-
* @returns {Promise<void>}
|
|
1749
|
-
*/
|
|
1750
|
-
addMembersByInboxId(inbox_ids) {
|
|
1751
|
-
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
1752
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1753
|
-
const ret = wasm.conversation_addMembersByInboxId(this.__wbg_ptr, ptr0, len0);
|
|
1754
|
-
return ret;
|
|
1755
|
-
}
|
|
1756
|
-
/**
|
|
1757
|
-
* @param {Identifier[]} account_identifiers
|
|
1758
|
-
* @returns {Promise<void>}
|
|
1759
|
-
*/
|
|
1760
|
-
removeMembers(account_identifiers) {
|
|
1761
|
-
const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
1762
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1763
|
-
const ret = wasm.conversation_removeMembers(this.__wbg_ptr, ptr0, len0);
|
|
1764
|
-
return ret;
|
|
1765
|
-
}
|
|
1766
|
-
/**
|
|
1767
|
-
* @param {string[]} inbox_ids
|
|
1768
|
-
* @returns {Promise<void>}
|
|
1769
|
-
*/
|
|
1770
|
-
removeMembersByInboxId(inbox_ids) {
|
|
1771
|
-
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
1772
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1773
|
-
const ret = wasm.conversation_removeMembersByInboxId(this.__wbg_ptr, ptr0, len0);
|
|
1774
|
-
return ret;
|
|
1775
|
-
}
|
|
1776
|
-
/**
|
|
1777
|
-
* @param {string} group_name
|
|
1778
|
-
* @returns {Promise<void>}
|
|
1779
|
-
*/
|
|
1780
|
-
updateGroupName(group_name) {
|
|
1781
|
-
const ptr0 = passStringToWasm0(group_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1782
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1783
|
-
const ret = wasm.conversation_updateGroupName(this.__wbg_ptr, ptr0, len0);
|
|
1784
|
-
return ret;
|
|
1785
|
-
}
|
|
1786
|
-
/**
|
|
1787
|
-
* @returns {string}
|
|
1788
|
-
*/
|
|
1789
|
-
groupName() {
|
|
1711
|
+
dmPeerInboxId() {
|
|
1790
1712
|
let deferred2_0;
|
|
1791
1713
|
let deferred2_1;
|
|
1792
1714
|
try {
|
|
1793
|
-
const ret = wasm.
|
|
1715
|
+
const ret = wasm.conversation_dmPeerInboxId(this.__wbg_ptr);
|
|
1794
1716
|
var ptr1 = ret[0];
|
|
1795
1717
|
var len1 = ret[1];
|
|
1796
1718
|
if (ret[3]) {
|
|
@@ -1805,23 +1727,33 @@ export class Conversation {
|
|
|
1805
1727
|
}
|
|
1806
1728
|
}
|
|
1807
1729
|
/**
|
|
1808
|
-
*
|
|
1730
|
+
* Publish all unpublished messages
|
|
1809
1731
|
* @returns {Promise<void>}
|
|
1810
1732
|
*/
|
|
1811
|
-
|
|
1812
|
-
const
|
|
1813
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1814
|
-
const ret = wasm.conversation_updateGroupImageUrlSquare(this.__wbg_ptr, ptr0, len0);
|
|
1733
|
+
publishMessages() {
|
|
1734
|
+
const ret = wasm.conversation_publishMessages(this.__wbg_ptr);
|
|
1815
1735
|
return ret;
|
|
1816
1736
|
}
|
|
1737
|
+
/**
|
|
1738
|
+
* @returns {string[]}
|
|
1739
|
+
*/
|
|
1740
|
+
superAdminList() {
|
|
1741
|
+
const ret = wasm.conversation_superAdminList(this.__wbg_ptr);
|
|
1742
|
+
if (ret[3]) {
|
|
1743
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1744
|
+
}
|
|
1745
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1746
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1747
|
+
return v1;
|
|
1748
|
+
}
|
|
1817
1749
|
/**
|
|
1818
1750
|
* @returns {string}
|
|
1819
1751
|
*/
|
|
1820
|
-
|
|
1752
|
+
addedByInboxId() {
|
|
1821
1753
|
let deferred2_0;
|
|
1822
1754
|
let deferred2_1;
|
|
1823
1755
|
try {
|
|
1824
|
-
const ret = wasm.
|
|
1756
|
+
const ret = wasm.conversation_addedByInboxId(this.__wbg_ptr);
|
|
1825
1757
|
var ptr1 = ret[0];
|
|
1826
1758
|
var len1 = ret[1];
|
|
1827
1759
|
if (ret[3]) {
|
|
@@ -1836,13 +1768,16 @@ export class Conversation {
|
|
|
1836
1768
|
}
|
|
1837
1769
|
}
|
|
1838
1770
|
/**
|
|
1839
|
-
* @param {
|
|
1840
|
-
* @returns {Promise<
|
|
1771
|
+
* @param {ListMessagesOptions | null} [opts]
|
|
1772
|
+
* @returns {Promise<DecodedMessage[]>}
|
|
1841
1773
|
*/
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1774
|
+
findMessagesV2(opts) {
|
|
1775
|
+
let ptr0 = 0;
|
|
1776
|
+
if (!isLikeNone(opts)) {
|
|
1777
|
+
_assertClass(opts, ListMessagesOptions);
|
|
1778
|
+
ptr0 = opts.__destroy_into_raw();
|
|
1779
|
+
}
|
|
1780
|
+
const ret = wasm.conversation_findMessagesV2(this.__wbg_ptr, ptr0);
|
|
1846
1781
|
return ret;
|
|
1847
1782
|
}
|
|
1848
1783
|
/**
|
|
@@ -1867,32 +1802,31 @@ export class Conversation {
|
|
|
1867
1802
|
}
|
|
1868
1803
|
}
|
|
1869
1804
|
/**
|
|
1870
|
-
* @
|
|
1871
|
-
* @returns {StreamCloser}
|
|
1805
|
+
* @returns {GroupPermissions}
|
|
1872
1806
|
*/
|
|
1873
|
-
|
|
1874
|
-
const ret = wasm.
|
|
1807
|
+
groupPermissions() {
|
|
1808
|
+
const ret = wasm.conversation_groupPermissions(this.__wbg_ptr);
|
|
1875
1809
|
if (ret[2]) {
|
|
1876
1810
|
throw takeFromExternrefTable0(ret[1]);
|
|
1877
1811
|
}
|
|
1878
|
-
return
|
|
1812
|
+
return GroupPermissions.__wrap(ret[0]);
|
|
1879
1813
|
}
|
|
1880
1814
|
/**
|
|
1881
|
-
* @
|
|
1815
|
+
* @param {string} group_name
|
|
1816
|
+
* @returns {Promise<void>}
|
|
1882
1817
|
*/
|
|
1883
|
-
|
|
1884
|
-
const
|
|
1818
|
+
updateGroupName(group_name) {
|
|
1819
|
+
const ptr0 = passStringToWasm0(group_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1820
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1821
|
+
const ret = wasm.conversation_updateGroupName(this.__wbg_ptr, ptr0, len0);
|
|
1885
1822
|
return ret;
|
|
1886
1823
|
}
|
|
1887
1824
|
/**
|
|
1888
|
-
* @returns {
|
|
1825
|
+
* @returns {Promise<Conversation[]>}
|
|
1889
1826
|
*/
|
|
1890
|
-
|
|
1891
|
-
const ret = wasm.
|
|
1892
|
-
|
|
1893
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1894
|
-
}
|
|
1895
|
-
return ret[0] !== 0;
|
|
1827
|
+
findDuplicateDms() {
|
|
1828
|
+
const ret = wasm.conversation_findDuplicateDms(this.__wbg_ptr);
|
|
1829
|
+
return ret;
|
|
1896
1830
|
}
|
|
1897
1831
|
/**
|
|
1898
1832
|
* @returns {string | undefined}
|
|
@@ -1910,41 +1844,30 @@ export class Conversation {
|
|
|
1910
1844
|
return v1;
|
|
1911
1845
|
}
|
|
1912
1846
|
/**
|
|
1913
|
-
* @
|
|
1847
|
+
* @param {string} inbox_id
|
|
1848
|
+
* @returns {Promise<void>}
|
|
1914
1849
|
*/
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
var ptr1 = ret[0];
|
|
1921
|
-
var len1 = ret[1];
|
|
1922
|
-
if (ret[3]) {
|
|
1923
|
-
ptr1 = 0; len1 = 0;
|
|
1924
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
1925
|
-
}
|
|
1926
|
-
deferred2_0 = ptr1;
|
|
1927
|
-
deferred2_1 = len1;
|
|
1928
|
-
return getStringFromWasm0(ptr1, len1);
|
|
1929
|
-
} finally {
|
|
1930
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1931
|
-
}
|
|
1850
|
+
removeSuperAdmin(inbox_id) {
|
|
1851
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1852
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1853
|
+
const ret = wasm.conversation_removeSuperAdmin(this.__wbg_ptr, ptr0, len0);
|
|
1854
|
+
return ret;
|
|
1932
1855
|
}
|
|
1933
1856
|
/**
|
|
1934
|
-
* @returns {Promise<
|
|
1857
|
+
* @returns {Promise<any>}
|
|
1935
1858
|
*/
|
|
1936
|
-
|
|
1937
|
-
const ret = wasm.
|
|
1859
|
+
getLastReadTimes() {
|
|
1860
|
+
const ret = wasm.conversation_getLastReadTimes(this.__wbg_ptr);
|
|
1938
1861
|
return ret;
|
|
1939
1862
|
}
|
|
1940
1863
|
/**
|
|
1941
1864
|
* @returns {string}
|
|
1942
1865
|
*/
|
|
1943
|
-
|
|
1866
|
+
groupImageUrlSquare() {
|
|
1944
1867
|
let deferred2_0;
|
|
1945
1868
|
let deferred2_1;
|
|
1946
1869
|
try {
|
|
1947
|
-
const ret = wasm.
|
|
1870
|
+
const ret = wasm.conversation_groupImageUrlSquare(this.__wbg_ptr);
|
|
1948
1871
|
var ptr1 = ret[0];
|
|
1949
1872
|
var len1 = ret[1];
|
|
1950
1873
|
if (ret[3]) {
|
|
@@ -1958,6 +1881,26 @@ export class Conversation {
|
|
|
1958
1881
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
1959
1882
|
}
|
|
1960
1883
|
}
|
|
1884
|
+
/**
|
|
1885
|
+
* @param {string[]} inbox_ids
|
|
1886
|
+
* @returns {Promise<void>}
|
|
1887
|
+
*/
|
|
1888
|
+
addMembersByInboxId(inbox_ids) {
|
|
1889
|
+
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
1890
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1891
|
+
const ret = wasm.conversation_addMembersByInboxId(this.__wbg_ptr, ptr0, len0);
|
|
1892
|
+
return ret;
|
|
1893
|
+
}
|
|
1894
|
+
/**
|
|
1895
|
+
* @param {string} group_description
|
|
1896
|
+
* @returns {Promise<void>}
|
|
1897
|
+
*/
|
|
1898
|
+
updateGroupDescription(group_description) {
|
|
1899
|
+
const ptr0 = passStringToWasm0(group_description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1900
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1901
|
+
const ret = wasm.conversation_updateGroupDescription(this.__wbg_ptr, ptr0, len0);
|
|
1902
|
+
return ret;
|
|
1903
|
+
}
|
|
1961
1904
|
/**
|
|
1962
1905
|
* @param {PermissionUpdateType} permission_update_type
|
|
1963
1906
|
* @param {PermissionPolicy} permission_policy_option
|
|
@@ -1968,6 +1911,81 @@ export class Conversation {
|
|
|
1968
1911
|
const ret = wasm.conversation_updatePermissionPolicy(this.__wbg_ptr, permission_update_type, permission_policy_option, isLikeNone(metadata_field) ? 5 : metadata_field);
|
|
1969
1912
|
return ret;
|
|
1970
1913
|
}
|
|
1914
|
+
/**
|
|
1915
|
+
* @param {string[]} inbox_ids
|
|
1916
|
+
* @returns {Promise<void>}
|
|
1917
|
+
*/
|
|
1918
|
+
removeMembersByInboxId(inbox_ids) {
|
|
1919
|
+
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
1920
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1921
|
+
const ret = wasm.conversation_removeMembersByInboxId(this.__wbg_ptr, ptr0, len0);
|
|
1922
|
+
return ret;
|
|
1923
|
+
}
|
|
1924
|
+
/**
|
|
1925
|
+
* @param {ListMessagesOptions | null} [opts]
|
|
1926
|
+
* @returns {Promise<MessageWithReactions[]>}
|
|
1927
|
+
*/
|
|
1928
|
+
findMessagesWithReactions(opts) {
|
|
1929
|
+
let ptr0 = 0;
|
|
1930
|
+
if (!isLikeNone(opts)) {
|
|
1931
|
+
_assertClass(opts, ListMessagesOptions);
|
|
1932
|
+
ptr0 = opts.__destroy_into_raw();
|
|
1933
|
+
}
|
|
1934
|
+
const ret = wasm.conversation_findMessagesWithReactions(this.__wbg_ptr, ptr0);
|
|
1935
|
+
return ret;
|
|
1936
|
+
}
|
|
1937
|
+
/**
|
|
1938
|
+
* @returns {MessageDisappearingSettings | undefined}
|
|
1939
|
+
*/
|
|
1940
|
+
messageDisappearingSettings() {
|
|
1941
|
+
const ret = wasm.conversation_messageDisappearingSettings(this.__wbg_ptr);
|
|
1942
|
+
if (ret[2]) {
|
|
1943
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1944
|
+
}
|
|
1945
|
+
return ret[0] === 0 ? undefined : MessageDisappearingSettings.__wrap(ret[0]);
|
|
1946
|
+
}
|
|
1947
|
+
/**
|
|
1948
|
+
* @param {string} group_image_url_square
|
|
1949
|
+
* @returns {Promise<void>}
|
|
1950
|
+
*/
|
|
1951
|
+
updateGroupImageUrlSquare(group_image_url_square) {
|
|
1952
|
+
const ptr0 = passStringToWasm0(group_image_url_square, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1953
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1954
|
+
const ret = wasm.conversation_updateGroupImageUrlSquare(this.__wbg_ptr, ptr0, len0);
|
|
1955
|
+
return ret;
|
|
1956
|
+
}
|
|
1957
|
+
/**
|
|
1958
|
+
* @returns {string}
|
|
1959
|
+
*/
|
|
1960
|
+
id() {
|
|
1961
|
+
let deferred1_0;
|
|
1962
|
+
let deferred1_1;
|
|
1963
|
+
try {
|
|
1964
|
+
const ret = wasm.conversation_id(this.__wbg_ptr);
|
|
1965
|
+
deferred1_0 = ret[0];
|
|
1966
|
+
deferred1_1 = ret[1];
|
|
1967
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1968
|
+
} finally {
|
|
1969
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
/**
|
|
1973
|
+
* @returns {boolean}
|
|
1974
|
+
*/
|
|
1975
|
+
isMessageDisappearingEnabled() {
|
|
1976
|
+
const ret = wasm.conversation_isMessageDisappearingEnabled(this.__wbg_ptr);
|
|
1977
|
+
if (ret[2]) {
|
|
1978
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1979
|
+
}
|
|
1980
|
+
return ret[0] !== 0;
|
|
1981
|
+
}
|
|
1982
|
+
/**
|
|
1983
|
+
* @returns {Promise<void>}
|
|
1984
|
+
*/
|
|
1985
|
+
removeMessageDisappearingSettings() {
|
|
1986
|
+
const ret = wasm.conversation_removeMessageDisappearingSettings(this.__wbg_ptr);
|
|
1987
|
+
return ret;
|
|
1988
|
+
}
|
|
1971
1989
|
/**
|
|
1972
1990
|
* @param {MessageDisappearingSettings} settings
|
|
1973
1991
|
* @returns {Promise<void>}
|
|
@@ -1978,76 +1996,69 @@ export class Conversation {
|
|
|
1978
1996
|
const ret = wasm.conversation_updateMessageDisappearingSettings(this.__wbg_ptr, ptr0);
|
|
1979
1997
|
return ret;
|
|
1980
1998
|
}
|
|
1999
|
+
/**
|
|
2000
|
+
* @param {EncodedContent} encoded_content
|
|
2001
|
+
* @param {SendMessageOpts} opts
|
|
2002
|
+
* @returns {Promise<string>}
|
|
2003
|
+
*/
|
|
2004
|
+
send(encoded_content, opts) {
|
|
2005
|
+
_assertClass(encoded_content, EncodedContent);
|
|
2006
|
+
var ptr0 = encoded_content.__destroy_into_raw();
|
|
2007
|
+
_assertClass(opts, SendMessageOpts);
|
|
2008
|
+
var ptr1 = opts.__destroy_into_raw();
|
|
2009
|
+
const ret = wasm.conversation_send(this.__wbg_ptr, ptr0, ptr1);
|
|
2010
|
+
return ret;
|
|
2011
|
+
}
|
|
1981
2012
|
/**
|
|
1982
2013
|
* @returns {Promise<void>}
|
|
1983
2014
|
*/
|
|
1984
|
-
|
|
1985
|
-
const ret = wasm.
|
|
2015
|
+
sync() {
|
|
2016
|
+
const ret = wasm.conversation_sync(this.__wbg_ptr);
|
|
1986
2017
|
return ret;
|
|
1987
2018
|
}
|
|
1988
2019
|
/**
|
|
1989
|
-
* @
|
|
2020
|
+
* @param {any} callback
|
|
2021
|
+
* @returns {StreamCloser}
|
|
1990
2022
|
*/
|
|
1991
|
-
|
|
1992
|
-
const ret = wasm.
|
|
2023
|
+
stream(callback) {
|
|
2024
|
+
const ret = wasm.conversation_stream(this.__wbg_ptr, callback);
|
|
1993
2025
|
if (ret[2]) {
|
|
1994
2026
|
throw takeFromExternrefTable0(ret[1]);
|
|
1995
2027
|
}
|
|
1996
|
-
return
|
|
2028
|
+
return StreamCloser.__wrap(ret[0]);
|
|
1997
2029
|
}
|
|
1998
2030
|
/**
|
|
2031
|
+
* @param {string} inbox_id
|
|
1999
2032
|
* @returns {boolean}
|
|
2000
2033
|
*/
|
|
2001
|
-
|
|
2002
|
-
const
|
|
2034
|
+
isAdmin(inbox_id) {
|
|
2035
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2036
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2037
|
+
const ret = wasm.conversation_isAdmin(this.__wbg_ptr, ptr0, len0);
|
|
2003
2038
|
if (ret[2]) {
|
|
2004
2039
|
throw takeFromExternrefTable0(ret[1]);
|
|
2005
2040
|
}
|
|
2006
2041
|
return ret[0] !== 0;
|
|
2007
2042
|
}
|
|
2008
2043
|
/**
|
|
2009
|
-
* @
|
|
2010
|
-
|
|
2011
|
-
getHmacKeys() {
|
|
2012
|
-
const ret = wasm.conversation_getHmacKeys(this.__wbg_ptr);
|
|
2013
|
-
if (ret[2]) {
|
|
2014
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
2015
|
-
}
|
|
2016
|
-
return takeFromExternrefTable0(ret[0]);
|
|
2017
|
-
}
|
|
2018
|
-
/**
|
|
2019
|
-
* @returns {Promise<any>}
|
|
2020
|
-
*/
|
|
2021
|
-
getDebugInfo() {
|
|
2022
|
-
const ret = wasm.conversation_getDebugInfo(this.__wbg_ptr);
|
|
2023
|
-
return ret;
|
|
2024
|
-
}
|
|
2025
|
-
/**
|
|
2026
|
-
* @returns {Promise<Conversation[]>}
|
|
2044
|
+
* @param {string} inbox_id
|
|
2045
|
+
* @returns {Promise<void>}
|
|
2027
2046
|
*/
|
|
2028
|
-
|
|
2029
|
-
const
|
|
2047
|
+
addAdmin(inbox_id) {
|
|
2048
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2049
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2050
|
+
const ret = wasm.conversation_addAdmin(this.__wbg_ptr, ptr0, len0);
|
|
2030
2051
|
return ret;
|
|
2031
2052
|
}
|
|
2032
2053
|
/**
|
|
2033
|
-
* @
|
|
2034
|
-
* @returns {Promise<DecodedMessage[]>}
|
|
2054
|
+
* @returns {boolean}
|
|
2035
2055
|
*/
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
if (
|
|
2039
|
-
|
|
2040
|
-
ptr0 = opts.__destroy_into_raw();
|
|
2056
|
+
isActive() {
|
|
2057
|
+
const ret = wasm.conversation_isActive(this.__wbg_ptr);
|
|
2058
|
+
if (ret[2]) {
|
|
2059
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2041
2060
|
}
|
|
2042
|
-
|
|
2043
|
-
return ret;
|
|
2044
|
-
}
|
|
2045
|
-
/**
|
|
2046
|
-
* @returns {Promise<any>}
|
|
2047
|
-
*/
|
|
2048
|
-
getLastReadTimes() {
|
|
2049
|
-
const ret = wasm.conversation_getLastReadTimes(this.__wbg_ptr);
|
|
2050
|
-
return ret;
|
|
2061
|
+
return ret[0] !== 0;
|
|
2051
2062
|
}
|
|
2052
2063
|
}
|
|
2053
2064
|
if (Symbol.dispose) Conversation.prototype[Symbol.dispose] = Conversation.prototype.free;
|
|
@@ -2314,22 +2325,6 @@ export class Conversations {
|
|
|
2314
2325
|
const ptr = this.__destroy_into_raw();
|
|
2315
2326
|
wasm.__wbg_conversations_free(ptr, 0);
|
|
2316
2327
|
}
|
|
2317
|
-
/**
|
|
2318
|
-
* @param {CreateGroupOptions | null} [options]
|
|
2319
|
-
* @returns {Conversation}
|
|
2320
|
-
*/
|
|
2321
|
-
createGroupOptimistic(options) {
|
|
2322
|
-
let ptr0 = 0;
|
|
2323
|
-
if (!isLikeNone(options)) {
|
|
2324
|
-
_assertClass(options, CreateGroupOptions);
|
|
2325
|
-
ptr0 = options.__destroy_into_raw();
|
|
2326
|
-
}
|
|
2327
|
-
const ret = wasm.conversations_createGroupOptimistic(this.__wbg_ptr, ptr0);
|
|
2328
|
-
if (ret[2]) {
|
|
2329
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
2330
|
-
}
|
|
2331
|
-
return Conversation.__wrap(ret[0]);
|
|
2332
|
-
}
|
|
2333
2328
|
/**
|
|
2334
2329
|
* @param {Identifier[]} account_identifiers
|
|
2335
2330
|
* @param {CreateGroupOptions | null} [options]
|
|
@@ -2347,50 +2342,25 @@ export class Conversations {
|
|
|
2347
2342
|
return ret;
|
|
2348
2343
|
}
|
|
2349
2344
|
/**
|
|
2350
|
-
* @
|
|
2351
|
-
* @param {CreateGroupOptions | null} [options]
|
|
2352
|
-
* @returns {Promise<Conversation>}
|
|
2353
|
-
*/
|
|
2354
|
-
createGroupByInboxIds(inbox_ids, options) {
|
|
2355
|
-
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
2356
|
-
const len0 = WASM_VECTOR_LEN;
|
|
2357
|
-
let ptr1 = 0;
|
|
2358
|
-
if (!isLikeNone(options)) {
|
|
2359
|
-
_assertClass(options, CreateGroupOptions);
|
|
2360
|
-
ptr1 = options.__destroy_into_raw();
|
|
2361
|
-
}
|
|
2362
|
-
const ret = wasm.conversations_createGroupByInboxIds(this.__wbg_ptr, ptr0, len0, ptr1);
|
|
2363
|
-
return ret;
|
|
2364
|
-
}
|
|
2365
|
-
/**
|
|
2366
|
-
* @param {Identifier} account_identifier
|
|
2367
|
-
* @param {CreateDMOptions | null} [options]
|
|
2368
|
-
* @returns {Promise<Conversation>}
|
|
2345
|
+
* @returns {any}
|
|
2369
2346
|
*/
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
if (
|
|
2373
|
-
|
|
2374
|
-
ptr0 = options.__destroy_into_raw();
|
|
2347
|
+
getHmacKeys() {
|
|
2348
|
+
const ret = wasm.conversations_getHmacKeys(this.__wbg_ptr);
|
|
2349
|
+
if (ret[2]) {
|
|
2350
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2375
2351
|
}
|
|
2376
|
-
|
|
2377
|
-
return ret;
|
|
2352
|
+
return takeFromExternrefTable0(ret[0]);
|
|
2378
2353
|
}
|
|
2379
2354
|
/**
|
|
2380
|
-
* @param {
|
|
2381
|
-
* @
|
|
2382
|
-
* @returns {Promise<Conversation>}
|
|
2355
|
+
* @param {any} callback
|
|
2356
|
+
* @returns {StreamCloser}
|
|
2383
2357
|
*/
|
|
2384
|
-
|
|
2385
|
-
const
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
if (!isLikeNone(options)) {
|
|
2389
|
-
_assertClass(options, CreateDMOptions);
|
|
2390
|
-
ptr1 = options.__destroy_into_raw();
|
|
2358
|
+
streamConsent(callback) {
|
|
2359
|
+
const ret = wasm.conversations_streamConsent(this.__wbg_ptr, callback);
|
|
2360
|
+
if (ret[2]) {
|
|
2361
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2391
2362
|
}
|
|
2392
|
-
|
|
2393
|
-
return ret;
|
|
2363
|
+
return StreamCloser.__wrap(ret[0]);
|
|
2394
2364
|
}
|
|
2395
2365
|
/**
|
|
2396
2366
|
* @param {string} group_id
|
|
@@ -2406,17 +2376,18 @@ export class Conversations {
|
|
|
2406
2376
|
return Conversation.__wrap(ret[0]);
|
|
2407
2377
|
}
|
|
2408
2378
|
/**
|
|
2409
|
-
* @param {
|
|
2410
|
-
* @
|
|
2379
|
+
* @param {Identifier} account_identifier
|
|
2380
|
+
* @param {CreateDMOptions | null} [options]
|
|
2381
|
+
* @returns {Promise<Conversation>}
|
|
2411
2382
|
*/
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
2383
|
+
createDm(account_identifier, options) {
|
|
2384
|
+
let ptr0 = 0;
|
|
2385
|
+
if (!isLikeNone(options)) {
|
|
2386
|
+
_assertClass(options, CreateDMOptions);
|
|
2387
|
+
ptr0 = options.__destroy_into_raw();
|
|
2418
2388
|
}
|
|
2419
|
-
|
|
2389
|
+
const ret = wasm.conversations_createDm(this.__wbg_ptr, account_identifier, ptr0);
|
|
2390
|
+
return ret;
|
|
2420
2391
|
}
|
|
2421
2392
|
/**
|
|
2422
2393
|
* @param {string} message_id
|
|
@@ -2432,11 +2403,30 @@ export class Conversations {
|
|
|
2432
2403
|
return Message.__wrap(ret[0]);
|
|
2433
2404
|
}
|
|
2434
2405
|
/**
|
|
2435
|
-
* @
|
|
2406
|
+
* @param {any} callback
|
|
2407
|
+
* @returns {StreamCloser}
|
|
2436
2408
|
*/
|
|
2437
|
-
|
|
2438
|
-
const ret = wasm.
|
|
2439
|
-
|
|
2409
|
+
streamPreferences(callback) {
|
|
2410
|
+
const ret = wasm.conversations_streamPreferences(this.__wbg_ptr, callback);
|
|
2411
|
+
if (ret[2]) {
|
|
2412
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2413
|
+
}
|
|
2414
|
+
return StreamCloser.__wrap(ret[0]);
|
|
2415
|
+
}
|
|
2416
|
+
/**
|
|
2417
|
+
* @param {any} callback
|
|
2418
|
+
* @param {ConversationType | null} [conversation_type]
|
|
2419
|
+
* @param {any[] | null} [consent_states]
|
|
2420
|
+
* @returns {StreamCloser}
|
|
2421
|
+
*/
|
|
2422
|
+
streamAllMessages(callback, conversation_type, consent_states) {
|
|
2423
|
+
var ptr0 = isLikeNone(consent_states) ? 0 : passArrayJsValueToWasm0(consent_states, wasm.__wbindgen_malloc);
|
|
2424
|
+
var len0 = WASM_VECTOR_LEN;
|
|
2425
|
+
const ret = wasm.conversations_streamAllMessages(this.__wbg_ptr, callback, isLikeNone(conversation_type) ? 4 : conversation_type, ptr0, len0);
|
|
2426
|
+
if (ret[2]) {
|
|
2427
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2428
|
+
}
|
|
2429
|
+
return StreamCloser.__wrap(ret[0]);
|
|
2440
2430
|
}
|
|
2441
2431
|
/**
|
|
2442
2432
|
* @param {any[] | null} [consent_states]
|
|
@@ -2449,30 +2439,60 @@ export class Conversations {
|
|
|
2449
2439
|
return ret;
|
|
2450
2440
|
}
|
|
2451
2441
|
/**
|
|
2452
|
-
* @param {
|
|
2453
|
-
* @returns {
|
|
2442
|
+
* @param {CreateGroupOptions | null} [options]
|
|
2443
|
+
* @returns {Conversation}
|
|
2454
2444
|
*/
|
|
2455
|
-
|
|
2445
|
+
createGroupOptimistic(options) {
|
|
2456
2446
|
let ptr0 = 0;
|
|
2457
|
-
if (!isLikeNone(
|
|
2458
|
-
_assertClass(
|
|
2459
|
-
ptr0 =
|
|
2447
|
+
if (!isLikeNone(options)) {
|
|
2448
|
+
_assertClass(options, CreateGroupOptions);
|
|
2449
|
+
ptr0 = options.__destroy_into_raw();
|
|
2460
2450
|
}
|
|
2461
|
-
const ret = wasm.
|
|
2451
|
+
const ret = wasm.conversations_createGroupOptimistic(this.__wbg_ptr, ptr0);
|
|
2462
2452
|
if (ret[2]) {
|
|
2463
2453
|
throw takeFromExternrefTable0(ret[1]);
|
|
2464
2454
|
}
|
|
2465
|
-
return
|
|
2455
|
+
return Conversation.__wrap(ret[0]);
|
|
2466
2456
|
}
|
|
2467
2457
|
/**
|
|
2468
|
-
* @
|
|
2458
|
+
* @param {any} callback
|
|
2459
|
+
* @returns {StreamCloser}
|
|
2469
2460
|
*/
|
|
2470
|
-
|
|
2471
|
-
const ret = wasm.
|
|
2461
|
+
streamMessageDeletions(callback) {
|
|
2462
|
+
const ret = wasm.conversations_streamMessageDeletions(this.__wbg_ptr, callback);
|
|
2472
2463
|
if (ret[2]) {
|
|
2473
2464
|
throw takeFromExternrefTable0(ret[1]);
|
|
2474
2465
|
}
|
|
2475
|
-
return
|
|
2466
|
+
return StreamCloser.__wrap(ret[0]);
|
|
2467
|
+
}
|
|
2468
|
+
/**
|
|
2469
|
+
* @param {string[]} inbox_ids
|
|
2470
|
+
* @param {CreateGroupOptions | null} [options]
|
|
2471
|
+
* @returns {Promise<Conversation>}
|
|
2472
|
+
*/
|
|
2473
|
+
createGroupByInboxIds(inbox_ids, options) {
|
|
2474
|
+
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
2475
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2476
|
+
let ptr1 = 0;
|
|
2477
|
+
if (!isLikeNone(options)) {
|
|
2478
|
+
_assertClass(options, CreateGroupOptions);
|
|
2479
|
+
ptr1 = options.__destroy_into_raw();
|
|
2480
|
+
}
|
|
2481
|
+
const ret = wasm.conversations_createGroupByInboxIds(this.__wbg_ptr, ptr0, len0, ptr1);
|
|
2482
|
+
return ret;
|
|
2483
|
+
}
|
|
2484
|
+
/**
|
|
2485
|
+
* @param {string} target_inbox_id
|
|
2486
|
+
* @returns {Conversation}
|
|
2487
|
+
*/
|
|
2488
|
+
findDmByTargetInboxId(target_inbox_id) {
|
|
2489
|
+
const ptr0 = passStringToWasm0(target_inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2490
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2491
|
+
const ret = wasm.conversations_findDmByTargetInboxId(this.__wbg_ptr, ptr0, len0);
|
|
2492
|
+
if (ret[2]) {
|
|
2493
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2494
|
+
}
|
|
2495
|
+
return Conversation.__wrap(ret[0]);
|
|
2476
2496
|
}
|
|
2477
2497
|
/**
|
|
2478
2498
|
* Returns a 'ReadableStream' of Conversations
|
|
@@ -2484,49 +2504,51 @@ export class Conversations {
|
|
|
2484
2504
|
return ret;
|
|
2485
2505
|
}
|
|
2486
2506
|
/**
|
|
2487
|
-
* @param {
|
|
2488
|
-
* @param {
|
|
2489
|
-
* @returns {
|
|
2507
|
+
* @param {string} inbox_id
|
|
2508
|
+
* @param {CreateDMOptions | null} [options]
|
|
2509
|
+
* @returns {Promise<Conversation>}
|
|
2510
|
+
*/
|
|
2511
|
+
createDmByInboxId(inbox_id, options) {
|
|
2512
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2513
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2514
|
+
let ptr1 = 0;
|
|
2515
|
+
if (!isLikeNone(options)) {
|
|
2516
|
+
_assertClass(options, CreateDMOptions);
|
|
2517
|
+
ptr1 = options.__destroy_into_raw();
|
|
2518
|
+
}
|
|
2519
|
+
const ret = wasm.conversations_createDmByInboxId(this.__wbg_ptr, ptr0, len0, ptr1);
|
|
2520
|
+
return ret;
|
|
2521
|
+
}
|
|
2522
|
+
/**
|
|
2523
|
+
* @param {ListConversationsOptions | null} [opts]
|
|
2524
|
+
* @returns {Array<any>}
|
|
2490
2525
|
*/
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
if (
|
|
2494
|
-
|
|
2526
|
+
list(opts) {
|
|
2527
|
+
let ptr0 = 0;
|
|
2528
|
+
if (!isLikeNone(opts)) {
|
|
2529
|
+
_assertClass(opts, ListConversationsOptions);
|
|
2530
|
+
ptr0 = opts.__destroy_into_raw();
|
|
2495
2531
|
}
|
|
2496
|
-
|
|
2497
|
-
}
|
|
2498
|
-
/**
|
|
2499
|
-
* @param {any} callback
|
|
2500
|
-
* @param {ConversationType | null} [conversation_type]
|
|
2501
|
-
* @param {any[] | null} [consent_states]
|
|
2502
|
-
* @returns {StreamCloser}
|
|
2503
|
-
*/
|
|
2504
|
-
streamAllMessages(callback, conversation_type, consent_states) {
|
|
2505
|
-
var ptr0 = isLikeNone(consent_states) ? 0 : passArrayJsValueToWasm0(consent_states, wasm.__wbindgen_malloc);
|
|
2506
|
-
var len0 = WASM_VECTOR_LEN;
|
|
2507
|
-
const ret = wasm.conversations_streamAllMessages(this.__wbg_ptr, callback, isLikeNone(conversation_type) ? 4 : conversation_type, ptr0, len0);
|
|
2532
|
+
const ret = wasm.conversations_list(this.__wbg_ptr, ptr0);
|
|
2508
2533
|
if (ret[2]) {
|
|
2509
2534
|
throw takeFromExternrefTable0(ret[1]);
|
|
2510
2535
|
}
|
|
2511
|
-
return
|
|
2536
|
+
return takeFromExternrefTable0(ret[0]);
|
|
2512
2537
|
}
|
|
2513
2538
|
/**
|
|
2514
|
-
* @
|
|
2515
|
-
* @returns {StreamCloser}
|
|
2539
|
+
* @returns {Promise<void>}
|
|
2516
2540
|
*/
|
|
2517
|
-
|
|
2518
|
-
const ret = wasm.
|
|
2519
|
-
|
|
2520
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
2521
|
-
}
|
|
2522
|
-
return StreamCloser.__wrap(ret[0]);
|
|
2541
|
+
sync() {
|
|
2542
|
+
const ret = wasm.conversations_sync(this.__wbg_ptr);
|
|
2543
|
+
return ret;
|
|
2523
2544
|
}
|
|
2524
2545
|
/**
|
|
2525
2546
|
* @param {any} callback
|
|
2547
|
+
* @param {ConversationType | null} [conversation_type]
|
|
2526
2548
|
* @returns {StreamCloser}
|
|
2527
2549
|
*/
|
|
2528
|
-
|
|
2529
|
-
const ret = wasm.
|
|
2550
|
+
stream(callback, conversation_type) {
|
|
2551
|
+
const ret = wasm.conversations_stream(this.__wbg_ptr, callback, isLikeNone(conversation_type) ? 4 : conversation_type);
|
|
2530
2552
|
if (ret[2]) {
|
|
2531
2553
|
throw takeFromExternrefTable0(ret[1]);
|
|
2532
2554
|
}
|
|
@@ -2552,6 +2574,20 @@ export class CreateDMOptions {
|
|
|
2552
2574
|
const ptr = this.__destroy_into_raw();
|
|
2553
2575
|
wasm.__wbg_createdmoptions_free(ptr, 0);
|
|
2554
2576
|
}
|
|
2577
|
+
/**
|
|
2578
|
+
* @param {MessageDisappearingSettings | null} [message_disappearing_settings]
|
|
2579
|
+
*/
|
|
2580
|
+
constructor(message_disappearing_settings) {
|
|
2581
|
+
let ptr0 = 0;
|
|
2582
|
+
if (!isLikeNone(message_disappearing_settings)) {
|
|
2583
|
+
_assertClass(message_disappearing_settings, MessageDisappearingSettings);
|
|
2584
|
+
ptr0 = message_disappearing_settings.__destroy_into_raw();
|
|
2585
|
+
}
|
|
2586
|
+
const ret = wasm.createdmoptions_new(ptr0);
|
|
2587
|
+
this.__wbg_ptr = ret >>> 0;
|
|
2588
|
+
CreateDMOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
2589
|
+
return this;
|
|
2590
|
+
}
|
|
2555
2591
|
/**
|
|
2556
2592
|
* @returns {MessageDisappearingSettings | undefined}
|
|
2557
2593
|
*/
|
|
@@ -2570,20 +2606,6 @@ export class CreateDMOptions {
|
|
|
2570
2606
|
}
|
|
2571
2607
|
wasm.__wbg_set_createdmoptions_messageDisappearingSettings(this.__wbg_ptr, ptr0);
|
|
2572
2608
|
}
|
|
2573
|
-
/**
|
|
2574
|
-
* @param {MessageDisappearingSettings | null} [message_disappearing_settings]
|
|
2575
|
-
*/
|
|
2576
|
-
constructor(message_disappearing_settings) {
|
|
2577
|
-
let ptr0 = 0;
|
|
2578
|
-
if (!isLikeNone(message_disappearing_settings)) {
|
|
2579
|
-
_assertClass(message_disappearing_settings, MessageDisappearingSettings);
|
|
2580
|
-
ptr0 = message_disappearing_settings.__destroy_into_raw();
|
|
2581
|
-
}
|
|
2582
|
-
const ret = wasm.createdmoptions_new(ptr0);
|
|
2583
|
-
this.__wbg_ptr = ret >>> 0;
|
|
2584
|
-
CreateDMOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
2585
|
-
return this;
|
|
2586
|
-
}
|
|
2587
2609
|
}
|
|
2588
2610
|
if (Symbol.dispose) CreateDMOptions.prototype[Symbol.dispose] = CreateDMOptions.prototype.free;
|
|
2589
2611
|
|
|
@@ -2604,6 +2626,36 @@ export class CreateGroupOptions {
|
|
|
2604
2626
|
const ptr = this.__destroy_into_raw();
|
|
2605
2627
|
wasm.__wbg_creategroupoptions_free(ptr, 0);
|
|
2606
2628
|
}
|
|
2629
|
+
/**
|
|
2630
|
+
* @param {GroupPermissionsOptions | null} [permissions]
|
|
2631
|
+
* @param {string | null} [group_name]
|
|
2632
|
+
* @param {string | null} [group_image_url_square]
|
|
2633
|
+
* @param {string | null} [group_description]
|
|
2634
|
+
* @param {PermissionPolicySet | null} [custom_permission_policy_set]
|
|
2635
|
+
* @param {MessageDisappearingSettings | null} [message_disappearing_settings]
|
|
2636
|
+
*/
|
|
2637
|
+
constructor(permissions, group_name, group_image_url_square, group_description, custom_permission_policy_set, message_disappearing_settings) {
|
|
2638
|
+
var ptr0 = isLikeNone(group_name) ? 0 : passStringToWasm0(group_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2639
|
+
var len0 = WASM_VECTOR_LEN;
|
|
2640
|
+
var ptr1 = isLikeNone(group_image_url_square) ? 0 : passStringToWasm0(group_image_url_square, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2641
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2642
|
+
var ptr2 = isLikeNone(group_description) ? 0 : passStringToWasm0(group_description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2643
|
+
var len2 = WASM_VECTOR_LEN;
|
|
2644
|
+
let ptr3 = 0;
|
|
2645
|
+
if (!isLikeNone(custom_permission_policy_set)) {
|
|
2646
|
+
_assertClass(custom_permission_policy_set, PermissionPolicySet);
|
|
2647
|
+
ptr3 = custom_permission_policy_set.__destroy_into_raw();
|
|
2648
|
+
}
|
|
2649
|
+
let ptr4 = 0;
|
|
2650
|
+
if (!isLikeNone(message_disappearing_settings)) {
|
|
2651
|
+
_assertClass(message_disappearing_settings, MessageDisappearingSettings);
|
|
2652
|
+
ptr4 = message_disappearing_settings.__destroy_into_raw();
|
|
2653
|
+
}
|
|
2654
|
+
const ret = wasm.creategroupoptions_new(isLikeNone(permissions) ? 3 : permissions, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4);
|
|
2655
|
+
this.__wbg_ptr = ret >>> 0;
|
|
2656
|
+
CreateGroupOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
2657
|
+
return this;
|
|
2658
|
+
}
|
|
2607
2659
|
/**
|
|
2608
2660
|
* @returns {GroupPermissionsOptions | undefined}
|
|
2609
2661
|
*/
|
|
@@ -2713,36 +2765,6 @@ export class CreateGroupOptions {
|
|
|
2713
2765
|
}
|
|
2714
2766
|
wasm.__wbg_set_createdmoptions_messageDisappearingSettings(this.__wbg_ptr, ptr0);
|
|
2715
2767
|
}
|
|
2716
|
-
/**
|
|
2717
|
-
* @param {GroupPermissionsOptions | null} [permissions]
|
|
2718
|
-
* @param {string | null} [group_name]
|
|
2719
|
-
* @param {string | null} [group_image_url_square]
|
|
2720
|
-
* @param {string | null} [group_description]
|
|
2721
|
-
* @param {PermissionPolicySet | null} [custom_permission_policy_set]
|
|
2722
|
-
* @param {MessageDisappearingSettings | null} [message_disappearing_settings]
|
|
2723
|
-
*/
|
|
2724
|
-
constructor(permissions, group_name, group_image_url_square, group_description, custom_permission_policy_set, message_disappearing_settings) {
|
|
2725
|
-
var ptr0 = isLikeNone(group_name) ? 0 : passStringToWasm0(group_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2726
|
-
var len0 = WASM_VECTOR_LEN;
|
|
2727
|
-
var ptr1 = isLikeNone(group_image_url_square) ? 0 : passStringToWasm0(group_image_url_square, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2728
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2729
|
-
var ptr2 = isLikeNone(group_description) ? 0 : passStringToWasm0(group_description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2730
|
-
var len2 = WASM_VECTOR_LEN;
|
|
2731
|
-
let ptr3 = 0;
|
|
2732
|
-
if (!isLikeNone(custom_permission_policy_set)) {
|
|
2733
|
-
_assertClass(custom_permission_policy_set, PermissionPolicySet);
|
|
2734
|
-
ptr3 = custom_permission_policy_set.__destroy_into_raw();
|
|
2735
|
-
}
|
|
2736
|
-
let ptr4 = 0;
|
|
2737
|
-
if (!isLikeNone(message_disappearing_settings)) {
|
|
2738
|
-
_assertClass(message_disappearing_settings, MessageDisappearingSettings);
|
|
2739
|
-
ptr4 = message_disappearing_settings.__destroy_into_raw();
|
|
2740
|
-
}
|
|
2741
|
-
const ret = wasm.creategroupoptions_new(isLikeNone(permissions) ? 3 : permissions, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4);
|
|
2742
|
-
this.__wbg_ptr = ret >>> 0;
|
|
2743
|
-
CreateGroupOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
2744
|
-
return this;
|
|
2745
|
-
}
|
|
2746
2768
|
}
|
|
2747
2769
|
if (Symbol.dispose) CreateGroupOptions.prototype[Symbol.dispose] = CreateGroupOptions.prototype.free;
|
|
2748
2770
|
|
|
@@ -2999,6 +3021,13 @@ export class DecodedMessageContent {
|
|
|
2999
3021
|
const ptr = this.__destroy_into_raw();
|
|
3000
3022
|
wasm.__wbg_decodedmessagecontent_free(ptr, 0);
|
|
3001
3023
|
}
|
|
3024
|
+
/**
|
|
3025
|
+
* @returns {ReactionPayload | undefined}
|
|
3026
|
+
*/
|
|
3027
|
+
asReaction() {
|
|
3028
|
+
const ret = wasm.decodedmessagecontent_asReaction(this.__wbg_ptr);
|
|
3029
|
+
return ret === 0 ? undefined : ReactionPayload.__wrap(ret);
|
|
3030
|
+
}
|
|
3002
3031
|
/**
|
|
3003
3032
|
* @returns {PayloadType}
|
|
3004
3033
|
*/
|
|
@@ -3007,32 +3036,25 @@ export class DecodedMessageContent {
|
|
|
3007
3036
|
return ret;
|
|
3008
3037
|
}
|
|
3009
3038
|
/**
|
|
3010
|
-
* @returns {
|
|
3011
|
-
*/
|
|
3012
|
-
asText() {
|
|
3013
|
-
const ret = wasm.decodedmessagecontent_asText(this.__wbg_ptr);
|
|
3014
|
-
return ret === 0 ? undefined : TextContent.__wrap(ret);
|
|
3015
|
-
}
|
|
3016
|
-
/**
|
|
3017
|
-
* @returns {EnrichedReply | undefined}
|
|
3039
|
+
* @returns {Attachment | undefined}
|
|
3018
3040
|
*/
|
|
3019
|
-
|
|
3020
|
-
const ret = wasm.
|
|
3021
|
-
return ret === 0 ? undefined :
|
|
3041
|
+
asAttachment() {
|
|
3042
|
+
const ret = wasm.decodedmessagecontent_asAttachment(this.__wbg_ptr);
|
|
3043
|
+
return ret === 0 ? undefined : Attachment.__wrap(ret);
|
|
3022
3044
|
}
|
|
3023
3045
|
/**
|
|
3024
|
-
* @returns {
|
|
3046
|
+
* @returns {ReadReceipt | undefined}
|
|
3025
3047
|
*/
|
|
3026
|
-
|
|
3027
|
-
const ret = wasm.
|
|
3028
|
-
return ret === 0 ? undefined :
|
|
3048
|
+
asReadReceipt() {
|
|
3049
|
+
const ret = wasm.decodedmessagecontent_asReadReceipt(this.__wbg_ptr);
|
|
3050
|
+
return ret === 0 ? undefined : ReadReceipt.__wrap(ret);
|
|
3029
3051
|
}
|
|
3030
3052
|
/**
|
|
3031
|
-
* @returns {
|
|
3053
|
+
* @returns {GroupUpdated | undefined}
|
|
3032
3054
|
*/
|
|
3033
|
-
|
|
3034
|
-
const ret = wasm.
|
|
3035
|
-
return ret === 0 ? undefined :
|
|
3055
|
+
asGroupUpdated() {
|
|
3056
|
+
const ret = wasm.decodedmessagecontent_asGroupUpdated(this.__wbg_ptr);
|
|
3057
|
+
return ret === 0 ? undefined : GroupUpdated.__wrap(ret);
|
|
3036
3058
|
}
|
|
3037
3059
|
/**
|
|
3038
3060
|
* @returns {RemoteAttachment | undefined}
|
|
@@ -3042,11 +3064,14 @@ export class DecodedMessageContent {
|
|
|
3042
3064
|
return ret === 0 ? undefined : RemoteAttachment.__wrap(ret);
|
|
3043
3065
|
}
|
|
3044
3066
|
/**
|
|
3045
|
-
* @returns {
|
|
3067
|
+
* @returns {any}
|
|
3046
3068
|
*/
|
|
3047
|
-
|
|
3048
|
-
const ret = wasm.
|
|
3049
|
-
|
|
3069
|
+
asWalletSendCalls() {
|
|
3070
|
+
const ret = wasm.decodedmessagecontent_asWalletSendCalls(this.__wbg_ptr);
|
|
3071
|
+
if (ret[2]) {
|
|
3072
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
3073
|
+
}
|
|
3074
|
+
return takeFromExternrefTable0(ret[0]);
|
|
3050
3075
|
}
|
|
3051
3076
|
/**
|
|
3052
3077
|
* @returns {TransactionReference | undefined}
|
|
@@ -3056,28 +3081,25 @@ export class DecodedMessageContent {
|
|
|
3056
3081
|
return ret === 0 ? undefined : TransactionReference.__wrap(ret);
|
|
3057
3082
|
}
|
|
3058
3083
|
/**
|
|
3059
|
-
* @returns {
|
|
3084
|
+
* @returns {MultiRemoteAttachment | undefined}
|
|
3060
3085
|
*/
|
|
3061
|
-
|
|
3062
|
-
const ret = wasm.
|
|
3063
|
-
return ret === 0 ? undefined :
|
|
3086
|
+
asMultiRemoteAttachment() {
|
|
3087
|
+
const ret = wasm.decodedmessagecontent_asMultiRemoteAttachment(this.__wbg_ptr);
|
|
3088
|
+
return ret === 0 ? undefined : MultiRemoteAttachment.__wrap(ret);
|
|
3064
3089
|
}
|
|
3065
3090
|
/**
|
|
3066
|
-
* @returns {
|
|
3091
|
+
* @returns {TextContent | undefined}
|
|
3067
3092
|
*/
|
|
3068
|
-
|
|
3069
|
-
const ret = wasm.
|
|
3070
|
-
return ret === 0 ? undefined :
|
|
3093
|
+
asText() {
|
|
3094
|
+
const ret = wasm.decodedmessagecontent_asText(this.__wbg_ptr);
|
|
3095
|
+
return ret === 0 ? undefined : TextContent.__wrap(ret);
|
|
3071
3096
|
}
|
|
3072
3097
|
/**
|
|
3073
|
-
* @returns {
|
|
3098
|
+
* @returns {EnrichedReply | undefined}
|
|
3074
3099
|
*/
|
|
3075
|
-
|
|
3076
|
-
const ret = wasm.
|
|
3077
|
-
|
|
3078
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
3079
|
-
}
|
|
3080
|
-
return takeFromExternrefTable0(ret[0]);
|
|
3100
|
+
asReply() {
|
|
3101
|
+
const ret = wasm.decodedmessagecontent_asReply(this.__wbg_ptr);
|
|
3102
|
+
return ret === 0 ? undefined : EnrichedReply.__wrap(ret);
|
|
3081
3103
|
}
|
|
3082
3104
|
/**
|
|
3083
3105
|
* @returns {EncodedContent | undefined}
|
|
@@ -3114,6 +3136,26 @@ export class EncodedContent {
|
|
|
3114
3136
|
const ptr = this.__destroy_into_raw();
|
|
3115
3137
|
wasm.__wbg_encodedcontent_free(ptr, 0);
|
|
3116
3138
|
}
|
|
3139
|
+
/**
|
|
3140
|
+
* @param {ContentTypeId | null | undefined} type
|
|
3141
|
+
* @param {any} parameters
|
|
3142
|
+
* @param {string | null | undefined} fallback
|
|
3143
|
+
* @param {number | null | undefined} compression
|
|
3144
|
+
* @param {Uint8Array} content
|
|
3145
|
+
*/
|
|
3146
|
+
constructor(type, parameters, fallback, compression, content) {
|
|
3147
|
+
let ptr0 = 0;
|
|
3148
|
+
if (!isLikeNone(type)) {
|
|
3149
|
+
_assertClass(type, ContentTypeId);
|
|
3150
|
+
ptr0 = type.__destroy_into_raw();
|
|
3151
|
+
}
|
|
3152
|
+
var ptr1 = isLikeNone(fallback) ? 0 : passStringToWasm0(fallback, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3153
|
+
var len1 = WASM_VECTOR_LEN;
|
|
3154
|
+
const ret = wasm.encodedcontent_new(ptr0, parameters, ptr1, len1, isLikeNone(compression) ? 0x100000001 : (compression) >> 0, content);
|
|
3155
|
+
this.__wbg_ptr = ret >>> 0;
|
|
3156
|
+
EncodedContentFinalization.register(this, this.__wbg_ptr, this);
|
|
3157
|
+
return this;
|
|
3158
|
+
}
|
|
3117
3159
|
/**
|
|
3118
3160
|
* @returns {ContentTypeId | undefined}
|
|
3119
3161
|
*/
|
|
@@ -3191,26 +3233,6 @@ export class EncodedContent {
|
|
|
3191
3233
|
set content(arg0) {
|
|
3192
3234
|
wasm.__wbg_set_encodedcontent_content(this.__wbg_ptr, arg0);
|
|
3193
3235
|
}
|
|
3194
|
-
/**
|
|
3195
|
-
* @param {ContentTypeId | null | undefined} type
|
|
3196
|
-
* @param {any} parameters
|
|
3197
|
-
* @param {string | null | undefined} fallback
|
|
3198
|
-
* @param {number | null | undefined} compression
|
|
3199
|
-
* @param {Uint8Array} content
|
|
3200
|
-
*/
|
|
3201
|
-
constructor(type, parameters, fallback, compression, content) {
|
|
3202
|
-
let ptr0 = 0;
|
|
3203
|
-
if (!isLikeNone(type)) {
|
|
3204
|
-
_assertClass(type, ContentTypeId);
|
|
3205
|
-
ptr0 = type.__destroy_into_raw();
|
|
3206
|
-
}
|
|
3207
|
-
var ptr1 = isLikeNone(fallback) ? 0 : passStringToWasm0(fallback, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3208
|
-
var len1 = WASM_VECTOR_LEN;
|
|
3209
|
-
const ret = wasm.encodedcontent_new(ptr0, parameters, ptr1, len1, isLikeNone(compression) ? 0x100000001 : (compression) >> 0, content);
|
|
3210
|
-
this.__wbg_ptr = ret >>> 0;
|
|
3211
|
-
EncodedContentFinalization.register(this, this.__wbg_ptr, this);
|
|
3212
|
-
return this;
|
|
3213
|
-
}
|
|
3214
3236
|
}
|
|
3215
3237
|
if (Symbol.dispose) EncodedContent.prototype[Symbol.dispose] = EncodedContent.prototype.free;
|
|
3216
3238
|
|
|
@@ -3239,6 +3261,13 @@ export class EnrichedReply {
|
|
|
3239
3261
|
const ptr = this.__destroy_into_raw();
|
|
3240
3262
|
wasm.__wbg_enrichedreply_free(ptr, 0);
|
|
3241
3263
|
}
|
|
3264
|
+
/**
|
|
3265
|
+
* @returns {DecodedMessage | undefined}
|
|
3266
|
+
*/
|
|
3267
|
+
get inReplyTo() {
|
|
3268
|
+
const ret = wasm.enrichedreply_inReplyTo(this.__wbg_ptr);
|
|
3269
|
+
return ret === 0 ? undefined : DecodedMessage.__wrap(ret);
|
|
3270
|
+
}
|
|
3242
3271
|
/**
|
|
3243
3272
|
* @returns {string}
|
|
3244
3273
|
*/
|
|
@@ -3261,13 +3290,6 @@ export class EnrichedReply {
|
|
|
3261
3290
|
const ret = wasm.enrichedreply_content(this.__wbg_ptr);
|
|
3262
3291
|
return DecodedMessageContent.__wrap(ret);
|
|
3263
3292
|
}
|
|
3264
|
-
/**
|
|
3265
|
-
* @returns {DecodedMessage | undefined}
|
|
3266
|
-
*/
|
|
3267
|
-
get inReplyTo() {
|
|
3268
|
-
const ret = wasm.enrichedreply_inReplyTo(this.__wbg_ptr);
|
|
3269
|
-
return ret === 0 ? undefined : DecodedMessage.__wrap(ret);
|
|
3270
|
-
}
|
|
3271
3293
|
}
|
|
3272
3294
|
if (Symbol.dispose) EnrichedReply.prototype[Symbol.dispose] = EnrichedReply.prototype.free;
|
|
3273
3295
|
|
|
@@ -3288,6 +3310,25 @@ export class GroupMember {
|
|
|
3288
3310
|
const ptr = this.__destroy_into_raw();
|
|
3289
3311
|
wasm.__wbg_groupmember_free(ptr, 0);
|
|
3290
3312
|
}
|
|
3313
|
+
/**
|
|
3314
|
+
* @param {string} inboxId
|
|
3315
|
+
* @param {Identifier[]} accountIdentifiers
|
|
3316
|
+
* @param {string[]} installationIds
|
|
3317
|
+
* @param {PermissionLevel} permissionLevel
|
|
3318
|
+
* @param {ConsentState} consentState
|
|
3319
|
+
*/
|
|
3320
|
+
constructor(inboxId, accountIdentifiers, installationIds, permissionLevel, consentState) {
|
|
3321
|
+
const ptr0 = passStringToWasm0(inboxId, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3322
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3323
|
+
const ptr1 = passArrayJsValueToWasm0(accountIdentifiers, wasm.__wbindgen_malloc);
|
|
3324
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3325
|
+
const ptr2 = passArrayJsValueToWasm0(installationIds, wasm.__wbindgen_malloc);
|
|
3326
|
+
const len2 = WASM_VECTOR_LEN;
|
|
3327
|
+
const ret = wasm.groupmember_new(ptr0, len0, ptr1, len1, ptr2, len2, permissionLevel, consentState);
|
|
3328
|
+
this.__wbg_ptr = ret >>> 0;
|
|
3329
|
+
GroupMemberFinalization.register(this, this.__wbg_ptr, this);
|
|
3330
|
+
return this;
|
|
3331
|
+
}
|
|
3291
3332
|
/**
|
|
3292
3333
|
* @returns {string}
|
|
3293
3334
|
*/
|
|
@@ -3309,7 +3350,7 @@ export class GroupMember {
|
|
|
3309
3350
|
set inboxId(arg0) {
|
|
3310
3351
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3311
3352
|
const len0 = WASM_VECTOR_LEN;
|
|
3312
|
-
wasm.
|
|
3353
|
+
wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
|
|
3313
3354
|
}
|
|
3314
3355
|
/**
|
|
3315
3356
|
* @returns {Identifier[]}
|
|
@@ -3371,25 +3412,6 @@ export class GroupMember {
|
|
|
3371
3412
|
set consentState(arg0) {
|
|
3372
3413
|
wasm.__wbg_set_groupmember_consentState(this.__wbg_ptr, arg0);
|
|
3373
3414
|
}
|
|
3374
|
-
/**
|
|
3375
|
-
* @param {string} inboxId
|
|
3376
|
-
* @param {Identifier[]} accountIdentifiers
|
|
3377
|
-
* @param {string[]} installationIds
|
|
3378
|
-
* @param {PermissionLevel} permissionLevel
|
|
3379
|
-
* @param {ConsentState} consentState
|
|
3380
|
-
*/
|
|
3381
|
-
constructor(inboxId, accountIdentifiers, installationIds, permissionLevel, consentState) {
|
|
3382
|
-
const ptr0 = passStringToWasm0(inboxId, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3383
|
-
const len0 = WASM_VECTOR_LEN;
|
|
3384
|
-
const ptr1 = passArrayJsValueToWasm0(accountIdentifiers, wasm.__wbindgen_malloc);
|
|
3385
|
-
const len1 = WASM_VECTOR_LEN;
|
|
3386
|
-
const ptr2 = passArrayJsValueToWasm0(installationIds, wasm.__wbindgen_malloc);
|
|
3387
|
-
const len2 = WASM_VECTOR_LEN;
|
|
3388
|
-
const ret = wasm.groupmember_new(ptr0, len0, ptr1, len1, ptr2, len2, permissionLevel, consentState);
|
|
3389
|
-
this.__wbg_ptr = ret >>> 0;
|
|
3390
|
-
GroupMemberFinalization.register(this, this.__wbg_ptr, this);
|
|
3391
|
-
return this;
|
|
3392
|
-
}
|
|
3393
3415
|
}
|
|
3394
3416
|
if (Symbol.dispose) GroupMember.prototype[Symbol.dispose] = GroupMember.prototype.free;
|
|
3395
3417
|
|
|
@@ -3477,24 +3499,24 @@ export class GroupPermissions {
|
|
|
3477
3499
|
wasm.__wbg_grouppermissions_free(ptr, 0);
|
|
3478
3500
|
}
|
|
3479
3501
|
/**
|
|
3480
|
-
* @returns {
|
|
3502
|
+
* @returns {PermissionPolicySet}
|
|
3481
3503
|
*/
|
|
3482
|
-
|
|
3483
|
-
const ret = wasm.
|
|
3504
|
+
policySet() {
|
|
3505
|
+
const ret = wasm.grouppermissions_policySet(this.__wbg_ptr);
|
|
3484
3506
|
if (ret[2]) {
|
|
3485
3507
|
throw takeFromExternrefTable0(ret[1]);
|
|
3486
3508
|
}
|
|
3487
|
-
return ret[0];
|
|
3509
|
+
return PermissionPolicySet.__wrap(ret[0]);
|
|
3488
3510
|
}
|
|
3489
3511
|
/**
|
|
3490
|
-
* @returns {
|
|
3512
|
+
* @returns {GroupPermissionsOptions}
|
|
3491
3513
|
*/
|
|
3492
|
-
|
|
3493
|
-
const ret = wasm.
|
|
3514
|
+
policyType() {
|
|
3515
|
+
const ret = wasm.grouppermissions_policyType(this.__wbg_ptr);
|
|
3494
3516
|
if (ret[2]) {
|
|
3495
3517
|
throw takeFromExternrefTable0(ret[1]);
|
|
3496
3518
|
}
|
|
3497
|
-
return
|
|
3519
|
+
return ret[0];
|
|
3498
3520
|
}
|
|
3499
3521
|
}
|
|
3500
3522
|
if (Symbol.dispose) GroupPermissions.prototype[Symbol.dispose] = GroupPermissions.prototype.free;
|
|
@@ -3524,6 +3546,16 @@ export class GroupSyncSummary {
|
|
|
3524
3546
|
const ptr = this.__destroy_into_raw();
|
|
3525
3547
|
wasm.__wbg_groupsyncsummary_free(ptr, 0);
|
|
3526
3548
|
}
|
|
3549
|
+
/**
|
|
3550
|
+
* @param {number} num_eligible
|
|
3551
|
+
* @param {number} num_synced
|
|
3552
|
+
*/
|
|
3553
|
+
constructor(num_eligible, num_synced) {
|
|
3554
|
+
const ret = wasm.groupsyncsummary_new(num_eligible, num_synced);
|
|
3555
|
+
this.__wbg_ptr = ret >>> 0;
|
|
3556
|
+
GroupSyncSummaryFinalization.register(this, this.__wbg_ptr, this);
|
|
3557
|
+
return this;
|
|
3558
|
+
}
|
|
3527
3559
|
/**
|
|
3528
3560
|
* @returns {number}
|
|
3529
3561
|
*/
|
|
@@ -3550,16 +3582,6 @@ export class GroupSyncSummary {
|
|
|
3550
3582
|
set numSynced(arg0) {
|
|
3551
3583
|
wasm.__wbg_set_groupsyncsummary_numSynced(this.__wbg_ptr, arg0);
|
|
3552
3584
|
}
|
|
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
3585
|
}
|
|
3564
3586
|
if (Symbol.dispose) GroupSyncSummary.prototype[Symbol.dispose] = GroupSyncSummary.prototype.free;
|
|
3565
3587
|
|
|
@@ -3609,7 +3631,7 @@ export class GroupUpdated {
|
|
|
3609
3631
|
set initiatedByInboxId(arg0) {
|
|
3610
3632
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3611
3633
|
const len0 = WASM_VECTOR_LEN;
|
|
3612
|
-
wasm.
|
|
3634
|
+
wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
|
|
3613
3635
|
}
|
|
3614
3636
|
/**
|
|
3615
3637
|
* @returns {Inbox[]}
|
|
@@ -3848,7 +3870,7 @@ export class Inbox {
|
|
|
3848
3870
|
set inboxId(arg0) {
|
|
3849
3871
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3850
3872
|
const len0 = WASM_VECTOR_LEN;
|
|
3851
|
-
wasm.
|
|
3873
|
+
wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
|
|
3852
3874
|
}
|
|
3853
3875
|
}
|
|
3854
3876
|
if (Symbol.dispose) Inbox.prototype[Symbol.dispose] = Inbox.prototype.free;
|
|
@@ -3878,6 +3900,24 @@ export class InboxState {
|
|
|
3878
3900
|
const ptr = this.__destroy_into_raw();
|
|
3879
3901
|
wasm.__wbg_inboxstate_free(ptr, 0);
|
|
3880
3902
|
}
|
|
3903
|
+
/**
|
|
3904
|
+
* @param {string} inbox_id
|
|
3905
|
+
* @param {Identifier} recovery_identifier
|
|
3906
|
+
* @param {Installation[]} installations
|
|
3907
|
+
* @param {Identifier[]} account_identifiers
|
|
3908
|
+
*/
|
|
3909
|
+
constructor(inbox_id, recovery_identifier, installations, account_identifiers) {
|
|
3910
|
+
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3911
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3912
|
+
const ptr1 = passArrayJsValueToWasm0(installations, wasm.__wbindgen_malloc);
|
|
3913
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3914
|
+
const ptr2 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
3915
|
+
const len2 = WASM_VECTOR_LEN;
|
|
3916
|
+
const ret = wasm.inboxstate_new(ptr0, len0, recovery_identifier, ptr1, len1, ptr2, len2);
|
|
3917
|
+
this.__wbg_ptr = ret >>> 0;
|
|
3918
|
+
InboxStateFinalization.register(this, this.__wbg_ptr, this);
|
|
3919
|
+
return this;
|
|
3920
|
+
}
|
|
3881
3921
|
/**
|
|
3882
3922
|
* @returns {string}
|
|
3883
3923
|
*/
|
|
@@ -3948,24 +3988,6 @@ export class InboxState {
|
|
|
3948
3988
|
const len0 = WASM_VECTOR_LEN;
|
|
3949
3989
|
wasm.__wbg_set_inboxstate_accountIdentifiers(this.__wbg_ptr, ptr0, len0);
|
|
3950
3990
|
}
|
|
3951
|
-
/**
|
|
3952
|
-
* @param {string} inbox_id
|
|
3953
|
-
* @param {Identifier} recovery_identifier
|
|
3954
|
-
* @param {Installation[]} installations
|
|
3955
|
-
* @param {Identifier[]} account_identifiers
|
|
3956
|
-
*/
|
|
3957
|
-
constructor(inbox_id, recovery_identifier, installations, account_identifiers) {
|
|
3958
|
-
const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3959
|
-
const len0 = WASM_VECTOR_LEN;
|
|
3960
|
-
const ptr1 = passArrayJsValueToWasm0(installations, wasm.__wbindgen_malloc);
|
|
3961
|
-
const len1 = WASM_VECTOR_LEN;
|
|
3962
|
-
const ptr2 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
3963
|
-
const len2 = WASM_VECTOR_LEN;
|
|
3964
|
-
const ret = wasm.inboxstate_new(ptr0, len0, recovery_identifier, ptr1, len1, ptr2, len2);
|
|
3965
|
-
this.__wbg_ptr = ret >>> 0;
|
|
3966
|
-
InboxStateFinalization.register(this, this.__wbg_ptr, this);
|
|
3967
|
-
return this;
|
|
3968
|
-
}
|
|
3969
3991
|
}
|
|
3970
3992
|
if (Symbol.dispose) InboxState.prototype[Symbol.dispose] = InboxState.prototype.free;
|
|
3971
3993
|
|
|
@@ -4001,6 +4023,19 @@ export class Installation {
|
|
|
4001
4023
|
const ptr = this.__destroy_into_raw();
|
|
4002
4024
|
wasm.__wbg_installation_free(ptr, 0);
|
|
4003
4025
|
}
|
|
4026
|
+
/**
|
|
4027
|
+
* @param {Uint8Array} bytes
|
|
4028
|
+
* @param {string} id
|
|
4029
|
+
* @param {bigint | null} [client_timestamp_ns]
|
|
4030
|
+
*/
|
|
4031
|
+
constructor(bytes, id, client_timestamp_ns) {
|
|
4032
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4033
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4034
|
+
const ret = wasm.installation_new(bytes, ptr0, len0, !isLikeNone(client_timestamp_ns), isLikeNone(client_timestamp_ns) ? BigInt(0) : client_timestamp_ns);
|
|
4035
|
+
this.__wbg_ptr = ret >>> 0;
|
|
4036
|
+
InstallationFinalization.register(this, this.__wbg_ptr, this);
|
|
4037
|
+
return this;
|
|
4038
|
+
}
|
|
4004
4039
|
/**
|
|
4005
4040
|
* @returns {Uint8Array}
|
|
4006
4041
|
*/
|
|
@@ -4050,19 +4085,6 @@ export class Installation {
|
|
|
4050
4085
|
set clientTimestampNs(arg0) {
|
|
4051
4086
|
wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
4052
4087
|
}
|
|
4053
|
-
/**
|
|
4054
|
-
* @param {Uint8Array} bytes
|
|
4055
|
-
* @param {string} id
|
|
4056
|
-
* @param {bigint | null} [client_timestamp_ns]
|
|
4057
|
-
*/
|
|
4058
|
-
constructor(bytes, id, client_timestamp_ns) {
|
|
4059
|
-
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4060
|
-
const len0 = WASM_VECTOR_LEN;
|
|
4061
|
-
const ret = wasm.installation_new(bytes, ptr0, len0, !isLikeNone(client_timestamp_ns), isLikeNone(client_timestamp_ns) ? BigInt(0) : client_timestamp_ns);
|
|
4062
|
-
this.__wbg_ptr = ret >>> 0;
|
|
4063
|
-
InstallationFinalization.register(this, this.__wbg_ptr, this);
|
|
4064
|
-
return this;
|
|
4065
|
-
}
|
|
4066
4088
|
}
|
|
4067
4089
|
if (Symbol.dispose) Installation.prototype[Symbol.dispose] = Installation.prototype.free;
|
|
4068
4090
|
|
|
@@ -4083,13 +4105,6 @@ export class IntoUnderlyingByteSource {
|
|
|
4083
4105
|
const ptr = this.__destroy_into_raw();
|
|
4084
4106
|
wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
|
|
4085
4107
|
}
|
|
4086
|
-
/**
|
|
4087
|
-
* @returns {ReadableStreamType}
|
|
4088
|
-
*/
|
|
4089
|
-
get type() {
|
|
4090
|
-
const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
|
|
4091
|
-
return __wbindgen_enum_ReadableStreamType[ret];
|
|
4092
|
-
}
|
|
4093
4108
|
/**
|
|
4094
4109
|
* @returns {number}
|
|
4095
4110
|
*/
|
|
@@ -4097,6 +4112,14 @@ export class IntoUnderlyingByteSource {
|
|
|
4097
4112
|
const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr);
|
|
4098
4113
|
return ret >>> 0;
|
|
4099
4114
|
}
|
|
4115
|
+
/**
|
|
4116
|
+
* @param {ReadableByteStreamController} controller
|
|
4117
|
+
* @returns {Promise<any>}
|
|
4118
|
+
*/
|
|
4119
|
+
pull(controller) {
|
|
4120
|
+
const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller);
|
|
4121
|
+
return ret;
|
|
4122
|
+
}
|
|
4100
4123
|
/**
|
|
4101
4124
|
* @param {ReadableByteStreamController} controller
|
|
4102
4125
|
*/
|
|
@@ -4104,12 +4127,11 @@ export class IntoUnderlyingByteSource {
|
|
|
4104
4127
|
wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller);
|
|
4105
4128
|
}
|
|
4106
4129
|
/**
|
|
4107
|
-
* @
|
|
4108
|
-
* @returns {Promise<any>}
|
|
4130
|
+
* @returns {ReadableStreamType}
|
|
4109
4131
|
*/
|
|
4110
|
-
|
|
4111
|
-
const ret = wasm.
|
|
4112
|
-
return ret;
|
|
4132
|
+
get type() {
|
|
4133
|
+
const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
|
|
4134
|
+
return __wbindgen_enum_ReadableStreamType[ret];
|
|
4113
4135
|
}
|
|
4114
4136
|
cancel() {
|
|
4115
4137
|
const ptr = this.__destroy_into_raw();
|
|
@@ -4136,11 +4158,12 @@ export class IntoUnderlyingSink {
|
|
|
4136
4158
|
wasm.__wbg_intounderlyingsink_free(ptr, 0);
|
|
4137
4159
|
}
|
|
4138
4160
|
/**
|
|
4139
|
-
* @param {any}
|
|
4161
|
+
* @param {any} reason
|
|
4140
4162
|
* @returns {Promise<any>}
|
|
4141
4163
|
*/
|
|
4142
|
-
|
|
4143
|
-
const
|
|
4164
|
+
abort(reason) {
|
|
4165
|
+
const ptr = this.__destroy_into_raw();
|
|
4166
|
+
const ret = wasm.intounderlyingsink_abort(ptr, reason);
|
|
4144
4167
|
return ret;
|
|
4145
4168
|
}
|
|
4146
4169
|
/**
|
|
@@ -4152,12 +4175,11 @@ export class IntoUnderlyingSink {
|
|
|
4152
4175
|
return ret;
|
|
4153
4176
|
}
|
|
4154
4177
|
/**
|
|
4155
|
-
* @param {any}
|
|
4178
|
+
* @param {any} chunk
|
|
4156
4179
|
* @returns {Promise<any>}
|
|
4157
4180
|
*/
|
|
4158
|
-
|
|
4159
|
-
const
|
|
4160
|
-
const ret = wasm.intounderlyingsink_abort(ptr, reason);
|
|
4181
|
+
write(chunk) {
|
|
4182
|
+
const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk);
|
|
4161
4183
|
return ret;
|
|
4162
4184
|
}
|
|
4163
4185
|
}
|
|
@@ -4224,7 +4246,7 @@ export class KeyPackageStatus {
|
|
|
4224
4246
|
* @returns {Lifetime | undefined}
|
|
4225
4247
|
*/
|
|
4226
4248
|
get lifetime() {
|
|
4227
|
-
const ret = wasm.
|
|
4249
|
+
const ret = wasm.__wbg_get_keypackagestatus_lifetime(this.__wbg_ptr);
|
|
4228
4250
|
return ret === 0 ? undefined : Lifetime.__wrap(ret);
|
|
4229
4251
|
}
|
|
4230
4252
|
/**
|
|
@@ -4236,7 +4258,7 @@ export class KeyPackageStatus {
|
|
|
4236
4258
|
_assertClass(arg0, Lifetime);
|
|
4237
4259
|
ptr0 = arg0.__destroy_into_raw();
|
|
4238
4260
|
}
|
|
4239
|
-
wasm.
|
|
4261
|
+
wasm.__wbg_set_keypackagestatus_lifetime(this.__wbg_ptr, ptr0);
|
|
4240
4262
|
}
|
|
4241
4263
|
/**
|
|
4242
4264
|
* @returns {string | undefined}
|
|
@@ -4290,14 +4312,14 @@ export class Lifetime {
|
|
|
4290
4312
|
* @returns {bigint}
|
|
4291
4313
|
*/
|
|
4292
4314
|
get not_before() {
|
|
4293
|
-
const ret = wasm.
|
|
4315
|
+
const ret = wasm.__wbg_get_lifetime_not_before(this.__wbg_ptr);
|
|
4294
4316
|
return BigInt.asUintN(64, ret);
|
|
4295
4317
|
}
|
|
4296
4318
|
/**
|
|
4297
4319
|
* @param {bigint} arg0
|
|
4298
4320
|
*/
|
|
4299
4321
|
set not_before(arg0) {
|
|
4300
|
-
wasm.
|
|
4322
|
+
wasm.__wbg_set_lifetime_not_before(this.__wbg_ptr, arg0);
|
|
4301
4323
|
}
|
|
4302
4324
|
/**
|
|
4303
4325
|
* @returns {bigint}
|
|
@@ -4376,7 +4398,7 @@ export class ListConversationsOptions {
|
|
|
4376
4398
|
* @param {bigint | null} [arg0]
|
|
4377
4399
|
*/
|
|
4378
4400
|
set createdAfterNs(arg0) {
|
|
4379
|
-
wasm.
|
|
4401
|
+
wasm.__wbg_set_listconversationsoptions_createdAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
4380
4402
|
}
|
|
4381
4403
|
/**
|
|
4382
4404
|
* @returns {bigint | undefined}
|
|
@@ -4404,6 +4426,19 @@ export class ListConversationsOptions {
|
|
|
4404
4426
|
set includeDuplicateDms(arg0) {
|
|
4405
4427
|
wasm.__wbg_set_listconversationsoptions_includeDuplicateDms(this.__wbg_ptr, isLikeNone(arg0) ? 0xFFFFFF : arg0 ? 1 : 0);
|
|
4406
4428
|
}
|
|
4429
|
+
/**
|
|
4430
|
+
* @returns {ListConversationsOrderBy | undefined}
|
|
4431
|
+
*/
|
|
4432
|
+
get orderBy() {
|
|
4433
|
+
const ret = wasm.__wbg_get_listconversationsoptions_orderBy(this.__wbg_ptr);
|
|
4434
|
+
return ret === 2 ? undefined : ret;
|
|
4435
|
+
}
|
|
4436
|
+
/**
|
|
4437
|
+
* @param {ListConversationsOrderBy | null} [arg0]
|
|
4438
|
+
*/
|
|
4439
|
+
set orderBy(arg0) {
|
|
4440
|
+
wasm.__wbg_set_listconversationsoptions_orderBy(this.__wbg_ptr, isLikeNone(arg0) ? 2 : arg0);
|
|
4441
|
+
}
|
|
4407
4442
|
/**
|
|
4408
4443
|
* @returns {bigint | undefined}
|
|
4409
4444
|
*/
|
|
@@ -4424,11 +4459,12 @@ export class ListConversationsOptions {
|
|
|
4424
4459
|
* @param {bigint | null} [created_before_ns]
|
|
4425
4460
|
* @param {boolean | null} [include_duplicate_dms]
|
|
4426
4461
|
* @param {bigint | null} [limit]
|
|
4462
|
+
* @param {ListConversationsOrderBy | null} [order_by]
|
|
4427
4463
|
*/
|
|
4428
|
-
constructor(consent_states, conversation_type, created_after_ns, created_before_ns, include_duplicate_dms, limit) {
|
|
4464
|
+
constructor(consent_states, conversation_type, created_after_ns, created_before_ns, include_duplicate_dms, limit, order_by) {
|
|
4429
4465
|
var ptr0 = isLikeNone(consent_states) ? 0 : passArrayJsValueToWasm0(consent_states, wasm.__wbindgen_malloc);
|
|
4430
4466
|
var len0 = WASM_VECTOR_LEN;
|
|
4431
|
-
const ret = wasm.listconversationsoptions_new(ptr0, len0, isLikeNone(conversation_type) ? 4 : conversation_type, !isLikeNone(created_after_ns), isLikeNone(created_after_ns) ? BigInt(0) : created_after_ns, !isLikeNone(created_before_ns), isLikeNone(created_before_ns) ? BigInt(0) : created_before_ns, isLikeNone(include_duplicate_dms) ? 0xFFFFFF : include_duplicate_dms ? 1 : 0, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit);
|
|
4467
|
+
const ret = wasm.listconversationsoptions_new(ptr0, len0, isLikeNone(conversation_type) ? 4 : conversation_type, !isLikeNone(created_after_ns), isLikeNone(created_after_ns) ? BigInt(0) : created_after_ns, !isLikeNone(created_before_ns), isLikeNone(created_before_ns) ? BigInt(0) : created_before_ns, isLikeNone(include_duplicate_dms) ? 0xFFFFFF : include_duplicate_dms ? 1 : 0, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit, isLikeNone(order_by) ? 2 : order_by);
|
|
4432
4468
|
this.__wbg_ptr = ret >>> 0;
|
|
4433
4469
|
ListConversationsOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
4434
4470
|
return this;
|
|
@@ -4453,6 +4489,29 @@ export class ListMessagesOptions {
|
|
|
4453
4489
|
const ptr = this.__destroy_into_raw();
|
|
4454
4490
|
wasm.__wbg_listmessagesoptions_free(ptr, 0);
|
|
4455
4491
|
}
|
|
4492
|
+
/**
|
|
4493
|
+
* @param {bigint | null} [sent_before_ns]
|
|
4494
|
+
* @param {bigint | null} [sent_after_ns]
|
|
4495
|
+
* @param {bigint | null} [limit]
|
|
4496
|
+
* @param {DeliveryStatus | null} [delivery_status]
|
|
4497
|
+
* @param {SortDirection | null} [direction]
|
|
4498
|
+
* @param {any[] | null} [content_types]
|
|
4499
|
+
* @param {any[] | null} [exclude_content_types]
|
|
4500
|
+
* @param {GroupMessageKind | null} [kind]
|
|
4501
|
+
* @param {string[] | null} [exclude_sender_inbox_ids]
|
|
4502
|
+
*/
|
|
4503
|
+
constructor(sent_before_ns, sent_after_ns, limit, delivery_status, direction, content_types, exclude_content_types, kind, exclude_sender_inbox_ids) {
|
|
4504
|
+
var ptr0 = isLikeNone(content_types) ? 0 : passArrayJsValueToWasm0(content_types, wasm.__wbindgen_malloc);
|
|
4505
|
+
var len0 = WASM_VECTOR_LEN;
|
|
4506
|
+
var ptr1 = isLikeNone(exclude_content_types) ? 0 : passArrayJsValueToWasm0(exclude_content_types, wasm.__wbindgen_malloc);
|
|
4507
|
+
var len1 = WASM_VECTOR_LEN;
|
|
4508
|
+
var ptr2 = isLikeNone(exclude_sender_inbox_ids) ? 0 : passArrayJsValueToWasm0(exclude_sender_inbox_ids, wasm.__wbindgen_malloc);
|
|
4509
|
+
var len2 = WASM_VECTOR_LEN;
|
|
4510
|
+
const ret = wasm.listmessagesoptions_new(!isLikeNone(sent_before_ns), isLikeNone(sent_before_ns) ? BigInt(0) : sent_before_ns, !isLikeNone(sent_after_ns), isLikeNone(sent_after_ns) ? BigInt(0) : sent_after_ns, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit, isLikeNone(delivery_status) ? 3 : delivery_status, isLikeNone(direction) ? 2 : direction, ptr0, len0, ptr1, len1, isLikeNone(kind) ? 2 : kind, ptr2, len2);
|
|
4511
|
+
this.__wbg_ptr = ret >>> 0;
|
|
4512
|
+
ListMessagesOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
4513
|
+
return this;
|
|
4514
|
+
}
|
|
4456
4515
|
/**
|
|
4457
4516
|
* @returns {any[] | undefined}
|
|
4458
4517
|
*/
|
|
@@ -4504,7 +4563,7 @@ export class ListMessagesOptions {
|
|
|
4504
4563
|
* @param {bigint | null} [arg0]
|
|
4505
4564
|
*/
|
|
4506
4565
|
set sentBeforeNs(arg0) {
|
|
4507
|
-
wasm.
|
|
4566
|
+
wasm.__wbg_set_listconversationsoptions_createdAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
4508
4567
|
}
|
|
4509
4568
|
/**
|
|
4510
4569
|
* @returns {bigint | undefined}
|
|
@@ -4517,7 +4576,7 @@ export class ListMessagesOptions {
|
|
|
4517
4576
|
* @param {bigint | null} [arg0]
|
|
4518
4577
|
*/
|
|
4519
4578
|
set sentAfterNs(arg0) {
|
|
4520
|
-
wasm.
|
|
4579
|
+
wasm.__wbg_set_listconversationsoptions_createdBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
4521
4580
|
}
|
|
4522
4581
|
/**
|
|
4523
4582
|
* @returns {bigint | undefined}
|
|
@@ -4530,7 +4589,7 @@ export class ListMessagesOptions {
|
|
|
4530
4589
|
* @param {bigint | null} [arg0]
|
|
4531
4590
|
*/
|
|
4532
4591
|
set limit(arg0) {
|
|
4533
|
-
wasm.
|
|
4592
|
+
wasm.__wbg_set_listconversationsoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
4534
4593
|
}
|
|
4535
4594
|
/**
|
|
4536
4595
|
* @returns {DeliveryStatus | undefined}
|
|
@@ -4591,29 +4650,6 @@ export class ListMessagesOptions {
|
|
|
4591
4650
|
var len0 = WASM_VECTOR_LEN;
|
|
4592
4651
|
wasm.__wbg_set_listmessagesoptions_excludeSenderInboxIds(this.__wbg_ptr, ptr0, len0);
|
|
4593
4652
|
}
|
|
4594
|
-
/**
|
|
4595
|
-
* @param {bigint | null} [sent_before_ns]
|
|
4596
|
-
* @param {bigint | null} [sent_after_ns]
|
|
4597
|
-
* @param {bigint | null} [limit]
|
|
4598
|
-
* @param {DeliveryStatus | null} [delivery_status]
|
|
4599
|
-
* @param {SortDirection | null} [direction]
|
|
4600
|
-
* @param {any[] | null} [content_types]
|
|
4601
|
-
* @param {any[] | null} [exclude_content_types]
|
|
4602
|
-
* @param {GroupMessageKind | null} [kind]
|
|
4603
|
-
* @param {string[] | null} [exclude_sender_inbox_ids]
|
|
4604
|
-
*/
|
|
4605
|
-
constructor(sent_before_ns, sent_after_ns, limit, delivery_status, direction, content_types, exclude_content_types, kind, exclude_sender_inbox_ids) {
|
|
4606
|
-
var ptr0 = isLikeNone(content_types) ? 0 : passArrayJsValueToWasm0(content_types, wasm.__wbindgen_malloc);
|
|
4607
|
-
var len0 = WASM_VECTOR_LEN;
|
|
4608
|
-
var ptr1 = isLikeNone(exclude_content_types) ? 0 : passArrayJsValueToWasm0(exclude_content_types, wasm.__wbindgen_malloc);
|
|
4609
|
-
var len1 = WASM_VECTOR_LEN;
|
|
4610
|
-
var ptr2 = isLikeNone(exclude_sender_inbox_ids) ? 0 : passArrayJsValueToWasm0(exclude_sender_inbox_ids, wasm.__wbindgen_malloc);
|
|
4611
|
-
var len2 = WASM_VECTOR_LEN;
|
|
4612
|
-
const ret = wasm.listmessagesoptions_new(!isLikeNone(sent_before_ns), isLikeNone(sent_before_ns) ? BigInt(0) : sent_before_ns, !isLikeNone(sent_after_ns), isLikeNone(sent_after_ns) ? BigInt(0) : sent_after_ns, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit, isLikeNone(delivery_status) ? 3 : delivery_status, isLikeNone(direction) ? 2 : direction, ptr0, len0, ptr1, len1, isLikeNone(kind) ? 2 : kind, ptr2, len2);
|
|
4613
|
-
this.__wbg_ptr = ret >>> 0;
|
|
4614
|
-
ListMessagesOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
4615
|
-
return this;
|
|
4616
|
-
}
|
|
4617
4653
|
}
|
|
4618
4654
|
if (Symbol.dispose) ListMessagesOptions.prototype[Symbol.dispose] = ListMessagesOptions.prototype.free;
|
|
4619
4655
|
|
|
@@ -4636,6 +4672,17 @@ export class LogOptions {
|
|
|
4636
4672
|
const ptr = this.__destroy_into_raw();
|
|
4637
4673
|
wasm.__wbg_logoptions_free(ptr, 0);
|
|
4638
4674
|
}
|
|
4675
|
+
/**
|
|
4676
|
+
* @param {boolean} structured
|
|
4677
|
+
* @param {boolean} performance
|
|
4678
|
+
* @param {LogLevel | null} [level]
|
|
4679
|
+
*/
|
|
4680
|
+
constructor(structured, performance, level) {
|
|
4681
|
+
const ret = wasm.logoptions_new(structured, performance, isLikeNone(level) ? 7 : ((__wbindgen_enum_LogLevel.indexOf(level) + 1 || 7) - 1));
|
|
4682
|
+
this.__wbg_ptr = ret >>> 0;
|
|
4683
|
+
LogOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
4684
|
+
return this;
|
|
4685
|
+
}
|
|
4639
4686
|
/**
|
|
4640
4687
|
* enable structured JSON logging to stdout.Useful for third-party log viewers
|
|
4641
4688
|
* @returns {boolean}
|
|
@@ -4681,17 +4728,6 @@ export class LogOptions {
|
|
|
4681
4728
|
set level(arg0) {
|
|
4682
4729
|
wasm.__wbg_set_logoptions_level(this.__wbg_ptr, isLikeNone(arg0) ? 7 : ((__wbindgen_enum_LogLevel.indexOf(arg0) + 1 || 7) - 1));
|
|
4683
4730
|
}
|
|
4684
|
-
/**
|
|
4685
|
-
* @param {boolean} structured
|
|
4686
|
-
* @param {boolean} performance
|
|
4687
|
-
* @param {LogLevel | null} [level]
|
|
4688
|
-
*/
|
|
4689
|
-
constructor(structured, performance, level) {
|
|
4690
|
-
const ret = wasm.logoptions_new(structured, performance, isLikeNone(level) ? 7 : ((__wbindgen_enum_LogLevel.indexOf(level) + 1 || 7) - 1));
|
|
4691
|
-
this.__wbg_ptr = ret >>> 0;
|
|
4692
|
-
LogOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
4693
|
-
return this;
|
|
4694
|
-
}
|
|
4695
4731
|
}
|
|
4696
4732
|
if (Symbol.dispose) LogOptions.prototype[Symbol.dispose] = LogOptions.prototype.free;
|
|
4697
4733
|
|
|
@@ -4754,14 +4790,14 @@ export class Message {
|
|
|
4754
4790
|
* @returns {bigint}
|
|
4755
4791
|
*/
|
|
4756
4792
|
get sentAtNs() {
|
|
4757
|
-
const ret = wasm.
|
|
4793
|
+
const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
|
|
4758
4794
|
return ret;
|
|
4759
4795
|
}
|
|
4760
4796
|
/**
|
|
4761
4797
|
* @param {bigint} arg0
|
|
4762
4798
|
*/
|
|
4763
4799
|
set sentAtNs(arg0) {
|
|
4764
|
-
wasm.
|
|
4800
|
+
wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
|
|
4765
4801
|
}
|
|
4766
4802
|
/**
|
|
4767
4803
|
* @returns {string}
|
|
@@ -4918,14 +4954,14 @@ export class MessageDisappearingSettings {
|
|
|
4918
4954
|
* @returns {bigint}
|
|
4919
4955
|
*/
|
|
4920
4956
|
get inNs() {
|
|
4921
|
-
const ret = wasm.
|
|
4957
|
+
const ret = wasm.__wbg_get_messagedisappearingsettings_inNs(this.__wbg_ptr);
|
|
4922
4958
|
return ret;
|
|
4923
4959
|
}
|
|
4924
4960
|
/**
|
|
4925
4961
|
* @param {bigint} arg0
|
|
4926
4962
|
*/
|
|
4927
4963
|
set inNs(arg0) {
|
|
4928
|
-
wasm.
|
|
4964
|
+
wasm.__wbg_set_messagedisappearingsettings_inNs(this.__wbg_ptr, arg0);
|
|
4929
4965
|
}
|
|
4930
4966
|
/**
|
|
4931
4967
|
* @param {bigint} from_ns
|
|
@@ -5053,7 +5089,7 @@ export class MetadataFieldChange {
|
|
|
5053
5089
|
set fieldName(arg0) {
|
|
5054
5090
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5055
5091
|
const len0 = WASM_VECTOR_LEN;
|
|
5056
|
-
wasm.
|
|
5092
|
+
wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
|
|
5057
5093
|
}
|
|
5058
5094
|
/**
|
|
5059
5095
|
* @returns {string | undefined}
|
|
@@ -5174,38 +5210,76 @@ export class Opfs {
|
|
|
5174
5210
|
/**
|
|
5175
5211
|
* @returns {Promise<void>}
|
|
5176
5212
|
*/
|
|
5177
|
-
static
|
|
5178
|
-
const ret = wasm.
|
|
5213
|
+
static wipeFiles() {
|
|
5214
|
+
const ret = wasm.opfs_wipeFiles();
|
|
5179
5215
|
return ret;
|
|
5180
5216
|
}
|
|
5181
5217
|
/**
|
|
5182
|
-
*
|
|
5183
|
-
* @
|
|
5218
|
+
* export db file with 'name'
|
|
5219
|
+
* @param {string} name
|
|
5220
|
+
* @returns {Uint8Array}
|
|
5184
5221
|
*/
|
|
5185
|
-
static
|
|
5186
|
-
const
|
|
5187
|
-
|
|
5222
|
+
static exportFile(name) {
|
|
5223
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5224
|
+
const len0 = WASM_VECTOR_LEN;
|
|
5225
|
+
const ret = wasm.opfs_exportFile(ptr0, len0);
|
|
5226
|
+
if (ret[3]) {
|
|
5227
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
5228
|
+
}
|
|
5229
|
+
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
5230
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
5231
|
+
return v2;
|
|
5188
5232
|
}
|
|
5189
5233
|
/**
|
|
5190
|
-
*
|
|
5191
|
-
* @
|
|
5234
|
+
* Adds n entries to the current pool.
|
|
5235
|
+
* @param {number} n
|
|
5236
|
+
* @returns {Promise<number>}
|
|
5192
5237
|
*/
|
|
5193
|
-
static
|
|
5194
|
-
const ret = wasm.
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5238
|
+
static addCapacity(n) {
|
|
5239
|
+
const ret = wasm.opfs_addCapacity(n);
|
|
5240
|
+
return ret;
|
|
5241
|
+
}
|
|
5242
|
+
/**
|
|
5243
|
+
* @returns {number}
|
|
5244
|
+
*/
|
|
5245
|
+
static getCapacity() {
|
|
5246
|
+
const ret = wasm.opfs_getCapacity();
|
|
5247
|
+
return ret >>> 0;
|
|
5248
|
+
}
|
|
5249
|
+
/**
|
|
5250
|
+
* get number of files in pool
|
|
5251
|
+
* @returns {number}
|
|
5252
|
+
*/
|
|
5253
|
+
static getFileCount() {
|
|
5254
|
+
const ret = wasm.opfs_getFileCount();
|
|
5255
|
+
return ret >>> 0;
|
|
5256
|
+
}
|
|
5257
|
+
/**
|
|
5258
|
+
* Removes up to n entries from the pool, with the caveat that it can only remove currently-unused entries.
|
|
5259
|
+
* @param {number} n
|
|
5260
|
+
* @returns {Promise<number>}
|
|
5261
|
+
*/
|
|
5262
|
+
static reduceCapacity(n) {
|
|
5263
|
+
const ret = wasm.opfs_reduceCapacity(n);
|
|
5264
|
+
return ret;
|
|
5201
5265
|
}
|
|
5202
5266
|
/**
|
|
5203
5267
|
* @returns {Promise<void>}
|
|
5204
5268
|
*/
|
|
5205
|
-
static
|
|
5206
|
-
const ret = wasm.
|
|
5269
|
+
static init_sqlite_opfs() {
|
|
5270
|
+
const ret = wasm.opfs_init_sqlite_opfs();
|
|
5207
5271
|
return ret;
|
|
5208
5272
|
}
|
|
5273
|
+
/**
|
|
5274
|
+
* list files in current pool
|
|
5275
|
+
* @returns {string[]}
|
|
5276
|
+
*/
|
|
5277
|
+
static getFileNames() {
|
|
5278
|
+
const ret = wasm.opfs_getFileNames();
|
|
5279
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
5280
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
5281
|
+
return v1;
|
|
5282
|
+
}
|
|
5209
5283
|
/**
|
|
5210
5284
|
* If a virtual file exists with the given name, disassociates it from the pool and returns true, else returns false without side effects.
|
|
5211
5285
|
* @param {string} name
|
|
@@ -5221,15 +5295,26 @@ export class Opfs {
|
|
|
5221
5295
|
return ret[0] !== 0;
|
|
5222
5296
|
}
|
|
5223
5297
|
/**
|
|
5224
|
-
*
|
|
5225
|
-
* @returns {string
|
|
5298
|
+
* gets the error from Opfs, if any.
|
|
5299
|
+
* @returns {string | undefined}
|
|
5226
5300
|
*/
|
|
5227
|
-
static
|
|
5228
|
-
const ret = wasm.
|
|
5229
|
-
|
|
5230
|
-
|
|
5301
|
+
static error() {
|
|
5302
|
+
const ret = wasm.opfs_error();
|
|
5303
|
+
let v1;
|
|
5304
|
+
if (ret[0] !== 0) {
|
|
5305
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
5306
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
5307
|
+
}
|
|
5231
5308
|
return v1;
|
|
5232
5309
|
}
|
|
5310
|
+
/**
|
|
5311
|
+
* Check if the global OPFS object has been initialized
|
|
5312
|
+
* @returns {boolean}
|
|
5313
|
+
*/
|
|
5314
|
+
static exists() {
|
|
5315
|
+
const ret = wasm.opfs_exists();
|
|
5316
|
+
return ret !== 0;
|
|
5317
|
+
}
|
|
5233
5318
|
/**
|
|
5234
5319
|
* import a db file at 'path'
|
|
5235
5320
|
* @param {string} path
|
|
@@ -5245,55 +5330,6 @@ export class Opfs {
|
|
|
5245
5330
|
throw takeFromExternrefTable0(ret[0]);
|
|
5246
5331
|
}
|
|
5247
5332
|
}
|
|
5248
|
-
/**
|
|
5249
|
-
* export db file with 'name'
|
|
5250
|
-
* @param {string} name
|
|
5251
|
-
* @returns {Uint8Array}
|
|
5252
|
-
*/
|
|
5253
|
-
static exportFile(name) {
|
|
5254
|
-
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5255
|
-
const len0 = WASM_VECTOR_LEN;
|
|
5256
|
-
const ret = wasm.opfs_exportFile(ptr0, len0);
|
|
5257
|
-
if (ret[3]) {
|
|
5258
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
5259
|
-
}
|
|
5260
|
-
var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
5261
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
5262
|
-
return v2;
|
|
5263
|
-
}
|
|
5264
|
-
/**
|
|
5265
|
-
* get number of files in pool
|
|
5266
|
-
* @returns {number}
|
|
5267
|
-
*/
|
|
5268
|
-
static getFileCount() {
|
|
5269
|
-
const ret = wasm.opfs_getFileCount();
|
|
5270
|
-
return ret >>> 0;
|
|
5271
|
-
}
|
|
5272
|
-
/**
|
|
5273
|
-
* @returns {number}
|
|
5274
|
-
*/
|
|
5275
|
-
static getCapacity() {
|
|
5276
|
-
const ret = wasm.opfs_getCapacity();
|
|
5277
|
-
return ret >>> 0;
|
|
5278
|
-
}
|
|
5279
|
-
/**
|
|
5280
|
-
* Adds n entries to the current pool.
|
|
5281
|
-
* @param {number} n
|
|
5282
|
-
* @returns {Promise<number>}
|
|
5283
|
-
*/
|
|
5284
|
-
static addCapacity(n) {
|
|
5285
|
-
const ret = wasm.opfs_addCapacity(n);
|
|
5286
|
-
return ret;
|
|
5287
|
-
}
|
|
5288
|
-
/**
|
|
5289
|
-
* Removes up to n entries from the pool, with the caveat that it can only remove currently-unused entries.
|
|
5290
|
-
* @param {number} n
|
|
5291
|
-
* @returns {Promise<number>}
|
|
5292
|
-
*/
|
|
5293
|
-
static reduceCapacity(n) {
|
|
5294
|
-
const ret = wasm.opfs_reduceCapacity(n);
|
|
5295
|
-
return ret;
|
|
5296
|
-
}
|
|
5297
5333
|
}
|
|
5298
5334
|
if (Symbol.dispose) Opfs.prototype[Symbol.dispose] = Opfs.prototype.free;
|
|
5299
5335
|
|
|
@@ -5342,6 +5378,22 @@ export class PermissionPolicySet {
|
|
|
5342
5378
|
const ptr = this.__destroy_into_raw();
|
|
5343
5379
|
wasm.__wbg_permissionpolicyset_free(ptr, 0);
|
|
5344
5380
|
}
|
|
5381
|
+
/**
|
|
5382
|
+
* @param {PermissionPolicy} add_member_policy
|
|
5383
|
+
* @param {PermissionPolicy} remove_member_policy
|
|
5384
|
+
* @param {PermissionPolicy} add_admin_policy
|
|
5385
|
+
* @param {PermissionPolicy} remove_admin_policy
|
|
5386
|
+
* @param {PermissionPolicy} update_group_name_policy
|
|
5387
|
+
* @param {PermissionPolicy} update_group_description_policy
|
|
5388
|
+
* @param {PermissionPolicy} update_group_image_url_square_policy
|
|
5389
|
+
* @param {PermissionPolicy} update_message_disappearing_policy
|
|
5390
|
+
*/
|
|
5391
|
+
constructor(add_member_policy, remove_member_policy, add_admin_policy, remove_admin_policy, update_group_name_policy, update_group_description_policy, update_group_image_url_square_policy, update_message_disappearing_policy) {
|
|
5392
|
+
const ret = wasm.permissionpolicyset_new(add_member_policy, remove_member_policy, add_admin_policy, remove_admin_policy, update_group_name_policy, update_group_description_policy, update_group_image_url_square_policy, update_message_disappearing_policy);
|
|
5393
|
+
this.__wbg_ptr = ret >>> 0;
|
|
5394
|
+
PermissionPolicySetFinalization.register(this, this.__wbg_ptr, this);
|
|
5395
|
+
return this;
|
|
5396
|
+
}
|
|
5345
5397
|
/**
|
|
5346
5398
|
* @returns {PermissionPolicy}
|
|
5347
5399
|
*/
|
|
@@ -5446,22 +5498,6 @@ export class PermissionPolicySet {
|
|
|
5446
5498
|
set updateMessageDisappearingPolicy(arg0) {
|
|
5447
5499
|
wasm.__wbg_set_permissionpolicyset_updateMessageDisappearingPolicy(this.__wbg_ptr, arg0);
|
|
5448
5500
|
}
|
|
5449
|
-
/**
|
|
5450
|
-
* @param {PermissionPolicy} add_member_policy
|
|
5451
|
-
* @param {PermissionPolicy} remove_member_policy
|
|
5452
|
-
* @param {PermissionPolicy} add_admin_policy
|
|
5453
|
-
* @param {PermissionPolicy} remove_admin_policy
|
|
5454
|
-
* @param {PermissionPolicy} update_group_name_policy
|
|
5455
|
-
* @param {PermissionPolicy} update_group_description_policy
|
|
5456
|
-
* @param {PermissionPolicy} update_group_image_url_square_policy
|
|
5457
|
-
* @param {PermissionPolicy} update_message_disappearing_policy
|
|
5458
|
-
*/
|
|
5459
|
-
constructor(add_member_policy, remove_member_policy, add_admin_policy, remove_admin_policy, update_group_name_policy, update_group_description_policy, update_group_image_url_square_policy, update_message_disappearing_policy) {
|
|
5460
|
-
const ret = wasm.permissionpolicyset_new(add_member_policy, remove_member_policy, add_admin_policy, remove_admin_policy, update_group_name_policy, update_group_description_policy, update_group_image_url_square_policy, update_message_disappearing_policy);
|
|
5461
|
-
this.__wbg_ptr = ret >>> 0;
|
|
5462
|
-
PermissionPolicySetFinalization.register(this, this.__wbg_ptr, this);
|
|
5463
|
-
return this;
|
|
5464
|
-
}
|
|
5465
5501
|
}
|
|
5466
5502
|
if (Symbol.dispose) PermissionPolicySet.prototype[Symbol.dispose] = PermissionPolicySet.prototype.free;
|
|
5467
5503
|
|
|
@@ -5511,7 +5547,7 @@ export class Reaction {
|
|
|
5511
5547
|
set reference(arg0) {
|
|
5512
5548
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5513
5549
|
const len0 = WASM_VECTOR_LEN;
|
|
5514
|
-
wasm.
|
|
5550
|
+
wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
|
|
5515
5551
|
}
|
|
5516
5552
|
/**
|
|
5517
5553
|
* @returns {string}
|
|
@@ -5570,7 +5606,7 @@ export class Reaction {
|
|
|
5570
5606
|
set content(arg0) {
|
|
5571
5607
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5572
5608
|
const len0 = WASM_VECTOR_LEN;
|
|
5573
|
-
wasm.
|
|
5609
|
+
wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
|
|
5574
5610
|
}
|
|
5575
5611
|
/**
|
|
5576
5612
|
* @returns {ReactionSchema}
|
|
@@ -5653,7 +5689,7 @@ export class ReactionPayload {
|
|
|
5653
5689
|
set reference(arg0) {
|
|
5654
5690
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5655
5691
|
const len0 = WASM_VECTOR_LEN;
|
|
5656
|
-
wasm.
|
|
5692
|
+
wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
|
|
5657
5693
|
}
|
|
5658
5694
|
/**
|
|
5659
5695
|
* @returns {string}
|
|
@@ -5712,7 +5748,7 @@ export class ReactionPayload {
|
|
|
5712
5748
|
set content(arg0) {
|
|
5713
5749
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5714
5750
|
const len0 = WASM_VECTOR_LEN;
|
|
5715
|
-
wasm.
|
|
5751
|
+
wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
|
|
5716
5752
|
}
|
|
5717
5753
|
/**
|
|
5718
5754
|
* @returns {ReactionSchemaPayload}
|
|
@@ -5827,7 +5863,7 @@ export class RemoteAttachment {
|
|
|
5827
5863
|
set contentDigest(arg0) {
|
|
5828
5864
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5829
5865
|
const len0 = WASM_VECTOR_LEN;
|
|
5830
|
-
wasm.
|
|
5866
|
+
wasm.__wbg_set_remoteattachment_contentDigest(this.__wbg_ptr, ptr0, len0);
|
|
5831
5867
|
}
|
|
5832
5868
|
/**
|
|
5833
5869
|
* @returns {Uint8Array}
|
|
@@ -6156,6 +6192,15 @@ export class SendMessageOpts {
|
|
|
6156
6192
|
const ptr = this.__destroy_into_raw();
|
|
6157
6193
|
wasm.__wbg_sendmessageopts_free(ptr, 0);
|
|
6158
6194
|
}
|
|
6195
|
+
/**
|
|
6196
|
+
* @param {boolean} should_push
|
|
6197
|
+
*/
|
|
6198
|
+
constructor(should_push) {
|
|
6199
|
+
const ret = wasm.sendmessageopts_new(should_push);
|
|
6200
|
+
this.__wbg_ptr = ret >>> 0;
|
|
6201
|
+
SendMessageOptsFinalization.register(this, this.__wbg_ptr, this);
|
|
6202
|
+
return this;
|
|
6203
|
+
}
|
|
6159
6204
|
/**
|
|
6160
6205
|
* @returns {boolean}
|
|
6161
6206
|
*/
|
|
@@ -6204,6 +6249,17 @@ export class SignatureRequestHandle {
|
|
|
6204
6249
|
const ret = wasm.signaturerequesthandle_signatureText(this.__wbg_ptr);
|
|
6205
6250
|
return ret;
|
|
6206
6251
|
}
|
|
6252
|
+
/**
|
|
6253
|
+
* @param {Identifier} account_identifier
|
|
6254
|
+
* @param {Uint8Array} signature_bytes
|
|
6255
|
+
* @param {bigint} chain_id
|
|
6256
|
+
* @param {bigint | null} [block_number]
|
|
6257
|
+
* @returns {Promise<void>}
|
|
6258
|
+
*/
|
|
6259
|
+
addScwSignature(account_identifier, signature_bytes, chain_id, block_number) {
|
|
6260
|
+
const ret = wasm.signaturerequesthandle_addScwSignature(this.__wbg_ptr, account_identifier, signature_bytes, chain_id, !isLikeNone(block_number), isLikeNone(block_number) ? BigInt(0) : block_number);
|
|
6261
|
+
return ret;
|
|
6262
|
+
}
|
|
6207
6263
|
/**
|
|
6208
6264
|
* @param {Uint8Array} signature_bytes
|
|
6209
6265
|
* @returns {Promise<void>}
|
|
@@ -6222,17 +6278,6 @@ export class SignatureRequestHandle {
|
|
|
6222
6278
|
const ret = wasm.signaturerequesthandle_addPasskeySignature(this.__wbg_ptr, ptr0);
|
|
6223
6279
|
return ret;
|
|
6224
6280
|
}
|
|
6225
|
-
/**
|
|
6226
|
-
* @param {Identifier} account_identifier
|
|
6227
|
-
* @param {Uint8Array} signature_bytes
|
|
6228
|
-
* @param {bigint} chain_id
|
|
6229
|
-
* @param {bigint | null} [block_number]
|
|
6230
|
-
* @returns {Promise<void>}
|
|
6231
|
-
*/
|
|
6232
|
-
addScwSignature(account_identifier, signature_bytes, chain_id, block_number) {
|
|
6233
|
-
const ret = wasm.signaturerequesthandle_addScwSignature(this.__wbg_ptr, account_identifier, signature_bytes, chain_id, !isLikeNone(block_number), isLikeNone(block_number) ? BigInt(0) : block_number);
|
|
6234
|
-
return ret;
|
|
6235
|
-
}
|
|
6236
6281
|
}
|
|
6237
6282
|
if (Symbol.dispose) SignatureRequestHandle.prototype[Symbol.dispose] = SignatureRequestHandle.prototype.free;
|
|
6238
6283
|
|
|
@@ -6261,13 +6306,6 @@ export class StreamCloser {
|
|
|
6261
6306
|
const ptr = this.__destroy_into_raw();
|
|
6262
6307
|
wasm.__wbg_streamcloser_free(ptr, 0);
|
|
6263
6308
|
}
|
|
6264
|
-
/**
|
|
6265
|
-
* Signal the stream to end
|
|
6266
|
-
* Does not wait for the stream to end.
|
|
6267
|
-
*/
|
|
6268
|
-
end() {
|
|
6269
|
-
wasm.streamcloser_end(this.__wbg_ptr);
|
|
6270
|
-
}
|
|
6271
6309
|
/**
|
|
6272
6310
|
* End the stream and `await` for it to shutdown
|
|
6273
6311
|
* Returns the `Result` of the task.
|
|
@@ -6285,6 +6323,13 @@ export class StreamCloser {
|
|
|
6285
6323
|
const ret = wasm.streamcloser_waitForReady(this.__wbg_ptr);
|
|
6286
6324
|
return ret;
|
|
6287
6325
|
}
|
|
6326
|
+
/**
|
|
6327
|
+
* Signal the stream to end
|
|
6328
|
+
* Does not wait for the stream to end.
|
|
6329
|
+
*/
|
|
6330
|
+
end() {
|
|
6331
|
+
wasm.streamcloser_end(this.__wbg_ptr);
|
|
6332
|
+
}
|
|
6288
6333
|
/**
|
|
6289
6334
|
* Checks if this stream is closed
|
|
6290
6335
|
* @returns {boolean}
|
|
@@ -6342,7 +6387,7 @@ export class TextContent {
|
|
|
6342
6387
|
set content(arg0) {
|
|
6343
6388
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6344
6389
|
const len0 = WASM_VECTOR_LEN;
|
|
6345
|
-
wasm.
|
|
6390
|
+
wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
|
|
6346
6391
|
}
|
|
6347
6392
|
}
|
|
6348
6393
|
if (Symbol.dispose) TextContent.prototype[Symbol.dispose] = TextContent.prototype.free;
|
|
@@ -6393,7 +6438,7 @@ export class TransactionMetadata {
|
|
|
6393
6438
|
set transactionType(arg0) {
|
|
6394
6439
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6395
6440
|
const len0 = WASM_VECTOR_LEN;
|
|
6396
|
-
wasm.
|
|
6441
|
+
wasm.__wbg_set_transactionmetadata_transactionType(this.__wbg_ptr, ptr0, len0);
|
|
6397
6442
|
}
|
|
6398
6443
|
/**
|
|
6399
6444
|
* @returns {string}
|
|
@@ -6416,7 +6461,7 @@ export class TransactionMetadata {
|
|
|
6416
6461
|
set currency(arg0) {
|
|
6417
6462
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6418
6463
|
const len0 = WASM_VECTOR_LEN;
|
|
6419
|
-
wasm.
|
|
6464
|
+
wasm.__wbg_set_transactionmetadata_currency(this.__wbg_ptr, ptr0, len0);
|
|
6420
6465
|
}
|
|
6421
6466
|
/**
|
|
6422
6467
|
* @returns {number}
|
|
@@ -6465,7 +6510,7 @@ export class TransactionMetadata {
|
|
|
6465
6510
|
set fromAddress(arg0) {
|
|
6466
6511
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6467
6512
|
const len0 = WASM_VECTOR_LEN;
|
|
6468
|
-
wasm.
|
|
6513
|
+
wasm.__wbg_set_transactionmetadata_fromAddress(this.__wbg_ptr, ptr0, len0);
|
|
6469
6514
|
}
|
|
6470
6515
|
/**
|
|
6471
6516
|
* @returns {string}
|
|
@@ -6488,7 +6533,7 @@ export class TransactionMetadata {
|
|
|
6488
6533
|
set toAddress(arg0) {
|
|
6489
6534
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6490
6535
|
const len0 = WASM_VECTOR_LEN;
|
|
6491
|
-
wasm.
|
|
6536
|
+
wasm.__wbg_set_transactionmetadata_toAddress(this.__wbg_ptr, ptr0, len0);
|
|
6492
6537
|
}
|
|
6493
6538
|
}
|
|
6494
6539
|
if (Symbol.dispose) TransactionMetadata.prototype[Symbol.dispose] = TransactionMetadata.prototype.free;
|
|
@@ -7209,7 +7254,7 @@ function __wbg_get_imports() {
|
|
|
7209
7254
|
const a = state0.a;
|
|
7210
7255
|
state0.a = 0;
|
|
7211
7256
|
try {
|
|
7212
|
-
return
|
|
7257
|
+
return __wbg_adapter_853(a, state0.b, arg0, arg1);
|
|
7213
7258
|
} finally {
|
|
7214
7259
|
state0.a = a;
|
|
7215
7260
|
}
|
|
@@ -7309,22 +7354,27 @@ function __wbg_get_imports() {
|
|
|
7309
7354
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
7310
7355
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
7311
7356
|
};
|
|
7312
|
-
imports.wbg.
|
|
7357
|
+
imports.wbg.__wbg_onclose_e4baafe5dd74556b = function(arg0) {
|
|
7313
7358
|
arg0.on_close();
|
|
7314
7359
|
};
|
|
7315
|
-
imports.wbg.
|
|
7360
|
+
imports.wbg.__wbg_onconsentupdate_6480fb059f072302 = function(arg0, arg1) {
|
|
7316
7361
|
arg0.on_consent_update(arg1);
|
|
7317
7362
|
};
|
|
7318
|
-
imports.wbg.
|
|
7363
|
+
imports.wbg.__wbg_onconversation_efd10238a178b711 = function(arg0, arg1) {
|
|
7319
7364
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
7320
7365
|
};
|
|
7321
|
-
imports.wbg.
|
|
7366
|
+
imports.wbg.__wbg_onerror_919e0fa4fc6e4cf8 = function(arg0, arg1) {
|
|
7322
7367
|
arg0.on_error(arg1);
|
|
7323
7368
|
};
|
|
7324
|
-
imports.wbg.
|
|
7369
|
+
imports.wbg.__wbg_onmessage_91717cb5613ba665 = function(arg0, arg1) {
|
|
7325
7370
|
arg0.on_message(Message.__wrap(arg1));
|
|
7326
7371
|
};
|
|
7327
|
-
imports.wbg.
|
|
7372
|
+
imports.wbg.__wbg_onmessagedeleted_269e68679562b28b = function(arg0, arg1, arg2) {
|
|
7373
|
+
var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
|
|
7374
|
+
wasm.__wbindgen_free(arg1, arg2 * 1, 1);
|
|
7375
|
+
arg0.on_message_deleted(v0);
|
|
7376
|
+
};
|
|
7377
|
+
imports.wbg.__wbg_onuserpreferenceupdate_cc001c33e2b7d915 = function(arg0, arg1, arg2) {
|
|
7328
7378
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
7329
7379
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
7330
7380
|
arg0.on_user_preference_update(v0);
|
|
@@ -7691,24 +7741,9 @@ function __wbg_get_imports() {
|
|
|
7691
7741
|
const ret = XmtpCursor.__unwrap(arg0);
|
|
7692
7742
|
return ret;
|
|
7693
7743
|
};
|
|
7694
|
-
imports.wbg.
|
|
7695
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
7696
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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);
|
|
7744
|
+
imports.wbg.__wbindgen_cast_0b68e183a430aa7a = function(arg0, arg1) {
|
|
7745
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 6858, function: Function { arguments: [], shim_idx: 6859, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
7746
|
+
const ret = makeMutClosure(arg0, arg1, 6858, __wbg_adapter_28);
|
|
7712
7747
|
return ret;
|
|
7713
7748
|
};
|
|
7714
7749
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
@@ -7716,6 +7751,11 @@ function __wbg_get_imports() {
|
|
|
7716
7751
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
7717
7752
|
return ret;
|
|
7718
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
|
+
};
|
|
7719
7759
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
7720
7760
|
// Cast intrinsic for `U64 -> Externref`.
|
|
7721
7761
|
const ret = BigInt.asUintN(64, arg0);
|
|
@@ -7747,6 +7787,16 @@ function __wbg_get_imports() {
|
|
|
7747
7787
|
const ret = arg0;
|
|
7748
7788
|
return ret;
|
|
7749
7789
|
};
|
|
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
|
+
};
|
|
7750
7800
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
7751
7801
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
7752
7802
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|