@xmtp/wasm-bindings 1.5.0-rc3 → 1.5.3
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 +18 -18
- package/dist/bindings_wasm.js +42 -42
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +16 -16
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, device_sync_server_url?: string | null, device_sync_worker_mode?: DeviceSyncWorkerMode | null, log_options?: LogOptions | null, allow_offline?: boolean | null, disable_events?: boolean | null, app_version?: string | null): Promise<Client>;
|
|
4
4
|
export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
|
|
5
5
|
export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
|
|
6
|
+
export function encodeReaction(reaction: Reaction): Uint8Array;
|
|
7
|
+
export function decodeReaction(bytes: Uint8Array): Reaction;
|
|
6
8
|
export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
|
|
7
9
|
export function generateInboxId(accountIdentifier: Identifier): string;
|
|
8
10
|
export function inboxStateFromInboxIds(host: string, inbox_ids: string[]): Promise<InboxState[]>;
|
|
9
11
|
export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
|
|
10
12
|
export function revokeInstallationsSignatureRequest(host: string, recovery_identifier: Identifier, inbox_id: string, installation_ids: Uint8Array[]): Promise<SignatureRequestHandle>;
|
|
11
13
|
export function applySignatureRequest(host: string, signature_request: SignatureRequestHandle): Promise<void>;
|
|
12
|
-
export function encodeReaction(reaction: Reaction): Uint8Array;
|
|
13
|
-
export function decodeReaction(bytes: Uint8Array): Reaction;
|
|
14
14
|
/**
|
|
15
15
|
* Entry point invoked by JavaScript in a worker.
|
|
16
16
|
*/
|
|
@@ -684,6 +684,18 @@ export interface InitOutput {
|
|
|
684
684
|
readonly multiremoteattachment_new: (a: number, b: number) => number;
|
|
685
685
|
readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
686
686
|
readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
687
|
+
readonly __wbg_reaction_free: (a: number, b: number) => void;
|
|
688
|
+
readonly __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
689
|
+
readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
690
|
+
readonly __wbg_get_reaction_action: (a: number) => number;
|
|
691
|
+
readonly __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
692
|
+
readonly __wbg_get_reaction_content: (a: number) => [number, number];
|
|
693
|
+
readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
694
|
+
readonly __wbg_get_reaction_schema: (a: number) => number;
|
|
695
|
+
readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
696
|
+
readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
697
|
+
readonly encodeReaction: (a: number) => [number, number, number];
|
|
698
|
+
readonly decodeReaction: (a: any) => [number, number, number];
|
|
687
699
|
readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
688
700
|
readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
689
701
|
readonly groupmetadata_conversationType: (a: number) => [number, number];
|
|
@@ -928,9 +940,11 @@ export interface InitOutput {
|
|
|
928
940
|
readonly streamcloser_waitForReady: (a: number) => any;
|
|
929
941
|
readonly streamcloser_isClosed: (a: number) => number;
|
|
930
942
|
readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
943
|
+
readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
931
944
|
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
932
945
|
readonly __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
|
|
933
946
|
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
947
|
+
readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
934
948
|
readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
935
949
|
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
936
950
|
readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
@@ -985,20 +999,6 @@ export interface InitOutput {
|
|
|
985
999
|
readonly __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
|
|
986
1000
|
readonly __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
|
|
987
1001
|
readonly __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
|
|
988
|
-
readonly __wbg_reaction_free: (a: number, b: number) => void;
|
|
989
|
-
readonly __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
990
|
-
readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
991
|
-
readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
992
|
-
readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
993
|
-
readonly __wbg_get_reaction_action: (a: number) => number;
|
|
994
|
-
readonly __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
995
|
-
readonly __wbg_get_reaction_content: (a: number) => [number, number];
|
|
996
|
-
readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
997
|
-
readonly __wbg_get_reaction_schema: (a: number) => number;
|
|
998
|
-
readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
999
|
-
readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
1000
|
-
readonly encodeReaction: (a: number) => [number, number, number];
|
|
1001
|
-
readonly decodeReaction: (a: any) => [number, number, number];
|
|
1002
1002
|
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
1003
1003
|
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
1004
1004
|
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
@@ -1064,8 +1064,8 @@ export interface InitOutput {
|
|
|
1064
1064
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
1065
1065
|
readonly wasm_bindgen__convert__closures_____invoke__h231d11d7d151a506: (a: number, b: number) => void;
|
|
1066
1066
|
readonly wasm_bindgen__convert__closures_____invoke__hfa5440517c90e88d: (a: number, b: number) => void;
|
|
1067
|
-
readonly
|
|
1068
|
-
readonly
|
|
1067
|
+
readonly closure5292_externref_shim: (a: number, b: number, c: any) => void;
|
|
1068
|
+
readonly closure6234_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
1069
1069
|
readonly __wbindgen_start: () => void;
|
|
1070
1070
|
}
|
|
1071
1071
|
|
package/dist/bindings_wasm.js
CHANGED
|
@@ -308,6 +308,32 @@ export function decodeMultiRemoteAttachment(bytes) {
|
|
|
308
308
|
return MultiRemoteAttachment.__wrap(ret[0]);
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
+
/**
|
|
312
|
+
* @param {Reaction} reaction
|
|
313
|
+
* @returns {Uint8Array}
|
|
314
|
+
*/
|
|
315
|
+
export function encodeReaction(reaction) {
|
|
316
|
+
_assertClass(reaction, Reaction);
|
|
317
|
+
var ptr0 = reaction.__destroy_into_raw();
|
|
318
|
+
const ret = wasm.encodeReaction(ptr0);
|
|
319
|
+
if (ret[2]) {
|
|
320
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
321
|
+
}
|
|
322
|
+
return takeFromExternrefTable0(ret[0]);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* @param {Uint8Array} bytes
|
|
327
|
+
* @returns {Reaction}
|
|
328
|
+
*/
|
|
329
|
+
export function decodeReaction(bytes) {
|
|
330
|
+
const ret = wasm.decodeReaction(bytes);
|
|
331
|
+
if (ret[2]) {
|
|
332
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
333
|
+
}
|
|
334
|
+
return Reaction.__wrap(ret[0]);
|
|
335
|
+
}
|
|
336
|
+
|
|
311
337
|
function passArray8ToWasm0(arg, malloc) {
|
|
312
338
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
313
339
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -408,32 +434,6 @@ export function applySignatureRequest(host, signature_request) {
|
|
|
408
434
|
return ret;
|
|
409
435
|
}
|
|
410
436
|
|
|
411
|
-
/**
|
|
412
|
-
* @param {Reaction} reaction
|
|
413
|
-
* @returns {Uint8Array}
|
|
414
|
-
*/
|
|
415
|
-
export function encodeReaction(reaction) {
|
|
416
|
-
_assertClass(reaction, Reaction);
|
|
417
|
-
var ptr0 = reaction.__destroy_into_raw();
|
|
418
|
-
const ret = wasm.encodeReaction(ptr0);
|
|
419
|
-
if (ret[2]) {
|
|
420
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
421
|
-
}
|
|
422
|
-
return takeFromExternrefTable0(ret[0]);
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
/**
|
|
426
|
-
* @param {Uint8Array} bytes
|
|
427
|
-
* @returns {Reaction}
|
|
428
|
-
*/
|
|
429
|
-
export function decodeReaction(bytes) {
|
|
430
|
-
const ret = wasm.decodeReaction(bytes);
|
|
431
|
-
if (ret[2]) {
|
|
432
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
433
|
-
}
|
|
434
|
-
return Reaction.__wrap(ret[0]);
|
|
435
|
-
}
|
|
436
|
-
|
|
437
437
|
/**
|
|
438
438
|
* Entry point invoked by JavaScript in a worker.
|
|
439
439
|
* @param {number} ptr
|
|
@@ -454,11 +454,11 @@ function __wbg_adapter_51(arg0, arg1) {
|
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
function __wbg_adapter_54(arg0, arg1, arg2) {
|
|
457
|
-
wasm.
|
|
457
|
+
wasm.closure5292_externref_shim(arg0, arg1, arg2);
|
|
458
458
|
}
|
|
459
459
|
|
|
460
460
|
function __wbg_adapter_791(arg0, arg1, arg2, arg3) {
|
|
461
|
-
wasm.
|
|
461
|
+
wasm.closure6234_externref_shim(arg0, arg1, arg2, arg3);
|
|
462
462
|
}
|
|
463
463
|
|
|
464
464
|
/**
|
|
@@ -4497,7 +4497,7 @@ export class Reaction {
|
|
|
4497
4497
|
set reference(arg0) {
|
|
4498
4498
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4499
4499
|
const len0 = WASM_VECTOR_LEN;
|
|
4500
|
-
wasm.
|
|
4500
|
+
wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
|
|
4501
4501
|
}
|
|
4502
4502
|
/**
|
|
4503
4503
|
* @returns {string}
|
|
@@ -4520,7 +4520,7 @@ export class Reaction {
|
|
|
4520
4520
|
set referenceInboxId(arg0) {
|
|
4521
4521
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4522
4522
|
const len0 = WASM_VECTOR_LEN;
|
|
4523
|
-
wasm.
|
|
4523
|
+
wasm.__wbg_set_contenttypeid_typeId(this.__wbg_ptr, ptr0, len0);
|
|
4524
4524
|
}
|
|
4525
4525
|
/**
|
|
4526
4526
|
* @returns {ReactionAction}
|
|
@@ -5534,22 +5534,22 @@ function __wbg_get_imports() {
|
|
|
5534
5534
|
const ret = Date.now();
|
|
5535
5535
|
return ret;
|
|
5536
5536
|
};
|
|
5537
|
-
imports.wbg.
|
|
5537
|
+
imports.wbg.__wbg_onclose_5148605679d7d56d = function(arg0) {
|
|
5538
5538
|
arg0.on_close();
|
|
5539
5539
|
};
|
|
5540
|
-
imports.wbg.
|
|
5540
|
+
imports.wbg.__wbg_onconsentupdate_53ef931c63f724e3 = function(arg0, arg1) {
|
|
5541
5541
|
arg0.on_consent_update(arg1);
|
|
5542
5542
|
};
|
|
5543
|
-
imports.wbg.
|
|
5543
|
+
imports.wbg.__wbg_onconversation_60237fa8b846b405 = function(arg0, arg1) {
|
|
5544
5544
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
5545
5545
|
};
|
|
5546
|
-
imports.wbg.
|
|
5546
|
+
imports.wbg.__wbg_onerror_80a7ffeb2aa40b13 = function(arg0, arg1) {
|
|
5547
5547
|
arg0.on_error(arg1);
|
|
5548
5548
|
};
|
|
5549
|
-
imports.wbg.
|
|
5549
|
+
imports.wbg.__wbg_onmessage_c6cbd159f0adb569 = function(arg0, arg1) {
|
|
5550
5550
|
arg0.on_message(Message.__wrap(arg1));
|
|
5551
5551
|
};
|
|
5552
|
-
imports.wbg.
|
|
5552
|
+
imports.wbg.__wbg_onuserpreferenceupdate_bec179e521a8db80 = function(arg0, arg1, arg2) {
|
|
5553
5553
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
5554
5554
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
5555
5555
|
arg0.on_user_preference_update(v0);
|
|
@@ -5838,16 +5838,16 @@ function __wbg_get_imports() {
|
|
|
5838
5838
|
const ret = false;
|
|
5839
5839
|
return ret;
|
|
5840
5840
|
};
|
|
5841
|
-
imports.wbg.
|
|
5842
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5841
|
+
imports.wbg.__wbindgen_closure_wrapper20677 = function(arg0, arg1, arg2) {
|
|
5842
|
+
const ret = makeMutClosure(arg0, arg1, 5011, __wbg_adapter_48);
|
|
5843
5843
|
return ret;
|
|
5844
5844
|
};
|
|
5845
|
-
imports.wbg.
|
|
5846
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5845
|
+
imports.wbg.__wbindgen_closure_wrapper22847 = function(arg0, arg1, arg2) {
|
|
5846
|
+
const ret = makeMutClosure(arg0, arg1, 5278, __wbg_adapter_51);
|
|
5847
5847
|
return ret;
|
|
5848
5848
|
};
|
|
5849
|
-
imports.wbg.
|
|
5850
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5849
|
+
imports.wbg.__wbindgen_closure_wrapper23476 = function(arg0, arg1, arg2) {
|
|
5850
|
+
const ret = makeMutClosure(arg0, arg1, 5291, __wbg_adapter_54);
|
|
5851
5851
|
return ret;
|
|
5852
5852
|
};
|
|
5853
5853
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -62,6 +62,18 @@ export const __wbg_set_multiremoteattachment_attachments: (a: number, b: number,
|
|
|
62
62
|
export const multiremoteattachment_new: (a: number, b: number) => number;
|
|
63
63
|
export const encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
64
64
|
export const decodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
65
|
+
export const __wbg_reaction_free: (a: number, b: number) => void;
|
|
66
|
+
export const __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
67
|
+
export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
68
|
+
export const __wbg_get_reaction_action: (a: number) => number;
|
|
69
|
+
export const __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
70
|
+
export const __wbg_get_reaction_content: (a: number) => [number, number];
|
|
71
|
+
export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
72
|
+
export const __wbg_get_reaction_schema: (a: number) => number;
|
|
73
|
+
export const __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
74
|
+
export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
75
|
+
export const encodeReaction: (a: number) => [number, number, number];
|
|
76
|
+
export const decodeReaction: (a: any) => [number, number, number];
|
|
65
77
|
export const __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
66
78
|
export const groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
67
79
|
export const groupmetadata_conversationType: (a: number) => [number, number];
|
|
@@ -306,9 +318,11 @@ export const streamcloser_endAndWait: (a: number) => any;
|
|
|
306
318
|
export const streamcloser_waitForReady: (a: number) => any;
|
|
307
319
|
export const streamcloser_isClosed: (a: number) => number;
|
|
308
320
|
export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
321
|
+
export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
309
322
|
export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
310
323
|
export const __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
|
|
311
324
|
export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
325
|
+
export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
312
326
|
export const __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
313
327
|
export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
314
328
|
export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
@@ -363,20 +377,6 @@ export const __wbg_get_identitystats_publish_identity_update: (a: number) => big
|
|
|
363
377
|
export const __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
|
|
364
378
|
export const __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
|
|
365
379
|
export const __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
|
|
366
|
-
export const __wbg_reaction_free: (a: number, b: number) => void;
|
|
367
|
-
export const __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
368
|
-
export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
369
|
-
export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
370
|
-
export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
371
|
-
export const __wbg_get_reaction_action: (a: number) => number;
|
|
372
|
-
export const __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
373
|
-
export const __wbg_get_reaction_content: (a: number) => [number, number];
|
|
374
|
-
export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
375
|
-
export const __wbg_get_reaction_schema: (a: number) => number;
|
|
376
|
-
export const __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
377
|
-
export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
378
|
-
export const encodeReaction: (a: number) => [number, number, number];
|
|
379
|
-
export const decodeReaction: (a: any) => [number, number, number];
|
|
380
380
|
export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
381
381
|
export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
382
382
|
export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
@@ -442,6 +442,6 @@ export const __wbindgen_export_7: WebAssembly.Table;
|
|
|
442
442
|
export const __externref_table_dealloc: (a: number) => void;
|
|
443
443
|
export const wasm_bindgen__convert__closures_____invoke__h231d11d7d151a506: (a: number, b: number) => void;
|
|
444
444
|
export const wasm_bindgen__convert__closures_____invoke__hfa5440517c90e88d: (a: number, b: number) => void;
|
|
445
|
-
export const
|
|
446
|
-
export const
|
|
445
|
+
export const closure5292_externref_shim: (a: number, b: number, c: any) => void;
|
|
446
|
+
export const closure6234_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
447
447
|
export const __wbindgen_start: () => void;
|
package/dist/version.json
CHANGED