@xmtp/wasm-bindings 1.2.0-dev.cae98b4 → 1.2.0-rc2
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 +6 -2
- package/dist/bindings_wasm.d.ts +183 -153
- package/dist/bindings_wasm.js +321 -245
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +149 -131
- package/dist/version.json +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,9 +3,13 @@
|
|
|
3
3
|
> [!INFO]
|
|
4
4
|
> These bindings are not intended to be used directly, use the associated SDK instead.
|
|
5
5
|
|
|
6
|
-
##
|
|
6
|
+
## Setup
|
|
7
|
+
|
|
8
|
+
1. Install the [emscripten toolchain](https://emscripten.org/docs/getting_started/downloads.html): `brew install emscripten`. `emscripten` is used to compile from Rust to WebAssembly.
|
|
9
|
+
2. Install LLVM: `brew install llvm`, and then follow the instructions to add it to your PATH. Emscripten depends on LLVM's Clang (as opposed to Apple's Clang).
|
|
7
10
|
|
|
8
|
-
|
|
11
|
+
|
|
12
|
+
## Useful commands
|
|
9
13
|
|
|
10
14
|
- `yarn`: Installs all dependencies (required before building)
|
|
11
15
|
- `yarn build`: Build a release version of the WASM bindings for the current
|
package/dist/bindings_wasm.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, device_sync_server_url?: string | null, device_sync_worker_mode?: DeviceSyncWorkerMode | null, log_options?: LogOptions | null): Promise<Client>;
|
|
3
4
|
export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
|
|
4
5
|
export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
|
|
5
6
|
export function encodeReaction(reaction: Reaction): Uint8Array;
|
|
6
7
|
export function decodeReaction(bytes: Uint8Array): Reaction;
|
|
7
8
|
export function verifySignedWithPublicKey(signature_text: string, signature_bytes: Uint8Array, public_key: Uint8Array): void;
|
|
8
|
-
export function createClient(host: string, inbox_id: string, account_identifier: Identifier, db_path?: string | null, encryption_key?: Uint8Array | null, device_sync_server_url?: string | null, device_sync_worker_mode?: DeviceSyncWorkerMode | null, log_options?: LogOptions | null): Promise<Client>;
|
|
9
9
|
export function getInboxIdForIdentifier(host: string, accountIdentifier: Identifier): Promise<string | undefined>;
|
|
10
10
|
export function generateInboxId(accountIdentifier: Identifier): string;
|
|
11
11
|
export enum ConsentEntityType {
|
|
@@ -43,6 +43,7 @@ export enum GroupMembershipState {
|
|
|
43
43
|
Allowed = 0,
|
|
44
44
|
Rejected = 1,
|
|
45
45
|
Pending = 2,
|
|
46
|
+
Restored = 3,
|
|
46
47
|
}
|
|
47
48
|
export enum GroupMessageKind {
|
|
48
49
|
Application = 0,
|
|
@@ -122,8 +123,16 @@ export type UserPreference = { type: "Consent"; consent: Consent } | { type: "Hm
|
|
|
122
123
|
export class Client {
|
|
123
124
|
private constructor();
|
|
124
125
|
free(): void;
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
/**
|
|
127
|
+
* Output booleans should be zipped with the index of input identifiers
|
|
128
|
+
*/
|
|
129
|
+
canMessage(account_identifiers: Identifier[]): Promise<any>;
|
|
130
|
+
registerIdentity(): Promise<void>;
|
|
131
|
+
sendSyncRequest(): Promise<void>;
|
|
132
|
+
findInboxIdByIdentifier(identifier: Identifier): Promise<string | undefined>;
|
|
133
|
+
inboxStateFromInboxIds(inbox_ids: string[], refresh_from_network: boolean): Promise<InboxState[]>;
|
|
134
|
+
conversations(): Conversations;
|
|
135
|
+
syncPreferences(): Promise<number>;
|
|
127
136
|
createInboxSignatureText(): string | undefined;
|
|
128
137
|
addWalletSignatureText(new_identifier: Identifier): Promise<string>;
|
|
129
138
|
revokeWalletSignatureText(identifier: Identifier): Promise<string>;
|
|
@@ -136,17 +145,8 @@ export class Client {
|
|
|
136
145
|
applySignatureRequests(): Promise<void>;
|
|
137
146
|
signWithInstallationKey(signature_text: string): Uint8Array;
|
|
138
147
|
verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
*/
|
|
142
|
-
canMessage(account_identifiers: Identifier[]): Promise<any>;
|
|
143
|
-
registerIdentity(): Promise<void>;
|
|
144
|
-
sendHistorySyncRequest(): Promise<void>;
|
|
145
|
-
sendConsentSyncRequest(): Promise<void>;
|
|
146
|
-
findInboxIdByIdentifier(identifier: Identifier): Promise<string | undefined>;
|
|
147
|
-
inboxStateFromInboxIds(inbox_ids: string[], refresh_from_network: boolean): Promise<InboxState[]>;
|
|
148
|
-
conversations(): Conversations;
|
|
149
|
-
syncPreferences(): Promise<number>;
|
|
148
|
+
setConsentStates(records: Consent[]): Promise<void>;
|
|
149
|
+
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
150
150
|
/**
|
|
151
151
|
*
|
|
152
152
|
* * Get the client's inbox state.
|
|
@@ -237,6 +237,15 @@ export class Conversation {
|
|
|
237
237
|
messageDisappearingSettings(): MessageDisappearingSettings | undefined;
|
|
238
238
|
isMessageDisappearingEnabled(): boolean;
|
|
239
239
|
getHmacKeys(): any;
|
|
240
|
+
getDebugInfo(): Promise<any>;
|
|
241
|
+
findDuplicateDms(): Promise<Conversation[]>;
|
|
242
|
+
}
|
|
243
|
+
export class ConversationDebugInfo {
|
|
244
|
+
private constructor();
|
|
245
|
+
free(): void;
|
|
246
|
+
epoch: bigint;
|
|
247
|
+
maybeForked: boolean;
|
|
248
|
+
forkDetails: string;
|
|
240
249
|
}
|
|
241
250
|
export class ConversationListItem {
|
|
242
251
|
free(): void;
|
|
@@ -248,6 +257,7 @@ export class ConversationListItem {
|
|
|
248
257
|
export class Conversations {
|
|
249
258
|
private constructor();
|
|
250
259
|
free(): void;
|
|
260
|
+
createGroupOptimistic(options?: CreateGroupOptions | null): Conversation;
|
|
251
261
|
createGroup(account_identifiers: Identifier[], options?: CreateGroupOptions | null): Promise<Conversation>;
|
|
252
262
|
createGroupByInboxIds(inbox_ids: string[], options?: CreateGroupOptions | null): Promise<Conversation>;
|
|
253
263
|
createDm(account_identifier: Identifier, options?: CreateDMOptions | null): Promise<Conversation>;
|
|
@@ -257,14 +267,11 @@ export class Conversations {
|
|
|
257
267
|
findMessageById(message_id: string): Message;
|
|
258
268
|
sync(): Promise<void>;
|
|
259
269
|
syncAllConversations(consent_states?: any[] | null): Promise<number>;
|
|
270
|
+
syncDeviceSync(): Promise<void>;
|
|
260
271
|
list(opts?: ListConversationsOptions | null): Array<any>;
|
|
261
|
-
listGroups(opts?: ListConversationsOptions | null): Array<any>;
|
|
262
|
-
listDms(opts?: ListConversationsOptions | null): Array<any>;
|
|
263
272
|
getHmacKeys(): any;
|
|
264
273
|
stream(callback: any, conversation_type?: ConversationType | null): StreamCloser;
|
|
265
|
-
|
|
266
|
-
streamDms(callback: any): StreamCloser;
|
|
267
|
-
streamAllMessages(callback: any, conversation_type?: ConversationType | null): StreamCloser;
|
|
274
|
+
streamAllMessages(callback: any, conversation_type?: ConversationType | null, consent_states?: any[] | null): StreamCloser;
|
|
268
275
|
streamConsent(callback: any): StreamCloser;
|
|
269
276
|
streamPreferences(callback: any): StreamCloser;
|
|
270
277
|
}
|
|
@@ -383,20 +390,23 @@ export class Lifetime {
|
|
|
383
390
|
}
|
|
384
391
|
export class ListConversationsOptions {
|
|
385
392
|
free(): void;
|
|
386
|
-
constructor(consent_states
|
|
393
|
+
constructor(consent_states?: any[] | null, conversation_type?: ConversationType | null, created_after_ns?: bigint | null, created_before_ns?: bigint | null, include_duplicate_dms?: boolean | null, limit?: bigint | null);
|
|
387
394
|
get consentStates(): any[] | undefined;
|
|
388
395
|
set consentStates(value: any[] | null | undefined);
|
|
396
|
+
get conversationType(): ConversationType | undefined;
|
|
397
|
+
set conversationType(value: ConversationType | null | undefined);
|
|
389
398
|
get createdAfterNs(): bigint | undefined;
|
|
390
399
|
set createdAfterNs(value: bigint | null | undefined);
|
|
391
400
|
get createdBeforeNs(): bigint | undefined;
|
|
392
401
|
set createdBeforeNs(value: bigint | null | undefined);
|
|
393
|
-
includeDuplicateDms: boolean;
|
|
402
|
+
get includeDuplicateDms(): boolean | undefined;
|
|
403
|
+
set includeDuplicateDms(value: boolean | null | undefined);
|
|
394
404
|
get limit(): bigint | undefined;
|
|
395
405
|
set limit(value: bigint | null | undefined);
|
|
396
406
|
}
|
|
397
407
|
export class ListMessagesOptions {
|
|
398
408
|
free(): void;
|
|
399
|
-
constructor(sent_before_ns?: bigint | null, sent_after_ns?: bigint | null, limit?: bigint | null, delivery_status?: DeliveryStatus | null, direction?: SortDirection | null, content_types?: any[] | null);
|
|
409
|
+
constructor(sent_before_ns?: bigint | null, sent_after_ns?: bigint | null, limit?: bigint | null, delivery_status?: DeliveryStatus | null, direction?: SortDirection | null, content_types?: any[] | null, kind?: GroupMessageKind | null);
|
|
400
410
|
get contentTypes(): any[] | undefined;
|
|
401
411
|
set contentTypes(value: any[] | null | undefined);
|
|
402
412
|
get sentBeforeNs(): bigint | undefined;
|
|
@@ -409,6 +419,8 @@ export class ListMessagesOptions {
|
|
|
409
419
|
set deliveryStatus(value: DeliveryStatus | null | undefined);
|
|
410
420
|
get direction(): SortDirection | undefined;
|
|
411
421
|
set direction(value: SortDirection | null | undefined);
|
|
422
|
+
get kind(): GroupMessageKind | undefined;
|
|
423
|
+
set kind(value: GroupMessageKind | null | undefined);
|
|
412
424
|
}
|
|
413
425
|
/**
|
|
414
426
|
* Specify options for the logger
|
|
@@ -571,6 +583,8 @@ export interface InitOutput {
|
|
|
571
583
|
readonly __wbg_listconversationsoptions_free: (a: number, b: number) => void;
|
|
572
584
|
readonly __wbg_get_listconversationsoptions_consentStates: (a: number) => [number, number];
|
|
573
585
|
readonly __wbg_set_listconversationsoptions_consentStates: (a: number, b: number, c: number) => void;
|
|
586
|
+
readonly __wbg_get_listconversationsoptions_conversationType: (a: number) => number;
|
|
587
|
+
readonly __wbg_set_listconversationsoptions_conversationType: (a: number, b: number) => void;
|
|
574
588
|
readonly __wbg_get_listconversationsoptions_createdAfterNs: (a: number) => [number, bigint];
|
|
575
589
|
readonly __wbg_set_listconversationsoptions_createdAfterNs: (a: number, b: number, c: bigint) => void;
|
|
576
590
|
readonly __wbg_get_listconversationsoptions_createdBeforeNs: (a: number) => [number, bigint];
|
|
@@ -579,11 +593,18 @@ export interface InitOutput {
|
|
|
579
593
|
readonly __wbg_set_listconversationsoptions_includeDuplicateDms: (a: number, b: number) => void;
|
|
580
594
|
readonly __wbg_get_listconversationsoptions_limit: (a: number) => [number, bigint];
|
|
581
595
|
readonly __wbg_set_listconversationsoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
582
|
-
readonly listconversationsoptions_new: (a: number, b: number, c: number, d:
|
|
596
|
+
readonly listconversationsoptions_new: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: bigint, h: number, i: number, j: bigint) => number;
|
|
583
597
|
readonly __wbg_messagedisappearingsettings_free: (a: number, b: number) => void;
|
|
584
598
|
readonly __wbg_get_messagedisappearingsettings_inNs: (a: number) => bigint;
|
|
585
599
|
readonly __wbg_set_messagedisappearingsettings_inNs: (a: number, b: bigint) => void;
|
|
586
600
|
readonly messagedisappearingsettings_new: (a: bigint, b: bigint) => number;
|
|
601
|
+
readonly __wbg_conversationdebuginfo_free: (a: number, b: number) => void;
|
|
602
|
+
readonly __wbg_get_conversationdebuginfo_epoch: (a: number) => bigint;
|
|
603
|
+
readonly __wbg_set_conversationdebuginfo_epoch: (a: number, b: bigint) => void;
|
|
604
|
+
readonly __wbg_get_conversationdebuginfo_maybeForked: (a: number) => number;
|
|
605
|
+
readonly __wbg_set_conversationdebuginfo_maybeForked: (a: number, b: number) => void;
|
|
606
|
+
readonly __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
|
|
607
|
+
readonly __wbg_set_conversationdebuginfo_forkDetails: (a: number, b: number, c: number) => void;
|
|
587
608
|
readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
|
|
588
609
|
readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
|
|
589
610
|
readonly __wbg_set_creategroupoptions_permissions: (a: number, b: number) => void;
|
|
@@ -602,9 +623,6 @@ export interface InitOutput {
|
|
|
602
623
|
readonly createdmoptions_new: (a: number) => number;
|
|
603
624
|
readonly __wbg_hmackey_free: (a: number, b: number) => void;
|
|
604
625
|
readonly __wbg_get_hmackey_key: (a: number) => [number, number];
|
|
605
|
-
readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
|
|
606
|
-
readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
|
|
607
|
-
readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
|
|
608
626
|
readonly __wbg_conversationlistitem_free: (a: number, b: number) => void;
|
|
609
627
|
readonly __wbg_get_conversationlistitem_conversation: (a: number) => number;
|
|
610
628
|
readonly __wbg_set_conversationlistitem_conversation: (a: number, b: number) => void;
|
|
@@ -612,6 +630,7 @@ export interface InitOutput {
|
|
|
612
630
|
readonly __wbg_set_conversationlistitem_lastMessage: (a: number, b: number) => void;
|
|
613
631
|
readonly conversationlistitem_new: (a: number, b: number) => number;
|
|
614
632
|
readonly __wbg_conversations_free: (a: number, b: number) => void;
|
|
633
|
+
readonly conversations_createGroupOptimistic: (a: number, b: number) => [number, number, number];
|
|
615
634
|
readonly conversations_createGroup: (a: number, b: number, c: number, d: number) => any;
|
|
616
635
|
readonly conversations_createGroupByInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
617
636
|
readonly conversations_createDm: (a: number, b: any, c: number) => any;
|
|
@@ -621,14 +640,11 @@ export interface InitOutput {
|
|
|
621
640
|
readonly conversations_findMessageById: (a: number, b: number, c: number) => [number, number, number];
|
|
622
641
|
readonly conversations_sync: (a: number) => any;
|
|
623
642
|
readonly conversations_syncAllConversations: (a: number, b: number, c: number) => any;
|
|
643
|
+
readonly conversations_syncDeviceSync: (a: number) => any;
|
|
624
644
|
readonly conversations_list: (a: number, b: number) => [number, number, number];
|
|
625
|
-
readonly conversations_listGroups: (a: number, b: number) => [number, number, number];
|
|
626
|
-
readonly conversations_listDms: (a: number, b: number) => [number, number, number];
|
|
627
645
|
readonly conversations_getHmacKeys: (a: number) => [number, number, number];
|
|
628
646
|
readonly conversations_stream: (a: number, b: any, c: number) => [number, number, number];
|
|
629
|
-
readonly
|
|
630
|
-
readonly conversations_streamDms: (a: number, b: any) => [number, number, number];
|
|
631
|
-
readonly conversations_streamAllMessages: (a: number, b: any, c: number) => [number, number, number];
|
|
647
|
+
readonly conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
|
|
632
648
|
readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
|
|
633
649
|
readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
634
650
|
readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
|
|
@@ -638,7 +654,9 @@ export interface InitOutput {
|
|
|
638
654
|
readonly __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
|
|
639
655
|
readonly __wbg_get_listmessagesoptions_direction: (a: number) => number;
|
|
640
656
|
readonly __wbg_set_listmessagesoptions_direction: (a: number, b: number) => void;
|
|
641
|
-
readonly
|
|
657
|
+
readonly __wbg_get_listmessagesoptions_kind: (a: number) => number;
|
|
658
|
+
readonly __wbg_set_listmessagesoptions_kind: (a: number, b: number) => void;
|
|
659
|
+
readonly listmessagesoptions_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint, g: number, h: number, i: number, j: number, k: number) => number;
|
|
642
660
|
readonly __wbg_message_free: (a: number, b: number) => void;
|
|
643
661
|
readonly __wbg_get_message_id: (a: number) => [number, number];
|
|
644
662
|
readonly __wbg_set_message_id: (a: number, b: number, c: number) => void;
|
|
@@ -659,17 +677,129 @@ export interface InitOutput {
|
|
|
659
677
|
readonly __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
|
|
660
678
|
readonly __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
|
|
661
679
|
readonly __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
|
|
680
|
+
readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
|
|
662
681
|
readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
663
682
|
readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
664
683
|
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
665
684
|
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
666
|
-
readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
667
685
|
readonly __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
|
|
686
|
+
readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
|
|
668
687
|
readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
669
688
|
readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
689
|
+
readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
670
690
|
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
671
691
|
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
672
692
|
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
693
|
+
readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
|
|
694
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
695
|
+
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
696
|
+
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
697
|
+
readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
698
|
+
readonly __wbg_get_logoptions_performance: (a: number) => number;
|
|
699
|
+
readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
700
|
+
readonly __wbg_get_logoptions_level: (a: number) => number;
|
|
701
|
+
readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
702
|
+
readonly logoptions_new: (a: number, b: number, c: number) => number;
|
|
703
|
+
readonly createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => any;
|
|
704
|
+
readonly client_accountIdentifier: (a: number) => any;
|
|
705
|
+
readonly client_inboxId: (a: number) => [number, number];
|
|
706
|
+
readonly client_isRegistered: (a: number) => number;
|
|
707
|
+
readonly client_installationId: (a: number) => [number, number];
|
|
708
|
+
readonly client_installationIdBytes: (a: number) => any;
|
|
709
|
+
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
710
|
+
readonly client_registerIdentity: (a: number) => any;
|
|
711
|
+
readonly client_sendSyncRequest: (a: number) => any;
|
|
712
|
+
readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
713
|
+
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
714
|
+
readonly client_conversations: (a: number) => number;
|
|
715
|
+
readonly client_syncPreferences: (a: number) => any;
|
|
716
|
+
readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
|
|
717
|
+
readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
|
|
718
|
+
readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
|
|
719
|
+
readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
|
|
720
|
+
readonly __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
|
|
721
|
+
readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
|
|
722
|
+
readonly __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
|
|
723
|
+
readonly __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
|
|
724
|
+
readonly __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
|
|
725
|
+
readonly __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
|
|
726
|
+
readonly __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
|
|
727
|
+
readonly __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
|
|
728
|
+
readonly __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
|
|
729
|
+
readonly __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
|
|
730
|
+
readonly __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
|
|
731
|
+
readonly 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;
|
|
732
|
+
readonly __wbg_multiremoteattachment_free: (a: number, b: number) => void;
|
|
733
|
+
readonly __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
|
|
734
|
+
readonly __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
|
|
735
|
+
readonly multiremoteattachment_new: (a: number, b: number) => number;
|
|
736
|
+
readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
737
|
+
readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
738
|
+
readonly __wbg_reaction_free: (a: number, b: number) => void;
|
|
739
|
+
readonly __wbg_get_reaction_action: (a: number) => number;
|
|
740
|
+
readonly __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
741
|
+
readonly __wbg_get_reaction_content: (a: number) => [number, number];
|
|
742
|
+
readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
743
|
+
readonly __wbg_get_reaction_schema: (a: number) => number;
|
|
744
|
+
readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
745
|
+
readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
746
|
+
readonly encodeReaction: (a: number) => [number, number, number];
|
|
747
|
+
readonly decodeReaction: (a: any) => [number, number, number];
|
|
748
|
+
readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
749
|
+
readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
750
|
+
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
751
|
+
readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
752
|
+
readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
753
|
+
readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
754
|
+
readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
|
|
755
|
+
readonly __wbg_get_contenttypeid_versionMinor: (a: number) => number;
|
|
756
|
+
readonly __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
|
|
757
|
+
readonly contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
758
|
+
readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
|
|
759
|
+
readonly __wbg_get_encodedcontent_type: (a: number) => number;
|
|
760
|
+
readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
|
|
761
|
+
readonly __wbg_get_encodedcontent_parameters: (a: number) => any;
|
|
762
|
+
readonly __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
|
|
763
|
+
readonly __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
|
|
764
|
+
readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
|
|
765
|
+
readonly __wbg_get_encodedcontent_compression: (a: number) => number;
|
|
766
|
+
readonly __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
|
|
767
|
+
readonly __wbg_get_encodedcontent_content: (a: number) => any;
|
|
768
|
+
readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
769
|
+
readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
770
|
+
readonly __wbg_opfs_free: (a: number, b: number) => void;
|
|
771
|
+
readonly opfs_init_sqlite_opfs: () => any;
|
|
772
|
+
readonly opfs_exists: () => number;
|
|
773
|
+
readonly opfs_error: () => [number, number];
|
|
774
|
+
readonly opfs_wipeFiles: () => any;
|
|
775
|
+
readonly opfs_rm: (a: number, b: number) => [number, number, number];
|
|
776
|
+
readonly opfs_getFileNames: () => [number, number];
|
|
777
|
+
readonly opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
|
|
778
|
+
readonly opfs_exportFile: (a: number, b: number) => [number, number, number, number];
|
|
779
|
+
readonly opfs_getFileCount: () => number;
|
|
780
|
+
readonly opfs_getCapacity: () => number;
|
|
781
|
+
readonly opfs_addCapacity: (a: number) => any;
|
|
782
|
+
readonly opfs_reduceCapacity: (a: number) => any;
|
|
783
|
+
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
784
|
+
readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
|
|
785
|
+
readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
786
|
+
readonly client_addWalletSignatureText: (a: number, b: any) => any;
|
|
787
|
+
readonly client_revokeWalletSignatureText: (a: number, b: any) => any;
|
|
788
|
+
readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
789
|
+
readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
790
|
+
readonly client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
|
|
791
|
+
readonly client_addEcdsaSignature: (a: number, b: number, c: any) => any;
|
|
792
|
+
readonly client_addPasskeySignature: (a: number, b: number, c: number) => any;
|
|
793
|
+
readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
794
|
+
readonly client_applySignatureRequests: (a: number) => any;
|
|
795
|
+
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
796
|
+
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
797
|
+
readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
798
|
+
readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
799
|
+
readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
800
|
+
readonly __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
801
|
+
readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
802
|
+
readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
673
803
|
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
674
804
|
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
675
805
|
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
@@ -703,42 +833,6 @@ export interface InitOutput {
|
|
|
703
833
|
readonly client_getConsentState: (a: number, b: number, c: number, d: number) => any;
|
|
704
834
|
readonly conversation_consentState: (a: number) => [number, number, number];
|
|
705
835
|
readonly conversation_updateConsentState: (a: number, b: number) => [number, number];
|
|
706
|
-
readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
|
|
707
|
-
readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
708
|
-
readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
709
|
-
readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
|
|
710
|
-
readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
|
|
711
|
-
readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
|
|
712
|
-
readonly __wbg_set_remoteattachmentinfo_nonce: (a: number, b: any) => void;
|
|
713
|
-
readonly __wbg_get_remoteattachmentinfo_scheme: (a: number) => [number, number];
|
|
714
|
-
readonly __wbg_set_remoteattachmentinfo_scheme: (a: number, b: number, c: number) => void;
|
|
715
|
-
readonly __wbg_get_remoteattachmentinfo_url: (a: number) => [number, number];
|
|
716
|
-
readonly __wbg_set_remoteattachmentinfo_url: (a: number, b: number, c: number) => void;
|
|
717
|
-
readonly __wbg_get_remoteattachmentinfo_salt: (a: number) => any;
|
|
718
|
-
readonly __wbg_set_remoteattachmentinfo_salt: (a: number, b: any) => void;
|
|
719
|
-
readonly __wbg_get_remoteattachmentinfo_contentLength: (a: number) => number;
|
|
720
|
-
readonly __wbg_set_remoteattachmentinfo_contentLength: (a: number, b: number) => void;
|
|
721
|
-
readonly __wbg_get_remoteattachmentinfo_filename: (a: number) => [number, number];
|
|
722
|
-
readonly __wbg_set_remoteattachmentinfo_filename: (a: number, b: number, c: number) => void;
|
|
723
|
-
readonly 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;
|
|
724
|
-
readonly __wbg_multiremoteattachment_free: (a: number, b: number) => void;
|
|
725
|
-
readonly __wbg_get_multiremoteattachment_attachments: (a: number) => [number, number];
|
|
726
|
-
readonly __wbg_set_multiremoteattachment_attachments: (a: number, b: number, c: number) => void;
|
|
727
|
-
readonly multiremoteattachment_new: (a: number, b: number) => number;
|
|
728
|
-
readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
729
|
-
readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
730
|
-
readonly __wbg_reaction_free: (a: number, b: number) => void;
|
|
731
|
-
readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
732
|
-
readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
733
|
-
readonly __wbg_get_reaction_action: (a: number) => number;
|
|
734
|
-
readonly __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
735
|
-
readonly __wbg_get_reaction_content: (a: number) => [number, number];
|
|
736
|
-
readonly __wbg_set_reaction_content: (a: number, b: number, c: number) => void;
|
|
737
|
-
readonly __wbg_get_reaction_schema: (a: number) => number;
|
|
738
|
-
readonly __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
739
|
-
readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
740
|
-
readonly encodeReaction: (a: number) => [number, number, number];
|
|
741
|
-
readonly decodeReaction: (a: any) => [number, number, number];
|
|
742
836
|
readonly __wbg_groupmetadata_free: (a: number, b: number) => void;
|
|
743
837
|
readonly groupmetadata_creatorInboxId: (a: number) => [number, number];
|
|
744
838
|
readonly groupmetadata_conversationType: (a: number) => [number, number];
|
|
@@ -793,74 +887,8 @@ export interface InitOutput {
|
|
|
793
887
|
readonly conversation_messageDisappearingSettings: (a: number) => [number, number, number];
|
|
794
888
|
readonly conversation_isMessageDisappearingEnabled: (a: number) => [number, number, number];
|
|
795
889
|
readonly conversation_getHmacKeys: (a: number) => [number, number, number];
|
|
796
|
-
readonly
|
|
797
|
-
readonly
|
|
798
|
-
readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
799
|
-
readonly client_addWalletSignatureText: (a: number, b: any) => any;
|
|
800
|
-
readonly client_revokeWalletSignatureText: (a: number, b: any) => any;
|
|
801
|
-
readonly client_revokeAllOtherInstallationsSignatureText: (a: number) => any;
|
|
802
|
-
readonly client_revokeInstallationsSignatureText: (a: number, b: number, c: number) => any;
|
|
803
|
-
readonly client_changeRecoveryIdentifierSignatureText: (a: number, b: any) => any;
|
|
804
|
-
readonly client_addEcdsaSignature: (a: number, b: number, c: any) => any;
|
|
805
|
-
readonly client_addPasskeySignature: (a: number, b: number, c: number) => any;
|
|
806
|
-
readonly client_addScwSignature: (a: number, b: number, c: any, d: bigint, e: number, f: bigint) => any;
|
|
807
|
-
readonly client_applySignatureRequests: (a: number) => any;
|
|
808
|
-
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
809
|
-
readonly client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
810
|
-
readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
811
|
-
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
812
|
-
readonly __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
813
|
-
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
814
|
-
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
815
|
-
readonly streamcloser_end: (a: number) => void;
|
|
816
|
-
readonly streamcloser_endAndWait: (a: number) => any;
|
|
817
|
-
readonly streamcloser_waitForReady: (a: number) => any;
|
|
818
|
-
readonly streamcloser_isClosed: (a: number) => number;
|
|
819
|
-
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
820
|
-
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
821
|
-
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
822
|
-
readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
823
|
-
readonly __wbg_get_logoptions_performance: (a: number) => number;
|
|
824
|
-
readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
825
|
-
readonly __wbg_get_logoptions_level: (a: number) => number;
|
|
826
|
-
readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
827
|
-
readonly logoptions_new: (a: number, b: number, c: number) => number;
|
|
828
|
-
readonly createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => any;
|
|
829
|
-
readonly client_accountIdentifier: (a: number) => any;
|
|
830
|
-
readonly client_inboxId: (a: number) => [number, number];
|
|
831
|
-
readonly client_isRegistered: (a: number) => number;
|
|
832
|
-
readonly client_installationId: (a: number) => [number, number];
|
|
833
|
-
readonly client_installationIdBytes: (a: number) => any;
|
|
834
|
-
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
835
|
-
readonly client_registerIdentity: (a: number) => any;
|
|
836
|
-
readonly client_sendHistorySyncRequest: (a: number) => any;
|
|
837
|
-
readonly client_sendConsentSyncRequest: (a: number) => any;
|
|
838
|
-
readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
839
|
-
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
840
|
-
readonly client_conversations: (a: number) => number;
|
|
841
|
-
readonly client_syncPreferences: (a: number) => any;
|
|
842
|
-
readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
843
|
-
readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
844
|
-
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
845
|
-
readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
846
|
-
readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
847
|
-
readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
848
|
-
readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
|
|
849
|
-
readonly __wbg_get_contenttypeid_versionMinor: (a: number) => number;
|
|
850
|
-
readonly __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
|
|
851
|
-
readonly contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
852
|
-
readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
|
|
853
|
-
readonly __wbg_get_encodedcontent_type: (a: number) => number;
|
|
854
|
-
readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
|
|
855
|
-
readonly __wbg_get_encodedcontent_parameters: (a: number) => any;
|
|
856
|
-
readonly __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
|
|
857
|
-
readonly __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
|
|
858
|
-
readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
|
|
859
|
-
readonly __wbg_get_encodedcontent_compression: (a: number) => number;
|
|
860
|
-
readonly __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
|
|
861
|
-
readonly __wbg_get_encodedcontent_content: (a: number) => any;
|
|
862
|
-
readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
863
|
-
readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
890
|
+
readonly conversation_getDebugInfo: (a: number) => any;
|
|
891
|
+
readonly conversation_findDuplicateDms: (a: number) => any;
|
|
864
892
|
readonly getInboxIdForIdentifier: (a: number, b: number, c: any) => any;
|
|
865
893
|
readonly generateInboxId: (a: any) => [number, number, number, number];
|
|
866
894
|
readonly __wbg_installation_free: (a: number, b: number) => void;
|
|
@@ -892,21 +920,23 @@ export interface InitOutput {
|
|
|
892
920
|
readonly client_inboxState: (a: number, b: number) => any;
|
|
893
921
|
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
894
922
|
readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
923
|
+
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
895
924
|
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
925
|
+
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
896
926
|
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
897
|
-
readonly
|
|
898
|
-
readonly
|
|
899
|
-
readonly
|
|
900
|
-
readonly
|
|
901
|
-
readonly
|
|
902
|
-
readonly
|
|
903
|
-
readonly
|
|
904
|
-
readonly
|
|
905
|
-
readonly
|
|
906
|
-
readonly
|
|
907
|
-
readonly
|
|
908
|
-
readonly
|
|
909
|
-
readonly
|
|
927
|
+
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
928
|
+
readonly streamcloser_end: (a: number) => void;
|
|
929
|
+
readonly streamcloser_endAndWait: (a: number) => any;
|
|
930
|
+
readonly streamcloser_waitForReady: (a: number) => any;
|
|
931
|
+
readonly streamcloser_isClosed: (a: number) => number;
|
|
932
|
+
readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
|
|
933
|
+
readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
934
|
+
readonly rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
|
|
935
|
+
readonly rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
|
|
936
|
+
readonly rust_zstd_wasm_shim_free: (a: number) => void;
|
|
937
|
+
readonly rust_zstd_wasm_shim_memcpy: (a: number, b: number, c: number) => number;
|
|
938
|
+
readonly rust_zstd_wasm_shim_memmove: (a: number, b: number, c: number) => number;
|
|
939
|
+
readonly rust_zstd_wasm_shim_memset: (a: number, b: number, c: number) => number;
|
|
910
940
|
readonly rust_sqlite_wasm_shim_localtime_js: (a: bigint, b: number) => void;
|
|
911
941
|
readonly rust_sqlite_wasm_shim_tzset_js: (a: number, b: number, c: number, d: number) => void;
|
|
912
942
|
readonly rust_sqlite_wasm_shim_emscripten_get_now: () => number;
|
|
@@ -938,10 +968,10 @@ export interface InitOutput {
|
|
|
938
968
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
939
969
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6040dd5f55152215: (a: number, b: number) => void;
|
|
940
970
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h89dafc0baf46c12b: (a: number, b: number) => void;
|
|
941
|
-
readonly
|
|
971
|
+
readonly closure4467_externref_shim: (a: number, b: number, c: any) => void;
|
|
942
972
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f45197f24caef5a: (a: number, b: number) => void;
|
|
943
|
-
readonly
|
|
944
|
-
readonly
|
|
973
|
+
readonly closure5474_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
|
|
974
|
+
readonly closure5473_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
945
975
|
readonly __wbindgen_start: () => void;
|
|
946
976
|
}
|
|
947
977
|
|