@xmtp/wasm-bindings 1.2.0 → 1.2.1
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 +162 -157
- package/dist/bindings_wasm.js +124 -101
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +154 -153
- package/dist/snippets/wasm-array-cp-201e2a98f0e691f7/copy.min.js +1 -0
- package/dist/version.json +2 -2
- package/package.json +6 -2
- package/dist/snippets/sqlite-wasm-rs-7363ec544fce135b/src/vfs/utils.js +0 -11
|
@@ -1,18 +1,38 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
8
|
-
export const
|
|
9
|
-
export const
|
|
10
|
-
export const
|
|
11
|
-
export const
|
|
12
|
-
export const
|
|
13
|
-
export const
|
|
14
|
-
export const
|
|
15
|
-
export const
|
|
4
|
+
export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
|
|
5
|
+
export const __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
|
|
6
|
+
export const __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
|
|
7
|
+
export const __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
|
|
8
|
+
export const __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
|
|
9
|
+
export const __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
|
|
10
|
+
export const __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
|
|
11
|
+
export const __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
|
|
12
|
+
export const __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
|
|
13
|
+
export const __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
|
|
14
|
+
export const __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
|
|
15
|
+
export const __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
|
|
16
|
+
export const __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
|
|
17
|
+
export const __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
|
|
18
|
+
export const __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
|
|
19
|
+
export const remoteattachmentinfo_new: (a: any, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: any, j: number, k: number, l: number) => number;
|
|
20
|
+
export const __wbg_multiremoteattachment_free: (a: number, b: number) => void;
|
|
21
|
+
export const __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
|
|
22
|
+
export const __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
|
|
23
|
+
export const multiremoteattachment_new: (a: number, b: number) => number;
|
|
24
|
+
export const encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
25
|
+
export const decodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
26
|
+
export const __wbg_reaction_free: (a: number, b: number) => void;
|
|
27
|
+
export const __wbg_get_reaction_action: (a: number) => number;
|
|
28
|
+
export const __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
29
|
+
export const __wbg_get_reaction_content: (a: number) => [number, number];
|
|
30
|
+
export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
31
|
+
export const __wbg_get_reaction_schema: (a: number) => number;
|
|
32
|
+
export const __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
33
|
+
export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
34
|
+
export const encodeReaction: (a: number) => [number, number, number];
|
|
35
|
+
export const decodeReaction: (a: any) => [number, number, number];
|
|
16
36
|
export const __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
17
37
|
export const __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
|
|
18
38
|
export const __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
|
|
@@ -53,7 +73,6 @@ export const __wbg_createdmoptions_free: (a: number, b: number) => void;
|
|
|
53
73
|
export const __wbg_get_createdmoptions_messageDisappearingSettings: (a: number) => number;
|
|
54
74
|
export const __wbg_set_createdmoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
55
75
|
export const createdmoptions_new: (a: number) => number;
|
|
56
|
-
export const __wbg_hmackey_free: (a: number, b: number) => void;
|
|
57
76
|
export const __wbg_get_hmackey_key: (a: number) => [number, number];
|
|
58
77
|
export const __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
59
78
|
export const __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
@@ -74,11 +93,14 @@ export const conversations_sync: (a: number) => any;
|
|
|
74
93
|
export const conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
75
94
|
export const conversations_list: (a: number, b: number) => [number, number, number];
|
|
76
95
|
export const conversations_getHmacKeys: (a: number) => [number, number, number];
|
|
96
|
+
export const conversations_streamLocal: (a: number, b: number) => any;
|
|
77
97
|
export const conversations_stream: (a: number, b: any, c: number) => [number, number, number];
|
|
78
98
|
export const conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
|
|
79
99
|
export const conversations_streamConsent: (a: number, b: any) => [number, number, number];
|
|
80
100
|
export const conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
81
101
|
export const __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
102
|
+
export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
103
|
+
export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
82
104
|
export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
83
105
|
export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
84
106
|
export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
@@ -127,104 +149,69 @@ export const __wbg_get_messagewithreactions_message: (a: number) => number;
|
|
|
127
149
|
export const __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
|
|
128
150
|
export const __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
|
|
129
151
|
export const __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
|
|
130
|
-
export const
|
|
131
|
-
export const
|
|
132
|
-
export const
|
|
133
|
-
export const
|
|
134
|
-
export const
|
|
135
|
-
export const
|
|
136
|
-
export const
|
|
137
|
-
export const
|
|
138
|
-
export const
|
|
139
|
-
export const
|
|
140
|
-
export const
|
|
141
|
-
export const
|
|
142
|
-
export const
|
|
152
|
+
export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
153
|
+
export const __wbg_passkeysignature_free: (a: number, b: number) => void;
|
|
154
|
+
export const client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
155
|
+
export const client_addWalletSignatureText: (a: number, b: any) => any;
|
|
156
|
+
export const client_revokeWalletSignatureText: (a: number, b: any) => any;
|
|
157
|
+
export const client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
158
|
+
export const client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
159
|
+
export const client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
|
|
160
|
+
export const client_addEcdsaSignature: (a: number, b: number, c: any) => any;
|
|
161
|
+
export const client_addPasskeySignature: (a: number, b: number, c: number) => any;
|
|
162
|
+
export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
163
|
+
export const client_applySignatureRequests: (a: number) => any;
|
|
164
|
+
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
165
|
+
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
166
|
+
export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
167
|
+
export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
168
|
+
export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
169
|
+
export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
170
|
+
export const __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
171
|
+
export const __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
|
|
143
172
|
export const __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
|
|
144
|
-
export const
|
|
173
|
+
export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
174
|
+
export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
145
175
|
export const __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
|
|
146
176
|
export const __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
|
|
147
177
|
export const __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
148
|
-
export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
149
|
-
export const __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
|
|
150
|
-
export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
151
|
-
export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
152
|
-
export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
153
178
|
export const __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
|
|
154
179
|
export const __wbg_get_hmackey_epoch: (a: number) => bigint;
|
|
155
180
|
export const __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
181
|
+
export const __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
182
|
+
export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
183
|
+
export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
156
184
|
export const __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
157
185
|
export const __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
158
186
|
export const __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
159
187
|
export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
160
|
-
export const
|
|
161
|
-
export const
|
|
162
|
-
export const
|
|
163
|
-
export const
|
|
164
|
-
export const
|
|
165
|
-
export const
|
|
166
|
-
export const
|
|
167
|
-
export const
|
|
168
|
-
export const
|
|
169
|
-
export const
|
|
170
|
-
export const
|
|
171
|
-
export const
|
|
172
|
-
export const
|
|
173
|
-
export const
|
|
174
|
-
export const
|
|
175
|
-
export const
|
|
176
|
-
export const
|
|
177
|
-
export const
|
|
178
|
-
export const
|
|
179
|
-
export const
|
|
180
|
-
export const
|
|
181
|
-
export const
|
|
182
|
-
export const
|
|
183
|
-
export const
|
|
184
|
-
export const
|
|
185
|
-
export const
|
|
186
|
-
export const
|
|
187
|
-
export const __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
|
|
188
|
-
export const __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
|
|
189
|
-
export const __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
|
|
190
|
-
export const __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
|
|
191
|
-
export const __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
|
|
192
|
-
export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
|
|
193
|
-
export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
194
|
-
export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
195
|
-
export const __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
|
|
196
|
-
export const __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
|
|
197
|
-
export const __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
|
|
198
|
-
export const __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
|
|
199
|
-
export const __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
|
|
200
|
-
export const __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
|
|
201
|
-
export const __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
|
|
202
|
-
export const __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
|
|
203
|
-
export const __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
|
|
204
|
-
export const __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
|
|
205
|
-
export const __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
|
|
206
|
-
export const __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
|
|
207
|
-
export const __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
|
|
208
|
-
export const __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
|
|
209
|
-
export const remoteattachmentinfo_new: (a: any, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: any, j: number, k: number, l: number) => number;
|
|
210
|
-
export const __wbg_multiremoteattachment_free: (a: number, b: number) => void;
|
|
211
|
-
export const __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
|
|
212
|
-
export const __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
|
|
213
|
-
export const multiremoteattachment_new: (a: number, b: number) => number;
|
|
214
|
-
export const encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
215
|
-
export const decodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
216
|
-
export const __wbg_reaction_free: (a: number, b: number) => void;
|
|
217
|
-
export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
218
|
-
export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
219
|
-
export const __wbg_get_reaction_action: (a: number) => number;
|
|
220
|
-
export const __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
221
|
-
export const __wbg_get_reaction_content: (a: number) => [number, number];
|
|
222
|
-
export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
223
|
-
export const __wbg_get_reaction_schema: (a: number) => number;
|
|
224
|
-
export const __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
225
|
-
export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
226
|
-
export const encodeReaction: (a: number) => [number, number, number];
|
|
227
|
-
export const decodeReaction: (a: any) => [number, number, number];
|
|
188
|
+
export const __wbg_hmackey_free: (a: number, b: number) => void;
|
|
189
|
+
export const __wbg_client_free: (a: number, b: number) => void;
|
|
190
|
+
export const __wbg_logoptions_free: (a: number, b: number) => void;
|
|
191
|
+
export const __wbg_get_logoptions_structured: (a: number) => number;
|
|
192
|
+
export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
193
|
+
export const __wbg_get_logoptions_performance: (a: number) => number;
|
|
194
|
+
export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
195
|
+
export const __wbg_get_logoptions_level: (a: number) => number;
|
|
196
|
+
export const __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
197
|
+
export const logoptions_new: (a: number, b: number, c: number) => number;
|
|
198
|
+
export const createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => any;
|
|
199
|
+
export const client_accountIdentifier: (a: number) => any;
|
|
200
|
+
export const client_inboxId: (a: number) => [number, number];
|
|
201
|
+
export const client_isRegistered: (a: number) => number;
|
|
202
|
+
export const client_installationId: (a: number) => [number, number];
|
|
203
|
+
export const client_installationIdBytes: (a: number) => any;
|
|
204
|
+
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
205
|
+
export const client_registerIdentity: (a: number) => any;
|
|
206
|
+
export const client_sendSyncRequest: (a: number) => any;
|
|
207
|
+
export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
208
|
+
export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
209
|
+
export const client_conversations: (a: number) => number;
|
|
210
|
+
export const client_syncPreferences: (a: number) => any;
|
|
211
|
+
export const client_apiStatistics: (a: number) => number;
|
|
212
|
+
export const client_apiIdentityStatistics: (a: number) => number;
|
|
213
|
+
export const client_apiAggregateStatistics: (a: number) => [number, number];
|
|
214
|
+
export const client_uploadDebugArchive: (a: number, b: number, c: number) => any;
|
|
228
215
|
export const __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
229
216
|
export const groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
230
217
|
export const groupmetadata_conversationType: (a: number) => [number, number];
|
|
@@ -283,48 +270,24 @@ export const conversation_isMessageDisappearingEnabled: (a: number) => [number,
|
|
|
283
270
|
export const conversation_getHmacKeys: (a: number) => [number, number, number];
|
|
284
271
|
export const conversation_getDebugInfo: (a: number) => any;
|
|
285
272
|
export const conversation_findDuplicateDms: (a: number) => any;
|
|
286
|
-
export const
|
|
287
|
-
export const
|
|
288
|
-
export const
|
|
289
|
-
export const
|
|
290
|
-
export const
|
|
291
|
-
export const
|
|
292
|
-
export const
|
|
293
|
-
export const
|
|
294
|
-
export const
|
|
295
|
-
export const
|
|
296
|
-
export const
|
|
297
|
-
export const
|
|
298
|
-
export const
|
|
299
|
-
export const
|
|
300
|
-
export const
|
|
301
|
-
export const
|
|
302
|
-
export const
|
|
303
|
-
export const
|
|
304
|
-
export const __wbg_get_logoptions_structured: (a: number) => number;
|
|
305
|
-
export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
306
|
-
export const __wbg_get_logoptions_performance: (a: number) => number;
|
|
307
|
-
export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
308
|
-
export const __wbg_get_logoptions_level: (a: number) => number;
|
|
309
|
-
export const __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
310
|
-
export const logoptions_new: (a: number, b: number, c: number) => number;
|
|
311
|
-
export const createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => any;
|
|
312
|
-
export const client_accountIdentifier: (a: number) => any;
|
|
313
|
-
export const client_inboxId: (a: number) => [number, number];
|
|
314
|
-
export const client_isRegistered: (a: number) => number;
|
|
315
|
-
export const client_installationId: (a: number) => [number, number];
|
|
316
|
-
export const client_installationIdBytes: (a: number) => any;
|
|
317
|
-
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
318
|
-
export const client_registerIdentity: (a: number) => any;
|
|
319
|
-
export const client_sendSyncRequest: (a: number) => any;
|
|
320
|
-
export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
321
|
-
export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
322
|
-
export const client_conversations: (a: number) => number;
|
|
323
|
-
export const client_syncPreferences: (a: number) => any;
|
|
324
|
-
export const client_apiStatistics: (a: number) => number;
|
|
325
|
-
export const client_apiIdentityStatistics: (a: number) => number;
|
|
326
|
-
export const client_apiAggregateStatistics: (a: number) => [number, number];
|
|
327
|
-
export const client_uploadDebugArchive: (a: number, b: number, c: number) => any;
|
|
273
|
+
export const __wbg_apistats_free: (a: number, b: number) => void;
|
|
274
|
+
export const __wbg_get_apistats_upload_key_package: (a: number) => bigint;
|
|
275
|
+
export const __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
|
|
276
|
+
export const __wbg_get_apistats_fetch_key_package: (a: number) => bigint;
|
|
277
|
+
export const __wbg_set_apistats_fetch_key_package: (a: number, b: bigint) => void;
|
|
278
|
+
export const __wbg_get_apistats_send_group_messages: (a: number) => bigint;
|
|
279
|
+
export const __wbg_set_apistats_send_group_messages: (a: number, b: bigint) => void;
|
|
280
|
+
export const __wbg_get_apistats_send_welcome_messages: (a: number) => bigint;
|
|
281
|
+
export const __wbg_set_apistats_send_welcome_messages: (a: number, b: bigint) => void;
|
|
282
|
+
export const __wbg_get_apistats_query_group_messages: (a: number) => bigint;
|
|
283
|
+
export const __wbg_set_apistats_query_group_messages: (a: number, b: bigint) => void;
|
|
284
|
+
export const __wbg_get_apistats_query_welcome_messages: (a: number) => bigint;
|
|
285
|
+
export const __wbg_set_apistats_query_welcome_messages: (a: number, b: bigint) => void;
|
|
286
|
+
export const __wbg_get_apistats_subscribe_messages: (a: number) => bigint;
|
|
287
|
+
export const __wbg_set_apistats_subscribe_messages: (a: number, b: bigint) => void;
|
|
288
|
+
export const __wbg_get_apistats_subscribe_welcomes: (a: number) => bigint;
|
|
289
|
+
export const __wbg_set_apistats_subscribe_welcomes: (a: number, b: bigint) => void;
|
|
290
|
+
export const __wbg_identitystats_free: (a: number, b: number) => void;
|
|
328
291
|
export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
|
|
329
292
|
export const generateInboxId: (a: any) => [number, number, number, number];
|
|
330
293
|
export const __wbg_installation_free: (a: number, b: number) => void;
|
|
@@ -336,8 +299,6 @@ export const __wbg_get_installation_clientTimestampNs: (a: number) => [number, b
|
|
|
336
299
|
export const __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
337
300
|
export const installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
|
|
338
301
|
export const __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
339
|
-
export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
340
|
-
export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
341
302
|
export const __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
|
|
342
303
|
export const __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
|
|
343
304
|
export const __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
@@ -351,13 +312,53 @@ export const __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void
|
|
|
351
312
|
export const __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
|
|
352
313
|
export const __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
|
|
353
314
|
export const __wbg_lifetime_free: (a: number, b: number) => void;
|
|
354
|
-
export const __wbg_get_lifetime_not_before: (a: number) => bigint;
|
|
355
|
-
export const __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
|
|
356
|
-
export const __wbg_get_lifetime_not_after: (a: number) => bigint;
|
|
357
|
-
export const __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
|
|
358
315
|
export const client_inboxState: (a: number, b: number) => any;
|
|
359
316
|
export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
360
317
|
export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
318
|
+
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
319
|
+
export const streamcloser_end: (a: number) => void;
|
|
320
|
+
export const streamcloser_endAndWait: (a: number) => any;
|
|
321
|
+
export const streamcloser_waitForReady: (a: number) => any;
|
|
322
|
+
export const streamcloser_isClosed: (a: number) => number;
|
|
323
|
+
export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
324
|
+
export const __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
|
|
325
|
+
export const __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
|
|
326
|
+
export const __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
|
|
327
|
+
export const __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
|
|
328
|
+
export const __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
|
|
329
|
+
export const __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
|
|
330
|
+
export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
331
|
+
export const __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
|
|
332
|
+
export const __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
|
|
333
|
+
export const __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
|
|
334
|
+
export const __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
|
|
335
|
+
export const __wbg_get_lifetime_not_before: (a: number) => bigint;
|
|
336
|
+
export const __wbg_get_lifetime_not_after: (a: number) => bigint;
|
|
337
|
+
export const __wbg_consent_free: (a: number, b: number) => void;
|
|
338
|
+
export const __wbg_get_consent_entityType: (a: number) => number;
|
|
339
|
+
export const __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
340
|
+
export const __wbg_get_consent_state: (a: number) => number;
|
|
341
|
+
export const __wbg_set_consent_state: (a: number, b: number) => void;
|
|
342
|
+
export const __wbg_get_consent_entity: (a: number) => [number, number];
|
|
343
|
+
export const __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
|
|
344
|
+
export const consent_new: (a: number, b: number, c: number, d: number) => number;
|
|
345
|
+
export const client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
346
|
+
export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
347
|
+
export const conversation_consentState: (a: number) => [number, number, number];
|
|
348
|
+
export const conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
349
|
+
export const __wbg_opfs_free: (a: number, b: number) => void;
|
|
350
|
+
export const opfs_init_sqlite_opfs: () => any;
|
|
351
|
+
export const opfs_exists: () => number;
|
|
352
|
+
export const opfs_error: () => [number, number];
|
|
353
|
+
export const opfs_wipeFiles: () => any;
|
|
354
|
+
export const opfs_rm: (a: number, b: number) => [number, number, number];
|
|
355
|
+
export const opfs_getFileNames: () => [number, number];
|
|
356
|
+
export const opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
|
|
357
|
+
export const opfs_exportFile: (a: number, b: number) => [number, number, number, number];
|
|
358
|
+
export const opfs_getFileCount: () => number;
|
|
359
|
+
export const opfs_getCapacity: () => number;
|
|
360
|
+
export const opfs_addCapacity: (a: number) => any;
|
|
361
|
+
export const opfs_reduceCapacity: (a: number) => any;
|
|
361
362
|
export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
362
363
|
export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
363
364
|
export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
@@ -420,9 +421,9 @@ export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
|
420
421
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
421
422
|
export const __wbindgen_export_7: WebAssembly.Table;
|
|
422
423
|
export const __externref_table_dealloc: (a: number) => void;
|
|
423
|
-
export const
|
|
424
|
-
export const
|
|
425
|
-
export const
|
|
426
|
-
export const
|
|
427
|
-
export const
|
|
424
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc094ec3bdf8c16b7: (a: number, b: number) => void;
|
|
425
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0eb99f8c2f057fcc: (a: number, b: number) => void;
|
|
426
|
+
export const closure4487_externref_shim: (a: number, b: number, c: any) => void;
|
|
427
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h232599d7dcf89d52: (a: number, b: number) => void;
|
|
428
|
+
export const closure5463_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
428
429
|
export const __wbindgen_start: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class t{static toI8Slice(t,r,e,a){new Int8Array(t.buffer,e,a).set(r,0)}static toI8Array(t,r,e,a){const s=new Int8Array(t.buffer,r,e);a.set(s,0)}static toI16Slice(t,r,e,a){new Int16Array(t.buffer,e,a).set(r,0)}static toI16Array(t,r,e,a){const s=new Int16Array(t.buffer,r,e);a.set(s,0)}static toI32Slice(t,r,e,a){new Int32Array(t.buffer,e,a).set(r,0)}static toI32Array(t,r,e,a){const s=new Int32Array(t.buffer,r,e);a.set(s,0)}static toU8Slice(t,r,e,a){new Uint8Array(t.buffer,e,a).set(r,0)}static toU8Array(t,r,e,a){const s=new Uint8Array(t.buffer,r,e);a.set(s,0)}static toU8CSlice(t,r,e,a){new Uint8ClampedArray(t.buffer,e,a).set(r,0)}static toU8CArray(t,r,e,a){const s=new Uint8ClampedArray(t.buffer,r,e);a.set(s,0)}static toU16Slice(t,r,e,a){new Uint16Array(t.buffer,e,a).set(r,0)}static toU16Array(t,r,e,a){const s=new Uint16Array(t.buffer,r,e);a.set(s,0)}static toU32Slice(t,r,e,a){new Uint32Array(t.buffer,e,a).set(r,0)}static toU32Array(t,r,e,a){const s=new Uint32Array(t.buffer,r,e);a.set(s,0)}static toF32Slice(t,r,e,a){new Float32Array(t.buffer,e,a).set(r,0)}static toF32Array(t,r,e,a){const s=new Float32Array(t.buffer,r,e);a.set(s,0)}static toF64Slice(t,r,e,a){new Float64Array(t.buffer,e,a).set(r,0)}static toF64Array(t,r,e,a){const s=new Float64Array(t.buffer,r,e);a.set(s,0)}static toBigInt64Slice(t,r,e,a){new BigInt64Array(t.buffer,e,a).set(r,0)}static toBigInt64Array(t,r,e,a){const s=new BigInt64Array(t.buffer,r,e);a.set(s,0)}static toBigUint64Slice(t,r,e,a){new BigUint64Array(t.buffer,e,a).set(r,0)}static toBigUint64Array(t,r,e,a){const s=new BigUint64Array(t.buffer,r,e);a.set(s,0)}}export{t as JSArrayBufferCopy};
|
package/dist/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmtp/wasm-bindings",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "WASM bindings for the libXMTP rust library",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"build": "yarn clean && yarn build:web && yarn clean:release",
|
|
28
28
|
"build:macos": "yarn clean && yarn build:web:macos && yarn clean:release",
|
|
29
29
|
"build:web": "RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals --cfg getrandom_backend=\\\"wasm_js\\\"\" wasm-pack build --target web --out-dir ./dist --no-pack --release",
|
|
30
|
+
"build:test": "RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals --cfg getrandom_backend=\\\"wasm_js\\\"\" wasm-pack build --no-opt --target web --out-dir ./dist --no-pack --release -- --features test-utils",
|
|
30
31
|
"build:web:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals --cfg getrandom_backend=\\\"wasm_js\\\"\" wasm-pack build --target web --out-dir ./dist --no-pack --release",
|
|
31
32
|
"check": "cargo check --target wasm32-unknown-unknown",
|
|
32
33
|
"check:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang cargo check --target wasm32-unknown-unknown",
|
|
@@ -67,5 +68,8 @@
|
|
|
67
68
|
"wasm-pack": "^0.13.1",
|
|
68
69
|
"zx": "^8.4.0"
|
|
69
70
|
},
|
|
70
|
-
"packageManager": "yarn@4.5.1"
|
|
71
|
+
"packageManager": "yarn@4.5.1",
|
|
72
|
+
"workspaces": [
|
|
73
|
+
"tests/integration/**"
|
|
74
|
+
]
|
|
71
75
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export class JSUtils {
|
|
2
|
-
static toSlice(mem, src, dst, len) {
|
|
3
|
-
const slice = new Uint8Array(mem.buffer, dst, len);
|
|
4
|
-
slice.set(src, 0);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
static toUint8Array(mem, src, len, dst) {
|
|
8
|
-
const slice = new Uint8Array(mem.buffer, src, len);
|
|
9
|
-
dst.set(slice, 0);
|
|
10
|
-
}
|
|
11
|
-
}
|