@xmtp/wasm-bindings 1.2.0-rc2 → 1.2.0-rc3
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 +119 -119
- package/dist/bindings_wasm.js +161 -161
- package/dist/bindings_wasm_bg.wasm +0 -0
- package/dist/bindings_wasm_bg.wasm.d.ts +108 -108
- package/dist/version.json +2 -2
- package/package.json +1 -1
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>;
|
|
4
3
|
export function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array;
|
|
5
4
|
export function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment;
|
|
6
5
|
export function encodeReaction(reaction: Reaction): Uint8Array;
|
|
7
6
|
export function decodeReaction(bytes: Uint8Array): Reaction;
|
|
8
7
|
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 {
|
|
@@ -123,16 +123,6 @@ export type UserPreference = { type: "Consent"; consent: Consent } | { type: "Hm
|
|
|
123
123
|
export class Client {
|
|
124
124
|
private constructor();
|
|
125
125
|
free(): void;
|
|
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>;
|
|
136
126
|
createInboxSignatureText(): string | undefined;
|
|
137
127
|
addWalletSignatureText(new_identifier: Identifier): Promise<string>;
|
|
138
128
|
revokeWalletSignatureText(identifier: Identifier): Promise<string>;
|
|
@@ -145,6 +135,16 @@ export class Client {
|
|
|
145
135
|
applySignatureRequests(): Promise<void>;
|
|
146
136
|
signWithInstallationKey(signature_text: string): Uint8Array;
|
|
147
137
|
verifySignedWithInstallationKey(signature_text: string, signature_bytes: Uint8Array): void;
|
|
138
|
+
/**
|
|
139
|
+
* Output booleans should be zipped with the index of input identifiers
|
|
140
|
+
*/
|
|
141
|
+
canMessage(account_identifiers: Identifier[]): Promise<any>;
|
|
142
|
+
registerIdentity(): Promise<void>;
|
|
143
|
+
sendSyncRequest(): Promise<void>;
|
|
144
|
+
findInboxIdByIdentifier(identifier: Identifier): Promise<string | undefined>;
|
|
145
|
+
inboxStateFromInboxIds(inbox_ids: string[], refresh_from_network: boolean): Promise<InboxState[]>;
|
|
146
|
+
conversations(): Conversations;
|
|
147
|
+
syncPreferences(): Promise<number>;
|
|
148
148
|
setConsentStates(records: Consent[]): Promise<void>;
|
|
149
149
|
getConsentState(entity_type: ConsentEntityType, entity: string): Promise<ConsentState>;
|
|
150
150
|
/**
|
|
@@ -603,7 +603,6 @@ export interface InitOutput {
|
|
|
603
603
|
readonly __wbg_set_conversationdebuginfo_epoch: (a: number, b: bigint) => void;
|
|
604
604
|
readonly __wbg_get_conversationdebuginfo_maybeForked: (a: number) => number;
|
|
605
605
|
readonly __wbg_set_conversationdebuginfo_maybeForked: (a: number, b: number) => void;
|
|
606
|
-
readonly __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
|
|
607
606
|
readonly __wbg_set_conversationdebuginfo_forkDetails: (a: number, b: number, c: number) => void;
|
|
608
607
|
readonly __wbg_creategroupoptions_free: (a: number, b: number) => void;
|
|
609
608
|
readonly __wbg_get_creategroupoptions_permissions: (a: number) => number;
|
|
@@ -647,73 +646,39 @@ export interface InitOutput {
|
|
|
647
646
|
readonly conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
|
|
648
647
|
readonly conversations_streamConsent: (a: number, b: any) => [number, number, number];
|
|
649
648
|
readonly conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
650
|
-
readonly
|
|
651
|
-
readonly
|
|
652
|
-
readonly
|
|
653
|
-
readonly
|
|
654
|
-
readonly
|
|
655
|
-
readonly
|
|
656
|
-
readonly
|
|
657
|
-
readonly
|
|
658
|
-
readonly
|
|
659
|
-
readonly
|
|
660
|
-
readonly
|
|
661
|
-
readonly
|
|
662
|
-
readonly
|
|
663
|
-
readonly
|
|
664
|
-
readonly
|
|
665
|
-
readonly
|
|
666
|
-
readonly
|
|
667
|
-
readonly
|
|
668
|
-
readonly
|
|
669
|
-
readonly
|
|
670
|
-
readonly
|
|
671
|
-
readonly
|
|
672
|
-
readonly __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
|
|
673
|
-
readonly message_new: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
674
|
-
readonly __wbg_messagewithreactions_free: (a: number, b: number) => void;
|
|
675
|
-
readonly __wbg_get_messagewithreactions_message: (a: number) => number;
|
|
676
|
-
readonly __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
|
|
677
|
-
readonly __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
|
|
678
|
-
readonly __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
|
|
649
|
+
readonly __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
650
|
+
readonly __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
651
|
+
readonly __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
652
|
+
readonly __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
653
|
+
readonly __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
654
|
+
readonly __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
655
|
+
readonly __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
|
|
656
|
+
readonly __wbg_get_contenttypeid_versionMinor: (a: number) => number;
|
|
657
|
+
readonly __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
|
|
658
|
+
readonly contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
659
|
+
readonly __wbg_encodedcontent_free: (a: number, b: number) => void;
|
|
660
|
+
readonly __wbg_get_encodedcontent_type: (a: number) => number;
|
|
661
|
+
readonly __wbg_set_encodedcontent_type: (a: number, b: number) => void;
|
|
662
|
+
readonly __wbg_get_encodedcontent_parameters: (a: number) => any;
|
|
663
|
+
readonly __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
|
|
664
|
+
readonly __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
|
|
665
|
+
readonly __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
|
|
666
|
+
readonly __wbg_get_encodedcontent_compression: (a: number) => number;
|
|
667
|
+
readonly __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
|
|
668
|
+
readonly __wbg_get_encodedcontent_content: (a: number) => any;
|
|
669
|
+
readonly __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
670
|
+
readonly encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
679
671
|
readonly __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
|
|
680
672
|
readonly __wbg_get_hmackey_epoch: (a: number) => bigint;
|
|
681
|
-
readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
682
|
-
readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
683
|
-
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
684
|
-
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
685
673
|
readonly __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
|
|
686
674
|
readonly __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
|
|
687
|
-
readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
688
675
|
readonly __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
689
676
|
readonly __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
690
|
-
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
691
|
-
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
692
|
-
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
693
677
|
readonly __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
|
|
694
|
-
readonly
|
|
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;
|
|
678
|
+
readonly __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
|
|
716
679
|
readonly __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
|
|
680
|
+
readonly __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
681
|
+
readonly __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
717
682
|
readonly __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
|
|
718
683
|
readonly __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
|
|
719
684
|
readonly __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
|
|
@@ -736,6 +701,10 @@ export interface InitOutput {
|
|
|
736
701
|
readonly encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
737
702
|
readonly decodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
738
703
|
readonly __wbg_reaction_free: (a: number, b: number) => void;
|
|
704
|
+
readonly __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
705
|
+
readonly __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
706
|
+
readonly __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
707
|
+
readonly __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
739
708
|
readonly __wbg_get_reaction_action: (a: number) => number;
|
|
740
709
|
readonly __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
741
710
|
readonly __wbg_get_reaction_content: (a: number) => [number, number];
|
|
@@ -745,41 +714,6 @@ export interface InitOutput {
|
|
|
745
714
|
readonly reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
746
715
|
readonly encodeReaction: (a: number) => [number, number, number];
|
|
747
716
|
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
717
|
readonly verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
784
718
|
readonly __wbg_passkeysignature_free: (a: number, b: number) => void;
|
|
785
719
|
readonly client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
@@ -794,12 +728,6 @@ export interface InitOutput {
|
|
|
794
728
|
readonly client_applySignatureRequests: (a: number) => any;
|
|
795
729
|
readonly client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
796
730
|
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;
|
|
803
731
|
readonly __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
804
732
|
readonly __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
805
733
|
readonly __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
@@ -821,6 +749,28 @@ export interface InitOutput {
|
|
|
821
749
|
readonly __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
822
750
|
readonly grouppermissions_policyType: (a: number) => [number, number, number];
|
|
823
751
|
readonly grouppermissions_policySet: (a: number) => [number, number, number];
|
|
752
|
+
readonly __wbg_client_free: (a: number, b: number) => void;
|
|
753
|
+
readonly __wbg_logoptions_free: (a: number, b: number) => void;
|
|
754
|
+
readonly __wbg_get_logoptions_structured: (a: number) => number;
|
|
755
|
+
readonly __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
756
|
+
readonly __wbg_get_logoptions_performance: (a: number) => number;
|
|
757
|
+
readonly __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
758
|
+
readonly __wbg_get_logoptions_level: (a: number) => number;
|
|
759
|
+
readonly __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
760
|
+
readonly logoptions_new: (a: number, b: number, c: number) => number;
|
|
761
|
+
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;
|
|
762
|
+
readonly client_accountIdentifier: (a: number) => any;
|
|
763
|
+
readonly client_inboxId: (a: number) => [number, number];
|
|
764
|
+
readonly client_isRegistered: (a: number) => number;
|
|
765
|
+
readonly client_installationId: (a: number) => [number, number];
|
|
766
|
+
readonly client_installationIdBytes: (a: number) => any;
|
|
767
|
+
readonly client_canMessage: (a: number, b: number, c: number) => any;
|
|
768
|
+
readonly client_registerIdentity: (a: number) => any;
|
|
769
|
+
readonly client_sendSyncRequest: (a: number) => any;
|
|
770
|
+
readonly client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
771
|
+
readonly client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
772
|
+
readonly client_conversations: (a: number) => number;
|
|
773
|
+
readonly client_syncPreferences: (a: number) => any;
|
|
824
774
|
readonly __wbg_consent_free: (a: number, b: number) => void;
|
|
825
775
|
readonly __wbg_get_consent_entityType: (a: number) => number;
|
|
826
776
|
readonly __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
@@ -920,15 +870,65 @@ export interface InitOutput {
|
|
|
920
870
|
readonly client_inboxState: (a: number, b: number) => any;
|
|
921
871
|
readonly client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
922
872
|
readonly client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
923
|
-
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
924
|
-
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
925
|
-
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
926
|
-
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
927
873
|
readonly __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
928
874
|
readonly streamcloser_end: (a: number) => void;
|
|
929
875
|
readonly streamcloser_endAndWait: (a: number) => any;
|
|
930
876
|
readonly streamcloser_waitForReady: (a: number) => any;
|
|
931
877
|
readonly streamcloser_isClosed: (a: number) => number;
|
|
878
|
+
readonly __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
879
|
+
readonly __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
880
|
+
readonly __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
881
|
+
readonly __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
882
|
+
readonly __wbg_listmessagesoptions_free: (a: number, b: number) => void;
|
|
883
|
+
readonly __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
|
|
884
|
+
readonly __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
|
|
885
|
+
readonly __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
886
|
+
readonly __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
887
|
+
readonly __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
888
|
+
readonly __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
889
|
+
readonly __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
890
|
+
readonly __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
891
|
+
readonly __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
|
|
892
|
+
readonly __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
|
|
893
|
+
readonly __wbg_get_listmessagesoptions_direction: (a: number) => number;
|
|
894
|
+
readonly __wbg_set_listmessagesoptions_direction: (a: number, b: number) => void;
|
|
895
|
+
readonly __wbg_get_listmessagesoptions_kind: (a: number) => number;
|
|
896
|
+
readonly __wbg_set_listmessagesoptions_kind: (a: number, b: number) => void;
|
|
897
|
+
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;
|
|
898
|
+
readonly __wbg_message_free: (a: number, b: number) => void;
|
|
899
|
+
readonly __wbg_get_message_id: (a: number) => [number, number];
|
|
900
|
+
readonly __wbg_set_message_id: (a: number, b: number, c: number) => void;
|
|
901
|
+
readonly __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
902
|
+
readonly __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
903
|
+
readonly __wbg_get_message_convoId: (a: number) => [number, number];
|
|
904
|
+
readonly __wbg_set_message_convoId: (a: number, b: number, c: number) => void;
|
|
905
|
+
readonly __wbg_get_message_senderInboxId: (a: number) => [number, number];
|
|
906
|
+
readonly __wbg_set_message_senderInboxId: (a: number, b: number, c: number) => void;
|
|
907
|
+
readonly __wbg_get_message_content: (a: number) => number;
|
|
908
|
+
readonly __wbg_set_message_content: (a: number, b: number) => void;
|
|
909
|
+
readonly __wbg_get_message_kind: (a: number) => number;
|
|
910
|
+
readonly __wbg_set_message_kind: (a: number, b: number) => void;
|
|
911
|
+
readonly __wbg_get_message_deliveryStatus: (a: number) => number;
|
|
912
|
+
readonly __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
|
|
913
|
+
readonly message_new: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
914
|
+
readonly __wbg_messagewithreactions_free: (a: number, b: number) => void;
|
|
915
|
+
readonly __wbg_get_messagewithreactions_message: (a: number) => number;
|
|
916
|
+
readonly __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
|
|
917
|
+
readonly __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
|
|
918
|
+
readonly __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
|
|
919
|
+
readonly __wbg_opfs_free: (a: number, b: number) => void;
|
|
920
|
+
readonly opfs_init_sqlite_opfs: () => any;
|
|
921
|
+
readonly opfs_exists: () => number;
|
|
922
|
+
readonly opfs_error: () => [number, number];
|
|
923
|
+
readonly opfs_wipeFiles: () => any;
|
|
924
|
+
readonly opfs_rm: (a: number, b: number) => [number, number, number];
|
|
925
|
+
readonly opfs_getFileNames: () => [number, number];
|
|
926
|
+
readonly opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
|
|
927
|
+
readonly opfs_exportFile: (a: number, b: number) => [number, number, number, number];
|
|
928
|
+
readonly opfs_getFileCount: () => number;
|
|
929
|
+
readonly opfs_getCapacity: () => number;
|
|
930
|
+
readonly opfs_addCapacity: (a: number) => any;
|
|
931
|
+
readonly opfs_reduceCapacity: (a: number) => any;
|
|
932
932
|
readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
|
|
933
933
|
readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
934
934
|
readonly rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
|
|
@@ -968,10 +968,10 @@ export interface InitOutput {
|
|
|
968
968
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
969
969
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6040dd5f55152215: (a: number, b: number) => void;
|
|
970
970
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h89dafc0baf46c12b: (a: number, b: number) => void;
|
|
971
|
-
readonly
|
|
971
|
+
readonly closure4459_externref_shim: (a: number, b: number, c: any) => void;
|
|
972
972
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f45197f24caef5a: (a: number, b: number) => void;
|
|
973
|
-
readonly
|
|
974
|
-
readonly
|
|
973
|
+
readonly closure5466_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
|
|
974
|
+
readonly closure5465_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
975
975
|
readonly __wbindgen_start: () => void;
|
|
976
976
|
}
|
|
977
977
|
|
package/dist/bindings_wasm.js
CHANGED
|
@@ -242,35 +242,6 @@ function takeFromExternrefTable0(idx) {
|
|
|
242
242
|
wasm.__externref_table_dealloc(idx);
|
|
243
243
|
return value;
|
|
244
244
|
}
|
|
245
|
-
/**
|
|
246
|
-
* @param {string} host
|
|
247
|
-
* @param {string} inbox_id
|
|
248
|
-
* @param {Identifier} account_identifier
|
|
249
|
-
* @param {string | null} [db_path]
|
|
250
|
-
* @param {Uint8Array | null} [encryption_key]
|
|
251
|
-
* @param {string | null} [device_sync_server_url]
|
|
252
|
-
* @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
|
|
253
|
-
* @param {LogOptions | null} [log_options]
|
|
254
|
-
* @returns {Promise<Client>}
|
|
255
|
-
*/
|
|
256
|
-
export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options) {
|
|
257
|
-
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
258
|
-
const len0 = WASM_VECTOR_LEN;
|
|
259
|
-
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
260
|
-
const len1 = WASM_VECTOR_LEN;
|
|
261
|
-
var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
262
|
-
var len2 = WASM_VECTOR_LEN;
|
|
263
|
-
var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
264
|
-
var len3 = WASM_VECTOR_LEN;
|
|
265
|
-
let ptr4 = 0;
|
|
266
|
-
if (!isLikeNone(log_options)) {
|
|
267
|
-
_assertClass(log_options, LogOptions);
|
|
268
|
-
ptr4 = log_options.__destroy_into_raw();
|
|
269
|
-
}
|
|
270
|
-
const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, isLikeNone(device_sync_worker_mode) ? 3 : ((__wbindgen_enum_DeviceSyncWorkerMode.indexOf(device_sync_worker_mode) + 1 || 3) - 1), ptr4);
|
|
271
|
-
return ret;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
245
|
/**
|
|
275
246
|
* @param {MultiRemoteAttachment} multiRemoteAttachment
|
|
276
247
|
* @returns {Uint8Array}
|
|
@@ -337,6 +308,35 @@ export function verifySignedWithPublicKey(signature_text, signature_bytes, publi
|
|
|
337
308
|
}
|
|
338
309
|
}
|
|
339
310
|
|
|
311
|
+
/**
|
|
312
|
+
* @param {string} host
|
|
313
|
+
* @param {string} inbox_id
|
|
314
|
+
* @param {Identifier} account_identifier
|
|
315
|
+
* @param {string | null} [db_path]
|
|
316
|
+
* @param {Uint8Array | null} [encryption_key]
|
|
317
|
+
* @param {string | null} [device_sync_server_url]
|
|
318
|
+
* @param {DeviceSyncWorkerMode | null} [device_sync_worker_mode]
|
|
319
|
+
* @param {LogOptions | null} [log_options]
|
|
320
|
+
* @returns {Promise<Client>}
|
|
321
|
+
*/
|
|
322
|
+
export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options) {
|
|
323
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
324
|
+
const len0 = WASM_VECTOR_LEN;
|
|
325
|
+
const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
326
|
+
const len1 = WASM_VECTOR_LEN;
|
|
327
|
+
var ptr2 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
328
|
+
var len2 = WASM_VECTOR_LEN;
|
|
329
|
+
var ptr3 = isLikeNone(device_sync_server_url) ? 0 : passStringToWasm0(device_sync_server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
330
|
+
var len3 = WASM_VECTOR_LEN;
|
|
331
|
+
let ptr4 = 0;
|
|
332
|
+
if (!isLikeNone(log_options)) {
|
|
333
|
+
_assertClass(log_options, LogOptions);
|
|
334
|
+
ptr4 = log_options.__destroy_into_raw();
|
|
335
|
+
}
|
|
336
|
+
const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, isLikeNone(device_sync_worker_mode) ? 3 : ((__wbindgen_enum_DeviceSyncWorkerMode.indexOf(device_sync_worker_mode) + 1 || 3) - 1), ptr4);
|
|
337
|
+
return ret;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
340
|
/**
|
|
341
341
|
* @param {string} host
|
|
342
342
|
* @param {Identifier} accountIdentifier
|
|
@@ -381,7 +381,7 @@ function __wbg_adapter_53(arg0, arg1) {
|
|
|
381
381
|
}
|
|
382
382
|
|
|
383
383
|
function __wbg_adapter_56(arg0, arg1, arg2) {
|
|
384
|
-
wasm.
|
|
384
|
+
wasm.closure4459_externref_shim(arg0, arg1, arg2);
|
|
385
385
|
}
|
|
386
386
|
|
|
387
387
|
function __wbg_adapter_59(arg0, arg1) {
|
|
@@ -389,12 +389,12 @@ function __wbg_adapter_59(arg0, arg1) {
|
|
|
389
389
|
}
|
|
390
390
|
|
|
391
391
|
function __wbg_adapter_650(arg0, arg1, arg2, arg3, arg4) {
|
|
392
|
-
const ret = wasm.
|
|
392
|
+
const ret = wasm.closure5466_externref_shim(arg0, arg1, arg2, arg3, arg4);
|
|
393
393
|
return ret !== 0;
|
|
394
394
|
}
|
|
395
395
|
|
|
396
396
|
function __wbg_adapter_751(arg0, arg1, arg2, arg3) {
|
|
397
|
-
wasm.
|
|
397
|
+
wasm.closure5465_externref_shim(arg0, arg1, arg2, arg3);
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
/**
|
|
@@ -576,115 +576,6 @@ export class Client {
|
|
|
576
576
|
const ptr = this.__destroy_into_raw();
|
|
577
577
|
wasm.__wbg_client_free(ptr, 0);
|
|
578
578
|
}
|
|
579
|
-
/**
|
|
580
|
-
* @returns {Identifier}
|
|
581
|
-
*/
|
|
582
|
-
get accountIdentifier() {
|
|
583
|
-
const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
|
|
584
|
-
return ret;
|
|
585
|
-
}
|
|
586
|
-
/**
|
|
587
|
-
* @returns {string}
|
|
588
|
-
*/
|
|
589
|
-
get inboxId() {
|
|
590
|
-
let deferred1_0;
|
|
591
|
-
let deferred1_1;
|
|
592
|
-
try {
|
|
593
|
-
const ret = wasm.client_inboxId(this.__wbg_ptr);
|
|
594
|
-
deferred1_0 = ret[0];
|
|
595
|
-
deferred1_1 = ret[1];
|
|
596
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
597
|
-
} finally {
|
|
598
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
/**
|
|
602
|
-
* @returns {boolean}
|
|
603
|
-
*/
|
|
604
|
-
get isRegistered() {
|
|
605
|
-
const ret = wasm.client_isRegistered(this.__wbg_ptr);
|
|
606
|
-
return ret !== 0;
|
|
607
|
-
}
|
|
608
|
-
/**
|
|
609
|
-
* @returns {string}
|
|
610
|
-
*/
|
|
611
|
-
get installationId() {
|
|
612
|
-
let deferred1_0;
|
|
613
|
-
let deferred1_1;
|
|
614
|
-
try {
|
|
615
|
-
const ret = wasm.client_installationId(this.__wbg_ptr);
|
|
616
|
-
deferred1_0 = ret[0];
|
|
617
|
-
deferred1_1 = ret[1];
|
|
618
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
619
|
-
} finally {
|
|
620
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
/**
|
|
624
|
-
* @returns {Uint8Array}
|
|
625
|
-
*/
|
|
626
|
-
get installationIdBytes() {
|
|
627
|
-
const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
|
|
628
|
-
return ret;
|
|
629
|
-
}
|
|
630
|
-
/**
|
|
631
|
-
* Output booleans should be zipped with the index of input identifiers
|
|
632
|
-
* @param {Identifier[]} account_identifiers
|
|
633
|
-
* @returns {Promise<any>}
|
|
634
|
-
*/
|
|
635
|
-
canMessage(account_identifiers) {
|
|
636
|
-
const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
637
|
-
const len0 = WASM_VECTOR_LEN;
|
|
638
|
-
const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
|
|
639
|
-
return ret;
|
|
640
|
-
}
|
|
641
|
-
/**
|
|
642
|
-
* @returns {Promise<void>}
|
|
643
|
-
*/
|
|
644
|
-
registerIdentity() {
|
|
645
|
-
const ret = wasm.client_registerIdentity(this.__wbg_ptr);
|
|
646
|
-
return ret;
|
|
647
|
-
}
|
|
648
|
-
/**
|
|
649
|
-
* @returns {Promise<void>}
|
|
650
|
-
*/
|
|
651
|
-
sendSyncRequest() {
|
|
652
|
-
const ret = wasm.client_sendSyncRequest(this.__wbg_ptr);
|
|
653
|
-
return ret;
|
|
654
|
-
}
|
|
655
|
-
/**
|
|
656
|
-
* @param {Identifier} identifier
|
|
657
|
-
* @returns {Promise<string | undefined>}
|
|
658
|
-
*/
|
|
659
|
-
findInboxIdByIdentifier(identifier) {
|
|
660
|
-
const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
|
|
661
|
-
return ret;
|
|
662
|
-
}
|
|
663
|
-
/**
|
|
664
|
-
* @param {string[]} inbox_ids
|
|
665
|
-
* @param {boolean} refresh_from_network
|
|
666
|
-
* @returns {Promise<InboxState[]>}
|
|
667
|
-
*/
|
|
668
|
-
inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
|
|
669
|
-
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
670
|
-
const len0 = WASM_VECTOR_LEN;
|
|
671
|
-
const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
|
|
672
|
-
return ret;
|
|
673
|
-
}
|
|
674
|
-
/**
|
|
675
|
-
* @returns {Conversations}
|
|
676
|
-
*/
|
|
677
|
-
conversations() {
|
|
678
|
-
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
679
|
-
return Conversations.__wrap(ret);
|
|
680
|
-
}
|
|
681
|
-
/**
|
|
682
|
-
* @returns {Promise<number>}
|
|
683
|
-
*/
|
|
684
|
-
syncPreferences() {
|
|
685
|
-
const ret = wasm.client_syncPreferences(this.__wbg_ptr);
|
|
686
|
-
return ret;
|
|
687
|
-
}
|
|
688
579
|
/**
|
|
689
580
|
* @returns {string | undefined}
|
|
690
581
|
*/
|
|
@@ -804,6 +695,115 @@ export class Client {
|
|
|
804
695
|
throw takeFromExternrefTable0(ret[0]);
|
|
805
696
|
}
|
|
806
697
|
}
|
|
698
|
+
/**
|
|
699
|
+
* @returns {Identifier}
|
|
700
|
+
*/
|
|
701
|
+
get accountIdentifier() {
|
|
702
|
+
const ret = wasm.client_accountIdentifier(this.__wbg_ptr);
|
|
703
|
+
return ret;
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* @returns {string}
|
|
707
|
+
*/
|
|
708
|
+
get inboxId() {
|
|
709
|
+
let deferred1_0;
|
|
710
|
+
let deferred1_1;
|
|
711
|
+
try {
|
|
712
|
+
const ret = wasm.client_inboxId(this.__wbg_ptr);
|
|
713
|
+
deferred1_0 = ret[0];
|
|
714
|
+
deferred1_1 = ret[1];
|
|
715
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
716
|
+
} finally {
|
|
717
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* @returns {boolean}
|
|
722
|
+
*/
|
|
723
|
+
get isRegistered() {
|
|
724
|
+
const ret = wasm.client_isRegistered(this.__wbg_ptr);
|
|
725
|
+
return ret !== 0;
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* @returns {string}
|
|
729
|
+
*/
|
|
730
|
+
get installationId() {
|
|
731
|
+
let deferred1_0;
|
|
732
|
+
let deferred1_1;
|
|
733
|
+
try {
|
|
734
|
+
const ret = wasm.client_installationId(this.__wbg_ptr);
|
|
735
|
+
deferred1_0 = ret[0];
|
|
736
|
+
deferred1_1 = ret[1];
|
|
737
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
738
|
+
} finally {
|
|
739
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
/**
|
|
743
|
+
* @returns {Uint8Array}
|
|
744
|
+
*/
|
|
745
|
+
get installationIdBytes() {
|
|
746
|
+
const ret = wasm.client_installationIdBytes(this.__wbg_ptr);
|
|
747
|
+
return ret;
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* Output booleans should be zipped with the index of input identifiers
|
|
751
|
+
* @param {Identifier[]} account_identifiers
|
|
752
|
+
* @returns {Promise<any>}
|
|
753
|
+
*/
|
|
754
|
+
canMessage(account_identifiers) {
|
|
755
|
+
const ptr0 = passArrayJsValueToWasm0(account_identifiers, wasm.__wbindgen_malloc);
|
|
756
|
+
const len0 = WASM_VECTOR_LEN;
|
|
757
|
+
const ret = wasm.client_canMessage(this.__wbg_ptr, ptr0, len0);
|
|
758
|
+
return ret;
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* @returns {Promise<void>}
|
|
762
|
+
*/
|
|
763
|
+
registerIdentity() {
|
|
764
|
+
const ret = wasm.client_registerIdentity(this.__wbg_ptr);
|
|
765
|
+
return ret;
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* @returns {Promise<void>}
|
|
769
|
+
*/
|
|
770
|
+
sendSyncRequest() {
|
|
771
|
+
const ret = wasm.client_sendSyncRequest(this.__wbg_ptr);
|
|
772
|
+
return ret;
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* @param {Identifier} identifier
|
|
776
|
+
* @returns {Promise<string | undefined>}
|
|
777
|
+
*/
|
|
778
|
+
findInboxIdByIdentifier(identifier) {
|
|
779
|
+
const ret = wasm.client_findInboxIdByIdentifier(this.__wbg_ptr, identifier);
|
|
780
|
+
return ret;
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* @param {string[]} inbox_ids
|
|
784
|
+
* @param {boolean} refresh_from_network
|
|
785
|
+
* @returns {Promise<InboxState[]>}
|
|
786
|
+
*/
|
|
787
|
+
inboxStateFromInboxIds(inbox_ids, refresh_from_network) {
|
|
788
|
+
const ptr0 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
|
|
789
|
+
const len0 = WASM_VECTOR_LEN;
|
|
790
|
+
const ret = wasm.client_inboxStateFromInboxIds(this.__wbg_ptr, ptr0, len0, refresh_from_network);
|
|
791
|
+
return ret;
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* @returns {Conversations}
|
|
795
|
+
*/
|
|
796
|
+
conversations() {
|
|
797
|
+
const ret = wasm.client_conversations(this.__wbg_ptr);
|
|
798
|
+
return Conversations.__wrap(ret);
|
|
799
|
+
}
|
|
800
|
+
/**
|
|
801
|
+
* @returns {Promise<number>}
|
|
802
|
+
*/
|
|
803
|
+
syncPreferences() {
|
|
804
|
+
const ret = wasm.client_syncPreferences(this.__wbg_ptr);
|
|
805
|
+
return ret;
|
|
806
|
+
}
|
|
807
807
|
/**
|
|
808
808
|
* @param {Consent[]} records
|
|
809
809
|
* @returns {Promise<void>}
|
|
@@ -3219,7 +3219,7 @@ export class ListMessagesOptions {
|
|
|
3219
3219
|
* @param {bigint | null} [arg0]
|
|
3220
3220
|
*/
|
|
3221
3221
|
set sentBeforeNs(arg0) {
|
|
3222
|
-
wasm.
|
|
3222
|
+
wasm.__wbg_set_listmessagesoptions_sentBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
3223
3223
|
}
|
|
3224
3224
|
/**
|
|
3225
3225
|
* @returns {bigint | undefined}
|
|
@@ -3232,7 +3232,7 @@ export class ListMessagesOptions {
|
|
|
3232
3232
|
* @param {bigint | null} [arg0]
|
|
3233
3233
|
*/
|
|
3234
3234
|
set sentAfterNs(arg0) {
|
|
3235
|
-
wasm.
|
|
3235
|
+
wasm.__wbg_set_listmessagesoptions_sentAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
3236
3236
|
}
|
|
3237
3237
|
/**
|
|
3238
3238
|
* @returns {bigint | undefined}
|
|
@@ -3245,7 +3245,7 @@ export class ListMessagesOptions {
|
|
|
3245
3245
|
* @param {bigint | null} [arg0]
|
|
3246
3246
|
*/
|
|
3247
3247
|
set limit(arg0) {
|
|
3248
|
-
wasm.
|
|
3248
|
+
wasm.__wbg_set_listmessagesoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
|
|
3249
3249
|
}
|
|
3250
3250
|
/**
|
|
3251
3251
|
* @returns {DeliveryStatus | undefined}
|
|
@@ -3441,14 +3441,14 @@ export class Message {
|
|
|
3441
3441
|
* @returns {bigint}
|
|
3442
3442
|
*/
|
|
3443
3443
|
get sentAtNs() {
|
|
3444
|
-
const ret = wasm.
|
|
3444
|
+
const ret = wasm.__wbg_get_message_sentAtNs(this.__wbg_ptr);
|
|
3445
3445
|
return ret;
|
|
3446
3446
|
}
|
|
3447
3447
|
/**
|
|
3448
3448
|
* @param {bigint} arg0
|
|
3449
3449
|
*/
|
|
3450
3450
|
set sentAtNs(arg0) {
|
|
3451
|
-
wasm.
|
|
3451
|
+
wasm.__wbg_set_message_sentAtNs(this.__wbg_ptr, arg0);
|
|
3452
3452
|
}
|
|
3453
3453
|
/**
|
|
3454
3454
|
* @returns {string}
|
|
@@ -4093,7 +4093,7 @@ export class Reaction {
|
|
|
4093
4093
|
set reference(arg0) {
|
|
4094
4094
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4095
4095
|
const len0 = WASM_VECTOR_LEN;
|
|
4096
|
-
wasm.
|
|
4096
|
+
wasm.__wbg_set_reaction_reference(this.__wbg_ptr, ptr0, len0);
|
|
4097
4097
|
}
|
|
4098
4098
|
/**
|
|
4099
4099
|
* @returns {string}
|
|
@@ -4116,7 +4116,7 @@ export class Reaction {
|
|
|
4116
4116
|
set referenceInboxId(arg0) {
|
|
4117
4117
|
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4118
4118
|
const len0 = WASM_VECTOR_LEN;
|
|
4119
|
-
wasm.
|
|
4119
|
+
wasm.__wbg_set_reaction_referenceInboxId(this.__wbg_ptr, ptr0, len0);
|
|
4120
4120
|
}
|
|
4121
4121
|
/**
|
|
4122
4122
|
* @returns {ReactionAction}
|
|
@@ -5122,19 +5122,19 @@ function __wbg_get_imports() {
|
|
|
5122
5122
|
const ret = arg0.now();
|
|
5123
5123
|
return ret;
|
|
5124
5124
|
};
|
|
5125
|
-
imports.wbg.
|
|
5125
|
+
imports.wbg.__wbg_onconsentupdate_54b444121968ec54 = function(arg0, arg1) {
|
|
5126
5126
|
arg0.on_consent_update(arg1);
|
|
5127
5127
|
};
|
|
5128
|
-
imports.wbg.
|
|
5128
|
+
imports.wbg.__wbg_onconversation_04d5bcbf4cf0aca0 = function(arg0, arg1) {
|
|
5129
5129
|
arg0.on_conversation(Conversation.__wrap(arg1));
|
|
5130
5130
|
};
|
|
5131
|
-
imports.wbg.
|
|
5131
|
+
imports.wbg.__wbg_onerror_74a216da3c9154ed = function(arg0, arg1) {
|
|
5132
5132
|
arg0.on_error(arg1);
|
|
5133
5133
|
};
|
|
5134
|
-
imports.wbg.
|
|
5134
|
+
imports.wbg.__wbg_onmessage_027fcf9b1c8f68e9 = function(arg0, arg1) {
|
|
5135
5135
|
arg0.on_message(Message.__wrap(arg1));
|
|
5136
5136
|
};
|
|
5137
|
-
imports.wbg.
|
|
5137
|
+
imports.wbg.__wbg_onuserpreferenceupdate_b0f871f854fe68fd = function(arg0, arg1, arg2) {
|
|
5138
5138
|
var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
|
|
5139
5139
|
wasm.__wbindgen_free(arg1, arg2 * 4, 4);
|
|
5140
5140
|
arg0.on_user_preference_update(v0);
|
|
@@ -5430,20 +5430,20 @@ function __wbg_get_imports() {
|
|
|
5430
5430
|
const ret = false;
|
|
5431
5431
|
return ret;
|
|
5432
5432
|
};
|
|
5433
|
-
imports.wbg.
|
|
5434
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5433
|
+
imports.wbg.__wbindgen_closure_wrapper17265 = function(arg0, arg1, arg2) {
|
|
5434
|
+
const ret = makeMutClosure(arg0, arg1, 4093, __wbg_adapter_50);
|
|
5435
5435
|
return ret;
|
|
5436
5436
|
};
|
|
5437
|
-
imports.wbg.
|
|
5438
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5437
|
+
imports.wbg.__wbindgen_closure_wrapper17309 = function(arg0, arg1, arg2) {
|
|
5438
|
+
const ret = makeMutClosure(arg0, arg1, 4103, __wbg_adapter_53);
|
|
5439
5439
|
return ret;
|
|
5440
5440
|
};
|
|
5441
|
-
imports.wbg.
|
|
5442
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5441
|
+
imports.wbg.__wbindgen_closure_wrapper20550 = function(arg0, arg1, arg2) {
|
|
5442
|
+
const ret = makeMutClosure(arg0, arg1, 4460, __wbg_adapter_56);
|
|
5443
5443
|
return ret;
|
|
5444
5444
|
};
|
|
5445
|
-
imports.wbg.
|
|
5446
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5445
|
+
imports.wbg.__wbindgen_closure_wrapper20671 = function(arg0, arg1, arg2) {
|
|
5446
|
+
const ret = makeMutClosure(arg0, arg1, 4474, __wbg_adapter_59);
|
|
5447
5447
|
return ret;
|
|
5448
5448
|
};
|
|
5449
5449
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -24,7 +24,6 @@ export const __wbg_get_conversationdebuginfo_epoch: (a: number) => bigint;
|
|
|
24
24
|
export const __wbg_set_conversationdebuginfo_epoch: (a: number, b: bigint) => void;
|
|
25
25
|
export const __wbg_get_conversationdebuginfo_maybeForked: (a: number) => number;
|
|
26
26
|
export const __wbg_set_conversationdebuginfo_maybeForked: (a: number, b: number) => void;
|
|
27
|
-
export const __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
|
|
28
27
|
export const __wbg_set_conversationdebuginfo_forkDetails: (a: number, b: number, c: number) => void;
|
|
29
28
|
export const __wbg_creategroupoptions_free: (a: number, b: number) => void;
|
|
30
29
|
export const __wbg_get_creategroupoptions_permissions: (a: number) => number;
|
|
@@ -68,73 +67,39 @@ export const conversations_stream: (a: number, b: any, c: number) => [number, nu
|
|
|
68
67
|
export const conversations_streamAllMessages: (a: number, b: any, c: number, d: number, e: number) => [number, number, number];
|
|
69
68
|
export const conversations_streamConsent: (a: number, b: any) => [number, number, number];
|
|
70
69
|
export const conversations_streamPreferences: (a: number, b: any) => [number, number, number];
|
|
71
|
-
export const
|
|
72
|
-
export const
|
|
73
|
-
export const
|
|
74
|
-
export const
|
|
75
|
-
export const
|
|
76
|
-
export const
|
|
77
|
-
export const
|
|
78
|
-
export const
|
|
79
|
-
export const
|
|
80
|
-
export const
|
|
81
|
-
export const
|
|
82
|
-
export const
|
|
83
|
-
export const
|
|
84
|
-
export const
|
|
85
|
-
export const
|
|
86
|
-
export const
|
|
87
|
-
export const
|
|
88
|
-
export const
|
|
89
|
-
export const
|
|
90
|
-
export const
|
|
91
|
-
export const
|
|
92
|
-
export const
|
|
93
|
-
export const __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
|
|
94
|
-
export const message_new: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
95
|
-
export const __wbg_messagewithreactions_free: (a: number, b: number) => void;
|
|
96
|
-
export const __wbg_get_messagewithreactions_message: (a: number) => number;
|
|
97
|
-
export const __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
|
|
98
|
-
export const __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
|
|
99
|
-
export const __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
|
|
70
|
+
export const __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
71
|
+
export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
72
|
+
export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
73
|
+
export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
74
|
+
export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
75
|
+
export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
76
|
+
export const __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
|
|
77
|
+
export const __wbg_get_contenttypeid_versionMinor: (a: number) => number;
|
|
78
|
+
export const __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
|
|
79
|
+
export const contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
80
|
+
export const __wbg_encodedcontent_free: (a: number, b: number) => void;
|
|
81
|
+
export const __wbg_get_encodedcontent_type: (a: number) => number;
|
|
82
|
+
export const __wbg_set_encodedcontent_type: (a: number, b: number) => void;
|
|
83
|
+
export const __wbg_get_encodedcontent_parameters: (a: number) => any;
|
|
84
|
+
export const __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
|
|
85
|
+
export const __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
|
|
86
|
+
export const __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
|
|
87
|
+
export const __wbg_get_encodedcontent_compression: (a: number) => number;
|
|
88
|
+
export const __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
|
|
89
|
+
export const __wbg_get_encodedcontent_content: (a: number) => any;
|
|
90
|
+
export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
91
|
+
export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
100
92
|
export const __wbg_get_messagedisappearingsettings_fromNs: (a: number) => bigint;
|
|
101
93
|
export const __wbg_get_hmackey_epoch: (a: number) => bigint;
|
|
102
|
-
export const __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
103
|
-
export const __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
104
|
-
export const __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
105
|
-
export const __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
106
94
|
export const __wbg_set_messagedisappearingsettings_fromNs: (a: number, b: bigint) => void;
|
|
107
95
|
export const __wbg_set_hmackey_epoch: (a: number, b: bigint) => void;
|
|
108
|
-
export const __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
109
96
|
export const __wbg_set_creategroupoptions_messageDisappearingSettings: (a: number, b: number) => void;
|
|
110
97
|
export const __wbg_get_creategroupoptions_messageDisappearingSettings: (a: number) => number;
|
|
111
|
-
export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
112
|
-
export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
113
|
-
export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
114
98
|
export const __wbg_set_hmackey_key: (a: number, b: number, c: number) => void;
|
|
115
|
-
export const
|
|
116
|
-
export const __wbg_logoptions_free: (a: number, b: number) => void;
|
|
117
|
-
export const __wbg_get_logoptions_structured: (a: number) => number;
|
|
118
|
-
export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
119
|
-
export const __wbg_get_logoptions_performance: (a: number) => number;
|
|
120
|
-
export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
121
|
-
export const __wbg_get_logoptions_level: (a: number) => number;
|
|
122
|
-
export const __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
123
|
-
export const logoptions_new: (a: number, b: number, c: number) => number;
|
|
124
|
-
export const createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => any;
|
|
125
|
-
export const client_accountIdentifier: (a: number) => any;
|
|
126
|
-
export const client_inboxId: (a: number) => [number, number];
|
|
127
|
-
export const client_isRegistered: (a: number) => number;
|
|
128
|
-
export const client_installationId: (a: number) => [number, number];
|
|
129
|
-
export const client_installationIdBytes: (a: number) => any;
|
|
130
|
-
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
131
|
-
export const client_registerIdentity: (a: number) => any;
|
|
132
|
-
export const client_sendSyncRequest: (a: number) => any;
|
|
133
|
-
export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
134
|
-
export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
135
|
-
export const client_conversations: (a: number) => number;
|
|
136
|
-
export const client_syncPreferences: (a: number) => any;
|
|
99
|
+
export const __wbg_get_conversationdebuginfo_forkDetails: (a: number) => [number, number];
|
|
137
100
|
export const __wbg_remoteattachmentinfo_free: (a: number, b: number) => void;
|
|
101
|
+
export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
102
|
+
export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
138
103
|
export const __wbg_get_remoteattachmentinfo_contentDigest: (a: number) => [number, number];
|
|
139
104
|
export const __wbg_set_remoteattachmentinfo_contentDigest: (a: number, b: number, c: number) => void;
|
|
140
105
|
export const __wbg_get_remoteattachmentinfo_nonce: (a: number) => any;
|
|
@@ -157,6 +122,10 @@ export const multiremoteattachment_new: (a: number, b: number) => number;
|
|
|
157
122
|
export const encodeMultiRemoteAttachment: (a: number) => [number, number, number];
|
|
158
123
|
export const decodeMultiRemoteAttachment: (a: any) => [number, number, number];
|
|
159
124
|
export const __wbg_reaction_free: (a: number, b: number) => void;
|
|
125
|
+
export const __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
126
|
+
export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
127
|
+
export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
128
|
+
export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
160
129
|
export const __wbg_get_reaction_action: (a: number) => number;
|
|
161
130
|
export const __wbg_set_reaction_action: (a: number, b: number) => void;
|
|
162
131
|
export const __wbg_get_reaction_content: (a: number) => [number, number];
|
|
@@ -166,41 +135,6 @@ export const __wbg_set_reaction_schema: (a: number, b: number) => void;
|
|
|
166
135
|
export const reaction_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
167
136
|
export const encodeReaction: (a: number) => [number, number, number];
|
|
168
137
|
export const decodeReaction: (a: any) => [number, number, number];
|
|
169
|
-
export const __wbg_contenttypeid_free: (a: number, b: number) => void;
|
|
170
|
-
export const __wbg_get_contenttypeid_authorityId: (a: number) => [number, number];
|
|
171
|
-
export const __wbg_set_contenttypeid_authorityId: (a: number, b: number, c: number) => void;
|
|
172
|
-
export const __wbg_get_contenttypeid_typeId: (a: number) => [number, number];
|
|
173
|
-
export const __wbg_set_contenttypeid_typeId: (a: number, b: number, c: number) => void;
|
|
174
|
-
export const __wbg_get_contenttypeid_versionMajor: (a: number) => number;
|
|
175
|
-
export const __wbg_set_contenttypeid_versionMajor: (a: number, b: number) => void;
|
|
176
|
-
export const __wbg_get_contenttypeid_versionMinor: (a: number) => number;
|
|
177
|
-
export const __wbg_set_contenttypeid_versionMinor: (a: number, b: number) => void;
|
|
178
|
-
export const contenttypeid_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
179
|
-
export const __wbg_encodedcontent_free: (a: number, b: number) => void;
|
|
180
|
-
export const __wbg_get_encodedcontent_type: (a: number) => number;
|
|
181
|
-
export const __wbg_set_encodedcontent_type: (a: number, b: number) => void;
|
|
182
|
-
export const __wbg_get_encodedcontent_parameters: (a: number) => any;
|
|
183
|
-
export const __wbg_set_encodedcontent_parameters: (a: number, b: any) => void;
|
|
184
|
-
export const __wbg_get_encodedcontent_fallback: (a: number) => [number, number];
|
|
185
|
-
export const __wbg_set_encodedcontent_fallback: (a: number, b: number, c: number) => void;
|
|
186
|
-
export const __wbg_get_encodedcontent_compression: (a: number) => number;
|
|
187
|
-
export const __wbg_set_encodedcontent_compression: (a: number, b: number) => void;
|
|
188
|
-
export const __wbg_get_encodedcontent_content: (a: number) => any;
|
|
189
|
-
export const __wbg_set_encodedcontent_content: (a: number, b: any) => void;
|
|
190
|
-
export const encodedcontent_new: (a: number, b: any, c: number, d: number, e: number, f: any) => number;
|
|
191
|
-
export const __wbg_opfs_free: (a: number, b: number) => void;
|
|
192
|
-
export const opfs_init_sqlite_opfs: () => any;
|
|
193
|
-
export const opfs_exists: () => number;
|
|
194
|
-
export const opfs_error: () => [number, number];
|
|
195
|
-
export const opfs_wipeFiles: () => any;
|
|
196
|
-
export const opfs_rm: (a: number, b: number) => [number, number, number];
|
|
197
|
-
export const opfs_getFileNames: () => [number, number];
|
|
198
|
-
export const opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
|
|
199
|
-
export const opfs_exportFile: (a: number, b: number) => [number, number, number, number];
|
|
200
|
-
export const opfs_getFileCount: () => number;
|
|
201
|
-
export const opfs_getCapacity: () => number;
|
|
202
|
-
export const opfs_addCapacity: (a: number) => any;
|
|
203
|
-
export const opfs_reduceCapacity: (a: number) => any;
|
|
204
138
|
export const verifySignedWithPublicKey: (a: number, b: number, c: any, d: any) => [number, number];
|
|
205
139
|
export const __wbg_passkeysignature_free: (a: number, b: number) => void;
|
|
206
140
|
export const client_createInboxSignatureText: (a: number) => [number, number, number, number];
|
|
@@ -215,12 +149,6 @@ export const client_addScwSignature: (a: number, b: number, c: any, d: bigint, e
|
|
|
215
149
|
export const client_applySignatureRequests: (a: number) => any;
|
|
216
150
|
export const client_signWithInstallationKey: (a: number, b: number, c: number) => [number, number, number];
|
|
217
151
|
export const client_verifySignedWithInstallationKey: (a: number, b: number, c: number, d: any) => [number, number];
|
|
218
|
-
export const __wbg_set_reaction_reference: (a: number, b: number, c: number) => void;
|
|
219
|
-
export const __wbg_set_reaction_referenceInboxId: (a: number, b: number, c: number) => void;
|
|
220
|
-
export const __wbg_set_remoteattachmentinfo_secret: (a: number, b: any) => void;
|
|
221
|
-
export const __wbg_get_reaction_reference: (a: number) => [number, number];
|
|
222
|
-
export const __wbg_get_reaction_referenceInboxId: (a: number) => [number, number];
|
|
223
|
-
export const __wbg_get_remoteattachmentinfo_secret: (a: number) => any;
|
|
224
152
|
export const __wbg_permissionpolicyset_free: (a: number, b: number) => void;
|
|
225
153
|
export const __wbg_get_permissionpolicyset_addMemberPolicy: (a: number) => number;
|
|
226
154
|
export const __wbg_set_permissionpolicyset_addMemberPolicy: (a: number, b: number) => void;
|
|
@@ -242,6 +170,28 @@ export const permissionpolicyset_new: (a: number, b: number, c: number, d: numbe
|
|
|
242
170
|
export const __wbg_grouppermissions_free: (a: number, b: number) => void;
|
|
243
171
|
export const grouppermissions_policyType: (a: number) => [number, number, number];
|
|
244
172
|
export const grouppermissions_policySet: (a: number) => [number, number, number];
|
|
173
|
+
export const __wbg_client_free: (a: number, b: number) => void;
|
|
174
|
+
export const __wbg_logoptions_free: (a: number, b: number) => void;
|
|
175
|
+
export const __wbg_get_logoptions_structured: (a: number) => number;
|
|
176
|
+
export const __wbg_set_logoptions_structured: (a: number, b: number) => void;
|
|
177
|
+
export const __wbg_get_logoptions_performance: (a: number) => number;
|
|
178
|
+
export const __wbg_set_logoptions_performance: (a: number, b: number) => void;
|
|
179
|
+
export const __wbg_get_logoptions_level: (a: number) => number;
|
|
180
|
+
export const __wbg_set_logoptions_level: (a: number, b: number) => void;
|
|
181
|
+
export const logoptions_new: (a: number, b: number, c: number) => number;
|
|
182
|
+
export const createClient: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => any;
|
|
183
|
+
export const client_accountIdentifier: (a: number) => any;
|
|
184
|
+
export const client_inboxId: (a: number) => [number, number];
|
|
185
|
+
export const client_isRegistered: (a: number) => number;
|
|
186
|
+
export const client_installationId: (a: number) => [number, number];
|
|
187
|
+
export const client_installationIdBytes: (a: number) => any;
|
|
188
|
+
export const client_canMessage: (a: number, b: number, c: number) => any;
|
|
189
|
+
export const client_registerIdentity: (a: number) => any;
|
|
190
|
+
export const client_sendSyncRequest: (a: number) => any;
|
|
191
|
+
export const client_findInboxIdByIdentifier: (a: number, b: any) => any;
|
|
192
|
+
export const client_inboxStateFromInboxIds: (a: number, b: number, c: number, d: number) => any;
|
|
193
|
+
export const client_conversations: (a: number) => number;
|
|
194
|
+
export const client_syncPreferences: (a: number) => any;
|
|
245
195
|
export const __wbg_consent_free: (a: number, b: number) => void;
|
|
246
196
|
export const __wbg_get_consent_entityType: (a: number) => number;
|
|
247
197
|
export const __wbg_set_consent_entityType: (a: number, b: number) => void;
|
|
@@ -341,15 +291,65 @@ export const __wbg_set_lifetime_not_after: (a: number, b: bigint) => void;
|
|
|
341
291
|
export const client_inboxState: (a: number, b: number) => any;
|
|
342
292
|
export const client_getLatestInboxState: (a: number, b: number, c: number) => any;
|
|
343
293
|
export const client_getKeyPackageStatusesForInstallationIds: (a: number, b: number, c: number) => any;
|
|
344
|
-
export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
345
|
-
export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
346
|
-
export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
347
|
-
export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
348
294
|
export const __wbg_streamcloser_free: (a: number, b: number) => void;
|
|
349
295
|
export const streamcloser_end: (a: number) => void;
|
|
350
296
|
export const streamcloser_endAndWait: (a: number) => any;
|
|
351
297
|
export const streamcloser_waitForReady: (a: number) => any;
|
|
352
298
|
export const streamcloser_isClosed: (a: number) => number;
|
|
299
|
+
export const __wbg_set_groupmember_inboxId: (a: number, b: number, c: number) => void;
|
|
300
|
+
export const __wbg_set_inboxstate_inboxId: (a: number, b: number, c: number) => void;
|
|
301
|
+
export const __wbg_get_groupmember_inboxId: (a: number) => [number, number];
|
|
302
|
+
export const __wbg_get_inboxstate_inboxId: (a: number) => [number, number];
|
|
303
|
+
export const __wbg_listmessagesoptions_free: (a: number, b: number) => void;
|
|
304
|
+
export const __wbg_get_listmessagesoptions_contentTypes: (a: number) => [number, number];
|
|
305
|
+
export const __wbg_set_listmessagesoptions_contentTypes: (a: number, b: number, c: number) => void;
|
|
306
|
+
export const __wbg_get_listmessagesoptions_sentBeforeNs: (a: number) => [number, bigint];
|
|
307
|
+
export const __wbg_set_listmessagesoptions_sentBeforeNs: (a: number, b: number, c: bigint) => void;
|
|
308
|
+
export const __wbg_get_listmessagesoptions_sentAfterNs: (a: number) => [number, bigint];
|
|
309
|
+
export const __wbg_set_listmessagesoptions_sentAfterNs: (a: number, b: number, c: bigint) => void;
|
|
310
|
+
export const __wbg_get_listmessagesoptions_limit: (a: number) => [number, bigint];
|
|
311
|
+
export const __wbg_set_listmessagesoptions_limit: (a: number, b: number, c: bigint) => void;
|
|
312
|
+
export const __wbg_get_listmessagesoptions_deliveryStatus: (a: number) => number;
|
|
313
|
+
export const __wbg_set_listmessagesoptions_deliveryStatus: (a: number, b: number) => void;
|
|
314
|
+
export const __wbg_get_listmessagesoptions_direction: (a: number) => number;
|
|
315
|
+
export const __wbg_set_listmessagesoptions_direction: (a: number, b: number) => void;
|
|
316
|
+
export const __wbg_get_listmessagesoptions_kind: (a: number) => number;
|
|
317
|
+
export const __wbg_set_listmessagesoptions_kind: (a: number, b: number) => void;
|
|
318
|
+
export const 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;
|
|
319
|
+
export const __wbg_message_free: (a: number, b: number) => void;
|
|
320
|
+
export const __wbg_get_message_id: (a: number) => [number, number];
|
|
321
|
+
export const __wbg_set_message_id: (a: number, b: number, c: number) => void;
|
|
322
|
+
export const __wbg_get_message_sentAtNs: (a: number) => bigint;
|
|
323
|
+
export const __wbg_set_message_sentAtNs: (a: number, b: bigint) => void;
|
|
324
|
+
export const __wbg_get_message_convoId: (a: number) => [number, number];
|
|
325
|
+
export const __wbg_set_message_convoId: (a: number, b: number, c: number) => void;
|
|
326
|
+
export const __wbg_get_message_senderInboxId: (a: number) => [number, number];
|
|
327
|
+
export const __wbg_set_message_senderInboxId: (a: number, b: number, c: number) => void;
|
|
328
|
+
export const __wbg_get_message_content: (a: number) => number;
|
|
329
|
+
export const __wbg_set_message_content: (a: number, b: number) => void;
|
|
330
|
+
export const __wbg_get_message_kind: (a: number) => number;
|
|
331
|
+
export const __wbg_set_message_kind: (a: number, b: number) => void;
|
|
332
|
+
export const __wbg_get_message_deliveryStatus: (a: number) => number;
|
|
333
|
+
export const __wbg_set_message_deliveryStatus: (a: number, b: number) => void;
|
|
334
|
+
export const message_new: (a: number, b: number, c: bigint, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
|
|
335
|
+
export const __wbg_messagewithreactions_free: (a: number, b: number) => void;
|
|
336
|
+
export const __wbg_get_messagewithreactions_message: (a: number) => number;
|
|
337
|
+
export const __wbg_set_messagewithreactions_message: (a: number, b: number) => void;
|
|
338
|
+
export const __wbg_get_messagewithreactions_reactions: (a: number) => [number, number];
|
|
339
|
+
export const __wbg_set_messagewithreactions_reactions: (a: number, b: number, c: number) => void;
|
|
340
|
+
export const __wbg_opfs_free: (a: number, b: number) => void;
|
|
341
|
+
export const opfs_init_sqlite_opfs: () => any;
|
|
342
|
+
export const opfs_exists: () => number;
|
|
343
|
+
export const opfs_error: () => [number, number];
|
|
344
|
+
export const opfs_wipeFiles: () => any;
|
|
345
|
+
export const opfs_rm: (a: number, b: number) => [number, number, number];
|
|
346
|
+
export const opfs_getFileNames: () => [number, number];
|
|
347
|
+
export const opfs_importDb: (a: number, b: number, c: number, d: number) => [number, number];
|
|
348
|
+
export const opfs_exportFile: (a: number, b: number) => [number, number, number, number];
|
|
349
|
+
export const opfs_getFileCount: () => number;
|
|
350
|
+
export const opfs_getCapacity: () => number;
|
|
351
|
+
export const opfs_addCapacity: (a: number) => any;
|
|
352
|
+
export const opfs_reduceCapacity: (a: number) => any;
|
|
353
353
|
export const rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
|
|
354
354
|
export const rust_zstd_wasm_shim_malloc: (a: number) => number;
|
|
355
355
|
export const rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
|
|
@@ -389,8 +389,8 @@ export const __wbindgen_export_7: WebAssembly.Table;
|
|
|
389
389
|
export const __externref_table_dealloc: (a: number) => void;
|
|
390
390
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6040dd5f55152215: (a: number, b: number) => void;
|
|
391
391
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h89dafc0baf46c12b: (a: number, b: number) => void;
|
|
392
|
-
export const
|
|
392
|
+
export const closure4459_externref_shim: (a: number, b: number, c: any) => void;
|
|
393
393
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f45197f24caef5a: (a: number, b: number) => void;
|
|
394
|
-
export const
|
|
395
|
-
export const
|
|
394
|
+
export const closure5466_externref_shim: (a: number, b: number, c: any, d: number, e: any) => number;
|
|
395
|
+
export const closure5465_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
396
396
|
export const __wbindgen_start: () => void;
|
package/dist/version.json
CHANGED