@xmtp/wasm-bindings 0.0.16 → 0.0.18
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/README.md +12 -4
- package/dist/bindings_wasm.d.ts +299 -189
- package/dist/bindings_wasm.js +1037 -471
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +226 -176
- package/package.json +9 -5
- package/dist/snippets/sqlite-web-90f8afa7b0cd2303/src/js/sqlite3-diesel.js +0 -1
- package/dist/snippets/sqlite-web-90f8afa7b0cd2303/src/js/sqlite3-opfs-async-proxy.js +0 -1
- package/dist/snippets/sqlite-web-90f8afa7b0cd2303/src/js/sqlite3.wasm +0 -0
|
Binary file
|
|
@@ -1,170 +1,16 @@
|
|
|
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];
|
|
16
|
-
export const __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
17
|
-
export const groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
18
|
-
export const groupmetadata_conversationType: (a: number) => [number, number];
|
|
19
|
-
export const __wbg_groupmember_free: (a: number, b: number) => void;
|
|
20
|
-
export const __wbg_get_groupmember_accountAddresses: (a: number) => [number, number];
|
|
21
|
-
export const __wbg_set_groupmember_accountAddresses: (a: number, b: number, c: number) => void;
|
|
22
|
-
export const __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
23
|
-
export const __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
24
|
-
export const __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
25
|
-
export const __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
26
|
-
export const __wbg_get_groupmember_consentState: (a: number) => number;
|
|
27
|
-
export const __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
28
|
-
export const groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
29
|
-
export const __wbg_conversation_free: (a: number, b: number) => void;
|
|
30
|
-
export const conversation_id: (a: number) => [number, number];
|
|
31
|
-
export const conversation_send: (a: number, b: number) => any;
|
|
32
|
-
export const conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
|
|
33
|
-
export const conversation_publishMessages: (a: number) => any;
|
|
34
|
-
export const conversation_sync: (a: number) => any;
|
|
35
|
-
export const conversation_findMessages: (a: number, b: number) => any;
|
|
36
|
-
export const conversation_listMembers: (a: number) => any;
|
|
37
|
-
export const conversation_adminList: (a: number) => [number, number, number, number];
|
|
38
|
-
export const conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
39
|
-
export const conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
40
|
-
export const conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
41
|
-
export const conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
42
|
-
export const conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
43
|
-
export const conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
44
|
-
export const conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
45
|
-
export const conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
46
|
-
export const conversation_groupPermissions: (a: number) => [number, number, number];
|
|
47
|
-
export const conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
48
|
-
export const conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
49
|
-
export const conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
50
|
-
export const conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
51
|
-
export const conversation_groupName: (a: number) => [number, number, number, number];
|
|
52
|
-
export const conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
53
|
-
export const conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
54
|
-
export const conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
55
|
-
export const conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
56
|
-
export const conversation_stream: (a: number, b: any) => [number, number, number];
|
|
57
|
-
export const conversation_createdAtNs: (a: number) => bigint;
|
|
58
|
-
export const conversation_isActive: (a: number) => [number, number, number];
|
|
59
|
-
export const conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
60
|
-
export const conversation_groupMetadata: (a: number) => any;
|
|
61
|
-
export const conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
62
|
-
export const conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
63
|
-
export const conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
|
|
64
|
-
export const conversation_removeMessageDisappearingSettings: (a: number) => any;
|
|
65
|
-
export const conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
66
|
-
export const conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
|
|
67
|
-
export const __wbg_installation_free: (a: number, b: number) => void;
|
|
68
|
-
export const __wbg_get_installation_bytes: (a: number) => any;
|
|
69
|
-
export const __wbg_set_installation_bytes: (a: number, b: any) => void;
|
|
70
|
-
export const __wbg_get_installation_id: (a: number) => [number, number];
|
|
71
|
-
export const __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
72
|
-
export const __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
|
|
73
|
-
export const __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
74
|
-
export const installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
|
|
75
|
-
export const __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
76
|
-
export const __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
|
|
77
|
-
export const __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
|
|
78
|
-
export const __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
79
|
-
export const __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
|
|
80
|
-
export const __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
|
|
81
|
-
export const __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
|
|
82
|
-
export const inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
83
|
-
export const client_inboxState: (a: number, b: number) => any;
|
|
84
|
-
export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
85
|
-
export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
86
|
-
export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
87
|
-
export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
88
|
-
export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
89
|
-
export const __wbg_client_free: (a: number, b: number) => void;
|
|
90
|
-
export const __wbg_logoptions_free: (a: number, b: number) => void;
|
|
91
|
-
export const __wbg_get_logoptions_structured: (a: number) => number;
|
|
92
|
-
export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
93
|
-
export const __wbg_get_logoptions_performance: (a: number) => number;
|
|
94
|
-
export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
95
|
-
export const __wbg_get_logoptions_level: (a: number) => number;
|
|
96
|
-
export const __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
97
|
-
export const logoptions_new: (a: number, b: number, c: number) => number;
|
|
98
|
-
export const createClient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => any;
|
|
99
|
-
export const client_accountAddress: (a: number) => [number, number];
|
|
100
|
-
export const client_inboxId: (a: number) => [number, number];
|
|
101
|
-
export const client_isRegistered: (a: number) => number;
|
|
102
|
-
export const client_installationId: (a: number) => [number, number];
|
|
103
|
-
export const client_installationIdBytes: (a: number) => any;
|
|
104
|
-
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
105
|
-
export const client_registerIdentity: (a: number) => any;
|
|
106
|
-
export const client_sendHistorySyncRequest: (a: number) => any;
|
|
107
|
-
export const client_sendConsentSyncRequest: (a: number) => any;
|
|
108
|
-
export const client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
|
|
109
|
-
export const client_conversations: (a: number) => number;
|
|
110
|
-
export const getInboxIdForAddress: (a: number, b: number, c: number, d: number) => any;
|
|
111
|
-
export const generateInboxId: (a: number, b: number) => [number, number, number, number];
|
|
112
|
-
export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
113
|
-
export const client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
114
|
-
export const client_addWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
115
|
-
export const client_revokeWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
116
|
-
export const client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
117
|
-
export const client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
118
|
-
export const client_addSignature: (a: number, b: number, c: any) => any;
|
|
119
|
-
export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
120
|
-
export const client_applySignatureRequests: (a: number) => any;
|
|
121
|
-
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
122
|
-
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
123
|
-
export const __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
124
|
-
export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
125
|
-
export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
126
|
-
export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
127
|
-
export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
128
|
-
export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
129
|
-
export const __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
|
|
130
|
-
export const __wbg_get_contenttypeid_versionMinor: (a: number) => number;
|
|
131
|
-
export const __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
|
|
132
|
-
export const contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
133
|
-
export const __wbg_encodedcontent_free: (a: number, b: number) => void;
|
|
134
|
-
export const __wbg_get_encodedcontent_type: (a: number) => number;
|
|
135
|
-
export const __wbg_set_encodedcontent_type: (a: number, b: number) => void;
|
|
136
|
-
export const __wbg_get_encodedcontent_parameters: (a: number) => any;
|
|
137
|
-
export const __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
|
|
138
|
-
export const __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
|
|
139
|
-
export const __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
|
|
140
|
-
export const __wbg_get_encodedcontent_compression: (a: number) => number;
|
|
141
|
-
export const __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
|
|
142
|
-
export const __wbg_get_encodedcontent_content: (a: number) => any;
|
|
143
|
-
export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
144
|
-
export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
145
|
-
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
146
|
-
export const streamcloser_end: (a: number) => void;
|
|
147
|
-
export const streamcloser_endAndWait: (a: number) => any;
|
|
148
|
-
export const streamcloser_waitForReady: (a: number) => any;
|
|
149
|
-
export const streamcloser_isClosed: (a: number) => number;
|
|
150
4
|
export const __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
151
|
-
export const __wbg_get_listconversationsoptions_allowedStates: (a: number) => [number, number];
|
|
152
|
-
export const __wbg_set_listconversationsoptions_allowedStates: (a: number, b: number, c: number) => void;
|
|
153
5
|
export const __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
|
|
154
6
|
export const __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
|
|
155
|
-
export const __wbg_get_listconversationsoptions_conversationType: (a: number) => number;
|
|
156
|
-
export const __wbg_set_listconversationsoptions_conversationType: (a: number, b: number) => void;
|
|
157
|
-
export const __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
|
|
158
|
-
export const __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
|
|
159
7
|
export const __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
|
|
160
8
|
export const __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
161
9
|
export const __wbg_get_listconversationsoptions_includeDuplicateDms: (a: number) => number;
|
|
162
10
|
export const __wbg_set_listconversationsoptions_includeDuplicateDms: (a: number, b: number) => void;
|
|
163
|
-
export const __wbg_get_listconversationsoptions_includeSyncGroups: (a: number) => number;
|
|
164
|
-
export const __wbg_set_listconversationsoptions_includeSyncGroups: (a: number, b: number) => void;
|
|
165
11
|
export const __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
|
|
166
12
|
export const __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
167
|
-
export const listconversationsoptions_new: (a: number, b: number, c: number, d:
|
|
13
|
+
export const listconversationsoptions_new: (a: number, b: number, c: number, d: bigint, e: number, f: bigint, g: number, h: number, i: bigint) => number;
|
|
168
14
|
export const __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
|
|
169
15
|
export const __wbg_get_messagedisappearingsettings_inNs: (a: number) => bigint;
|
|
170
16
|
export const __wbg_set_messagedisappearingsettings_inNs: (a: number, b: bigint) => void;
|
|
@@ -214,12 +60,54 @@ export const conversations_stream: (a: number, b: any, c: number) => [number, nu
|
|
|
214
60
|
export const conversations_streamGroups: (a: number, b: any) => [number, number, number];
|
|
215
61
|
export const conversations_streamDms: (a: number, b: any) => [number, number, number];
|
|
216
62
|
export const conversations_streamAllMessages: (a: number, b: any, c: number) => [number, number, number];
|
|
63
|
+
export const conversations_streamConsent: (a: number, b: any) => [number, number, number];
|
|
64
|
+
export const conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
65
|
+
export const __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
66
|
+
export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
67
|
+
export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
68
|
+
export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
69
|
+
export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
70
|
+
export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
71
|
+
export const __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
|
|
72
|
+
export const __wbg_get_contenttypeid_versionMinor: (a: number) => number;
|
|
73
|
+
export const __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
|
|
74
|
+
export const contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
75
|
+
export const __wbg_encodedcontent_free: (a: number, b: number) => void;
|
|
76
|
+
export const __wbg_get_encodedcontent_type: (a: number) => number;
|
|
77
|
+
export const __wbg_set_encodedcontent_type: (a: number, b: number) => void;
|
|
78
|
+
export const __wbg_get_encodedcontent_parameters: (a: number) => any;
|
|
79
|
+
export const __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
|
|
80
|
+
export const __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
|
|
81
|
+
export const __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
|
|
82
|
+
export const __wbg_get_encodedcontent_compression: (a: number) => number;
|
|
83
|
+
export const __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
|
|
84
|
+
export const __wbg_get_encodedcontent_content: (a: number) => any;
|
|
85
|
+
export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
86
|
+
export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
87
|
+
export const __wbg_installation_free: (a: number, b: number) => void;
|
|
88
|
+
export const __wbg_get_installation_bytes: (a: number) => any;
|
|
89
|
+
export const __wbg_set_installation_bytes: (a: number, b: any) => void;
|
|
90
|
+
export const __wbg_get_installation_id: (a: number) => [number, number];
|
|
91
|
+
export const __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
92
|
+
export const __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
|
|
93
|
+
export const __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
94
|
+
export const installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
|
|
95
|
+
export const __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
96
|
+
export const __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
97
|
+
export const __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
|
|
98
|
+
export const __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
|
|
99
|
+
export const __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
|
|
100
|
+
export const inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
101
|
+
export const client_inboxState: (a: number, b: number) => any;
|
|
102
|
+
export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
217
103
|
export const __wbg_listmessagesoptions_free: (a: number, b: number) => void;
|
|
104
|
+
export const __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
|
|
105
|
+
export const __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
|
|
218
106
|
export const __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
|
|
219
107
|
export const __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
|
|
220
108
|
export const __wbg_get_listmessagesoptions_direction: (a: number) => number;
|
|
221
109
|
export const __wbg_set_listmessagesoptions_direction: (a: number, b: number) => void;
|
|
222
|
-
export const listmessagesoptions_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint, g: number, h: number) => number;
|
|
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) => number;
|
|
223
111
|
export const __wbg_message_free: (a: number, b: number) => void;
|
|
224
112
|
export const __wbg_get_message_id: (a: number) => [number, number];
|
|
225
113
|
export const __wbg_set_message_id: (a: number, b: number, c: number) => void;
|
|
@@ -234,6 +122,64 @@ export const __wbg_set_message_kind: (a: number, b: number) => void;
|
|
|
234
122
|
export const __wbg_get_message_deliveryStatus: (a: number) => number;
|
|
235
123
|
export const __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
|
|
236
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_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
|
|
131
|
+
export const __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
132
|
+
export const __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
|
|
133
|
+
export const __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
134
|
+
export const __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
135
|
+
export const __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
136
|
+
export const __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
|
|
137
|
+
export const __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
138
|
+
export const __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
139
|
+
export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
140
|
+
export const __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
|
|
141
|
+
export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
142
|
+
export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
143
|
+
export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
144
|
+
export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
145
|
+
export const __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
|
|
146
|
+
export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
147
|
+
export const __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
|
|
148
|
+
export const __wbg_client_free: (a: number, b: number) => void;
|
|
149
|
+
export const __wbg_logoptions_free: (a: number, b: number) => void;
|
|
150
|
+
export const __wbg_get_logoptions_structured: (a: number) => number;
|
|
151
|
+
export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
152
|
+
export const __wbg_get_logoptions_performance: (a: number) => number;
|
|
153
|
+
export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
154
|
+
export const __wbg_get_logoptions_level: (a: number) => number;
|
|
155
|
+
export const __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
156
|
+
export const logoptions_new: (a: number, b: number, c: number) => number;
|
|
157
|
+
export const createClient: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => any;
|
|
158
|
+
export const client_accountAddress: (a: number) => [number, number];
|
|
159
|
+
export const client_inboxId: (a: number) => [number, number];
|
|
160
|
+
export const client_isRegistered: (a: number) => number;
|
|
161
|
+
export const client_installationId: (a: number) => [number, number];
|
|
162
|
+
export const client_installationIdBytes: (a: number) => any;
|
|
163
|
+
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
164
|
+
export const client_registerIdentity: (a: number) => any;
|
|
165
|
+
export const client_sendHistorySyncRequest: (a: number) => any;
|
|
166
|
+
export const client_sendConsentSyncRequest: (a: number) => any;
|
|
167
|
+
export const client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
|
|
168
|
+
export const client_conversations: (a: number) => number;
|
|
169
|
+
export const __wbg_consent_free: (a: number, b: number) => void;
|
|
170
|
+
export const __wbg_get_consent_entityType: (a: number) => number;
|
|
171
|
+
export const __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
172
|
+
export const __wbg_get_consent_state: (a: number) => number;
|
|
173
|
+
export const __wbg_set_consent_state: (a: number, b: number) => void;
|
|
174
|
+
export const __wbg_get_consent_entity: (a: number) => [number, number];
|
|
175
|
+
export const __wbg_set_consent_entity: (a: number, b: number, c: number) => void;
|
|
176
|
+
export const consent_new: (a: number, b: number, c: number, d: number) => number;
|
|
177
|
+
export const client_setConsentStates: (a: number, b: number, c: number) => any;
|
|
178
|
+
export const client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
179
|
+
export const conversation_consentState: (a: number) => [number, number, number];
|
|
180
|
+
export const conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
181
|
+
export const getInboxIdForAddress: (a: number, b: number, c: number, d: number) => any;
|
|
182
|
+
export const generateInboxId: (a: number, b: number) => [number, number, number, number];
|
|
237
183
|
export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
238
184
|
export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
239
185
|
export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
@@ -255,19 +201,122 @@ export const permissionpolicyset_new: (a: number, b: number, c: number, d: numbe
|
|
|
255
201
|
export const __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
256
202
|
export const grouppermissions_policyType: (a: number) => [number, number, number];
|
|
257
203
|
export const grouppermissions_policySet: (a: number) => [number, number, number];
|
|
258
|
-
export const
|
|
259
|
-
export const
|
|
260
|
-
export const
|
|
261
|
-
export const
|
|
262
|
-
export const
|
|
263
|
-
export const
|
|
264
|
-
export const
|
|
265
|
-
export const
|
|
266
|
-
export const
|
|
267
|
-
export const
|
|
268
|
-
export const
|
|
269
|
-
export const
|
|
270
|
-
export const
|
|
204
|
+
export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
205
|
+
export const client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
206
|
+
export const client_addWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
207
|
+
export const client_revokeWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
208
|
+
export const client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
209
|
+
export const client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
210
|
+
export const client_addSignature: (a: number, b: number, c: any) => any;
|
|
211
|
+
export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
212
|
+
export const client_applySignatureRequests: (a: number) => any;
|
|
213
|
+
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
214
|
+
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
215
|
+
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
216
|
+
export const streamcloser_end: (a: number) => void;
|
|
217
|
+
export const streamcloser_endAndWait: (a: number) => any;
|
|
218
|
+
export const streamcloser_waitForReady: (a: number) => any;
|
|
219
|
+
export const streamcloser_isClosed: (a: number) => number;
|
|
220
|
+
export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
|
|
221
|
+
export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
222
|
+
export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
223
|
+
export const __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
|
|
224
|
+
export const __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
|
|
225
|
+
export const __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
|
|
226
|
+
export const __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
|
|
227
|
+
export const __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
|
|
228
|
+
export const __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
|
|
229
|
+
export const __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
|
|
230
|
+
export const __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
|
|
231
|
+
export const __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
|
|
232
|
+
export const __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
|
|
233
|
+
export const __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
|
|
234
|
+
export const __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
|
|
235
|
+
export const __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
|
|
236
|
+
export const __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
|
|
237
|
+
export const remoteattachmentinfo_new: (a: any, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: any, j: number, k: number, l: number) => number;
|
|
238
|
+
export const __wbg_multiremoteattachment_free: (a: number, b: number) => void;
|
|
239
|
+
export const __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
|
|
240
|
+
export const __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
|
|
241
|
+
export const multiremoteattachment_new: (a: number, b: number) => number;
|
|
242
|
+
export const encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
243
|
+
export const decodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
244
|
+
export const __wbg_reaction_free: (a: number, b: number) => void;
|
|
245
|
+
export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
246
|
+
export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
247
|
+
export const __wbg_get_reaction_content: (a: number) => [number, number];
|
|
248
|
+
export const __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
249
|
+
export const __wbg_get_reaction_schema: (a: number) => number;
|
|
250
|
+
export const __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
251
|
+
export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
252
|
+
export const encodeReaction: (a: number) => [number, number, number];
|
|
253
|
+
export const decodeReaction: (a: any) => [number, number, number];
|
|
254
|
+
export const __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
255
|
+
export const groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
256
|
+
export const groupmetadata_conversationType: (a: number) => [number, number];
|
|
257
|
+
export const __wbg_groupmember_free: (a: number, b: number) => void;
|
|
258
|
+
export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
259
|
+
export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
260
|
+
export const __wbg_get_groupmember_accountAddresses: (a: number) => [number, number];
|
|
261
|
+
export const __wbg_set_groupmember_accountAddresses: (a: number, b: number, c: number) => void;
|
|
262
|
+
export const __wbg_get_groupmember_installationIds: (a: number) => [number, number];
|
|
263
|
+
export const __wbg_set_groupmember_installationIds: (a: number, b: number, c: number) => void;
|
|
264
|
+
export const __wbg_get_groupmember_permissionLevel: (a: number) => number;
|
|
265
|
+
export const __wbg_set_groupmember_permissionLevel: (a: number, b: number) => void;
|
|
266
|
+
export const __wbg_get_groupmember_consentState: (a: number) => number;
|
|
267
|
+
export const __wbg_set_groupmember_consentState: (a: number, b: number) => void;
|
|
268
|
+
export const groupmember_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
269
|
+
export const __wbg_conversation_free: (a: number, b: number) => void;
|
|
270
|
+
export const conversation_id: (a: number) => [number, number];
|
|
271
|
+
export const conversation_send: (a: number, b: number) => any;
|
|
272
|
+
export const conversation_sendOptimistic: (a: number, b: number) => [number, number, number, number];
|
|
273
|
+
export const conversation_publishMessages: (a: number) => any;
|
|
274
|
+
export const conversation_sync: (a: number) => any;
|
|
275
|
+
export const conversation_findMessages: (a: number, b: number) => any;
|
|
276
|
+
export const conversation_findMessagesWithReactions: (a: number, b: number) => any;
|
|
277
|
+
export const conversation_listMembers: (a: number) => any;
|
|
278
|
+
export const conversation_adminList: (a: number) => [number, number, number, number];
|
|
279
|
+
export const conversation_superAdminList: (a: number) => [number, number, number, number];
|
|
280
|
+
export const conversation_isAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
281
|
+
export const conversation_isSuperAdmin: (a: number, b: number, c: number) => [number, number, number];
|
|
282
|
+
export const conversation_addMembers: (a: number, b: number, c: number) => any;
|
|
283
|
+
export const conversation_addAdmin: (a: number, b: number, c: number) => any;
|
|
284
|
+
export const conversation_removeAdmin: (a: number, b: number, c: number) => any;
|
|
285
|
+
export const conversation_addSuperAdmin: (a: number, b: number, c: number) => any;
|
|
286
|
+
export const conversation_removeSuperAdmin: (a: number, b: number, c: number) => any;
|
|
287
|
+
export const conversation_groupPermissions: (a: number) => [number, number, number];
|
|
288
|
+
export const conversation_addMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
289
|
+
export const conversation_removeMembers: (a: number, b: number, c: number) => any;
|
|
290
|
+
export const conversation_removeMembersByInboxId: (a: number, b: number, c: number) => any;
|
|
291
|
+
export const conversation_updateGroupName: (a: number, b: number, c: number) => any;
|
|
292
|
+
export const conversation_groupName: (a: number) => [number, number, number, number];
|
|
293
|
+
export const conversation_updateGroupImageUrlSquare: (a: number, b: number, c: number) => any;
|
|
294
|
+
export const conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
295
|
+
export const conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
296
|
+
export const conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
297
|
+
export const conversation_stream: (a: number, b: any) => [number, number, number];
|
|
298
|
+
export const conversation_createdAtNs: (a: number) => bigint;
|
|
299
|
+
export const conversation_isActive: (a: number) => [number, number, number];
|
|
300
|
+
export const conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
301
|
+
export const conversation_groupMetadata: (a: number) => any;
|
|
302
|
+
export const conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
303
|
+
export const conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
304
|
+
export const conversation_updateMessageDisappearingSettings: (a: number, b: number) => any;
|
|
305
|
+
export const conversation_removeMessageDisappearingSettings: (a: number) => any;
|
|
306
|
+
export const conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
307
|
+
export const conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
|
|
308
|
+
export const conversation_getHmacKeys: (a: number) => [number, number, number];
|
|
309
|
+
export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
310
|
+
export const __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
311
|
+
export const __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
312
|
+
export const __wbg_get_reaction_action: (a: number) => number;
|
|
313
|
+
export const rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
|
|
314
|
+
export const rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
|
|
315
|
+
export const rust_sqlite_wasm_shim_emscripten_get_now: () => number;
|
|
316
|
+
export const sqlite3_os_init: () => number;
|
|
317
|
+
export const rust_sqlite_wasm_shim_malloc: (a: number) => number;
|
|
318
|
+
export const rust_sqlite_wasm_shim_free: (a: number) => void;
|
|
319
|
+
export const rust_sqlite_wasm_shim_realloc: (a: number, b: number) => number;
|
|
271
320
|
export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
272
321
|
export const intounderlyingsource_pull: (a: number, b: any) => any;
|
|
273
322
|
export const intounderlyingsource_cancel: (a: number) => void;
|
|
@@ -283,14 +332,15 @@ export const intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
|
283
332
|
export const intounderlyingbytesource_cancel: (a: number) => void;
|
|
284
333
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
285
334
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
286
|
-
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
287
335
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
288
336
|
export const __externref_table_alloc: () => number;
|
|
289
|
-
export const
|
|
290
|
-
export const
|
|
291
|
-
export const __externref_table_dealloc: (a: number) => void;
|
|
337
|
+
export const __wbindgen_export_4: WebAssembly.Table;
|
|
338
|
+
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
292
339
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
293
|
-
export const
|
|
294
|
-
export const
|
|
295
|
-
export const
|
|
340
|
+
export const __wbindgen_export_7: WebAssembly.Table;
|
|
341
|
+
export const __externref_table_dealloc: (a: number) => void;
|
|
342
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hff1927556d6713ec: (a: number, b: number) => void;
|
|
343
|
+
export const closure3672_externref_shim: (a: number, b: number, c: any) => void;
|
|
344
|
+
export const closure4679_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
|
|
345
|
+
export const closure4678_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
296
346
|
export const __wbindgen_start: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xmtp/wasm-bindings",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "WASM bindings for the libXMTP rust library",
|
|
@@ -24,14 +24,18 @@
|
|
|
24
24
|
"directory": "bindings_wasm"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
|
-
"build": "yarn clean && yarn build:web && yarn
|
|
28
|
-
"build:
|
|
29
|
-
"build:
|
|
27
|
+
"build": "yarn clean && yarn build:web && yarn clean:release",
|
|
28
|
+
"build:macos": "yarn clean && yarn build:web:macos && yarn clean:release",
|
|
29
|
+
"build:web": "RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals\" wasm-pack build --target web --out-dir ./dist --no-pack --release",
|
|
30
|
+
"build:web:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang RUSTFLAGS=\"-Ctarget-feature=+bulk-memory,+mutable-globals\" wasm-pack build --target web --out-dir ./dist --no-pack --release",
|
|
31
|
+
"check": "cargo check --target wasm32-unknown-unknown",
|
|
30
32
|
"check:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang cargo check --target wasm32-unknown-unknown",
|
|
31
|
-
"clean:release": "rm -f ./dist/package.json",
|
|
32
33
|
"clean": "rm -rf ./dist",
|
|
34
|
+
"clean:release": "rm ./dist/.gitignore",
|
|
33
35
|
"lint": "yarn lint:clippy && yarn lint:fmt",
|
|
36
|
+
"lint:macos": "yarn lint:clippy:macos && yarn lint:fmt",
|
|
34
37
|
"lint:clippy": "cargo clippy --locked --all-features --target wasm32-unknown-unknown --no-deps -- -D warnings",
|
|
38
|
+
"lint:clippy:macos": "CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang cargo clippy --locked --all-features --target wasm32-unknown-unknown --no-deps -- -D warnings",
|
|
35
39
|
"lint:fmt": "cargo fmt --check",
|
|
36
40
|
"prepublishOnly": "yarn build",
|
|
37
41
|
"test": "wasm-pack test --chrome --headless"
|