@xmtp/wasm-bindings 0.0.9 → 0.0.10
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
CHANGED
|
@@ -89,7 +89,8 @@ export class Client {
|
|
|
89
89
|
createInboxSignatureText(): Promise<string | undefined>;
|
|
90
90
|
addWalletSignatureText(new_wallet_address: string): Promise<string>;
|
|
91
91
|
revokeWalletSignatureText(wallet_address: string): Promise<string>;
|
|
92
|
-
|
|
92
|
+
revokeAllOtherInstallationsSignatureText(): Promise<string>;
|
|
93
|
+
revokeInstallationsSignatureText(installation_ids: (Uint8Array)[]): Promise<string>;
|
|
93
94
|
addSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
|
|
94
95
|
addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint): Promise<void>;
|
|
95
96
|
applySignatureRequests(): Promise<void>;
|
|
@@ -434,20 +435,21 @@ export interface InitOutput {
|
|
|
434
435
|
readonly client_createInboxSignatureText: (a: number) => any;
|
|
435
436
|
readonly client_addWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
436
437
|
readonly client_revokeWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
437
|
-
readonly
|
|
438
|
+
readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
439
|
+
readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
438
440
|
readonly client_addSignature: (a: number, b: number, c: any) => any;
|
|
439
441
|
readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
440
442
|
readonly client_applySignatureRequests: (a: number) => any;
|
|
441
443
|
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
442
444
|
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
445
|
+
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
446
|
+
readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
443
447
|
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
444
448
|
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
445
449
|
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
446
450
|
readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
447
451
|
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
448
452
|
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
449
|
-
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
450
|
-
readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
451
453
|
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
452
454
|
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
453
455
|
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
@@ -581,8 +583,8 @@ export interface InitOutput {
|
|
|
581
583
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
582
584
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
583
585
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
584
|
-
readonly
|
|
585
|
-
readonly
|
|
586
|
+
readonly closure2588_externref_shim: (a: number, b: number, c: any) => void;
|
|
587
|
+
readonly closure3682_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
586
588
|
readonly __wbindgen_start: () => void;
|
|
587
589
|
}
|
|
588
590
|
|
package/dist/bindings_wasm.js
CHANGED
|
@@ -316,11 +316,11 @@ export function createClient(host, inbox_id, account_address, db_path, encryptio
|
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
319
|
-
wasm.
|
|
319
|
+
wasm.closure2588_externref_shim(arg0, arg1, arg2);
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
function
|
|
323
|
-
wasm.
|
|
322
|
+
function __wbg_adapter_576(arg0, arg1, arg2, arg3) {
|
|
323
|
+
wasm.closure3682_externref_shim(arg0, arg1, arg2, arg3);
|
|
324
324
|
}
|
|
325
325
|
|
|
326
326
|
/**
|
|
@@ -517,8 +517,18 @@ export class Client {
|
|
|
517
517
|
/**
|
|
518
518
|
* @returns {Promise<string>}
|
|
519
519
|
*/
|
|
520
|
-
|
|
521
|
-
const ret = wasm.
|
|
520
|
+
revokeAllOtherInstallationsSignatureText() {
|
|
521
|
+
const ret = wasm.client_revokeAllOtherInstallationsSignatureText(this.__wbg_ptr);
|
|
522
|
+
return ret;
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* @param {(Uint8Array)[]} installation_ids
|
|
526
|
+
* @returns {Promise<string>}
|
|
527
|
+
*/
|
|
528
|
+
revokeInstallationsSignatureText(installation_ids) {
|
|
529
|
+
const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
|
|
530
|
+
const len0 = WASM_VECTOR_LEN;
|
|
531
|
+
const ret = wasm.client_revokeInstallationsSignatureText(this.__wbg_ptr, ptr0, len0);
|
|
522
532
|
return ret;
|
|
523
533
|
}
|
|
524
534
|
/**
|
|
@@ -3481,7 +3491,7 @@ function __wbg_get_imports() {
|
|
|
3481
3491
|
const a = state0.a;
|
|
3482
3492
|
state0.a = 0;
|
|
3483
3493
|
try {
|
|
3484
|
-
return
|
|
3494
|
+
return __wbg_adapter_576(a, state0.b, arg0, arg1);
|
|
3485
3495
|
} finally {
|
|
3486
3496
|
state0.a = a;
|
|
3487
3497
|
}
|
|
@@ -3805,8 +3815,8 @@ function __wbg_get_imports() {
|
|
|
3805
3815
|
const ret = false;
|
|
3806
3816
|
return ret;
|
|
3807
3817
|
};
|
|
3808
|
-
imports.wbg.
|
|
3809
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3818
|
+
imports.wbg.__wbindgen_closure_wrapper11191 = function(arg0, arg1, arg2) {
|
|
3819
|
+
const ret = makeMutClosure(arg0, arg1, 2589, __wbg_adapter_50);
|
|
3810
3820
|
return ret;
|
|
3811
3821
|
};
|
|
3812
3822
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -98,20 +98,21 @@ export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) =
|
|
|
98
98
|
export const client_createInboxSignatureText: (a: number) => any;
|
|
99
99
|
export const client_addWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
100
100
|
export const client_revokeWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
101
|
-
export const
|
|
101
|
+
export const client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
102
|
+
export const client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
102
103
|
export const client_addSignature: (a: number, b: number, c: any) => any;
|
|
103
104
|
export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
104
105
|
export const client_applySignatureRequests: (a: number) => any;
|
|
105
106
|
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
106
107
|
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
108
|
+
export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
109
|
+
export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
107
110
|
export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
108
111
|
export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
109
112
|
export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
110
113
|
export const __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
111
114
|
export const __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
112
115
|
export const __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
113
|
-
export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
114
|
-
export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
115
116
|
export const __wbg_client_free: (a: number, b: number) => void;
|
|
116
117
|
export const __wbg_logoptions_free: (a: number, b: number) => void;
|
|
117
118
|
export const __wbg_get_logoptions_structured: (a: number) => number;
|
|
@@ -245,6 +246,6 @@ export const __wbindgen_export_5: WebAssembly.Table;
|
|
|
245
246
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
246
247
|
export const __externref_table_dealloc: (a: number) => void;
|
|
247
248
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
248
|
-
export const
|
|
249
|
-
export const
|
|
249
|
+
export const closure2588_externref_shim: (a: number, b: number, c: any) => void;
|
|
250
|
+
export const closure3682_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
250
251
|
export const __wbindgen_start: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmtp/wasm-bindings",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "WASM bindings for the libXMTP rust library",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@sqlite.org/sqlite-wasm": "^3.47.0-build1",
|
|
59
|
-
"binaryen": "^
|
|
59
|
+
"binaryen": "^121.0.0",
|
|
60
60
|
"wasm-pack": "^0.13.1"
|
|
61
61
|
},
|
|
62
62
|
"packageManager": "yarn@4.5.1"
|