@xmtp/wasm-bindings 0.0.12 → 0.0.13
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 +137 -111
- package/dist/bindings_wasm.js +236 -234
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +58 -58
- package/package.json +1 -1
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function createClient(host: string, inbox_id: string, account_address: string, db_path?: string, encryption_key?: Uint8Array, history_sync_url?: string, log_options?: LogOptions): Promise<Client>;
|
|
3
|
+
export function createClient(host: string, inbox_id: string, account_address: string, db_path?: string | null, encryption_key?: Uint8Array | null, history_sync_url?: string | null, log_options?: LogOptions | null): Promise<Client>;
|
|
4
4
|
export function getInboxIdForAddress(host: string, account_address: string): Promise<string | undefined>;
|
|
5
5
|
export function generateInboxId(account_address: string): string;
|
|
6
6
|
export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
|
|
@@ -84,12 +84,14 @@ type ReadableStreamType = "bytes";
|
|
|
84
84
|
export class Client {
|
|
85
85
|
private constructor();
|
|
86
86
|
free(): void;
|
|
87
|
-
canMessage(account_addresses:
|
|
87
|
+
canMessage(account_addresses: string[]): Promise<any>;
|
|
88
88
|
registerIdentity(): Promise<void>;
|
|
89
89
|
sendHistorySyncRequest(): Promise<void>;
|
|
90
90
|
sendConsentSyncRequest(): Promise<void>;
|
|
91
91
|
findInboxIdByAddress(address: string): Promise<string | undefined>;
|
|
92
92
|
conversations(): Conversations;
|
|
93
|
+
setConsentStates(records: Consent[]): Promise<void>;
|
|
94
|
+
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
93
95
|
/**
|
|
94
96
|
*
|
|
95
97
|
* * Get the client's inbox state.
|
|
@@ -104,14 +106,12 @@ export class Client {
|
|
|
104
106
|
addWalletSignatureText(new_wallet_address: string): Promise<string>;
|
|
105
107
|
revokeWalletSignatureText(wallet_address: string): Promise<string>;
|
|
106
108
|
revokeAllOtherInstallationsSignatureText(): Promise<string>;
|
|
107
|
-
revokeInstallationsSignatureText(installation_ids:
|
|
109
|
+
revokeInstallationsSignatureText(installation_ids: Uint8Array[]): Promise<string>;
|
|
108
110
|
addSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
|
|
109
|
-
addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint): Promise<void>;
|
|
111
|
+
addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint | null): Promise<void>;
|
|
110
112
|
applySignatureRequests(): Promise<void>;
|
|
111
113
|
signWithInstallationKey(signature_text: string): Uint8Array;
|
|
112
114
|
verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
|
|
113
|
-
setConsentStates(records: (Consent)[]): Promise<void>;
|
|
114
|
-
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
115
115
|
readonly accountAddress: string;
|
|
116
116
|
readonly inboxId: string;
|
|
117
117
|
readonly isRegistered: boolean;
|
|
@@ -149,21 +149,21 @@ export class Conversation {
|
|
|
149
149
|
*/
|
|
150
150
|
publishMessages(): Promise<void>;
|
|
151
151
|
sync(): Promise<void>;
|
|
152
|
-
findMessages(opts?: ListMessagesOptions): Promise<
|
|
152
|
+
findMessages(opts?: ListMessagesOptions | null): Promise<Message[]>;
|
|
153
153
|
listMembers(): Promise<any>;
|
|
154
|
-
adminList():
|
|
155
|
-
superAdminList():
|
|
154
|
+
adminList(): string[];
|
|
155
|
+
superAdminList(): string[];
|
|
156
156
|
isAdmin(inbox_id: string): boolean;
|
|
157
157
|
isSuperAdmin(inbox_id: string): boolean;
|
|
158
|
-
addMembers(account_addresses:
|
|
158
|
+
addMembers(account_addresses: string[]): Promise<void>;
|
|
159
159
|
addAdmin(inbox_id: string): Promise<void>;
|
|
160
160
|
removeAdmin(inbox_id: string): Promise<void>;
|
|
161
161
|
addSuperAdmin(inbox_id: string): Promise<void>;
|
|
162
162
|
removeSuperAdmin(inbox_id: string): Promise<void>;
|
|
163
163
|
groupPermissions(): GroupPermissions;
|
|
164
|
-
addMembersByInboxId(inbox_ids:
|
|
165
|
-
removeMembers(account_addresses:
|
|
166
|
-
removeMembersByInboxId(inbox_ids:
|
|
164
|
+
addMembersByInboxId(inbox_ids: string[]): Promise<void>;
|
|
165
|
+
removeMembers(account_addresses: string[]): Promise<void>;
|
|
166
|
+
removeMembersByInboxId(inbox_ids: string[]): Promise<void>;
|
|
167
167
|
updateGroupName(group_name: string): Promise<void>;
|
|
168
168
|
groupName(): string;
|
|
169
169
|
updateGroupImageUrlSquare(group_image_url_square: string): Promise<void>;
|
|
@@ -177,50 +177,61 @@ export class Conversation {
|
|
|
177
177
|
addedByInboxId(): string;
|
|
178
178
|
groupMetadata(): Promise<GroupMetadata>;
|
|
179
179
|
dmPeerInboxId(): string;
|
|
180
|
-
updatePermissionPolicy(permission_update_type: PermissionUpdateType, permission_policy_option: PermissionPolicy, metadata_field?: MetadataField): Promise<void>;
|
|
180
|
+
updatePermissionPolicy(permission_update_type: PermissionUpdateType, permission_policy_option: PermissionPolicy, metadata_field?: MetadataField | null): Promise<void>;
|
|
181
181
|
}
|
|
182
182
|
export class Conversations {
|
|
183
183
|
private constructor();
|
|
184
184
|
free(): void;
|
|
185
|
-
createGroup(account_addresses:
|
|
185
|
+
createGroup(account_addresses: string[], options?: CreateGroupOptions | null): Promise<Conversation>;
|
|
186
186
|
createDm(account_address: string): Promise<Conversation>;
|
|
187
187
|
findGroupById(group_id: string): Conversation;
|
|
188
188
|
findDmByTargetInboxId(target_inbox_id: string): Conversation;
|
|
189
189
|
findMessageById(message_id: string): Message;
|
|
190
190
|
sync(): Promise<void>;
|
|
191
191
|
syncAllConversations(): Promise<number>;
|
|
192
|
-
list(opts?: ListConversationsOptions): Array<any>;
|
|
193
|
-
listGroups(opts?: ListConversationsOptions): Array<any>;
|
|
194
|
-
listDms(opts?: ListConversationsOptions): Array<any>;
|
|
192
|
+
list(opts?: ListConversationsOptions | null): Array<any>;
|
|
193
|
+
listGroups(opts?: ListConversationsOptions | null): Array<any>;
|
|
194
|
+
listDms(opts?: ListConversationsOptions | null): Array<any>;
|
|
195
195
|
getHmacKeys(): any;
|
|
196
196
|
}
|
|
197
197
|
export class CreateGroupOptions {
|
|
198
198
|
free(): void;
|
|
199
|
-
constructor(permissions?: GroupPermissionsOptions, group_name?: string, group_image_url_square?: string, group_description?: string, group_pinned_frame_url?: string, custom_permission_policy_set?: PermissionPolicySet, message_expiration_from_ms?: bigint, message_expiration_ms?: bigint);
|
|
200
|
-
permissions
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
199
|
+
constructor(permissions?: GroupPermissionsOptions | null, group_name?: string | null, group_image_url_square?: string | null, group_description?: string | null, group_pinned_frame_url?: string | null, custom_permission_policy_set?: PermissionPolicySet | null, message_expiration_from_ms?: bigint | null, message_expiration_ms?: bigint | null);
|
|
200
|
+
get permissions(): GroupPermissionsOptions | undefined;
|
|
201
|
+
set permissions(value: GroupPermissionsOptions | null | undefined);
|
|
202
|
+
get groupName(): string | undefined;
|
|
203
|
+
set groupName(value: string | null | undefined);
|
|
204
|
+
get groupImageUrlSquare(): string | undefined;
|
|
205
|
+
set groupImageUrlSquare(value: string | null | undefined);
|
|
206
|
+
get groupDescription(): string | undefined;
|
|
207
|
+
set groupDescription(value: string | null | undefined);
|
|
208
|
+
get groupPinnedFrameUrl(): string | undefined;
|
|
209
|
+
set groupPinnedFrameUrl(value: string | null | undefined);
|
|
210
|
+
get customPermissionPolicySet(): PermissionPolicySet | undefined;
|
|
211
|
+
set customPermissionPolicySet(value: PermissionPolicySet | null | undefined);
|
|
212
|
+
get messageExpirationFromMillis(): bigint | undefined;
|
|
213
|
+
set messageExpirationFromMillis(value: bigint | null | undefined);
|
|
214
|
+
get messageExpirationMillis(): bigint | undefined;
|
|
215
|
+
set messageExpirationMillis(value: bigint | null | undefined);
|
|
208
216
|
}
|
|
209
217
|
export class EncodedContent {
|
|
210
218
|
free(): void;
|
|
211
|
-
constructor(type: ContentTypeId | undefined, parameters: any, fallback: string | undefined, compression: number | undefined, content: Uint8Array);
|
|
212
|
-
type
|
|
219
|
+
constructor(type: ContentTypeId | null | undefined, parameters: any, fallback: string | null | undefined, compression: number | null | undefined, content: Uint8Array);
|
|
220
|
+
get type(): ContentTypeId | undefined;
|
|
221
|
+
set type(value: ContentTypeId | null | undefined);
|
|
213
222
|
parameters: any;
|
|
214
|
-
fallback
|
|
215
|
-
|
|
223
|
+
get fallback(): string | undefined;
|
|
224
|
+
set fallback(value: string | null | undefined);
|
|
225
|
+
get compression(): number | undefined;
|
|
226
|
+
set compression(value: number | null | undefined);
|
|
216
227
|
content: Uint8Array;
|
|
217
228
|
}
|
|
218
229
|
export class GroupMember {
|
|
219
230
|
free(): void;
|
|
220
|
-
constructor(inbox_id: string, account_addresses:
|
|
231
|
+
constructor(inbox_id: string, account_addresses: string[], installation_ids: string[], permission_level: PermissionLevel, consent_state: ConsentState);
|
|
221
232
|
inboxId: string;
|
|
222
|
-
accountAddresses:
|
|
223
|
-
installationIds:
|
|
233
|
+
accountAddresses: string[];
|
|
234
|
+
installationIds: string[];
|
|
224
235
|
permissionLevel: PermissionLevel;
|
|
225
236
|
consentState: ConsentState;
|
|
226
237
|
}
|
|
@@ -244,18 +255,19 @@ export class HmacKey {
|
|
|
244
255
|
}
|
|
245
256
|
export class InboxState {
|
|
246
257
|
free(): void;
|
|
247
|
-
constructor(inbox_id: string, recovery_address: string, installations:
|
|
258
|
+
constructor(inbox_id: string, recovery_address: string, installations: Installation[], account_addresses: string[]);
|
|
248
259
|
inboxId: string;
|
|
249
260
|
recoveryAddress: string;
|
|
250
|
-
installations:
|
|
251
|
-
accountAddresses:
|
|
261
|
+
installations: Installation[];
|
|
262
|
+
accountAddresses: string[];
|
|
252
263
|
}
|
|
253
264
|
export class Installation {
|
|
254
265
|
free(): void;
|
|
255
|
-
constructor(bytes: Uint8Array, id: string, client_timestamp_ns?: bigint);
|
|
266
|
+
constructor(bytes: Uint8Array, id: string, client_timestamp_ns?: bigint | null);
|
|
256
267
|
bytes: Uint8Array;
|
|
257
268
|
id: string;
|
|
258
|
-
clientTimestampNs
|
|
269
|
+
get clientTimestampNs(): bigint | undefined;
|
|
270
|
+
set clientTimestampNs(value: bigint | null | undefined);
|
|
259
271
|
}
|
|
260
272
|
export class IntoUnderlyingByteSource {
|
|
261
273
|
private constructor();
|
|
@@ -281,28 +293,38 @@ export class IntoUnderlyingSource {
|
|
|
281
293
|
}
|
|
282
294
|
export class ListConversationsOptions {
|
|
283
295
|
free(): void;
|
|
284
|
-
constructor(allowed_states?: any[], conversation_type?: ConversationType, created_after_ns?: bigint, created_before_ns?: bigint, limit?: bigint);
|
|
285
|
-
allowedStates
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
296
|
+
constructor(allowed_states?: any[] | null, conversation_type?: ConversationType | null, created_after_ns?: bigint | null, created_before_ns?: bigint | null, limit?: bigint | null);
|
|
297
|
+
get allowedStates(): any[] | undefined;
|
|
298
|
+
set allowedStates(value: any[] | null | undefined);
|
|
299
|
+
get conversationType(): ConversationType | undefined;
|
|
300
|
+
set conversationType(value: ConversationType | null | undefined);
|
|
301
|
+
get createdAfterNs(): bigint | undefined;
|
|
302
|
+
set createdAfterNs(value: bigint | null | undefined);
|
|
303
|
+
get createdBeforeNs(): bigint | undefined;
|
|
304
|
+
set createdBeforeNs(value: bigint | null | undefined);
|
|
305
|
+
get limit(): bigint | undefined;
|
|
306
|
+
set limit(value: bigint | null | undefined);
|
|
290
307
|
}
|
|
291
308
|
export class ListMessagesOptions {
|
|
292
309
|
free(): void;
|
|
293
|
-
constructor(sent_before_ns?: bigint, sent_after_ns?: bigint, limit?: bigint, delivery_status?: DeliveryStatus, direction?: SortDirection);
|
|
294
|
-
sentBeforeNs
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
310
|
+
constructor(sent_before_ns?: bigint | null, sent_after_ns?: bigint | null, limit?: bigint | null, delivery_status?: DeliveryStatus | null, direction?: SortDirection | null);
|
|
311
|
+
get sentBeforeNs(): bigint | undefined;
|
|
312
|
+
set sentBeforeNs(value: bigint | null | undefined);
|
|
313
|
+
get sentAfterNs(): bigint | undefined;
|
|
314
|
+
set sentAfterNs(value: bigint | null | undefined);
|
|
315
|
+
get limit(): bigint | undefined;
|
|
316
|
+
set limit(value: bigint | null | undefined);
|
|
317
|
+
get deliveryStatus(): DeliveryStatus | undefined;
|
|
318
|
+
set deliveryStatus(value: DeliveryStatus | null | undefined);
|
|
319
|
+
get direction(): SortDirection | undefined;
|
|
320
|
+
set direction(value: SortDirection | null | undefined);
|
|
299
321
|
}
|
|
300
322
|
/**
|
|
301
323
|
* Specify options for the logger
|
|
302
324
|
*/
|
|
303
325
|
export class LogOptions {
|
|
304
326
|
free(): void;
|
|
305
|
-
constructor(structured: boolean, performance: boolean, level?: LogLevel);
|
|
327
|
+
constructor(structured: boolean, performance: boolean, level?: LogLevel | null);
|
|
306
328
|
/**
|
|
307
329
|
* enable structured JSON logging to stdout.Useful for third-party log viewers
|
|
308
330
|
*/
|
|
@@ -314,7 +336,11 @@ export class LogOptions {
|
|
|
314
336
|
/**
|
|
315
337
|
* filter for logs
|
|
316
338
|
*/
|
|
317
|
-
level
|
|
339
|
+
get level(): LogLevel | undefined;
|
|
340
|
+
/**
|
|
341
|
+
* filter for logs
|
|
342
|
+
*/
|
|
343
|
+
set level(value: LogLevel | null | undefined);
|
|
318
344
|
}
|
|
319
345
|
export class Message {
|
|
320
346
|
free(): void;
|
|
@@ -349,6 +375,29 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
349
375
|
|
|
350
376
|
export interface InitOutput {
|
|
351
377
|
readonly memory: WebAssembly.Memory;
|
|
378
|
+
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
379
|
+
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
380
|
+
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
381
|
+
readonly __wbg_get_permissionpolicyset_removeMemberPolicy: (a: number) => number;
|
|
382
|
+
readonly __wbg_set_permissionpolicyset_removeMemberPolicy: (a: number, b: number) => void;
|
|
383
|
+
readonly __wbg_get_permissionpolicyset_addAdminPolicy: (a: number) => number;
|
|
384
|
+
readonly __wbg_set_permissionpolicyset_addAdminPolicy: (a: number, b: number) => void;
|
|
385
|
+
readonly __wbg_get_permissionpolicyset_removeAdminPolicy: (a: number) => number;
|
|
386
|
+
readonly __wbg_set_permissionpolicyset_removeAdminPolicy: (a: number, b: number) => void;
|
|
387
|
+
readonly __wbg_get_permissionpolicyset_updateGroupNamePolicy: (a: number) => number;
|
|
388
|
+
readonly __wbg_set_permissionpolicyset_updateGroupNamePolicy: (a: number, b: number) => void;
|
|
389
|
+
readonly __wbg_get_permissionpolicyset_updateGroupDescriptionPolicy: (a: number) => number;
|
|
390
|
+
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
391
|
+
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
392
|
+
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
393
|
+
readonly __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number) => number;
|
|
394
|
+
readonly __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number, b: number) => void;
|
|
395
|
+
readonly __wbg_get_permissionpolicyset_updateMessageExpirationPolicy: (a: number) => number;
|
|
396
|
+
readonly __wbg_set_permissionpolicyset_updateMessageExpirationPolicy: (a: number, b: number) => void;
|
|
397
|
+
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
398
|
+
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
399
|
+
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
400
|
+
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
352
401
|
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
353
402
|
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
354
403
|
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
@@ -370,39 +419,6 @@ export interface InitOutput {
|
|
|
370
419
|
readonly client_sendConsentSyncRequest: (a: number) => any;
|
|
371
420
|
readonly client_findInboxIdByAddress: (a: number, b: number, c: number) => any;
|
|
372
421
|
readonly client_conversations: (a: number) => number;
|
|
373
|
-
readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => any;
|
|
374
|
-
readonly generateInboxId: (a: number, b: number) => [number, number, number, number];
|
|
375
|
-
readonly __wbg_installation_free: (a: number, b: number) => void;
|
|
376
|
-
readonly __wbg_get_installation_bytes: (a: number) => any;
|
|
377
|
-
readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
|
|
378
|
-
readonly __wbg_get_installation_id: (a: number) => [number, number];
|
|
379
|
-
readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
380
|
-
readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
|
|
381
|
-
readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
382
|
-
readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
|
|
383
|
-
readonly __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
384
|
-
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
385
|
-
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
386
|
-
readonly __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
|
|
387
|
-
readonly __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
|
|
388
|
-
readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
389
|
-
readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
|
|
390
|
-
readonly __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
|
|
391
|
-
readonly __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
|
|
392
|
-
readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
393
|
-
readonly client_inboxState: (a: number, b: number) => any;
|
|
394
|
-
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
395
|
-
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
396
|
-
readonly client_createInboxSignatureText: (a: number) => any;
|
|
397
|
-
readonly client_addWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
398
|
-
readonly client_revokeWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
399
|
-
readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
400
|
-
readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
401
|
-
readonly client_addSignature: (a: number, b: number, c: any) => any;
|
|
402
|
-
readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
403
|
-
readonly client_applySignatureRequests: (a: number) => any;
|
|
404
|
-
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
405
|
-
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
406
422
|
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
407
423
|
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
408
424
|
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
@@ -463,31 +479,41 @@ export interface InitOutput {
|
|
|
463
479
|
readonly conversation_groupMetadata: (a: number) => any;
|
|
464
480
|
readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
465
481
|
readonly conversation_updatePermissionPolicy: (a: number, b: number, c: number, d: number) => any;
|
|
482
|
+
readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => any;
|
|
483
|
+
readonly generateInboxId: (a: number, b: number) => [number, number, number, number];
|
|
484
|
+
readonly __wbg_installation_free: (a: number, b: number) => void;
|
|
485
|
+
readonly __wbg_get_installation_bytes: (a: number) => any;
|
|
486
|
+
readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
|
|
487
|
+
readonly __wbg_get_installation_id: (a: number) => [number, number];
|
|
488
|
+
readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
489
|
+
readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
|
|
490
|
+
readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
491
|
+
readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
|
|
492
|
+
readonly __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
493
|
+
readonly __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
|
|
494
|
+
readonly __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
|
|
495
|
+
readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
496
|
+
readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
|
|
497
|
+
readonly __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
|
|
498
|
+
readonly __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
|
|
499
|
+
readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
500
|
+
readonly client_inboxState: (a: number, b: number) => any;
|
|
501
|
+
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
466
502
|
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
503
|
+
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
467
504
|
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
468
|
-
readonly
|
|
469
|
-
readonly
|
|
470
|
-
readonly
|
|
471
|
-
readonly
|
|
472
|
-
readonly
|
|
473
|
-
readonly
|
|
474
|
-
readonly
|
|
475
|
-
readonly
|
|
476
|
-
readonly
|
|
477
|
-
readonly
|
|
478
|
-
readonly
|
|
479
|
-
readonly
|
|
480
|
-
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
481
|
-
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
482
|
-
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
483
|
-
readonly __wbg_get_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number) => number;
|
|
484
|
-
readonly __wbg_set_permissionpolicyset_updateGroupPinnedFrameUrlPolicy: (a: number, b: number) => void;
|
|
485
|
-
readonly __wbg_get_permissionpolicyset_updateMessageExpirationPolicy: (a: number) => number;
|
|
486
|
-
readonly __wbg_set_permissionpolicyset_updateMessageExpirationPolicy: (a: number, b: number) => void;
|
|
487
|
-
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
488
|
-
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
489
|
-
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
490
|
-
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
505
|
+
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
506
|
+
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
507
|
+
readonly client_createInboxSignatureText: (a: number) => any;
|
|
508
|
+
readonly client_addWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
509
|
+
readonly client_revokeWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
510
|
+
readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
511
|
+
readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
512
|
+
readonly client_addSignature: (a: number, b: number, c: any) => any;
|
|
513
|
+
readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
514
|
+
readonly client_applySignatureRequests: (a: number) => any;
|
|
515
|
+
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
516
|
+
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
491
517
|
readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
492
518
|
readonly __wbg_get_listconversationsoptions_allowedStates: (a: number) => [number, number];
|
|
493
519
|
readonly __wbg_set_listconversationsoptions_allowedStates: (a: number, b: number, c: number) => void;
|
|
@@ -608,8 +634,8 @@ export interface InitOutput {
|
|
|
608
634
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
609
635
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
610
636
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
611
|
-
readonly
|
|
612
|
-
readonly
|
|
637
|
+
readonly closure2596_externref_shim: (a: number, b: number, c: any) => void;
|
|
638
|
+
readonly closure3688_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
613
639
|
readonly __wbindgen_start: () => void;
|
|
614
640
|
}
|
|
615
641
|
|