@xmtp/wasm-bindings 0.0.6 → 0.0.7
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 +64 -65
- package/dist/bindings_wasm.js +131 -133
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +34 -34
- package/package.json +1 -1
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* @param {string} host
|
|
5
5
|
* @param {string} inbox_id
|
|
6
6
|
* @param {string} account_address
|
|
7
|
-
* @param {string} db_path
|
|
7
|
+
* @param {string | undefined} [db_path]
|
|
8
8
|
* @param {Uint8Array | undefined} [encryption_key]
|
|
9
9
|
* @param {string | undefined} [history_sync_url]
|
|
10
10
|
* @param {LogOptions | undefined} [log_options]
|
|
11
11
|
* @returns {Promise<Client>}
|
|
12
12
|
*/
|
|
13
|
-
export function createClient(host: string, inbox_id: string, account_address: string, db_path
|
|
13
|
+
export function createClient(host: string, inbox_id: string, account_address: string, db_path?: string, encryption_key?: Uint8Array, history_sync_url?: string, log_options?: LogOptions): Promise<Client>;
|
|
14
14
|
/**
|
|
15
15
|
* @param {string} host
|
|
16
16
|
* @param {string} account_address
|
|
@@ -22,6 +22,12 @@ export function getInboxIdForAddress(host: string, account_address: string): Pro
|
|
|
22
22
|
* @returns {string}
|
|
23
23
|
*/
|
|
24
24
|
export function generateInboxId(account_address: string): string;
|
|
25
|
+
/**
|
|
26
|
+
* @param {string} signature_text
|
|
27
|
+
* @param {Uint8Array} signature_bytes
|
|
28
|
+
* @param {Uint8Array} public_key
|
|
29
|
+
*/
|
|
30
|
+
export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
|
|
25
31
|
export enum ConsentEntityType {
|
|
26
32
|
GroupId = 0,
|
|
27
33
|
InboxId = 1,
|
|
@@ -114,43 +120,15 @@ export class Client {
|
|
|
114
120
|
* @returns {Conversations}
|
|
115
121
|
*/
|
|
116
122
|
conversations(): Conversations;
|
|
117
|
-
/**
|
|
118
|
-
* @param {string} signature_text
|
|
119
|
-
* @returns {Uint8Array}
|
|
120
|
-
*/
|
|
121
|
-
signWithInstallationKey(signature_text: string): Uint8Array;
|
|
122
|
-
/**
|
|
123
|
-
* @param {string} signature_text
|
|
124
|
-
* @param {Uint8Array} signature_bytes
|
|
125
|
-
*/
|
|
126
|
-
verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
|
|
127
|
-
/**
|
|
128
|
-
* @param {string} signature_text
|
|
129
|
-
* @param {Uint8Array} signature_bytes
|
|
130
|
-
* @param {Uint8Array} public_key
|
|
131
|
-
*/
|
|
132
|
-
verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
|
|
133
|
-
/**
|
|
134
|
-
* @param {(Consent)[]} records
|
|
135
|
-
* @returns {Promise<void>}
|
|
136
|
-
*/
|
|
137
|
-
setConsentStates(records: (Consent)[]): Promise<void>;
|
|
138
|
-
/**
|
|
139
|
-
* @param {ConsentEntityType} entity_type
|
|
140
|
-
* @param {string} entity
|
|
141
|
-
* @returns {Promise<ConsentState>}
|
|
142
|
-
*/
|
|
143
|
-
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
144
123
|
/**
|
|
145
124
|
* @returns {Promise<string | undefined>}
|
|
146
125
|
*/
|
|
147
126
|
createInboxSignatureText(): Promise<string | undefined>;
|
|
148
127
|
/**
|
|
149
|
-
* @param {string} existing_wallet_address
|
|
150
128
|
* @param {string} new_wallet_address
|
|
151
129
|
* @returns {Promise<string>}
|
|
152
130
|
*/
|
|
153
|
-
addWalletSignatureText(
|
|
131
|
+
addWalletSignatureText(new_wallet_address: string): Promise<string>;
|
|
154
132
|
/**
|
|
155
133
|
* @param {string} wallet_address
|
|
156
134
|
* @returns {Promise<string>}
|
|
@@ -178,6 +156,27 @@ export class Client {
|
|
|
178
156
|
* @returns {Promise<void>}
|
|
179
157
|
*/
|
|
180
158
|
applySignatureRequests(): Promise<void>;
|
|
159
|
+
/**
|
|
160
|
+
* @param {string} signature_text
|
|
161
|
+
* @returns {Uint8Array}
|
|
162
|
+
*/
|
|
163
|
+
signWithInstallationKey(signature_text: string): Uint8Array;
|
|
164
|
+
/**
|
|
165
|
+
* @param {string} signature_text
|
|
166
|
+
* @param {Uint8Array} signature_bytes
|
|
167
|
+
*/
|
|
168
|
+
verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
|
|
169
|
+
/**
|
|
170
|
+
* @param {(Consent)[]} records
|
|
171
|
+
* @returns {Promise<void>}
|
|
172
|
+
*/
|
|
173
|
+
setConsentStates(records: (Consent)[]): Promise<void>;
|
|
174
|
+
/**
|
|
175
|
+
* @param {ConsentEntityType} entity_type
|
|
176
|
+
* @param {string} entity
|
|
177
|
+
* @returns {Promise<ConsentState>}
|
|
178
|
+
*/
|
|
179
|
+
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
181
180
|
/**
|
|
182
181
|
*
|
|
183
182
|
* * Get the client's inbox state.
|
|
@@ -681,6 +680,27 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
681
680
|
|
|
682
681
|
export interface InitOutput {
|
|
683
682
|
readonly memory: WebAssembly.Memory;
|
|
683
|
+
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
684
|
+
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
685
|
+
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
686
|
+
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
687
|
+
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
688
|
+
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
689
|
+
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
690
|
+
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
691
|
+
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
692
|
+
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
693
|
+
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
694
|
+
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
695
|
+
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
696
|
+
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
697
|
+
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
698
|
+
readonly __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number) => number;
|
|
699
|
+
readonly __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number, b: number) => void;
|
|
700
|
+
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
701
|
+
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
702
|
+
readonly grouppermissions_policyType: (a: number) => Array;
|
|
703
|
+
readonly grouppermissions_policySet: (a: number) => Array;
|
|
684
704
|
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
685
705
|
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
686
706
|
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
@@ -702,30 +722,18 @@ export interface InitOutput {
|
|
|
702
722
|
readonly client_sendConsentSyncRequest: (a: number) => number;
|
|
703
723
|
readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => number;
|
|
704
724
|
readonly client_conversations: (a: number) => number;
|
|
725
|
+
readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => number;
|
|
726
|
+
readonly generateInboxId: (a: number, b: number) => Array;
|
|
727
|
+
readonly verifySignedWithPublicKey: (a: number, b: number, c: number, d: number) => Array;
|
|
728
|
+
readonly client_createInboxSignatureText: (a: number) => number;
|
|
729
|
+
readonly client_addWalletSignatureText: (a: number, b: number, c: number) => number;
|
|
730
|
+
readonly client_revokeWalletSignatureText: (a: number, b: number, c: number) => number;
|
|
731
|
+
readonly client_revokeInstallationsSignatureText: (a: number) => number;
|
|
732
|
+
readonly client_addSignature: (a: number, b: number, c: number) => number;
|
|
733
|
+
readonly client_addScwSignature: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
734
|
+
readonly client_applySignatureRequests: (a: number) => number;
|
|
705
735
|
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => Array;
|
|
706
736
|
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: number) => Array;
|
|
707
|
-
readonly client_verifySignedWithPublicKey: (a: number, b: number, c: number, d: number, e: number) => Array;
|
|
708
|
-
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
709
|
-
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
710
|
-
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
711
|
-
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
712
|
-
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
713
|
-
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
714
|
-
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
715
|
-
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
716
|
-
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
717
|
-
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
718
|
-
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
719
|
-
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
720
|
-
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
721
|
-
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
722
|
-
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
723
|
-
readonly __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number) => number;
|
|
724
|
-
readonly __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number, b: number) => void;
|
|
725
|
-
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
726
|
-
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
727
|
-
readonly grouppermissions_policyType: (a: number) => Array;
|
|
728
|
-
readonly grouppermissions_policySet: (a: number) => Array;
|
|
729
737
|
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
730
738
|
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
731
739
|
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
@@ -815,13 +823,6 @@ export interface InitOutput {
|
|
|
815
823
|
readonly __wbg_get_message_deliveryStatus: (a: number) => number;
|
|
816
824
|
readonly __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
|
|
817
825
|
readonly message_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
818
|
-
readonly client_createInboxSignatureText: (a: number) => number;
|
|
819
|
-
readonly client_addWalletSignatureText: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
820
|
-
readonly client_revokeWalletSignatureText: (a: number, b: number, c: number) => number;
|
|
821
|
-
readonly client_revokeInstallationsSignatureText: (a: number) => number;
|
|
822
|
-
readonly client_addSignature: (a: number, b: number, c: number) => number;
|
|
823
|
-
readonly client_addScwSignature: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
824
|
-
readonly client_applySignatureRequests: (a: number) => number;
|
|
825
826
|
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
826
827
|
readonly __wbg_get_contenttypeid_authorityId: (a: number) => Array;
|
|
827
828
|
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => Array;
|
|
@@ -830,8 +831,6 @@ export interface InitOutput {
|
|
|
830
831
|
readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: number) => void;
|
|
831
832
|
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: number) => void;
|
|
832
833
|
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: number) => void;
|
|
833
|
-
readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => number;
|
|
834
|
-
readonly generateInboxId: (a: number, b: number) => Array;
|
|
835
834
|
readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
836
835
|
readonly groupmetadata_creatorInboxId: (a: number) => Array;
|
|
837
836
|
readonly groupmetadata_conversationType: (a: number) => Array;
|
|
@@ -918,13 +917,13 @@ export interface InitOutput {
|
|
|
918
917
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
919
918
|
readonly __wbindgen_export_3: WebAssembly.Table;
|
|
920
919
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha602f13c6f6f57bd: (a: number, b: number) => void;
|
|
921
|
-
readonly
|
|
920
|
+
readonly closure2327_externref_shim: (a: number, b: number, c: number) => void;
|
|
921
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
922
922
|
readonly __externref_table_alloc: () => number;
|
|
923
923
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
924
|
-
readonly __externref_table_dealloc: (a: number) => void;
|
|
925
924
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
926
925
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
927
|
-
readonly
|
|
926
|
+
readonly closure3395_externref_shim: (a: number, b: number, c: number, d: number) => void;
|
|
928
927
|
readonly __wbindgen_start: () => void;
|
|
929
928
|
}
|
|
930
929
|
|
package/dist/bindings_wasm.js
CHANGED
|
@@ -20,6 +20,19 @@ function getStringFromWasm0(ptr, len) {
|
|
|
20
20
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
function isLikeNone(x) {
|
|
24
|
+
return x === undefined || x === null;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
let cachedDataViewMemory0 = null;
|
|
28
|
+
|
|
29
|
+
function getDataViewMemory0() {
|
|
30
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
31
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
32
|
+
}
|
|
33
|
+
return cachedDataViewMemory0;
|
|
34
|
+
}
|
|
35
|
+
|
|
23
36
|
let WASM_VECTOR_LEN = 0;
|
|
24
37
|
|
|
25
38
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
@@ -76,19 +89,6 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
76
89
|
return ptr;
|
|
77
90
|
}
|
|
78
91
|
|
|
79
|
-
function isLikeNone(x) {
|
|
80
|
-
return x === undefined || x === null;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
let cachedDataViewMemory0 = null;
|
|
84
|
-
|
|
85
|
-
function getDataViewMemory0() {
|
|
86
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
87
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
88
|
-
}
|
|
89
|
-
return cachedDataViewMemory0;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
92
|
function debugString(val) {
|
|
93
93
|
// primitive types
|
|
94
94
|
const type = typeof val;
|
|
@@ -189,7 +189,13 @@ function __wbg_adapter_46(arg0, arg1) {
|
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
function __wbg_adapter_49(arg0, arg1, arg2) {
|
|
192
|
-
wasm.
|
|
192
|
+
wasm.closure2327_externref_shim(arg0, arg1, arg2);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
function takeFromExternrefTable0(idx) {
|
|
196
|
+
const value = wasm.__wbindgen_export_2.get(idx);
|
|
197
|
+
wasm.__externref_table_dealloc(idx);
|
|
198
|
+
return value;
|
|
193
199
|
}
|
|
194
200
|
|
|
195
201
|
function addToExternrefTable0(obj) {
|
|
@@ -208,7 +214,7 @@ function _assertClass(instance, klass) {
|
|
|
208
214
|
* @param {string} host
|
|
209
215
|
* @param {string} inbox_id
|
|
210
216
|
* @param {string} account_address
|
|
211
|
-
* @param {string} db_path
|
|
217
|
+
* @param {string | undefined} [db_path]
|
|
212
218
|
* @param {Uint8Array | undefined} [encryption_key]
|
|
213
219
|
* @param {string | undefined} [history_sync_url]
|
|
214
220
|
* @param {LogOptions | undefined} [log_options]
|
|
@@ -221,8 +227,8 @@ export function createClient(host, inbox_id, account_address, db_path, encryptio
|
|
|
221
227
|
const len1 = WASM_VECTOR_LEN;
|
|
222
228
|
const ptr2 = passStringToWasm0(account_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
223
229
|
const len2 = WASM_VECTOR_LEN;
|
|
224
|
-
|
|
225
|
-
|
|
230
|
+
var ptr3 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
231
|
+
var len3 = WASM_VECTOR_LEN;
|
|
226
232
|
var ptr4 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
227
233
|
var len4 = WASM_VECTOR_LEN;
|
|
228
234
|
let ptr5 = 0;
|
|
@@ -243,23 +249,6 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
|
243
249
|
WASM_VECTOR_LEN = array.length;
|
|
244
250
|
return ptr;
|
|
245
251
|
}
|
|
246
|
-
|
|
247
|
-
function takeFromExternrefTable0(idx) {
|
|
248
|
-
const value = wasm.__wbindgen_export_2.get(idx);
|
|
249
|
-
wasm.__externref_table_dealloc(idx);
|
|
250
|
-
return value;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
function getArrayJsValueFromWasm0(ptr, len) {
|
|
254
|
-
ptr = ptr >>> 0;
|
|
255
|
-
const mem = getDataViewMemory0();
|
|
256
|
-
const result = [];
|
|
257
|
-
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
258
|
-
result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
|
|
259
|
-
}
|
|
260
|
-
wasm.__externref_drop_slice(ptr, len);
|
|
261
|
-
return result;
|
|
262
|
-
}
|
|
263
252
|
/**
|
|
264
253
|
* @param {string} host
|
|
265
254
|
* @param {string} account_address
|
|
@@ -299,6 +288,31 @@ export function generateInboxId(account_address) {
|
|
|
299
288
|
}
|
|
300
289
|
}
|
|
301
290
|
|
|
291
|
+
/**
|
|
292
|
+
* @param {string} signature_text
|
|
293
|
+
* @param {Uint8Array} signature_bytes
|
|
294
|
+
* @param {Uint8Array} public_key
|
|
295
|
+
*/
|
|
296
|
+
export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
|
|
297
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
298
|
+
const len0 = WASM_VECTOR_LEN;
|
|
299
|
+
const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
|
|
300
|
+
if (ret[1]) {
|
|
301
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
306
|
+
ptr = ptr >>> 0;
|
|
307
|
+
const mem = getDataViewMemory0();
|
|
308
|
+
const result = [];
|
|
309
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
310
|
+
result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
|
|
311
|
+
}
|
|
312
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
313
|
+
return result;
|
|
314
|
+
}
|
|
315
|
+
|
|
302
316
|
function handleError(f, args) {
|
|
303
317
|
try {
|
|
304
318
|
return f.apply(this, args);
|
|
@@ -310,7 +324,7 @@ function handleError(f, args) {
|
|
|
310
324
|
|
|
311
325
|
function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }
|
|
312
326
|
function __wbg_adapter_567(arg0, arg1, arg2, arg3) {
|
|
313
|
-
wasm.
|
|
327
|
+
wasm.closure3395_externref_shim(arg0, arg1, arg2, arg3);
|
|
314
328
|
}
|
|
315
329
|
|
|
316
330
|
export const ConsentEntityType = Object.freeze({ GroupId:0,"0":"GroupId",InboxId:1,"1":"InboxId",Address:2,"2":"Address", });
|
|
@@ -481,65 +495,6 @@ export class Client {
|
|
|
481
495
|
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
482
496
|
return Conversations.__wrap(ret);
|
|
483
497
|
}
|
|
484
|
-
/**
|
|
485
|
-
* @param {string} signature_text
|
|
486
|
-
* @returns {Uint8Array}
|
|
487
|
-
*/
|
|
488
|
-
signWithInstallationKey(signature_text) {
|
|
489
|
-
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
490
|
-
const len0 = WASM_VECTOR_LEN;
|
|
491
|
-
const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
|
|
492
|
-
if (ret[2]) {
|
|
493
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
494
|
-
}
|
|
495
|
-
return takeFromExternrefTable0(ret[0]);
|
|
496
|
-
}
|
|
497
|
-
/**
|
|
498
|
-
* @param {string} signature_text
|
|
499
|
-
* @param {Uint8Array} signature_bytes
|
|
500
|
-
*/
|
|
501
|
-
verifySignedWithInstallationKey(signature_text, signature_bytes) {
|
|
502
|
-
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
503
|
-
const len0 = WASM_VECTOR_LEN;
|
|
504
|
-
const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
|
|
505
|
-
if (ret[1]) {
|
|
506
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
/**
|
|
510
|
-
* @param {string} signature_text
|
|
511
|
-
* @param {Uint8Array} signature_bytes
|
|
512
|
-
* @param {Uint8Array} public_key
|
|
513
|
-
*/
|
|
514
|
-
verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
|
|
515
|
-
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
516
|
-
const len0 = WASM_VECTOR_LEN;
|
|
517
|
-
const ret = wasm.client_verifySignedWithPublicKey(this.__wbg_ptr, ptr0, len0, signature_bytes, public_key);
|
|
518
|
-
if (ret[1]) {
|
|
519
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
/**
|
|
523
|
-
* @param {(Consent)[]} records
|
|
524
|
-
* @returns {Promise<void>}
|
|
525
|
-
*/
|
|
526
|
-
setConsentStates(records) {
|
|
527
|
-
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
528
|
-
const len0 = WASM_VECTOR_LEN;
|
|
529
|
-
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
530
|
-
return ret;
|
|
531
|
-
}
|
|
532
|
-
/**
|
|
533
|
-
* @param {ConsentEntityType} entity_type
|
|
534
|
-
* @param {string} entity
|
|
535
|
-
* @returns {Promise<ConsentState>}
|
|
536
|
-
*/
|
|
537
|
-
getConsentState(entity_type, entity) {
|
|
538
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
539
|
-
const len0 = WASM_VECTOR_LEN;
|
|
540
|
-
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
541
|
-
return ret;
|
|
542
|
-
}
|
|
543
498
|
/**
|
|
544
499
|
* @returns {Promise<string | undefined>}
|
|
545
500
|
*/
|
|
@@ -548,16 +503,13 @@ export class Client {
|
|
|
548
503
|
return ret;
|
|
549
504
|
}
|
|
550
505
|
/**
|
|
551
|
-
* @param {string} existing_wallet_address
|
|
552
506
|
* @param {string} new_wallet_address
|
|
553
507
|
* @returns {Promise<string>}
|
|
554
508
|
*/
|
|
555
|
-
addWalletSignatureText(
|
|
556
|
-
const ptr0 = passStringToWasm0(
|
|
509
|
+
addWalletSignatureText(new_wallet_address) {
|
|
510
|
+
const ptr0 = passStringToWasm0(new_wallet_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
557
511
|
const len0 = WASM_VECTOR_LEN;
|
|
558
|
-
const
|
|
559
|
-
const len1 = WASM_VECTOR_LEN;
|
|
560
|
-
const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
512
|
+
const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, ptr0, len0);
|
|
561
513
|
return ret;
|
|
562
514
|
}
|
|
563
515
|
/**
|
|
@@ -604,6 +556,52 @@ export class Client {
|
|
|
604
556
|
const ret = wasm.client_applySignatureRequests(this.__wbg_ptr);
|
|
605
557
|
return ret;
|
|
606
558
|
}
|
|
559
|
+
/**
|
|
560
|
+
* @param {string} signature_text
|
|
561
|
+
* @returns {Uint8Array}
|
|
562
|
+
*/
|
|
563
|
+
signWithInstallationKey(signature_text) {
|
|
564
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
565
|
+
const len0 = WASM_VECTOR_LEN;
|
|
566
|
+
const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
|
|
567
|
+
if (ret[2]) {
|
|
568
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
569
|
+
}
|
|
570
|
+
return takeFromExternrefTable0(ret[0]);
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* @param {string} signature_text
|
|
574
|
+
* @param {Uint8Array} signature_bytes
|
|
575
|
+
*/
|
|
576
|
+
verifySignedWithInstallationKey(signature_text, signature_bytes) {
|
|
577
|
+
const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
578
|
+
const len0 = WASM_VECTOR_LEN;
|
|
579
|
+
const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
|
|
580
|
+
if (ret[1]) {
|
|
581
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* @param {(Consent)[]} records
|
|
586
|
+
* @returns {Promise<void>}
|
|
587
|
+
*/
|
|
588
|
+
setConsentStates(records) {
|
|
589
|
+
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
590
|
+
const len0 = WASM_VECTOR_LEN;
|
|
591
|
+
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
592
|
+
return ret;
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* @param {ConsentEntityType} entity_type
|
|
596
|
+
* @param {string} entity
|
|
597
|
+
* @returns {Promise<ConsentState>}
|
|
598
|
+
*/
|
|
599
|
+
getConsentState(entity_type, entity) {
|
|
600
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
601
|
+
const len0 = WASM_VECTOR_LEN;
|
|
602
|
+
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
603
|
+
return ret;
|
|
604
|
+
}
|
|
607
605
|
/**
|
|
608
606
|
*
|
|
609
607
|
* * Get the client's inbox state.
|
|
@@ -2949,35 +2947,6 @@ function __wbg_get_imports() {
|
|
|
2949
2947
|
const ret = InboxState.__wrap(arg0);
|
|
2950
2948
|
return ret;
|
|
2951
2949
|
};
|
|
2952
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2953
|
-
const ret = arg0 === undefined;
|
|
2954
|
-
return ret;
|
|
2955
|
-
};
|
|
2956
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
2957
|
-
const ret = arg0 in arg1;
|
|
2958
|
-
return ret;
|
|
2959
|
-
};
|
|
2960
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2961
|
-
const obj = arg1;
|
|
2962
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2963
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2964
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2965
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2966
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2967
|
-
};
|
|
2968
|
-
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2969
|
-
const val = arg0;
|
|
2970
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
2971
|
-
return ret;
|
|
2972
|
-
};
|
|
2973
|
-
imports.wbg.__wbindgen_as_number = function(arg0) {
|
|
2974
|
-
const ret = +arg0;
|
|
2975
|
-
return ret;
|
|
2976
|
-
};
|
|
2977
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2978
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
2979
|
-
return ret;
|
|
2980
|
-
};
|
|
2981
2950
|
imports.wbg.__wbindgen_try_into_number = function(arg0) {
|
|
2982
2951
|
let result;
|
|
2983
2952
|
try { result = +arg0 } catch (e) { result = e }
|
|
@@ -2990,6 +2959,35 @@ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
|
2990
2959
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
2991
2960
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2992
2961
|
};
|
|
2962
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2963
|
+
const ret = arg0 === undefined;
|
|
2964
|
+
return ret;
|
|
2965
|
+
};
|
|
2966
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
2967
|
+
const ret = arg0 in arg1;
|
|
2968
|
+
return ret;
|
|
2969
|
+
};
|
|
2970
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2971
|
+
const obj = arg1;
|
|
2972
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2973
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2974
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2975
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2976
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2977
|
+
};
|
|
2978
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2979
|
+
const val = arg0;
|
|
2980
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
2981
|
+
return ret;
|
|
2982
|
+
};
|
|
2983
|
+
imports.wbg.__wbindgen_as_number = function(arg0) {
|
|
2984
|
+
const ret = +arg0;
|
|
2985
|
+
return ret;
|
|
2986
|
+
};
|
|
2987
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2988
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2989
|
+
return ret;
|
|
2990
|
+
};
|
|
2993
2991
|
imports.wbg.__wbg_consent_unwrap = function(arg0) {
|
|
2994
2992
|
const ret = Consent.__unwrap(arg0);
|
|
2995
2993
|
return ret;
|
|
@@ -3740,12 +3738,12 @@ imports.wbg.__wbindgen_memory = function() {
|
|
|
3740
3738
|
const ret = wasm.memory;
|
|
3741
3739
|
return ret;
|
|
3742
3740
|
};
|
|
3743
|
-
imports.wbg.
|
|
3744
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3741
|
+
imports.wbg.__wbindgen_closure_wrapper7541 = function(arg0, arg1, arg2) {
|
|
3742
|
+
const ret = makeMutClosure(arg0, arg1, 1813, __wbg_adapter_46);
|
|
3745
3743
|
return ret;
|
|
3746
3744
|
};
|
|
3747
|
-
imports.wbg.
|
|
3748
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3745
|
+
imports.wbg.__wbindgen_closure_wrapper10067 = function(arg0, arg1, arg2) {
|
|
3746
|
+
const ret = makeMutClosure(arg0, arg1, 2328, __wbg_adapter_49);
|
|
3749
3747
|
return ret;
|
|
3750
3748
|
};
|
|
3751
3749
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
Binary file
|
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export function __wbg_permissionpolicyset_free(a: number, b: number): void;
|
|
5
|
+
export function __wbg_get_permissionpolicyset_addMemberPolicy(a: number): number;
|
|
6
|
+
export function __wbg_set_permissionpolicyset_addMemberPolicy(a: number, b: number): void;
|
|
7
|
+
export function __wbg_get_permissionpolicyset_removeMemberPolicy(a: number): number;
|
|
8
|
+
export function __wbg_set_permissionpolicyset_removeMemberPolicy(a: number, b: number): void;
|
|
9
|
+
export function __wbg_get_permissionpolicyset_addAdminPolicy(a: number): number;
|
|
10
|
+
export function __wbg_set_permissionpolicyset_addAdminPolicy(a: number, b: number): void;
|
|
11
|
+
export function __wbg_get_permissionpolicyset_removeAdminPolicy(a: number): number;
|
|
12
|
+
export function __wbg_set_permissionpolicyset_removeAdminPolicy(a: number, b: number): void;
|
|
13
|
+
export function __wbg_get_permissionpolicyset_updateGroupNamePolicy(a: number): number;
|
|
14
|
+
export function __wbg_set_permissionpolicyset_updateGroupNamePolicy(a: number, b: number): void;
|
|
15
|
+
export function __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy(a: number): number;
|
|
16
|
+
export function __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy(a: number, b: number): void;
|
|
17
|
+
export function __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy(a: number): number;
|
|
18
|
+
export function __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy(a: number, b: number): void;
|
|
19
|
+
export function __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy(a: number): number;
|
|
20
|
+
export function __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy(a: number, b: number): void;
|
|
21
|
+
export function permissionpolicyset_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
|
|
22
|
+
export function __wbg_grouppermissions_free(a: number, b: number): void;
|
|
23
|
+
export function grouppermissions_policyType(a: number): Array;
|
|
24
|
+
export function grouppermissions_policySet(a: number): Array;
|
|
4
25
|
export function __wbg_client_free(a: number, b: number): void;
|
|
5
26
|
export function __wbg_logoptions_free(a: number, b: number): void;
|
|
6
27
|
export function __wbg_get_logoptions_structured(a: number): number;
|
|
@@ -22,30 +43,18 @@ export function client_sendHistorySyncRequest(a: number): number;
|
|
|
22
43
|
export function client_sendConsentSyncRequest(a: number): number;
|
|
23
44
|
export function client_findInboxIdByAddress(a: number, b: number, c: number): number;
|
|
24
45
|
export function client_conversations(a: number): number;
|
|
46
|
+
export function getInboxIdForAddress(a: number, b: number, c: number, d: number): number;
|
|
47
|
+
export function generateInboxId(a: number, b: number): Array;
|
|
48
|
+
export function verifySignedWithPublicKey(a: number, b: number, c: number, d: number): Array;
|
|
49
|
+
export function client_createInboxSignatureText(a: number): number;
|
|
50
|
+
export function client_addWalletSignatureText(a: number, b: number, c: number): number;
|
|
51
|
+
export function client_revokeWalletSignatureText(a: number, b: number, c: number): number;
|
|
52
|
+
export function client_revokeInstallationsSignatureText(a: number): number;
|
|
53
|
+
export function client_addSignature(a: number, b: number, c: number): number;
|
|
54
|
+
export function client_addScwSignature(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
55
|
+
export function client_applySignatureRequests(a: number): number;
|
|
25
56
|
export function client_signWithInstallationKey(a: number, b: number, c: number): Array;
|
|
26
57
|
export function client_verifySignedWithInstallationKey(a: number, b: number, c: number, d: number): Array;
|
|
27
|
-
export function client_verifySignedWithPublicKey(a: number, b: number, c: number, d: number, e: number): Array;
|
|
28
|
-
export function __wbg_permissionpolicyset_free(a: number, b: number): void;
|
|
29
|
-
export function __wbg_get_permissionpolicyset_addMemberPolicy(a: number): number;
|
|
30
|
-
export function __wbg_set_permissionpolicyset_addMemberPolicy(a: number, b: number): void;
|
|
31
|
-
export function __wbg_get_permissionpolicyset_removeMemberPolicy(a: number): number;
|
|
32
|
-
export function __wbg_set_permissionpolicyset_removeMemberPolicy(a: number, b: number): void;
|
|
33
|
-
export function __wbg_get_permissionpolicyset_addAdminPolicy(a: number): number;
|
|
34
|
-
export function __wbg_set_permissionpolicyset_addAdminPolicy(a: number, b: number): void;
|
|
35
|
-
export function __wbg_get_permissionpolicyset_removeAdminPolicy(a: number): number;
|
|
36
|
-
export function __wbg_set_permissionpolicyset_removeAdminPolicy(a: number, b: number): void;
|
|
37
|
-
export function __wbg_get_permissionpolicyset_updateGroupNamePolicy(a: number): number;
|
|
38
|
-
export function __wbg_set_permissionpolicyset_updateGroupNamePolicy(a: number, b: number): void;
|
|
39
|
-
export function __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy(a: number): number;
|
|
40
|
-
export function __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy(a: number, b: number): void;
|
|
41
|
-
export function __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy(a: number): number;
|
|
42
|
-
export function __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy(a: number, b: number): void;
|
|
43
|
-
export function __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy(a: number): number;
|
|
44
|
-
export function __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy(a: number, b: number): void;
|
|
45
|
-
export function permissionpolicyset_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
|
|
46
|
-
export function __wbg_grouppermissions_free(a: number, b: number): void;
|
|
47
|
-
export function grouppermissions_policyType(a: number): Array;
|
|
48
|
-
export function grouppermissions_policySet(a: number): Array;
|
|
49
58
|
export function __wbg_consent_free(a: number, b: number): void;
|
|
50
59
|
export function __wbg_get_consent_entityType(a: number): number;
|
|
51
60
|
export function __wbg_set_consent_entityType(a: number, b: number): void;
|
|
@@ -135,13 +144,6 @@ export function __wbg_set_message_kind(a: number, b: number): void;
|
|
|
135
144
|
export function __wbg_get_message_deliveryStatus(a: number): number;
|
|
136
145
|
export function __wbg_set_message_deliveryStatus(a: number, b: number): void;
|
|
137
146
|
export function message_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number): number;
|
|
138
|
-
export function client_createInboxSignatureText(a: number): number;
|
|
139
|
-
export function client_addWalletSignatureText(a: number, b: number, c: number, d: number, e: number): number;
|
|
140
|
-
export function client_revokeWalletSignatureText(a: number, b: number, c: number): number;
|
|
141
|
-
export function client_revokeInstallationsSignatureText(a: number): number;
|
|
142
|
-
export function client_addSignature(a: number, b: number, c: number): number;
|
|
143
|
-
export function client_addScwSignature(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
144
|
-
export function client_applySignatureRequests(a: number): number;
|
|
145
147
|
export function __wbg_set_contenttypeid_authorityId(a: number, b: number, c: number): void;
|
|
146
148
|
export function __wbg_get_contenttypeid_authorityId(a: number): Array;
|
|
147
149
|
export function __wbg_get_listmessagesoptions_sentBeforeNs(a: number): Array;
|
|
@@ -150,8 +152,6 @@ export function __wbg_get_listmessagesoptions_limit(a: number): Array;
|
|
|
150
152
|
export function __wbg_set_listmessagesoptions_sentBeforeNs(a: number, b: number, c: number): void;
|
|
151
153
|
export function __wbg_set_listmessagesoptions_sentAfterNs(a: number, b: number, c: number): void;
|
|
152
154
|
export function __wbg_set_listmessagesoptions_limit(a: number, b: number, c: number): void;
|
|
153
|
-
export function getInboxIdForAddress(a: number, b: number, c: number, d: number): number;
|
|
154
|
-
export function generateInboxId(a: number, b: number): Array;
|
|
155
155
|
export function __wbg_groupmetadata_free(a: number, b: number): void;
|
|
156
156
|
export function groupmetadata_creatorInboxId(a: number): Array;
|
|
157
157
|
export function groupmetadata_conversationType(a: number): Array;
|
|
@@ -238,11 +238,11 @@ export function __wbindgen_realloc(a: number, b: number, c: number, d: number):
|
|
|
238
238
|
export const __wbindgen_export_2: WebAssembly.Table;
|
|
239
239
|
export const __wbindgen_export_3: WebAssembly.Table;
|
|
240
240
|
export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha602f13c6f6f57bd(a: number, b: number): void;
|
|
241
|
-
export function
|
|
241
|
+
export function closure2327_externref_shim(a: number, b: number, c: number): void;
|
|
242
|
+
export function __externref_table_dealloc(a: number): void;
|
|
242
243
|
export function __externref_table_alloc(): number;
|
|
243
244
|
export function __wbindgen_free(a: number, b: number, c: number): void;
|
|
244
|
-
export function __externref_table_dealloc(a: number): void;
|
|
245
245
|
export function __externref_drop_slice(a: number, b: number): void;
|
|
246
246
|
export function __wbindgen_exn_store(a: number): void;
|
|
247
|
-
export function
|
|
247
|
+
export function closure3395_externref_shim(a: number, b: number, c: number, d: number): void;
|
|
248
248
|
export function __wbindgen_start(): void;
|