@xmtp/wasm-bindings 1.1.3 → 1.1.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 +176 -136
- package/dist/bindings_wasm.js +367 -146
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +141 -126
- package/dist/version.json +5 -0
- package/package.json +8 -5
|
Binary file
|
|
@@ -1,48 +1,48 @@
|
|
|
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
|
|
16
|
-
export const
|
|
17
|
-
export const
|
|
18
|
-
export const
|
|
19
|
-
export const
|
|
20
|
-
export const
|
|
21
|
-
export const
|
|
22
|
-
export const
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
28
|
-
export const
|
|
29
|
-
export const
|
|
30
|
-
export const
|
|
31
|
-
export const
|
|
32
|
-
export const
|
|
33
|
-
export const
|
|
34
|
-
export const
|
|
35
|
-
export const
|
|
36
|
-
export const
|
|
37
|
-
export const
|
|
38
|
-
export const
|
|
39
|
-
export const
|
|
4
|
+
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
5
|
+
export const streamcloser_end: (a: number) => void;
|
|
6
|
+
export const streamcloser_endAndWait: (a: number) => any;
|
|
7
|
+
export const streamcloser_waitForReady: (a: number) => any;
|
|
8
|
+
export const streamcloser_isClosed: (a: number) => number;
|
|
9
|
+
export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
10
|
+
export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
11
|
+
export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
12
|
+
export const __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
13
|
+
export const __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
14
|
+
export const __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
15
|
+
export const __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
16
|
+
export const __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
17
|
+
export const __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
18
|
+
export const __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
19
|
+
export const __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
20
|
+
export const __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
21
|
+
export const __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
22
|
+
export const __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
23
|
+
export const __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
24
|
+
export const __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
25
|
+
export const __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
26
|
+
export const permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
27
|
+
export const __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
28
|
+
export const grouppermissions_policyType: (a: number) => [number, number, number];
|
|
29
|
+
export const grouppermissions_policySet: (a: number) => [number, number, number];
|
|
30
|
+
export const __wbg_consent_free: (a: number, b: number) => void;
|
|
31
|
+
export const __wbg_get_consent_entityType: (a: number) => number;
|
|
32
|
+
export const __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
33
|
+
export const __wbg_get_consent_state: (a: number) => number;
|
|
34
|
+
export const __wbg_set_consent_state: (a: number, b: number) => void;
|
|
35
|
+
export const __wbg_get_consent_entity: (a: number) => [number, number];
|
|
36
|
+
export const __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
|
|
37
|
+
export const consent_new: (a: number, b: number, c: number, d: number) => number;
|
|
38
|
+
export const client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
39
|
+
export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
40
|
+
export const conversation_consentState: (a: number) => [number, number, number];
|
|
41
|
+
export const conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
40
42
|
export const __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
41
43
|
export const groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
42
44
|
export const groupmetadata_conversationType: (a: number) => [number, number];
|
|
43
45
|
export const __wbg_groupmember_free: (a: number, b: number) => void;
|
|
44
|
-
export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
45
|
-
export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
46
46
|
export const __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
|
|
47
47
|
export const __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
|
|
48
48
|
export const __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
@@ -93,6 +93,41 @@ export const conversation_removeMessageDisappearingSettings: (a: number) => any;
|
|
|
93
93
|
export const conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
94
94
|
export const conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
|
|
95
95
|
export const conversation_getHmacKeys: (a: number) => [number, number, number];
|
|
96
|
+
export const __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
97
|
+
export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
98
|
+
export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
99
|
+
export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
100
|
+
export const __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
|
|
101
|
+
export const __wbg_get_contenttypeid_versionMinor: (a: number) => number;
|
|
102
|
+
export const __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
|
|
103
|
+
export const contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
104
|
+
export const __wbg_encodedcontent_free: (a: number, b: number) => void;
|
|
105
|
+
export const __wbg_get_encodedcontent_type: (a: number) => number;
|
|
106
|
+
export const __wbg_set_encodedcontent_type: (a: number, b: number) => void;
|
|
107
|
+
export const __wbg_get_encodedcontent_parameters: (a: number) => any;
|
|
108
|
+
export const __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
|
|
109
|
+
export const __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
|
|
110
|
+
export const __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
|
|
111
|
+
export const __wbg_get_encodedcontent_compression: (a: number) => number;
|
|
112
|
+
export const __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
|
|
113
|
+
export const __wbg_get_encodedcontent_content: (a: number) => any;
|
|
114
|
+
export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
115
|
+
export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
116
|
+
export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
|
|
117
|
+
export const generateInboxId: (a: any) => [number, number, number, number];
|
|
118
|
+
export const __wbg_opfs_free: (a: number, b: number) => void;
|
|
119
|
+
export const opfs_init_sqlite_opfs: () => any;
|
|
120
|
+
export const opfs_exists: () => number;
|
|
121
|
+
export const opfs_error: () => [number, number];
|
|
122
|
+
export const opfs_wipeFiles: () => any;
|
|
123
|
+
export const opfs_rm: (a: number, b: number) => [number, number, number];
|
|
124
|
+
export const opfs_getFileNames: () => [number, number];
|
|
125
|
+
export const opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
|
|
126
|
+
export const opfs_exportFile: (a: number, b: number) => [number, number, number, number];
|
|
127
|
+
export const opfs_getFileCount: () => number;
|
|
128
|
+
export const opfs_getCapacity: () => number;
|
|
129
|
+
export const opfs_addCapacity: (a: number) => any;
|
|
130
|
+
export const opfs_reduceCapacity: (a: number) => any;
|
|
96
131
|
export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
97
132
|
export const __wbg_passkeysignature_free: (a: number, b: number) => void;
|
|
98
133
|
export const client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
@@ -100,19 +135,17 @@ export const client_addWalletSignatureText: (a: number, b: any) => any;
|
|
|
100
135
|
export const client_revokeWalletSignatureText: (a: number, b: any) => any;
|
|
101
136
|
export const client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
102
137
|
export const client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
138
|
+
export const client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
|
|
103
139
|
export const client_addEcdsaSignature: (a: number, b: number, c: any) => any;
|
|
104
140
|
export const client_addPasskeySignature: (a: number, b: number, c: number) => any;
|
|
105
141
|
export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
106
142
|
export const client_applySignatureRequests: (a: number) => any;
|
|
107
143
|
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
108
144
|
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
109
|
-
export const
|
|
110
|
-
export const
|
|
111
|
-
export const
|
|
112
|
-
export const
|
|
113
|
-
export const streamcloser_endAndWait: (a: number) => any;
|
|
114
|
-
export const streamcloser_waitForReady: (a: number) => any;
|
|
115
|
-
export const streamcloser_isClosed: (a: number) => number;
|
|
145
|
+
export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
146
|
+
export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
147
|
+
export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
148
|
+
export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
116
149
|
export const __wbg_client_free: (a: number, b: number) => void;
|
|
117
150
|
export const __wbg_logoptions_free: (a: number, b: number) => void;
|
|
118
151
|
export const __wbg_get_logoptions_structured: (a: number) => number;
|
|
@@ -135,6 +168,18 @@ export const client_sendConsentSyncRequest: (a: number) => any;
|
|
|
135
168
|
export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
136
169
|
export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
137
170
|
export const client_conversations: (a: number) => number;
|
|
171
|
+
export const __wbg_reaction_free: (a: number, b: number) => void;
|
|
172
|
+
export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
173
|
+
export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
174
|
+
export const __wbg_get_reaction_action: (a: number) => number;
|
|
175
|
+
export const __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
176
|
+
export const __wbg_get_reaction_content: (a: number) => [number, number];
|
|
177
|
+
export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
178
|
+
export const __wbg_get_reaction_schema: (a: number) => number;
|
|
179
|
+
export const __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
180
|
+
export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
181
|
+
export const encodeReaction: (a: number) => [number, number, number];
|
|
182
|
+
export const decodeReaction: (a: any) => [number, number, number];
|
|
138
183
|
export const __wbg_installation_free: (a: number, b: number) => void;
|
|
139
184
|
export const __wbg_get_installation_bytes: (a: number) => any;
|
|
140
185
|
export const __wbg_set_installation_bytes: (a: number, b: any) => void;
|
|
@@ -153,41 +198,45 @@ export const __wbg_set_inboxstate_installations: (a: number, b: number, c: numbe
|
|
|
153
198
|
export const __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
|
|
154
199
|
export const __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
|
|
155
200
|
export const inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
|
|
201
|
+
export const __wbg_keypackagestatus_free: (a: number, b: number) => void;
|
|
202
|
+
export const __wbg_get_keypackagestatus_lifetime: (a: number) => number;
|
|
203
|
+
export const __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
|
|
204
|
+
export const __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
|
|
205
|
+
export const __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
|
|
206
|
+
export const __wbg_lifetime_free: (a: number, b: number) => void;
|
|
207
|
+
export const __wbg_get_lifetime_not_before: (a: number) => bigint;
|
|
208
|
+
export const __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
|
|
209
|
+
export const __wbg_get_lifetime_not_after: (a: number) => bigint;
|
|
210
|
+
export const __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
|
|
156
211
|
export const client_inboxState: (a: number, b: number) => any;
|
|
157
212
|
export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
158
|
-
export const
|
|
159
|
-
export const
|
|
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 __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
|
|
186
|
-
export const consent_new: (a: number, b: number, c: number, d: number) => number;
|
|
187
|
-
export const client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
188
|
-
export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
189
|
-
export const conversation_consentState: (a: number) => [number, number, number];
|
|
190
|
-
export const conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
213
|
+
export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
214
|
+
export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
215
|
+
export const __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
216
|
+
export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
|
|
217
|
+
export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
218
|
+
export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
219
|
+
export const __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
|
|
220
|
+
export const __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
|
|
221
|
+
export const __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
|
|
222
|
+
export const __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
|
|
223
|
+
export const __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
|
|
224
|
+
export const __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
|
|
225
|
+
export const __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
|
|
226
|
+
export const __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
|
|
227
|
+
export const __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
|
|
228
|
+
export const __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
|
|
229
|
+
export const __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
|
|
230
|
+
export const __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
|
|
231
|
+
export const __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
|
|
232
|
+
export const __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
|
|
233
|
+
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;
|
|
234
|
+
export const __wbg_multiremoteattachment_free: (a: number, b: number) => void;
|
|
235
|
+
export const __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
|
|
236
|
+
export const __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
|
|
237
|
+
export const multiremoteattachment_new: (a: number, b: number) => number;
|
|
238
|
+
export const encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
239
|
+
export const decodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
191
240
|
export const __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
192
241
|
export const __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
|
|
193
242
|
export const __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
|
|
@@ -251,28 +300,6 @@ export const conversations_streamDms: (a: number, b: any) => [number, number, nu
|
|
|
251
300
|
export const conversations_streamAllMessages: (a: number, b: any, c: number) => [number, number, number];
|
|
252
301
|
export const conversations_streamConsent: (a: number, b: any) => [number, number, number];
|
|
253
302
|
export const conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
254
|
-
export const __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
255
|
-
export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
256
|
-
export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
257
|
-
export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
258
|
-
export const __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
|
|
259
|
-
export const __wbg_get_contenttypeid_versionMinor: (a: number) => number;
|
|
260
|
-
export const __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
|
|
261
|
-
export const contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
262
|
-
export const __wbg_encodedcontent_free: (a: number, b: number) => void;
|
|
263
|
-
export const __wbg_get_encodedcontent_type: (a: number) => number;
|
|
264
|
-
export const __wbg_set_encodedcontent_type: (a: number, b: number) => void;
|
|
265
|
-
export const __wbg_get_encodedcontent_parameters: (a: number) => any;
|
|
266
|
-
export const __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
|
|
267
|
-
export const __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
|
|
268
|
-
export const __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
|
|
269
|
-
export const __wbg_get_encodedcontent_compression: (a: number) => number;
|
|
270
|
-
export const __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
|
|
271
|
-
export const __wbg_get_encodedcontent_content: (a: number) => any;
|
|
272
|
-
export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
273
|
-
export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
274
|
-
export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
|
|
275
|
-
export const generateInboxId: (a: any) => [number, number, number, number];
|
|
276
303
|
export const __wbg_listmessagesoptions_free: (a: number, b: number) => void;
|
|
277
304
|
export const __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
|
|
278
305
|
export const __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
|
|
@@ -300,39 +327,31 @@ export const __wbg_get_messagewithreactions_message: (a: number) => number;
|
|
|
300
327
|
export const __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
|
|
301
328
|
export const __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
|
|
302
329
|
export const __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
|
|
303
|
-
export const __wbg_opfs_free: (a: number, b: number) => void;
|
|
304
|
-
export const opfs_exists: () => number;
|
|
305
|
-
export const opfs_error: () => [number, number];
|
|
306
|
-
export const opfs_wipeFiles: () => any;
|
|
307
|
-
export const opfs_rm: (a: number, b: number) => [number, number, number];
|
|
308
|
-
export const opfs_getFileNames: () => [number, number];
|
|
309
|
-
export const opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
|
|
310
|
-
export const opfs_exportFile: (a: number, b: number) => [number, number, number, number];
|
|
311
|
-
export const opfs_getFileCount: () => number;
|
|
312
|
-
export const opfs_getCapacity: () => number;
|
|
313
|
-
export const opfs_addCapacity: (a: number) => any;
|
|
314
|
-
export const opfs_reduceCapacity: (a: number) => any;
|
|
315
330
|
export const __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
|
|
316
331
|
export const __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
317
332
|
export const __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
318
333
|
export const __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
319
334
|
export const __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
335
|
+
export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
320
336
|
export const __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
|
|
321
337
|
export const __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
322
338
|
export const __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
323
|
-
export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
324
339
|
export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
325
340
|
export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
326
341
|
export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
327
|
-
export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
328
|
-
export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
329
342
|
export const rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
|
|
330
343
|
export const rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
|
|
331
344
|
export const rust_sqlite_wasm_shim_emscripten_get_now: () => number;
|
|
332
|
-
export const sqlite3_os_init: () => number;
|
|
333
345
|
export const rust_sqlite_wasm_shim_malloc: (a: number) => number;
|
|
334
346
|
export const rust_sqlite_wasm_shim_free: (a: number) => void;
|
|
335
347
|
export const rust_sqlite_wasm_shim_realloc: (a: number, b: number) => number;
|
|
348
|
+
export const sqlite3_os_init: () => number;
|
|
349
|
+
export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
350
|
+
export const intounderlyingbytesource_type: (a: number) => number;
|
|
351
|
+
export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
352
|
+
export const intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
353
|
+
export const intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
354
|
+
export const intounderlyingbytesource_cancel: (a: number) => void;
|
|
336
355
|
export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
337
356
|
export const intounderlyingsource_pull: (a: number, b: any) => any;
|
|
338
357
|
export const intounderlyingsource_cancel: (a: number) => void;
|
|
@@ -340,12 +359,6 @@ export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
|
340
359
|
export const intounderlyingsink_write: (a: number, b: any) => any;
|
|
341
360
|
export const intounderlyingsink_close: (a: number) => any;
|
|
342
361
|
export const intounderlyingsink_abort: (a: number, b: any) => any;
|
|
343
|
-
export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
344
|
-
export const intounderlyingbytesource_type: (a: number) => number;
|
|
345
|
-
export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
346
|
-
export const intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
347
|
-
export const intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
348
|
-
export const intounderlyingbytesource_cancel: (a: number) => void;
|
|
349
362
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
350
363
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
351
364
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
@@ -355,8 +368,10 @@ export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
|
355
368
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
356
369
|
export const __wbindgen_export_7: WebAssembly.Table;
|
|
357
370
|
export const __externref_table_dealloc: (a: number) => void;
|
|
358
|
-
export const
|
|
359
|
-
export const
|
|
360
|
-
export const
|
|
361
|
-
export const
|
|
371
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6040dd5f55152215: (a: number, b: number) => void;
|
|
372
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9b134efb6b08a208: (a: number, b: number) => void;
|
|
373
|
+
export const closure3984_externref_shim: (a: number, b: number, c: any) => void;
|
|
374
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f45197f24caef5a: (a: number, b: number) => void;
|
|
375
|
+
export const closure4877_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
|
|
376
|
+
export const closure4876_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
362
377
|
export const __wbindgen_start: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmtp/wasm-bindings",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "WASM bindings for the libXMTP rust library",
|
|
@@ -26,12 +26,13 @@
|
|
|
26
26
|
"scripts": {
|
|
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
|
-
"build:web": "RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals\" wasm-pack build --target web --out-dir ./dist --no-pack --release",
|
|
30
|
-
"build:web:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals\" wasm-pack build --target web --out-dir ./dist --no-pack --release",
|
|
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: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
31
|
"check": "cargo check --target wasm32-unknown-unknown",
|
|
32
32
|
"check:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang cargo check --target wasm32-unknown-unknown",
|
|
33
33
|
"clean": "rm -rf ./dist",
|
|
34
34
|
"clean:release": "rm ./dist/.gitignore",
|
|
35
|
+
"generate:version": "tsx scripts/version.ts",
|
|
35
36
|
"lint": "yarn lint:clippy && yarn lint:fmt",
|
|
36
37
|
"lint:macos": "yarn lint:clippy:macos && yarn lint:fmt",
|
|
37
38
|
"lint:clippy": "cargo clippy --locked --all-features --target wasm32-unknown-unknown --no-deps -- -D warnings",
|
|
@@ -61,8 +62,10 @@
|
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
|
63
64
|
"@sqlite.org/sqlite-wasm": "^3.47.0-build1",
|
|
64
|
-
"binaryen": "^
|
|
65
|
-
"
|
|
65
|
+
"binaryen": "^123.0.0",
|
|
66
|
+
"tsx": "^4.19.3",
|
|
67
|
+
"wasm-pack": "^0.13.1",
|
|
68
|
+
"zx": "^8.4.0"
|
|
66
69
|
},
|
|
67
70
|
"packageManager": "yarn@4.5.1"
|
|
68
71
|
}
|