@xmtp/wasm-bindings 1.1.3 → 1.2.0-dev.878fd38
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 +228 -188
- package/dist/bindings_wasm.js +338 -117
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +195 -180
- package/dist/version.json +5 -0
- package/package.json +7 -4
|
Binary file
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
4
|
export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
|
|
5
|
-
export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
6
|
-
export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
7
5
|
export const __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
|
|
8
6
|
export const __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
|
|
9
7
|
export const __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
|
|
@@ -25,169 +23,6 @@ export const __wbg_set_multiremoteattachment_attachments: (a: number, b: number,
|
|
|
25
23
|
export const multiremoteattachment_new: (a: number, b: number) => number;
|
|
26
24
|
export const encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
27
25
|
export const decodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
28
|
-
export const __wbg_reaction_free: (a: number, b: number) => void;
|
|
29
|
-
export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
30
|
-
export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
31
|
-
export const __wbg_get_reaction_action: (a: number) => number;
|
|
32
|
-
export const __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
33
|
-
export const __wbg_get_reaction_content: (a: number) => [number, number];
|
|
34
|
-
export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
35
|
-
export const __wbg_get_reaction_schema: (a: number) => number;
|
|
36
|
-
export const __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
37
|
-
export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
38
|
-
export const encodeReaction: (a: number) => [number, number, number];
|
|
39
|
-
export const decodeReaction: (a: any) => [number, number, number];
|
|
40
|
-
export const __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
41
|
-
export const groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
42
|
-
export const groupmetadata_conversationType: (a: number) => [number, number];
|
|
43
|
-
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
|
-
export const __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
|
|
47
|
-
export const __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
|
|
48
|
-
export const __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
49
|
-
export const __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
50
|
-
export const __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
51
|
-
export const __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
52
|
-
export const __wbg_get_groupmember_consentState: (a: number) => number;
|
|
53
|
-
export const __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
54
|
-
export const groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
55
|
-
export const __wbg_conversation_free: (a: number, b: number) => void;
|
|
56
|
-
export const conversation_id: (a: number) => [number, number];
|
|
57
|
-
export const conversation_send: (a: number, b: number) => any;
|
|
58
|
-
export const conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
|
|
59
|
-
export const conversation_publishMessages: (a: number) => any;
|
|
60
|
-
export const conversation_sync: (a: number) => any;
|
|
61
|
-
export const conversation_findMessages: (a: number, b: number) => any;
|
|
62
|
-
export const conversation_findMessagesWithReactions: (a: number, b: number) => any;
|
|
63
|
-
export const conversation_listMembers: (a: number) => any;
|
|
64
|
-
export const conversation_adminList: (a: number) => [number, number, number, number];
|
|
65
|
-
export const conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
66
|
-
export const conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
67
|
-
export const conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
68
|
-
export const conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
69
|
-
export const conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
70
|
-
export const conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
71
|
-
export const conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
72
|
-
export const conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
73
|
-
export const conversation_groupPermissions: (a: number) => [number, number, number];
|
|
74
|
-
export const conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
75
|
-
export const conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
76
|
-
export const conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
77
|
-
export const conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
78
|
-
export const conversation_groupName: (a: number) => [number, number, number, number];
|
|
79
|
-
export const conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
80
|
-
export const conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
81
|
-
export const conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
82
|
-
export const conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
83
|
-
export const conversation_stream: (a: number, b: any) => [number, number, number];
|
|
84
|
-
export const conversation_createdAtNs: (a: number) => bigint;
|
|
85
|
-
export const conversation_isActive: (a: number) => [number, number, number];
|
|
86
|
-
export const conversation_pausedForVersion: (a: number) => [number, number, number, number];
|
|
87
|
-
export const conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
88
|
-
export const conversation_groupMetadata: (a: number) => any;
|
|
89
|
-
export const conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
90
|
-
export const conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
91
|
-
export const conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
|
|
92
|
-
export const conversation_removeMessageDisappearingSettings: (a: number) => any;
|
|
93
|
-
export const conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
94
|
-
export const conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
|
|
95
|
-
export const conversation_getHmacKeys: (a: number) => [number, number, number];
|
|
96
|
-
export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
97
|
-
export const __wbg_passkeysignature_free: (a: number, b: number) => void;
|
|
98
|
-
export const client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
99
|
-
export const client_addWalletSignatureText: (a: number, b: any) => any;
|
|
100
|
-
export const client_revokeWalletSignatureText: (a: number, b: any) => any;
|
|
101
|
-
export const client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
102
|
-
export const client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
103
|
-
export const client_addEcdsaSignature: (a: number, b: number, c: any) => any;
|
|
104
|
-
export const client_addPasskeySignature: (a: number, b: number, c: number) => any;
|
|
105
|
-
export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
106
|
-
export const client_applySignatureRequests: (a: number) => any;
|
|
107
|
-
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
108
|
-
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
109
|
-
export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
110
|
-
export const __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
111
|
-
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
112
|
-
export const streamcloser_end: (a: number) => void;
|
|
113
|
-
export const streamcloser_endAndWait: (a: number) => any;
|
|
114
|
-
export const streamcloser_waitForReady: (a: number) => any;
|
|
115
|
-
export const streamcloser_isClosed: (a: number) => number;
|
|
116
|
-
export const __wbg_client_free: (a: number, b: number) => void;
|
|
117
|
-
export const __wbg_logoptions_free: (a: number, b: number) => void;
|
|
118
|
-
export const __wbg_get_logoptions_structured: (a: number) => number;
|
|
119
|
-
export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
120
|
-
export const __wbg_get_logoptions_performance: (a: number) => number;
|
|
121
|
-
export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
122
|
-
export const __wbg_get_logoptions_level: (a: number) => number;
|
|
123
|
-
export const __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
124
|
-
export const logoptions_new: (a: number, b: number, c: number) => number;
|
|
125
|
-
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) => any;
|
|
126
|
-
export const client_accountIdentifier: (a: number) => any;
|
|
127
|
-
export const client_inboxId: (a: number) => [number, number];
|
|
128
|
-
export const client_isRegistered: (a: number) => number;
|
|
129
|
-
export const client_installationId: (a: number) => [number, number];
|
|
130
|
-
export const client_installationIdBytes: (a: number) => any;
|
|
131
|
-
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
132
|
-
export const client_registerIdentity: (a: number) => any;
|
|
133
|
-
export const client_sendHistorySyncRequest: (a: number) => any;
|
|
134
|
-
export const client_sendConsentSyncRequest: (a: number) => any;
|
|
135
|
-
export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
136
|
-
export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
137
|
-
export const client_conversations: (a: number) => number;
|
|
138
|
-
export const __wbg_installation_free: (a: number, b: number) => void;
|
|
139
|
-
export const __wbg_get_installation_bytes: (a: number) => any;
|
|
140
|
-
export const __wbg_set_installation_bytes: (a: number, b: any) => void;
|
|
141
|
-
export const __wbg_get_installation_id: (a: number) => [number, number];
|
|
142
|
-
export const __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
143
|
-
export const __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
|
|
144
|
-
export const __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
145
|
-
export const installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
|
|
146
|
-
export const __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
147
|
-
export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
148
|
-
export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
149
|
-
export const __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
|
|
150
|
-
export const __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
|
|
151
|
-
export const __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
152
|
-
export const __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
|
|
153
|
-
export const __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
|
|
154
|
-
export const __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
|
|
155
|
-
export const inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
|
|
156
|
-
export const client_inboxState: (a: number, b: number) => any;
|
|
157
|
-
export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
158
|
-
export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
159
|
-
export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
160
|
-
export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
161
|
-
export const __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
162
|
-
export const __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
163
|
-
export const __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
164
|
-
export const __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
165
|
-
export const __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
166
|
-
export const __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
167
|
-
export const __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
168
|
-
export const __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
169
|
-
export const __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
170
|
-
export const __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
171
|
-
export const __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
172
|
-
export const __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
173
|
-
export const __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
174
|
-
export const __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
175
|
-
export const permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
176
|
-
export const __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
177
|
-
export const grouppermissions_policyType: (a: number) => [number, number, number];
|
|
178
|
-
export const grouppermissions_policySet: (a: number) => [number, number, number];
|
|
179
|
-
export const __wbg_consent_free: (a: number, b: number) => void;
|
|
180
|
-
export const __wbg_get_consent_entityType: (a: number) => number;
|
|
181
|
-
export const __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
182
|
-
export const __wbg_get_consent_state: (a: number) => number;
|
|
183
|
-
export const __wbg_set_consent_state: (a: number, b: number) => void;
|
|
184
|
-
export const __wbg_get_consent_entity: (a: number) => [number, number];
|
|
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];
|
|
191
26
|
export const __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
192
27
|
export const __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
|
|
193
28
|
export const __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
|
|
@@ -252,6 +87,8 @@ export const conversations_streamAllMessages: (a: number, b: any, c: number) =>
|
|
|
252
87
|
export const conversations_streamConsent: (a: number, b: any) => [number, number, number];
|
|
253
88
|
export const conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
254
89
|
export const __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
90
|
+
export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
91
|
+
export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
255
92
|
export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
256
93
|
export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
257
94
|
export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
@@ -271,8 +108,6 @@ export const __wbg_set_encodedcontent_compression: (a: number, b: number) => voi
|
|
|
271
108
|
export const __wbg_get_encodedcontent_content: (a: number) => any;
|
|
272
109
|
export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
273
110
|
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
111
|
export const __wbg_listmessagesoptions_free: (a: number, b: number) => void;
|
|
277
112
|
export const __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
|
|
278
113
|
export const __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
|
|
@@ -301,6 +136,7 @@ export const __wbg_set_messagewithreactions_message: (a: number, b: number) => v
|
|
|
301
136
|
export const __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
|
|
302
137
|
export const __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
|
|
303
138
|
export const __wbg_opfs_free: (a: number, b: number) => void;
|
|
139
|
+
export const opfs_init_sqlite_opfs: () => any;
|
|
304
140
|
export const opfs_exists: () => number;
|
|
305
141
|
export const opfs_error: () => [number, number];
|
|
306
142
|
export const opfs_wipeFiles: () => any;
|
|
@@ -312,11 +148,17 @@ export const opfs_getFileCount: () => number;
|
|
|
312
148
|
export const opfs_getCapacity: () => number;
|
|
313
149
|
export const opfs_addCapacity: (a: number) => any;
|
|
314
150
|
export const opfs_reduceCapacity: (a: number) => any;
|
|
151
|
+
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
152
|
+
export const streamcloser_end: (a: number) => void;
|
|
153
|
+
export const streamcloser_endAndWait: (a: number) => any;
|
|
154
|
+
export const streamcloser_waitForReady: (a: number) => any;
|
|
155
|
+
export const streamcloser_isClosed: (a: number) => number;
|
|
315
156
|
export const __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
|
|
316
157
|
export const __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
317
158
|
export const __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
318
159
|
export const __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
319
160
|
export const __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
161
|
+
export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
320
162
|
export const __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
|
|
321
163
|
export const __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
322
164
|
export const __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
@@ -324,15 +166,192 @@ export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: numbe
|
|
|
324
166
|
export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
325
167
|
export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
326
168
|
export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
327
|
-
export const
|
|
328
|
-
export const
|
|
169
|
+
export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
170
|
+
export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
171
|
+
export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
172
|
+
export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
173
|
+
export const __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
174
|
+
export const __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
175
|
+
export const __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
176
|
+
export const __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
177
|
+
export const __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
178
|
+
export const __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
179
|
+
export const __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
180
|
+
export const __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
181
|
+
export const __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
182
|
+
export const __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
183
|
+
export const __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
184
|
+
export const __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
185
|
+
export const __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
186
|
+
export const __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
187
|
+
export const permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
188
|
+
export const __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
189
|
+
export const grouppermissions_policyType: (a: number) => [number, number, number];
|
|
190
|
+
export const grouppermissions_policySet: (a: number) => [number, number, number];
|
|
191
|
+
export const __wbg_consent_free: (a: number, b: number) => void;
|
|
192
|
+
export const __wbg_get_consent_entityType: (a: number) => number;
|
|
193
|
+
export const __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
194
|
+
export const __wbg_get_consent_state: (a: number) => number;
|
|
195
|
+
export const __wbg_set_consent_state: (a: number, b: number) => void;
|
|
196
|
+
export const __wbg_get_consent_entity: (a: number) => [number, number];
|
|
197
|
+
export const __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
|
|
198
|
+
export const consent_new: (a: number, b: number, c: number, d: number) => number;
|
|
199
|
+
export const client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
200
|
+
export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
201
|
+
export const conversation_consentState: (a: number) => [number, number, number];
|
|
202
|
+
export const conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
203
|
+
export const __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
204
|
+
export const groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
205
|
+
export const groupmetadata_conversationType: (a: number) => [number, number];
|
|
206
|
+
export const __wbg_groupmember_free: (a: number, b: number) => void;
|
|
207
|
+
export const __wbg_get_groupmember_accountIdentifiers: (a: number) => [number, number];
|
|
208
|
+
export const __wbg_set_groupmember_accountIdentifiers: (a: number, b: number, c: number) => void;
|
|
209
|
+
export const __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
210
|
+
export const __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
211
|
+
export const __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
212
|
+
export const __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
213
|
+
export const __wbg_get_groupmember_consentState: (a: number) => number;
|
|
214
|
+
export const __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
215
|
+
export const groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
216
|
+
export const __wbg_conversation_free: (a: number, b: number) => void;
|
|
217
|
+
export const conversation_id: (a: number) => [number, number];
|
|
218
|
+
export const conversation_send: (a: number, b: number) => any;
|
|
219
|
+
export const conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
|
|
220
|
+
export const conversation_publishMessages: (a: number) => any;
|
|
221
|
+
export const conversation_sync: (a: number) => any;
|
|
222
|
+
export const conversation_findMessages: (a: number, b: number) => any;
|
|
223
|
+
export const conversation_findMessagesWithReactions: (a: number, b: number) => any;
|
|
224
|
+
export const conversation_listMembers: (a: number) => any;
|
|
225
|
+
export const conversation_adminList: (a: number) => [number, number, number, number];
|
|
226
|
+
export const conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
227
|
+
export const conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
228
|
+
export const conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
229
|
+
export const conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
230
|
+
export const conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
231
|
+
export const conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
232
|
+
export const conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
233
|
+
export const conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
234
|
+
export const conversation_groupPermissions: (a: number) => [number, number, number];
|
|
235
|
+
export const conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
236
|
+
export const conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
237
|
+
export const conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
238
|
+
export const conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
239
|
+
export const conversation_groupName: (a: number) => [number, number, number, number];
|
|
240
|
+
export const conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
241
|
+
export const conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
242
|
+
export const conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
243
|
+
export const conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
244
|
+
export const conversation_stream: (a: number, b: any) => [number, number, number];
|
|
245
|
+
export const conversation_createdAtNs: (a: number) => bigint;
|
|
246
|
+
export const conversation_isActive: (a: number) => [number, number, number];
|
|
247
|
+
export const conversation_pausedForVersion: (a: number) => [number, number, number, number];
|
|
248
|
+
export const conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
249
|
+
export const conversation_groupMetadata: (a: number) => any;
|
|
250
|
+
export const conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
251
|
+
export const conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
252
|
+
export const conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
|
|
253
|
+
export const conversation_removeMessageDisappearingSettings: (a: number) => any;
|
|
254
|
+
export const conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
255
|
+
export const conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
|
|
256
|
+
export const conversation_getHmacKeys: (a: number) => [number, number, number];
|
|
257
|
+
export const getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
|
|
258
|
+
export const generateInboxId: (a: any) => [number, number, number, number];
|
|
259
|
+
export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
260
|
+
export const __wbg_passkeysignature_free: (a: number, b: number) => void;
|
|
261
|
+
export const client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
262
|
+
export const client_addWalletSignatureText: (a: number, b: any) => any;
|
|
263
|
+
export const client_revokeWalletSignatureText: (a: number, b: any) => any;
|
|
264
|
+
export const client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
265
|
+
export const client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
266
|
+
export const client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
|
|
267
|
+
export const client_addEcdsaSignature: (a: number, b: number, c: any) => any;
|
|
268
|
+
export const client_addPasskeySignature: (a: number, b: number, c: number) => any;
|
|
269
|
+
export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
270
|
+
export const client_applySignatureRequests: (a: number) => any;
|
|
271
|
+
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
272
|
+
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
273
|
+
export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
274
|
+
export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
275
|
+
export const __wbg_client_free: (a: number, b: number) => void;
|
|
276
|
+
export const __wbg_logoptions_free: (a: number, b: number) => void;
|
|
277
|
+
export const __wbg_get_logoptions_structured: (a: number) => number;
|
|
278
|
+
export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
279
|
+
export const __wbg_get_logoptions_performance: (a: number) => number;
|
|
280
|
+
export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
281
|
+
export const __wbg_get_logoptions_level: (a: number) => number;
|
|
282
|
+
export const __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
283
|
+
export const logoptions_new: (a: number, b: number, c: number) => number;
|
|
284
|
+
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) => any;
|
|
285
|
+
export const client_accountIdentifier: (a: number) => any;
|
|
286
|
+
export const client_inboxId: (a: number) => [number, number];
|
|
287
|
+
export const client_isRegistered: (a: number) => number;
|
|
288
|
+
export const client_installationId: (a: number) => [number, number];
|
|
289
|
+
export const client_installationIdBytes: (a: number) => any;
|
|
290
|
+
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
291
|
+
export const client_registerIdentity: (a: number) => any;
|
|
292
|
+
export const client_sendHistorySyncRequest: (a: number) => any;
|
|
293
|
+
export const client_sendConsentSyncRequest: (a: number) => any;
|
|
294
|
+
export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
295
|
+
export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
296
|
+
export const client_conversations: (a: number) => number;
|
|
297
|
+
export const __wbg_reaction_free: (a: number, b: number) => void;
|
|
298
|
+
export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
299
|
+
export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
300
|
+
export const __wbg_get_reaction_action: (a: number) => number;
|
|
301
|
+
export const __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
302
|
+
export const __wbg_get_reaction_content: (a: number) => [number, number];
|
|
303
|
+
export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
304
|
+
export const __wbg_get_reaction_schema: (a: number) => number;
|
|
305
|
+
export const __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
306
|
+
export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
307
|
+
export const encodeReaction: (a: number) => [number, number, number];
|
|
308
|
+
export const decodeReaction: (a: any) => [number, number, number];
|
|
309
|
+
export const __wbg_installation_free: (a: number, b: number) => void;
|
|
310
|
+
export const __wbg_get_installation_bytes: (a: number) => any;
|
|
311
|
+
export const __wbg_set_installation_bytes: (a: number, b: any) => void;
|
|
312
|
+
export const __wbg_get_installation_id: (a: number) => [number, number];
|
|
313
|
+
export const __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
314
|
+
export const __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
|
|
315
|
+
export const __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
316
|
+
export const installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
|
|
317
|
+
export const __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
318
|
+
export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
319
|
+
export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
320
|
+
export const __wbg_get_inboxstate_recoveryIdentifier: (a: number) => any;
|
|
321
|
+
export const __wbg_set_inboxstate_recoveryIdentifier: (a: number, b: any) => void;
|
|
322
|
+
export const __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
323
|
+
export const __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
|
|
324
|
+
export const __wbg_get_inboxstate_accountIdentifiers: (a: number) => [number, number];
|
|
325
|
+
export const __wbg_set_inboxstate_accountIdentifiers: (a: number, b: number, c: number) => void;
|
|
326
|
+
export const inboxstate_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => number;
|
|
327
|
+
export const __wbg_keypackagestatus_free: (a: number, b: number) => void;
|
|
328
|
+
export const __wbg_get_keypackagestatus_lifetime: (a: number) => number;
|
|
329
|
+
export const __wbg_set_keypackagestatus_lifetime: (a: number, b: number) => void;
|
|
330
|
+
export const __wbg_get_keypackagestatus_validationError: (a: number) => [number, number];
|
|
331
|
+
export const __wbg_set_keypackagestatus_validationError: (a: number, b: number, c: number) => void;
|
|
332
|
+
export const __wbg_lifetime_free: (a: number, b: number) => void;
|
|
333
|
+
export const __wbg_get_lifetime_not_before: (a: number) => bigint;
|
|
334
|
+
export const __wbg_set_lifetime_not_before: (a: number, b: bigint) => void;
|
|
335
|
+
export const __wbg_get_lifetime_not_after: (a: number) => bigint;
|
|
336
|
+
export const __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
|
|
337
|
+
export const client_inboxState: (a: number, b: number) => any;
|
|
338
|
+
export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
339
|
+
export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
340
|
+
export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
341
|
+
export const __wbg_get_reaction_reference: (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 closure3995_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 closure4888_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
|
|
376
|
+
export const closure4887_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.
|
|
3
|
+
"version": "1.2.0-dev.878fd38",
|
|
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",
|
|
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
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",
|
|
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
|
}
|