@xmtp/wasm-bindings 0.0.4 → 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 +68 -48
- package/dist/bindings_wasm.js +171 -128
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +37 -33
- 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,27 +120,15 @@ export class Client {
|
|
|
114
120
|
* @returns {Conversations}
|
|
115
121
|
*/
|
|
116
122
|
conversations(): Conversations;
|
|
117
|
-
/**
|
|
118
|
-
* @param {(Consent)[]} records
|
|
119
|
-
* @returns {Promise<void>}
|
|
120
|
-
*/
|
|
121
|
-
setConsentStates(records: (Consent)[]): Promise<void>;
|
|
122
|
-
/**
|
|
123
|
-
* @param {ConsentEntityType} entity_type
|
|
124
|
-
* @param {string} entity
|
|
125
|
-
* @returns {Promise<ConsentState>}
|
|
126
|
-
*/
|
|
127
|
-
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
128
123
|
/**
|
|
129
124
|
* @returns {Promise<string | undefined>}
|
|
130
125
|
*/
|
|
131
126
|
createInboxSignatureText(): Promise<string | undefined>;
|
|
132
127
|
/**
|
|
133
|
-
* @param {string} existing_wallet_address
|
|
134
128
|
* @param {string} new_wallet_address
|
|
135
129
|
* @returns {Promise<string>}
|
|
136
130
|
*/
|
|
137
|
-
addWalletSignatureText(
|
|
131
|
+
addWalletSignatureText(new_wallet_address: string): Promise<string>;
|
|
138
132
|
/**
|
|
139
133
|
* @param {string} wallet_address
|
|
140
134
|
* @returns {Promise<string>}
|
|
@@ -162,6 +156,27 @@ export class Client {
|
|
|
162
156
|
* @returns {Promise<void>}
|
|
163
157
|
*/
|
|
164
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>;
|
|
165
180
|
/**
|
|
166
181
|
*
|
|
167
182
|
* * Get the client's inbox state.
|
|
@@ -181,6 +196,7 @@ export class Client {
|
|
|
181
196
|
readonly accountAddress: string;
|
|
182
197
|
readonly inboxId: string;
|
|
183
198
|
readonly installationId: string;
|
|
199
|
+
readonly installationIdBytes: Uint8Array;
|
|
184
200
|
readonly isRegistered: boolean;
|
|
185
201
|
}
|
|
186
202
|
export class Consent {
|
|
@@ -664,6 +680,27 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
664
680
|
|
|
665
681
|
export interface InitOutput {
|
|
666
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;
|
|
667
704
|
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
668
705
|
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
669
706
|
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
@@ -678,12 +715,25 @@ export interface InitOutput {
|
|
|
678
715
|
readonly client_inboxId: (a: number) => Array;
|
|
679
716
|
readonly client_isRegistered: (a: number) => number;
|
|
680
717
|
readonly client_installationId: (a: number) => Array;
|
|
718
|
+
readonly client_installationIdBytes: (a: number) => number;
|
|
681
719
|
readonly client_canMessage: (a: number, b: number, c: number) => number;
|
|
682
720
|
readonly client_registerIdentity: (a: number) => number;
|
|
683
721
|
readonly client_sendHistorySyncRequest: (a: number) => number;
|
|
684
722
|
readonly client_sendConsentSyncRequest: (a: number) => number;
|
|
685
723
|
readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => number;
|
|
686
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;
|
|
735
|
+
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => Array;
|
|
736
|
+
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: number) => Array;
|
|
687
737
|
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
688
738
|
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
689
739
|
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
@@ -773,13 +823,6 @@ export interface InitOutput {
|
|
|
773
823
|
readonly __wbg_get_message_deliveryStatus: (a: number) => number;
|
|
774
824
|
readonly __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
|
|
775
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;
|
|
776
|
-
readonly client_createInboxSignatureText: (a: number) => number;
|
|
777
|
-
readonly client_addWalletSignatureText: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
778
|
-
readonly client_revokeWalletSignatureText: (a: number, b: number, c: number) => number;
|
|
779
|
-
readonly client_revokeInstallationsSignatureText: (a: number) => number;
|
|
780
|
-
readonly client_addSignature: (a: number, b: number, c: number) => number;
|
|
781
|
-
readonly client_addScwSignature: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
782
|
-
readonly client_applySignatureRequests: (a: number) => number;
|
|
783
826
|
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
784
827
|
readonly __wbg_get_contenttypeid_authorityId: (a: number) => Array;
|
|
785
828
|
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => Array;
|
|
@@ -855,29 +898,6 @@ export interface InitOutput {
|
|
|
855
898
|
readonly client_getLatestInboxState: (a: number, b: number, c: number) => number;
|
|
856
899
|
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
857
900
|
readonly __wbg_get_inboxstate_inboxId: (a: number) => Array;
|
|
858
|
-
readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => number;
|
|
859
|
-
readonly generateInboxId: (a: number, b: number) => Array;
|
|
860
|
-
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
861
|
-
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
862
|
-
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
863
|
-
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
864
|
-
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
865
|
-
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
866
|
-
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
867
|
-
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
868
|
-
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
869
|
-
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
870
|
-
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
871
|
-
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
872
|
-
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
873
|
-
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
874
|
-
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
875
|
-
readonly __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number) => number;
|
|
876
|
-
readonly __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number, b: number) => void;
|
|
877
|
-
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
878
|
-
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
879
|
-
readonly grouppermissions_policyType: (a: number) => Array;
|
|
880
|
-
readonly grouppermissions_policySet: (a: number) => Array;
|
|
881
901
|
readonly __wbg_version_free: (a: number, b: number) => void;
|
|
882
902
|
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
883
903
|
readonly intounderlyingsource_pull: (a: number, b: number) => number;
|
|
@@ -897,13 +917,13 @@ export interface InitOutput {
|
|
|
897
917
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
898
918
|
readonly __wbindgen_export_3: WebAssembly.Table;
|
|
899
919
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha602f13c6f6f57bd: (a: number, b: number) => void;
|
|
900
|
-
readonly
|
|
920
|
+
readonly closure2327_externref_shim: (a: number, b: number, c: number) => void;
|
|
921
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
901
922
|
readonly __externref_table_alloc: () => number;
|
|
902
923
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
903
|
-
readonly __externref_table_dealloc: (a: number) => void;
|
|
904
924
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
905
925
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
906
|
-
readonly
|
|
926
|
+
readonly closure3395_externref_shim: (a: number, b: number, c: number, d: number) => void;
|
|
907
927
|
readonly __wbindgen_start: () => void;
|
|
908
928
|
}
|
|
909
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);
|
|
@@ -309,8 +323,8 @@ function handleError(f, args) {
|
|
|
309
323
|
}
|
|
310
324
|
|
|
311
325
|
function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }
|
|
312
|
-
function
|
|
313
|
-
wasm.
|
|
326
|
+
function __wbg_adapter_567(arg0, arg1, arg2, arg3) {
|
|
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", });
|
|
@@ -426,6 +440,13 @@ export class Client {
|
|
|
426
440
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
427
441
|
}
|
|
428
442
|
}
|
|
443
|
+
/**
|
|
444
|
+
* @returns {Uint8Array}
|
|
445
|
+
*/
|
|
446
|
+
get installationIdBytes() {
|
|
447
|
+
const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
|
|
448
|
+
return ret;
|
|
449
|
+
}
|
|
429
450
|
/**
|
|
430
451
|
* @param {(string)[]} account_addresses
|
|
431
452
|
* @returns {Promise<any>}
|
|
@@ -474,27 +495,6 @@ export class Client {
|
|
|
474
495
|
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
475
496
|
return Conversations.__wrap(ret);
|
|
476
497
|
}
|
|
477
|
-
/**
|
|
478
|
-
* @param {(Consent)[]} records
|
|
479
|
-
* @returns {Promise<void>}
|
|
480
|
-
*/
|
|
481
|
-
setConsentStates(records) {
|
|
482
|
-
const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
|
|
483
|
-
const len0 = WASM_VECTOR_LEN;
|
|
484
|
-
const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
|
|
485
|
-
return ret;
|
|
486
|
-
}
|
|
487
|
-
/**
|
|
488
|
-
* @param {ConsentEntityType} entity_type
|
|
489
|
-
* @param {string} entity
|
|
490
|
-
* @returns {Promise<ConsentState>}
|
|
491
|
-
*/
|
|
492
|
-
getConsentState(entity_type, entity) {
|
|
493
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
494
|
-
const len0 = WASM_VECTOR_LEN;
|
|
495
|
-
const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
|
|
496
|
-
return ret;
|
|
497
|
-
}
|
|
498
498
|
/**
|
|
499
499
|
* @returns {Promise<string | undefined>}
|
|
500
500
|
*/
|
|
@@ -503,16 +503,13 @@ export class Client {
|
|
|
503
503
|
return ret;
|
|
504
504
|
}
|
|
505
505
|
/**
|
|
506
|
-
* @param {string} existing_wallet_address
|
|
507
506
|
* @param {string} new_wallet_address
|
|
508
507
|
* @returns {Promise<string>}
|
|
509
508
|
*/
|
|
510
|
-
addWalletSignatureText(
|
|
511
|
-
const ptr0 = passStringToWasm0(
|
|
509
|
+
addWalletSignatureText(new_wallet_address) {
|
|
510
|
+
const ptr0 = passStringToWasm0(new_wallet_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
512
511
|
const len0 = WASM_VECTOR_LEN;
|
|
513
|
-
const
|
|
514
|
-
const len1 = WASM_VECTOR_LEN;
|
|
515
|
-
const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
512
|
+
const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, ptr0, len0);
|
|
516
513
|
return ret;
|
|
517
514
|
}
|
|
518
515
|
/**
|
|
@@ -559,6 +556,52 @@ export class Client {
|
|
|
559
556
|
const ret = wasm.client_applySignatureRequests(this.__wbg_ptr);
|
|
560
557
|
return ret;
|
|
561
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
|
+
}
|
|
562
605
|
/**
|
|
563
606
|
*
|
|
564
607
|
* * Get the client's inbox state.
|
|
@@ -2884,10 +2927,6 @@ function __wbg_get_imports() {
|
|
|
2884
2927
|
const ret = arg0;
|
|
2885
2928
|
return ret;
|
|
2886
2929
|
};
|
|
2887
|
-
imports.wbg.__wbg_installation_new = function(arg0) {
|
|
2888
|
-
const ret = Installation.__wrap(arg0);
|
|
2889
|
-
return ret;
|
|
2890
|
-
};
|
|
2891
2930
|
imports.wbg.__wbg_conversation_new = function(arg0) {
|
|
2892
2931
|
const ret = Conversation.__wrap(arg0);
|
|
2893
2932
|
return ret;
|
|
@@ -2896,28 +2935,16 @@ function __wbg_get_imports() {
|
|
|
2896
2935
|
const ret = Message.__wrap(arg0);
|
|
2897
2936
|
return ret;
|
|
2898
2937
|
};
|
|
2899
|
-
imports.wbg.
|
|
2900
|
-
const ret =
|
|
2938
|
+
imports.wbg.__wbg_installation_new = function(arg0) {
|
|
2939
|
+
const ret = Installation.__wrap(arg0);
|
|
2901
2940
|
return ret;
|
|
2902
2941
|
};
|
|
2903
2942
|
imports.wbg.__wbg_client_new = function(arg0) {
|
|
2904
2943
|
const ret = Client.__wrap(arg0);
|
|
2905
2944
|
return ret;
|
|
2906
2945
|
};
|
|
2907
|
-
imports.wbg.
|
|
2908
|
-
const ret =
|
|
2909
|
-
return ret;
|
|
2910
|
-
};
|
|
2911
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
2912
|
-
const obj = arg1;
|
|
2913
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2914
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2915
|
-
var len1 = WASM_VECTOR_LEN;
|
|
2916
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2917
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2918
|
-
};
|
|
2919
|
-
imports.wbg.__wbg_consent_unwrap = function(arg0) {
|
|
2920
|
-
const ret = Consent.__unwrap(arg0);
|
|
2946
|
+
imports.wbg.__wbg_inboxstate_new = function(arg0) {
|
|
2947
|
+
const ret = InboxState.__wrap(arg0);
|
|
2921
2948
|
return ret;
|
|
2922
2949
|
};
|
|
2923
2950
|
imports.wbg.__wbindgen_try_into_number = function(arg0) {
|
|
@@ -2932,10 +2959,6 @@ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
|
2932
2959
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
2933
2960
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2934
2961
|
};
|
|
2935
|
-
imports.wbg.__wbg_installation_unwrap = function(arg0) {
|
|
2936
|
-
const ret = Installation.__unwrap(arg0);
|
|
2937
|
-
return ret;
|
|
2938
|
-
};
|
|
2939
2962
|
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2940
2963
|
const ret = arg0 === undefined;
|
|
2941
2964
|
return ret;
|
|
@@ -2944,6 +2967,14 @@ imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
|
2944
2967
|
const ret = arg0 in arg1;
|
|
2945
2968
|
return ret;
|
|
2946
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
|
+
};
|
|
2947
2978
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
2948
2979
|
const val = arg0;
|
|
2949
2980
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -2953,6 +2984,18 @@ imports.wbg.__wbindgen_as_number = function(arg0) {
|
|
|
2953
2984
|
const ret = +arg0;
|
|
2954
2985
|
return ret;
|
|
2955
2986
|
};
|
|
2987
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
2988
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
2989
|
+
return ret;
|
|
2990
|
+
};
|
|
2991
|
+
imports.wbg.__wbg_consent_unwrap = function(arg0) {
|
|
2992
|
+
const ret = Consent.__unwrap(arg0);
|
|
2993
|
+
return ret;
|
|
2994
|
+
};
|
|
2995
|
+
imports.wbg.__wbg_installation_unwrap = function(arg0) {
|
|
2996
|
+
const ret = Installation.__unwrap(arg0);
|
|
2997
|
+
return ret;
|
|
2998
|
+
};
|
|
2956
2999
|
imports.wbg.__wbg_performance_72f95fe5952939b5 = function() {
|
|
2957
3000
|
const ret = globalThis.performance;
|
|
2958
3001
|
return ret;
|
|
@@ -3110,64 +3153,64 @@ imports.wbg.__wbg_capi_ca06542c83b93175 = function(arg0) {
|
|
|
3110
3153
|
const ret = arg0.capi;
|
|
3111
3154
|
return ret;
|
|
3112
3155
|
};
|
|
3113
|
-
imports.wbg.
|
|
3114
|
-
const ret = arg0.
|
|
3115
|
-
return ret;
|
|
3116
|
-
};
|
|
3117
|
-
imports.wbg.__wbg_SQLITECONSTRAINTUNIQUE_1dea04a977c1e377 = function(arg0) {
|
|
3118
|
-
const ret = arg0.SQLITE_CONSTRAINT_UNIQUE;
|
|
3156
|
+
imports.wbg.__wbg_SQLITECONSTRAINTCHECK_7b54e6702b2e57ba = function(arg0) {
|
|
3157
|
+
const ret = arg0.SQLITE_CONSTRAINT_CHECK;
|
|
3119
3158
|
return ret;
|
|
3120
3159
|
};
|
|
3121
|
-
imports.wbg.
|
|
3122
|
-
const ret = arg0.
|
|
3160
|
+
imports.wbg.__wbg_SQLITEROW_a21779e78155c8ad = function(arg0) {
|
|
3161
|
+
const ret = arg0.SQLITE_ROW;
|
|
3123
3162
|
return ret;
|
|
3124
3163
|
};
|
|
3125
|
-
imports.wbg.
|
|
3126
|
-
const ret = arg0.
|
|
3164
|
+
imports.wbg.__wbg_SQLITEPREPAREPERSISTENT_d81d553ffa5c038c = function(arg0) {
|
|
3165
|
+
const ret = arg0.SQLITE_PREPARE_PERSISTENT;
|
|
3127
3166
|
return ret;
|
|
3128
3167
|
};
|
|
3129
3168
|
imports.wbg.__wbg_SQLITEINTEGER_9031dce8e01c166c = function(arg0) {
|
|
3130
3169
|
const ret = arg0.SQLITE_INTEGER;
|
|
3131
3170
|
return ret;
|
|
3132
3171
|
};
|
|
3133
|
-
imports.wbg.
|
|
3134
|
-
const ret = arg0.
|
|
3172
|
+
imports.wbg.__wbg_SQLITEDONE_fbfe18ce23a3b6da = function(arg0) {
|
|
3173
|
+
const ret = arg0.SQLITE_DONE;
|
|
3135
3174
|
return ret;
|
|
3136
3175
|
};
|
|
3137
|
-
imports.wbg.
|
|
3138
|
-
const ret = arg0.
|
|
3176
|
+
imports.wbg.__wbg_SQLITETEXT_727e78d48f532f23 = function(arg0) {
|
|
3177
|
+
const ret = arg0.SQLITE_TEXT;
|
|
3139
3178
|
return ret;
|
|
3140
3179
|
};
|
|
3141
|
-
imports.wbg.
|
|
3142
|
-
const ret = arg0.
|
|
3180
|
+
imports.wbg.__wbg_SQLITENULL_00f5eb33b5b89690 = function(arg0) {
|
|
3181
|
+
const ret = arg0.SQLITE_NULL;
|
|
3182
|
+
return ret;
|
|
3183
|
+
};
|
|
3184
|
+
imports.wbg.__wbg_SQLITECONSTRAINTUNIQUE_1dea04a977c1e377 = function(arg0) {
|
|
3185
|
+
const ret = arg0.SQLITE_CONSTRAINT_UNIQUE;
|
|
3143
3186
|
return ret;
|
|
3144
3187
|
};
|
|
3145
3188
|
imports.wbg.__wbg_SQLITECONSTRAINTPRIMARYKEY_3e2ad26d848575a2 = function(arg0) {
|
|
3146
3189
|
const ret = arg0.SQLITE_CONSTRAINT_PRIMARYKEY;
|
|
3147
3190
|
return ret;
|
|
3148
3191
|
};
|
|
3149
|
-
imports.wbg.
|
|
3150
|
-
const ret = arg0.
|
|
3192
|
+
imports.wbg.__wbg_SQLITEBLOB_394b61ff6fc173a6 = function(arg0) {
|
|
3193
|
+
const ret = arg0.SQLITE_BLOB;
|
|
3151
3194
|
return ret;
|
|
3152
3195
|
};
|
|
3153
|
-
imports.wbg.
|
|
3154
|
-
const ret = arg0.
|
|
3196
|
+
imports.wbg.__wbg_SQLITESTATIC_b98299c993e94d35 = function(arg0) {
|
|
3197
|
+
const ret = arg0.SQLITE_STATIC;
|
|
3155
3198
|
return ret;
|
|
3156
3199
|
};
|
|
3157
|
-
imports.wbg.
|
|
3158
|
-
const ret = arg0.
|
|
3200
|
+
imports.wbg.__wbg_SQLITEFLOAT_e0da134da12d25d0 = function(arg0) {
|
|
3201
|
+
const ret = arg0.SQLITE_FLOAT;
|
|
3159
3202
|
return ret;
|
|
3160
3203
|
};
|
|
3161
3204
|
imports.wbg.__wbg_SQLITECONSTRAINTNOTNULL_0f87885933517ad3 = function(arg0) {
|
|
3162
3205
|
const ret = arg0.SQLITE_CONSTRAINT_NOTNULL;
|
|
3163
3206
|
return ret;
|
|
3164
3207
|
};
|
|
3165
|
-
imports.wbg.
|
|
3166
|
-
const ret = arg0.
|
|
3208
|
+
imports.wbg.__wbg_SQLITEOK_2d09a4e691645e98 = function(arg0) {
|
|
3209
|
+
const ret = arg0.SQLITE_OK;
|
|
3167
3210
|
return ret;
|
|
3168
3211
|
};
|
|
3169
|
-
imports.wbg.
|
|
3170
|
-
const ret = arg0.
|
|
3212
|
+
imports.wbg.__wbg_SQLITECONSTRAINTFOREIGNKEY_741a343b3482effc = function(arg0) {
|
|
3213
|
+
const ret = arg0.SQLITE_CONSTRAINT_FOREIGNKEY;
|
|
3171
3214
|
return ret;
|
|
3172
3215
|
};
|
|
3173
3216
|
imports.wbg.__wbg_SQLITEOPENREADWRITE_a83b4615e4d0f3ab = function(arg0) {
|
|
@@ -3328,6 +3371,16 @@ imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
|
|
3328
3371
|
imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
|
|
3329
3372
|
arg0[arg1] = arg2;
|
|
3330
3373
|
};
|
|
3374
|
+
imports.wbg.__wbg_fetch_9b133f5ec268a7b8 = typeof fetch == 'function' ? fetch : notDefined('fetch');
|
|
3375
|
+
imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) {
|
|
3376
|
+
const ret = arg0.queueMicrotask;
|
|
3377
|
+
return ret;
|
|
3378
|
+
};
|
|
3379
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
3380
|
+
const ret = typeof(arg0) === 'function';
|
|
3381
|
+
return ret;
|
|
3382
|
+
};
|
|
3383
|
+
imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask');
|
|
3331
3384
|
imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
|
|
3332
3385
|
const ret = arg0.crypto;
|
|
3333
3386
|
return ret;
|
|
@@ -3362,16 +3415,6 @@ imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleE
|
|
|
3362
3415
|
imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
|
|
3363
3416
|
arg0.randomFillSync(arg1);
|
|
3364
3417
|
}, arguments) };
|
|
3365
|
-
imports.wbg.__wbg_fetch_9b133f5ec268a7b8 = typeof fetch == 'function' ? fetch : notDefined('fetch');
|
|
3366
|
-
imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) {
|
|
3367
|
-
const ret = arg0.queueMicrotask;
|
|
3368
|
-
return ret;
|
|
3369
|
-
};
|
|
3370
|
-
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
3371
|
-
const ret = typeof(arg0) === 'function';
|
|
3372
|
-
return ret;
|
|
3373
|
-
};
|
|
3374
|
-
imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask');
|
|
3375
3418
|
imports.wbg.__wbg_debug_69675dd374e2c249 = typeof console.debug == 'function' ? console.debug : notDefined('console.debug');
|
|
3376
3419
|
imports.wbg.__wbg_debug_a0b6c2c5ac9a4bfd = typeof console.debug == 'function' ? console.debug : notDefined('console.debug');
|
|
3377
3420
|
imports.wbg.__wbg_error_53abcd6a461f73d8 = typeof console.error == 'function' ? console.error : notDefined('console.error');
|
|
@@ -3593,7 +3636,7 @@ imports.wbg.__wbg_new_1073970097e5a420 = function(arg0, arg1) {
|
|
|
3593
3636
|
const a = state0.a;
|
|
3594
3637
|
state0.a = 0;
|
|
3595
3638
|
try {
|
|
3596
|
-
return
|
|
3639
|
+
return __wbg_adapter_567(a, state0.b, arg0, arg1);
|
|
3597
3640
|
} finally {
|
|
3598
3641
|
state0.a = a;
|
|
3599
3642
|
}
|
|
@@ -3695,12 +3738,12 @@ imports.wbg.__wbindgen_memory = function() {
|
|
|
3695
3738
|
const ret = wasm.memory;
|
|
3696
3739
|
return ret;
|
|
3697
3740
|
};
|
|
3698
|
-
imports.wbg.
|
|
3699
|
-
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);
|
|
3700
3743
|
return ret;
|
|
3701
3744
|
};
|
|
3702
|
-
imports.wbg.
|
|
3703
|
-
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);
|
|
3704
3747
|
return ret;
|
|
3705
3748
|
};
|
|
3706
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;
|
|
@@ -15,12 +36,25 @@ export function client_accountAddress(a: number): Array;
|
|
|
15
36
|
export function client_inboxId(a: number): Array;
|
|
16
37
|
export function client_isRegistered(a: number): number;
|
|
17
38
|
export function client_installationId(a: number): Array;
|
|
39
|
+
export function client_installationIdBytes(a: number): number;
|
|
18
40
|
export function client_canMessage(a: number, b: number, c: number): number;
|
|
19
41
|
export function client_registerIdentity(a: number): number;
|
|
20
42
|
export function client_sendHistorySyncRequest(a: number): number;
|
|
21
43
|
export function client_sendConsentSyncRequest(a: number): number;
|
|
22
44
|
export function client_findInboxIdByAddress(a: number, b: number, c: number): number;
|
|
23
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;
|
|
56
|
+
export function client_signWithInstallationKey(a: number, b: number, c: number): Array;
|
|
57
|
+
export function client_verifySignedWithInstallationKey(a: number, b: number, c: number, d: number): Array;
|
|
24
58
|
export function __wbg_consent_free(a: number, b: number): void;
|
|
25
59
|
export function __wbg_get_consent_entityType(a: number): number;
|
|
26
60
|
export function __wbg_set_consent_entityType(a: number, b: number): void;
|
|
@@ -110,13 +144,6 @@ export function __wbg_set_message_kind(a: number, b: number): void;
|
|
|
110
144
|
export function __wbg_get_message_deliveryStatus(a: number): number;
|
|
111
145
|
export function __wbg_set_message_deliveryStatus(a: number, b: number): void;
|
|
112
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;
|
|
113
|
-
export function client_createInboxSignatureText(a: number): number;
|
|
114
|
-
export function client_addWalletSignatureText(a: number, b: number, c: number, d: number, e: number): number;
|
|
115
|
-
export function client_revokeWalletSignatureText(a: number, b: number, c: number): number;
|
|
116
|
-
export function client_revokeInstallationsSignatureText(a: number): number;
|
|
117
|
-
export function client_addSignature(a: number, b: number, c: number): number;
|
|
118
|
-
export function client_addScwSignature(a: number, b: number, c: number, d: number, e: number, f: number): number;
|
|
119
|
-
export function client_applySignatureRequests(a: number): number;
|
|
120
147
|
export function __wbg_set_contenttypeid_authorityId(a: number, b: number, c: number): void;
|
|
121
148
|
export function __wbg_get_contenttypeid_authorityId(a: number): Array;
|
|
122
149
|
export function __wbg_get_listmessagesoptions_sentBeforeNs(a: number): Array;
|
|
@@ -192,29 +219,6 @@ export function client_inboxState(a: number, b: number): number;
|
|
|
192
219
|
export function client_getLatestInboxState(a: number, b: number, c: number): number;
|
|
193
220
|
export function __wbg_set_inboxstate_inboxId(a: number, b: number, c: number): void;
|
|
194
221
|
export function __wbg_get_inboxstate_inboxId(a: number): Array;
|
|
195
|
-
export function getInboxIdForAddress(a: number, b: number, c: number, d: number): number;
|
|
196
|
-
export function generateInboxId(a: number, b: number): Array;
|
|
197
|
-
export function __wbg_permissionpolicyset_free(a: number, b: number): void;
|
|
198
|
-
export function __wbg_get_permissionpolicyset_addMemberPolicy(a: number): number;
|
|
199
|
-
export function __wbg_set_permissionpolicyset_addMemberPolicy(a: number, b: number): void;
|
|
200
|
-
export function __wbg_get_permissionpolicyset_removeMemberPolicy(a: number): number;
|
|
201
|
-
export function __wbg_set_permissionpolicyset_removeMemberPolicy(a: number, b: number): void;
|
|
202
|
-
export function __wbg_get_permissionpolicyset_addAdminPolicy(a: number): number;
|
|
203
|
-
export function __wbg_set_permissionpolicyset_addAdminPolicy(a: number, b: number): void;
|
|
204
|
-
export function __wbg_get_permissionpolicyset_removeAdminPolicy(a: number): number;
|
|
205
|
-
export function __wbg_set_permissionpolicyset_removeAdminPolicy(a: number, b: number): void;
|
|
206
|
-
export function __wbg_get_permissionpolicyset_updateGroupNamePolicy(a: number): number;
|
|
207
|
-
export function __wbg_set_permissionpolicyset_updateGroupNamePolicy(a: number, b: number): void;
|
|
208
|
-
export function __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy(a: number): number;
|
|
209
|
-
export function __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy(a: number, b: number): void;
|
|
210
|
-
export function __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy(a: number): number;
|
|
211
|
-
export function __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy(a: number, b: number): void;
|
|
212
|
-
export function __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy(a: number): number;
|
|
213
|
-
export function __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy(a: number, b: number): void;
|
|
214
|
-
export function permissionpolicyset_new(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
|
|
215
|
-
export function __wbg_grouppermissions_free(a: number, b: number): void;
|
|
216
|
-
export function grouppermissions_policyType(a: number): Array;
|
|
217
|
-
export function grouppermissions_policySet(a: number): Array;
|
|
218
222
|
export function __wbg_version_free(a: number, b: number): void;
|
|
219
223
|
export function __wbg_intounderlyingsource_free(a: number, b: number): void;
|
|
220
224
|
export function intounderlyingsource_pull(a: number, b: number): number;
|
|
@@ -234,11 +238,11 @@ export function __wbindgen_realloc(a: number, b: number, c: number, d: number):
|
|
|
234
238
|
export const __wbindgen_export_2: WebAssembly.Table;
|
|
235
239
|
export const __wbindgen_export_3: WebAssembly.Table;
|
|
236
240
|
export function _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha602f13c6f6f57bd(a: number, b: number): void;
|
|
237
|
-
export function
|
|
241
|
+
export function closure2327_externref_shim(a: number, b: number, c: number): void;
|
|
242
|
+
export function __externref_table_dealloc(a: number): void;
|
|
238
243
|
export function __externref_table_alloc(): number;
|
|
239
244
|
export function __wbindgen_free(a: number, b: number, c: number): void;
|
|
240
|
-
export function __externref_table_dealloc(a: number): void;
|
|
241
245
|
export function __externref_drop_slice(a: number, b: number): void;
|
|
242
246
|
export function __wbindgen_exn_store(a: number): void;
|
|
243
|
-
export function
|
|
247
|
+
export function closure3395_externref_shim(a: number, b: number, c: number, d: number): void;
|
|
244
248
|
export function __wbindgen_start(): void;
|