@xmtp/wasm-bindings 0.0.13 → 0.0.15
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 +220 -149
- package/dist/bindings_wasm.js +706 -306
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +149 -122
- package/package.json +3 -3
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
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
3
|
export function getInboxIdForAddress(host: string, account_address: string): Promise<string | undefined>;
|
|
5
4
|
export function generateInboxId(account_address: string): string;
|
|
6
5
|
export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
|
|
6
|
+
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>;
|
|
7
7
|
export enum ConsentEntityType {
|
|
8
8
|
GroupId = 0,
|
|
9
9
|
InboxId = 1,
|
|
@@ -42,7 +42,8 @@ export enum MetadataField {
|
|
|
42
42
|
GroupName = 0,
|
|
43
43
|
Description = 1,
|
|
44
44
|
ImageUrlSquare = 2,
|
|
45
|
-
|
|
45
|
+
MessageExpirationFromMS = 3,
|
|
46
|
+
MessageExpirationMS = 4,
|
|
46
47
|
}
|
|
47
48
|
export enum PermissionLevel {
|
|
48
49
|
Member = 0,
|
|
@@ -84,6 +85,16 @@ type ReadableStreamType = "bytes";
|
|
|
84
85
|
export class Client {
|
|
85
86
|
private constructor();
|
|
86
87
|
free(): void;
|
|
88
|
+
createInboxSignatureText(): string | undefined;
|
|
89
|
+
addWalletSignatureText(new_wallet_address: string): Promise<string>;
|
|
90
|
+
revokeWalletSignatureText(wallet_address: string): Promise<string>;
|
|
91
|
+
revokeAllOtherInstallationsSignatureText(): Promise<string>;
|
|
92
|
+
revokeInstallationsSignatureText(installation_ids: Uint8Array[]): Promise<string>;
|
|
93
|
+
addSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
|
|
94
|
+
addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint | null): Promise<void>;
|
|
95
|
+
applySignatureRequests(): Promise<void>;
|
|
96
|
+
signWithInstallationKey(signature_text: string): Uint8Array;
|
|
97
|
+
verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
|
|
87
98
|
canMessage(account_addresses: string[]): Promise<any>;
|
|
88
99
|
registerIdentity(): Promise<void>;
|
|
89
100
|
sendHistorySyncRequest(): Promise<void>;
|
|
@@ -102,16 +113,6 @@ export class Client {
|
|
|
102
113
|
*/
|
|
103
114
|
inboxState(refresh_from_network: boolean): Promise<InboxState>;
|
|
104
115
|
getLatestInboxState(inbox_id: string): Promise<InboxState>;
|
|
105
|
-
createInboxSignatureText(): Promise<string | undefined>;
|
|
106
|
-
addWalletSignatureText(new_wallet_address: string): Promise<string>;
|
|
107
|
-
revokeWalletSignatureText(wallet_address: string): Promise<string>;
|
|
108
|
-
revokeAllOtherInstallationsSignatureText(): Promise<string>;
|
|
109
|
-
revokeInstallationsSignatureText(installation_ids: Uint8Array[]): Promise<string>;
|
|
110
|
-
addSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array): Promise<void>;
|
|
111
|
-
addScwSignature(signature_type: SignatureRequestType, signature_bytes: Uint8Array, chain_id: bigint, block_number?: bigint | null): Promise<void>;
|
|
112
|
-
applySignatureRequests(): Promise<void>;
|
|
113
|
-
signWithInstallationKey(signature_text: string): Uint8Array;
|
|
114
|
-
verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
|
|
115
116
|
readonly accountAddress: string;
|
|
116
117
|
readonly inboxId: string;
|
|
117
118
|
readonly isRegistered: boolean;
|
|
@@ -170,8 +171,7 @@ export class Conversation {
|
|
|
170
171
|
groupImageUrlSquare(): string;
|
|
171
172
|
updateGroupDescription(group_description: string): Promise<void>;
|
|
172
173
|
groupDescription(): string;
|
|
173
|
-
|
|
174
|
-
groupPinnedFrameUrl(): string;
|
|
174
|
+
stream(callback: any): StreamCloser;
|
|
175
175
|
createdAtNs(): bigint;
|
|
176
176
|
isActive(): boolean;
|
|
177
177
|
addedByInboxId(): string;
|
|
@@ -179,24 +179,43 @@ export class Conversation {
|
|
|
179
179
|
dmPeerInboxId(): string;
|
|
180
180
|
updatePermissionPolicy(permission_update_type: PermissionUpdateType, permission_policy_option: PermissionPolicy, metadata_field?: MetadataField | null): Promise<void>;
|
|
181
181
|
}
|
|
182
|
+
export class ConversationListItem {
|
|
183
|
+
free(): void;
|
|
184
|
+
constructor(conversation: Conversation, last_message?: Message | null);
|
|
185
|
+
conversation: Conversation;
|
|
186
|
+
get lastMessage(): Message | undefined;
|
|
187
|
+
set lastMessage(value: Message | null | undefined);
|
|
188
|
+
}
|
|
182
189
|
export class Conversations {
|
|
183
190
|
private constructor();
|
|
184
191
|
free(): void;
|
|
185
192
|
createGroup(account_addresses: string[], options?: CreateGroupOptions | null): Promise<Conversation>;
|
|
186
|
-
|
|
193
|
+
createGroupByInboxIds(inbox_ids: string[], options?: CreateGroupOptions | null): Promise<Conversation>;
|
|
194
|
+
createDm(account_address: string, options?: CreateDMOptions | null): Promise<Conversation>;
|
|
195
|
+
createDmByInboxId(inbox_id: string, options?: CreateDMOptions | null): Promise<Conversation>;
|
|
187
196
|
findGroupById(group_id: string): Conversation;
|
|
188
197
|
findDmByTargetInboxId(target_inbox_id: string): Conversation;
|
|
189
198
|
findMessageById(message_id: string): Message;
|
|
190
199
|
sync(): Promise<void>;
|
|
191
|
-
syncAllConversations(): Promise<number>;
|
|
200
|
+
syncAllConversations(consent_states?: any[] | null): Promise<number>;
|
|
192
201
|
list(opts?: ListConversationsOptions | null): Array<any>;
|
|
193
202
|
listGroups(opts?: ListConversationsOptions | null): Array<any>;
|
|
194
203
|
listDms(opts?: ListConversationsOptions | null): Array<any>;
|
|
195
204
|
getHmacKeys(): any;
|
|
205
|
+
stream(callback: any, conversation_type?: ConversationType | null): StreamCloser;
|
|
206
|
+
streamGroups(callback: any): StreamCloser;
|
|
207
|
+
streamDms(callback: any): StreamCloser;
|
|
208
|
+
streamAllMessages(callback: any, conversation_type?: ConversationType | null): StreamCloser;
|
|
209
|
+
}
|
|
210
|
+
export class CreateDMOptions {
|
|
211
|
+
free(): void;
|
|
212
|
+
constructor(message_disappearing_settings?: MessageDisappearingSettings | null);
|
|
213
|
+
get messageDisappearingSettings(): MessageDisappearingSettings | undefined;
|
|
214
|
+
set messageDisappearingSettings(value: MessageDisappearingSettings | null | undefined);
|
|
196
215
|
}
|
|
197
216
|
export class CreateGroupOptions {
|
|
198
217
|
free(): void;
|
|
199
|
-
constructor(permissions?: GroupPermissionsOptions | null, group_name?: string | null, group_image_url_square?: string | null, group_description?: string | null,
|
|
218
|
+
constructor(permissions?: GroupPermissionsOptions | null, group_name?: string | null, group_image_url_square?: string | null, group_description?: string | null, custom_permission_policy_set?: PermissionPolicySet | null, message_disappearing_settings?: MessageDisappearingSettings | null);
|
|
200
219
|
get permissions(): GroupPermissionsOptions | undefined;
|
|
201
220
|
set permissions(value: GroupPermissionsOptions | null | undefined);
|
|
202
221
|
get groupName(): string | undefined;
|
|
@@ -205,14 +224,10 @@ export class CreateGroupOptions {
|
|
|
205
224
|
set groupImageUrlSquare(value: string | null | undefined);
|
|
206
225
|
get groupDescription(): string | undefined;
|
|
207
226
|
set groupDescription(value: string | null | undefined);
|
|
208
|
-
get groupPinnedFrameUrl(): string | undefined;
|
|
209
|
-
set groupPinnedFrameUrl(value: string | null | undefined);
|
|
210
227
|
get customPermissionPolicySet(): PermissionPolicySet | undefined;
|
|
211
228
|
set customPermissionPolicySet(value: PermissionPolicySet | null | undefined);
|
|
212
|
-
get
|
|
213
|
-
set
|
|
214
|
-
get messageExpirationMillis(): bigint | undefined;
|
|
215
|
-
set messageExpirationMillis(value: bigint | null | undefined);
|
|
229
|
+
get messageDisappearingSettings(): MessageDisappearingSettings | undefined;
|
|
230
|
+
set messageDisappearingSettings(value: MessageDisappearingSettings | null | undefined);
|
|
216
231
|
}
|
|
217
232
|
export class EncodedContent {
|
|
218
233
|
free(): void;
|
|
@@ -293,15 +308,19 @@ export class IntoUnderlyingSource {
|
|
|
293
308
|
}
|
|
294
309
|
export class ListConversationsOptions {
|
|
295
310
|
free(): void;
|
|
296
|
-
constructor(allowed_states
|
|
311
|
+
constructor(allowed_states: any[] | null | undefined, consent_states: any[] | null | undefined, conversation_type: ConversationType | null | undefined, created_after_ns: bigint | null | undefined, created_before_ns: bigint | null | undefined, include_duplicate_dms: boolean, include_sync_groups: boolean, limit?: bigint | null);
|
|
297
312
|
get allowedStates(): any[] | undefined;
|
|
298
313
|
set allowedStates(value: any[] | null | undefined);
|
|
314
|
+
get consentStates(): any[] | undefined;
|
|
315
|
+
set consentStates(value: any[] | null | undefined);
|
|
299
316
|
get conversationType(): ConversationType | undefined;
|
|
300
317
|
set conversationType(value: ConversationType | null | undefined);
|
|
301
318
|
get createdAfterNs(): bigint | undefined;
|
|
302
319
|
set createdAfterNs(value: bigint | null | undefined);
|
|
303
320
|
get createdBeforeNs(): bigint | undefined;
|
|
304
321
|
set createdBeforeNs(value: bigint | null | undefined);
|
|
322
|
+
includeDuplicateDms: boolean;
|
|
323
|
+
includeSyncGroups: boolean;
|
|
305
324
|
get limit(): bigint | undefined;
|
|
306
325
|
set limit(value: bigint | null | undefined);
|
|
307
326
|
}
|
|
@@ -353,9 +372,15 @@ export class Message {
|
|
|
353
372
|
kind: GroupMessageKind;
|
|
354
373
|
deliveryStatus: DeliveryStatus;
|
|
355
374
|
}
|
|
375
|
+
export class MessageDisappearingSettings {
|
|
376
|
+
free(): void;
|
|
377
|
+
constructor(from_ns: bigint, in_ns: bigint);
|
|
378
|
+
from_ns: bigint;
|
|
379
|
+
in_ns: bigint;
|
|
380
|
+
}
|
|
356
381
|
export class PermissionPolicySet {
|
|
357
382
|
free(): void;
|
|
358
|
-
constructor(add_member_policy: PermissionPolicy, remove_member_policy: PermissionPolicy, add_admin_policy: PermissionPolicy, remove_admin_policy: PermissionPolicy, update_group_name_policy: PermissionPolicy, update_group_description_policy: PermissionPolicy, update_group_image_url_square_policy: PermissionPolicy,
|
|
383
|
+
constructor(add_member_policy: PermissionPolicy, remove_member_policy: PermissionPolicy, add_admin_policy: PermissionPolicy, remove_admin_policy: PermissionPolicy, update_group_name_policy: PermissionPolicy, update_group_description_policy: PermissionPolicy, update_group_image_url_square_policy: PermissionPolicy, update_message_disappearing_policy: PermissionPolicy);
|
|
359
384
|
addMemberPolicy: PermissionPolicy;
|
|
360
385
|
removeMemberPolicy: PermissionPolicy;
|
|
361
386
|
addAdminPolicy: PermissionPolicy;
|
|
@@ -363,8 +388,27 @@ export class PermissionPolicySet {
|
|
|
363
388
|
updateGroupNamePolicy: PermissionPolicy;
|
|
364
389
|
updateGroupDescriptionPolicy: PermissionPolicy;
|
|
365
390
|
updateGroupImageUrlSquarePolicy: PermissionPolicy;
|
|
366
|
-
|
|
367
|
-
|
|
391
|
+
updateMessageDisappearingPolicy: PermissionPolicy;
|
|
392
|
+
}
|
|
393
|
+
export class StreamCloser {
|
|
394
|
+
private constructor();
|
|
395
|
+
free(): void;
|
|
396
|
+
/**
|
|
397
|
+
* Signal the stream to end
|
|
398
|
+
* Does not wait for the stream to end.
|
|
399
|
+
*/
|
|
400
|
+
end(): void;
|
|
401
|
+
/**
|
|
402
|
+
* End the stream and `await` for it to shutdown
|
|
403
|
+
* Returns the `Result` of the task.
|
|
404
|
+
* End the stream and asynchronously wait for it to shutdown
|
|
405
|
+
*/
|
|
406
|
+
endAndWait(): Promise<void>;
|
|
407
|
+
waitForReady(): Promise<void>;
|
|
408
|
+
/**
|
|
409
|
+
* Checks if this stream is closed
|
|
410
|
+
*/
|
|
411
|
+
isClosed(): boolean;
|
|
368
412
|
}
|
|
369
413
|
export class Version {
|
|
370
414
|
private constructor();
|
|
@@ -375,6 +419,98 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
375
419
|
|
|
376
420
|
export interface InitOutput {
|
|
377
421
|
readonly memory: WebAssembly.Memory;
|
|
422
|
+
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
423
|
+
readonly streamcloser_end: (a: number) => void;
|
|
424
|
+
readonly streamcloser_endAndWait: (a: number) => any;
|
|
425
|
+
readonly streamcloser_waitForReady: (a: number) => any;
|
|
426
|
+
readonly streamcloser_isClosed: (a: number) => number;
|
|
427
|
+
readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
428
|
+
readonly __wbg_get_listconversationsoptions_allowedStates: (a: number) => [number, number];
|
|
429
|
+
readonly __wbg_set_listconversationsoptions_allowedStates: (a: number, b: number, c: number) => void;
|
|
430
|
+
readonly __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
|
|
431
|
+
readonly __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
|
|
432
|
+
readonly __wbg_get_listconversationsoptions_conversationType: (a: number) => number;
|
|
433
|
+
readonly __wbg_set_listconversationsoptions_conversationType: (a: number, b: number) => void;
|
|
434
|
+
readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
|
|
435
|
+
readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
|
|
436
|
+
readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
|
|
437
|
+
readonly __wbg_set_listconversationsoptions_createdBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
438
|
+
readonly __wbg_get_listconversationsoptions_includeDuplicateDms: (a: number) => number;
|
|
439
|
+
readonly __wbg_set_listconversationsoptions_includeDuplicateDms: (a: number, b: number) => void;
|
|
440
|
+
readonly __wbg_get_listconversationsoptions_includeSyncGroups: (a: number) => number;
|
|
441
|
+
readonly __wbg_set_listconversationsoptions_includeSyncGroups: (a: number, b: number) => void;
|
|
442
|
+
readonly __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
|
|
443
|
+
readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
444
|
+
readonly listconversationsoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: bigint, h: number, i: bigint, j: number, k: number, l: number, m: bigint) => number;
|
|
445
|
+
readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
|
|
446
|
+
readonly __wbg_get_messagedisappearingsettings_in_ns: (a: number) => bigint;
|
|
447
|
+
readonly __wbg_set_messagedisappearingsettings_in_ns: (a: number, b: bigint) => void;
|
|
448
|
+
readonly messagedisappearingsettings_new: (a: bigint, b: bigint) => number;
|
|
449
|
+
readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
|
|
450
|
+
readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
|
|
451
|
+
readonly __wbg_set_creategroupoptions_permissions: (a: number, b: number) => void;
|
|
452
|
+
readonly __wbg_get_creategroupoptions_groupName: (a: number) => [number, number];
|
|
453
|
+
readonly __wbg_set_creategroupoptions_groupName: (a: number, b: number, c: number) => void;
|
|
454
|
+
readonly __wbg_get_creategroupoptions_groupImageUrlSquare: (a: number) => [number, number];
|
|
455
|
+
readonly __wbg_set_creategroupoptions_groupImageUrlSquare: (a: number, b: number, c: number) => void;
|
|
456
|
+
readonly __wbg_get_creategroupoptions_groupDescription: (a: number) => [number, number];
|
|
457
|
+
readonly __wbg_set_creategroupoptions_groupDescription: (a: number, b: number, c: number) => void;
|
|
458
|
+
readonly __wbg_get_creategroupoptions_customPermissionPolicySet: (a: number) => number;
|
|
459
|
+
readonly __wbg_set_creategroupoptions_customPermissionPolicySet: (a: number, b: number) => void;
|
|
460
|
+
readonly creategroupoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
461
|
+
readonly __wbg_createdmoptions_free: (a: number, b: number) => void;
|
|
462
|
+
readonly __wbg_get_createdmoptions_messageDisappearingSettings: (a: number) => number;
|
|
463
|
+
readonly __wbg_set_createdmoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
464
|
+
readonly createdmoptions_new: (a: number) => number;
|
|
465
|
+
readonly __wbg_hmackey_free: (a: number, b: number) => void;
|
|
466
|
+
readonly __wbg_get_hmackey_key: (a: number) => [number, number];
|
|
467
|
+
readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
|
|
468
|
+
readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
|
|
469
|
+
readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
|
|
470
|
+
readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
471
|
+
readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
472
|
+
readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
473
|
+
readonly __wbg_get_conversationlistitem_lastMessage: (a: number) => number;
|
|
474
|
+
readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
475
|
+
readonly conversationlistitem_new: (a: number, b: number) => number;
|
|
476
|
+
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
477
|
+
readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
|
|
478
|
+
readonly conversations_createGroupByInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
479
|
+
readonly conversations_createDm: (a: number, b: number, c: number, d: number) => any;
|
|
480
|
+
readonly conversations_createDmByInboxId: (a: number, b: number, c: number, d: number) => any;
|
|
481
|
+
readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
|
|
482
|
+
readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
|
|
483
|
+
readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
484
|
+
readonly conversations_sync: (a: number) => any;
|
|
485
|
+
readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
486
|
+
readonly conversations_list: (a: number, b: number) => [number, number, number];
|
|
487
|
+
readonly conversations_listGroups: (a: number, b: number) => [number, number, number];
|
|
488
|
+
readonly conversations_listDms: (a: number, b: number) => [number, number, number];
|
|
489
|
+
readonly conversations_getHmacKeys: (a: number) => [number, number, number];
|
|
490
|
+
readonly conversations_stream: (a: number, b: any, c: number) => [number, number, number];
|
|
491
|
+
readonly conversations_streamGroups: (a: number, b: any) => [number, number, number];
|
|
492
|
+
readonly conversations_streamDms: (a: number, b: any) => [number, number, number];
|
|
493
|
+
readonly conversations_streamAllMessages: (a: number, b: any, c: number) => [number, number, number];
|
|
494
|
+
readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
|
|
495
|
+
readonly __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
|
|
496
|
+
readonly __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
|
|
497
|
+
readonly __wbg_get_listmessagesoptions_direction: (a: number) => number;
|
|
498
|
+
readonly __wbg_set_listmessagesoptions_direction: (a: number, b: number) => void;
|
|
499
|
+
readonly listmessagesoptions_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint, g: number, h: number) => number;
|
|
500
|
+
readonly __wbg_message_free: (a: number, b: number) => void;
|
|
501
|
+
readonly __wbg_get_message_id: (a: number) => [number, number];
|
|
502
|
+
readonly __wbg_set_message_id: (a: number, b: number, c: number) => void;
|
|
503
|
+
readonly __wbg_get_message_convoId: (a: number) => [number, number];
|
|
504
|
+
readonly __wbg_set_message_convoId: (a: number, b: number, c: number) => void;
|
|
505
|
+
readonly __wbg_get_message_senderInboxId: (a: number) => [number, number];
|
|
506
|
+
readonly __wbg_set_message_senderInboxId: (a: number, b: number, c: number) => void;
|
|
507
|
+
readonly __wbg_get_message_content: (a: number) => number;
|
|
508
|
+
readonly __wbg_set_message_content: (a: number, b: number) => void;
|
|
509
|
+
readonly __wbg_get_message_kind: (a: number) => number;
|
|
510
|
+
readonly __wbg_set_message_kind: (a: number, b: number) => void;
|
|
511
|
+
readonly __wbg_get_message_deliveryStatus: (a: number) => number;
|
|
512
|
+
readonly __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
|
|
513
|
+
readonly message_new: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
378
514
|
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
379
515
|
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
380
516
|
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
@@ -390,14 +526,37 @@ export interface InitOutput {
|
|
|
390
526
|
readonly __wbg_set_permissionpolicyset_updateGroupDescriptionPolicy: (a: number, b: number) => void;
|
|
391
527
|
readonly __wbg_get_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number) => number;
|
|
392
528
|
readonly __wbg_set_permissionpolicyset_updateGroupImageUrlSquarePolicy: (a: number, b: number) => void;
|
|
393
|
-
readonly
|
|
394
|
-
readonly
|
|
395
|
-
readonly
|
|
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;
|
|
529
|
+
readonly __wbg_get_permissionpolicyset_updateMessageDisappearingPolicy: (a: number) => number;
|
|
530
|
+
readonly __wbg_set_permissionpolicyset_updateMessageDisappearingPolicy: (a: number, b: number) => void;
|
|
531
|
+
readonly permissionpolicyset_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
398
532
|
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
399
533
|
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
400
534
|
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
535
|
+
readonly __wbg_get_messagedisappearingsettings_from_ns: (a: number) => bigint;
|
|
536
|
+
readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
537
|
+
readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
538
|
+
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
539
|
+
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
540
|
+
readonly __wbg_set_messagedisappearingsettings_from_ns: (a: number, b: bigint) => void;
|
|
541
|
+
readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
542
|
+
readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
543
|
+
readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
544
|
+
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
545
|
+
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
546
|
+
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
547
|
+
readonly getInboxIdForAddress: (a: number, b: number, c: number, d: number) => any;
|
|
548
|
+
readonly generateInboxId: (a: number, b: number) => [number, number, number, number];
|
|
549
|
+
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
550
|
+
readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
551
|
+
readonly client_addWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
552
|
+
readonly client_revokeWalletSignatureText: (a: number, b: number, c: number) => any;
|
|
553
|
+
readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
554
|
+
readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
555
|
+
readonly client_addSignature: (a: number, b: number, c: any) => any;
|
|
556
|
+
readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
557
|
+
readonly client_applySignatureRequests: (a: number) => any;
|
|
558
|
+
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
559
|
+
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
401
560
|
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
402
561
|
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
403
562
|
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
@@ -471,95 +630,14 @@ export interface InitOutput {
|
|
|
471
630
|
readonly conversation_groupImageUrlSquare: (a: number) => [number, number, number, number];
|
|
472
631
|
readonly conversation_updateGroupDescription: (a: number, b: number, c: number) => any;
|
|
473
632
|
readonly conversation_groupDescription: (a: number) => [number, number, number, number];
|
|
474
|
-
readonly
|
|
475
|
-
readonly conversation_groupPinnedFrameUrl: (a: number) => [number, number, number, number];
|
|
633
|
+
readonly conversation_stream: (a: number, b: any) => [number, number, number];
|
|
476
634
|
readonly conversation_createdAtNs: (a: number) => bigint;
|
|
477
635
|
readonly conversation_isActive: (a: number) => [number, number, number];
|
|
478
636
|
readonly conversation_addedByInboxId: (a: number) => [number, number, number, number];
|
|
479
637
|
readonly conversation_groupMetadata: (a: number) => any;
|
|
480
638
|
readonly conversation_dmPeerInboxId: (a: number) => [number, number, number, number];
|
|
481
639
|
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;
|
|
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;
|
|
504
|
-
readonly __wbg_get_groupmember_inboxId: (a: 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];
|
|
517
|
-
readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
518
|
-
readonly __wbg_get_listconversationsoptions_allowedStates: (a: number) => [number, number];
|
|
519
|
-
readonly __wbg_set_listconversationsoptions_allowedStates: (a: number, b: number, c: number) => void;
|
|
520
|
-
readonly __wbg_get_listconversationsoptions_conversationType: (a: number) => number;
|
|
521
|
-
readonly __wbg_set_listconversationsoptions_conversationType: (a: number, b: number) => void;
|
|
522
|
-
readonly __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
|
|
523
|
-
readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
524
|
-
readonly listconversationsoptions_new: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: bigint, h: number, i: bigint) => number;
|
|
525
|
-
readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
|
|
526
|
-
readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
|
|
527
|
-
readonly __wbg_set_creategroupoptions_permissions: (a: number, b: number) => void;
|
|
528
|
-
readonly __wbg_get_creategroupoptions_groupName: (a: number) => [number, number];
|
|
529
|
-
readonly __wbg_set_creategroupoptions_groupName: (a: number, b: number, c: number) => void;
|
|
530
|
-
readonly __wbg_get_creategroupoptions_groupImageUrlSquare: (a: number) => [number, number];
|
|
531
|
-
readonly __wbg_set_creategroupoptions_groupImageUrlSquare: (a: number, b: number, c: number) => void;
|
|
532
|
-
readonly __wbg_get_creategroupoptions_groupDescription: (a: number) => [number, number];
|
|
533
|
-
readonly __wbg_set_creategroupoptions_groupDescription: (a: number, b: number, c: number) => void;
|
|
534
|
-
readonly __wbg_get_creategroupoptions_groupPinnedFrameUrl: (a: number) => [number, number];
|
|
535
|
-
readonly __wbg_set_creategroupoptions_groupPinnedFrameUrl: (a: number, b: number, c: number) => void;
|
|
536
|
-
readonly __wbg_get_creategroupoptions_customPermissionPolicySet: (a: number) => number;
|
|
537
|
-
readonly __wbg_set_creategroupoptions_customPermissionPolicySet: (a: number, b: number) => void;
|
|
538
|
-
readonly __wbg_get_creategroupoptions_messageExpirationFromMillis: (a: number) => [number, bigint];
|
|
539
|
-
readonly __wbg_set_creategroupoptions_messageExpirationFromMillis: (a: number, b: number, c: bigint) => void;
|
|
540
|
-
readonly __wbg_get_creategroupoptions_messageExpirationMillis: (a: number) => [number, bigint];
|
|
541
|
-
readonly __wbg_set_creategroupoptions_messageExpirationMillis: (a: number, b: number, c: bigint) => void;
|
|
542
|
-
readonly creategroupoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: bigint, m: number, n: bigint) => number;
|
|
543
|
-
readonly __wbg_hmackey_free: (a: number, b: number) => void;
|
|
544
|
-
readonly __wbg_get_hmackey_key: (a: number) => [number, number];
|
|
545
|
-
readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
|
|
546
|
-
readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
|
|
547
|
-
readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
|
|
548
|
-
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
549
|
-
readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
|
|
550
|
-
readonly conversations_createDm: (a: number, b: number, c: number) => any;
|
|
551
|
-
readonly conversations_findGroupById: (a: number, b: number, c: number) => [number, number, number];
|
|
552
|
-
readonly conversations_findDmByTargetInboxId: (a: number, b: number, c: number) => [number, number, number];
|
|
553
|
-
readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
554
|
-
readonly conversations_sync: (a: number) => any;
|
|
555
|
-
readonly conversations_syncAllConversations: (a: number) => any;
|
|
556
|
-
readonly conversations_list: (a: number, b: number) => [number, number, number];
|
|
557
|
-
readonly conversations_listGroups: (a: number, b: number) => [number, number, number];
|
|
558
|
-
readonly conversations_listDms: (a: number, b: number) => [number, number, number];
|
|
559
|
-
readonly conversations_getHmacKeys: (a: number) => [number, number, number];
|
|
560
640
|
readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
561
|
-
readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
562
|
-
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
563
641
|
readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
564
642
|
readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
565
643
|
readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
@@ -579,38 +657,30 @@ export interface InitOutput {
|
|
|
579
657
|
readonly __wbg_get_encodedcontent_content: (a: number) => any;
|
|
580
658
|
readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
581
659
|
readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
582
|
-
readonly
|
|
583
|
-
readonly
|
|
584
|
-
readonly
|
|
585
|
-
readonly
|
|
586
|
-
readonly
|
|
587
|
-
readonly
|
|
588
|
-
readonly
|
|
589
|
-
readonly
|
|
590
|
-
readonly
|
|
591
|
-
readonly
|
|
592
|
-
readonly
|
|
593
|
-
readonly
|
|
594
|
-
readonly
|
|
595
|
-
readonly
|
|
596
|
-
readonly
|
|
597
|
-
readonly
|
|
598
|
-
readonly
|
|
599
|
-
readonly
|
|
600
|
-
readonly
|
|
601
|
-
readonly
|
|
602
|
-
readonly
|
|
603
|
-
readonly
|
|
604
|
-
readonly
|
|
605
|
-
readonly
|
|
606
|
-
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
607
|
-
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
608
|
-
readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
609
|
-
readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
|
|
610
|
-
readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
|
|
611
|
-
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
612
|
-
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
613
|
-
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
660
|
+
readonly __wbg_installation_free: (a: number, b: number) => void;
|
|
661
|
+
readonly __wbg_get_installation_bytes: (a: number) => any;
|
|
662
|
+
readonly __wbg_set_installation_bytes: (a: number, b: any) => void;
|
|
663
|
+
readonly __wbg_get_installation_id: (a: number) => [number, number];
|
|
664
|
+
readonly __wbg_set_installation_id: (a: number, b: number, c: number) => void;
|
|
665
|
+
readonly __wbg_get_installation_clientTimestampNs: (a: number) => [number, bigint];
|
|
666
|
+
readonly __wbg_set_installation_clientTimestampNs: (a: number, b: number, c: bigint) => void;
|
|
667
|
+
readonly installation_new: (a: any, b: number, c: number, d: number, e: bigint) => number;
|
|
668
|
+
readonly __wbg_inboxstate_free: (a: number, b: number) => void;
|
|
669
|
+
readonly __wbg_get_inboxstate_installations: (a: number) => [number, number];
|
|
670
|
+
readonly __wbg_set_inboxstate_installations: (a: number, b: number, c: number) => void;
|
|
671
|
+
readonly __wbg_get_inboxstate_accountAddresses: (a: number) => [number, number];
|
|
672
|
+
readonly __wbg_set_inboxstate_accountAddresses: (a: number, b: number, c: number) => void;
|
|
673
|
+
readonly inboxstate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
674
|
+
readonly client_inboxState: (a: number, b: number) => any;
|
|
675
|
+
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
676
|
+
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
677
|
+
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
678
|
+
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
679
|
+
readonly __wbg_set_inboxstate_recoveryAddress: (a: number, b: number, c: number) => void;
|
|
680
|
+
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
681
|
+
readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
682
|
+
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
683
|
+
readonly __wbg_get_inboxstate_recoveryAddress: (a: number) => [number, number];
|
|
614
684
|
readonly __wbg_version_free: (a: number, b: number) => void;
|
|
615
685
|
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
616
686
|
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
@@ -632,10 +702,11 @@ export interface InitOutput {
|
|
|
632
702
|
readonly __externref_table_alloc: () => number;
|
|
633
703
|
readonly __wbindgen_export_5: WebAssembly.Table;
|
|
634
704
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
635
|
-
readonly __externref_table_dealloc: (a: number) => void;
|
|
636
705
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
637
|
-
readonly
|
|
638
|
-
readonly
|
|
706
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
707
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb21f8cddfb9e179d: (a: number, b: number) => void;
|
|
708
|
+
readonly closure2971_externref_shim: (a: number, b: number, c: any) => void;
|
|
709
|
+
readonly closure3993_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
639
710
|
readonly __wbindgen_start: () => void;
|
|
640
711
|
}
|
|
641
712
|
|