@xmtp/wasm-bindings 1.2.0-rc3 → 1.2.0-rc5

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,6 +1,18 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const __wbg_consent_free: (a: number, b: number) => void;
5
+ export const __wbg_get_consent_entityType: (a: number) => number;
6
+ export const __wbg_set_consent_entityType: (a: number, b: number) => void;
7
+ export const __wbg_get_consent_state: (a: number) => number;
8
+ export const __wbg_set_consent_state: (a: number, b: number) => void;
9
+ export const __wbg_get_consent_entity: (a: number) => [number, number];
10
+ export const __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
11
+ export const consent_new: (a: number, b: number, c: number, d: number) => number;
12
+ export const client_setConsentStates: (a: number, b: number, c: number) => any;
13
+ export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
14
+ export const conversation_consentState: (a: number) => [number, number, number];
15
+ export const conversation_updateConsentState: (a: number, b: number) => [number, number];
4
16
  export const __wbg_listconversationsoptions_free: (a: number, b: number) => void;
5
17
  export const __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
6
18
  export const __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
@@ -60,7 +72,6 @@ export const conversations_findDmByTargetInboxId: (a: number, b: number, c: numb
60
72
  export const conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
61
73
  export const conversations_sync: (a: number) => any;
62
74
  export const conversations_syncAllConversations: (a: number, b: number, c: number) => any;
63
- export const conversations_syncDeviceSync: (a: number) => any;
64
75
  export const conversations_list: (a: number, b: number) => [number, number, number];
65
76
  export const conversations_getHmacKeys: (a: number) => [number, number, number];
66
77
  export const conversations_stream: (a: number, b: any, c: number) => [number, number, number];
@@ -68,8 +79,6 @@ export const conversations_streamAllMessages: (a: number, b: any, c: number, d:
68
79
  export const conversations_streamConsent: (a: number, b: any) => [number, number, number];
69
80
  export const conversations_streamPreferences: (a: number, b: any) => [number, number, number];
70
81
  export const __wbg_contenttypeid_free: (a: number, b: number) => void;
71
- export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
72
- export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
73
82
  export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
74
83
  export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
75
84
  export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
@@ -89,14 +98,66 @@ export const __wbg_set_encodedcontent_compression: (a: number, b: number) => voi
89
98
  export const __wbg_get_encodedcontent_content: (a: number) => any;
90
99
  export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
91
100
  export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
92
- export const __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
93
- export const __wbg_get_hmackey_epoch: (a: number) => bigint;
101
+ export const __wbg_listmessagesoptions_free: (a: number, b: number) => void;
102
+ export const __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
103
+ export const __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
104
+ export const __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
105
+ export const __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
106
+ export const __wbg_get_listmessagesoptions_direction: (a: number) => number;
107
+ export const __wbg_set_listmessagesoptions_direction: (a: number, b: number) => void;
108
+ export const __wbg_get_listmessagesoptions_kind: (a: number) => number;
109
+ export const __wbg_set_listmessagesoptions_kind: (a: number, b: number) => void;
110
+ export const listmessagesoptions_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint, g: number, h: number, i: number, j: number, k: number) => number;
111
+ export const __wbg_message_free: (a: number, b: number) => void;
112
+ export const __wbg_get_message_id: (a: number) => [number, number];
113
+ export const __wbg_set_message_id: (a: number, b: number, c: number) => void;
114
+ export const __wbg_get_message_convoId: (a: number) => [number, number];
115
+ export const __wbg_set_message_convoId: (a: number, b: number, c: number) => void;
116
+ export const __wbg_get_message_senderInboxId: (a: number) => [number, number];
117
+ export const __wbg_set_message_senderInboxId: (a: number, b: number, c: number) => void;
118
+ export const __wbg_get_message_content: (a: number) => number;
119
+ export const __wbg_set_message_content: (a: number, b: number) => void;
120
+ export const __wbg_get_message_kind: (a: number) => number;
121
+ export const __wbg_set_message_kind: (a: number, b: number) => void;
122
+ export const __wbg_get_message_deliveryStatus: (a: number) => number;
123
+ export const __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
124
+ export const message_new: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
125
+ export const __wbg_messagewithreactions_free: (a: number, b: number) => void;
126
+ export const __wbg_get_messagewithreactions_message: (a: number) => number;
127
+ export const __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
128
+ export const __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
129
+ export const __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
130
+ export const __wbg_opfs_free: (a: number, b: number) => void;
131
+ export const opfs_init_sqlite_opfs: () => any;
132
+ export const opfs_exists: () => number;
133
+ export const opfs_error: () => [number, number];
134
+ export const opfs_wipeFiles: () => any;
135
+ export const opfs_rm: (a: number, b: number) => [number, number, number];
136
+ export const opfs_getFileNames: () => [number, number];
137
+ export const opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
138
+ export const opfs_exportFile: (a: number, b: number) => [number, number, number, number];
139
+ export const opfs_getFileCount: () => number;
140
+ export const opfs_getCapacity: () => number;
141
+ export const opfs_addCapacity: (a: number) => any;
142
+ export const opfs_reduceCapacity: (a: number) => any;
143
+ export const __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
144
+ export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
94
145
  export const __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
95
146
  export const __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
96
- export const __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
97
- export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
98
- export const __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
147
+ export const __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
148
+ export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
99
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
+ export const __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
154
+ export const __wbg_get_hmackey_epoch: (a: number) => bigint;
155
+ export const __wbg_get_message_sentAtNs: (a: number) => bigint;
156
+ export const __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
157
+ export const __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
158
+ export const __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
159
+ export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
160
+ export const __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
100
161
  export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
101
162
  export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
102
163
  export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
@@ -122,8 +183,6 @@ export const multiremoteattachment_new: (a: number, b: number) => number;
122
183
  export const encodeMultiRemoteAttachment: (a: number) => [number, number, number];
123
184
  export const decodeMultiRemoteAttachment: (a: any) => [number, number, number];
124
185
  export const __wbg_reaction_free: (a: number, b: number) => void;
125
- export const __wbg_get_reaction_reference: (a: number) => [number, number];
126
- export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
127
186
  export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
128
187
  export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
129
188
  export const __wbg_get_reaction_action: (a: number) => number;
@@ -135,79 +194,12 @@ export const __wbg_set_reaction_schema: (a: number, b: number) => void;
135
194
  export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
136
195
  export const encodeReaction: (a: number) => [number, number, number];
137
196
  export const decodeReaction: (a: any) => [number, number, number];
138
- export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
139
- export const __wbg_passkeysignature_free: (a: number, b: number) => void;
140
- export const client_createInboxSignatureText: (a: number) => [number, number, number, number];
141
- export const client_addWalletSignatureText: (a: number, b: any) => any;
142
- export const client_revokeWalletSignatureText: (a: number, b: any) => any;
143
- export const client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
144
- export const client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
145
- export const client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
146
- export const client_addEcdsaSignature: (a: number, b: number, c: any) => any;
147
- export const client_addPasskeySignature: (a: number, b: number, c: number) => any;
148
- export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
149
- export const client_applySignatureRequests: (a: number) => any;
150
- export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
151
- export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
152
- export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
153
- export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
154
- export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
155
- export const __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
156
- export const __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
157
- export const __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
158
- export const __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
159
- export const __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
160
- export const __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
161
- export const __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
162
- export const __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
163
- export const __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
164
- export const __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
165
- export const __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
166
- export const __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
167
- export const __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
168
- export const __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
169
- export const permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
170
- export const __wbg_grouppermissions_free: (a: number, b: number) => void;
171
- export const grouppermissions_policyType: (a: number) => [number, number, number];
172
- export const grouppermissions_policySet: (a: number) => [number, number, number];
173
- export const __wbg_client_free: (a: number, b: number) => void;
174
- export const __wbg_logoptions_free: (a: number, b: number) => void;
175
- export const __wbg_get_logoptions_structured: (a: number) => number;
176
- export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
177
- export const __wbg_get_logoptions_performance: (a: number) => number;
178
- export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
179
- export const __wbg_get_logoptions_level: (a: number) => number;
180
- export const __wbg_set_logoptions_level: (a: number, b: number) => void;
181
- export const logoptions_new: (a: number, b: number, c: number) => number;
182
- 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;
183
- export const client_accountIdentifier: (a: number) => any;
184
- export const client_inboxId: (a: number) => [number, number];
185
- export const client_isRegistered: (a: number) => number;
186
- export const client_installationId: (a: number) => [number, number];
187
- export const client_installationIdBytes: (a: number) => any;
188
- export const client_canMessage: (a: number, b: number, c: number) => any;
189
- export const client_registerIdentity: (a: number) => any;
190
- export const client_sendSyncRequest: (a: number) => any;
191
- export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
192
- export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
193
- export const client_conversations: (a: number) => number;
194
- export const client_syncPreferences: (a: number) => any;
195
- export const __wbg_consent_free: (a: number, b: number) => void;
196
- export const __wbg_get_consent_entityType: (a: number) => number;
197
- export const __wbg_set_consent_entityType: (a: number, b: number) => void;
198
- export const __wbg_get_consent_state: (a: number) => number;
199
- export const __wbg_set_consent_state: (a: number, b: number) => void;
200
- export const __wbg_get_consent_entity: (a: number) => [number, number];
201
- export const __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
202
- export const consent_new: (a: number, b: number, c: number, d: number) => number;
203
- export const client_setConsentStates: (a: number, b: number, c: number) => any;
204
- export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
205
- export const conversation_consentState: (a: number) => [number, number, number];
206
- export const conversation_updateConsentState: (a: number, b: number) => [number, number];
207
197
  export const __wbg_groupmetadata_free: (a: number, b: number) => void;
208
198
  export const groupmetadata_creatorInboxId: (a: number) => [number, number];
209
199
  export const groupmetadata_conversationType: (a: number) => [number, number];
210
200
  export const __wbg_groupmember_free: (a: number, b: number) => void;
201
+ export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
202
+ export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
211
203
  export const __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
212
204
  export const __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
213
205
  export const __wbg_get_groupmember_installationIds: (a: number) => [number, number];
@@ -260,6 +252,79 @@ export const conversation_isMessageDisappearingEnabled: (a: number) => [number,
260
252
  export const conversation_getHmacKeys: (a: number) => [number, number, number];
261
253
  export const conversation_getDebugInfo: (a: number) => any;
262
254
  export const conversation_findDuplicateDms: (a: number) => any;
255
+ export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
256
+ export const __wbg_passkeysignature_free: (a: number, b: number) => void;
257
+ export const client_createInboxSignatureText: (a: number) => [number, number, number, number];
258
+ export const client_addWalletSignatureText: (a: number, b: any) => any;
259
+ export const client_revokeWalletSignatureText: (a: number, b: any) => any;
260
+ export const client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
261
+ export const client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
262
+ export const client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
263
+ export const client_addEcdsaSignature: (a: number, b: number, c: any) => any;
264
+ export const client_addPasskeySignature: (a: number, b: number, c: number) => any;
265
+ export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
266
+ export const client_applySignatureRequests: (a: number) => any;
267
+ export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
268
+ export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
269
+ export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
270
+ export const __wbg_get_reaction_reference: (a: number) => [number, number];
271
+ export const __wbg_apistats_free: (a: number, b: number) => void;
272
+ export const __wbg_get_apistats_upload_key_package: (a: number) => bigint;
273
+ export const __wbg_set_apistats_upload_key_package: (a: number, b: bigint) => void;
274
+ export const __wbg_get_apistats_fetch_key_package: (a: number) => bigint;
275
+ export const __wbg_set_apistats_fetch_key_package: (a: number, b: bigint) => void;
276
+ export const __wbg_get_apistats_send_group_messages: (a: number) => bigint;
277
+ export const __wbg_set_apistats_send_group_messages: (a: number, b: bigint) => void;
278
+ export const __wbg_get_apistats_send_welcome_messages: (a: number) => bigint;
279
+ export const __wbg_set_apistats_send_welcome_messages: (a: number, b: bigint) => void;
280
+ export const __wbg_get_apistats_query_group_messages: (a: number) => bigint;
281
+ export const __wbg_set_apistats_query_group_messages: (a: number, b: bigint) => void;
282
+ export const __wbg_get_apistats_query_welcome_messages: (a: number) => bigint;
283
+ export const __wbg_set_apistats_query_welcome_messages: (a: number, b: bigint) => void;
284
+ export const __wbg_get_apistats_subscribe_messages: (a: number) => bigint;
285
+ export const __wbg_set_apistats_subscribe_messages: (a: number, b: bigint) => void;
286
+ export const __wbg_get_apistats_subscribe_welcomes: (a: number) => bigint;
287
+ export const __wbg_set_apistats_subscribe_welcomes: (a: number, b: bigint) => void;
288
+ export const __wbg_identitystats_free: (a: number, b: number) => void;
289
+ export const __wbg_set_identitystats_publish_identity_update: (a: number, b: bigint) => void;
290
+ export const __wbg_set_identitystats_get_identity_updates_v2: (a: number, b: bigint) => void;
291
+ export const __wbg_set_identitystats_get_inbox_ids: (a: number, b: bigint) => void;
292
+ export const __wbg_set_identitystats_verify_smart_contract_wallet_signature: (a: number, b: bigint) => void;
293
+ export const __wbg_get_identitystats_publish_identity_update: (a: number) => bigint;
294
+ export const __wbg_get_identitystats_get_identity_updates_v2: (a: number) => bigint;
295
+ export const __wbg_get_identitystats_get_inbox_ids: (a: number) => bigint;
296
+ export const __wbg_get_identitystats_verify_smart_contract_wallet_signature: (a: number) => bigint;
297
+ export const __wbg_streamcloser_free: (a: number, b: number) => void;
298
+ export const streamcloser_end: (a: number) => void;
299
+ export const streamcloser_endAndWait: (a: number) => any;
300
+ export const streamcloser_waitForReady: (a: number) => any;
301
+ export const streamcloser_isClosed: (a: number) => number;
302
+ export const __wbg_client_free: (a: number, b: number) => void;
303
+ export const __wbg_logoptions_free: (a: number, b: number) => void;
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;
263
328
  export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
264
329
  export const generateInboxId: (a: any) => [number, number, number, number];
265
330
  export const __wbg_installation_free: (a: number, b: number) => void;
@@ -271,6 +336,8 @@ export const __wbg_get_installation_clientTimestampNs: (a: number) => [number, b
271
336
  export const __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
272
337
  export const installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
273
338
  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;
274
341
  export const __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
275
342
  export const __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
276
343
  export const __wbg_get_inboxstate_installations: (a: number) => [number, number];
@@ -291,65 +358,27 @@ export const __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
291
358
  export const client_inboxState: (a: number, b: number) => any;
292
359
  export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
293
360
  export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
294
- export const __wbg_streamcloser_free: (a: number, b: number) => void;
295
- export const streamcloser_end: (a: number) => void;
296
- export const streamcloser_endAndWait: (a: number) => any;
297
- export const streamcloser_waitForReady: (a: number) => any;
298
- export const streamcloser_isClosed: (a: number) => number;
299
- export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
300
- export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
301
- export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
302
- export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
303
- export const __wbg_listmessagesoptions_free: (a: number, b: number) => void;
304
- export const __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
305
- export const __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
306
- export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
307
- export const __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
308
- export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
309
- export const __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
310
- export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
311
- export const __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
312
- export const __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
313
- export const __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
314
- export const __wbg_get_listmessagesoptions_direction: (a: number) => number;
315
- export const __wbg_set_listmessagesoptions_direction: (a: number, b: number) => void;
316
- export const __wbg_get_listmessagesoptions_kind: (a: number) => number;
317
- export const __wbg_set_listmessagesoptions_kind: (a: number, b: number) => void;
318
- export const listmessagesoptions_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint, g: number, h: number, i: number, j: number, k: number) => number;
319
- export const __wbg_message_free: (a: number, b: number) => void;
320
- export const __wbg_get_message_id: (a: number) => [number, number];
321
- export const __wbg_set_message_id: (a: number, b: number, c: number) => void;
322
- export const __wbg_get_message_sentAtNs: (a: number) => bigint;
323
- export const __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
324
- export const __wbg_get_message_convoId: (a: number) => [number, number];
325
- export const __wbg_set_message_convoId: (a: number, b: number, c: number) => void;
326
- export const __wbg_get_message_senderInboxId: (a: number) => [number, number];
327
- export const __wbg_set_message_senderInboxId: (a: number, b: number, c: number) => void;
328
- export const __wbg_get_message_content: (a: number) => number;
329
- export const __wbg_set_message_content: (a: number, b: number) => void;
330
- export const __wbg_get_message_kind: (a: number) => number;
331
- export const __wbg_set_message_kind: (a: number, b: number) => void;
332
- export const __wbg_get_message_deliveryStatus: (a: number) => number;
333
- export const __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
334
- export const message_new: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
335
- export const __wbg_messagewithreactions_free: (a: number, b: number) => void;
336
- export const __wbg_get_messagewithreactions_message: (a: number) => number;
337
- export const __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
338
- export const __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
339
- export const __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
340
- export const __wbg_opfs_free: (a: number, b: number) => void;
341
- export const opfs_init_sqlite_opfs: () => any;
342
- export const opfs_exists: () => number;
343
- export const opfs_error: () => [number, number];
344
- export const opfs_wipeFiles: () => any;
345
- export const opfs_rm: (a: number, b: number) => [number, number, number];
346
- export const opfs_getFileNames: () => [number, number];
347
- export const opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
348
- export const opfs_exportFile: (a: number, b: number) => [number, number, number, number];
349
- export const opfs_getFileCount: () => number;
350
- export const opfs_getCapacity: () => number;
351
- export const opfs_addCapacity: (a: number) => any;
352
- export const opfs_reduceCapacity: (a: number) => any;
361
+ export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
362
+ export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
363
+ export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
364
+ export const __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
365
+ export const __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
366
+ export const __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
367
+ export const __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
368
+ export const __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
369
+ export const __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
370
+ export const __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
371
+ export const __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
372
+ export const __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
373
+ export const __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
374
+ export const __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
375
+ export const __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
376
+ export const __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
377
+ export const __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
378
+ export const permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
379
+ export const __wbg_grouppermissions_free: (a: number, b: number) => void;
380
+ export const grouppermissions_policyType: (a: number) => [number, number, number];
381
+ export const grouppermissions_policySet: (a: number) => [number, number, number];
353
382
  export const rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
354
383
  export const rust_zstd_wasm_shim_malloc: (a: number) => number;
355
384
  export const rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
@@ -361,9 +390,13 @@ export const rust_zstd_wasm_shim_memset: (a: number, b: number, c: number) => nu
361
390
  export const rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
362
391
  export const rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
363
392
  export const rust_sqlite_wasm_shim_emscripten_get_now: () => number;
393
+ export const rust_sqlite_wasm_shim_wasi_random_get: (a: number, b: number) => number;
394
+ export const rust_sqlite_wasm_shim_exit: (a: number) => void;
395
+ export const rust_sqlite_wasm_shim_abort_js: () => void;
364
396
  export const rust_sqlite_wasm_shim_malloc: (a: number) => number;
365
397
  export const rust_sqlite_wasm_shim_free: (a: number) => void;
366
398
  export const rust_sqlite_wasm_shim_realloc: (a: number, b: number) => number;
399
+ export const rust_sqlite_wasm_shim_calloc: (a: number, b: number) => number;
367
400
  export const sqlite3_os_init: () => number;
368
401
  export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
369
402
  export const intounderlyingbytesource_type: (a: number) => number;
@@ -387,10 +420,9 @@ export const __wbindgen_free: (a: number, b: number, c: number) => void;
387
420
  export const __externref_drop_slice: (a: number, b: number) => void;
388
421
  export const __wbindgen_export_7: WebAssembly.Table;
389
422
  export const __externref_table_dealloc: (a: number) => void;
390
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6040dd5f55152215: (a: number, b: number) => void;
391
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h89dafc0baf46c12b: (a: number, b: number) => void;
392
- export const closure4459_externref_shim: (a: number, b: number, c: any) => void;
393
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f45197f24caef5a: (a: number, b: number) => void;
394
- export const closure5466_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
395
- export const closure5465_externref_shim: (a: number, b: number, c: any, d: any) => void;
423
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h575b04d35ced4eef: (a: number, b: number) => void;
424
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h796728156b0a2ca1: (a: number, b: number) => void;
425
+ export const closure4502_externref_shim: (a: number, b: number, c: any) => void;
426
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5c244b99d95a8e7a: (a: number, b: number) => void;
427
+ export const closure5473_externref_shim: (a: number, b: number, c: any, d: any) => void;
396
428
  export const __wbindgen_start: () => void;
@@ -0,0 +1,11 @@
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
+ }
package/dist/version.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "branch": "release/v1.2",
3
- "version": "b4e982c",
4
- "date": "2025-05-09 18:12:27 +0000"
3
+ "version": "d990224",
4
+ "date": "2025-05-29 00:31:52 +0000"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/wasm-bindings",
3
- "version": "1.2.0-rc3",
3
+ "version": "1.2.0-rc5",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "WASM bindings for the libXMTP rust library",