@xmtp/wasm-bindings 1.9.0 → 1.10.0-dev.0b43b93

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.
Binary file
@@ -1,39 +1,44 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
5
- export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
6
- export const client_inboxState: (a: number, b: number) => any;
7
- export const inboxStateFromInboxIds: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
8
4
  export const __wbg_authhandle_free: (a: number, b: number) => void;
9
5
  export const authhandle_id: (a: number) => number;
10
6
  export const authhandle_new: () => number;
11
7
  export const authhandle_set: (a: number, b: any) => any;
12
8
  export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
13
9
  export const client_setConsentStates: (a: number, b: number, c: number) => any;
14
- export const contentTypeGroupUpdated: () => any;
15
- export const contentTypeLeaveRequest: () => any;
16
- export const contentTypeMarkdown: () => any;
17
- export const contentTypeText: () => any;
10
+ export const contentTypeReply: () => any;
18
11
  export const conversation_consentState: (a: number) => [number, number, number];
19
12
  export const conversation_updateConsentState: (a: number, b: number) => [number, number];
20
- export const encodeMarkdown: (a: number, b: number) => [number, number, number];
21
- export const encodeText: (a: number, b: number) => [number, number, number];
13
+ export const client_fetchLatestInboxUpdatesCount: (a: number, b: number, c: number, d: number) => any;
14
+ export const client_fetchOwnInboxUpdatesCount: (a: number, b: number) => any;
15
+ export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
16
+ export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
17
+ export const client_inboxState: (a: number, b: number) => any;
18
+ export const generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
19
+ export const getInboxIdForIdentifier: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
20
+ export const inboxStateFromInboxIds: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
21
+ export const metadataFieldName: (a: number) => [number, number];
22
+ export const opfsClearAll: () => any;
23
+ export const opfsDeleteFile: (a: number, b: number) => any;
24
+ export const opfsExportDb: (a: number, b: number) => any;
25
+ export const opfsFileCount: () => any;
26
+ export const opfsFileExists: (a: number, b: number) => any;
27
+ export const opfsImportDb: (a: number, b: number, c: any) => any;
28
+ export const opfsInit: () => any;
29
+ export const opfsListFiles: () => any;
30
+ export const opfsPoolCapacity: () => any;
22
31
  export const __wbg_client_free: (a: number, b: number) => void;
23
32
  export const __wbg_conversation_free: (a: number, b: number) => void;
24
33
  export const __wbg_conversationlistitem_free: (a: number, b: number) => void;
25
34
  export const __wbg_conversations_free: (a: number, b: number) => void;
26
- export const __wbg_deletedmessage_free: (a: number, b: number) => void;
35
+ export const __wbg_devicesync_free: (a: number, b: number) => void;
27
36
  export const __wbg_get_conversationlistitem_conversation: (a: number) => number;
28
37
  export const __wbg_get_conversationlistitem_isCommitLogForked: (a: number) => number;
29
38
  export const __wbg_get_conversationlistitem_lastMessage: (a: number) => any;
30
- export const __wbg_get_deletedmessage_adminInboxId: (a: number) => [number, number];
31
- export const __wbg_get_deletedmessage_deletedBy: (a: number) => number;
32
39
  export const __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
33
40
  export const __wbg_set_conversationlistitem_isCommitLogForked: (a: number, b: number) => void;
34
41
  export const __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
35
- export const __wbg_set_deletedmessage_adminInboxId: (a: number, b: number, c: number) => void;
36
- export const __wbg_set_deletedmessage_deletedBy: (a: number, b: number) => void;
37
42
  export const __wbg_signaturerequesthandle_free: (a: number, b: number) => void;
38
43
  export const __wbg_streamcloser_free: (a: number, b: number) => void;
39
44
  export const applySignatureRequest: (a: number, b: number, c: number, d: number, e: number) => any;
@@ -49,7 +54,8 @@ export const client_changeRecoveryIdentifierSignatureRequest: (a: number, b: any
49
54
  export const client_clearAllStatistics: (a: number) => void;
50
55
  export const client_conversations: (a: number) => number;
51
56
  export const client_createInboxSignatureRequest: (a: number) => [number, number, number];
52
- export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
57
+ export const client_device_sync: (a: number) => number;
58
+ export const client_findInboxIdByIdentity: (a: number, b: any) => any;
53
59
  export const client_inboxId: (a: number) => [number, number];
54
60
  export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
55
61
  export const client_installationId: (a: number) => [number, number];
@@ -60,13 +66,25 @@ export const client_registerIdentity: (a: number, b: number) => any;
60
66
  export const client_revokeAllOtherInstallationsSignatureRequest: (a: number) => any;
61
67
  export const client_revokeInstallationsSignatureRequest: (a: number, b: number, c: number) => any;
62
68
  export const client_revokeWalletSignatureRequest: (a: number, b: any) => any;
63
- export const client_sendSyncRequest: (a: number) => any;
64
69
  export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
65
70
  export const client_syncPreferences: (a: number) => any;
66
71
  export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
72
+ export const contentTypeActions: () => any;
73
+ export const contentTypeAttachment: () => any;
74
+ export const contentTypeGroupUpdated: () => any;
75
+ export const contentTypeIntent: () => any;
76
+ export const contentTypeLeaveRequest: () => any;
77
+ export const contentTypeMarkdown: () => any;
78
+ export const contentTypeMultiRemoteAttachment: () => any;
79
+ export const contentTypeReaction: () => any;
80
+ export const contentTypeReadReceipt: () => any;
81
+ export const contentTypeRemoteAttachment: () => any;
82
+ export const contentTypeText: () => any;
83
+ export const contentTypeTransactionReference: () => any;
84
+ export const contentTypeWalletSendCalls: () => any;
67
85
  export const conversation_addAdmin: (a: number, b: number, c: number) => any;
68
86
  export const conversation_addMembers: (a: number, b: number, c: number) => any;
69
- export const conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
87
+ export const conversation_addMembersByIdentity: (a: number, b: number, c: number) => any;
70
88
  export const conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
71
89
  export const conversation_addedByInboxId: (a: number) => [number, number, number, number];
72
90
  export const conversation_adminList: (a: number) => [number, number, number, number];
@@ -101,7 +119,7 @@ export const conversation_publishMessages: (a: number) => any;
101
119
  export const conversation_publishStoredMessage: (a: number, b: number, c: number) => any;
102
120
  export const conversation_removeAdmin: (a: number, b: number, c: number) => any;
103
121
  export const conversation_removeMembers: (a: number, b: number, c: number) => any;
104
- export const conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
122
+ export const conversation_removeMembersByIdentity: (a: number, b: number, c: number) => any;
105
123
  export const conversation_removeMessageDisappearingSettings: (a: number) => any;
106
124
  export const conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
107
125
  export const conversation_send: (a: number, b: any, c: any) => any;
@@ -147,50 +165,38 @@ export const conversations_streamMessageDeletions: (a: number, b: any) => [numbe
147
165
  export const conversations_streamPreferences: (a: number, b: any) => [number, number, number];
148
166
  export const conversations_sync: (a: number) => any;
149
167
  export const conversations_syncAllConversations: (a: number, b: number, c: number) => any;
150
- 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, m: number, n: number, o: number, p: number, q: number, r: number, s: bigint, t: number, u: number, v: number) => any;
151
- export const revokeInstallationsSignatureRequest: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number) => [number, number, number];
152
- export const signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
153
- export const signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
154
- export const signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
155
- export const signaturerequesthandle_signatureText: (a: number) => any;
156
- export const streamcloser_end: (a: number) => void;
157
- export const streamcloser_endAndWait: (a: number) => any;
158
- export const streamcloser_isClosed: (a: number) => number;
159
- export const streamcloser_waitForReady: (a: number) => any;
160
- export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
161
- export const generateInboxId: (a: any, b: number, c: bigint) => [number, number, number, number];
162
- export const getInboxIdForIdentifier: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
163
- export const metadataFieldName: (a: number) => [number, number];
164
- export const contentTypeActions: () => any;
165
- export const contentTypeAttachment: () => any;
166
- export const contentTypeIntent: () => any;
167
- export const contentTypeMultiRemoteAttachment: () => any;
168
- export const contentTypeReaction: () => any;
169
- export const contentTypeReadReceipt: () => any;
170
- export const contentTypeRemoteAttachment: () => any;
171
- export const contentTypeReply: () => any;
172
- export const contentTypeTransactionReference: () => any;
173
- export const contentTypeWalletSendCalls: () => any;
168
+ 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, m: number, n: number, o: number, p: number, q: bigint, r: number, s: number, t: number) => any;
174
169
  export const decryptAttachment: (a: number, b: number, c: any) => [number, number, number];
170
+ export const devicesync_archiveMetadata: (a: number, b: any, c: any) => any;
171
+ export const devicesync_createArchive: (a: number, b: any, c: any) => any;
172
+ export const devicesync_importArchive: (a: number, b: any, c: any) => any;
173
+ export const devicesync_listAvailableArchives: (a: number, b: bigint) => [number, number, number, number];
174
+ export const devicesync_processSyncArchive: (a: number, b: number, c: number) => any;
175
+ export const devicesync_sendSyncArchive: (a: number, b: any, c: number, d: number, e: number, f: number) => any;
176
+ export const devicesync_sendSyncRequest: (a: number, b: any, c: number, d: number) => any;
177
+ export const devicesync_syncAllDeviceSyncGroups: (a: number) => any;
175
178
  export const encodeActions: (a: any) => [number, number, number];
176
179
  export const encodeAttachment: (a: any) => [number, number, number];
177
180
  export const encodeIntent: (a: any) => [number, number, number];
181
+ export const encodeMarkdown: (a: number, b: number) => [number, number, number];
178
182
  export const encodeMultiRemoteAttachment: (a: any) => [number, number, number];
179
183
  export const encodeReaction: (a: any) => [number, number, number];
180
184
  export const encodeReadReceipt: (a: any) => [number, number, number];
181
185
  export const encodeRemoteAttachment: (a: any) => [number, number, number];
186
+ export const encodeText: (a: number, b: number) => [number, number, number];
182
187
  export const encodeTransactionReference: (a: any) => [number, number, number];
183
188
  export const encodeWalletSendCalls: (a: any) => [number, number, number];
184
189
  export const encryptAttachment: (a: any) => [number, number, number];
185
- export const opfsClearAll: () => any;
186
- export const opfsDeleteFile: (a: number, b: number) => any;
187
- export const opfsExportDb: (a: number, b: number) => any;
188
- export const opfsFileCount: () => any;
189
- export const opfsFileExists: (a: number, b: number) => any;
190
- export const opfsImportDb: (a: number, b: number, c: any) => any;
191
- export const opfsInit: () => any;
192
- export const opfsListFiles: () => any;
193
- export const opfsPoolCapacity: () => any;
190
+ export const revokeInstallationsSignatureRequest: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number) => [number, number, number];
191
+ export const signaturerequesthandle_addEcdsaSignature: (a: number, b: any) => any;
192
+ export const signaturerequesthandle_addPasskeySignature: (a: number, b: any) => any;
193
+ export const signaturerequesthandle_addScwSignature: (a: number, b: any, c: any, d: bigint, e: number, f: bigint) => any;
194
+ export const signaturerequesthandle_signatureText: (a: number) => any;
195
+ export const streamcloser_end: (a: number) => void;
196
+ export const streamcloser_endAndWait: (a: number) => any;
197
+ export const streamcloser_isClosed: (a: number) => number;
198
+ export const streamcloser_waitForReady: (a: number) => any;
199
+ export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
194
200
  export const rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
195
201
  export const rust_zstd_wasm_shim_free: (a: number) => void;
196
202
  export const rust_zstd_wasm_shim_malloc: (a: number) => number;
@@ -210,33 +216,49 @@ export const rust_sqlite_wasm_realloc: (a: number, b: number) => number;
210
216
  export const sqlite3_os_end: () => number;
211
217
  export const sqlite3_os_init: () => number;
212
218
  export const task_worker_entry_point: (a: number) => [number, number];
213
- export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
214
- export const intounderlyingsource_cancel: (a: number) => void;
215
- export const intounderlyingsource_pull: (a: number, b: any) => any;
216
219
  export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
217
220
  export const intounderlyingsink_abort: (a: number, b: any) => any;
218
221
  export const intounderlyingsink_close: (a: number) => any;
219
222
  export const intounderlyingsink_write: (a: number, b: any) => any;
220
223
  export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
224
+ export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
221
225
  export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
222
226
  export const intounderlyingbytesource_cancel: (a: number) => void;
223
227
  export const intounderlyingbytesource_pull: (a: number, b: any) => any;
224
228
  export const intounderlyingbytesource_start: (a: number, b: any) => void;
225
229
  export const intounderlyingbytesource_type: (a: number) => number;
226
- export const wasm_bindgen__convert__closures_____invoke__hceddd2b8fc291040: (a: number, b: number) => void;
227
- export const wasm_bindgen__closure__destroy__hfbd660e60d498df9: (a: number, b: number) => void;
228
- export const wasm_bindgen__convert__closures_____invoke__hdff293b41f2cecc6: (a: number, b: number, c: any) => void;
229
- export const wasm_bindgen__closure__destroy__hed8af60076250245: (a: number, b: number) => void;
230
- export const wasm_bindgen__convert__closures_____invoke__h956b60152b2cf005: (a: number, b: number) => void;
231
- export const wasm_bindgen__closure__destroy__h3c5639ee43c80f22: (a: number, b: number) => void;
232
- export const wasm_bindgen__convert__closures_____invoke__h6af3cd86eb56f4b1: (a: number, b: number) => void;
233
- export const wasm_bindgen__closure__destroy__he7b712e0eb1b5ac1: (a: number, b: number) => void;
234
- export const wasm_bindgen__convert__closures_____invoke__h47a8fb56fc48c5fb: (a: number, b: number, c: any, d: any) => void;
230
+ export const intounderlyingsource_cancel: (a: number) => void;
231
+ export const intounderlyingsource_pull: (a: number, b: any) => any;
232
+ export const __wbg_wasmbindgentestcontext_free: (a: number, b: number) => void;
233
+ export const __wbgtest_console_debug: (a: any) => void;
234
+ export const __wbgtest_console_error: (a: any) => void;
235
+ export const __wbgtest_console_info: (a: any) => void;
236
+ export const __wbgtest_console_log: (a: any) => void;
237
+ export const __wbgtest_console_warn: (a: any) => void;
238
+ export const wasmbindgentestcontext_filtered_count: (a: number, b: number) => void;
239
+ export const wasmbindgentestcontext_include_ignored: (a: number, b: number) => void;
240
+ export const wasmbindgentestcontext_new: (a: number) => number;
241
+ export const wasmbindgentestcontext_run: (a: number, b: number, c: number) => any;
242
+ export const __wbgtest_cov_dump: () => [number, number];
243
+ export const __wbgtest_module_signature: () => [number, bigint];
244
+ export const __wbgbench_dump: () => [number, number];
245
+ export const __wbgbench_import: (a: number, b: number) => void;
246
+ export const __wbgtest_coverage_path: (a: number, b: number, c: number, d: number, e: number, f: bigint) => [number, number];
247
+ export const wasm_bindgen__closure__destroy__he86c9d9bb368f43f: (a: number, b: number) => void;
248
+ export const wasm_bindgen__closure__destroy__h213ec6c0cfaa8daa: (a: number, b: number) => void;
249
+ export const wasm_bindgen__closure__destroy__h006fa4718e4400fc: (a: number, b: number) => void;
250
+ export const wasm_bindgen__closure__destroy__hd56fbfc240f3eed8: (a: number, b: number) => void;
251
+ export const wasm_bindgen__convert__closures_____invoke__h4761911dc2bcd4ab: (a: number, b: number, c: any, d: number, e: any) => void;
252
+ export const wasm_bindgen__convert__closures_____invoke__h93371d492ea6dccf: (a: number, b: number, c: any, d: any) => void;
253
+ export const wasm_bindgen__convert__closures_____invoke__h01ab1ec45c07a95b: (a: number, b: number, c: any) => void;
254
+ export const wasm_bindgen__convert__closures_____invoke__h7478175f8808d1fa: (a: number, b: number) => void;
255
+ export const wasm_bindgen__convert__closures_____invoke__h7d2ee1dee7ec118b: (a: number, b: number) => void;
256
+ export const wasm_bindgen__convert__closures_____invoke__h48de3f26adb3eb8d: (a: number, b: number) => void;
257
+ export const __externref_table_alloc: () => number;
258
+ export const __wbindgen_externrefs: WebAssembly.Table;
235
259
  export const __wbindgen_malloc: (a: number, b: number) => number;
236
260
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
237
261
  export const __wbindgen_exn_store: (a: number) => void;
238
- export const __externref_table_alloc: () => number;
239
- export const __wbindgen_externrefs: WebAssembly.Table;
240
262
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
241
263
  export const __externref_drop_slice: (a: number, b: number) => void;
242
264
  export const __externref_table_dealloc: (a: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/wasm-bindings",
3
- "version": "1.9.0",
3
+ "version": "1.10.0-dev.0b43b93",
4
4
  "description": "WASM bindings for the libXMTP rust library",
5
5
  "keywords": [
6
6
  "xmtp",
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",
21
- "url": "git+https://git@github.com/xmtp/libxmtp.git",
22
- "directory": "bindings_wasm"
21
+ "url": "git+https://github.com/xmtp/libxmtp.git",
22
+ "directory": "bindings/wasm"
23
23
  },
24
24
  "license": "MIT",
25
25
  "type": "module",
@@ -68,12 +68,12 @@
68
68
  "binaryen": "^125.0.0",
69
69
  "playwright": "^1.56.1",
70
70
  "prettier": "^3.7.4",
71
- "prettier-plugin-packagejson": "^2.5.20",
71
+ "prettier-plugin-packagejson": "^3.0.0",
72
72
  "tsx": "^4.20.6",
73
73
  "typescript": "^5.9.3",
74
74
  "viem": "^2.31.3",
75
75
  "vitest": "^4.0.8",
76
- "wasm-pack": "^0.13.1"
76
+ "wasm-pack": "^0.14.0"
77
77
  },
78
78
  "packageManager": "yarn@4.11.0",
79
79
  "engines": {